vendor: 6,410 bytes, lines 1-2
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./t5z6g7kU.js","./CqjKFDEq.js","./PowerBi.MT0SEL7D.css","./D3dudjA6.js","./D1s1q3gl.js","./XWOvlVii.js","./cEcEJuzu.js","./D5Obrq3L.js","./CFdz3-Al.js","./Accordion.BPDO2VTU.css","./zuzQHP69.js","./Dc92_BjU.js","./B5G6aL_c.js","./DS93rWDN.js","./oVxhnyrt.js","./YFRdBfyV.js","./DB1eQA5f.js","./index.CfuK2iFt.css","./swiper-vue.D4uxgglP.css","./BkNFkgSh.js","./CUJ84mlo.js","./u7KI10RJ.js","./kEzNeEeP.js","./CVNTsiI4.js","./RuqWyumr.js","./COrgXMuq.js","./DHsicbJM.js","./DsWNBTzm.js","./BR8I3mzU.js","./DeGjzljU.js","./index.DHu-lsCi.css","./CRgU4tvl.js","./Dvg5YhEi.js","./BeeMa4HJ.js","./CsbmHr1c.js","./DDc_YbOK.js","./C_6xeMu9.js","./BJL4gv9h.js","./BKkcdMQL.js","./Cmply3Rd.js","./index.CM2B9Cpw.css","./NCfp75ue.js","./D7krbYeg.js","./BKmgcQW8.js","./CFY8Q9ID.js","./DTuJZzfc.js","./_slug_.CTL0DGKw.css","./CbtEYpwi.js","./C-ElSBSN.js","./Bvl7zvaP.js","./DLTMsLkr.js","./PhjIEOtS.js","./BxTxBIEi.js","./CqKJQF9a.js","./B5xw74IN.js","./useAffiliateApply.TluRz7pY.css","./index.Df4il8Jh.css","./16NB__k7.js","./4fccfa6P.js","./C0hZBlo-.js","./BZg1qkz9.js","./Lightbox.f3TQw-Re.css","./Dt3N_srf.js","./index.Cvm9CVs0.css","./DkZTc022.js","./CjQa9EgR.js","./index.CQs5t22H.css","./DXJplD0c.js","./index.mlYLpXLw.css","./qJPL-acM.js","./Bd_yly78.js","./pkhtSLYP.js","./Ch5AUKHl.js","./DpT59f-W.js","./BOLYFkhe.js","./DBlF1ugv.js","./index.C396PrLv.css","./Btw0guUa.js","./Cwfpi4vx.js","./BFL8ID-p.js","./BskJP9ux.js","./La9Wabkz.js","./index.WtlRWxNS.css","./DkLBWR3n.js","./BzNIEooW.js","./DataFlexSection.CRDMbbAf.css","./DBzCW7Hz.js","./DUEwnft-.js","./index.CKjsfwsY.css","./-MP5O__7.js","./DH9KkT_G.js","./BJBFI-QC.js","./DikNspqG.js","./Br8plDEj.js","./CkaoieWk.js","./Czldx5I4.js","./C0nla1Zj.js","./B8qFSoou.js","./dTSBkepM.js","./BwE54fll.js","./index.BUHjVBT2.css","./OfEV-ZcT.js","./Due80JIR.js","./DXod1B8x.js","./bLhTJMNS.js","./trT_QoHj.js","./index.DGlASVqa.css","./DtRILawW.js","./index.Z7twk_ho.css","./CQvxcyEy.js","./BX5bo4JA.js","./index.DHezqLe0.css","./C6Nl73Wv.js","./index.Dy9cPEno.css","./DxidlvtV.js","./9Mpayt8e.js","./B4RH1vLw.js","./zhFpqVxX.js","./BsuB47SM.js","./Subscribe.0bd7itwL.css","./index.DHpWkHBC.css","./DnszcMkB.js","./index.DFfjm6Bo.css","./Cg8ITX9T.js","./VvtbfIwR.js","./_slug_.Btzs3UHi.css","./Cog62kcK.js","./index.DUMlOBtl.css","./BPuIhE8h.js","./BBttLbUZ.js","./default.D4SyK1cb.css","./JkNNbD5B.js"])))=>i.map(i=>d[i]); 2/* empty css */(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function tn(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const Fe={},Oo=[],en=()=>{},bo=()=>!1,no=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Ed=t=>t.startsWith("onUpdate:"),Ve=Object.assign,vd=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},zk=Object.prototype.hasOwnProperty,Xe=(t,e)=>zk.call(t,e),oe=Array.isArray,No=t=>ia(t)==="[object Map]",ro=t=>ia(t)==="[object Set]",ag=t=>ia(t)==="[object Date]",KS=t=>ia(t)==="[object RegExp]",be=t=>typeof t=="function",Ce=t=>typeof t=="string",Kn=t=>typeof t=="symbol",Ze=t=>t!==null&&typeof t=="object",Td=t=>(Ze(t)||be(t))&&be(t.then)&&be(t.catch),q_=Object.prototype.toString,ia=t=>q_.call(t),XS=t=>ia(t).slice(8,-1),Eu=t=>ia(t)==="[object Object]",wd=t=>Ce(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,qs=tn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),JS=tn("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),bd=t=>{const e=Object.create(null);return(n=>e[n]||(e[n]=t(n)))},Kk=/-\w/g,mt=bd(t=>t.replace(Kk,e=>e.slice(1).toUpperCase())),Xk=/\B([A-Z])/g,On=bd(t=>t.replace(Xk,"-$1").toLowerCase()),so=bd(t=>t.charAt(0).toUpperCase()+t.slice(1)),ko=bd(t=>t?`on${so(t)}`:""),An=(t,e)=>!Object.is(t,e),Do=(t,...e)=>{for(let n=0;n<t.length;n++)t[n](...e)},W_=(t,e,n,r=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:r,value:n})},vu=t=>{const e=parseFloat(t);return isNaN(e)?t:e},kc=t=>{const e=Ce(t)?Number(t):NaN;return isNaN(e)?t:e};let BT;const Tu=()=>BT||(BT=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),Jk=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function Qk(t){return Jk.test(t)?`__props.${t}`:`__props[${JSON.stringify(t)}]`}function Zk(t,e){return t+JSON.stringify(e,(n,r)=>typeof r=="function"?r.toString():r)}const eD={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"},tD={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"},nD={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"},rD={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},sD={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},iD="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decode
2URI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",G_=tn(iD),oD=G_,HT=2;function QS(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 s=r.filter((a,l)=>l%2===1);r=r.filter((a,l)=>l%2===0);let i=0;const o=[];for(let a=0;a<r.length;a++)if(i+=r[a].length+(s[a]&&s[a].length||0),i>=e){for(let l=a-HT;l<=a+HT||n>i;l++){if(l<0||l>=r.length)continue;const u=l+1;o.push(`${u}${" ".repeat(Math.max(3-String(u).length,0))}| ${r[l]}`);const f=r[l].length,h=s[l]&&s[l].length||0;if(l===a){const d=e-(i-(f+h)),p=Math.max(1,n>i?f-d:n-e);o.push(" | "+" ".repeat(d)+"^".repeat(p))}else if(l>a){if(n>i){const d=Math.max(Math.min(n-i,f),1);o.push(" | "+"^".repeat(d))}i+=f+h}}break}return o.join(` 3`)}function io(t){if(oe(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],s=Ce(r)?Y_(r):io(r);if(s)for(const i in s)e[i]=s[i]}return e}else if(Ce(t)||Ze(t))return t}const aD=/;(?![^(]*\))/g,lD=/:([^]+)/,cD=/\/\*[^]*?\*\//g;function Y_(t){const e={};return t.replace(cD,"").split(aD).forEach(n=>{if(n){const r=n.split(lD);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function uD(t){if(!t)return"";if(Ce(t))return t;let e="";for(const n in t){const r=t[n];if(Ce(r)||typeof r=="number"){const s=n.startsWith("--")?n:On(n);e+=`${s}:${r};`}}return e}function _r(t){let e="";if(Ce(t))e=t;else if(oe(t))for(let n=0;n<t.length;n++){const r=_r(t[n]);r&&(e+=r+" ")}else if(Ze(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}function z_(t){if(!t)return null;let{class:e,style:n}=t;return e&&!Ce(e)&&(t.class=_r(e)),n&&(t.style=io(n)),t}const fD="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",hD="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",dD="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",pD="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",ZS=tn(fD),eI=tn(hD),tI=tn(dD),nI=tn(pD),rI="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",sI=tn(rI),mD=tn(rI+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function K_(t){return!!t||t===""}const gD=/[>/="'\u0009\u000a\u000c\u0020]/,cm={};function _D(t){if(cm.hasOwnProperty(t))return cm[t];const e=gD.test(t);return cm[t]=!e}const yD={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},ED=tn("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,c
3olspan,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"),vD=tn("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,radius,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
vendor: 105,437 bytes, lines 3-5
3-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"),TD=tn("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 wD(t){if(t==null)return!1;const e=typeof t;return e==="string"||e==="number"||e==="boolean"}const bD=/["'&<>]/;function SD(t){const e=""+t,n=bD.exec(e);if(!n)return e;let r="",s,i,o=0;for(i=n.index;i<e.length;i++){switch(e.charCodeAt(i)){case 34:s=""";break;case 38:s="&";break;case 39:s="'";break;case 60:s="<";break;case 62:s=">";break;default:continue}o!==i&&(r+=e.slice(o,i)),o=i+1,r+=s}return o!==i?r+e.slice(o,i):r}const ID=/^-?>|<!--|-->|--!>|<!-$/g;function AD(t){return t.replace(ID,"")}const iI=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function RD(t,e){return t.replace(iI,n=>e?n==='"'?'\\\\\\"':`\\\\${n}`:`\\${n}`)}function CD(t,e){if(t.length!==e.length)return!1;let n=!0;for(let r=0;n&&r<t.length;r++)n=Xs(t[r],e[r]);return n}function Xs(t,e){if(t===e)return!0;let n=ag(t),r=ag(e);if(n||r)return n&&r?t.getTime()===e.getTime():!1;if(n=Kn(t),r=Kn(e),n||r)return t===e;if(n=oe(t),r=oe(e),n||r)return n&&r?CD(t,e):!1;if(n=Ze(t),r=Ze(e),n||r){if(!n||!r)return!1;const s=Object.keys(t).length,i=Object.keys(e).length;if(s!==i)return!1;for(const o in t){const a=t.hasOwnProperty(o),l=e.hasOwnProperty(o);if(a&&!l||!a&&l||!Xs(t[o],e[o]))return!1}}return String(t)===String(e)}function wu(t,e){return t.findIndex(n=>Xs(n,e))}const oI=t=>!!(t&&t.__v_isRef===!0),fr=t=>Ce(t)?t:t==null?"":oe(t)||Ze(t)&&(t.toString===q_||!be(t.toString))?oI(t)?fr(t.value):JSON.stringify(t,aI,2):String(t),aI=(t,e)=>oI(e)?aI(t,e.value):No(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,s],i)=>(n[um(r,i)+" =>"]=s,n),{})}:ro(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>um(n))}:Kn(e)?um(e):Ze(e)&&!oe(e)&&!Eu(e)?String(e):e,um=(t,e="")=>{var n;return Kn(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};function lI(t){return t==null?"initial":typeof t=="string"?t===""?" ":t:String(t)}const PD=Object.freeze(Object.defineProperty({__proto__:null,EMPTY_ARR:Oo,EMPTY_OBJ:Fe,NO:bo,NOOP:en,PatchFlagNames:tD,PatchFlags:eD,ShapeFlags:nD,SlotFlags:rD,camelize:mt,capitalize:so,cssVarNameEscapeSymbolsRE:iI,def:W_,escapeHtml:SD,escapeHtmlComment:AD,extend:Ve,genCacheKey:Zk,genPropsAccessExp:Qk,generateCodeFrame:QS,getEscapedCssVarName:RD,getGlobalThis:Tu,hasChanged:An,hasOwn:Xe,hyphenate:On,includeBooleanAttr:K_,invokeArrayFns:Do,isArray:oe,isBooleanAttr:mD,isBuiltInDirective:JS,isDate:ag,isFunction:be,isGloballyAllowed:G_,isGloballyWhitelisted:oD,isHTMLTag:ZS,isIntegerKey:wd,isKnownHtmlAttr:ED,isKnownMathMLAttr:TD,isKnownSvgAttr:vD,isMap:No,isMathMLTag:tI,isModelListener:Ed,isObject:Ze,isOn:no,isPlainObject:Eu,isPromise:Td,isRegExp:KS,isRenderableAttrValue:wD,isReservedProp:qs,isSSRSafeAttrName:_D,isSVGTag:eI,isSet:ro,isSpecialBooleanAttr:sI,isString:Ce,isSymbol:Kn,isVoidTag:nI,looseEqual:Xs,looseIndexOf:wu,looseToNumber:vu,makeMap:tn,normalizeClass:_r,normalizeCssVarValue:lI,normalizeProps:z_,normalizeStyle:io,objectToString:q_,parseStringStyle:Y_,propsToAttrMap:yD,remove:vd,slotFlagsText:sD,stringifyStyle:uD,toDisplayString:fr,toHandlerKey:ko,toNumber:kc,toRawType:XS,toTypeString:ia},Symbol.toStringTag,{value:"Module"}));let bn;class X_{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=bn,!e&&bn&&(this.index=(bn.scopes||(bn.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=bn;try{return bn=this,e()}finally{bn=n}}}on(){++this._on===1&&(this.prevScope=bn,bn=this)}off(){this._on>0&&--this._on===0&&(bn=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 s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function Sd(t){return new X_(t)}function bu(){return bn}function za(t,e=!1){bn&&bn.cleanups.push(t)}let pt;const fm=new WeakSet;class Dc{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,bn&&bn.active&&bn.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,fm.has(this)&&(fm.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||uI(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,$T(this),fI(this);const e=pt,n=jr;pt=this,jr=!0;try{return this.fn()}finally{hI(this),pt=e,jr=n,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Z_(e);this.deps=this.depsTail=void 0,$T(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?fm.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){lg(this)&&this.run()}get dirty(){return lg(this)}}let cI=0,dc,pc;function uI(t,e=!1){if(t.flags|=8,e){t.next=pc,pc=t;return}t.next=dc,dc=t}function J_(){cI++}function Q_(){if(--cI>0)return;if(pc){let e=pc;for(pc=void 0;e;){const n=e.next;e.next=void 0,e.flags&=-9,e=n}}let t;for(;dc;){let e=dc;for(dc=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 fI(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function hI(t){let e,n=t.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Z_(r),OD(r)):e=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}t.deps=e,t.depsTail=n}function lg(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(dI(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function dI(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===xc)||(t.globalVersion=xc,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!lg(t))))return;t.flags|=2;const e=t.dep,n=pt,r=jr;pt=t,jr=!0;try{fI(t);const s=t.fn(t._value);(e.version===0||An(s,t._value))&&(t.flags|=128,t._value=s,e.version++)}catch(s){throw e.version++,s}finally{pt=n,jr=r,hI(t),t.flags&=-3}}function Z_(t,e=!1){const{dep:n,prevSub:r,nextSub:s}=t;if(r&&(r.nextSub=s,t.prevSub=void 0),s&&(s.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)Z_(i,!0)}!e&&!--n.sc&&n.map&&n.map.delete(n.key)}function OD(t){const{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}function ND(t,e){t.effect instanceof Dc&&(t=t.effect.fn);const n=new Dc(t);e&&Ve(n,e);try{n.run()}catch(s){throw n.stop(),s}const r=n.run.bind(n);return r.effect=n,r}function kD(t){t.effect.stop()}let jr=!0;const pI=[];function Js(){pI.push(jr),jr=!1}function Qs(){const t=pI.pop();jr=t===void 0?!0:t}function $T(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const n=pt;pt=void 0;try{e()}finally{pt=n}}}let xc=0;class DD{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 Id{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(!pt||!jr||pt===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==pt)n=this.activeLink=new DD(pt,this),pt.deps?(n.prevDep=pt.depsTail,pt.depsTail.nextDep=n,pt.depsTail=n):pt.deps=pt.depsTail=n,mI(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=pt.depsTail,n.nextDep=void 0,pt.depsTail.nextDep=n,pt.depsTail=n,pt.deps===n&&(pt.deps=r)}return n}trigger(e){this.version++,xc++,this.notify(e)}notify(e){J_();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Q_()}}}function mI(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)mI(r)}const n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subs=t}}const vh=new WeakMap,xo=Symbol(""),cg=Symbol(""),Mc=Symbol("");function Rn(t,e,n){if(jr&&pt){let r=vh.get(t);r||vh.set(t,r=new Map);let s=r.get(n);s||(r.set(n,s=new Id),s.map=r,s.key=n),s.track()}}function Ls(t,e,n,r,s,i){const o=vh.get(t);if(!o){xc++;return}const a=l=>{l&&l.trigger()};if(J_(),e==="clear")o.forEach(a);else{const l=oe(t),u=l&&wd(n);if(l&&n==="length"){const f=Number(r);o.forEach((h,d)=>{(d==="length"||d===Mc||!Kn(d)&&d>=f)&&a(h)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),u&&a(o.get(Mc)),e){case"add":l?u&&a(o.get("length")):(a(o.get(xo)),No(t)&&a(o.get(cg)));break;case"delete":l||(a(o.get(xo)),No(t)&&a(o.get(cg)));break;case"set":No(t)&&a(o.get(xo));break}}Q_()}function xD(t,e){const n=vh.get(t);return n&&n.get(e)}function Ea(t){const e=Re(t);return e===t?e:(Rn(e,"iterate",Mc),gr(t)?e:e.map(hn))}function Ad(t){return Rn(t=Re(t),"iterate",Mc),t}const MD={__proto__:null,[Symbol.iterator](){return hm(this,Symbol.iterator,hn)},concat(...t){return Ea(this).concat(...t.map(e=>oe(e)?Ea(e):e))},entries(){return hm(this,"entries",t=>(t[1]=hn(t[1]),t))},every(t,e){return As(this,"every",t,e,void 0,arguments)},filter(t,e){return As(this,"filter",t,e,n=>n.map(hn),arguments)},find(t,e){return As(this,"find",t,e,hn,arguments)},findIndex(t,e){return As(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return As(this,"findLast",t,e,hn,arguments)},findLastIndex(t,e){return As(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return As(this,"forEach",t,e,void 0,arguments)},includes(...t){return dm(this,"includes",t)},indexOf(...t){return dm(this,"indexOf",t)},join(t){return Ea(this).join(t)},lastIndexOf(...t){return dm(this,"lastIndexOf",t)},map(t,e){return As(this,"map",t,e,void 0,arguments)},pop(){return Kl(this,"pop")},push(...t){return Kl(this,"push",t)},reduce(t,...e){return jT(this,"reduce",t,e)},reduceRight(t,...e){return jT(this,"reduceRight",t,e)},shift(){return Kl(this,"shift")},some(t,e){return As(this,"some",t,e,void 0,arguments)},splice(...t){return Kl(this,"splice",t)},toReversed(){return Ea(this).toReversed()},toSorted(t){return Ea(this).toSorted(t)},toSpliced(...t){return Ea(this).toSpliced(...t)},unshift(...t){return Kl(this,"unshift",t)},values(){return hm(this,"values",hn)}};function hm(t,e,n){const r=Ad(t),s=r[e]();return r!==t&&!gr(t)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const LD=Array.prototype;function As(t,e,n,r,s,i){const o=Ad(t),a=o!==t&&!gr(t),l=o[e];if(l!==LD[e]){const h=l.apply(t,i);return a?hn(h):h}let u=n;o!==t&&(a?u=function(h,d){return n.call(this,hn(h),d,t)}:n.length>2&&(u=function(h,d){return n.call(this,h,d,t)}));const f=l.call(o,u,r);return a&&s?s(f):f}function jT(t,e,n,r){const s=Ad(t);let i=n;return s!==t&&(gr(t)?n.length>3&&(i=function(o,a,l){return n.call(this,o,a,l,t)}):i=function(o,a,l){return n.call(this,o,hn(a),l,t)}),s[e](i,...r)}function dm(t,e,n){const r=Re(t);Rn(r,"iterate",Mc);const s=r[e](...n);return(s===-1||s===!1)&&Pd(n[0])?(n[0]=Re(n[0]),r[e](...n)):s}function Kl(t,e,n=[]){Js(),J_();const r=Re(t)[e].apply(t,n);return Q_(),Qs(),r}const VD=tn("__proto__,__v_isRef,__isVue"),gI=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Kn));function UD(t){Kn(t)||(t=String(t));const e=Re(this);return Rn(e,"has",t),e.hasOwnProperty(t)}class _I{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,r){if(n==="__v_skip")return e.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?bI:wI:i?TI:vI).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const o=oe(e);if(!s){let l;if(o&&(l=MD[n]))return l;if(n==="hasOwnProperty")return UD}const a=Reflect.get(e,n,ft(e)?e:r);if((Kn(n)?gI.has(n):VD(n))||(s||Rn(e,"get",n),i))return a;if(ft(a)){const l=o&&wd(n)?a:a.value;return s&&Ze(l)?Th(l):l}return Ze(a)?s?Th(a):nn(a):a}}class yI extends _I{constructor(e=!1){super(!1,e)}set(e,n,r,s){let i=e[n];if(!this._isShallow){const l=_s(i);if(!gr(r)&&!_s(r)&&(i=Re(i),r=Re(r)),!oe(e)&&ft(i)&&!ft(r))return l||(i.value=r),!0}const o=oe(e)&&wd(n)?Number(n)<e.length:Xe(e,n),a=Reflect.set(e,n,r,ft(e)?e:s);return e===Re(s)&&(o?An(r,i)&&Ls(e,"set",n,r):Ls(e,"add",n,r)),a}deleteProperty(e,n){const r=Xe(e,n);e[n];const s=Reflect.deleteProperty(e,n);return s&&r&&Ls(e,"delete",n,void 0),s}has(e,n){const r=Reflect.has(e,n);return(!Kn(n)||!gI.has(n))&&Rn(e,"has",n),r}ownKeys(e){return Rn(e,"iterate",oe(e)?"length":xo),Reflect.ownKeys(e)}}class EI extends _I{constructor(e=!1){super(!0,e)}set(e,n){return!0}deleteProperty(e,n){return!0}}const FD=new yI,BD=new EI,HD=new yI(!0),$D=new EI(!0),ug=t=>t,mf=t=>Reflect.getPrototypeOf(t);function jD(t,e,n){return function(...r){const s=this.__v_raw,i=Re(s),o=No(i),a=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,u=s[t](...r),f=n?ug:e?wh:hn;return!e&&Rn(i,"iterate",l?cg:xo),{next(){const{value:h,done:d}=u.next();return d?{value:h,done:d}:{value:a?[f(h[0]),f(h[1])]:f(h),done:d}},[Symbol.iterator](){return this}}}}function gf(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function qD(t,e){const n={get(s){const i=this.__v_raw,o=Re(i),a=Re(s);t||(An(s,a)&&Rn(o,"get",s),Rn(o,"get",a));const{has:l}=mf(o),u=e?ug:t?wh:hn;if(l.call(o,s))return u(i.get(s));if(l.call(o,a))return u(i.get(a));i!==o&&i.get(s)},get size(){const s=this.__v_raw;return!t&&Rn(Re(s),"iterate",xo),s.size},has(s){const i=this.__v_raw,o=Re(i),a=Re(s);return t||(An(s,a)&&Rn(o,"has",s),Rn(o,"has",a)),s===a?i.has(s):i.has(s)||i.has(a)},forEach(s,i){const o=this,a=o.__v_raw,l=Re(a),u=e?ug:t?wh:hn;return!t&&Rn(l,"iterate",xo),a.forEach((f,h)=>s.call(i,u(f),u(h),o))}};return Ve(n,t?{add:gf("add"),set:gf("set"),delete:gf("delete"),clear:gf("clear")}:{add(s){!e&&!gr(s)&&!_s(s)&&(s=Re(s));const i=Re(this);return mf(i).has.call(i,s)||(i.add(s),Ls(i,"add",s,s)),this},set(s,i){!e&&!gr(i)&&!_s(i)&&(i=Re(i));const o=Re(this),{has:a,get:l}=mf(o);let u=a.call(o,s);u||(s=Re(s),u=a.call(o,s));const f=l.call(o,s);return o.set(s,i),u?An(i,f)&&Ls(o,"set",s,i):Ls(o,"add",s,i),this},delete(s){const i=Re(this),{has:o,get:a}=mf(i);let l=o.call(i,s);l||(s=Re(s),l=o.call(i,s)),a&&a.call(i,s);const u=i.delete(s);return l&&Ls(i,"delete",s,void 0),u},clear(){const s=Re(this),i=s.size!==0,o=s.clear();return i&&Ls(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=jD(s,t,e)}),n}function Rd(t,e){const n=qD(t,e);return(r,s,i)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?r:Reflect.get(Xe(n,s)&&s in r?n:r,s,i)}const WD={get:Rd(!1,!1)},GD={get:Rd(!1,!0)},YD={get:Rd(!0,!1)},zD={get:Rd(!0,!0)},vI=new WeakMap,TI=new WeakMap,wI=new WeakMap,bI=new WeakMap;function KD(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function XD(t){return t.__v_skip||!Object.isExtensible(t)?0:KD(XS(t))}function nn(t){return _s(t)?t:Cd(t,!1,FD,WD,vI)}function Fr(t){return Cd(t,!1,HD,GD,TI)}function Th(t){return Cd(t,!0,BD,YD,wI)}function JD(t){return Cd(t,!0,$D,zD,bI)}function Cd(t,e,n,r,s){if(!Ze(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const i=XD(t);if(i===0)return t;const o=s.get(t);if(o)return o;const a=new Proxy(t,i===2?r:n);return s.set(t,a),a}function qr(t){return _s(t)?qr(t.__v_raw):!!(t&&t.__v_isReactive)}function _s(t){return!!(t&&t.__v_isReadonly)}function gr(t){return!!(t&&t.__v_isShallow)}function Pd(t){return t?!!t.__v_raw:!1}function Re(t){const e=t&&t.__v_raw;return e?Re(e):t}function Od(t){return!Xe(t,"__v_skip")&&Object.isExtensible(t)&&W_(t,"__v_skip",!0),t}const hn=t=>Ze(t)?nn(t):t,wh=t=>Ze(t)?Th(t):t;function ft(t){return t?t.__v_isRef===!0:!1}function Pe(t){return SI(t,!1)}function or(t){return SI(t,!0)}function SI(t,e){return ft(t)?t:new QD(t,e)}class QD{constructor(e,n){this.dep=new Id,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:Re(e),this._value=n?e:hn(e),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(e){const n=this._rawValue,r=this.__v_isShallow||gr(e)||_s(e);e=r?e:Re(e),An(e,n)&&(this._rawValue=e,this._value=r?e:hn(e),this.dep.trigger())}}function ZD(t){t.dep&&t.dep.trigger()}function ve(t){return ft(t)?t.value:t}function II(t){return be(t)?t():ve(t)}const ex={get:(t,e,n)=>e==="__v_raw"?t:ve(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const s=t[e];return ft(s)&&!ft(n)?(s.value=n,!0):Reflect.set(t,e,n,r)}};function ey(t){return qr(t)?t:new Proxy(t,ex)}class tx{constructor(e){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Id,{get:r,set:s}=e(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=s}get value(){return this._value=this._get()}set value(e){this._set(e)}}function AI(t){return new tx(t)}function RI(t){const e=oe(t)?new Array(t.length):{};for(const n in t)e[n]=CI(t,n);return e}class nx{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 xD(Re(this._object),this._key)}}class rx{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 ty(t,e,n){return ft(t)?t:be(t)?new rx(t):Ze(t)&&arguments.length>1?CI(t,e,n):Pe(t)}function CI(t,e,n){const r=t[e];return ft(r)?r:new nx(t,e,n)}class sx{constructor(e,n,r){this.fn=e,this.setter=n,this._value=void 0,this.dep=new Id(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=xc-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&pt!==this)return uI(this,!0),!0}get value(){const e=this.dep.track();return dI(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function ix(t,e,n=!1){let r,s;return be(t)?r=t:(r=t.get,s=t.set),new sx(r,s,n)}const ox={GET:"get",HAS:"has",ITERATE:"iterate"},ax={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},_f={},bh=new WeakMap;let bi;function lx(){return bi}function PI(t,e=!1,n=bi){if(n){let r=bh.get(n);r||bh.set(n,r=[]),r.push(t)}}function cx(t,e,n=Fe){const{immediate:r,deep:s,once:i,scheduler:o,augmentJob:a,call:l}=n,u=C=>s?C:gr(C)||s===!1||s===0?Vs(C,1):Vs(C);let f,h,d,p,g=!1,_=!1;if(ft(t)?(h=()=>t.value,g=gr(t)):qr(t)?(h=()=>u(t),g=!0):oe(t)?(_=!0,g=t.some(C=>qr(C)||gr(C)),h=()=>t.map(C=>{if(ft(C))return C.value;if(qr(C))return u(C);if(be(C))return l?l(C,2):C()})):be(t)?e?h=l?()=>l(t,2):t:h=()=>{if(d){Js();try{d()}finally{Qs()}}const C=bi;bi=f;try{return l?l(t,3,[p]):t(p)}finally{bi=C}}:h=en,e&&s){const C=h,x=s===!0?1/0:s;h=()=>Vs(C(),x)}const v=bu(),N=()=>{f.stop(),v&&v.active&&vd(v.effects,f)};if(i&&e){const C=e;e=(...x)=>{C(...x),N()}}let O=_?new Array(t.length).fill(_f):_f;const T=C=>{if(!(!(f.flags&1)||!f.dirty&&!C))if(e){const x=f.run();if(s||g||(_?x.some((L,R)=>An(L,O[R])):An(x,O))){d&&d();const L=bi;bi=f;try{const R=[x,O===_f?void 0:_&&O[0]===_f?[]:O,p];O=x,l?l(e,3,R):e(...R)}finally{bi=L}}}else f.run()};return a&&a(T),f=new Dc(h),f.scheduler=o?()=>o(T,!1):T,p=C=>PI(C,!1,f),d=f.onStop=()=>{const C=bh.get(f);if(C){if(l)l(C,4);else for(const x of C)x();bh.delete(f)}},e?r?T(!0):O=f.run():o?o(T.bind(null,!0),!0):f.run(),N.pause=f.pause.bind(f),N.resume=f.resume.bind(f),N.stop=N,N}function Vs(t,e=1/0,n){if(e<=0||!Ze(t)||t.__v_skip||(n=n||new Map,(n.get(t)||0)>=e))return t;if(n.set(t,e),e--,ft(t))Vs(t.value,e,n);else if(oe(t))for(let r=0;r<t.length;r++)Vs(t[r],e,n);else if(ro(t)||No(t))t.forEach(r=>{Vs(r,e,n)});else if(Eu(t)){for(const r in t)Vs(t[r],e,n);for(const r of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,r)&&Vs(t[r],e,n)}return t}const OI=[];function ux(t){OI.push(t)}function fx(){OI.pop()}function hx(t,e){}const dx={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"},px={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 yl(t,e,n,r){try{return r?t(...r):t()}catch(s){oa(s,e,n)}}function Rr(t,e,n,r){if(be(t)){const s=yl(t,e,n,r);return s&&Td(s)&&s.catch(i=>{oa(i,e,n)}),s}if(oe(t)){const s=[];for(let i=0;i<t.length;i++)s.push(Rr(t[i],e,n,r));return s}}function oa(t,e,n,r=!0){const s=e?e.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=e&&e.appContext.config||Fe;if(e){let a=e.parent;const l=e.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const f=a.ec;if(f){for(let h=0;h<f.length;h++)if(f[h](t,l,u)===!1)return}a=a.parent}if(i){Js(),yl(i,null,10,[t,l,u]),Qs();return}}mx(t,n,s,r,o)}function mx(t,e,n,r=!0,s=!1){if(s)throw t}const Wn=[];let rs=-1;const xa=[];let Si=null,Sa=0;const NI=Promise.resolve();let Sh=null;function Xn(t){const e=Sh||NI;return t?e.then(this?t.bind(this):t):e}function gx(t){let e=rs+1,n=Wn.length;for(;e<n;){const r=e+n>>>1,s=Wn[r],i=Vc(s);i<t||i===t&&s.flags&2?e=r+1:n=r}return e}function ny(t){if(!(t.flags&1)){const e=Vc(t),n=Wn[Wn.length-1];!n||!(t.flags&2)&&e>=Vc(n)?Wn.push(t):Wn.splice(gx(e),0,t),t.flags|=1,kI()}}function kI(){Sh||(Sh=NI.then(DI))}function Lc(t){oe(t)?xa.push(...t):Si&&t.id===-1?Si.splice(Sa+1,0,t):t.flags&1||(xa.push(t),t.flags|=1),kI()}function qT(t,e,n=rs+1){for(;n<Wn.length;n++){const r=Wn[n];if(r&&r.flags&2){if(t&&r.id!==t.uid)continue;Wn.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Ih(t){if(xa.length){const e=[...new Set(xa)].sort((n,r)=>Vc(n)-Vc(r));if(xa.length=0,Si){Si.push(...e);return}for(Si=e,Sa=0;Sa<Si.length;Sa++){const n=Si[Sa];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Si=null,Sa=0}}const Vc=t=>t.id==null?t.flags&2?-1:1/0:t.id;function DI(t){try{for(rs=0;rs<Wn.length;rs++){const e=Wn[rs];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),yl(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;rs<Wn.length;rs++){const e=Wn[rs];e&&(e.flags&=-2)}rs=-1,Wn.length=0,Ih(),Sh=null,(Wn.length||xa.length)&&DI()}}let Ia,yf=[];function xI(t,e){var n,r;Ia=t,Ia?(Ia.enabled=!0,yf.forEach(({event:s,args:i})=>Ia.emit(s,...i)),yf=[]):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=>{xI(i,e)}),setTimeout(()=>{Ia||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,yf=[])},3e3)):yf=[]}let mn=null,Nd=null;function Uc(t){const e=mn;return mn=t,Nd=t&&t.type.__scopeId||null,e}function _x(t){Nd=t}function yx(){Nd=null}const Ex=t=>Cn;function Cn(t,e=mn,n){if(!e||t._n)return t;const r=(...s)=>{r._d&&Hc(-1);const i=Uc(e);let o;try{o=t(...s)}finally{Uc(i),r._d&&Hc(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function MI(t,e){if(mn===null)return t;const n=Au(mn),r=t.dirs||(t.dirs=[]);for(let s=0;s<e.length;s++){let[i,o,a,l=Fe]=e[s];i&&(be(i)&&(i={mounted:i,updated:i}),i.deep&&Vs(o),r.push({dir:i,instance:n,value:o,oldValue:void 0,arg:a,modifiers:l}))}return t}function ss(t,e,n,r){const s=t.dirs,i=e&&e.dirs;for(let o=0;o<s.length;o++){const a=s[o];i&&(a.oldValue=i[o].value);let l=a.dir[r];l&&(Js(),Rr(l,n,8,[t.el,a,t,e]),Qs())}}const LI=Symbol("_vte"),VI=t=>t.__isTeleport,mc=t=>t&&(t.disabled||t.disabled===""),WT=t=>t&&(t.defer||t.defer===""),GT=t=>typeof SVGElement<"u"&&t instanceof SVGElement,YT=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,fg=(t,e)=>{const n=t&&t.to;return Ce(n)?e?e(n):null:n},UI={name:"Teleport",__isTeleport:!0,process(t,e,n,r,s,i,o,a,l,u){const{mc:f,pc:h,pbc:d,o:{insert:p,querySelector:g,createText:_,createComment:v}}=u,N=mc(e.props);let{shapeFlag:O,children:T,dynamicChildren:C}=e;if(t==null){const x=e.el=_(""),L=e.anchor=_("");p(x,n,r),p(L,n,r);const R=(E,b)=>{O&16&&f(T,E,b,s,i,o,a,l)},w=()=>{const E=e.target=fg(e.props,g),b=BI(E,e,_,p);E&&(o!=="svg"&>(E)?o="svg":o!=="mathml"&&YT(E)&&(o="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(E),N||(R(E,b),qf(e,!1)))};N&&(R(n,L),qf(e,!0)),WT(e.props)?(e.el.__isMounted=!1,jt(()=>{w(),delete e.el.__isMounted},i)):w()}else{if(WT(e.props)&&t.el.__isMounted===!1){jt(()=>{UI.process(t,e,n,r,s,i,o,a,l,u)},i);return}e.el=t.el,e.targetStart=t.targetStart;const x=e.anchor=t.anchor,L=e.target=t.target,R=e.targetAnchor=t.targetAnchor,w=mc(t.props),E=w?n:L,b=w?x:R;if(o==="svg"||GT(L)?o="svg":(o==="mathml"||YT(L))&&(o="mathml"),C?(d(t.dynamicChildren,C,E,s,i,o,a),gy(t,e,!0)):l||h(t,e,E,b,s,i,o,a,!1),N)w?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):Ef(e,n,x,u,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const k=e.target=fg(e.props,g);k&&Ef(e,k,null,u,0)}else w&&Ef(e,L,R,u,1);qf(e,N)}},remove(t,e,n,{um:r,o:{remove:s}},i){const{shapeFlag:o,children:a,anchor:l,targetStart:u,targetAnchor:f,target:h,props:d}=t;if(h&&(s(u),s(f)),i&&s(l),o&16){const p=i||!mc(d);for(let g=0;g<a.length;g++){const _=a[g];r(_,e,n,p,!!_.dynamicChildren)}}},move:Ef,hydrate:vx};function Ef(t,e,n,{o:{insert:r},m:s},i=2){i===0&&r(t.targetAnchor,e,n);const{el:o,anchor:a,shapeFlag:l,children:u,props:f}=t,h=i===2;if(h&&r(o,e,n),(!h||mc(f))&&l&16)for(let d=0;d<u.length;d++)s(u[d],e,n,2);h&&r(a,e,n)}function vx(t,e,n,r,s,i,{o:{nextSibling:o,parentNode:a,querySelector:l,insert:u,createText:f}},h){function d(_,v,N,O){v.anchor=h(o(_),v,a(_),n,r,s,i),v.targetStart=N,v.targetAnchor=O}const p=e.target=fg(e.props,l),g=mc(e.props);if(p){const _=p._lpa||p.firstChild;if(e.shapeFlag&16)if(g)d(t,e,_,_&&o(_));else{e.anchor=o(t);let v=_;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,p._lpa=e.targetAnchor&&o(e.targetAnchor);break}}v=o(v)}e.targetAnchor||BI(p,e,f,u),h(_&&o(_),e,p,n,r,s,i)}qf(e,g)}else g&&e.shapeFlag&16&&d(t,e,t,o(t));return e.anchor&&o(e.anchor)}const FI=UI;function qf(t,e){const n=t.ctx;if(n&&n.ut){let r,s;for(e?(r=t.el,s=t.anchor):(r=t.targetStart,s=t.targetAnchor);r&&r!==s;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function BI(t,e,n,r){const s=e.targetStart=n(""),i=e.targetAnchor=n("");return s[LI]=i,t&&(r(s,t),r(i,t)),i}const Ms=Symbol("_leaveCb"),vf=Symbol("_enterCb");function ry(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Jr(()=>{t.isMounted=!0}),aa(()=>{t.isUnmounting=!0}),t}const vr=[Function,Array],sy={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:vr,onEnter:vr,onAfterEnter:vr,onEnterCancelled:vr,onBeforeLeave:vr,onLeave:vr,onAfterLeave:vr,onLeaveCancelled:vr,onBeforeAppear:vr,onAppear:vr,onAfterAppear:vr,onAppearCancelled:vr},HI=t=>{const e=t.subTree;return e.component?HI(e.component):e},Tx={name:"BaseTransition",props:sy,setup(t,{slots:e}){const n=rn(),r=ry();return()=>{const s=e.default&&kd(e.default(),!0);if(!s||!s.length)return;const i=$I(s),o=Re(t),{mode:a}=o;if(r.isLeaving)return pm(i);const l=zT(i);if(!l)return pm(i);let u=Ka(l,o,r,n,h=>u=h);l.type!==Vt&&Zs(l,u);let f=n.subTree&&zT(n.subTree);if(f&&f.type!==Vt&&!Ur(f,l)&&HI(n).type!==Vt){let h=Ka(f,o,r,n);if(Zs(f,h),a==="out-in"&&l.type!==Vt)return r.isLeaving=!0,h.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete h.afterLeave,f=void 0},pm(i);a==="in-out"&&l.type!==Vt?h.delayLeave=(d,p,g)=>{const _=qI(r,f);_[String(f.key)]=f,d[Ms]=()=>{p(),d[Ms]=void 0,delete u.delayedLeave,f=void 0},u.delayedLeave=()=>{g(),delete u.delayedLeave,f=void 0}}:f=void 0}else f&&(f=void 0);return i}}};function $I(t){let e=t[0];if(t.length>1){for(const n of t)if(n.type!==Vt){e=n;break}}return e}const jI=Tx;function qI(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 Ka(t,e,n,r,s){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:f,onEnterCancelled:h,onBeforeLeave:d,onLeave:p,onAfterLeave:g,onLeaveCancelled:_,onBeforeAppear:v,onAppear:N,onAfterAppear:O,onAppearCancelled:T}=e,C=String(t.key),x=qI(n,t),L=(E,b)=>{E&&Rr(E,r,9,b)},R=(E,b)=>{const k=b[1];L(E,b),oe(E)?E.every(P=>P.length<=1)&&k():E.length<=1&&k()},w={mode:o,persisted:a,beforeEnter(E){let b=l;if(!n.isMounted)if(i)b=v||l;else return;E[Ms]&&E[Ms](!0);const k=x[C];k&&Ur(t,k)&&k.el[Ms]&&k.el[Ms](),L(b,[E])},enter(E){let b=u,k=f,P=h;if(!n.isMounted)if(i)b=N||u,k=O||f,P=T||h;else return;let A=!1;const te=E[vf]=he=>{A||(A=!0,he?L(P,[E]):L(k,[E]),w.delayedLeave&&w.delayedLeave(),E[vf]=void 0)};b?R(b,[E,te]):te()},leave(E,b){const k=String(t.key);if(E[vf]&&E[vf](!0),n.isUnmounting)return b();L(d,[E]);let P=!1;const A=E[Ms]=te=>{P||(P=!0,b(),te?L(_,[E]):L(g,[E]),E[Ms]=void 0,x[k]===t&&delete x[k])};x[k]=t,p?R(p,[E,A]):A()},clone(E){const b=Ka(E,e,n,r,s);return s&&s(b),b}};return w}function pm(t){if(Su(t))return t=Cr(t),t.children=null,t}function zT(t){if(!Su(t))return VI(t.type)&&t.children?$I(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&&be(n.default))return n.default()}}function Zs(t,e){t.shapeFlag&6&&t.component?(t.transition=e,Zs(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 kd(t,e=!1,n){let r=[],s=0;for(let i=0;i<t.length;i++){let o=t[i];const a=n==null?o.key:String(n)+String(o.key!=null?o.key:i);o.type===St?(o.patchFlag&128&&s++,r=r.concat(kd(o.children,e,a))):(e||o.type!==Vt)&&r.push(a!=null?Cr(o,{key:a}):o)}if(s>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function Nt(t,e){return be(t)?Ve({name:t.name},e,{setup:t}):t}function wx(){const t=rn();return t?(t.appContext.config.idPrefix||"v")+"-"+t.ids[0]+t.ids[1]++:""}function iy(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function bx(t){const e=rn(),n=or(null);if(e){const s=e.refs===Fe?e.refs={}:e.refs;Object.defineProperty(s,t,{enumerable:!0,get:()=>n.value,set:i=>n.value=i})}return n}const Ah=new WeakMap;function Ma(t,e,n,r,s=!1){if(oe(t)){t.forEach((g,_)=>Ma(g,e&&(oe(e)?e[_]:e),n,r,s));return}if(Vi(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Ma(t,e,n,r.component.subTree);return}const i=r.shapeFlag&4?Au(r.component):r.el,o=s?null:i,{i:a,r:l}=t,u=e&&e.r,f=a.refs===Fe?a.refs={}:a.refs,h=a.setupState,d=Re(h),p=h===Fe?bo:g=>Xe(d,g);if(u!=null&&u!==l){if(KT(e),Ce(u))f[u]=null,p(u)&&(h[u]=null);else if(ft(u)){u.value=null;const g=e;g.k&&(f[g.k]=null)}}if(be(l))yl(l,a,12,[o,f]);else{const g=Ce(l),_=ft(l);if(g||_){const v=()=>{if(t.f){const N=g?p(l)?h[l]:f[l]:l.value;if(s)oe(N)&&vd(N,i);else if(oe(N))N.includes(i)||N.push(i);else if(g)f[l]=[i],p(l)&&(h[l]=f[l]);else{const O=[i];l.value=O,t.k&&(f[t.k]=O)}}else g?(f[l]=o,p(l)&&(h[l]=o)):_&&(l.value=o,t.k&&(f[t.k]=o))};if(o){const N=()=>{v(),Ah.delete(t)};N.id=-1,Ah.set(t,N),jt(N,n)}else KT(t),v()}}}function KT(t){const e=Ah.get(t);e&&(e.flags|=8,Ah.delete(t))}let XT=!1;const va=()=>{XT||(XT=!0)},Sx=t=>t.namespaceURI.includes("svg")&&t.tagName!=="foreignObject",Ix=t=>t.namespaceURI.includes("MathML"),Tf=t=>{if(t.nodeType===1){if(Sx(t))return"svg";if(Ix(t))return"mathml"}},ka=t=>t.nodeType===8;function Ax(t){const{mt:e,p:n,o:{patchProp:r,createText:s,nextSibling:i,parentNode:o,remove:a,insert:l,createComment:u}}=t,f=(T,C)=>{if(!C.hasChildNodes()){n(null,T,C),Ih(),C._vnode=T;return}h(C.firstChild,T,null,null,null),Ih(),C._vnode=T},h=(T,C,x,L,R,w=!1)=>{w=w||!!C.dynamicChildren;const E=ka(T)&&T.data==="[",b=()=>_(T,C,x,L,R,E),{type:k,ref:P,shapeFlag:A,patchFlag:te}=C;let he=T.nodeType;C.el=T,te===-2&&(w=!1,C.dynamicChildren=null);let z=null;switch(k){case Ui:he!==3?C.children===""?(l(C.el=s(""),o(T),T),z=T):z=b():(T.data!==C.children&&(va(),T.data=C.children),z=i(T));break;case Vt:O(T)?(z=i(T),N(C.el=T.content.firstChild,T,x)):he!==8||E?z=b():z=i(T);break;case Vo:if(E&&(T=i(T),he=T.nodeType),he===1||he===3){z=T;const ne=!C.children.length;for(let J=0;J<C.staticCount;J++)ne&&(C.children+=z.nodeType===1?z.outerHTML:z.data),J===C.staticCount-1&&(C.anchor=z),z=i(z);return E?i(z):z}else b();break;case St:E?z=g(T,C,x,L,R,w):z=b();break;default:if(A&1)(he!==1||C.type.toLowerCase()!==T.tagName.toLowerCase())&&!O(T)?z=b():z=d(T,C,x,L,R,w);else if(A&6){C.slotScopeIds=R;const ne=o(T);if(E?z=v(T):ka(T)&&T.data==="teleport start"?z=v(T,T.data,"teleport end"):z=i(T),e(C,ne,null,x,L,Tf(ne),w),Vi(C)&&!C.type.__asyncResolved){let J;E?(J=_e(St),J.anchor=z?z.previousSibling:ne.lastChild):J=T.nodeType===3?os(""):_e("div"),J.el=T,C.component.subTree=J}}else A&64?he!==8?z=b():z=C.type.hydrate(T,C,x,L,R,w,t,p):A&128&&(z=C.type.hydrate(T,C,x,L,Tf(o(T)),R,w,t,h))}return P!=null&&Ma(P,null,L,C),z},d=(T,C,x,L,R,w)=>{w=w||!!C.dynamicChildren;const{type:E,props:b,patchFlag:k,shapeFlag:P,dirs:A,transition:te}=C,he=E==="input"||E==="option";if(he||k!==-1){A&&ss(C,null,x,"created");let z=!1;if(O(T)){z=dA(null,te)&&x&&x.vnode.props&&x.vnode.props.appear;const J=T.content.firstChild;if(z){const Ue=J.getAttribute("class");Ue&&(J.$cls=Ue),te.beforeEnter(J)}N(J,T,x),C.el=T=J}if(P&16&&!(b&&(b.innerHTML||b.textContent))){let J=p(T.firstChild,C,T,x,L,R,w);for(;J;){wf(T,1)||va();const Ue=J;J=J.nextSibling,a(Ue)}}else if(P&8){let J=C.children;J[0]===` 4`&&(T.tagName==="PRE"||T.tagName==="TEXTAREA")&&(J=J.slice(1));const{textContent:Ue}=T;Ue!==J&&Ue!==J.replace(/\r\n|\r/g,` 5`)&&(wf(T,0)||va(),T.textContent=C.children)}if(b){if(he||!w||k&48){const J=T.tagName.includes("-");for(const Ue in b)(he&&(Ue.endsWith("value")||Ue==="indeterminate")||no(Ue)&&!qs(Ue)||Ue[0]==="."||J)&&r(T,Ue,null,b[Ue],void 0,x)}else if(b.onClick)r(T,"onClick",null,b.onClick,void 0,x);else if(k&4&&qr(b.style))for(const J in b.style)b.style[J]}let ne;(ne=b&&b.onVnodeBeforeMount)&&er(ne,x,C),A&&ss(C,null,x,"beforeMount"),((ne=b&&b.onVnodeMounted)||A||z)&&wA(()=>{ne&&er(ne,x,C),z&&te.enter(T),A&&ss(C,null,x,"mounted")},L)}return T.nextSibling},p=(T,C,x,L,R,w,E)=>{E=E||!!C.dynamicChildren;const b=C.children,k=b.length;for(let P=0;P<k;P++){const A=E?b[P]:b[P]=nr(b[P]),te=A.type===Ui;T?(te&&!E&&P+1<k&&nr(b[P+1]).type===Ui&&(l(s(T.data.slice(A.children.length)),x,i(T)),T.data=A.children),T=h(T,A,L,R,w,E)):te&&!A.children?l(A.el=s(""),x):(wf(x,1)||va(),n(null,A,x,null,L,R,Tf(x),w))}return T},g=(T,C,x,L,R,w)=>{const{slotScopeIds:E}=C;E&&(R=R?R.concat(E):E);const b=o(T),k=p(i(T),C,b,x,L,R,w);return k&&ka(k)&&k.data==="]"?i(C.anchor=k):(va(),l(C.anchor=u("]"),b,k),k)},_=(T,C,x,L,R,w)=>{if(wf(T.parentElement,1)||va(),C.el=null,w){const k=v(T);for(;;){const P=i(T);if(P&&P!==k)a(P);else break}}const E=i(T),b=o(T);return a(T),n(null,C,b,E,x,L,Tf(b),R),x&&(x.vnode.el=C.el,Vd(x,C.el)),E},v=(T,C="[",x="]")=>{let L=0;for(;T;)if(T=i(T),T&&ka(T)&&(T.data===C&&L++,T.data===x)){if(L===0)return i(T);L--}return T},N=(T,C,x)=>{const L=C.parentNode;L&&L.replaceChild(T,C);let R=x;for(;R;)R.vnode.el===C&&(R.vnode.el=R.subTree.el=T),R=R.parent},O=T=>T.nodeType===1&&T.tagName==="TEMPLATE";return[f,h]}const JT="data-allow-mismatch",Rx={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function wf(t,e){if(e===0||e===1)for(;t&&!t.hasAttribute(JT);)t=t.parentElement;const n=t&&t.getAttribute(JT);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return e===0&&r.includes("children")?!0:r.includes(Rx[e])}}const Cx=Tu().requestIdleCallback||(t=>setTimeout(t,1)),Px=Tu().cancelIdleCallback||(t=>clearTimeout(t)),Ox=(t=1e4)=>e=>{const n=Cx(e,{timeout:t});return()=>Px(n)};function Nx(t){const{top:e,left:n,bottom:r,right:s}=t.getBoundingClientRect(),{innerHeight:i,innerWidth:o}=window;return(e>0&&e<i||r>0&&r<i)&&(n>0&&n<o||s>0&&s<o)}const kx=t=>(e,n)=>{const r=new IntersectionObserver(s=>{for(const i of s)if(i.isIntersecting){r.disconnect(),e();break}},t);return n(s=>{if(s instanceof Element){if(Nx(s))return e(),r.disconnect(),!1;r.observe(s)}}),()=>r.disconnect()},Dx=t=>e=>{if(t){const n=matchMedia(t);if(n.matches)e();else return n.addEventListener("change",e,{once:!0}),()=>n.removeEventListener("change",e)}},xx=(t=[])=>(e,n)=>{Ce(t)&&(t=[t]);let r=!1;const s=o=>{r||(r=!0,i(),e(),o.target.dispatchEvent(new o.constructor(o.type,o)))},i=()=>{n(o=>{for(const a of t)o.removeEventListener(a,s)})};return n(o=>{for(const a of t)o.addEventListener(a,s,{once:!0})}),i};function Mx(t,e){if(ka(t)&&t.data==="["){let n=1,r=t.nextSibling;for(;r;){if(r.nodeType===1){if(e(r)===!1)break}else if(ka(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else e(t)}const Vi=t=>!!t.type.__asyncLoader;function hg(t){be(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:r,delay:s=200,hydrate:i,timeout:o,suspensible:a=!0,onError:l}=t;let u=null,f,h=0;const d=()=>(h++,u=null,p()),p=()=>{let g;return u||(g=u=e().catch(_=>{if(_=_ instanceof Error?_:new Error(String(_)),l)return new Promise((v,N)=>{l(_,()=>v(d()),()=>N(_),h+1)});throw _}).then(_=>g!==u&&u?u:(_&&(_.__esModule||_[Symbol.toStringTag]==="Module")&&(_=_.default),f=_,_)))};return Nt({name:"AsyncComponentWrapper",__asyncLoader:p,__asyncHydrate(g,_,v){let N=!1;(_.bu||(_.bu=[])).push(()=>N=!0);const O=()=>{N||v()},T=i?()=>{const C=i(O,x=>Mx(g,x));C&&(_.bum||(_.bum=[])).push(C)}:O;f?T():p().then(()=>!_.isUnmounted&&T())},get __asyncResolved(){return f},setup(){const g=dn;if(iy(g),f)return()=>bf(f,g);const _=T=>{u=null,oa(T,g,13,!r)};if(a&&g.suspense||Ja)return p().then(T=>()=>bf(T,g)).catch(T=>(_(T),()=>r?_e(r,{error:T}):null));const v=Pe(!1),N=Pe(),O=Pe(!!s);return s&&setTimeout(()=>{O.value=!1},s),o!=null&&setTimeout(()=>{if(!v.value&&!N.value){const T=new Error(`Async component timed out after ${o}ms.`);_(T),N.value=T}},o),p().then(()=>{v.value=!0,g.parent&&Su(g.parent.vnode)&&g.parent.update()}).catch(T=>{_(T),N.value=T}),()=>{if(v.value&&f)return bf(f,g);if(N.value&&r)return _e(r,{error:N.value});if(n&&!O.value)return bf(n,g)}}})}function bf(t,e){const{ref:n,props:r,children:s,ce:i}=e.vnode,o=_e(t,r,s);return o.ref=n,o.ce=i,delete e.vnode.ce,o}const Su=t=>t.type.__isKeepAlive,Lx={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const n=rn(),r=n.ctx;if(!r.renderer)return()=>{const O=e.default&&e.default();return O&&O.length===1?O[0]:O};const s=new Map,i=new Set;let o=null;const a=n.suspense,{renderer:{p:l,m:u,um:f,o:{createElement:h}}}=r,d=h("div");r.activate=(O,T,C,x,L)=>{const R=O.component;u(O,T,C,0,a),l(R.vnode,O,T,C,R,a,x,O.slotScopeIds,L),jt(()=>{R.isDeactivated=!1,R.a&&Do(R.a);const w=O.props&&O.props.onVnodeMounted;w&&er(w,R.parent,O)},a)},r.deactivate=O=>{const T=O.component;Ch(T.m),Ch(T.a),u(O,d,null,1,a),jt(()=>{T.da&&Do(T.da);const C=O.props&&O.props.onVnodeUnmounted;C&&er(C,T.parent,O),T.isDeactivated=!0},a)};function p(O){mm(O),f(O,n,a,!0)}function g(O){s.forEach((T,C)=>{const x=Sg(T.type);x&&!O(x)&&_(C)})}function _(O){const T=s.get(O);T&&(!o||!Ur(T,o))?p(T):o&&mm(o),s.delete(O),i.delete(O)}br(()=>[t.include,t.exclude],([O,T])=>{O&&g(C=>sc(O,C)),T&&g(C=>!sc(T,C))},{flush:"post",deep:!0});let v=null;const N=()=>{v!=null&&(Ph(n.subTree.type)?jt(()=>{s.set(v,Sf(n.subTree))},n.subTree.suspense):s.set(v,Sf(n.subTree)))};return Jr(N),xd(N),aa(()=>{s.forEach(O=>{const{subTree:T,suspense:C}=n,x=Sf(T);if(O.type===x.type&&O.key===x.key){mm(x);const L=x.component.da;L&&jt(L,C);return}p(O)})}),()=>{if(v=null,!e.default)return o=null;const O=e.default(),T=O[0];if(O.length>1)return o=null,O;if(!Gr(T)||!(T.shapeFlag&4)&&!(T.shapeFlag&128))return o=null,T;let C=Sf(T);if(C.type===Vt)return o=null,C;const x=C.type,L=Sg(Vi(C)?C.type.__asyncResolved||{}:x),{include:R,exclude:w,max:E}=t;if(R&&(!L||!sc(R,L))||w&&L&&sc(w,L))return C.shapeFlag&=-257,o=C,T;const b=C.key==null?x:C.key,k=s.get(b);return C.el&&(C=Cr(C),T.shapeFlag&128&&(T.ssContent=C)),v=b,k?(C.el=k.el,C.component=k.component,C.transition&&Zs(C,C.transition),C.shapeFlag|=512,i.delete(b),i.add(b)):(i.add(b),E&&i.size>parseInt(E,10)&&_(i.values().next().value)),C.shapeFlag|=256,o=C,Ph(T.type)?T:C}}},WI=Lx;function sc(t,e){return oe(t)?t.some(n=>sc(n,e)):Ce(t)?t.split(",").includes(e):KS(t)?(t.lastIndex=0,t.test(e)):!1}function oy(t,e){GI(t,"a",e)}function ay(t,e){GI(t,"da",e)}function GI(t,e,n=dn){const r=t.__wdc||(t.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return t()});if(Dd(e,r,n),n){let s=n.parent;for(;s&&s.parent;)Su(s.parent.vnode)&&Vx(r,e,n,s),s=s.parent}}function Vx(t,e,n,r){const s=Dd(e,t,r,!0);la(()=>{vd(r[e],s)},n)}function mm(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function Sf(t){return t.shapeFlag&128?t.ssContent:t}function Dd(t,e,n=dn,r=!1){if(n){const s=n[t]||(n[t]=[]),i=e.__weh||(e.__weh=(...o)=>{Js();const a=Go(n),l=Rr(e,n,t,o);return a(),Qs(),l});return r?s.unshift(i):s.push(i),i}}const ai=t=>(e,n=dn)=>{(!Ja||t==="sp")&&Dd(t,(...r)=>e(...r),n)},YI=ai("bm"),Jr=ai("m"),ly=ai("bu"),xd=ai("u"),aa=ai("bum"),la=ai("um"),zI=ai("sp"),KI=ai("rtg"),XI=ai("rtc");function Md(t,e=dn){Dd("ec",t,e)}const cy="components",Ux="directives";function dg(t,e){return uy(cy,t,!0,e)||t}const JI=Symbol.for("v-ndc");function QI(t){return Ce(t)?uy(cy,t,!1)||t:t||JI}function Fx(t){return uy(Ux,t)}function uy(t,e,n=!0,r=!1){const s=mn||dn;if(s){const i=s.type;if(t===cy){const a=Sg(i,!1);if(a&&(a===e||a===mt(e)||a===so(mt(e))))return i}const o=QT(s[t]||i[t],e)||QT(s.appContext[t],e);return!o&&r?i:o}}function QT(t,e){return t&&(t[e]||t[mt(e)]||t[so(mt(e))])}function fy(t,e,n,r){let s;const i=n&&n[r],o=oe(t);if(o||Ce(t)){const a=o&&qr(t);let l=!1,u=!1;a&&(l=!gr(t),u=_s(t),t=Ad(t)),s=new Array(t.length);for(let f=0,h=t.length;f<h;f++)s[f]=e(l?u?wh(hn(t[f])):hn(t[f]):t[f],f,void 0,i&&i[f])}else if(typeof t=="number"){s=new Array(t);for(let a=0;a<t;a++)s[a]=e(a+1,a,void 0,i&&i[a])}else if(Ze(t))if(t[Symbol.iterator])s=Array.from(t,(a,l)=>e(a,l,void 0,i&&i[l]));else{const a=Object.keys(t);s=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const f=a[l];s[l]=e(t[f],f,l,i&&i[l])}}else s=[];return n&&(n[r]=s),s}function Bx(t,e){for(let n=0;n<e.length;n++){const r=e[n];if(oe(r))for(let s=0;s<r.length;s++)t[r[s].name]=r[s].fn;else r&&(t[r.name]=r.key?(...s)=>{const i=r.fn(...s);return i&&(i.key=r.key),i}:r.fn)}return t}function Mo(t,e,n={},r,s){if(mn.ce||mn.parent&&Vi(mn.parent)&&mn.parent.ce){const u=Object.keys(n).length>0;return e!=="default"&&(n.name=e),$e(),Nn(St,null,[_e("slot",n,r&&r())],u?-2:64)}let i=t[e];i&&i._c&&(i._d=!1),$e();const o=i&&hy(i(n)),a=n.key||o&&o.key,l=Nn(St,{key:(a&&!Kn(a)?a:`_${e}`)+(!o&&r?"_fb":"")},o||(r?r():[]),o&&t._===1?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function hy(t){return t.some(e=>Gr(e)?!(e.type===Vt||e.type===St&&!hy(e.children)):!0)?t:null}function Hx(t,e){const n={};for(const r in t)n[e&&/[A-Z]/.test(r)?`on:${r}`:ko(r)]=t[r];return n}const pg=t=>t?CA(t)?Au(t):pg(t.parent):null,gc=Ve(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=>pg(t.parent),$root:t=>pg(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>dy(t),$forceUpdate:t=>t.f||(t.f=()=>{ny(t.update)}),$nextTick:t=>t.n||(t.n=Xn.bind(t.proxy)),$watch:t=>_M.bind(t)}),gm=(t,e)=>t!==Fe&&!t.__isScriptSetup&&Xe(t,e),mg={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:a,appContext:l}=t;let u;if(e[0]!=="$"){const p=o[e];if(p!==void 0)switch(p){case 1:return r[e];case 2:return s[e];case 4:return n[e];case 3:return i[e]}else{if(gm(r,e))return o[e]=1,r[e];if(s!==Fe&&Xe(s,e))return o[e]=2,s[e];if((u=t.propsOptions[0])&&Xe(u,e))return o[e]=3,i[e];if(n!==Fe&&Xe(n,e))return o[e]=4,n[e];gg&&(o[e]=0)}}const f=gc[e];let h,d;if(f)return e==="$attrs"&&Rn(t.attrs,"get",""),f(t);if((h=a.__cssModules)&&(h=h[e]))return h;if(n!==Fe&&Xe(n,e))return o[e]=4,n[e];if(d=l.config.globalProperties,Xe(d,e))return d[e]},set({_:t},e,n){const{data:r,setupState:s,ctx:i}=t;return gm(s,e)?(s[e]=n,!0):r!==Fe&&Xe(r,e)?(r[e]=n,!0):Xe(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(i[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:s,propsOptions:i,type:o}},a){let l,u;return!!(n[a]||t!==Fe&&a[0]!=="$"&&Xe(t,a)||gm(e,a)||(l=i[0])&&Xe(l,a)||Xe(r,a)||Xe(gc,a)||Xe(s.config.globalProperties,a)||(u=o.__cssModules)&&u[a])},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:Xe(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}},$x=Ve({},mg,{get(t,e){if(e!==Symbol.unscopables)return mg.get(t,e,t)},has(t,e){return e[0]!=="_"&&!G_(e)}});function jx(){return null}function qx(){return null}function Wx(t){}function Gx(t){}function Yx(){return null}function zx(){}function Kx(t,e){return null}function Xx(){return ZI().slots}function Jx(){return ZI().attrs}function ZI(t){const e=rn();return e.setupContext||(e.setupContext=NA(e))}function Fc(t){return oe(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}function Qx(t,e){const n=Fc(t);for(const r in e){if(r.startsWith("__skip"))continue;let s=n[r];s?oe(s)||be(s)?s=n[r]={type:s,default:e[r]}:s.default=e[r]:s===null&&(s=n[r]={default:e[r]}),s&&e[`__skip_${r}`]&&(s.skipFactory=!0)}return n}function Zx(t,e){return!t||!e?t||e:oe(t)&&oe(e)?t.concat(e):Ve({},Fc(t),Fc(e))}function eM(t,e){const n={};for(const r in t)e.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>t[r]});return n}function tM(t){const e=rn();let n=t();return Tg(),Td(n)&&(n=n.catch(r=>{throw Go(e),r})),[n,()=>Go(e)]}let gg=!0;function nM(t){const e=dy(t),n=t.proxy,r=t.ctx;gg=!1,e.beforeCreate&&ZT(e.beforeCreate,t,"bc");const{data:s,computed:i,methods:o,watch:a,provide:l,inject:u,created:f,beforeMount:h,mounted:d,beforeUpdate:p,updated:g,activated:_,deactivated:v,beforeDestroy:N,beforeUnmount:O,destroyed:T,unmounted:C,render:x,renderTracked:L,renderTriggered:R,errorCaptured:w,serverPrefetch:E,expose:b,inheritAttrs:k,components:P,directives:A,filters:te}=e;if(u&&rM(u,r,null),o)for(const ne in o){const J=o[ne];be(J)&&(r[ne]=J.bind(n))}if(s){const ne=s.call(n,n);Ze(ne)&&(t.data=nn(ne))}if(gg=!0,i)for(const ne in i){const J=i[ne],Ue=be(J)?J.bind(n,n):be(J.get)?J.get.bind(n,n):en,lt=!be(J)&&be(J.set)?J.set.bind(n):en,ct=de({get:Ue,set:lt});Object.defineProperty(r,ne,{enumerable:!0,configurable:!0,get:()=>ct.value,set:Ye=>ct.value=Ye})}if(a)for(const ne in a)eA(a[ne],r,n,ne);if(l){const ne=be(l)?l.call(n):l;Reflect.ownKeys(ne).forEach(J=>{fs(J,ne[J])})}f&&ZT(f,t,"c");function z(ne,J){oe(J)?J.forEach(Ue=>ne(Ue.bind(n))):J&&ne(J.bind(n))}if(z(YI,h),z(Jr,d),z(ly,p),z(xd,g),z(oy,_),z(ay,v),z(Md,w),z(XI,L),z(KI,R),z(aa,O),z(la,C),z(zI,E),oe(b))if(b.length){const ne=t.exposed||(t.exposed={});b.forEach(J=>{Object.defineProperty(ne,J,{get:()=>n[J],set:Ue=>n[J]=Ue,enumerable:!0})})}else t.exposed||(t.exposed={});x&&t.render===en&&(t.render=x),k!=null&&(t.inheritAttrs=k),P&&(t.components=P),A&&(t.directives=A),E&&iy(t)}function rM(t,e,n=en){oe(t)&&(t=_g(t));for(const r in t){const s=t[r];let i;Ze(s)?"default"in s?i=Wt(s.from||r,s.default,!0):i=Wt(s.from||r):i=Wt(s),ft(i)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):e[r]=i}}function ZT(t,e,n){Rr(oe(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function eA(t,e,n,r){let s=r.includes(".")?yA(n,r):()=>n[r];if(Ce(t)){const i=e[t];be(i)&&br(s,i)}else if(be(t))br(s,t.bind(n));else if(Ze(t))if(oe(t))t.forEach(i=>eA(i,e,n,r));else{const i=be(t.handler)?t.handler.bind(n):e[t.handler];be(i)&&br(s,i,t)}}function dy(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=t.appContext,a=i.get(e);let l;return a?l=a:!s.length&&!n&&!r?l=e:(l={},s.length&&s.forEach(u=>Rh(l,u,o,!0)),Rh(l,e,o)),Ze(e)&&i.set(e,l),l}function Rh(t,e,n,r=!1){const{mixins:s,extends:i}=e;i&&Rh(t,i,n,!0),s&&s.forEach(o=>Rh(t,o,n,!0));for(const o in e)if(!(r&&o==="expose")){const a=sM[o]||n&&n[o];t[o]=a?a(t[o],e[o]):e[o]}return t}const sM={data:ew,props:tw,emits:tw,methods:ic,computed:ic,beforeCreate:jn,created:jn,beforeMount:jn,mounted:jn,beforeUpdate:jn,updated:jn,beforeDestroy:jn,beforeUnmount:jn,destroyed:jn,unmounted:jn,activated:jn,deactivated:jn,errorCaptured:jn,serverPrefetch:jn,components:ic,directives:ic,watch:oM,provide:ew,inject:iM};function ew(t,e){return e?t?function(){return Ve(be(t)?t.call(this,this):t,be(e)?e.call(this,this):e)}:e:t}function iM(t,e){return ic(_g(t),_g(e))}function _g(t){if(oe(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function jn(t,e){return t?[...new Set([].concat(t,e))]:e}function ic(t,e){return t?Ve(Object.create(null),t,e):e}function tw(t,e){return t?oe(t)&&oe(e)?[...new Set([...t,...e])]:Ve(Object.create(null),Fc(t),Fc(e??{})):e}function oM(t,e){if(!t)return e;if(!e)return t;const n=Ve(Object.create(null),t);for(const r in e)n[r]=jn(t[r],e[r]);return n}function tA(){return{app:null,config:{isNativeTag:bo,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 aM=0;function lM(t,e){return function(r,s=null){be(r)||(r=Ve({},r)),s!=null&&!Ze(s)&&(s=null);const i=tA(),o=new WeakSet,a=[];let l=!1;const u=i.app={_uid:aM++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:DA,get config(){return i.config},set config(f){},use(f,...h){return o.has(f)||(f&&be(f.install)?(o.add(f),f.install(u,...h)):be(f)&&(o.add(f),f(u,...h))),u},mixin(f){return i.mixins.includes(f)||i.mixins.push(f),u},component(f,h){return h?(i.components[f]=h,u):i.components[f]},directive(f,h){return h?(i.directives[f]=h,u):i.directives[f]},mount(f,h,d){if(!l){const p=u._ceVNode||_e(r,s);return p.appContext=i,d===!0?d="svg":d===!1&&(d=void 0),h&&e?e(p,f):t(p,f,d),l=!0,u._container=f,f.__vue_app__=u,Au(p.component)}},onUnmount(f){a.push(f)},unmount(){l&&(Rr(a,u._instance,16),t(null,u._container),delete u._container.__vue_app__)},provide(f,h){return i.provides[f]=h,u},runWithContext(f){const h=Lo;Lo=u;try{return f()}finally{Lo=h}}};return u}}let Lo=null;function fs(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 Wt(t,e,n=!1){const r=rn();if(r||Lo){let s=Lo?Lo._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&t in s)return s[t];if(arguments.length>1)return n&&be(e)?e.call(r&&r.proxy):e}}function El(){return!!(rn()||Lo)}const nA={},rA=()=>Object.create(nA),sA=t=>Object.getPrototypeOf(t)===nA;function cM(t,e,n,r=!1){const s={},i=rA();t.propsDefaults=Object.create(null),iA(t,e,s,i);for(const o in t.propsOptions[0])o in s||(s[o]=void 0);n?t.props=r?s:Fr(s):t.type.props?t.props=s:t.props=i,t.attrs=i}function uM(t,e,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=t,a=Re(s),[l]=t.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const f=t.vnode.dynamicProps;for(let h=0;h<f.length;h++){let d=f[h];if(Ld(t.emitsOptions,d))continue;const p=e[d];if(l)if(Xe(i,d))p!==i[d]&&(i[d]=p,u=!0);else{const g=mt(d);s[g]=yg(l,a,g,p,t,!1)}else p!==i[d]&&(i[d]=p,u=!0)}}}else{iA(t,e,s,i)&&(u=!0);let f;for(const h in a)(!e||!Xe(e,h)&&((f=On(h))===h||!Xe(e,f)))&&(l?n&&(n[h]!==void 0||n[f]!==void 0)&&(s[h]=yg(l,a,h,void 0,t,!0)):delete s[h]);if(i!==a)for(const h in i)(!e||!Xe(e,h))&&(delete i[h],u=!0)}u&&Ls(t.attrs,"set","")}function iA(t,e,n,r){const[s,i]=t.propsOptions;let o=!1,a;if(e)for(let l in e){if(qs(l))continue;const u=e[l];let f;s&&Xe(s,f=mt(l))?!i||!i.includes(f)?n[f]=u:(a||(a={}))[f]=u:Ld(t.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,o=!0)}if(i){const l=Re(n),u=a||Fe;for(let f=0;f<i.length;f++){const h=i[f];n[h]=yg(s,l,h,u[h],t,!Xe(u,h))}}return o}function yg(t,e,n,r,s,i){const o=t[n];if(o!=null){const a=Xe(o,"default");if(a&&r===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&be(l)){const{propsDefaults:u}=s;if(n in u)r=u[n];else{const f=Go(s);r=u[n]=l.call(null,e),f()}}else r=l;s.ce&&s.ce._setProp(n,r)}o[0]&&(i&&!a?r=!1:o[1]&&(r===""||r===On(n))&&(r=!0))}return r}const fM=new WeakMap;function oA(t,e,n=!1){const r=n?fM:e.propsCache,s=r.get(t);if(s)return s;const i=t.props,o={},a=[];let l=!1;if(!be(t)){const f=h=>{l=!0;const[d,p]=oA(h,e,!0);Ve(o,d),p&&a.push(...p)};!n&&e.mixins.length&&e.mixins.forEach(f),t.extends&&f(t.extends),t.mixins&&t.mixins.forEach(f)}if(!i&&!l)return Ze(t)&&r.set(t,Oo),Oo;if(oe(i))for(let f=0;f<i.length;f++){const h=mt(i[f]);nw(h)&&(o[h]=Fe)}else if(i)for(const f in i){const h=mt(f);if(nw(h)){const d=i[f],p=o[h]=oe(d)||be(d)?{type:d}:Ve({},d),g=p.type;let _=!1,v=!0;if(oe(g))for(let N=0;N<g.length;++N){const O=g[N],T=be(O)&&O.name;if(T==="Boolean"){_=!0;break}else T==="String"&&(v=!1)}else _=be(g)&&g.name==="Boolean";p[0]=_,p[1]=v,(_||Xe(p,"default"))&&a.push(h)}}const u=[o,a];return Ze(t)&&r.set(t,u),u}function nw(t){return t[0]!=="$"&&!qs(t)}const py=t=>t==="_"||t==="_ctx"||t==="$stable",my=t=>oe(t)?t.map(nr):[nr(t)],hM=(t,e,n)=>{if(e._n)return e;const r=Cn((...s)=>my(e(...s)),n);return r._c=!1,r},aA=(t,e,n)=>{const r=t._ctx;for(const s in t){if(py(s))continue;const i=t[s];if(be(i))e[s]=hM(s,i,r);else if(i!=null){const o=my(i);e[s]=()=>o}}},lA=(t,e)=>{const n=my(e);t.slots.default=()=>n},cA=(t,e,n)=>{for(const r in e)(n||!py(r))&&(t[r]=e[r])},dM=(t,e,n)=>{const r=t.slots=rA();if(t.vnode.shapeFlag&32){const s=e._;s?(cA(r,e,n),n&&W_(r,"_",s,!0)):aA(e,r)}else e&&lA(t,e)},pM=(t,e,n)=>{const{vnode:r,slots:s}=t;let i=!0,o=Fe;if(r.shapeFlag&32){const a=e._;a?n&&a===1?i=!1:cA(s,e,n):(i=!e.$stable,aA(e,s)),o=e}else e&&(lA(t,e),o={default:1});if(i)for(const a in s)!py(a)&&o[a]==null&&delete s[a]},jt=wA;function uA(t){return hA(t)}function fA(t){return hA(t,Ax)}function hA(t,e){const n=Tu();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:a,createComment:l,setText:u,setElementText:f,parentNode:h,nextSibling:d,setScopeId:p=en,insertStaticContent:g}=t,_=(S,D,M,H=null,F=null,W=null,Z=void 0,Q=null,X=!!D.dynamicChildren)=>{if(S===D)return;S&&!Ur(S,D)&&(H=$(S),Ye(S,F,W,!0),S=null),D.patchFlag===-2&&(X=!1,D.dynamicChildren=null);const{type:G,ref:Ee,shapeFlag:ie}=D;switch(G){case Ui:v(S,D,M,H);break;case Vt:N(S,D,M,H);break;case Vo:S==null&&O(D,M,H,Z);break;case St:P(S,D,M,H,F,W,Z,Q,X);break;default:ie&1?x(S,D,M,H,F,W,Z,Q,X):ie&6?A(S,D,M,H,F,W,Z,Q,X):(ie&64||ie&128)&&G.process(S,D,M,H,F,W,Z,Q,X,fe)}Ee!=null&&F?Ma(Ee,S&&S.ref,W,D||S,!D):Ee==null&&S&&S.ref!=null&&Ma(S.ref,null,W,S,!0)},v=(S,D,M,H)=>{if(S==null)r(D.el=a(D.children),M,H);else{const F=D.el=S.el;D.children!==S.children&&u(F,D.children)}},N=(S,D,M,H)=>{S==null?r(D.el=l(D.children||""),M,H):D.el=S.el},O=(S,D,M,H)=>{[S.el,S.anchor]=g(S.children,D,M,H,S.el,S.anchor)},T=({el:S,anchor:D},M,H)=>{let F;for(;S&&S!==D;)F=d(S),r(S,M,H),S=F;r(D,M,H)},C=({el:S,anchor:D})=>{let M;for(;S&&S!==D;)M=d(S),s(S),S=M;s(D)},x=(S,D,M,H,F,W,Z,Q,X)=>{if(D.type==="svg"?Z="svg":D.type==="math"&&(Z="mathml"),S==null)L(D,M,H,F,W,Z,Q,X);else{const G=S.el&&S.el._isVueCE?S.el:null;try{G&&G._beginPatch(),E(S,D,F,W,Z,Q,X)}finally{G&&G._endPatch()}}},L=(S,D,M,H,F,W,Z,Q)=>{let X,G;const{props:Ee,shapeFlag:ie,transition:ge,dirs:pe}=S;if(X=S.el=o(S.type,W,Ee&&Ee.is,Ee),ie&8?f(X,S.children):ie&16&&w(S.children,X,null,H,F,_m(S,W),Z,Q),pe&&ss(S,null,H,"created"),R(X,S,S.scopeId,Z,H),Ee){for(const tt in Ee)tt!=="value"&&!qs(tt)&&i(X,tt,null,Ee[tt],W,H);"value"in Ee&&i(X,"value",null,Ee.value,W),(G=Ee.onVnodeBeforeMount)&&er(G,H,S)}pe&&ss(S,null,H,"beforeMount");const Se=dA(F,ge);Se&&ge.beforeEnter(X),r(X,D,M),((G=Ee&&Ee.onVnodeMounted)||Se||pe)&&jt(()=>{G&&er(G,H,S),Se&&ge.enter(X),pe&&ss(S,null,H,"mounted")},F)},R=(S,D,M,H,F)=>{if(M&&p(S,M),H)for(let W=0;W<H.length;W++)p(S,H[W]);if(F){let W=F.subTree;if(D===W||Ph(W.type)&&(W.ssContent===D||W.ssFallback===D)){const Z=F.vnode;R(S,Z,Z.scopeId,Z.slotScopeIds,F.parent)}}},w=(S,D,M,H,F,W,Z,Q,X=0)=>{for(let G=X;G<S.length;G++){const Ee=S[G]=Q?Ii(S[G]):nr(S[G]);_(null,Ee,D,M,H,F,W,Z,Q)}},E=(S,D,M,H,F,W,Z)=>{const Q=D.el=S.el;let{patchFlag:X,dynamicChildren:G,dirs:Ee}=D;X|=S.patchFlag&16;const ie=S.props||Fe,ge=D.props||Fe;let pe;if(M&&go(M,!1),(pe=ge.onVnodeBeforeUpdate)&&er(pe,M,D,S),Ee&&ss(D,S,M,"beforeUpdate"),M&&go(M,!0),(ie.innerHTML&&ge.innerHTML==null||ie.textContent&&ge.textContent==null)&&f(Q,""),G?b(S.dynamicChildren,G,Q,M,H,_m(D,F),W):Z||J(S,D,Q,null,M,H,_m(D,F),W,!1),X>0){if(X&16)k(Q,ie,ge,M,F);else if(X&2&&ie.class!==ge.class&&i(Q,"class",null,ge.class,F),X&4&&i(Q,"style",ie.style,ge.style,F),X&8){const Se=D.dynamicProps;for(let tt=0;tt<Se.length;tt++){const ze=Se[tt],on=ie[ze],Xt=ge[ze];(Xt!==on||ze==="value")&&i(Q,ze,on,Xt,F,M)}}X&1&&S.children!==D.children&&f(Q,D.children)}else!Z&&G==null&&k(Q,ie,ge,M,F);((pe=ge.onVnodeUpdated)||Ee)&&jt(()=>{pe&&er(pe,M,D,S),Ee&&ss(D,S,M,"updated")},H)},b=(S,D,M,H,F,W,Z)=>{for(let Q=0;Q<D.length;Q++){const X=S[Q],G=D[Q],Ee=X.el&&(X.type===St||!Ur(X,G)||X.shapeFlag&198)?h(X.el):M;_(X,G,Ee,null,H,F,W,Z,!0)}},k=(S,D,M,H,F)=>{if(D!==M){if(D!==Fe)for(const W in D)!qs(W)&&!(W in M)&&i(S,W,D[W],null,F,H);for(const W in M){if(qs(W))continue;const Z=M[W],Q=D[W];Z!==Q&&W!=="value"&&i(S,W,Q,Z,F,H)}"value"in M&&i(S,"value",D.value,M.value,F)}},P=(S,D,M,H,F,W,Z,Q,X)=>{const G=D.el=S?S.el:a(""),Ee=D.anchor=S?S.anchor:a("");let{patchFlag:ie,dynamicChildren:ge,slotScopeIds:pe}=D;pe&&(Q=Q?Q.concat(pe):pe),S==null?(r(G,M,H),r(Ee,M,H),w(D.children||[],M,Ee,F,W,Z,Q,X)):ie>0&&ie&64&&ge&&S.dynamicChildren?(b(S.dynamicChildren,ge,M,F,W,Z,Q),(D.key!=null||F&&D===F.subTree)&&gy(S,D,!0)):J(S,D,M,Ee,F,W,Z,Q,X)},A=(S,D,M,H,F,W,Z,Q,X)=>{D.slotScopeIds=Q,S==null?D.shapeFlag&512?F.ctx.activate(D,M,H,Z,X):te(D,M,H,F,W,Z,X):he(S,D,X)},te=(S,D,M,H,F,W,Z)=>{const Q=S.component=RA(S,H,F);if(Su(S)&&(Q.ctx.renderer=fe),PA(Q,!1,Z),Q.asyncDep){if(F&&F.registerDep(Q,z,Z),!S.el){const X=Q.subTree=_e(Vt);N(null,X,D,M),S.placeholder=X.el}}else z(Q,S,D,M,F,W,Z)},he=(S,D,M)=>{const H=D.component=S.component;if(SM(S,D,M))if(H.asyncDep&&!H.asyncResolved){ne(H,D,M);return}else H.next=D,H.update();else D.el=S.el,H.vnode=D},z=(S,D,M,H,F,W,Z)=>{const Q=()=>{if(S.isMounted){let{next:ie,bu:ge,u:pe,parent:Se,vnode:tt}=S;{const yn=pA(S);if(yn){ie&&(ie.el=tt.el,ne(S,ie,Z)),yn.asyncDep.then(()=>{S.isUnmounted||Q()});return}}let ze=ie,on;go(S,!1),ie?(ie.el=tt.el,ne(S,ie,Z)):ie=tt,ge&&Do(ge),(on=ie.props&&ie.props.onVnodeBeforeUpdate)&&er(on,Se,ie,tt),go(S,!0);const Xt=Wf(S),an=S.subTree;S.subTree=Xt,_(an,Xt,h(an.el),$(an),S,F,W),ie.el=Xt.el,ze===null&&Vd(S,Xt.el),pe&&jt(pe,F),(on=ie.props&&ie.props.onVnodeUpdated)&&jt(()=>er(on,Se,ie,tt),F)}else{let ie;const{el:ge,props:pe}=D,{bm:Se,m:tt,parent:ze,root:on,type:Xt}=S,an=Vi(D);if(go(S,!1),Se&&Do(Se),!an&&(ie=pe&&pe.onVnodeBeforeMount)&&er(ie,ze,D),go(S,!0),ge&&K){const yn=()=>{S.subTree=Wf(S),K(ge,S.subTree,S,F,null)};an&&Xt.__asyncHydrate?Xt.__asyncHydrate(ge,S,yn):yn()}else{on.ce&&on.ce._def.shadowRoot!==!1&&on.ce._injectChildStyle(Xt);const yn=S.subTree=Wf(S);_(null,yn,M,H,S,F,W),D.el=yn.el}if(tt&&jt(tt,F),!an&&(ie=pe&&pe.onVnodeMounted)){const yn=D;jt(()=>er(ie,ze,yn),F)}(D.shapeFlag&256||ze&&Vi(ze.vnode)&&ze.vnode.shapeFlag&256)&&S.a&&jt(S.a,F),S.isMounted=!0,D=M=H=null}};S.scope.on();const X=S.effect=new Dc(Q);S.scope.off();const G=S.update=X.run.bind(X),Ee=S.job=X.runIfDirty.bind(X);Ee.i=S,Ee.id=S.uid,X.scheduler=()=>ny(Ee),go(S,!0),G()},ne=(S,D,M)=>{D.component=S;const H=S.vnode.props;S.vnode=D,S.next=null,uM(S,D.props,H,M),pM(S,D.children,M),Js(),qT(S),Qs()},J=(S,D,M,H,F,W,Z,Q,X=!1)=>{const G=S&&S.children,Ee=S?S.shapeFlag:0,ie=D.children,{patchFlag:ge,shapeFlag:pe}=D;if(ge>0){if(ge&128){lt(G,ie,M,H,F,W,Z,Q,X);return}else if(ge&256){Ue(G,ie,M,H,F,W,Z,Q,X);return}}pe&8?(Ee&16&&_n(G,F,W),ie!==G&&f(M,ie)):Ee&16?pe&16?lt(G,ie,M,H,F,W,Z,Q,X):_n(G,F,W,!0):(Ee&8&&f(M,""),pe&16&&w(ie,M,H,F,W,Z,Q,X))},Ue=(S,D,M,H,F,W,Z,Q,X)=>{S=S||Oo,D=D||Oo;const G=S.length,Ee=D.length,ie=Math.min(G,Ee);let ge;for(ge=0;ge<ie;ge++){const pe=D[ge]=X?Ii(D[ge]):nr(D[ge]);_(S[ge],pe,M,null,F,W,Z,Q,X)}G>Ee?_n(S,F,W,!0,!1,ie):w(D,M,H,F,W,Z,Q,X,ie)},lt=(S,D,M,H,F,W,Z,Q,X)=>{let G=0;const Ee=D.length;let ie=S.length-1,ge=Ee-1;for(;G<=ie&&G<=ge;){const pe=S[G],Se=D[G]=X?Ii(D[G]):nr(D[G]);if(Ur(pe,Se))_(pe,Se,M,null,F,W,Z,Q,X);else break;G++}for(;G<=ie&&G<=ge;){const pe=S[ie],Se=D[ge]=X?Ii(D[ge]):nr(D[ge]);if(Ur(pe,Se))_(pe,Se,M,null,F,W,Z,Q,X);else break;ie--,ge--}if(G>ie){if(G<=ge){const pe=ge+1,Se=pe<Ee?D[pe].el:H;for(;G<=ge;)_(null,D[G]=X?Ii(D[G]):nr(D[G]),M,Se,F,W,Z,Q,X),G++}}else if(G>ge)for(;G<=ie;)Ye(S[G],F,W,!0),G++;else{const pe=G,Se=G,tt=new Map;for(G=Se;G<=ge;G++){const Bn=D[G]=X?Ii(D[G]):nr(D[G]);Bn.key!=null&&tt.set(Bn.key,G)}let ze,on=0;const Xt=ge-Se+1;let an=!1,yn=0;const di=new Array(Xt);for(G=0;G<Xt;G++)di[G]=0;for(G=pe;G<=ie;G++){const Bn=S[G];if(on>=Xt){Ye(Bn,F,W,!0);continue}let Er;if(Bn.key!=null)Er=tt.get(Bn.key);else for(ze=Se;ze<=ge;ze++)if(di[ze-Se]===0&&Ur(Bn,D[ze])){Er=ze;break}Er===void 0?Ye(Bn,F,W,!0):(di[Er-Se]=G+1,Er>=yn?yn=Er:an=!0,_(Bn,D[Er],M,null,F,W,Z,Q,X),on++)}const da=an?mM(di):Oo;for(ze=da.length-1,G=Xt-1;G>=0;G--){const Bn=Se+G,Er=D[Bn],pa=D[Bn+1],Ll=Bn+1<Ee?pa.el||pa.placeholder:H;di[G]===0?_(null,Er,M,Ll,F,W,Z,Q,X):an&&(ze<0||G!==da[ze]?ct(Er,M,Ll,2):ze--)}}},ct=(S,D,M,H,F=null)=>{const{el:W,type:Z,transition:Q,children:X,shapeFlag:G}=S;if(G&6){ct(S.component.subTree,D,M,H);return}if(G&128){S.suspense.move(D,M,H);return}if(G&64){Z.move(S,D,M,fe);return}if(Z===St){r(W,D,M);for(let ie=0;ie<X.length;ie++)ct(X[ie],D,M,H);r(S.anchor,D,M);return}if(Z===Vo){T(S,D,M);return}if(H!==2&&G&1&&Q)if(H===0)Q.beforeEnter(W),r(W,D,M),jt(()=>Q.enter(W),F);else{const{leave:ie,delayLeave:ge,afterLeave:pe}=Q,Se=()=>{S.ctx.isUnmounted?s(W):r(W,D,M)},tt=()=>{W._isLeaving&&W[Ms](!0),ie(W,()=>{Se(),pe&&pe()})};ge?ge(W,Se,tt):tt()}else r(W,D,M)},Ye=(S,D,M,H=!1,F=!1)=>{const{type:W,props:Z,ref:Q,children:X,dynamicChildren:G,shapeFlag:Ee,patchFlag:ie,dirs:ge,cacheIndex:pe}=S;if(ie===-2&&(F=!1),Q!=null&&(Js(),Ma(Q,null,M,S,!0),Qs()),pe!=null&&(D.renderCache[pe]=void 0),Ee&256){D.ctx.deactivate(S);return}const Se=Ee&1&&ge,tt=!Vi(S);let ze;if(tt&&(ze=Z&&Z.onVnodeBeforeUnmount)&&er(ze,D,S),Ee&6)Kt(S.component,M,H);else{if(Ee&128){S.suspense.unmount(M,H);return}Se&&ss(S,null,D,"beforeUnmount"),Ee&64?S.type.remove(S,D,M,fe,H):G&&!G.hasOnce&&(W!==St||ie>0&&ie&64)?_n(G,D,M,!1,!0):(W===St&&ie&384||!F&&Ee&16)&&_n(X,D,M),H&&ot(S)}(tt&&(ze=Z&&Z.onVnodeUnmounted)||Se)&&jt(()=>{ze&&er(ze,D,S),Se&&ss(S,null,D,"unmounted")},M)},ot=S=>{const{type:D,el:M,anchor:H,transition:F}=S;if(D===St){Fn(M,H);return}if(D===Vo){C(S);return}const W=()=>{s(M),F&&!F.persisted&&F.afterLeave&&F.afterLeave()};if(S.shapeFlag&1&&F&&!F.persisted){const{leave:Z,delayLeave:Q}=F,X=()=>Z(M,W);Q?Q(S.el,W,X):X()}else W()},Fn=(S,D)=>{let M;for(;S!==D;)M=d(S),s(S),S=M;s(D)},Kt=(S,D,M)=>{const{bum:H,scope:F,job:W,subTree:Z,um:Q,m:X,a:G}=S;Ch(X),Ch(G),H&&Do(H),F.stop(),W&&(W.flags|=8,Ye(Z,S,D,M)),Q&&jt(Q,D),jt(()=>{S.isUnmounted=!0},D)},_n=(S,D,M,H=!1,F=!1,W=0)=>{for(let Z=W;Z<S.length;Z++)Ye(S[Z],D,M,H,F)},$=S=>{if(S.shapeFlag&6)return $(S.component.subTree);if(S.shapeFlag&128)return S.suspense.next();const D=d(S.anchor||S.el),M=D&&D[LI];return M?d(M):D};let ae=!1;const re=(S,D,M)=>{S==null?D._vnode&&Ye(D._vnode,null,null,!0):_(D._vnode||null,S,D,null,null,null,M),D._vnode=S,ae||(ae=!0,qT(),Ih(),ae=!1)},fe={p:_,um:Ye,m:ct,r:ot,mt:te,mc:w,pc:J,pbc:b,n:$,o:t};let Ne,K;return e&&([Ne,K]=e(fe)),{render:re,hydrate:Ne,createApp:lM(re,Ne)}}function _m({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 go({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function dA(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function gy(t,e,n=!1){const r=t.children,s=e.children;if(oe(r)&&oe(s))for(let i=0;i<r.length;i++){const o=r[i];let a=s[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[i]=Ii(s[i]),a.el=o.el),!n&&a.patchFlag!==-2&&gy(o,a)),a.type===Ui&&a.patchFlag!==-1&&(a.el=o.el),a.type===Vt&&!a.el&&(a.el=o.el)}}function mM(t){const e=t.slice(),n=[0];let r,s,i,o,a;const l=t.length;for(r=0;r<l;r++){const u=t[r];if(u!==0){if(s=n[n.length-1],t[s]<u){e[r]=s,n.push(r);continue}for(i=0,o=n.length-1;i<o;)a=i+o>>1,t[n[a]]<u?i=a+1:o=a;u<t[n[i]]&&(i>0&&(e[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=e[o];return n}function pA(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:pA(e)}function Ch(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}const mA=Symbol.for("v-scx"),gA=()=>Wt(mA);function La(t,e){return Iu(t,null,e)}function gM(t,e){return Iu(t,null,{flush:"post"})}function _A(t,e){return Iu(t,null,{flush:"sync"})}function br(t,e,n){return Iu(t,e,n)}function Iu(t,e,n=Fe){const{immediate:r,deep:s,flush:i,once:o}=n,a=Ve({},n),l=e&&r||!e&&i!=="post";let u;if(Ja){if(i==="sync"){const p=gA();u=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=en,p.resume=en,p.pause=en,p}}const f=dn;a.call=(p,g,_)=>Rr(p,f,g,_);let h=!1;i==="post"?a.scheduler=p=>{jt(p,f&&f.suspense)}:i!=="sync"&&(h=!0,a.scheduler=(p,g)=>{g?p():ny(p)}),a.augmentJob=p=>{e&&(p.flags|=4),h&&(p.flags|=2,f&&(p.id=f.uid,p.i=f))};const d=cx(t,e,a);return Ja&&(u?u.push(d):l&&d()),d}function _M(t,e,n){const r=this.proxy,s=Ce(t)?t.includes(".")?yA(r,t):()=>r[t]:t.bind(r,r);let i;be(e)?i=e:(i=e.handler,n=e);const o=Go(this),a=Iu(s,i.bind(r),n);return o(),a}function yA(t,e){const n=e.split(".");return()=>{let r=t;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}function yM(t,e,n=Fe){const r=rn(),s=mt(e),i=On(e),o=EA(t,s),a=AI((l,u)=>{let f,h=Fe,d;return _A(()=>{const p=t[s];An(f,p)&&(f=p,u())}),{get(){return l(),n.get?n.get(f):f},set(p){const g=n.set?n.set(p):p;if(!An(g,f)&&!(h!==Fe&&An(p,h)))return;const _=r.vnode.props;_&&(e in _||s in _||i in _)&&(`onUpdate:${e}`in _||`onUpdate:${s}`in _||`onUpdate:${i}`in _)||(f=p,u()),r.emit(`update:${e}`,g),An(p,g)&&An(p,h)&&!An(g,d)&&u(),h=p,d=g}}});return a[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?o||Fe:a,done:!1}:{done:!0}}}},a}const EA=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${mt(e)}Modifiers`]||t[`${On(e)}Modifiers`];function EM(t,e,...n){if(t.isUnmounted)return;const r=t.vnode.props||Fe;let s=n;const i=e.startsWith("update:"),o=i&&EA(r,e.slice(7));o&&(o.trim&&(s=n.map(f=>Ce(f)?f.trim():f)),o.number&&(s=n.map(vu)));let a,l=r[a=ko(e)]||r[a=ko(mt(e))];!l&&i&&(l=r[a=ko(On(e))]),l&&Rr(l,t,6,s);const u=r[a+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,Rr(u,t,6,s)}}const vM=new WeakMap;function vA(t,e,n=!1){const r=n?vM:e.emitsCache,s=r.get(t);if(s!==void 0)return s;const i=t.emits;let o={},a=!1;if(!be(t)){const l=u=>{const f=vA(u,e,!0);f&&(a=!0,Ve(o,f))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!i&&!a?(Ze(t)&&r.set(t,null),null):(oe(i)?i.forEach(l=>o[l]=null):Ve(o,i),Ze(t)&&r.set(t,o),o)}function Ld(t,e){return!t||!no(e)?!1:(e=e.slice(2).replace(/Once$/,""),Xe(t,e[0].toLowerCase()+e.slice(1))||Xe(t,On(e))||Xe(t,e))}function Wf(t){const{type:e,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:o,attrs:a,emit:l,render:u,renderCache:f,props:h,data:d,setupState:p,ctx:g,inheritAttrs:_}=t,v=Uc(t);let N,O;try{if(n.shapeFlag&4){const C=s||r,x=C;N=nr(u.call(x,C,f,h,p,d,g)),O=a}else{const C=e;N=nr(C.length>1?C(h,{attrs:a,slots:o,emit:l}):C(h,null)),O=e.props?a:wM(a)}}catch(C){_c.length=0,oa(C,t,1),N=_e(Vt)}let T=N;if(O&&_!==!1){const C=Object.keys(O),{shapeFlag:x}=T;C.length&&x&7&&(i&&C.some(Ed)&&(O=bM(O,i)),T=Cr(T,O,!1,!0))}return n.dirs&&(T=Cr(T,null,!1,!0),T.dirs=T.dirs?T.dirs.concat(n.dirs):n.dirs),n.transition&&Zs(T,n.transition),N=T,Uc(v),N}function TM(t,e=!0){let n;for(let r=0;r<t.length;r++){const s=t[r];if(Gr(s)){if(s.type!==Vt||s.children==="v-if"){if(n)return;n=s}}else return}return n}const wM=t=>{let e;for(const n in t)(n==="class"||n==="style"||no(n))&&((e||(e={}))[n]=t[n]);return e},bM=(t,e)=>{const n={};for(const r in t)(!Ed(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function SM(t,e,n){const{props:r,children:s,component:i}=t,{props:o,children:a,patchFlag:l}=e,u=i.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?rw(r,o,u):!!o;if(l&8){const f=e.dynamicProps;for(let h=0;h<f.length;h++){const d=f[h];if(o[d]!==r[d]&&!Ld(u,d))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===o?!1:r?o?rw(r,o,u):!0:!!o;return!1}function rw(t,e,n){const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!0;for(let s=0;s<r.length;s++){const i=r[s];if(e[i]!==t[i]&&!Ld(n,i))return!0}return!1}function Vd({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 Ph=t=>t.__isSuspense;let Eg=0;const IM={name:"Suspense",__isSuspense:!0,process(t,e,n,r,s,i,o,a,l,u){if(t==null)AM(e,n,r,s,i,o,a,l,u);else{if(i&&i.deps>0&&!t.suspense.isInFallback){e.suspense=t.suspense,e.suspense.vnode=e,e.el=t.el;return}RM(t,e,n,r,s,o,a,l,u)}},hydrate:CM,normalize:PM},Ud=IM;function Bc(t,e){const n=t.props&&t.props[e];be(n)&&n()}function AM(t,e,n,r,s,i,o,a,l){const{p:u,o:{createElement:f}}=l,h=f("div"),d=t.suspense=TA(t,s,r,e,h,n,i,o,a,l);u(null,d.pendingBranch=t.ssContent,h,null,r,d,i,o),d.deps>0?(Bc(t,"onPending"),Bc(t,"onFallback"),u(null,t.ssFallback,e,n,r,null,i,o),Va(d,t.ssFallback)):d.resolve(!1,!0)}function RM(t,e,n,r,s,i,o,a,{p:l,um:u,o:{createElement:f}}){const h=e.suspense=t.suspense;h.vnode=e,e.el=t.el;const d=e.ssContent,p=e.ssFallback,{activeBranch:g,pendingBranch:_,isInFallback:v,isHydrating:N}=h;if(_)h.pendingBranch=d,Ur(_,d)?(l(_,d,h.hiddenContainer,null,s,h,i,o,a),h.deps<=0?h.resolve():v&&(N||(l(g,p,n,r,s,null,i,o,a),Va(h,p)))):(h.pendingId=Eg++,N?(h.isHydrating=!1,h.activeBranch=_):u(_,s,h),h.deps=0,h.effects.length=0,h.hiddenContainer=f("div"),v?(l(null,d,h.hiddenContainer,null,s,h,i,o,a),h.deps<=0?h.resolve():(l(g,p,n,r,s,null,i,o,a),Va(h,p))):g&&Ur(g,d)?(l(g,d,n,r,s,h,i,o,a),h.resolve(!0)):(l(null,d,h.hiddenContainer,null,s,h,i,o,a),h.deps<=0&&h.resolve()));else if(g&&Ur(g,d))l(g,d,n,r,s,h,i,o,a),Va(h,d);else if(Bc(e,"onPending"),h.pendingBranch=d,d.shapeFlag&512?h.pendingId=d.component.suspenseId:h.pendingId=Eg++,l(null,d,h.hiddenContainer,null,s,h,i,o,a),h.deps<=0)h.resolve();else{const{timeout:O,pendingId:T}=h;O>0?setTimeout(()=>{h.pendingId===T&&h.fallback(p)},O):O===0&&h.fallback(p)}}function TA(t,e,n,r,s,i,o,a,l,u,f=!1){const{p:h,m:d,um:p,n:g,o:{parentNode:_,remove:v}}=u;let N;const O=OM(t);O&&e&&e.pendingBranch&&(N=e.pendingId,e.deps++);const T=t.props?kc(t.props.timeout):void 0,C=i,x={vnode:t,parent:e,parentComponent:n,namespace:o,container:r,hiddenContainer:s,deps:0,pendingId:Eg++,timeout:typeof T=="number"?T:-1,activeBranch:null,pendingBranch:null,isInFallback:!f,isHydrating:f,isUnmounted:!1,effects:[],resolve(L=!1,R=!1){const{vnode:w,activeBranch:E,pendingBranch:b,pendingId:k,effects:P,parentComponent:A,container:te,isInFallback:he}=x;let z=!1;x.isHydrating?x.isHydrating=!1:L||(z=E&&b.transition&&b.transition.mode==="out-in",z&&(E.transition.afterLeave=()=>{k===x.pendingId&&(d(b,te,i===C?g(E):i,0),Lc(P),he&&w.ssFallback&&(w.ssFallback.el=null))}),E&&(_(E.el)===te&&(i=g(E)),p(E,A,x,!0),!z&&he&&w.ssFallback&&(w.ssFallback.el=null)),z||d(b,te,i,0)),Va(x,b),x.pendingBranch=null,x.isInFallback=!1;let ne=x.parent,J=!1;for(;ne;){if(ne.pendingBranch){ne.effects.push(...P),J=!0;break}ne=ne.parent}!J&&!z&&Lc(P),x.effects=[],O&&e&&e.pendingBranch&&N===e.pendingId&&(e.deps--,e.deps===0&&!R&&e.resolve()),Bc(w,"onResolve")},fallback(L){if(!x.pendingBranch)return;const{vnode:R,activeBranch:w,parentComponent:E,container:b,namespace:k}=x;Bc(R,"onFallback");const P=g(w),A=()=>{x.isInFallback&&(h(null,L,b,P,E,null,k,a,l),Va(x,L))},te=L.transition&&L.transition.mode==="out-in";te&&(w.transition.afterLeave=A),x.isInFallback=!0,p(w,E,null,!0),te||A()},move(L,R,w){x.activeBranch&&d(x.activeBranch,L,R,w),x.container=L},next(){return x.activeBranch&&g(x.activeBranch)},registerDep(L,R,w){const E=!!x.pendingBranch;E&&x.deps++;const b=L.vnode.el;L.asyncDep.catch(k=>{oa(k,L,0)}).then(k=>{if(L.isUnmounted||x.isUnmounted||x.pendingId!==L.suspenseId)return;L.asyncResolved=!0;const{vnode:P}=L;wg(L,k,!1),b&&(P.el=b);const A=!b&&L.subTree.el;R(L,P,_(b||L.subTree.el),b?null:g(L.subTree),x,o,w),A&&(P.placeholder=null,v(A)),Vd(L,P.el),E&&--x.deps===0&&x.resolve()})},unmount(L,R){x.isUnmounted=!0,x.activeBranch&&p(x.activeBranch,n,L,R),x.pendingBranch&&p(x.pendingBranch,n,L,R)}};return x}function CM(t,e,n,r,s,i,o,a,l){const u=e.suspense=TA(e,r,n,t.parentNode,document.createElement("div"),null,s,i,o,a,!0),f=l(t,u.pendingBranch=e.ssContent,n,u,i,o);return u.deps===0&&u.resolve(!1,!0),f}function PM(t){const{shapeFlag:e,children:n}=t,r=e&32;t.ssContent=sw(r?n.default:n),t.ssFallback=r?sw(n.fallback):_e(Vt)}function sw(t){let e;if(be(t)){const n=Wo&&t._c;n&&(t._d=!1,$e()),t=t(),n&&(t._d=!0,e=Dn,bA())}return oe(t)&&(t=TM(t)),t=nr(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(n=>n!==t)),t}function wA(t,e){e&&e.pendingBranch?oe(t)?e.effects.push(...t):e.effects.push(t):Lc(t)}function Va(t,e){t.activeBranch=e;const{vnode:n,parentComponent:r}=t;let s=e.el;for(;!s&&e.component;)e=e.component.subTree,s=e.el;n.el=s,r&&r.subTree===n&&(r.vnode.el=s,Vd(r,s))}function OM(t){const e=t.props&&t.props.suspensible;return e!=null&&e!==!1}const St=Symbol.for("v-fgt"),Ui=Symbol.for("v-txt"),Vt=Symbol.for("v-cmt"),Vo=Symbol.for("v-stc"),_c=[];let Dn=null;function $e(t=!1){_c.push(Dn=t?null:[])}function bA(){_c.pop(),Dn=_c[_c.length-1]||null}let Wo=1;function Hc(t,e=!1){Wo+=t,t<0&&Dn&&e&&(Dn.hasOnce=!0)}function SA(t){return t.dynamicChildren=Wo>0?Dn||Oo:null,bA(),Wo>0&&Dn&&Dn.push(t),t}function Lt(t,e,n,r,s,i){return SA(me(t,e,n,r,s,i,!0))}function Nn(t,e,n,r,s){return SA(_e(t,e,n,r,s,!0))}function Gr(t){return t?t.__v_isVNode===!0:!1}function Ur(t,e){return t.type===e.type&&t.key===e.key}function NM(t){}const IA=({key:t})=>t??null,Gf=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?Ce(t)||ft(t)||be(t)?{i:mn,r:t,k:e,f:!!n}:t:null);function me(t,e=null,n=null,r=0,s=null,i=t===St?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&IA(e),ref:e&&Gf(e),scopeId:Nd,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:s,dynamicChildren:null,appContext:null,ctx:mn};return a?(_y(l,n),i&128&&t.normalize(l)):n&&(l.shapeFlag|=Ce(n)?8:16),Wo>0&&!o&&Dn&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Dn.push(l),l}const _e=kM;function kM(t,e=null,n=null,r=0,s=null,i=!1){if((!t||t===JI)&&(t=Vt),Gr(t)){const a=Cr(t,e,!0);return n&&_y(a,n),Wo>0&&!i&&Dn&&(a.shapeFlag&6?Dn[Dn.indexOf(t)]=a:Dn.push(a)),a.patchFlag=-2,a}if(BM(t)&&(t=t.__vccOpts),e){e=AA(e);let{class:a,style:l}=e;a&&!Ce(a)&&(e.class=_r(a)),Ze(l)&&(Pd(l)&&!oe(l)&&(l=Ve({},l)),e.style=io(l))}const o=Ce(t)?1:Ph(t)?128:VI(t)?64:Ze(t)?4:be(t)?2:0;return me(t,e,n,r,s,o,i,!0)}function AA(t){return t?Pd(t)||sA(t)?Ve({},t):t:null}function Cr(t,e,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:a,transition:l}=t,u=e?Or(s||{},e):s,f={__v_isVNode:!0,__v_skip:!0,type:t.type,props:u,key:u&&IA(u),ref:e&&e.ref?n&&i?oe(i)?i.concat(Gf(e)):[i,Gf(e)]:Gf(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!==St?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Cr(t.ssContent),ssFallback:t.ssFallback&&Cr(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&r&&Zs(f,l.clone(f)),f}function os(t=" ",e=0){return _e(Ui,null,t,e)}function DM(t,e){const n=_e(Vo,null,t);return n.staticCount=e,n}function Xa(t="",e=!1){return e?($e(),Nn(Vt,null,t)):_e(Vt,null,t)}function nr(t){return t==null||typeof t=="boolean"?_e(Vt):oe(t)?_e(St,null,t.slice()):Gr(t)?Ii(t):_e(Ui,null,String(t))}function Ii(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Cr(t)}function _y(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(oe(e))n=16;else if(typeof e=="object")if(r&65){const s=e.default;s&&(s._c&&(s._d=!1),_y(t,s()),s._c&&(s._d=!0));return}else{n=32;const s=e._;!s&&!sA(e)?e._ctx=mn:s===3&&mn&&(mn.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else be(e)?(e={default:e,_ctx:mn},n=32):(e=String(e),r&64?(n=16,e=[os(e)]):n=8);t.children=e,t.shapeFlag|=n}function Or(...t){const e={};for(let n=0;n<t.length;n++){const r=t[n];for(const s in r)if(s==="class")e.class!==r.class&&(e.class=_r([e.class,r.class]));else if(s==="style")e.style=io([e.style,r.style]);else if(no(s)){const i=e[s],o=r[s];o&&i!==o&&!(oe(i)&&i.includes(o))&&(e[s]=i?[].concat(i,o):o)}else s!==""&&(e[s]=r[s])}return e}function er(t,e,n,r=null){Rr(t,e,7,[n,r])}const xM=tA();let MM=0;function RA(t,e,n){const r=t.type,s=(e?e.appContext:t.appContext)||xM,i={uid:MM++,vnode:t,type:r,parent:e,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new X_(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(s.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:oA(r,s),emitsOptions:vA(r,s),emit:null,emitted:null,propsDefaults:Fe,inheritAttrs:r.inheritAttrs,ctx:Fe,data:Fe,props:Fe,attrs:Fe,slots:Fe,refs:Fe,setupState:Fe,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=EM.bind(null,i),t.ce&&t.ce(i),i}let dn=null;const rn=()=>dn||mn;let Oh,vg;{const t=Tu(),e=(n,r)=>{let s;return(s=t[n])||(s=t[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};Oh=e("__VUE_INSTANCE_SETTERS__",n=>dn=n),vg=e("__VUE_SSR_SETTERS__",n=>Ja=n)}const Go=t=>{const e=dn;return Oh(t),t.scope.on(),()=>{t.scope.off(),Oh(e)}},Tg=()=>{dn&&dn.scope.off(),Oh(null)};function CA(t){return t.vnode.shapeFlag&4}let Ja=!1;function PA(t,e=!1,n=!1){e&&vg(e);const{props:r,children:s}=t.vnode,i=CA(t);cM(t,r,i,e),dM(t,s,n||e);const o=i?LM(t,e):void 0;return e&&vg(!1),o}function LM(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,mg);const{setup:r}=n;if(r){Js();const s=t.setupContext=r.length>1?NA(t):null,i=Go(t),o=yl(r,t,0,[t.props,s]),a=Td(o);if(Qs(),i(),(a||t.sp)&&!Vi(t)&&iy(t),a){if(o.then(Tg,Tg),e)return o.then(l=>{wg(t,l,e)}).catch(l=>{oa(l,t,0)});t.asyncDep=o}else wg(t,o,e)}else OA(t,e)}function wg(t,e,n){be(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Ze(e)&&(t.setupState=ey(e)),OA(t,n)}let Nh,bg;function VM(t){Nh=t,bg=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,$x))}}const UM=()=>!Nh;function OA(t,e,n){const r=t.type;if(!t.render){if(!e&&Nh&&!r.render){const s=r.template||dy(t).template;if(s){const{isCustomElement:i,compilerOptions:o}=t.appContext.config,{delimiters:a,compilerOptions:l}=r,u=Ve(Ve({isCustomElement:i,delimiters:a},o),l);r.render=Nh(s,u)}}t.render=r.render||en,bg&&bg(t)}{const s=Go(t);Js();try{nM(t)}finally{Qs(),s()}}}const FM={get(t,e){return Rn(t,"get",""),t[e]}};function NA(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,FM),slots:t.slots,emit:t.emit,expose:e}}function Au(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(ey(Od(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in gc)return gc[n](t)},has(e,n){return n in e||n in gc}})):t.proxy}function Sg(t,e=!0){return be(t)?t.displayName||t.name:t.name||e&&t.__name}function BM(t){return be(t)&&"__vccOpts"in t}const de=(t,e)=>ix(t,e,Ja);function Et(t,e,n){try{Hc(-1);const r=arguments.length;return r===2?Ze(e)&&!oe(e)?Gr(e)?_e(t,null,[e]):_e(t,e):_e(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Gr(n)&&(n=[n]),_e(t,e,n))}finally{Hc(1)}}function HM(){}function $M(t,e,n,r){const s=n[r];if(s&&kA(s,t))return s;const i=e();return i.memo=t.slice(),i.cacheIndex=r,n[r]=i}function kA(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 Wo>0&&Dn&&Dn.push(t),!0}const DA="3.5.24",jM=en,qM=px,WM=Ia,GM=xI,YM={createComponentInstance:RA,setupComponent:PA,renderComponentRoot:Wf,setCurrentRenderingInstance:Uc,isVNode:Gr,normalizeVNode:nr,getComponentPublicInstance:Au,ensureValidVNode:hy,pushWarningContext:ux,popWarningContext:fx},zM=YM,KM=null,XM=null,JM=null;let Ig;const iw=typeof window<"u"&&window.trustedTypes;if(iw)try{Ig=iw.createPolicy("vue",{createHTML:t=>t})}catch{}const xA=Ig?t=>Ig.createHTML(t):t=>t,QM="http://www.w3.org/2000/svg",ZM="http://www.w3.org/1998/Math/MathML",Ds=typeof document<"u"?document:null,ow=Ds&&Ds.createElement("template"),eL={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const s=e==="svg"?Ds.createElementNS(QM,t):e==="mathml"?Ds.createElementNS(ZM,t):n?Ds.createElement(t,{is:n}):Ds.createElement(t);return t==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:t=>Ds.createTextNode(t),createComment:t=>Ds.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Ds.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,s,i){const o=n?n.previousSibling:e.lastChild;if(s&&(s===i||s.nextSibling))for(;e.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{ow.innerHTML=xA(r==="svg"?`<svg>${t}</svg>`:r==="mathml"?`<math>${t}</math>`:t);const a=ow.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},_i="transition",Xl="animation",Qa=Symbol("_vtc"),MA={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},LA=Ve({},sy,MA),tL=t=>(t.displayName="Transition",t.props=LA,t),yy=tL((t,{slots:e})=>Et(jI,VA(t),e)),_o=(t,e=[])=>{oe(t)?t.forEach(n=>n(...e)):t&&t(...e)},aw=t=>t?oe(t)?t.some(e=>e.length>1):t.length>1:!1;function VA(t){const e={};for(const P in t)P in MA||(e[P]=t[P]);if(t.css===!1)return e;const{name:n="v",type:r,duration:s,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=o,appearToClass:f=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=t,g=nL(s),_=g&&g[0],v=g&&g[1],{onBeforeEnter:N,onEnter:O,onEnterCancelled:T,onLeave:C,onLeaveCancelled:x,onBeforeAppear:L=N,onAppear:R=O,onAppearCancelled:w=T}=e,E=(P,A,te,he)=>{P._enterCancelled=he,Ti(P,A?f:a),Ti(P,A?u:o),te&&te()},b=(P,A)=>{P._isLeaving=!1,Ti(P,h),Ti(P,p),Ti(P,d),A&&A()},k=P=>(A,te)=>{const he=P?R:O,z=()=>E(A,P,te);_o(he,[A,z]),lw(()=>{Ti(A,P?l:i),ns(A,P?f:a),aw(he)||cw(A,r,_,z)})};return Ve(e,{onBeforeEnter(P){_o(N,[P]),ns(P,i),ns(P,o)},onBeforeAppear(P){_o(L,[P]),ns(P,l),ns(P,u)},onEnter:k(!1),onAppear:k(!0),onLeave(P,A){P._isLeaving=!0;const te=()=>b(P,A);ns(P,h),P._enterCancelled?(ns(P,d),Ag(P)):(Ag(P),ns(P,d)),lw(()=>{P._isLeaving&&(Ti(P,h),ns(P,p),aw(C)||cw(P,r,v,te))}),_o(C,[P,te])},onEnterCancelled(P){E(P,!1,void 0,!0),_o(T,[P])},onAppearCancelled(P){E(P,!0,void 0,!0),_o(w,[P])},onLeaveCancelled(P){b(P),_o(x,[P])}})}function nL(t){if(t==null)return null;if(Ze(t))return[ym(t.enter),ym(t.leave)];{const e=ym(t);return[e,e]}}function ym(t){return kc(t)}function ns(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[Qa]||(t[Qa]=new Set)).add(e)}function Ti(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.remove(r));const n=t[Qa];n&&(n.delete(e),n.size||(t[Qa]=void 0))}function lw(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let rL=0;function cw(t,e,n,r){const s=t._endId=++rL,i=()=>{s===t._endId&&r()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:a,propCount:l}=UA(t,e);if(!o)return r();const u=o+"end";let f=0;const h=()=>{t.removeEventListener(u,d),i()},d=p=>{p.target===t&&++f>=l&&h()};setTimeout(()=>{f<l&&h()},a+1),t.addEventListener(u,d)}function UA(t,e){const n=window.getComputedStyle(t),r=g=>(n[g]||"").split(", "),s=r(`${_i}Delay`),i=r(`${_i}Duration`),o=uw(s,i),a=r(`${Xl}Delay`),l=r(`${Xl}Duration`),u=uw(a,l);let f=null,h=0,d=0;e===_i?o>0&&(f=_i,h=o,d=i.length):e===Xl?u>0&&(f=Xl,h=u,d=l.length):(h=Math.max(o,u),f=h>0?o>u?_i:Xl:null,d=f?f===_i?i.length:l.length:0);const p=f===_i&&/\b(?:transform|all)(?:,|$)/.test(r(`${_i}Property`).toString());return{type:f,timeout:h,propCount:d,hasTransform:p}}function uw(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,r)=>fw(n)+fw(t[r])))}function fw(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function Ag(t){return(t?t.ownerDocument:document).body.offsetHeight}function sL(t,e,n){const r=t[Qa];r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const kh=Symbol("_vod"),FA=Symbol("_vsh"),BA={name:"show",beforeMount(t,{value:e},{transition:n}){t[kh]=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[kh]:"none",t[FA]=!e}function iL(){BA.getSSRProps=({value:t})=>{if(!t)return{style:{display:"none"}}}}const HA=Symbol("");function oL(t){const e=rn();if(!e)return;const n=e.ut=(s=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(i=>Dh(i,s))},r=()=>{const s=t(e.proxy);e.ce?Dh(e.ce,s):Rg(e.subTree,s),n(s)};ly(()=>{Lc(r)}),Jr(()=>{br(r,en,{flush:"post"});const s=new MutationObserver(r);s.observe(e.subTree.el.parentNode,{childList:!0}),la(()=>s.disconnect())})}function Rg(t,e){if(t.shapeFlag&128){const n=t.suspense;t=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Rg(n.activeBranch,e)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)Dh(t.el,e);else if(t.type===St)t.children.forEach(n=>Rg(n,e));else if(t.type===Vo){let{el:n,anchor:r}=t;for(;n&&(Dh(n,e),n!==r);)n=n.nextSibling}}function Dh(t,e){if(t.nodeType===1){const n=t.style;let r="";for(const s in e){const i=lI(e[s]);n.setProperty(`--${s}`,i),r+=`--${s}: ${i};`}n[HA]=r}}const aL=/(?:^|;)\s*display\s*:/;function lL(t,e,n){const r=t.style,s=Ce(n);let i=!1;if(n&&!s){if(e)if(Ce(e))for(const o of e.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&Yf(r,a,"")}else for(const o in e)n[o]==null&&Yf(r,o,"");for(const o in n)o==="display"&&(i=!0),Yf(r,o,n[o])}else if(s){if(e!==n){const o=r[HA];o&&(n+=";"+o),r.cssText=n,i=aL.test(n)}}else e&&t.removeAttribute("style");kh in t&&(t[kh]=i?r.display:"",t[FA]&&(r.display="none"))}const hw=/\s*!important$/;function Yf(t,e,n){if(oe(n))n.forEach(r=>Yf(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=cL(t,e);hw.test(n)?t.setProperty(On(r),n.replace(hw,""),"important"):t[r]=n}}const dw=["Webkit","Moz","ms"],Em={};function cL(t,e){const n=Em[e];if(n)return n;let r=mt(e);if(r!=="filter"&&r in t)return Em[e]=r;r=so(r);for(let s=0;s<dw.length;s++){const i=dw[s]+r;if(i in t)return Em[e]=i}return e}const pw="http://www.w3.org/1999/xlink";function mw(t,e,n,r,s,i=sI(e)){r&&e.startsWith("xlink:")?n==null?t.removeAttributeNS(pw,e.slice(6,e.length)):t.setAttributeNS(pw,e,n):n==null||i&&!K_(n)?t.removeAttribute(e):t.setAttribute(e,i?"":Kn(n)?String(n):n)}function gw(t,e,n,r,s){if(e==="innerHTML"||e==="textContent"){n!=null&&(t[e]=e==="innerHTML"?xA(n):n);return}const i=t.tagName;if(e==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="OPTION"?t.getAttribute("value")||"":t.value,l=n==null?t.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in t))&&(t.value=l),n==null&&t.removeAttribute(e),t._value=n;return}let o=!1;if(n===""||n==null){const a=typeof t[e];a==="boolean"?n=K_(n):n==null&&a==="string"?(n="",o=!0):a==="number"&&(n=0,o=!0)}try{t[e]=n}catch{}o&&t.removeAttribute(s||e)}function Us(t,e,n,r){t.addEventListener(e,n,r)}function uL(t,e,n,r){t.removeEventListener(e,n,r)}const _w=Symbol("_vei");function fL(t,e,n,r,s=null){const i=t[_w]||(t[_w]={}),o=i[e];if(r&&o)o.value=r;else{const[a,l]=hL(e);if(r){const u=i[e]=mL(r,s);Us(t,a,u,l)}else o&&(uL(t,a,o,l),i[e]=void 0)}}const yw=/(?:Once|Passive|Capture)$/;function hL(t){let e;if(yw.test(t)){e={};let r;for(;r=t.match(yw);)t=t.slice(0,t.length-r[0].length),e[r[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):On(t.slice(2)),e]}let vm=0;const dL=Promise.resolve(),pL=()=>vm||(dL.then(()=>vm=0),vm=Date.now());function mL(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Rr(gL(r,n.value),e,5,[r])};return n.value=t,n.attached=pL(),n}function gL(t,e){if(oe(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>s=>!s._stopped&&r&&r(s))}else return e}const Ew=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,_L=(t,e,n,r,s,i)=>{const o=s==="svg";e==="class"?sL(t,r,o):e==="style"?lL(t,n,r):no(e)?Ed(e)||fL(t,e,n,r,i):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):yL(t,e,r,o))?(gw(t,e,r),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&mw(t,e,r,o,i,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!Ce(r))?gw(t,mt(e),r,i,e):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),mw(t,e,r,o))};function yL(t,e,n,r){if(r)return!!(e==="innerHTML"||e==="textContent"||e in t&&Ew(e)&&be(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="sandbox"&&t.tagName==="IFRAME"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const s=t.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Ew(e)&&Ce(n)?!1:e in t}const vw={};function $A(t,e,n){let r=Nt(t,e);Eu(r)&&(r=Ve({},r,e));class s extends Fd{constructor(o){super(r,o,n)}}return s.def=r,s}const EL=((t,e)=>$A(t,e,wy)),vL=typeof HTMLElement<"u"?HTMLElement:class{};class Fd extends vL{constructor(e,n={},r=jc){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._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&r!==jc?this._root=this.shadowRoot:e.shadowRoot!==!1?(this.attachShadow(Ve({},e.shadowRootOptions,{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 Fd){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,Xn(()=>{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,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(e){for(const n of e)this._setAttr(n.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const e=(r,s=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:i,styles:o}=r;let a;if(i&&!oe(i))for(const l in i){const u=i[l];(u===Number||u&&u.type===Number)&&(l in this._props&&(this._props[l]=kc(this._props[l])),(a||(a=Object.create(null)))[mt(l)]=!0)}this._numberProps=a,this._resolveProps(r),this.shadowRoot&&this._applyStyles(o),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)Xe(this,r)||Object.defineProperty(this,r,{get:()=>ve(n[r])})}_resolveProps(e){const{props:n}=e,r=oe(n)?n:Object.keys(n||{});for(const s of Object.keys(this))s[0]!=="_"&&r.includes(s)&&this._setProp(s,this[s]);for(const s of r.map(mt))Object.defineProperty(this,s,{get(){return this._getProp(s)},set(i){this._setProp(s,i,!0,!this._patching)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const n=this.hasAttribute(e);let r=n?this.getAttribute(e):vw;const s=mt(e);n&&this._numberProps&&this._numberProps[s]&&(r=kc(r)),this._setProp(s,r,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,n,r=!0,s=!1){if(n!==this._props[e]&&(this._dirty=!0,n===vw?delete this._props[e]:(this._props[e]=n,e==="key"&&this._app&&(this._app._ceVNode.key=n)),s&&this._instance&&this._update(),r)){const i=this._ob;i&&(this._processMutations(i.takeRecords()),i.disconnect()),n===!0?this.setAttribute(On(e),""):typeof n=="string"||typeof n=="number"?this.setAttribute(On(e),n+""):n||this.removeAttribute(On(e)),i&&i.observe(this,{attributes:!0})}}_update(){const e=this._createVNode();this._app&&(e.appContext=this._app._context),eR(e,this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const n=_e(this._def,Ve(e,this._props));return this._instance||(n.ce=r=>{this._instance=r,r.ce=this,r.isCE=!0;const s=(i,o)=>{this.dispatchEvent(new CustomEvent(i,Eu(o[0])?Ve({detail:o},o[0]):{detail:o}))};r.emit=(i,...o)=>{s(i,o),On(i)!==i&&s(On(i),o)},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 s=e.length-1;s>=0;s--){const i=document.createElement("style");r&&i.setAttribute("nonce",r),i.textContent=e[s],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._getSlots(),n=this._instance.type.__scopeId;for(let r=0;r<e.length;r++){const s=e[r],i=s.getAttribute("name")||"default",o=this._slots[i],a=s.parentNode;if(o)for(const l of o){if(n&&l.nodeType===1){const u=n+"-s",f=document.createTreeWalker(l,1);l.setAttribute(u,"");let h;for(;h=f.nextNode();)h.setAttribute(u,"")}a.insertBefore(l,s)}else for(;s.firstChild;)a.insertBefore(s.firstChild,s);a.removeChild(s)}}_getSlots(){const e=[this];this._teleportTargets&&e.push(...this._teleportTargets);const n=new Set;for(const r of e){const s=r.querySelectorAll("slot");for(let i=0;i<s.length;i++)n.add(s[i])}return Array.from(n)}_injectChildStyle(e){this._applyStyles(e.styles,e)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_removeChildStyle(e){}}function jA(t){const e=rn(),n=e&&e.ce;return n||null}function TL(){const t=jA();return t&&t.shadowRoot}function wL(t="$style"){{const e=rn();if(!e)return Fe;const n=e.type.__cssModules;if(!n)return Fe;const r=n[t];return r||Fe}}const qA=new WeakMap,WA=new WeakMap,xh=Symbol("_moveCb"),Tw=Symbol("_enterCb"),bL=t=>(delete t.props.mode,t),SL=bL({name:"TransitionGroup",props:Ve({},LA,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=rn(),r=ry();let s,i;return xd(()=>{if(!s.length)return;const o=t.moveClass||`${t.name||"v"}-move`;if(!PL(s[0].el,n.vnode.el,o)){s=[];return}s.forEach(AL),s.forEach(RL);const a=s.filter(CL);Ag(n.vnode.el),a.forEach(l=>{const u=l.el,f=u.style;ns(u,o),f.transform=f.webkitTransform=f.transitionDuration="";const h=u[xh]=d=>{d&&d.target!==u||(!d||d.propertyName.endsWith("transform"))&&(u.removeEventListener("transitionend",h),u[xh]=null,Ti(u,o))};u.addEventListener("transitionend",h)}),s=[]}),()=>{const o=Re(t),a=VA(o);let l=o.tag||St;if(s=[],i)for(let u=0;u<i.length;u++){const f=i[u];f.el&&f.el instanceof Element&&(s.push(f),Zs(f,Ka(f,a,r,n)),qA.set(f,{left:f.el.offsetLeft,top:f.el.offsetTop}))}i=e.default?kd(e.default()):[];for(let u=0;u<i.length;u++){const f=i[u];f.key!=null&&Zs(f,Ka(f,a,r,n))}return _e(l,null,i)}}}),IL=SL;function AL(t){const e=t.el;e[xh]&&e[xh](),e[Tw]&&e[Tw]()}function RL(t){WA.set(t,{left:t.el.offsetLeft,top:t.el.offsetTop})}function CL(t){const e=qA.get(t),n=WA.get(t),r=e.left-n.left,s=e.top-n.top;if(r||s){const i=t.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${s}px)`,i.transitionDuration="0s",t}}function PL(t,e,n){const r=t.cloneNode(),s=t[Qa];s&&s.forEach(a=>{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),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:o}=UA(r);return i.removeChild(r),o}const Gi=t=>{const e=t.props["onUpdate:modelValue"]||!1;return oe(e)?n=>Do(e,n):e};function OL(t){t.target.composing=!0}function ww(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Sr=Symbol("_assign");function bw(t,e,n){return e&&(t=t.trim()),n&&(t=vu(t)),t}const $c={created(t,{modifiers:{lazy:e,trim:n,number:r}},s){t[Sr]=Gi(s);const i=r||s.props&&s.props.type==="number";Us(t,e?"change":"input",o=>{o.target.composing||t[Sr](bw(t.value,n,i))}),(n||i)&&Us(t,"change",()=>{t.value=bw(t.value,n,i)}),e||(Us(t,"compositionstart",OL),Us(t,"compositionend",ww),Us(t,"change",ww))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},o){if(t[Sr]=Gi(o),t.composing)return;const a=(i||t.type==="number")&&!/^0\d/.test(t.value)?vu(t.value):t.value,l=e??"";a!==l&&(document.activeElement===t&&t.type!=="range"&&(r&&e===n||s&&t.value.trim()===l)||(t.value=l))}},Ey={deep:!0,created(t,e,n){t[Sr]=Gi(n),Us(t,"change",()=>{const r=t._modelValue,s=Za(t),i=t.checked,o=t[Sr];if(oe(r)){const a=wu(r,s),l=a!==-1;if(i&&!l)o(r.concat(s));else if(!i&&l){const u=[...r];u.splice(a,1),o(u)}}else if(ro(r)){const a=new Set(r);i?a.add(s):a.delete(s),o(a)}else o(YA(t,i))})},mounted:Sw,beforeUpdate(t,e,n){t[Sr]=Gi(n),Sw(t,e,n)}};function Sw(t,{value:e,oldValue:n},r){t._modelValue=e;let s;if(oe(e))s=wu(e,r.props.value)>-1;else if(ro(e))s=e.has(r.props.value);else{if(e===n)return;s=Xs(e,YA(t,!0))}t.checked!==s&&(t.checked=s)}const vy={created(t,{value:e},n){t.checked=Xs(e,n.props.value),t[Sr]=Gi(n),Us(t,"change",()=>{t[Sr](Za(t))})},beforeUpdate(t,{value:e,oldValue:n},r){t[Sr]=Gi(r),e!==n&&(t.checked=Xs(e,r.props.value))}},GA={deep:!0,created(t,{value:e,modifiers:{number:n}},r){const s=ro(e);Us(t,"change",()=>{const i=Array.prototype.filter.call(t.options,o=>o.selected).map(o=>n?vu(Za(o)):Za(o));t[Sr](t.multiple?s?new Set(i):i:i[0]),t._assigning=!0,Xn(()=>{t._assigning=!1})}),t[Sr]=Gi(r)},mounted(t,{value:e}){Iw(t,e)},beforeUpdate(t,e,n){t[Sr]=Gi(n)},updated(t,{value:e}){t._assigning||Iw(t,e)}};function Iw(t,e){const n=t.multiple,r=oe(e);if(!(n&&!r&&!ro(e))){for(let s=0,i=t.options.length;s<i;s++){const o=t.options[s],a=Za(o);if(n)if(r){const l=typeof a;l==="string"||l==="number"?o.selected=e.some(u=>String(u)===String(a)):o.selected=wu(e,a)>-1}else o.selected=e.has(a);else if(Xs(Za(o),e)){t.selectedIndex!==s&&(t.selectedIndex=s);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function Za(t){return"_value"in t?t._value:t.value}function YA(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const zA={created(t,e,n){If(t,e,n,null,"created")},mounted(t,e,n){If(t,e,n,null,"mounted")},beforeUpdate(t,e,n,r){If(t,e,n,r,"beforeUpdate")},updated(t,e,n,r){If(t,e,n,r,"updated")}};function KA(t,e){switch(t){case"SELECT":return GA;case"TEXTAREA":return $c;default:switch(e){case"checkbox":return Ey;case"radio":return vy;default:return $c}}}function If(t,e,n,r,s){const o=KA(t.tagName,n.props&&n.props.type)[s];o&&o(t,e,n,r)}function NL(){$c.getSSRProps=({value:t})=>({value:t}),vy.getSSRProps=({value:t},e)=>{if(e.props&&Xs(e.props.value,t))return{checked:!0}},Ey.getSSRProps=({value:t},e)=>{if(oe(t)){if(e.props&&wu(t,e.props.value)>-1)return{checked:!0}}else if(ro(t)){if(e.props&&t.has(e.props.value))return{checked:!0}}else if(t)return{checked:!0}},zA.getSSRProps=(t,e)=>{if(typeof e.type!="string")return;const n=KA(e.type.toUpperCase(),e.props&&e.props.type);if(n.getSSRProps)return n.getSSRProps(t,e)}}const kL=["ctrl","shift","alt","meta"],DL={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)=>kL.some(n=>t[`${n}Key`]&&!e.includes(n))},Ty=(t,e)=>{const n=t._withMods||(t._withMods={}),r=e.join(".");return n[r]||(n[r]=((s,...i)=>{for(let o=0;o<e.length;o++){const a=DL[e[o]];if(a&&a(s,e))return}return t(s,...i)}))},xL={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},XA=(t,e)=>{const n=t._withKeys||(t._withKeys={}),r=e.join(".");return n[r]||(n[r]=(s=>{if(!("key"in s))return;const i=On(s.key);if(e.some(o=>o===i||xL[o]===i))return t(s)}))},JA=Ve({patchProp:_L},eL);let yc,Aw=!1;function QA(){return yc||(yc=uA(JA))}function ZA(){return yc=Aw?yc:fA(JA),Aw=!0,yc}const eR=((...t)=>{QA().render(...t)}),ML=((...t)=>{ZA().hydrate(...t)}),jc=((...t)=>{const e=QA().createApp(...t),{mount:n}=e;return e.mount=r=>{const s=nR(r);if(!s)return;const i=e._component;
5!be(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=n(s,!1,tR(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},e}),wy=((...t)=>{const e=ZA().createApp(...t),{mount:n}=e;return e.mount=r=>{const s=nR(r);if(s)return n(s,!0,tR(s))},e});function tR(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function nR(t){return Ce(t)?document.querySelector(t):t}let Rw=!1;const LL=()=>{Rw||(Rw=!0,NL(),iL())},VL=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:jI,BaseTransitionPropsValidators:sy,Comment:Vt,DeprecationTypes:JM,EffectScope:X_,ErrorCodes:dx,ErrorTypeStrings:qM,Fragment:St,KeepAlive:WI,ReactiveEffect:Dc,Static:Vo,Suspense:Ud,Teleport:FI,Text:Ui,TrackOpTypes:ox,Transition:yy,TransitionGroup:IL,TriggerOpTypes:ax,VueElement:Fd,assertNumber:hx,callWithAsyncErrorHandling:Rr,callWithErrorHandling:yl,camelize:mt,capitalize:so,cloneVNode:Cr,compatUtils:XM,computed:de,createApp:jc,createBlock:Nn,createCommentVNode:Xa,createElementBlock:Lt,createElementVNode:me,createHydrationRenderer:fA,createPropsRestProxy:eM,createRenderer:uA,createSSRApp:wy,createSlots:Bx,createStaticVNode:DM,createTextVNode:os,createVNode:_e,customRef:AI,defineAsyncComponent:hg,defineComponent:Nt,defineCustomElement:$A,defineEmits:qx,defineExpose:Wx,defineModel:zx,defineOptions:Gx,defineProps:jx,defineSSRCustomElement:EL,defineSlots:Yx,devtools:WM,effect:ND,effectScope:Sd,getCurrentInstance:rn,getCurrentScope:bu,getCurrentWatcher:lx,getTransitionRawChildren:kd,guardReactiveProps:AA,h:Et,handleError:oa,hasInjectionContext:El,hydrate:ML,hydrateOnIdle:Ox,hydrateOnInteraction:xx,hydrateOnMediaQuery:Dx,hydrateOnVisible:kx,initCustomFormatter:HM,initDirectivesForSSR:LL,inject:Wt,isMemoSame:kA,isProxy:Pd,isReactive:qr,isReadonly:_s,isRef:ft,isRuntimeOnly:UM,isShallow:gr,isVNode:Gr,markRaw:Od,mergeDefaults:Qx,mergeModels:Zx,mergeProps:Or,nextTick:Xn,normalizeClass:_r,normalizeProps:z_,normalizeStyle:io,onActivated:oy,onBeforeMount:YI,onBeforeUnmount:aa,onBeforeUpdate:ly,onDeactivated:ay,onErrorCaptured:Md,onMounted:Jr,onRenderTracked:XI,onRenderTriggered:KI,onScopeDispose:za,onServerPrefetch:zI,onUnmounted:la,onUpdated:xd,onWatcherCleanup:PI,openBlock:$e,popScopeId:yx,provide:fs,proxyRefs:ey,pushScopeId:_x,queuePostFlushCb:Lc,reactive:nn,readonly:Th,ref:Pe,registerRuntimeCompiler:VM,render:eR,renderList:fy,renderSlot:Mo,resolveComponent:dg,resolveDirective:Fx,resolveDynamicComponent:QI,resolveFilter:KM,resolveTransitionHooks:Ka,setBlockTracking:Hc,setDevtoolsHook:GM,setTransitionHooks:Zs,shallowReactive:Fr,shallowReadonly:JD,shallowRef:or,ssrContextKey:mA,ssrUtils:zM,stop:kD,toDisplayString:fr,toHandlerKey:ko,toHandlers:Hx,toRaw:Re,toRef:ty,toRefs:RI,toValue:II,transformVNodeArgs:NM,triggerRef:ZD,unref:ve,useAttrs:Jx,useCssModule:wL,useCssVars:oL,useHost:jA,useId:wx,useModel:yM,useSSRContext:gA,useShadowRoot:TL,useSlots:Xx,useTemplateRef:bx,useTransitionState:ry,vModelCheckbox:Ey,vModelDynamic:zA,vModelRadio:vy,vModelSelect:GA,vModelText:$c,vShow:BA,version:DA,warn:jM,watch:br,watchEffect:La,watchPostEffect:gM,watchSyncEffect:_A,withAsyncContext:tM,withCtx:Cn,withDefaults:Kx,withDirectives:MI,withKeys:XA,withMemo:$M,withModifiers:Ty,withScopeId:Ex},Symbol.toStringTag,{value:"Module"})),UL=/"(?:_|\\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*:/,FL=/"(?: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*:/,BL=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function HL(t,e){if(t==="__proto__"||t==="constructor"&&e&&typeof e=="object"&&"prototype"in e){return}return e}function Mh(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(!BL.test(t)){if(e.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(UL.test(t)||FL.test(t)){if(e.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,HL)}return JSON.parse(t)}catch(r){if(e.strict)throw r;return t}}
5const $L=/#/g,jL=/&/g,qL=/\//g,WL=/=/g,by=/\+/g,GL=/%5e/gi,YL=/%60/gi,zL=/%7c/gi,KL=/%20/gi;function XL(t){return encodeURI(""+t).replace(zL,"|")}function Cg(t){return XL(typeof t=="string"?t:JSON.stringify(t)).replace(by,"%2B").replace(KL,"+").replace($L,"%23").replace(jL,"%26").replace(YL,"`").replace(GL,"^").replace(qL,"%2F")}function Tm(t){return Cg(t).replace(WL,"%3D")}function Lh(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function JL(t){return Lh(t.replace(by," "))}function QL(t){return Lh(t.replace(by," "))}function Sy(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 s=JL(r[1]);if(s==="__proto__"||s==="constructor")continue;const i=QL(r[2]||"");e[s]===void 0?e[s]=i:Array.isArray(e[s])?e[s].push(i):e[s]=[e[s],i]}return e}function ZL(t,e){return(typeof e=="number"||typeof e=="boolean")&&(e=String(e)),e?Array.isArray(e)?e.map(n=>`${Tm(t)}=${Cg(n)}`).join("&"):`${Tm(t)}=${Cg(e)}`:Tm(t)}function eV(t){return Object.keys(t).filter(e=>t[e]!==void 0).map(e=>ZL(e,t[e])).filter(Boolean).join("&")}const tV=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,nV=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,rV=/^([/\\]\s*){2,}[^/\\]/,sV=/^[\s\0]*(blob|data|javascript|vbscript):$/i,iV=/\/$|\/\?|\/#/,oV=/^\.?\//;function oo(t,e={}){return typeof e=="boolean"&&(e={acceptRelative:e}),e.strict?tV.test(t):nV.test(t)||(e.acceptRelative?rV.test(t):!1)}function aV(t){return!!t&&sV.test(t)}function Pg(t="",e){return e?iV.test(t):t.endsWith("/")}function qc(t="",e){if(!e)return(Pg(t)?t.slice(0,-1):t)||"/";if(!Pg(t,!0))return t||"/";let n=t,r="";const s=t.indexOf("#");s!==-1&&(n=t.slice(0,s),r=t.slice(s));const[i,...o]=n.split("?");return((i.endsWith("/")?i.slice(0,-1):i)||"/")+(o.length>0?`?${o.join("?")}`:"")+r}function rR(t="",e){if(!e)return t.endsWith("/")?t:t+"/";if(Pg(t,!0))return t||"/";let n=t,r="";const s=t.indexOf("#");if(s!==-1&&(n=t.slice(0,s),r=t.slice(s),!n))return r;const[i,...o]=n.split("?");return i+"/"+(o.length>0?`?${o.join("?")}`:"")+r}function lV(t,e){if(sR(e)||oo(t))return t;const n=qc(e);return t.startsWith(n)?t:Bd(n,t)}function Cw(t,e){if(sR(e))return t;const n=qc(e);if(!t.startsWith(n))return t;const r=t.slice(n.length);return r[0]==="/"?r:"/"+r}function Vh(t,e){const n=aR(t),r={...Sy(n.search),...e};return n.search=eV(r),fV(n)}function sR(t){return!t||t==="/"}function cV(t){return t&&t!=="/"}function Bd(t,...e){let n=t||"";for(const r of e.filter(s=>cV(s)))if(n){const s=r.replace(oV,"");n=rR(n)+s}else n=r;return n}function iR(...t){const e=/\/(?!\/)/,n=t.filter(Boolean),r=[];let s=0;for(const o of n)if(!(!o||o==="/")){for(const[a,l]of o.split(e).entries())if(!(!l||l===".")){if(l===".."){if(r.length===1&&oo(r[0]))continue;r.pop(),s--;continue}if(a===1&&r[r.length-1]?.endsWith(":/")){r[r.length-1]+="/"+l;continue}r.push(l),s++}}let i=r.join("/");return s>=0?n[0]?.startsWith("/")&&!i.startsWith("/")?i="/"+i:n[0]?.startsWith("./")&&!i.startsWith("./")&&(i="./"+i):i="../".repeat(-1*s)+i,n[n.length-1]?.endsWith("/")&&!i.endsWith("/")&&(i+="/"),i}function uV(t,e){return Lh(qc(t))===Lh(qc(e))}const oR=Symbol.for("ufo:protocolRelative");function aR(t="",e){const n=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,h,d=""]=n;return{protocol:h.toLowerCase(),pathname:d,href:h+d,auth:"",host:"",search:"",hash:""}}if(!oo(t,{acceptRelative:!0}))return Pw(t);const[,r="",s,i=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,o="",a=""]=i.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:u,hash:f}=Pw(a);return{protocol:r.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:o,pathname:l,search:u,hash:f,[oR]:!r}}function Pw(t=""){const[e="",n="",r=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:e,search:n,hash:r}}function fV(t){const e=t.pathname||"",n=t.search?(t.search.startsWith("?")?"":"?")+t.search:"",r=t.hash||"",s=t.auth?t.auth+"@":"",i=t.host||"";return(t.protocol||t[oR]?(t.protocol||"")+"//":"")+s+i+e+n+r}
5class hV extends Error{constructor(e,n){super(e,n),this.name="FetchError",n?.cause&&!this.cause&&(this.cause=n.cause)}}function dV(t){const e=t.error?.message||t.error?.toString()||"",n=t.request?.method||t.options?.method||"GET",r=t.request?.url||String(t.request)||"/",s=`[${n}] ${JSON.stringify(r)}`,i=t.response?`${t.response.status} ${t.response.statusText}`:"<no response>",o=`${s}: ${i}${e?` ${e}`:""}`,a=new hV(o,t.error?{cause:t.error}:void 0);for(const l of["request","options","response"])Object.defineProperty(a,l,{get(){return t[l]}});for(const[l,u]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,l,{get(){return t.response&&t.response[u]}});return a}const pV=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function Ow(t="GET"){return pV.has(t.toUpperCase())}function mV(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||t instanceof FormData||t instanceof URLSearchParams?!1:t.constructor&&t.constructor.name==="Object"||typeof t.toJSON=="function"}const gV=new Set(["image/svg","application/xml","application/xhtml","application/html"]),_V=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function yV(t=""){if(!t)return"json";const e=t.split(";").shift()||"";return _V.test(e)?"json":e==="text/event-stream"?"stream":gV.has(e)||e.startsWith("text/")?"text":"blob"}function EV(t,e,n,r){const s=vV(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:s}}function vV(t,e,n){if(!e)return new n(t);const r=new n(e);if(t)for(const[s,i]of Symbol.iterator in t||Array.isArray(t)?t:new n(t))r.set(s,i);return r}async function Af(t,e){if(e)if(Array.isArray(e))for(const n of e)await n(t);else await e(t)}const TV=new Set([408,409,425,429,500,502,503,504]),wV=new Set([101,204,205,304]);function lR(t={}){const{fetch:e=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=t;async function s(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let f;typeof a.options.retry=="number"?f=a.options.retry:f=Ow(a.options.method)?0:1;const h=a.response&&a.response.status||500;if(f>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(h):TV.has(h))){const d=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return d>0&&await new Promise(p=>setTimeout(p,d)),i(a.request,{...a.options,retry:f-1})}}const u=dV(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,i),u}const i=async function(l,u={}){const f={request:l,options:EV(l,u,t.defaults,n),response:void 0,error:void 0};if(f.options.method&&(f.options.method=f.options.method.toUpperCase()),f.options.onRequest&&(await Af(f,f.options.onRequest),f.options.headers instanceof n||(f.options.headers=new n(f.options.headers||{}))),typeof f.request=="string"&&(f.options.baseURL&&(f.request=lV(f.request,f.options.baseURL)),f.options.query&&(f.request=Vh(f.request,f.options.query),delete f.options.query),"query"in f.options&&delete f.options.query,"params"in f.options&&delete f.options.params),f.options.body&&Ow(f.options.method))if(mV(f.options.body)){const p=f.options.headers.get("content-type");typeof f.options.body!="string"&&(f.options.body=p==="application/x-www-form-urlencoded"?new URLSearchParams(f.options.body).toString():JSON.stringify(f.options.body)),p||f.options.headers.set("content-type","application/json"),f.options.headers.has("accept")||f.options.headers.set("accept","application/json")}else("pipeTo"in f.options.body&&typeof f.options.body.pipeTo=="function"||typeof f.options.body.pipe=="function")&&("duplex"in f.options||(f.options.duplex="half"));let h;if(!f.options.signal&&f.options.timeout){const p=new r;h=setTimeout(()=>{const g=new Error("[TimeoutError]: The operation was aborted due to timeout");g.name="TimeoutError",g.code=23,p.abort(g)},f.options.timeout),f.options.signal=p.signal}try{f.response=await e(f.request,f.options)}catch(p){return f.error=p,f.options.onRequestError&&await Af(f,f.options.onRequestError),await s(f)}finally{h&&clearTimeout(h)}if((f.response.body||f.response._bodyInit)&&!wV.has(f.response.status)&&f.options.method!=="HEAD"){const p=(f.options.parseResponse?"json":f.options.responseType)||yV(f.response.headers.get("content-type")||"");switch(p){case"json":{const g=await f.response.text(),_=f.options.parseResponse||Mh;f.response._data=_(g);break}case"stream":{f.response._data=f.response.body||f.response._bodyInit;break}default:f.response._data=await f.response[p]()}}return f.options.onResponse&&await Af(f,f.options.onResponse),!f.options.ignoreResponseError&&f.response.status>=400&&f.response.status<600?(f.options.onResponseError&&await Af(f,f.options.onResponseError),await s(f)):f.response},o=async function(l,u){return(await i(l,u))._data};return o.raw=i,o.native=(...a)=>e(...a),o.create=(a={},l={})=>lR({...t,...l,defaults:{...t.defaults,...l.defaults,...a}}),o}const Uh=(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")})(),bV=Uh.fetch?(...t)=>Uh.fetch(...t):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),SV=Uh.Headers,IV=Uh.AbortController,AV=lR({fetch:bV,Headers:SV,AbortController:IV}),RV=AV,CV=()=>window?.__NUXT__?.config||{},Iy=()=>CV().app,PV=()=>Iy().baseURL,OV=()=>Iy().buildAssetsDir,NV=(...t)=>iR(cR(),OV(),...t),cR=(...t)=>{const e=Iy(),n=e.cdnURL||e.baseURL;
5return t.length?iR(n,...t):n};globalThis.__buildAssetsURL=NV,globalThis.__publicAssetsURL=cR;globalThis.$fetch||(globalThis.$fetch=RV.create({baseURL:PV()}));"global"in globalThis||(globalThis.global=globalThis);function Og(t,e={},n){for(const r in t){const s=t[r],i=n?`${n}:${r}`:r;typeof s=="object"&&s!==null?Og(s,e,i):typeof s=="function"&&(e[i]=s)}return e}const kV={run:t=>t()},DV=()=>kV,uR=typeof console.createTask<"u"?console.createTask:DV;function xV(t,e){const n=e.shift(),r=uR(n);return t.reduce((s,i)=>s.then(()=>r.run(()=>i(...e))),Promise.resolve())}function MV(t,e){const n=e.shift(),r=uR(n);return Promise.all(t.map(s=>r.run(()=>s(...e))))}function wm(t,e){for(const n of[...t])n(e)}class LV{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,n,r={}){if(!e||typeof n!="function")return()=>{};const s=e;let i;for(;this._deprecatedHooks[e];)i=this._deprecatedHooks[e],e=i.to;if(i&&!r.allowDeprecated){let o=i.message;o||(o=`${s} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(o)||this._deprecatedMessages.add(o)}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(n),()=>{n&&(this.removeHook(e,n),n=void 0)}}hookOnce(e,n){let r,s=(...i)=>(typeof r=="function"&&r(),r=void 0,s=void 0,n(...i));return r=this.hook(e,s),r}removeHook(e,n){if(this._hooks[e]){const r=this._hooks[e].indexOf(n);r!==-1&&this._hooks[e].splice(r,1),this._hooks[e].length===0&&delete this._hooks[e]}}deprecateHook(e,n){this._deprecatedHooks[e]=typeof n=="string"?{to:n}:n;const r=this._hooks[e]||[];delete this._hooks[e];for(const s of r)this.hook(e,s)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(const n in e)this.deprecateHook(n,e[n])}addHooks(e){const n=Og(e),r=Object.keys(n).map(s=>this.hook(s,n[s]));return()=>{for(const s of r.splice(0,r.length))s()}}removeHooks(e){const n=Og(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(xV,e,...n)}callHookParallel(e,...n){return n.unshift(e),this.callHookWith(MV,e,...n)}callHookWith(e,n,...r){const s=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&wm(this._before,s);const i=e(n in this._hooks?[...this._hooks[n]]:[],r);return i instanceof Promise?i.finally(()=>{this._after&&s&&wm(this._after,s)}):(this._after&&s&&wm(this._after,s),i)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const n=this._before.indexOf(e);n!==-1&&this._before.splice(n,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const n=this._after.indexOf(e);n!==-1&&this._after.splice(n,1)}}}}function fR(){return new LV}function VV(t={}){let e,n=!1;const r=o=>{if(e&&e!==o)throw new Error("Context conflict")};let s;if(t.asyncContext){const o=t.AsyncLocalStorage||globalThis.AsyncLocalStorage;o&&(s=new o)}const i=()=>{if(s){const o=s.getStore();if(o!==void 0)return o}return e};return{use:()=>{const o=i();if(o===void 0)throw new Error("Context is not available");return o},tryUse:()=>i(),set:(o,a)=>{a||r(o),e=o,n=!0},unset:()=>{e=void 0,n=!1},call:(o,a)=>{r(o),e=o;try{return s?s.run(o,a):a()}finally{n||(e=void 0)}},async callAsync(o,a){e=o;const l=()=>{e=o},u=()=>e===o?l:void 0;Ng.add(u);try{const f=s?s.run(o,a):a();return n||(e=void 0),await f}finally{Ng.delete(u)}}}}function UV(t={}){const e={};return{get(n,r={}){return e[n]||(e[n]=VV({...t,...r})),e[n]}}}const Fh=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},Nw="__unctx__",FV=Fh[Nw]||(Fh[Nw]=UV()),BV=(t,e={})=>FV.get(t,e),kw="__unctx_async_handlers__",Ng=Fh[kw]||(Fh[kw]=new Set);function Uo(t){const e=[];for(const s of Ng){const i=s();i&&e.push(i)}const n=()=>{for(const s of e)s()};let r=t();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(s=>{throw n(),s})),[r,n]}const HV=!1,Dw=!1,$V=!1,jV={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},bQ={value:null,errorValue:null,deep:!0},qV=null,WV="#__nuxt",hR="nuxt-app",GV="vite:preloadError";function dR(t=hR){return BV(t,{asyncContext:!1})}const YV="__nuxt_plugin";function zV(t){let e=0;const n={_id:t.id||hR||"nuxt-app",_scope:Sd(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.20.1"},get vue(){return n.vueApp.version}},payload:Fr({...t.ssrContext?.payload||{},data:Fr({}),state:nn({}),once:new Set,_errors:Fr({})}),static:{data:{}},runWithContext(s){return n._scope.active&&!bu()?n._scope.run(()=>xw(n,s)):xw(n,s)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};e++;let s=!1;return()=>{if(!s&&(s=!0,e--,e===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:Fr({}),_payloadRevivers:{},...t};{const s=window.__NUXT__;if(s)for(const i in s)switch(i){case"data":case"state":case"_errors":Object.assign(n.payload[i],s[i]);break;default:n.payload[i]=s[i]}}n.hooks=fR(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(s,i)=>{const o="$"+s;Rf(n,o,i),Rf(n.vueApp.config.globalProperties,o,i)},Rf(n.vueApp,"$nuxt",n),Rf(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(GV,i=>{n.callHook("app:chunkError",{error:i.payload}),i.payload.message.includes("Unable to preload CSS")&&i.preventDefault()}),window.useNuxtApp||=ht;const s=n.hook("app:error",(...i)=>{});n.hook("app:mounted",s)}const r=n.payload.config;return n.provide("config",r),n}function KV(t,e){e.hooks&&t.hooks.addHooks(e.hooks)}async function XV(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 JV(t,e){const n=new Set,r=[],s=[];let i,o=0;
5async function a(l){const u=l.dependsOn?.filter(f=>e.some(h=>h._name===f)&&!n.has(f))??[];if(u.length>0)r.push([new Set(u),l]);else{const f=XV(t,l).then(async()=>{l._name&&(n.add(l._name),await Promise.all(r.map(async([h,d])=>{h.has(l._name)&&(h.delete(l._name),h.size===0&&(o++,await a(d)))})))}).catch(h=>{if(!l.parallel&&!t.payload.error)throw h;i||=h});l.parallel?s.push(f):await f}}for(const l of e)KV(t,l);for(const l of e)await a(l);if(await Promise.all(s),o)for(let l=0;l<o;l++)await Promise.all(s);if(i)throw t.payload.error||i}function sn(t){if(typeof t=="function")return t;const e=t._name||t.name;return delete t.name,Object.assign(t.setup||(()=>{}),t,{[YV]:!0,_name:e})}function xw(t,e,n){const r=()=>e();return dR(t._id).set(t),t.vueApp.runWithContext(r)}function pR(t){let e;return El()&&(e=rn()?.appContext.app.$nuxt),e||=dR(t).tryUse(),e||null}function ht(t){const e=pR(t);if(!e)throw new Error("[nuxt] instance unavailable");return e}function Zt(t){return ht().$config}function Rf(t,e,n){Object.defineProperty(t,e,{get:()=>n})}function bm(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 kg(t,e,n=".",r){if(!bm(e))return kg(t,{},n,r);const s=Object.assign({},e);for(const i in t){if(i==="__proto__"||i==="constructor")continue;const o=t[i];o!=null&&(r&&r(s,i,o,n)||(Array.isArray(o)&&Array.isArray(s[i])?s[i]=[...o,...s[i]]:bm(o)&&bm(s[i])?s[i]=kg(o,s[i],(n?`${n}.`:"")+i.toString(),r):s[i]=o))}return s}function QV(t){return(...e)=>e.reduce((n,r)=>kg(n,r,"",t),{})}const Ay=QV();function ZV(t,e){try{return e in t}catch{return!1}}class Mw 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:Dg(this.statusCode,500)};return this.statusMessage&&(e.statusMessage=mR(this.statusMessage)),this.data!==void 0&&(e.data=this.data),e}}function e2(t){if(typeof t=="string")return new Mw(t);if(t2(t))return t;const e=new Mw(t.message??t.statusMessage??"",{cause:t.cause||t});if(ZV(t,"stack"))try{Object.defineProperty(e,"stack",{get(){return t.stack}})}catch{try{e.stack=t.stack}catch{}}if(t.data&&(e.data=t.data),t.statusCode?e.statusCode=Dg(t.statusCode,e.statusCode):t.status&&(e.statusCode=Dg(t.status,e.statusCode)),t.statusMessage?e.statusMessage=t.statusMessage:t.statusText&&(e.statusMessage=t.statusText),e.statusMessage){const n=e.statusMessage,r=mR(e.statusMessage)}return t.fatal!==void 0&&(e.fatal=t.fatal),t.unhandled!==void 0&&(e.unhandled=t.unhandled),e}function t2(t){return t?.constructor?.__h3_error__===!0}const n2=/[^\u0009\u0020-\u007E]/g;function mR(t=""){return t.replace(n2,"")}function Dg(t,e=200){return!t||(typeof t=="string"&&(t=Number.parseInt(t,10)),t<100||t>999)?e:t}const gR=Symbol("layout-meta"),Yo=Symbol("route");import.meta.url.replace(/\/app\/.*$/,"/");const Vn=()=>ht()?.$router,Hd=()=>El()?Wt(Yo,ht()._route):ht()._route;const r2=()=>{try{if(ht()._processingMiddleware)return!0}catch{return!1}return!1},$d=(t,e)=>{t||="/";const n=typeof t=="string"?t:"path"in t?xg(t):Vn().resolve(t).href;if(e?.open){const{target:l="_blank",windowFeatures:u={}}=e.open,f=[];for(const[h,d]of Object.entries(u))d!==void 0&&f.push(`${h.toLowerCase()}=${d}`);return open(n,l,f.join(", ")),Promise.resolve()}const r=oo(n,{acceptRelative:!0}),s=e?.external||r;if(s){if(!e?.external)throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:l}=new URL(n,window.location.href);if(l&&aV(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const i=r2();if(!s&&i){if(e?.replace){if(typeof t=="string"){const{pathname:l,search:u,hash:f}=aR(t);return{path:l,...u&&{query:Sy(u)},...f&&{hash:f},replace:!0}}return{...t,replace:!0}}return t}const o=Vn(),a=ht();return s?(a._scope.stop(),e?.replace?location.replace(n):location.href=n,i?a.isHydrating?new Promise(()=>{}
5):!1:Promise.resolve()):e?.replace?o.replace(t):o.push(t)};function xg(t){return Vh(t.path||"",t.query||{})+(t.hash||"")}const _R="__nuxt_error",Ru=()=>ty(ht().payload,"error"),vo=t=>{const e=Fo(t);try{const n=Ru();ht().hooks.callHook("app:error",e),n.value||=e}catch{throw e}return e},Mg=async(t={})=>{const e=ht(),n=Ru();e.callHook("app:error:cleared",t),t.redirect&&await Vn().replace(t.redirect),n.value=qV},yR=t=>!!t&&typeof t=="object"&&_R in t,Fo=t=>{const e=e2(t);return Object.defineProperty(e,_R,{value:!0,configurable:!1,writable:!1}),e};function s2(t){const e=o2(t),n=new ArrayBuffer(e.length),r=new DataView(n);for(let s=0;s<n.byteLength;s++)r.setUint8(s,e.charCodeAt(s));return n}const i2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function o2(t){t.length%4===0&&(t=t.replace(/==?$/,""));let e="",n=0,r=0;for(let s=0;s<t.length;s++)n<<=6,n|=i2.indexOf(t[s]),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 a2=-1,l2=-2,c2=-3,u2=-4,f2=-5,h2=-6;function d2(t,e){return p2(JSON.parse(t),e)}function p2(t,e){if(typeof t=="number")return s(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const n=t,r=Array(n.length);function s(i,o=!1){if(i===a2)return;if(i===c2)return NaN;if(i===u2)return 1/0;if(i===f2)return-1/0;if(i===h2)return-0;if(o||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 l=a[0],u=e?.[l];if(u){let f=a[1];return typeof f!="number"&&(f=n.push(a[1])-1),r[i]=u(s(f))}switch(l){case"Date":r[i]=new Date(a[1]);break;case"Set":const f=new Set;r[i]=f;for(let p=1;p<a.length;p+=1)f.add(s(a[p]));break;case"Map":const h=new Map;r[i]=h;for(let p=1;p<a.length;p+=2)h.set(s(a[p]),s(a[p+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 d=Object.create(null);r[i]=d;for(let p=1;p<a.length;p+=2)d[a[p]]=s(a[p+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 p=globalThis[l],g=new p(s(a[1]));r[i]=a[2]!==void 0?g.subarray(a[2],a[3]):g;break}case"ArrayBuffer":{const p=a[1],g=s2(p);r[i]=g;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 p=l.slice(9);r[i]=Temporal[p].from(a[1]);break}case"URL":{const p=new URL(a[1]);r[i]=p;break}case"URLSearchParams":{const p=new URLSearchParams(a[1]);r[i]=p;break}default:throw new Error(`Unknown type ${l}`)}}else{const l=new Array(a.length);r[i]=l;for(let u=0;u<a.length;u+=1){const f=a[u];f!==l2&&(l[u]=s(f))}}else{const l={};r[i]=l;for(const u in a){if(u==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const f=a[u];l[u]=s(f)}}return r[i]}return s(0)}const m2=new Set(["link","style","script","noscript"]),g2=new Set(["title","titleTemplate","script","style","noscript"]),Lw=new Set(["base","meta","link","style","script","noscript"]),_2=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),y2=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),E2=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),v2=new Set(["onload","onerror"]),T2=new Set(["templateParams","htmlAttrs","bodyAttrs"]),Ry=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),Wc={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"])},w2={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"},ER={appleItunesApp:{unpack:{entrySeparator:", ",resolve:({key:t,value:e})=>`${Fs(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"?Fs(t):`${Fs(t)}:${e}`}},contentSecurityPolicy:{metaKey:"http-equiv",unpack:{entrySeparator:"; ",resolve:({key:t,value:e})=>`${Fs(t)} ${e}`}},charset:{}};function Fs(t){const e=t.replace(/([A-Z])/g,"-$1").toLowerCase(),n=e.indexOf("-");return n===-1?e:Wc.META.has(e.slice(0,n))||Wc.OG.has(e.slice(0,n))?t.replace(/([A-Z])/g,":$1").toLowerCase():e}function vR(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>String(n)!=="false"&&e))}function Lg(t){return Array.isArray(t)?t.map(Lg):!t||typeof t!="object"?t:Object.fromEntries(Object.entries(t).map(([e,n])=>[Fs(e),Lg(n)]))}function TR(t,e={}){const{entrySeparator:n="",keyValueSeparator:r="",wrapValue:s,resolve:i}=e;return Object.entries(t).map(([o,a])=>{if(i){const u=i({key:o,value:a});if(u!==void 0)return u}const l=typeof a=="object"?TR(a,e):typeof a=="number"?a.toString():typeof a=="str
5ing"&&s?`${s}${a.replace(new RegExp(s,"g"),`\\${s}`)}${s}`:a;return`${o}${r}${l}`}).join(n)}function Vw(t,e){const n=vR(e),r=Fs(t),s=wR(r);if(!Ry.has(r))return[{[s]:r,...n}];const i=Object.fromEntries(Object.entries(n).map(([o,a])=>[`${t}${o==="url"?"":`${o[0].toUpperCase()}${o.slice(1)}`}`,a]));return Bh(i||{}).sort((o,a)=>(o[s]?.length||0)-(a[s]?.length||0))}function wR(t){if(ER[t]?.metaKey==="http-equiv"||Wc.HTTP_EQUIV.has(t))return"http-equiv";const e=Fs(t),n=e.indexOf(":");return n===-1?"name":Wc.OG.has(e.slice(0,n))?"property":"name"}function b2(t){return w2[t]||Fs(t)}function S2(t,e){return e==="refresh"?`${t.seconds};url=${t.url}`:TR(Lg(t),{keyValueSeparator:"=",entrySeparator:", ",resolve:({value:n,key:r})=>n===null?"":typeof n=="boolean"?r:void 0,...ER[e]?.unpack})}function Bh(t){const e=[],n={};for(const[s,i]of Object.entries(t)){if(Array.isArray(i)){if(s==="themeColor"){i.forEach(o=>{typeof o=="object"&&o!==null&&e.push({name:"theme-color",...o})});continue}for(const o of i)if(typeof o=="object"&&o!==null){const a=[],l=[];for(const[u,f]of Object.entries(o)){const h=`${s}${u==="url"?"":`:${u}`}`,d=Bh({[h]:f});(u==="url"?a:l).push(...d)}e.push(...a,...l)}else e.push(...typeof o=="string"?Bh({[s]:o}):Vw(s,o));continue}if(typeof i=="object"&&i)if(Wc.MEDIA.has(s)){const o=s.startsWith("twitter")?"twitter":"og",a=s.replace(/^(og|twitter)/,"").toLowerCase(),l=o==="twitter"?"name":"property";i.url&&e.push({[l]:`${o}:${a}`,content:i.url}),i.secureUrl&&e.push({[l]:`${o}:${a}:secure_url`,content:i.secureUrl});for(const[u,f]of Object.entries(i))u!=="url"&&u!=="secureUrl"&&e.push({[l]:`${o}:${a}:${u}`,content:f})}else Ry.has(Fs(s))?e.push(...Vw(s,i)):n[s]=vR(i);else n[s]=i}const r=Object.entries(n).map(([s,i])=>{if(s==="charset")return{charset:i===null?"_null":i};const o=wR(s),a=b2(s),l=i===null?"_null":typeof i=="object"?S2(i,s):typeof i=="number"?i.toString():i;return o==="http-equiv"?{"http-equiv":a,content:l}:{[o]:a,content:l}});return[...e,...r].map(s=>"content"in s&&s.content==="_null"?{...s,content:null}:s)}const I2={key:"flatMeta",hooks:{"entries:normalize":t=>{const e=[];t.tags=t.tags.map(n=>n.tag!=="_flatMeta"?n:(e.push(Bh(n.props).map(r=>({...n,tag:"meta",props:r}))),!1)).filter(Boolean).concat(...e)}}},A2=["name","property","http-equiv"],R2=new Set(["viewport","description","keywords","robots"]);function bR(t){const e=t.split(":");return e.length?Ry.has(e[1]):!1}function Vg(t){const{props:e,tag:n}=t;if(y2.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 A2)if(e[r]!==void 0){const s=e[r],i=s.includes(":"),o=R2.has(s),l=!(i||o)&&t.key?`:key:${t.key}`:"";return`${n}:${s}${l}`}}if(t.key)return`${n}:key:${t.key}`;if(e.id)return`${n}:id:${e.id}`;if(g2.has(n)){const r=t.textContent||t.innerHTML;if(r)return`${n}:content:${r}`}}function Uw(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,s])=>`${r}:${String(s)}`).join(",")}`}function Hh(t,e,n){typeof t==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(t=t());let s;if(e&&(s=e(n,t)),Array.isArray(s))return s.map(i=>Hh(i,e));if(s?.constructor===Object){const i={};for(const o of Object.keys(s))i[o]=Hh(s[o],e,o);return i}return s}function C2(t,e){const n=t==="style"?new Map:new Set;function r(s){const i=s.trim();if(i)if(t==="style"){const[o,...a]=i.split(":").map(l=>l.trim());o&&a.length&&n.set(o,a.join(":"))}else i.split(" ").filter(Boolean).forEach(o=>n.add(o))}return typeof e=="string"?t==="style"?e.split(";").forEach(r):r(e):Array.isArray(e)?e.forEach(s=>r(s)):e&&typeof e=="object"&&Object.entries(e).forEach(([s,i])=>{i&&i!=="false"&&(t==="style"?n.set(s.trim(),i):r(s))}),n}function SR(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]=C2(n,r);return}if(E2.has(n)){if(["textContent","innerHTML"].includes(n)&&typeof r=="object"){let o=e.type;if(e.type||(o="application/json"),!o?.endsWith("json")&&o!=="speculationrules")return;e.type=o,t.props.type=o,t[n]=JSON.stringify(r)}else t[n]=r;return}const s=String(r),i=n.startsWith("data-");s==="true"||s===""?t.props[n]=i?s:!0:!r&&i&&s==="false"?t.props[n]="false":r!==void 0&&(t.props[n]=r)}),t):t}function P2(t,e){const n=typeof e=="object"&&typeof e!="function"?e:{[t==="script"||t==="noscript"||t==="style"?"innerHTML":"textContent"]:e},r=SR({tag:t,props:{}},n);return r.key&&m2.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(s=>({...r,props:{...r.props,content:s}})):r}function O2(t,e){if(!t)return[];typeof t=="function"&&(t=t());const n=(s,i)=>{for(let o=0;o<e.length;o++)i=e[o](s,i);return i};t=n(void 0,t);const r=[];
5return t=Hh(t,n),Object.entries(t||{}).forEach(([s,i])=>{if(i!==void 0)for(const o of Array.isArray(i)?i:[i])r.push(P2(s,o))}),r.flat()}const Ug=(t,e)=>t._w===e._w?t._p-e._p:t._w-e._w,Fw={base:-10,title:10},N2={critical:-8,high:-1,low:2},Bw={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}},k2=/@import/,Ql=t=>t===""||t===!0;function D2(t,e){if(typeof e.tagPriority=="number")return e.tagPriority;let n=100;const r=N2[e.tagPriority]||0,s=t.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:Bw;if(e.tag in Fw)n=Fw[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=Bw.meta[i])}else e.tag==="link"&&e.props.rel?n=s.link[e.props.rel]:e.tag==="script"?Ql(e.props.async)?n=s.script.async:e.props.src&&!Ql(e.props.defer)&&!Ql(e.props.async)&&e.props.type!=="module"&&!e.props.type?.endsWith("json")?n=s.script.sync:Ql(e.props.defer)&&e.props.src&&!Ql(e.props.async)&&(n=s.script.defer):e.tag==="style"&&(n=e.innerHTML&&k2.test(e.innerHTML)?s.style.imported:s.style.sync);return(n||100)+r}function Hw(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 x2(t={}){const e=fR();e.addHooks(t.hooks||{});const n=!t.document,r=new Map,s=new Map,i=new Set,o={_entryCount:1,plugins:s,dirty:!1,resolvedOptions:t,hooks:e,ssr:n,entries:r,headEntries(){return[...r.values()]},use:a=>Hw(o,a),push(a,l){const u={...l||{}};delete u.head;const f=u._index??o._entryCount++,h={_i:f,input:a,options:u},d={_poll(p=!1){o.dirty=!0,!p&&i.add(f),e.callHook("entries:updated",o)},dispose(){r.delete(f)&&o.invalidate()},patch(p){(!u.mode||u.mode==="server"&&n||u.mode==="client"&&!n)&&(h.input=p,r.set(f,h),d._poll())}};return d.patch(a),d},async resolveTags(){const a={tagMap:new Map,tags:[],entries:[...o.entries.values()]};for(await e.callHook("entries:resolve",a);i.size;){const d=i.values().next().value;i.delete(d);const p=r.get(d);if(p){const g={tags:O2(p.input,t.propResolvers||[]).map(_=>Object.assign(_,p.options)),entry:p};await e.callHook("entries:normalize",g),p._tags=g.tags.map((_,v)=>(_._w=D2(o,_),_._p=(p._i<<10)+v,_._d=Vg(_),_))}}let l=!1;a.entries.flatMap(d=>(d._tags||[]).map(p=>({...p,props:{...p.props}}))).sort(Ug).reduce((d,p)=>{const g=String(p._d||p._p);if(!d.has(g))return d.set(g,p);const _=d.get(g);if((p?.tagDuplicateStrategy||(T2.has(p.tag)?"merge":null)||(p.key&&p.key===_.key?"merge":null))==="merge"){const N={..._.props};Object.entries(p.props).forEach(([O,T])=>N[O]=O==="style"?new Map([..._.props.style||new Map,...T]):O==="class"?new Set([..._.props.class||new Set,...T]):T),d.set(g,{...p,props:N})}else p._p>>10===_._p>>10&&p.tag==="meta"&&bR(g)?(d.set(g,Object.assign([...Array.isArray(_)?_:[_],p],p)),l=!0):(p._w===_._w?p._p>_._p:p?._w<_?._w)&&d.set(g,p);return d},a.tagMap);const u=a.tagMap.get("title"),f=a.tagMap.get("titleTemplate");if(o._title=u?.textContent,f){const d=f?.textContent;if(o._titleTemplate=d,d){let p=typeof d=="function"?d(u?.textContent):d;typeof p=="string"&&!o.plugins.has("template-params")&&(p=p.replace("%s",u?.textContent||"")),u?p===null?a.tagMap.delete("title"):a.tagMap.set("title",{...u,textContent:p}):(f.tag="title",f.textContent=p)}}a.tags=Array.from(a.tagMap.values()),l&&(a.tags=a.tags.flat().sort(Ug)),await e.callHook("tags:beforeResolve",a),await e.callHook("tags:resolve",a),await e.callHook("tags:afterResolve",a);const h=[];for(const d of a.tags){const{innerHTML:p,tag:g,props:_}=d;if(_2.has(g)&&!(Object.keys(_).length===0&&!d.innerHTML&&!d.textContent)&&!(g==="meta"&&!_.content&&!_["http-equiv"]&&!_.charset)){if(g==="script"&&p){if(_.type?.endsWith("json")){const v=typeof p=="string"?p:JSON.stringify(p);d.innerHTML=v.replace(/</g,"\\u003C")}else typeof p=="string"&&(d.innerHTML=p.replace(new RegExp(`</${g}`,"g"),`<\\/${g}`));d._d=Vg(d)}h.push(d)}}return h},invalidate(){for(const a of r.values())i.add(a._i);o.dirty=!0,e.callHook("entries:updated",o)}};
5return(t?.plugins||[]).forEach(a=>Hw(o,a)),o.hooks.callHook("init",o),t.init?.forEach(a=>a&&o.push(a)),o}function M2(t={}){const e=[];let n=-1;const r=(s=!1)=>({get(i,o,a){if(!s){const l=Reflect.get(i,o,a);if(typeof l<"u")return l;n++,e[n]=[]}return e[n].push({type:"get",key:o}),new Proxy(()=>{},r(!0))},apply(i,o,a){e[n].push({type:"apply",key:"",args:a})}});return{proxy:new Proxy(t||{},r()),stack:e}}function L2(t){const e={get(n,r,s){const i=Reflect.get(n,r,s);return typeof i=="object"?new Proxy(i,e):i},apply(n,r,s){Reflect.apply(n,r,s)}};return new Proxy(t,e)}function V2(t,e){e.forEach(n=>{let r=t,s=t;n.forEach(({type:i,key:o,args:a})=>{i==="get"?(s=r,r=r[o]):i==="apply"&&(r=r.call(s,...a))})})}function U2(t){return t.key||t.src||(typeof t.innerHTML=="string"?t.innerHTML:"")}const F2=["preconnect","dns-prefetch"];function B2(t,e,n){const r=typeof e=="string"?{src:e}:e,s=n||{},i=U2(r),o=t._scripts?.[i];if(o)return o.setupTriggerHandler(s.trigger),o;s.beforeInit?.();const a=g=>{d.status=g,t.hooks.callHook("script:updated",p)};v2.forEach(g=>{const _=g,v=typeof r[_]=="function"?r[_].bind(s.eventContext):null;r[_]=N=>{a(g==="onload"?"loaded":g==="onerror"?"error":"loading"),v?.(N)}});const l={loaded:[],error:[]},u=new Set,f=(g,_,v)=>{if(!t.ssr){if(v?.key){const N=`${v?.key}:${v.key}`;if(u.has(N))return;u.add(N)}if(l[g]){const N=l[g].push(_);return()=>l[g]?.splice(N-1,1)}return _(d.instance),()=>{}}},h=new Promise(g=>{if(t.ssr)return;const _=N=>requestAnimationFrame(()=>g(N)),v=t.hooks.hook("script:updated",({script:N})=>{const O=N.status;if(N.id===i&&(O==="loaded"||O==="error")){if(O==="loaded")if(typeof s.use=="function"){const T=s.use();T&&_(T)}else _({});else O==="error"&&g(!1);v()}})}),d={_loadPromise:h,instance:!t.ssr&&s?.use?.()||null,proxy:null,id:i,status:"awaitingLoad",remove(){return d._triggerAbortController?.abort(),d._triggerPromises=[],d._warmupEl?.dispose(),d.entry?(d.entry.dispose(),d.entry=void 0,a("removed"),delete t._scripts?.[i],!0):!1},warmup(g){const{src:_}=r,v=!_.startsWith("/")||_.startsWith("//"),N=g&&F2.includes(g);let O=_;if(!g||N&&!v)return;if(N){const C=new URL(_);O=`${C.protocol}//${C.host}`}const T={href:O,rel:g,crossorigin:typeof r.crossorigin<"u"?r.crossorigin:v?"anonymous":void 0,referrerpolicy:typeof r.referrerpolicy<"u"?r.referrerpolicy:v?"no-referrer":void 0,fetchpriority:typeof r.fetchpriority<"u"?r.fetchpriority:"low",integrity:r.integrity,as:g==="preload"?"script":void 0};return d._warmupEl=t.push({link:[T]},{head:t,tagPriority:"high"}),d._warmupEl},load(g){if(d._triggerAbortController?.abort(),d._triggerPromises=[],!d.entry){a("loading");const _={defer:!0,fetchpriority:"low"};r.src&&(r.src.startsWith("http")||r.src.startsWith("//"))&&(_.crossorigin="anonymous",_.referrerpolicy="no-referrer"),d.entry=t.push({script:[{..._,...r}]},s)}return g&&f("loaded",g),h},onLoaded(g,_){return f("loaded",g,_)},onError(g,_){return f("error",g,_)},setupTriggerHandler(g){if(d.status==="awaitingLoad")if((typeof g>"u"||g==="client")&&!t.ssr||g==="server")d.load();else if(g instanceof Promise){if(t.ssr)return;d._triggerAbortController||(d._triggerAbortController=new AbortController,d._triggerAbortPromise=new Promise(v=>{d._triggerAbortController.signal.addEventListener("abort",()=>{d._triggerAbortController=null,v()})})),d._triggerPromises=d._triggerPromises||[];const _=d._triggerPromises.push(Promise.race([g.then(v=>typeof v>"u"||v?d.load:void 0),d._triggerAbortPromise]).catch(()=>{}).then(v=>{v?.()}).finally(()=>{d._triggerPromises?.splice(_,1)}))}else typeof g=="function"&&g(d.load)},_cbs:l};h.then(g=>{g!==!1?(d.instance=g,l.loaded?.forEach(_=>_(g)),l.loaded=null):(l.error?.forEach(_=>_()),l.error=null)});const p={script:d};if(d.setupTriggerHandler(s.trigger),s.use){const{proxy:g,stack:_}=M2(t.ssr?{}:s.use()||{});d.proxy=g,d.onLoaded(v=>{V2(v,_),d.proxy=L2(v)})}return!s.warmupStrategy&&(typeof s.trigger>"u"||s.trigger==="client")&&(s.warmupStrategy="preload"),s.warmupStrategy&&d.warmup(s.warmupStrategy),t._scripts=Object.assign(t._scripts||{},{[i]:d}),d}const Sm="%separator";function H2(t,e,n=!1){let r;if(e==="s"||e==="pageTitle")r=t.pageTitle;else if(e.includes(".")){const s=e.indexOf(".");r=t[e.substring(0,s)]?.[e.substring(s+1)]}else r=t[e];if(r!==void 0)return n?(r||"").replace(/\\/g,"\\\\").replace(/</g,"\\u003C").replace(/"/g,'\\"'):r||""}function Cf(t,e,n,r=!1){if(typeof t!="string"||!t.includes("%"))return t;let s=t;try{s=decodeURI(t)}catch{}const i=s.match(/%\w+(?:\.\w+)?/g);if(!i)return t;const o=t.includes(Sm);return t=t.replace(/%\w+(?:\.\w+)?/g,a=>{if(a===Sm||!i.includes(a))return a;const l=H2(e,a.slice(1),r);return l!==void 0?l:a}
5).trim(),o&&(t=t.split(Sm).map(a=>a.trim()).filter(a=>a!=="").join(n?` ${n} `:" ")),t}const $w=t=>t.includes(":key")?t:t.split(":").join(":key:"),$2={key:"aliasSorting",hooks:{"tags:resolve":t=>{let e=!1;for(const n of t.tags){const r=n.tagPriority;if(!r)continue;const s=String(r);if(s.startsWith("before:")){const i=$w(s.slice(7)),o=t.tagMap.get(i);o&&(typeof o.tagPriority=="number"&&(n.tagPriority=o.tagPriority),n._p=o._p-1,e=!0)}else if(s.startsWith("after:")){const i=$w(s.slice(6)),o=t.tagMap.get(i);o&&(typeof o.tagPriority=="number"&&(n.tagPriority=o.tagPriority),n._p=o._p+1,e=!0)}}e&&(t.tags=t.tags.sort(Ug))}}},j2={key:"deprecations",hooks:{"entries:normalize":({tags:t})=>{for(const e of t)e.props.children&&(e.innerHTML=e.props.children,delete e.props.children),e.props.hid&&(e.key=e.props.hid,delete e.props.hid),e.props.vmid&&(e.key=e.props.vmid,delete e.props.vmid),e.props.body&&(e.tagPosition="bodyClose",delete e.props.body)}}};async function Fg(t){if(typeof t==="function")return t;if(t instanceof Promise)return await t;if(Array.isArray(t))return await Promise.all(t.map(n=>Fg(n)));if(t?.constructor===Object){const n={};for(const r of Object.keys(t))n[r]=await Fg(t[r]);return n}return t}const q2={key:"promises",hooks:{"entries:resolve":async t=>{const e=[];for(const n in t.entries)t.entries[n]._promisesProcessed||e.push(Fg(t.entries[n].input).then(r=>{t.entries[n].input=r,t.entries[n]._promisesProcessed=!0}));await Promise.all(e)}}},W2={meta:"content",link:"href",htmlAttrs:"lang"},G2=["innerHTML","textContent"],Y2=t=>({key:"template-params",hooks:{"entries:normalize":e=>{const n=e.tags.filter(r=>r.tag==="templateParams"&&r.mode==="server")?.[0]?.props||{};Object.keys(n).length&&(t._ssrPayload={templateParams:{...t._ssrPayload?.templateParams||{},...n}})},"tags:resolve":({tagMap:e,tags:n})=>{const r=e.get("templateParams")?.props||{},s=r.separator||"|";delete r.separator,r.pageTitle=Cf(r.pageTitle||t._title||"",r,s);for(const i of n){if(i.processTemplateParams===!1)continue;const o=W2[i.tag];if(o&&typeof i.props[o]=="string")i.props[o]=Cf(i.props[o],r,s);else if(i.processTemplateParams||i.tag==="titleTemplate"||i.tag==="title")for(const a of G2)typeof i[a]=="string"&&(i[a]=Cf(i[a],r,s,i.tag==="script"&&i.props.type.endsWith("json")))}t._templateParams=r,t._separator=s},"tags:afterResolve":({tagMap:e})=>{const n=e.get("title");n?.textContent&&n.processTemplateParams!==!1&&(n.textContent=Cf(n.textContent,t._templateParams,t._separator))}}}),z2=(t,e)=>ft(e)?II(e):e,Cy="usehead";function K2(t){return{install(n){n.config.globalProperties.$unhead=t,n.config.globalProperties.$head=t,n.provide(Cy,t)}}.install}function Py(){if(El()){const t=Wt(Cy);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 IR(t,e={}){const n=e.head||Py();return n.ssr?n.push(t||{},e):X2(n,t,e)}function X2(t,e,n={}){const r=Pe(!1);let s;return La(()=>{const o=r.value?{}:Hh(e,z2);s?s.patch(o):s=t.push(o,n)}),rn()&&(aa(()=>{s.dispose()}),ay(()=>{r.value=!0}),oy(()=>{r.value=!1})),s}function J2(t={},e={}){(e.head||Py()).use(I2);const{title:r,titleTemplate:s,...i}=t;return IR({title:r,titleTemplate:s,_flatMeta:i},e)}function Q2(t,e){if(!e)return;const n=(r,s)=>{if(!t._cbs[r])return s(t.instance),()=>{};let i=t._cbs[r].push(s);const o=()=>{i&&(t._cbs[r]?.splice(i-1,1),i=null)};return za(o),o};t.onLoaded=r=>n("loaded",r),t.onError=r=>n("error",r),za(()=>{t._triggerAbortController?.abort()})}function Z2(t,e){const n=typeof t=="string"?{src:t}:t,r=e||{},s=r?.head||Py();r.head=s;const i=rn();if(r.eventContext=i,i&&typeof r.trigger>"u")r.trigger=Jr;else if(ft(r.trigger)){const a=r.trigger;let l;r.trigger=new Promise(u=>{l=br(a,f=>{f&&u(!0)},{immediate:!0}),za(()=>u(!1),!0)}).then(u=>(l?.(),u))}s._scriptStatusWatcher=s._scriptStatusWatcher||s.hooks.hook("script:updated",({script:a})=>{a._statusRef.value=a.status});const o=B2(s,n,r);return o._statusRef=o._statusRef||Pe(o.status),Q2(o,i),new Proxy(o,{get(a,l,u){return Reflect.get(a,l==="status"?"_statusRef":l,u)}})}function Oy(t){const e=t||pR();return e?.ssrContext?.head||e?.runWithContext(()=>{if(El())return Wt(Cy)})}function Ny(t,e={}){const n=Oy(e.nuxt);if(n)return IR(t,{head:n,...e})}function SQ(t,e={}){const n=Oy(e.nuxt);if(n)return J2(t,{head:n,...e})}async function jw(t,e={}){if(!await RR(t))return null;const r=await tU(t,e);return await AR(r)||null}const eU="_payload.json";async function tU(t,e={}){const n=new URL(t,"http://localhost");if(n.host!=="localhost"||oo(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+t);const r=Zt(),s=e.hash||(e.fresh?Date.now():r.app.buildId),i=r.app.cdnURL,o=i&&await RR(t)?i:r.app.baseURL;return Bd(o,n.pathname,eU+(s?`?${s}`:""))}async function AR(t){const e=fetch(t,{cache:"force-cache"}).then(n=>n.text().then(CR));try{return await e}catch{}return null}async function RR(t=Hd().path){return!!ht().payload.prerenderedAt}let yo=null;async function nU(){if(yo)return yo;const t=document.getElementById("__NUXT_DATA__");if(!t)return{};const e=await CR(t.textContent||""),n=t.dataset.src?await AR(t.dataset.src):void 0;return yo={...e,...n,...window.__NUXT__},yo.config?.public&&(yo.config.public=nn(yo.config.public)),yo}async function CR(t){return await d2(t,ht()._payloadRevivers)}function rU(t,e){ht()._payloadRevivers[t]=e}const sU=[["NuxtError",t=>Fo(t)],["EmptyShallowRef",t=>or(t==="_"?void 0:t==="0n"?BigInt(0):Mh(t))],["EmptyRef",t=>Pe(t==="_"?void 0:t==="0n"?BigInt(0):Mh(t))],["ShallowRef",t=>or(t)],["ShallowReactive",t=>Fr(t)],["Ref",t=>Pe(t)],["Reactive",t=>nn(t)]],iU=sn({name:"nuxt:revive-payload:client",order:-30,async setup(t){let e,n;for(const[r,s]of sU)rU(r,s);Object.assign(t.payload,([e,n]=Uo(()=>t.runWithContext(nU)),e=await e,n(),e)),window.__NUXT__=t.payload}});async function ky(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 s=>{const i=new Map,o=new Promise(p=>{t.resolveTags().then(g=>{p(g.map(_=>{const v=i.get(_._d)||0,N={tag:_,id:(v?`${_._d}:${v}`:_._d)||Uw(_),shouldRender:!0};return _._d&&bR(_._d)&&i.set(_._d,v+1),N}))})});let a=t._dom;if(!a){a={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const p of["body","head"]){const g=n[p]?.children;for(const _ of g){const v=_.tagName.toLowerCase();if(!Lw.has(v))continue;const N=SR({tag:v,props:{}},{innerHTML:_.innerHTML,..._.getAttributeNames().reduce((O,T)=>(O[T]=_.getAttribute(T),O),{})||{}});if(N.key=_.getAttribute("data-hid")||void 0,N._d=Vg(N)||Uw(N),a.elMap.has(N._d)){let O=1,T=N._d;for(;a.elMap.has(T);)T=`${N._d}:${O++}`;a.elMap.set(T,_)}
5else a.elMap.set(N._d,_)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function l(p,g,_){const v=`${p}:${g}`;a.sideEffects[v]=_,delete a.pendingSideEffects[v]}function u({id:p,$el:g,tag:_}){const v=_.tag.endsWith("Attrs");a.elMap.set(p,g),v||(_.textContent&&_.textContent!==g.textContent&&(g.textContent=_.textContent),_.innerHTML&&_.innerHTML!==g.innerHTML&&(g.innerHTML=_.innerHTML),l(p,"el",()=>{g?.remove(),a.elMap.delete(p)}));for(const N in _.props){if(!Object.prototype.hasOwnProperty.call(_.props,N))continue;const O=_.props[N];if(N.startsWith("on")&&typeof O=="function"){const C=g?.dataset;if(C&&C[`${N}fired`]){const x=N.slice(0,-5);O.call(g,new Event(x.substring(2)))}g.getAttribute(`data-${N}`)!==""&&((_.tag==="bodyAttrs"?n.defaultView:g).addEventListener(N.substring(2),O.bind(g)),g.setAttribute(`data-${N}`,""));continue}const T=`attr:${N}`;if(N==="class"){if(!O)continue;for(const C of O)v&&l(p,`${T}:${C}`,()=>g.classList.remove(C)),!g.classList.contains(C)&&g.classList.add(C)}else if(N==="style"){if(!O)continue;for(const[C,x]of O)l(p,`${T}:${C}`,()=>{g.style.removeProperty(C)}),g.style.setProperty(C,x)}else O!==!1&&O!==null&&(g.getAttribute(N)!==O&&g.setAttribute(N,O===!0?"":String(O)),v&&l(p,T,()=>g.removeAttribute(N)))}}const f=[],h={bodyClose:void 0,bodyOpen:void 0,head:void 0},d=await o;for(const p of d){const{tag:g,shouldRender:_,id:v}=p;if(_){if(g.tag==="title"){n.title=g.textContent,l("title","",()=>n.title=a.title);continue}p.$el=p.$el||a.elMap.get(v),p.$el?u(p):Lw.has(g.tag)&&f.push(p)}}for(const p of f){const g=p.tag.tagPosition||"head";p.$el=n.createElement(p.tag.tag),u(p),h[g]=h[g]||n.createDocumentFragment(),h[g].appendChild(p.$el)}for(const p of d)await t.hooks.callHook("dom:renderTag",p,n,l);h.head&&n.head.appendChild(h.head),h.bodyOpen&&n.body.insertBefore(h.bodyOpen,n.body.firstChild),h.bodyClose&&n.body.appendChild(h.bodyClose);for(const p in a.pendingSideEffects)a.pendingSideEffects[p]();t._dom=a,await t.hooks.callHook("dom:rendered",{renders:d}),s()}).finally(()=>{t._domUpdatePromise=void 0,t.dirty=!1})),t._domUpdatePromise}function oU(t={}){const e=t.domOptions?.render||ky;t.document=t.document||(typeof window<"u"?document:void 0);const n=t.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return x2({...t,plugins:[...t.plugins||[],{key:"client",hooks:{"entries:updated":e}}],init:[n?JSON.parse(n):!1,...t.init||[]]})}function aU(t,e){let n=0;return()=>{const r=++n;e(()=>{n===r&&t()})}}function lU(t={}){const e=oU({domOptions:{render:aU(()=>ky(e),n=>setTimeout(n,0))},...t});return e.install=K2(e),e}const cU={disableDefaults:!0,disableCapoSorting:!1,plugins:[j2,q2,Y2,$2]},uU=sn({name:"nuxt:head",enforce:"pre",setup(t){const e=lU(cU);t.vueApp.use(e);{let n=!0;const r=async()=>{n=!1,await ky(e)};e.hooks.hook("dom:beforeRender",s=>{s.shouldRender=!n}),t.hooks.hook("page:start",()=>{n=!0}),t.hooks.hook("page:finish",()=>{t.isHydrating||r()}),t.hooks.hook("app:error",r),t.hooks.hook("app:suspense:resolve",r)}}});const Aa=typeof document<"u";function PR(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function fU(t){return t.__esModule||t[Symbol.toStringTag]==="Module"||t.default&&PR(t.default)}const rt=Object.assign;function Im(t,e){const n={};for(const r in e){const s=e[r];n[r]=Yr(s)?s.map(t):t(s)}return n}const Ec=()=>{},Yr=Array.isArray;function qw(t,e){const n={};for(const r in t)n[r]=r in e?e[r]:t[r];return n}const OR=/#/g,hU=/&/g,dU=/\//g,pU=/=/g,mU=/\?/g,NR=/\+/g,gU=/%5B/g,_U=/%5D/g,kR=/%5E/g,yU=/%60/g,DR=/%7B/g,EU=/%7C/g,xR=/%7D/g,vU=/%20/g;function Dy(t){return t==null?"":encodeURI(""+t).replace(EU,"|").replace(gU,"[").replace(_U,"]")}function TU(t){return Dy(t).replace(DR,"{").replace(xR,"}").replace(kR,"^")}function Bg(t){return Dy(t).replace(NR,"%2B").replace(vU,"+").replace(OR,"%23").replace(hU,"%26").replace(yU,"`").replace(DR,"{").replace(xR,"}").replace(kR,"^")}function wU(t){return Bg(t).replace(pU,"%3D")}function bU(t){return Dy(t).replace(OR,"%23").replace(mU,"%3F")}function SU(t){return bU(t).replace(dU,"%2F")}function Gc(t){if(t==null)return null;try{return decodeURIComponent(""+t)}catch{}return""+t}const IU=/\/$/,AU=t=>t.replace(IU,"");function Am(t,e,n="/"){let r,s={},i="",o="";const a=e.indexOf("#");let l=e.indexOf("?");return l=a>=0&&l>a?-1:l,l>=0&&(r=e.slice(0,l),i=e.slice(l,a>0?a:e.length),s=t(i.slice(1))),a>=0&&(r=r||e.slice(0,a),o=e.slice(a,e.length)),r=OU(r??e,n),{fullPath:r+i+o,path:r,query:s,hash:Gc(o)}}function RU(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function Ww(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function CU(t,e,n){const r=e.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&el(e.matched[r],n.matched[s])&&MR(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function el(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function MR(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!PU(t[n],e[n]))return!1;return!0}function PU(t,e){return Yr(t)?Gw(t,e):Yr(e)?Gw(e,t):t===e}function Gw(t,e){return Yr(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t.length===1&&t[0]===e}function OU(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),r=t.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let i=n.length-1,o,a;for(o=0;o<r.length;o++)if(a=r[o],a!==".")if(a==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(o).join("/")}const Tr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Hg=(function(t){return t.pop="pop",t.push="push",t})({}),Rm=(function(t){return t.back="back",t.forward="forward",t.unknown="",t})({});function NU(t){if(!t)if(Aa){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),AU(t)}const kU=/^[^#]+#/;function DU(t,e){return t.replace(kU,"#")+e}function xU(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 jd=()=>({left:window.scrollX,top:window.scrollY});function MU(t){let e;if("el"in t){const n=t.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;e=xU(s,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)}
vendor: 18,706 bytes, line 5
5function Yw(t,e){return(history.state?history.state.position-e:-1)+t}const $g=new Map;function LU(t,e){$g.set(t,e)}function VU(t){const e=$g.get(t);return $g.delete(t),e}function UU(t){return typeof t=="string"||t&&typeof t=="object"}function LR(t){return typeof t=="string"||typeof t=="symbol"}let Rt=(function(t){return t[t.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",t[t.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",t[t.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",t[t.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",t[t.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",t})({});const VR=Symbol("");Rt.MATCHER_NOT_FOUND+"",Rt.NAVIGATION_GUARD_REDIRECT+"",Rt.NAVIGATION_ABORTED+"",Rt.NAVIGATION_CANCELLED+"",Rt.NAVIGATION_DUPLICATED+"";function tl(t,e){return rt(new Error,{type:t,[VR]:!0},e)}function Rs(t,e){return t instanceof Error&&VR in t&&(e==null||!!(t.type&e))}const FU=["params","query","hash"];function BU(t){if(typeof t=="string")return t;if(t.path!=null)return t.path;const e={};for(const n of FU)n in t&&(e[n]=t[n]);return JSON.stringify(e,null,2)}function HU(t){const e={};if(t===""||t==="?")return e;const n=(t[0]==="?"?t.slice(1):t).split("&");for(let r=0;r<n.length;++r){const s=n[r].replace(NR," "),i=s.indexOf("="),o=Gc(i<0?s:s.slice(0,i)),a=i<0?null:Gc(s.slice(i+1));if(o in e){let l=e[o];Yr(l)||(l=e[o]=[l]),l.push(a)}else e[o]=a}return e}function zw(t){let e="";for(let n in t){const r=t[n];if(n=wU(n),r==null){r!==void 0&&(e+=(e.length?"&":"")+n);continue}(Yr(r)?r.map(s=>s&&Bg(s)):[r&&Bg(r)]).forEach(s=>{s!==void 0&&(e+=(e.length?"&":"")+n,s!=null&&(e+="="+s))})}return e}function $U(t){const e={};for(const n in t){const r=t[n];r!==void 0&&(e[n]=Yr(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return e}const jU=Symbol(""),Kw=Symbol(""),xy=Symbol(""),My=Symbol(""),jg=Symbol("");function Zl(){let t=[];function e(r){return t.push(r),()=>{const s=t.indexOf(r);s>-1&&t.splice(s,1)}}function n(){t=[]}return{add:e,list:()=>t.slice(),reset:n}}function Ai(t,e,n,r,s,i=o=>o()){const o=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((a,l)=>{const u=d=>{d===!1?l(tl(Rt.NAVIGATION_ABORTED,{from:n,to:e})):d instanceof Error?l(d):UU(d)?l(tl(Rt.NAVIGATION_GUARD_REDIRECT,{from:e,to:d})):(o&&r.enterCallbacks[s]===o&&typeof d=="function"&&o.push(d),a())},f=i(()=>t.call(r&&r.instances[s],e,n,u));let h=Promise.resolve(f);t.length<3&&(h=h.then(u)),h.catch(d=>l(d))})}function Cm(t,e,n,r,s=i=>i()){const i=[];for(const o of t)for(const a in o.components){let l=o.components[a];if(!(e!=="beforeRouteEnter"&&!o.instances[a]))if(PR(l)){const u=(l.__vccOpts||l)[e];u&&i.push(Ai(u,n,r,o,a,s))}else{let u=l();i.push(()=>u.then(f=>{if(!f)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const h=fU(f)?f.default:f;o.mods[a]=f,o.components[a]=h;const d=(h.__vccOpts||h)[e];return d&&Ai(d,n,r,o,a,s)()}))}}return i}function qU(t,e){const n=[],r=[],s=[],i=Math.max(e.matched.length,t.matched.length);for(let o=0;o<i;o++){const a=e.matched[o];a&&(t.matched.find(u=>el(u,a))?r.push(a):n.push(a));const l=t.matched[o];l&&(e.matched.find(u=>el(u,l))||s.push(l))}return[n,r,s]}let WU=()=>location.protocol+"//"+location.host;function UR(t,e){const{pathname:n,search:r,hash:s}=e,i=t.indexOf("#");if(i>-1){let o=s.includes(t.slice(i))?t.slice(i).length:1,a=s.slice(o);return a[0]!=="/"&&(a="/"+a),Ww(a,"")}return Ww(n,t)+r+s}function GU(t,e,n,r){let s=[],i=[],o=null;const a=({state:d})=>{const p=UR(t,location),g=n.value,_=e.value;let v=0;if(d){if(n.value=p,e.value=d,o&&o===g){o=null;return}v=_?d.position-_.position:0}else r(p);s.forEach(N=>{N(n.value,g,{delta:v,type:Hg.pop,direction:v?v>0?Rm.forward:Rm.back:Rm.unknown})})};function l(){o=n.value}function u(d){s.push(d);const p=()=>{const g=s.indexOf(d);g>-1&&s.splice(g,1)};return i.push(p),p}function f(){if(document.visibilityState==="hidden"){const{history:d}=window;if(!d.state)return;d.replaceState(rt({},d.state,{scroll:jd()}),"")}}function h(){for(const d of i)d();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",f),document.removeEventListener("visibilitychange",f)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",f),document.addEventListener("visibilitychange",f),{pauseListeners:l,listen:u,destroy:h}}function Xw(t,e,n,r=!1,s=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:s?jd():null}}function YU(t){const{history:e,location:n}=window,r={value:UR(t,n)},s={value:e.state};s.value||i(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function i(l,u,f){const h=t.indexOf("#"),d=h>-1?(n.host&&document.querySelector("base")?t:t.slice(h))+l:WU()+t+l;try{e[f?"replaceState":"pushState"](u,"",d),s.value=u}catch{n[f?"replace":"assign"](d)}}function o(l,u){i(l,rt({},e.state,Xw(s.value.back,l,s.value.forward,!0),u,{position:s.value.position}),!0),r.value=l}function a(l,u){const f=rt({},s.value,e.state,{forward:l,scroll:jd()});i(f.current,f,!0),i(l,rt({},Xw(r.value,l,null),{position:f.position+1},u),!1),r.value=l}return{location:r,state:s,push:a,replace:o}}function zU(t){t=NU(t);const e=YU(t),n=GU(t,e.state,e.location,e.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const s=rt({location:"",base:t,go:r,createHref:DU.bind(null,t)},e,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>e.state.value}),s}let So=(function(t){return t[t.Static=0]="Static",t[t.Param=1]="Param",t[t.Group=2]="Group",t})({});var $t=(function(t){return t[t.Static=0]="Static",t[t.Param=1]="Param",t[t.ParamRegExp=2]="ParamRegExp",t[t.ParamRegExpEnd=3]="ParamRegExpEnd",t[t.EscapeNext=4]="EscapeNext",t})($t||{});const KU={type:So.Static,value:""},XU=/[a-zA-Z0-9_]/;function JU(t){if(!t)return[[]];if(t==="/")return[[KU]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(p){throw new Error(`ERR (${n})/"${u}": ${p}`)}let n=$t.Static,r=n;const s=[];let i;function o(){i&&s.push(i),i=[]}let a=0,l,u="",f="";function h(){u&&(n===$t.Static?i.push({type:So.Static,value:u}):n===$t.Param||n===$t.ParamRegExp||n===$t.ParamRegExpEnd?(i.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:So.Param,value:u,regexp:f,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;a<t.length;){if(l=t[a++],l==="\\"&&n!==$t.ParamRegExp){r=n,n=$t.EscapeNext;continue}switch(n){case $t.Static:l==="/"?(u&&h(),o()):l===":"?(h(),n=$t.Param):d();break;case $t.EscapeNext:d(),n=r;break;case $t.Param:l==="("?n=$t.ParamRegExp:XU.test(l)?d():(h(),n=$t.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case $t.ParamRegExp:l===")"?f[f.length-1]=="\\"?f=f.slice(0,-1)+l:n=$t.ParamRegExpEnd:f+=l;break;case $t.ParamRegExpEnd:h(),n=$t.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--,f="";break;default:e("Unknown state");break}}return n===$t.ParamRegExp&&e(`Unfinished custom RegExp for param "${u}"`),h(),o(),s}const Jw="[^/]+?",QU={sensitive:!1,strict:!1,start:!0,end:!0};var qn=(function(t){return t[t._multiplier=10]="_multiplier",t[t.Root=90]="Root",t[t.Segment=40]="Segment",t[t.SubSegment=30]="SubSegment",t[t.Static=40]="Static",t[t.Dynamic=20]="Dynamic",t[t.BonusCustomRegExp=10]="BonusCustomRegExp",t[t.BonusWildcard=-50]="BonusWildcard",t[t.BonusRepeatable=-20]="BonusRepeatable",t[t.BonusOptional=-8]="BonusOptional",t[t.BonusStrict=.7000000000000001]="BonusStrict",t[t.BonusCaseSensitive=.25]="BonusCaseSensitive",t})(qn||{});const ZU=/[.+*?^${}()[\]/\\]/g;function eF(t,e){const n=rt({},QU,e),r=[];let s=n.start?"^":"";const i=[];for(const u of t){const f=u.length?[]:[qn.Root];n.strict&&!u.length&&(s+="/");for(let h=0;h<u.length;h++){const d=u[h];let p=qn.Segment+(n.sensitive?qn.BonusCaseSensitive:0);if(d.type===So.Static)h||(s+="/"),s+=d.value.replace(ZU,"\\$&"),p+=qn.Static;else if(d.type===So.Param){const{value:g,repeatable:_,optional:v,regexp:N}=d;i.push({name:g,repeatable:_,optional:v});const O=N||Jw;if(O!==Jw){p+=qn.BonusCustomRegExp;try{`${O}`}catch(C){throw new Error(`Invalid custom RegExp for param "${g}" (${O}): `+C.message)}}let T=_?`((?:${O})(?:/(?:${O}))*)`:`(${O})`;h||(T=v&&u.length<2?`(?:/${T})`:"/"+T),v&&(T+="?"),s+=T,p+=qn.Dynamic,v&&(p+=qn.BonusOptional),_&&(p+=qn.BonusRepeatable),O===".*"&&(p+=qn.BonusWildcard)}f.push(p)}r.push(f)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=qn.BonusStrict}n.strict||(s+="/?"),n.end?s+="$":n.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const o=new RegExp(s,n.sensitive?"":"i");function a(u){const f=u.match(o),h={};if(!f)return null;for(let d=1;d<f.length;d++){const p=f[d]||"",g=i[d-1];h[g.name]=p&&g.repeatable?p.split("/"):p}return h}function l(u){let f="",h=!1;for(const d of t){(!h||!f.endsWith("/"))&&(f+="/"),h=!1;for(const p of d)if(p.type===So.Static)f+=p.value;else if(p.type===So.Param){const{value:g,repeatable:_,optional:v}=p,N=g in u?u[g]:"";if(Yr(N)&&!_)throw new Error(`Provided param "${g}" is an array but it is not repeatable (* or + modifiers)`);const O=Yr(N)?N.join("/"):N;if(!O)if(v)d.length<2&&(f.endsWith("/")?f=f.slice(0,-1):h=!0);else throw new Error(`Missing required param "${g}"`);f+=O}}return f||"/"}return{re:o,score:r,keys:i,parse:a,stringify:l}}function tF(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]===qn.Static+qn.Segment?-1:1:t.length>e.length?e.length===1&&e[0]===qn.Static+qn.Segment?1:-1:0}function FR(t,e){let n=0;const r=t.score,s=e.score;for(;n<r.length&&n<s.length;){const i=tF(r[n],s[n]);if(i)return i;n++}if(Math.abs(s.length-r.length)===1){if(Qw(r))return 1;if(Qw(s))return-1}return s.length-r.length}function Qw(t){const e=t[t.length-1];return t.length>0&&e[e.length-1]<0}const nF={strict:!1,end:!0,sensitive:!1};function rF(t,e,n){const r=eF(JU(t.path),n),s=rt(r,{record:t,parent:e,children:[],alias:[]});return e&&!s.record.aliasOf==!e.record.aliasOf&&e.children.push(s),s}function sF(t,e){const n=[],r=new Map;e=qw(nF,e);function s(h){return r.get(h)}function i(h,d,p){const g=!p,_=e0(h);_.aliasOf=p&&p.record;const v=qw(e,h),N=[_];if("alias"in h){const C=typeof h.alias=="string"?[h.alias]:h.alias;for(const x of C)N.push(e0(rt({},_,{components:p?p.record.components:_.components,path:x,aliasOf:p?p.record:_})))}let O,T;for(const C of N){const{path:x}=C;if(d&&x[0]!=="/"){const L=d.record.path,R=L[L.length-1]==="/"?"":"/";C.path=d.record.path+(x&&R+x)}if(O=rF(C,d,v),p?p.alias.push(O):(T=T||O,T!==O&&T.alias.push(O),g&&h.name&&!t0(O)&&o(h.name)),BR(O)&&l(O),_.children){const L=_.children;for(let R=0;R<L.length;R++)i(L[R],O,p&&p.children[R])}p=p||O}return T?()=>{o(T)}:Ec}function o(h){if(LR(h)){const d=r.get(h);d&&(r.delete(h),n.splice(n.indexOf(d),1),d.children.forEach(o),d.alias.forEach(o))}else{const d=n.indexOf(h);d>-1&&(n.splice(d,1),h.record.name&&r.delete(h.record.name),h.children.forEach(o),h.alias.forEach(o))}}function a(){return n}function l(h){const d=aF(h,n);n.splice(d,0,h),h.record.name&&!t0(h)&&r.set(h.record.name,h)}function u(h,d){let p,g={},_,v;if("name"in h&&h.name){if(p=r.get(h.name),!p)throw tl(Rt.MATCHER_NOT_FOUND,{location:h});v=p.record.name,g=rt(Zw(d.params,p.keys.filter(T=>!T.optional).concat(p.parent?p.parent.keys.filter(T=>T.optional):[]).map(T=>T.name)),h.params&&Zw(h.params,p.keys.map(T=>T.name))),_=p.stringify(g)}else if(h.path!=null)_=h.path,p=n.find(T=>T.re.test(_)),p&&(g=p.parse(_),v=p.record.name);else{if(p=d.name?r.get(d.name):n.find(T=>T.re.test(d.path)),!p)throw tl(Rt.MATCHER_NOT_FOUND,{location:h,currentLocation:d});v=p.record.name,g=rt({},d.params,h.params),_=p.stringify(g)}const N=[];let O=p;for(;O;)N.unshift(O.record),O=O.parent;return{name:v,path:_,params:g,matched:N,meta:oF(N)}}t.forEach(h=>i(h));function f(){n.length=0,r.clear()}return{addRoute:i,resolve:u,removeRoute:o,clearRoutes:f,getRoutes:a,getRecordMatcher:s}}function Zw(t,e){const n={};for(const r of e)r in t&&(n[r]=t[r]);return n}function e0(t){const e={path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:t.aliasOf,beforeEnter:t.beforeEnter,props:iF(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 iF(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 t0(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function oF(t){return t.reduce((e,n)=>rt(e,n.meta),{})}function aF(t,e){let n=0,r=e.length;for(;n!==r;){const i=n+r>>1;FR(t,e[i])<0?r=i:n=i+1}const s=lF(t);return s&&(r=e.lastIndexOf(s,r-1)),r}function lF(t){let e=t;for(;e=e.parent;)if(BR(e)&&FR(t,e)===0)return e}function BR({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function n0(t){const e=Wt(xy),n=Wt(My),r=de(()=>{const l=ve(t.to);return e.resolve(l)}),s=de(()=>{const{matched:l}=r.value,{length:u}=l,f=l[u-1],h=n.matched;if(!f||!h.length)return-1;const d=h.findIndex(el.bind(null,f));if(d>-1)return d;const p=r0(l[u-2]);return u>1&&r0(f)===p&&h[h.length-1].path!==p?h.findIndex(el.bind(null,l[u-2])):d}),i=de(()=>s.value>-1&&dF(n.params,r.value.params)),o=de(()=>s.value>-1&&s.value===n.matched.length-1&&MR(n.params,r.value.params));function a(l={}){if(hF(l)){const u=e[ve(t.replace)?"replace":"push"](ve(t.to)).catch(Ec);return t.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:de(()=>r.value.href),isActive:i,isExactActive:o,navigate:a}}function cF(t){return t.length===1?t[0]:t}const uF=Nt({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:n0,setup(t,{slots:e}){const n=nn(n0(t)),{options:r}=Wt(xy),s=de(()=>({[s0(t.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[s0(t.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=e.default&&cF(e.default(n));return t.custom?i:Et("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),fF=uF;function hF(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 dF(t,e){for(const n in e){const r=e[n],s=t[n];if(typeof r=="string"){if(r!==s)return!1}else if(!Yr(s)||s.length!==r.length||r.some((i,o)=>i!==s[o]))return!1}return!0}function r0(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const s0=(t,e,n)=>t??e??n,pF=Nt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const r=Wt(jg),s=de(()=>t.route||r.value),i=Wt(Kw,0),o=de(()=>{let u=ve(i);const{matched:f}=s.value;let h;for(;(h=f[u])&&!h.components;)u++;return u}),a=de(()=>s.value.matched[o.value]);fs(Kw,de(()=>o.value+1)),fs(jU,a),fs(jg,s);const l=Pe();return br(()=>[l.value,a.value,t.name],([u,f,h],[d,p,g])=>{f&&(f.instances[h]=u,p&&p!==f&&u&&u===d&&(f.leaveGuards.size||(f.leaveGuards=p.leaveGuards),f.updateGuards.size||(f.updateGuards=p.updateGuards))),u&&f&&(!p||!el(f,p)||!d)&&(f.enterCallbacks[h]||[]).forEach(_=>_(u))},{flush:"post"}),()=>{const u=s.value,f=t.name,h=a.value,d=h&&h.components[f];if(!d)return i0(n.default,{Component:d,route:u});const p=h.props[f],g=p?p===!0?u.params:typeof p=="function"?p(u):p:null,v=Et(d,rt({},g,e,{onVnodeUnmounted:N=>{N.component.isUnmounted&&(h.instances[f]=null)},ref:l}));return i0(n.default,{Component:v,route:u})||v}}});function i0(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const HR=pF;function mF(t){const e=sF(t.routes,t),n=t.parseQuery||HU,r=t.stringifyQuery||zw,s=t.history,i=Zl(),o=Zl(),a=Zl(),l=or(Tr);let u=Tr;Aa&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Im.bind(null,$=>""+$),h=Im.bind(null,SU),d=Im.bind(null,Gc);function p($,ae){let re,fe;return LR($)?(re=e.getRecordMatcher($),fe=ae):fe=$,e.addRoute(fe,re)}function g($){const ae=e.getRecordMatcher($);ae&&e.removeRoute(ae)}function _(){return e.getRoutes().map($=>$.record)}function v($){return!!e.getRecordMatcher($)}function N($,ae){if(ae=rt({},ae||l.value),typeof $=="string"){const D=Am(n,$,ae.path),M=e.resolve({path:D.path},ae),H=s.createHref(D.fullPath);return rt(D,M,{params:d(M.params),hash:Gc(D.hash),redirectedFrom:void 0,href:H})}let re;if($.path!=null)re=rt({},$,{path:Am(n,$.path,ae.path).path});else{const D=rt({},$.params);for(const M in D)D[M]==null&&delete D[M];re=rt({},$,{params:h(D)}),ae.params=h(ae.params)}const fe=e.resolve(re,ae),Ne=$.hash||"";fe.params=f(d(fe.params));const K=RU(r,rt({},$,{hash:TU(Ne),path:fe.path})),S=s.createHref(K);return rt({fullPath:K,hash:Ne,query:r===zw?$U($.query):$.query||{}},fe,{redirectedFrom:void 0,href:S})}function O($){return typeof $=="string"?Am(n,$,l.value.path):rt({},$)}function T($,ae){if(u!==$)return tl(Rt.NAVIGATION_CANCELLED,{from:ae,to:$})}function C($){return R($)}function x($){return C(rt(O($),{replace:!0}))}function L($,ae){const re=$.matched[$.matched.length-1];if(re&&re.redirect){const{redirect:fe}=re;let Ne=typeof fe=="function"?fe($,ae):fe;return typeof Ne=="string"&&(Ne=Ne.includes("?")||Ne.includes("#")?Ne=O(Ne):{path:Ne},Ne.params={}),rt({query:$.query,hash:$.hash,params:Ne.path!=null?{}:$.params},Ne)}}function R($,ae){const re=u=N($),fe=l.value,Ne=$.state,K=$.force,S=$.replace===!0,D=L(re,fe);if(D)return R(rt(O(D),{state:typeof D=="object"?rt({},Ne,D.state):Ne,force:K,replace:S}),ae||re);const M=re;M.redirectedFrom=ae;let H;return!K&&CU(r,fe,re)&&(H=tl(Rt.NAVIGATION_DUPLICATED,{to:M,from:fe}),ct(fe,fe,!0,!1)),(H?Promise.resolve(H):b(M,fe)).catch(F=>Rs(F)?Rs(F,Rt.NAVIGATION_GUARD_REDIRECT)?F:lt(F):J(F,M,fe)).then(F=>{if(F){if(Rs(F,Rt.NAVIGATION_GUARD_REDIRECT))return R(rt({replace:S},O(F.to),{state:typeof F.to=="object"?rt({},Ne,F.to.state):Ne,force:K}),ae||M)}else F=P(M,fe,!0,S,Ne);return k(M,fe,F),F})}function w($,ae){const re=T($,ae);return re?Promise.reject(re):Promise.resolve()}function E($){const ae=Fn.values().next().value;return ae&&typeof ae.runWithContext=="function"?ae.runWithContext($):$()}function b($,ae){let re;
5const[fe,Ne,K]=qU($,ae);re=Cm(fe.reverse(),"beforeRouteLeave",$,ae);for(const D of fe)D.leaveGuards.forEach(M=>{re.push(Ai(M,$,ae))});const S=w.bind(null,$,ae);return re.push(S),_n(re).then(()=>{re=[];for(const D of i.list())re.push(Ai(D,$,ae));return re.push(S),_n(re)}).then(()=>{re=Cm(Ne,"beforeRouteUpdate",$,ae);for(const D of Ne)D.updateGuards.forEach(M=>{re.push(Ai(M,$,ae))});return re.push(S),_n(re)}).then(()=>{re=[];for(const D of K)if(D.beforeEnter)if(Yr(D.beforeEnter))for(const M of D.beforeEnter)re.push(Ai(M,$,ae));else re.push(Ai(D.beforeEnter,$,ae));return re.push(S),_n(re)}).then(()=>($.matched.forEach(D=>D.enterCallbacks={}),re=Cm(K,"beforeRouteEnter",$,ae,E),re.push(S),_n(re))).then(()=>{re=[];for(const D of o.list())re.push(Ai(D,$,ae));return re.push(S),_n(re)}).catch(D=>Rs(D,Rt.NAVIGATION_CANCELLED)?D:Promise.reject(D))}function k($,ae,re){a.list().forEach(fe=>E(()=>fe($,ae,re)))}function P($,ae,re,fe,Ne){const K=T($,ae);if(K)return K;const S=ae===Tr,D=Aa?history.state:{};re&&(fe||S?s.replace($.fullPath,rt({scroll:S&&D&&D.scroll},Ne)):s.push($.fullPath,Ne)),l.value=$,ct($,ae,re,S),lt()}let A;function te(){A||(A=s.listen(($,ae,re)=>{if(!Kt.listening)return;const fe=N($),Ne=L(fe,Kt.currentRoute.value);if(Ne){R(rt(Ne,{replace:!0,force:!0}),fe).catch(Ec);return}u=fe;const K=l.value;Aa&&LU(Yw(K.fullPath,re.delta),jd()),b(fe,K).catch(S=>Rs(S,Rt.NAVIGATION_ABORTED|Rt.NAVIGATION_CANCELLED)?S:Rs(S,Rt.NAVIGATION_GUARD_REDIRECT)?(R(rt(O(S.to),{force:!0}),fe).then(D=>{Rs(D,Rt.NAVIGATION_ABORTED|Rt.NAVIGATION_DUPLICATED)&&!re.delta&&re.type===Hg.pop&&s.go(-1,!1)}).catch(Ec),Promise.reject()):(re.delta&&s.go(-re.delta,!1),J(S,fe,K))).then(S=>{S=S||P(fe,K,!1),S&&(re.delta&&!Rs(S,Rt.NAVIGATION_CANCELLED)?s.go(-re.delta,!1):re.type===Hg.pop&&Rs(S,Rt.NAVIGATION_ABORTED|Rt.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),k(fe,K,S)}).catch(Ec)}))}let he=Zl(),z=Zl(),ne;function J($,ae,re){lt($);const fe=z.list();return fe.length&&fe.forEach(Ne=>Ne($,ae,re)),Promise.reject($)}function Ue(){return ne&&l.value!==Tr?Promise.resolve():new Promise(($,ae)=>{he.add([$,ae])})}function lt($){return ne||(ne=!$,te(),he.list().forEach(([ae,re])=>$?re($):ae()),he.reset()),$}function ct($,ae,re,fe){const{scrollBehavior:Ne}=t;if(!Aa||!Ne)return Promise.resolve();const K=!re&&VU(Yw($.fullPath,0))||(fe||!re)&&history.state&&history.state.scroll||null;return Xn().then(()=>Ne($,ae,K)).then(S=>S&&MU(S)).catch(S=>J(S,$,ae))}const Ye=$=>s.go($);let ot;const Fn=new Set,Kt={currentRoute:l,listening:!0,addRoute:p,removeRoute:g,clearRoutes:e.clearRoutes,hasRoute:v,getRoutes:_,resolve:N,options:t,push:C,replace:x,go:Ye,back:()=>Ye(-1),forward:()=>Ye(1),beforeEach:i.add,beforeResolve:o.add,afterEach:a.add,onError:z.add,isReady:Ue,install($){$.component("RouterLink",fF),$.component("RouterView",HR),$.config.globalProperties.$router=Kt,Object.defineProperty($.config.globalProperties,"$route",{enumerable:!0,get:()=>ve(l)}),Aa&&!ot&&l.value===Tr&&(ot=!0,C(s.location).catch(fe=>{}));const ae={};for(const fe in Tr)Object.defineProperty(ae,fe,{get:()=>l.value[fe],enumerable:!0});$.provide(xy,Kt),$.provide(My,Fr(ae)),$.provide(jg,l);const re=$.unmount;Fn.add($),$.unmount=function(){Fn.delete($),Fn.size<1&&(u=Tr,A&&A(),A=null,l.value=Tr,ot=!1,ne=!1),re()}}};function _n($){return $.reduce((ae,re)=>ae.then(()=>E(re)),Promise.resolve())}return Kt}function $R(t){return Wt(My)}const gF=/(:\w+)\([^)]+\)/g,_F=/(:\w+)[?+*]/g,yF=/:\w+/g,EF=(t,e)=>e.path.replace(gF,"$1").replace(_F,"$1").replace(yF,n=>t.params[n.slice(1)]?.toString()||""),qg=(t,e)=>{const n=t.route.matched.find(s=>s.components?.default===t.Component.type),r=e??n?.meta.key??(n&&EF(t.route,n));return typeof r=="function"?r(t.route):r},vF=(t,e)=>({default:()=>t?Et(WI,t===!0?{}:t,e):e});function Ly(t){return Array.isArray(t)?t:[t]}const TF="modulepreload",wF=function(t,e){return new URL(t,e).href},o0={},Ae=function(e,n,r){let s=Promise.resolve();if(n&&n.length>0){let u=function(f){return Promise.all(f.map(h=>Promise.resolve(h).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};const o=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=a?.nonce||a?.getAttribute("nonce");s=u(n.map(f=>{if(f=wF(f,r),f in o0)return;o0[f]=!0;const h=f.endsWith(".css"),d=h?'[rel="stylesheet"]':"";if(r)for(let g=o.length-1;g>=0;g--){const _=o[g];if(_.href===f&&(!h||_.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${f}"]${d}`))return;const p=document.createElement("link");if(p.rel=h?"stylesheet":TF,h||(p.as="script"),p.crossOrigin="",p.href=f,l&&p.setAttribute("nonce",l),document.head.appendChild(p),h)return new Promise((g,_)=>{p.addEventListener("load",g),p.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${f}`)))})}))}function i(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return s.then(o=>{for(const a of o||[])a.status==="rejected"&&i(a.reason);return e().catch(i)})},bF={layout:"default"},SF={layout:"default"},IF={layout:"default"},AF={layout:"default"},RF={layout:"default"},CF={layout:"default"},PF={layout:"default"},OF={layout:"default"},NF={layout:"default"},kF={layout:"default"},DF={layout:"default"},xF={layout:"default"},MF={layout:"default"},LF={layout:"default"},VF={layout:"default"},UF={layout:"default"},FF={layout:"default"},BF={layout:"default"},HF={layout:"default"},$F={layout:"default"},jF={layout:"default"},qF={layout:"default"},WF={layout:"default"},GF={layout:"default"},YF={layout:"default"},zF={layout:"default"},KF={layout:"default"},XF={layout:"default"},JF={layout:"default"},QF={layout:"default"},ZF={layout:"default"},e4={layout:"default"},t4={layout:"default"},n4={layout:"default"},r4={layout:"default"},s4={layout:"default"},i4={layout:"default"},o4={layout:"default"},a4={layout:"default"},l4={layout:"default"},c4={layout:"default"},u4={layout:"default"},f4={layout:"default"},h4={layout:"default"},Pm=[{name:"index",path:"/",meta:bF||{},component:()=>Ae(()=>import("./t5z6g7kU.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]),import.meta.url)}
5,{name:"slug",path:"/:slug(.*)*",component:()=>Ae(()=>import("./BkNFkgSh.js"),__vite__mapDeps([19,18]),import.meta.url)},{name:"cart",path:"/cart",meta:SF||{},component:()=>Ae(()=>import("./CUJ84mlo.js"),__vite__mapDeps([20,16,21,22,23,24,18]),import.meta.url)},{name:"blogs",path:"/blogs",meta:IF||{},component:()=>Ae(()=>import("./COrgXMuq.js"),__vite__mapDeps([25,26,27,13,6,14,28,16,29,30,18]),import.meta.url)},{name:"excel",path:"/excel",meta:AF||{},component:()=>Ae(()=>import("./CRgU4tvl.js"),__vite__mapDeps([31,32,16,33,34,18]),import.meta.url)},{name:"login",path:"/login",meta:RF||{},component:()=>Ae(()=>import("./DDc_YbOK.js"),__vite__mapDeps([35,36,10,37,38,39,16,40,18]),import.meta.url)},{name:"blogs-slug",path:"/blogs/:slug()",meta:CF||{},component:()=>Ae(()=>import("./NCfp75ue.js"),__vite__mapDeps([41,42,43,13,6,14,10,44,26,45,16,46,18]),import.meta.url)},{name:"verify",path:"/verify",meta:PF||{},component:()=>Ae(()=>import("./CbtEYpwi.js"),__vite__mapDeps([47,43,18]),import.meta.url)},{name:"contact",path:"/contact",meta:OF||{},component:()=>Ae(()=>import("./C-ElSBSN.js"),__vite__mapDeps([48,39,49,50,51,16,18]),import.meta.url)},{name:"general",path:"/general",meta:NF||{},component:()=>Ae(()=>import("./BxTxBIEi.js"),__vite__mapDeps([52,18]),import.meta.url)},{name:"partner",path:"/partner",meta:kF||{},component:()=>Ae(()=>import("./CqKJQF9a.js"),__vite__mapDeps([53,32,54,36,10,55,16,56,18]),import.meta.url)},{name:"about-us",path:"/about-us",meta:DF||{},component:()=>Ae(()=>import("./16NB__k7.js"),__vite__mapDeps([57,36,10,16,18]),import.meta.url)},{name:"document",path:"/document",meta:xF||{},component:()=>Ae(()=>import("./4fccfa6P.js"),__vite__mapDeps([58,50,44,59,60,61,62,3,4,5,16,63,18]),import.meta.url)},{name:"register",path:"/register",meta:MF||{},component:()=>Ae(()=>import("./DkZTc022.js"),__vite__mapDeps([64,39,37,38,36,10,16,33,65,66,18]),import.meta.url)},{name:"settings",path:"/settings",meta:LF||{},component:()=>Ae(()=>import("./DXJplD0c.js"),__vite__mapDeps([67,5,4,3,43,59,6,21,68,18]),import.meta.url)},{name:"wishlist",path:"/wishlist",meta:VF||{},component:()=>Ae(()=>import("./qJPL-acM.js"),__vite__mapDeps([69,16,70,24,18]),import.meta.url)},{name:"thank-you",path:"/thank-you",meta:UF||{},component:()=>Ae(()=>import("./pkhtSLYP.js"),__vite__mapDeps([71,51,16,18]),import.meta.url)},{name:"affiliates",path:"/affiliates",meta:FF||{},component:()=>Ae(()=>import("./Ch5AUKHl.js"),__vite__mapDeps([72,32,54,36,10,55,16,15,18]),import.meta.url)},{name:"demo-video",path:"/demo-video",meta:BF||{},component:()=>Ae(()=>import("./DpT59f-W.js"),__vite__mapDeps([73,36,10,16,18]),import.meta.url)},{name:"flexa-theme",path:"/flexa-theme",component:()=>Ae(()=>import("./BOLYFkhe.js"),__vite__mapDeps([74,42,36,10,33,70,43,34,75,16,76,18]),import.meta.url)},{name:"ask-question",path:"/ask-question",meta:HF||{},component:()=>Ae(()=>import("./Btw0guUa.js"),__vite__mapDeps([77,7,8,9,10,15,18]),import.meta.url)},{name:"flexa-charts",path:"/flexa-charts",meta:$F||{},component:()=>Ae(()=>import("./Cwfpi4vx.js"),__vite__mapDeps([78,79,36,10,80,4,16,18]),import.meta.url)},{name:"flexa-design",path:"/flexa-design",meta:jF||{},component:()=>Ae(()=>import("./La9Wabkz.js"),__vite__mapDeps([81,79,36,10,3,16,82,18]),import.meta.url)},{name:"flexa-tables",path:"/flexa-tables",meta:qF||{},component:()=>Ae(()=>import("./DkLBWR3n.js"),__vite__mapDeps([83,79,36,10,84,85,62,59,16,18]),import.meta.url)},{name:"request-demo",path:"/request-demo",meta:WF||{},component:()=>Ae(()=>import("./DBzCW7Hz.js"),__vite__mapDeps([86,39,49,50,16,18]),import.meta.url)},{name:"release-notes",path:"/release-notes",meta:GF||{},component:()=>Ae(()=>import("./DUEwnft-.js"),__vite__mapDeps([87,62,16,88,18]),import.meta.url)},{name:"pricing-charts",path:"/pricing-charts",meta:YF||{},component:()=>Ae(()=>import("./-MP5O__7.js"),__vite__mapDeps([89,90,44,22,91,4,10,92,36,16,18]),import.meta.url)},{name:"pricing-design",path:"/pricing-design",meta:zF||{},component:()=>Ae(()=>import("./Br8plDEj.js"),__vite__mapDeps([93,90,44,22,91,36,10,3,16,18]),import.meta.url)},{name:"pricing-tables",path:"/pricing-tables",meta:KF||{},component:()=>Ae(()=>import("./CkaoieWk.js"),__vite__mapDeps([94,90,44,22,91,36,10,92,95,16,18]),import.meta.url)},{name:"privacy-policy",path:"/privacy-policy",meta:XF||{},component:()=>Ae(()=>import("./C0nla1Zj.js"),__vite__mapDeps([96,16,18]),import.meta.url)},{name:"reset-password",path:"/reset-password",meta:JF||{},component:()=>Ae(()=>import("./B8qFSoou.js"),__vite__mapDeps([97,39,38,33,65,18]),import.meta.url)},{name:"support-center",path:"/support-center",meta:QF||{},component:()=>Ae(()=>import("./dTSBkepM.js"),__vite__mapDeps([98,36,10,99,16,100,18]),import.meta.url)},{name:"flexa-analytics",path:"/flexa-analytics",meta:ZF||{},component:()=>Ae(()=>import("./OfEV-ZcT.js"),__vite__mapDeps([101,79,36,10,80,84,85,62,5,59,16,18]),import.meta.url)},{name:"pricing-analytics",path:"/pricing-analytics",meta:e4||{},component:()=>Ae(()=>import("./Due80JIR.js"),__vite__mapDeps([102,90,44,22,91,5,92,36,10,95,16,18]),import.meta.url)},{name:"term-of-website-use",path:"/term-of-website-use",meta:t4||{},component:()=>Ae(()=>import("./DXod1B8x.js"),__vite__mapDeps([103,16,18]),import.meta.url)},{name:"power-bi-pivot-table",path:"/power-bi-pivot-table",meta:n4||{},component:()=>Ae(()=>import("./bLhTJMNS.js"),__vite__mapDeps([104,44,59,16,18]),import.meta.url)},{name:"power-bi-table-visual",path:"/power-bi-table-visual",meta:r4||{},component:()=>Ae(()=>import("./trT_QoHj.js"),__vite__mapDeps([105,16,106,18]),import.meta.url)}
5,{name:"variance-analysis-power-bi",path:"/variance-analysis-power-bi",meta:s4||{},component:()=>Ae(()=>import("./DtRILawW.js"),__vite__mapDeps([107,44,59,16,108,18]),import.meta.url)},{name:"dynamic-pivot-table-power-bi",path:"/dynamic-pivot-table-power-bi",meta:i4||{},component:()=>Ae(()=>import("./CQvxcyEy.js"),__vite__mapDeps([109,44,16,18]),import.meta.url)},{name:"power-bi-financial-reporting",path:"/power-bi-financial-reporting",meta:o4||{},component:()=>Ae(()=>import("./BX5bo4JA.js"),__vite__mapDeps([110,16,111,18]),import.meta.url)},{name:"power-bi-self-service-reporting",path:"/power-bi-self-service-reporting",meta:a4||{},component:()=>Ae(()=>import("./C6Nl73Wv.js"),__vite__mapDeps([112,16,113,18]),import.meta.url)},{name:"Power-BI-dashboard-examples-PBIX",path:"/Power-BI-dashboard-examples-PBIX",meta:l4||{},component:()=>Ae(()=>import("./DxidlvtV.js"),__vite__mapDeps([114,29,36,10,115,6,14,21,116,70,23,117,27,118,43,119,28,16,120,18]),import.meta.url)},{name:"power-bi-templates-free-download",path:"/power-bi-templates-free-download",meta:c4||{},component:()=>Ae(()=>import("./DnszcMkB.js"),__vite__mapDeps([121,115,6,14,21,116,70,23,117,36,10,27,28,16,12,75,122,18]),import.meta.url)},{name:"Power-BI-dashboard-examples-PBIX-slug",path:"/Power-BI-dashboard-examples-PBIX/:slug()",meta:u4||{},component:()=>Ae(()=>import("./Cg8ITX9T.js"),__vite__mapDeps([123,60,61,1,2,118,10,43,119,115,6,14,21,116,70,23,44,28,45,124,75,125,18]),import.meta.url)},{name:"pillar-power-bi-financial-reporting",path:"/pillar-power-bi-financial-reporting",meta:f4||{},component:()=>Ae(()=>import("./Cog62kcK.js"),__vite__mapDeps([126,16,127,18]),import.meta.url)},{name:"Power-BI-dashboard-examples-PBIX-industry-industryId",path:"/Power-BI-dashboard-examples-PBIX/industry/:industryId()",meta:h4||{},component:()=>Ae(()=>import("./BPuIhE8h.js"),__vite__mapDeps([128,115,6,14,21,116,70,23,118,10,43,119,28,16,18]),import.meta.url)}],jR=(t,e)=>({default:()=>t?Et(yy,t===!0?{}:t,e):e.default?.()}),d4=/(:\w+)\([^)]+\)/g,p4=/(:\w+)[?+*]/g,m4=/:\w+/g;function a0(t){const e=t?.meta.key??t.path.replace(d4,"$1").replace(p4,"$1").replace(m4,n=>t.params[n.slice(1)]?.toString()||"");return typeof e=="function"?e(t):e}function g4(t,e){return t===e||e===Tr?!1:a0(t)!==a0(e)?!0:!t.matched.every((r,s)=>r.components&&r.components.default===e.matched[s]?.components?.default)}const _4={scrollBehavior(t,e,n){const r=ht(),s=Vn().options?.scrollBehaviorType??"auto";if(t.path.replace(/\/$/,"")===e.path.replace(/\/$/,""))return e.hash&&!t.hash?{left:0,top:0}:t.hash?{el:t.hash,top:qR(t.hash),behavior:s}:!1;if((typeof t.meta.scrollToTop=="function"?t.meta.scrollToTop(t,e):t.meta.scrollToTop)===!1)return!1;const o=r._runningTransition?"page:transition:finish":"page:loading:end";return new Promise(a=>{if(e===Tr){a(l0(t,e,n,s));return}r.hooks.hookOnce(o,()=>{requestAnimationFrame(()=>a(l0(t,e,n,s)))})})}};function qR(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 l0(t,e,n,r){if(n)return n;const s=g4(t,e);return t.hash?{el:t.hash,top:qR(t.hash),behavior:s?r:"instant"}:{left:0,top:0}}const y4={hashMode:!1,scrollBehaviorType:"auto"},yi={...y4,..._4},E4=async(t,e)=>{let n,r;if(!t.meta?.validate)return;const s=([n,r]=Uo(()=>Promise.resolve(t.meta.validate(t))),n=await n,r(),n);if(s===!0)return;const i=Fo({fatal:!0,statusCode:s&&s.statusCode||404,statusMessage:s&&s.statusMessage||`Page Not Found: ${t.fullPath}`,data:{path:t.fullPath}});return typeof window<"u"&&window.history.pushState({},"",e.fullPath),i};function WR(t,e){return function(){return t.apply(e,arguments)}}const{toString:v4}=Object.prototype,{getPrototypeOf:Vy}=Object,{iterator:qd,toStringTag:GR}=Symbol,Wd=(t=>e=>{const n=v4.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Qr=t=>(t=t.toLowerCase(),e=>Wd(e)===t),Gd=t=>e=>typeof e===t,{isArray:vl}=Array,nl=Gd("undefined");function Cu(t){return t!==null&&!nl(t)&&t.constructor!==null&&!nl(t.constructor)&&ar(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const YR=Qr("ArrayBuffer");function T4(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&YR(t.buffer),e}const w4=Gd("string"),ar=Gd("function"),zR=Gd("number"),Pu=t=>t!==null&&typeof t=="object",b4=t=>t===!0||t===!1,zf=t=>{if(Wd(t)!=="object")return!1;const e=Vy(t);
vendor: 4,090 bytes, line 5
5return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(GR in t)&&!(qd in t)},S4=t=>{if(!Pu(t)||Cu(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},I4=Qr("Date"),A4=Qr("File"),R4=Qr("Blob"),C4=Qr("FileList"),P4=t=>Pu(t)&&ar(t.pipe),O4=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||ar(t.append)&&((e=Wd(t))==="formdata"||e==="object"&&ar(t.toString)&&t.toString()==="[object FormData]"))},N4=Qr("URLSearchParams"),[k4,D4,x4,M4]=["ReadableStream","Request","Response","Headers"].map(Qr),L4=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ou(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,s;if(typeof t!="object"&&(t=[t]),vl(t))for(r=0,s=t.length;r<s;r++)e.call(null,t[r],r,t);else{if(Cu(t))return;const i=n?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let a;for(r=0;r<o;r++)a=i[r],e.call(null,t[a],a,t)}}function KR(t,e){if(Cu(t))return null;e=e.toLowerCase();const n=Object.keys(t);let r=n.length,s;for(;r-- >0;)if(s=n[r],e===s.toLowerCase())return s;return null}const Io=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,XR=t=>!nl(t)&&t!==Io;function Wg(){const{caseless:t,skipUndefined:e}=XR(this)&&this||{},n={},r=(s,i)=>{const o=t&&KR(n,i)||i;zf(n[o])&&zf(s)?n[o]=Wg(n[o],s):zf(s)?n[o]=Wg({},s):vl(s)?n[o]=s.slice():(!e||!nl(s))&&(n[o]=s)};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&Ou(arguments[s],r);return n}const V4=(t,e,n,{allOwnKeys:r}={})=>(Ou(e,(s,i)=>{n&&ar(s)?t[i]=WR(s,n):t[i]=s},{allOwnKeys:r}),t),U4=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),F4=(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)},B4=(t,e,n,r)=>{let s,i,o;const a={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),i=s.length;i-- >0;)o=s[i],(!r||r(o,t,e))&&!a[o]&&(e[o]=t[o],a[o]=!0);t=n!==!1&&Vy(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},H4=(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},$4=t=>{if(!t)return null;if(vl(t))return t;let e=t.length;if(!zR(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},j4=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Vy(Uint8Array)),q4=(t,e)=>{const r=(t&&t[qd]).call(t);let s;for(;(s=r.next())&&!s.done;){const i=s.value;e.call(t,i[0],i[1])}},W4=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},G4=Qr("HTMLFormElement"),Y4=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),c0=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),z4=Qr("RegExp"),JR=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Ou(n,(s,i)=>{let o;(o=e(s,i,t))!==!1&&(r[i]=o||s)}),Object.defineProperties(t,r)},K4=t=>{JR(t,(e,n)=>{if(ar(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(ar(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+"'")})}})},X4=(t,e)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return vl(t)?r(t):r(String(t).split(e)),n},J4=()=>{},Q4=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function Z4(t){return!!(t&&ar(t.append)&&t[GR]==="FormData"&&t[qd])}const e6=t=>{const e=new Array(10),n=(r,s)=>{if(Pu(r)){if(e.indexOf(r)>=0)return;if(Cu(r))return r;if(!("toJSON"in r)){e[s]=r;const i=vl(r)?[]:{};return Ou(r,(o,a)=>{const l=n(o,s+1);!nl(l)&&(i[a]=l)}),e[s]=void 0,i}}return r};return n(t,0)},t6=Qr("AsyncFunction"),n6=t=>t&&(Pu(t)||ar(t))&&ar(t.then)&&ar(t.catch),QR=((t,e)=>t?setImmediate:e?((n,r)=>(Io.addEventListener("message",({source:s,data:i})=>{s===Io&&i===n&&r.length&&r.shift()()},!1),s=>{r.push(s),Io.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",ar(Io.postMessage)),r6=typeof queueMicrotask<"u"?queueMicrotask.bind(Io):typeof process<"u"&&process.nextTick||QR,s6=t=>
vendor: 3,953 bytes, line 5
5t!=null&&ar(t[qd]),U={isArray:vl,isArrayBuffer:YR,isBuffer:Cu,isFormData:O4,isArrayBufferView:T4,isString:w4,isNumber:zR,isBoolean:b4,isObject:Pu,isPlainObject:zf,isEmptyObject:S4,isReadableStream:k4,isRequest:D4,isResponse:x4,isHeaders:M4,isUndefined:nl,isDate:I4,isFile:A4,isBlob:R4,isRegExp:z4,isFunction:ar,isStream:P4,isURLSearchParams:N4,isTypedArray:j4,isFileList:C4,forEach:Ou,merge:Wg,extend:V4,trim:L4,stripBOM:U4,inherits:F4,toFlatObject:B4,kindOf:Wd,kindOfTest:Qr,endsWith:H4,toArray:$4,forEachEntry:q4,matchAll:W4,isHTMLForm:G4,hasOwnProperty:c0,hasOwnProp:c0,reduceDescriptors:JR,freezeMethods:K4,toObjectSet:X4,toCamelCase:Y4,noop:J4,toFiniteNumber:Q4,findKey:KR,global:Io,isContextDefined:XR,isSpecCompliantForm:Z4,toJSONObject:e6,isAsyncFn:t6,isThenable:n6,setImmediate:QR,asap:r6,isIterable:s6};function xe(t,e,n,r,s){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),s&&(this.response=s,this.status=s.status?s.status:null)}U.inherits(xe,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:U.toJSONObject(this.config),code:this.code,status:this.status}}});const ZR=xe.prototype,eC={};["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=>{eC[t]={value:t}});Object.defineProperties(xe,eC);Object.defineProperty(ZR,"isAxiosError",{value:!0});xe.from=(t,e,n,r,s,i)=>{const o=Object.create(ZR);U.toFlatObject(t,o,function(f){return f!==Error.prototype},u=>u!=="isAxiosError");const a=t&&t.message?t.message:"Error",l=e==null&&t?t.code:e;return xe.call(o,a,l,n,r,s),t&&o.cause==null&&Object.defineProperty(o,"cause",{value:t,configurable:!0}),o.name=t&&t.name||"Error",i&&Object.assign(o,i),o};const i6=null;function Gg(t){return U.isPlainObject(t)||U.isArray(t)}function tC(t){return U.endsWith(t,"[]")?t.slice(0,-2):t}function u0(t,e,n){return t?t.concat(e).map(function(s,i){return s=tC(s),!n&&i?"["+s+"]":s}).join(n?".":""):e}function o6(t){return U.isArray(t)&&!t.some(Gg)}const a6=U.toFlatObject(U,{},null,function(e){return/^is[A-Z]/.test(e)});function Yd(t,e,n){if(!U.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=U.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,v){return!U.isUndefined(v[_])});const r=n.metaTokens,s=n.visitor||f,i=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&U.isSpecCompliantForm(e);if(!U.isFunction(s))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(U.isDate(g))return g.toISOString();if(U.isBoolean(g))return g.toString();if(!l&&U.isBlob(g))throw new xe("Blob is not supported. Use a Buffer instead.");return U.isArrayBuffer(g)||U.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function f(g,_,v){let N=g;if(g&&!v&&typeof g=="object"){if(U.endsWith(_,"{}"))_=r?_:_.slice(0,-2),g=JSON.stringify(g);else if(U.isArray(g)&&o6(g)||(U.isFileList(g)||U.endsWith(_,"[]"))&&(N=U.toArray(g)))return _=tC(_),N.forEach(function(T,C){!(U.isUndefined(T)||T===null)&&e.append(o===!0?u0([_],C,i):o===null?_:_+"[]",u(T))}),!1}return Gg(g)?!0:(e.append(u0(v,_,i),u(g)),!1)}const h=[],d=Object.assign(a6,{defaultVisitor:f,convertValue:u,isVisitable:Gg});function p(g,_){if(!U.isUndefined(g)){if(h.indexOf(g)!==-1)throw Error("Circular reference detected in "+_.join("."));h.push(g),U.forEach(g,function(N,O){(!(U.isUndefined(N)||N===null)&&s.call(e,N,U.isString(O)?O.trim():O,_,d))===!0&&p(N,_?_.concat(O):[O])}),h.pop()}}if(!U.isObject(t))throw new TypeError("data must be an object");return p(t),e}
vendor: 9,596 bytes, lines 5-7
5function f0(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Uy(t,e){this._pairs=[],t&&Yd(t,this,e)}const nC=Uy.prototype;nC.append=function(e,n){this._pairs.push([e,n])};nC.toString=function(e){const n=e?function(r){return e.call(this,r,f0)}:f0;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function l6(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function rC(t,e,n){if(!e)return t;const r=n&&n.encode||l6;U.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let i;if(s?i=s(e,n):i=U.isURLSearchParams(e)?e.toString():new Uy(e,n).toString(r),i){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class h0{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){U.forEach(this.handlers,function(r){r!==null&&e(r)})}}const sC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},c6=typeof URLSearchParams<"u"?URLSearchParams:Uy,u6=typeof FormData<"u"?FormData:null,f6=typeof Blob<"u"?Blob:null,h6={isBrowser:!0,classes:{URLSearchParams:c6,FormData:u6,Blob:f6},protocols:["http","https","file","blob","url","data"]},Fy=typeof window<"u"&&typeof document<"u",Yg=typeof navigator=="object"&&navigator||void 0,d6=Fy&&(!Yg||["ReactNative","NativeScript","NS"].indexOf(Yg.product)<0),p6=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",m6=Fy&&window.location.href||"http://localhost",g6=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Fy,hasStandardBrowserEnv:d6,hasStandardBrowserWebWorkerEnv:p6,navigator:Yg,origin:m6},Symbol.toStringTag,{value:"Module"})),kn={...g6,...h6};function _6(t,e){return Yd(t,new kn.classes.URLSearchParams,{visitor:function(n,r,s,i){return kn.isNode&&U.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...e})}function y6(t){return U.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function E6(t){const e={},n=Object.keys(t);let r;const s=n.length;let i;for(r=0;r<s;r++)i=n[r],e[i]=t[i];return e}function iC(t){function e(n,r,s,i){let o=n[i++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),l=i>=n.length;return o=!o&&U.isArray(s)?s.length:o,l?(U.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!a):((!s[o]||!U.isObject(s[o]))&&(s[o]=[]),e(n,r,s[o],i)&&U.isArray(s[o])&&(s[o]=E6(s[o])),!a)}if(U.isFormData(t)&&U.isFunction(t.entries)){const n={};return U.forEachEntry(t,(r,s)=>{e(y6(r),s,n,0)}),n}return null}function v6(t,e,n){if(U.isString(t))try{return(e||JSON.parse)(t),U.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const Nu={transitional:sC,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=U.isObject(e);if(i&&U.isHTMLForm(e)&&(e=new FormData(e)),U.isFormData(e))return s?JSON.stringify(iC(e)):e;if(U.isArrayBuffer(e)||U.isBuffer(e)||U.isStream(e)||U.isFile(e)||U.isBlob(e)||U.isReadableStream(e))return e;if(U.isArrayBufferView(e))return e.buffer;if(U.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 _6(e,this.formSerializer).toString();if((a=U.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Yd(a?{"files[]":e}:e,l&&new l,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),v6(e)):e}],transformResponse:[function(e){const n=this.transitional||Nu.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(U.isResponse(e)||U.isReadableStream(e))return e;if(e&&U.isString(e)&&(r&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e,this.parseReviver)}catch(a){if(o)throw a.name==="SyntaxError"?xe.from(a,xe.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:kn.classes.FormData,Blob:kn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};U.forEach(["delete","get","head","post","put","patch"],t=>{Nu.headers[t]={}});const T6=U.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"]),w6=t=>{const e={};let n,r,s;return t&&t.split(` 6`).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||e[n]&&T6[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},d0=Symbol("internals");function ec(t){return t&&String(t).trim().toLowerCase()}function Kf(t){return t===!1||t==null?t:U.isArray(t)?t.map(Kf):String(t)}function b6(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const S6=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Om(t,e,n,r,s){if(U.isFunction(r))return r.call(this,e,n);if(s&&(e=n),!!U.isString(e)){if(U.isString(r))return e.indexOf(r)!==-1;if(U.isRegExp(r))return r.test(e)}}function I6(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function A6(t,e){const n=U.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(s,i,o){return this[r].call(this,e,s,i,o)},configurable:!0})})}let lr=class{constructor(e){e&&this.set(e)}set(e,n,r){const s=this;function i(a,l,u){const f=ec(l);if(!f)throw new Error("header name must be a non-empty string");const h=U.findKey(s,f);(!h||s[h]===void 0||u===!0||u===void 0&&s[h]!==!1)&&(s[h||l]=Kf(a))}const o=(a,l)=>U.forEach(a,(u,f)=>i(u,f,l));if(U.isPlainObject(e)||e instanceof this.constructor)o(e,n);else if(U.isString(e)&&(e=e.trim())&&!S6(e))o(w6(e),n);else if(U.isObject(e)&&U.isIterable(e)){let a={},l,u;for(const f of e){if(!U.isArray(f))throw TypeError("Object iterator must return a key-value pair");a[u=f[0]]=(l=a[u])?U.isArray(l)?[...l,f[1]]:[l,f[1]]:f[1]}o(a,n)}else e!=null&&i(n,e,r);return this}get(e,n){if(e=ec(e),e){const r=U.findKey(this,e);if(r){const s=this[r];if(!n)return s;if(n===!0)return b6(s);if(U.isFunction(n))return n.call(this,s,r);if(U.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=ec(e),e){const r=U.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||Om(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let s=!1;function i(o){if(o=ec(o),o){const a=U.findKey(r,o);a&&(!n||Om(r,r[a],a,n))&&(delete r[a],s=!0)}}return U.isArray(e)?e.forEach(i):i(e),s}clear(e){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!e||Om(this,this[i],i,e,!0))&&(delete this[i],s=!0)}return s}normalize(e){const n=this,r={};return U.forEach(this,(s,i)=>{const o=U.findKey(r,i);if(o){n[o]=Kf(s),delete n[i];return}const a=e?I6(i):String(i).trim();a!==i&&delete n[i],n[a]=Kf(s),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return U.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=e&&U.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(` 7`)}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(s=>r.set(s)),r}static accessor(e){const r=(this[d0]=this[d0]={accessors:{}}).accessors,s=this.prototype;function i(o){const a=ec(o);r[a]||(A6(s,o),r[a]=!0)}return U.isArray(e)?e.forEach(i):i(e),this}};lr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);U.reduceDescriptors(lr.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});U.freezeMethods(lr);function Nm(t,e){const n=this||Nu,r=e||n,s=lr.from(r.headers);let i=r.data;return U.forEach(t,function(a){i=a.call(n,i,s.normalize(),e?e.status:void 0)}),s.normalize(),i}function oC(t){return!!(t&&t.__CANCEL__)}function Tl(t,e,n){xe.call(this,t??"canceled",xe.ERR_CANCELED,e,n),this.name="CanceledError"}U.inherits(Tl,xe,{__CANCEL__:!0});function aC(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new xe("Request failed with status code "+n.status,[xe.ERR_BAD_REQUEST,xe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function R6(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function C6(t,e){t=t||10;const n=new Array(t),r=new Array(t);let s=0,i=0,o;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),f=r[i];o||(o=u),n[s]=l,r[s]=u;let h=i,d=0;for(;h!==s;)d+=n[h++],h=h%t;if(s=(s+1)%t,s===i&&(i=(i+1)%t),u-o<e)return;const p=f&&u-f;return p?Math.round(d*1e3/p):void 0}}function P6(t,e){let n=0,r=1e3/e,s,i;const o=(u,f=Date.now())=>{n=f,s=null,i&&(clearTimeout(i),i=null),t(...u)};return[(...u)=>{const f=Date.now(),h=f-n;h>
vendor: 4,814 bytes, line 7
7=r?o(u,f):(s=u,i||(i=setTimeout(()=>{i=null,o(s)},r-h)))},()=>s&&o(s)]}const $h=(t,e,n=3)=>{let r=0;const s=C6(50,250);return P6(i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,l=o-r,u=s(l),f=o<=a;r=o;const h={loaded:o,total:a,progress:a?o/a:void 0,bytes:l,rate:u||void 0,estimated:u&&a&&f?(a-o)/u:void 0,event:i,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(h)},n)},p0=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},m0=t=>(...e)=>U.asap(()=>t(...e)),O6=kn.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,kn.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(kn.origin),kn.navigator&&/(msie|trident)/i.test(kn.navigator.userAgent)):()=>!0,N6=kn.hasStandardBrowserEnv?{write(t,e,n,r,s,i,o){if(typeof document>"u")return;const a=[`${t}=${encodeURIComponent(e)}`];U.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),U.isString(r)&&a.push(`path=${r}`),U.isString(s)&&a.push(`domain=${s}`),i===!0&&a.push("secure"),U.isString(o)&&a.push(`SameSite=${o}`),document.cookie=a.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function k6(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function D6(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function lC(t,e,n){let r=!k6(e);return t&&(r||n==!1)?D6(t,e):e}const g0=t=>t instanceof lr?{...t}:t;function zo(t,e){e=e||{};const n={};function r(u,f,h,d){return U.isPlainObject(u)&&U.isPlainObject(f)?U.merge.call({caseless:d},u,f):U.isPlainObject(f)?U.merge({},f):U.isArray(f)?f.slice():f}function s(u,f,h,d){if(U.isUndefined(f)){if(!U.isUndefined(u))return r(void 0,u,h,d)}else return r(u,f,h,d)}function i(u,f){if(!U.isUndefined(f))return r(void 0,f)}function o(u,f){if(U.isUndefined(f)){if(!U.isUndefined(u))return r(void 0,u)}else return r(void 0,f)}function a(u,f,h){if(h in e)return r(u,f);if(h in t)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(u,f,h)=>s(g0(u),g0(f),h,!0)};return U.forEach(Object.keys({...t,...e}),function(f){const h=l[f]||s,d=h(t[f],e[f],f);U.isUndefined(d)&&h!==a||(n[f]=d)}),n}const cC=t=>{const e=zo({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:i,headers:o,auth:a}=e;if(e.headers=o=lr.from(o),e.url=rC(lC(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),U.isFormData(n)){if(kn.hasStandardBrowserEnv||kn.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(U.isFunction(n.getHeaders)){const l=n.getHeaders(),u=["content-type","content-length"];Object.entries(l).forEach(([f,h])=>{u.includes(f.toLowerCase())&&o.set(f,h)})}}if(kn.hasStandardBrowserEnv&&(r&&U.isFunction(r)&&(r=r(e)),r||r!==!1&&O6(e.url))){const l=s&&i&&N6.read(i);l&&o.set(s,l)}return e},x6=typeof XMLHttpRequest<"u",M6=x6&&function(t){return new Promise(function(n,r){const s=cC(t);let i=s.data;const o=lr.from(s.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:u}=s,f,h,d,p,g;function _(){p&&p(),g&&g(),s.cancelToken&&s.cancelToken.unsubscribe(f),s.signal&&s.signal.removeEventListener("abort",f)}let v=new XMLHttpRequest;v.open(s.method.toUpperCase(),s.url,!0),v.timeout=s.timeout;function N(){if(!v)return;const T=lr.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),x={data:!a||a==="text"||a==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:T,config:t,request:v};aC(function(R){n(R),_()},function(R){r(R),_()},x),v=null}"onloadend"in v?v.onloadend=N:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(N)},v.onabort=function(){v&&(r(new xe("Request aborted",xe.ECONNABORTED,t,v)),v=null)},v.onerror=function(C){const x=C&&C.message?C.message:"Network Error",L=new xe(x,xe.ERR_NETWORK,t,v);L.event=C||null,r(L),v=null},v.ontimeout=function(){let C=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const x=s.transitional||sC;s.timeoutErrorMessage&&(C=s.timeoutErrorMessage),r(new xe(C,x.clarifyTimeoutError?xe.ETIMEDOUT:xe.ECONNABORTED,t,v)),v=null},i===void 0&&o.setContentType(null),"setRequestHeader"in v&&U.forEac
vendor: 4,982 bytes, line 7
7h(o.toJSON(),function(C,x){v.setRequestHeader(x,C)}),U.isUndefined(s.withCredentials)||(v.withCredentials=!!s.withCredentials),a&&a!=="json"&&(v.responseType=s.responseType),u&&([d,g]=$h(u,!0),v.addEventListener("progress",d)),l&&v.upload&&([h,p]=$h(l),v.upload.addEventListener("progress",h),v.upload.addEventListener("loadend",p)),(s.cancelToken||s.signal)&&(f=T=>{v&&(r(!T||T.type?new Tl(null,t,v):T),v.abort(),v=null)},s.cancelToken&&s.cancelToken.subscribe(f),s.signal&&(s.signal.aborted?f():s.signal.addEventListener("abort",f)));const O=R6(s.url);if(O&&kn.protocols.indexOf(O)===-1){r(new xe("Unsupported protocol "+O+":",xe.ERR_BAD_REQUEST,t));return}v.send(i||null)})},L6=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,s;const i=function(u){if(!s){s=!0,a();const f=u instanceof Error?u:this.reason;r.abort(f instanceof xe?f:new Tl(f instanceof Error?f.message:f))}};let o=e&&setTimeout(()=>{o=null,i(new xe(`timeout ${e} of ms exceeded`,xe.ETIMEDOUT))},e);const a=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),t=null)};t.forEach(u=>u.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>U.asap(a),l}},V6=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,s;for(;r<n;)s=r+e,yield t.slice(r,s),r=s},U6=async function*(t,e){for await(const n of F6(t))yield*V6(n,e)},F6=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()}},_0=(t,e,n,r)=>{const s=U6(t,e);let i=0,o,a=l=>{o||(o=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:f}=await s.next();if(u){a(),l.close();return}let h=f.byteLength;if(n){let d=i+=h;n(d)}l.enqueue(new Uint8Array(f))}catch(u){throw a(u),u}},cancel(l){return a(l),s.return()}},{highWaterMark:2})},y0=64*1024,{isFunction:Pf}=U,B6=(({Request:t,Response:e})=>({Request:t,Response:e}))(U.global),{ReadableStream:E0,TextEncoder:v0}=U.global,T0=(t,...e)=>{try{return!!t(...e)}catch{return!1}},H6=t=>{t=U.merge.call({skipUndefined:!0},B6,t);const{fetch:e,Request:n,Response:r}=t,s=e?Pf(e):typeof fetch=="function",i=Pf(n),o=Pf(r);if(!s)return!1;const a=s&&Pf(E0),l=s&&(typeof v0=="function"?(g=>_=>g.encode(_))(new v0):async g=>new Uint8Array(await new n(g).arrayBuffer())),u=i&&a&&T0(()=>{let g=!1;const _=new n(kn.origin,{body:new E0,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!_}),f=o&&a&&T0(()=>U.isReadableStream(new r("").body)),h={stream:f&&(g=>g.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!h[g]&&(h[g]=(_,v)=>{let N=_&&_[g];if(N)return N.call(_);throw new xe(`Response type '${g}' is not supported`,xe.ERR_NOT_SUPPORT,v)})});const d=async g=>{if(g==null)return 0;if(U.isBlob(g))return g.size;if(U.isSpecCompliantForm(g))return(await new n(kn.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(U.isArrayBufferView(g)||U.isArrayBuffer(g))return g.byteLength;if(U.isURLSearchParams(g)&&(g=g+""),U.isString(g))return(await l(g)).byteLength},p=async(g,_)=>{const v=U.toFiniteNumber(g.getContentLength());return v??d(_)};return async g=>{let{url:_,method:v,data:N,signal:O,cancelToken:T,timeout:C,onDownloadProgress:x,onUploadProgress:L,responseType:R,headers:w,withCredentials:E="same-origin",fetchOptions:b}=cC(g),k=e||fetch;R=R?(R+"").toLowerCase():"text";let P=L6([O,T&&T.toAbortSignal()],C),A=null;const te=P&&P.unsubscribe&&(()=>{P.unsubscribe()});let he;try{if(L&&u&&v!=="get"&&v!=="head"&&(he=await p(w,N))!==0){let ct=new n(_,{method:"POST",body:N,duplex:"half"}),Ye;if(U.isFormData(N)&&(Ye=ct.headers.get("content-type"))&&w.setContentType(Ye),ct.body){const[ot,Fn]=p0(he,$h(m0(L)));N=_0(ct.body,y0,ot,Fn)}}U.isString(E)||(E=E?"include":"omit");const z=i&&"credentials"in n.prototype,ne={...b,signal:P,method:v.toUpperCase(),headers:w.normalize().toJSON(),body:N,duplex:"half",credentials:z?E:void 0};A=i&&new n(_,ne);let J=await(i?k(A,b):k(_,ne));const Ue=f&&(R==="stream"||R==="response");if(f&&(x||Ue&&te)){const ct={};["status","statusText","headers"].forEach(Kt=>{ct[Kt]=J[Kt]});const Ye=U.toFiniteNumber(J.headers.get("content-length")),[ot,Fn]=x&&p0(Ye,$h(m0(x),!0))||[];J=new r(_0(J.body,y0,ot,()=>{Fn&&Fn(),te&&te()}),ct)}R=R||"text";let lt=await h[U.findKey(h,R)||"text"](J,g);return!Ue&&te&&te(),await new Promise((ct,Ye)=>{aC(ct,Ye,{data:lt,headers:lr.from(J.headers),status:J.status,statusText:J.statusText,config:g,request:A})})}catch(z){throw te&&te(),z&&z.name==="TypeError"&&/Load failed|fetch/i.test(z.message)?Object.assign(new xe("Network Error",xe.ERR_NETWORK,g,A),{cause:z.cause||z}):xe.from(z,z&&z.code,g,A)}}},$6=new Map,uC=t=>{let e=t&&t.env||{};const{fetch:n,Request:r,Response:s}=e,i=[r,s,n];let o=i.length,a=o,l,u,f=$6;for(;a--;)l=i[a],u=f.get(l),u===void 0&&f.set(l,u=a?new Map:H6(e)),f=u;return u};uC();const By={http:i6,xhr:M6,fetch:{get:uC}};
vendor: 4,195 bytes, lines 7-10
7U.forEach(By,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const w0=t=>`- ${t}`,j6=t=>U.isFunction(t)||t===null||t===!1;function q6(t,e){t=U.isArray(t)?t:[t];const{length:n}=t;let r,s;const i={};for(let o=0;o<n;o++){r=t[o];let a;if(s=r,!j6(r)&&(s=By[(a=String(r)).toLowerCase()],s===void 0))throw new xe(`Unknown adapter '${a}'`);if(s&&(U.isFunction(s)||(s=s.get(e))))break;i[a||"#"+o]=s}if(!s){const o=Object.entries(i).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=n?o.length>1?`since : 8`+o.map(w0).join(` 9`):" "+w0(o[0]):"as no adapter specified";throw new xe("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return s}const fC={getAdapter:q6,adapters:By};function km(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Tl(null,t)}function b0(t){return km(t),t.headers=lr.from(t.headers),t.data=Nm.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),fC.getAdapter(t.adapter||Nu.adapter,t)(t).then(function(r){return km(t),r.data=Nm.call(t,t.transformResponse,r),r.headers=lr.from(r.headers),r},function(r){return oC(r)||(km(t),r&&r.response&&(r.response.data=Nm.call(t,t.transformResponse,r.response),r.response.headers=lr.from(r.response.headers))),Promise.reject(r)})}const hC="1.13.2",zd={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{zd[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const S0={};zd.transitional=function(e,n,r){function s(i,o){return"[Axios v"+hC+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,a)=>{if(e===!1)throw new xe(s(o," has been removed"+(n?" in "+n:"")),xe.ERR_DEPRECATED);return n&&!S0[o]&&(S0[o]=!0),e?e(i,o,a):!0}};zd.spelling=function(e){return(n,r)=>!0};function W6(t,e,n){if(typeof t!="object")throw new xe("options must be an object",xe.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let s=r.length;for(;s-- >0;){const i=r[s],o=e[i];if(o){const a=t[i],l=a===void 0||o(a,i,t);if(l!==!0)throw new xe("option "+i+" must be "+l,xe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new xe("Unknown option "+i,xe.ERR_BAD_OPTION)}}const Xf={assertOptions:W6,validators:zd},ts=Xf.validators;let Bo=class{constructor(e){this.defaults=e||{},this.interceptors={request:new h0,response:new h0}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` 10`+i):r.stack=i}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=zo(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&Xf.assertOptions(r,{silentJSONParsing:ts.transitional(ts.boolean),forcedJSONParsing:ts.transitional(ts.boolean),clarifyTimeoutError:ts.transitional(ts.boolean)},!1),s!=null&&(U.isFunction(s)?n.paramsSerializer={serialize:s}:Xf.assertOptions(s,{encode:ts.function,serialize:ts.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Xf.assertOptions(n,{baseUrl:ts.spelling("baseURL"),withXsrfToken:ts.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&U.merge(i.common,i[n.method]);i&&U.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),n.headers=lr.concat(o,i);const a=[];let l=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(n)===!1||(l=l&&_.synchronous,a.unshift(_.fulfilled,_.rejected))});const u=[];this.interceptors.response.forEach(function(_){u.push(_.fulfilled,_.rejected)});let f,h=0,d;if(!l){const g=[b0.bind(this),void 0];for(g.unshift(...a),g.push(...u),d=g.length,f=Promise.resolve(n);h<d;)f=f.then(g[h++],g[h++]);return f}d=a.length;let p=n;for(;h<d;){const g=a[h++],_=a[h++];try{p=g(p)}catch(v){_.call(this,v);break}}
vendor: 1,901 bytes, line 10
10try{f=b0.call(this,p)}catch(g){return Promise.reject(g)}for(h=0,d=u.length;h<d;)f=f.then(u[h++],u[h++]);return f}getUri(e){e=zo(this.defaults,e);const n=lC(e.baseURL,e.url,e.allowAbsoluteUrls);return rC(n,e.params,e.paramsSerializer)}};U.forEach(["delete","get","head","options"],function(e){Bo.prototype[e]=function(n,r){return this.request(zo(r||{},{method:e,url:n,data:(r||{}).data}))}});U.forEach(["post","put","patch"],function(e){function n(r){return function(i,o,a){return this.request(zo(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}Bo.prototype[e]=n(),Bo.prototype[e+"Form"]=n(!0)});let G6=class dC{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(s=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(a=>{r.subscribe(a),i=a}).then(s);return o.cancel=function(){r.unsubscribe(i)},o},e(function(i,o,a){r.reason||(r.reason=new Tl(i,o,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 dC(function(s){e=s}),cancel:e}}};function Y6(t){return function(n){return t.apply(null,n)}}function z6(t){return U.isObject(t)&&t.isAxiosError===!0}const zg={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
10alContent: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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(zg).forEach(([t,e])=>{zg[e]=t});function pC(t){const e=new Bo(t),n=WR(Bo.prototype.request,e);return U.extend(n,Bo.prototype,e,{allOwnKeys:!0}),U.extend(n,e,null,{allOwnKeys:!0}),n.create=function(s){return pC(zo(t,s))},n}const Pt=pC(Nu);Pt.Axios=Bo;Pt.CanceledError=Tl;Pt.CancelToken=G6;Pt.isCancel=oC;Pt.VERSION=hC;Pt.toFormData=Yd;Pt.AxiosError=xe;Pt.Cancel=Pt.CanceledError;Pt.all=function(e){return Promise.all(e)};Pt.spread=Y6;Pt.isAxiosError=z6;Pt.mergeConfig=zo;Pt.AxiosHeaders=lr;Pt.formToJSON=t=>iC(U.isHTMLForm(t)?new FormData(t):t);Pt.getAdapter=fC.getAdapter;Pt.HttpStatusCode=zg;Pt.default=Pt;const{Axios:RQ,AxiosError:CQ,CanceledError:PQ,isCancel:OQ,CancelToken:NQ,VERSION:kQ,all:DQ,Cancel:xQ,isAxiosError:MQ,spread:LQ,toFormData:VQ,AxiosHeaders:UQ,HttpStatusCode:FQ,formToJSON:BQ,getAdapter:HQ,mergeConfig:$Q}=Pt,K6=()=>{};var I0={};const mC=function(t){const e=[];let n=0;for(let r=0;r<t.length;r++){let s=t.charCodeAt(r);s<128?e[n++]=s:s<2048?(e[n++]=s>>6|192,e[n++]=s&63|128):(s&64512)===55296&&r+1<t.length&&(t.charCodeAt(r+1)&64512)===56320?(s=65536+((s&1023)<<10)+(t.charCodeAt(++r)&1023),e[n++]=s>>18|240,e[n++]=s>>12&63|128,e[n++]=s>>6&63|128,e[n++]=s&63|128):(e[n++]=s>>12|224,e[n++]=s>>6&63|128,e[n++]=s&63|128)}return e},X6=function(t){const e=[];let n=0,r=0;for(;n<t.length;){const s=t[n++];if(s<128)e[r++]=String.fromCharCode(s);else if(s>191&&s<224){const i=t[n++];e[r++]=String.fromCharCode((s&31)<<6|i&63)}else if(s>239&&s<365){const i=t[n++],o=t[n++],a=t[n++],l=((s&7)<<18|(i&63)<<12|(o&63)<<6|a&63)-65536;e[r++]=String.fromCharCode(55296+(l>>10)),e[r++]=String.fromCharCode(56320+(l&1023))}else{const i=t[n++],o=t[n++];e[r++]=String.fromCharCode((s&15)<<12|(i&63)<<6|o&63)}}return e.join("")},gC={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let s=0;s<t.length;s+=3){const i=t[s],o=s+1<t.length,a=o?t[s+1]:0,l=s+2<t.length,u=l?t[s+2]:0,f=i>>2,h=(i&3)<<4|a>>4;let d=(a&15)<<2|u>>6,p=u&63;l||(p=64,o||(d=64)),r.push(n[f],n[h],n[d],n[p])}return r.join("")},encodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(mC(t),e)},decodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):X6(this.decodeStringToByteArray(t,e))},decodeStringToByteArray(t,e){this.init_();const n=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let s=0;s<t.length;){const i=n[t.charAt(s++)],a=s<t.length?n[t.charAt(s)]:0;++s;const u=s<t.length?n[t.charAt(s)]:64;++s;const h=s<t.length?n[t.charAt(s)]:64;if(++s,i==null||a==null||u==null||h==null)throw new J6;const d=i<<2|a>>4;if(r.push(d),u!==64){const p=a<<4&240|u>>2;if(r.push(p),h!==64){const g=u<<6&192|h;r.push(g)}}}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)}}};
10class J6 extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const Q6=function(t){const e=mC(t);return gC.encodeByteArray(e,!0)},jh=function(t){return Q6(t).replace(/\./g,"")},_C=function(t){try{return gC.decodeString(t,!0)}catch{}return null};function Z6(){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.")}const eB=()=>Z6().__FIREBASE_DEFAULTS__,tB=()=>{if(typeof process>"u"||typeof I0>"u")return;const t=I0.__FIREBASE_DEFAULTS__;if(t)return JSON.parse(t)},nB=()=>{if(typeof document>"u")return;let t;try{t=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const e=t&&_C(t[1]);return e&&JSON.parse(e)},Kd=()=>{try{return K6()||eB()||tB()||nB()}catch{return}},rB=t=>{var e,n;return(n=(e=Kd())===null||e===void 0?void 0:e.emulatorHosts)===null||n===void 0?void 0:n[t]},yC=t=>{const e=rB(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]},EC=()=>{var t;return(t=Kd())===null||t===void 0?void 0:t.config},sB=t=>{var e;return(e=Kd())===null||e===void 0?void 0:e[`_${t}`]};class iB{constructor(){this.reject=()=>{},this.resolve=()=>{},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))}}}function wl(t){return t.endsWith(".cloudworkstations.dev")}async function vC(t){return(await fetch(t,{credentials:"include"})).ok}function TC(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",s=t.iat||0,i=t.sub||t.user_id;if(!i)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const o=Object.assign({iss:`https://securetoken.google.com/${r}`,aud:r,iat:s,exp:s+3600,auth_time:s,sub:i,user_id:i,firebase:{sign_in_provider:"custom",identities:{}}},t);return[jh(JSON.stringify(n)),jh(JSON.stringify(o)),""].join(".")}const vc={};function oB(){const t={prod:[],emulator:[]};for(const e of Object.keys(vc))vc[e]?t.emulator.push(e):t.prod.push(e);return t}function aB(t){let e=document.getElementById(t),n=!1;return e||(e=document.createElement("div"),e.setAttribute("id",t),n=!0),{created:n,element:e}}let A0=!1;function wC(t,e){if(typeof window>"u"||typeof document>"u"||!wl(window.location.host)||vc[t]===e||vc[t]||A0)return;vc[t]=e;function n(d){return`__firebase__banner__${d}`}const r="__firebase__banner",i=oB().prod.length>0;function o(){const d=document.getElementById(r);d&&d.remove()}function a(d){d.style.display="flex",d.style.background="#7faaf0",d.style.position="fixed",d.style.bottom="5px",d.style.left="5px",d.style.padding=".5em",d.style.borderRadius="5px",d.style.alignItems="center"}function l(d,p){d.setAttribute("width","24"),d.setAttribute("id",p),d.setAttribute("height","24"),d.setAttribute("viewBox","0 0 24 24"),d.setAttribute("fill","none"),d.style.marginLeft="-6px"}function u(){const d=document.createElement("span");return d.style.cursor="pointer",d.style.marginLeft="16px",d.style.fontSize="24px",d.innerHTML=" ×",d.onclick=()=>{A0=!0,o()},d}function f(d,p){d.setAttribute("id",p),d.innerText="Learn more",d.href="https://firebase.google.com/docs/studio/preview-apps#preview-backend",d.setAttribute("target","__blank"),d.style.paddingLeft="5px",d.style.textDecoration="underline"}function h(){const d=aB(r),p=n("text"),g=document.getElementById(p)||document.createElement("span"),_=n("learnmore"),v=document.getElementById(_)||document.createElement("a"),N=n("preprendIcon"),O=document.getElementById(N)||document.createElementNS("http://www.w3.org/2000/svg","svg");if(d.created){const T=d.element;a(T),f(v,_);const C=u();l(O,N),T.append(O,g,v,C),document.body.appendChild(T)}i?(g.innerText="Preview backend disconnected.",O.innerHTML=`<g clip-path="url(#clip0_6013_33858)"> 11<path d="M4.8 17.6L12 5.6L19.2 17.6H4.8ZM6.91667 16.4H17.0833L12 7.93333L6.91667 16.4ZM12 15.6C12.1667 15.6 12.3056 15.5444 12.4167 15.4333C12.5389 15.3111 12.6 15.1667 12.6 15C12.6 14.8333 12.5389 14.6944 12.4167 14.5833C12.3056 14.4611 12.1667 14.4 12 14.4C11.8333 14.4 11.6889 14.4611 11.5667 14.5833C11.4556 14.6944 11.4 14.8333 11.4 15C11.4 15.1667 11.4556 15.3111 11.5667 15.4333C11.6889 15.5444 11.8333 15.6 12 15.6ZM11.4 13.6H12.6V10.4H11.4V13.6Z" fill="#212121"/> 12</g> 13<defs> 14<clipPath id="clip0_6013_33858"> 15<rect width="24" height="24" fill="white"/> 16</clipPath> 17</defs>`):(O.innerHTML=`<g clip-path="url(#clip0_6083_34804)"> 18<path d="M11.4 15.2H12.6V11.2H11.4V15.2ZM12 10C12.1667 10 12.3056 9.94444
1812.4167 9.83333C12.5389 9.71111 12.6 9.56667 12.6 9.4C12.6 9.23333 12.5389 9.09444 12.4167 8.98333C12.3056 8.86111 12.1667 8.8 12 8.8C11.8333 8.8 11.6889 8.86111 11.5667 8.98333C11.4556 9.09444 11.4 9.23333 11.4 9.4C11.4 9.56667 11.4556 9.71111 11.5667 9.83333C11.6889 9.94444 11.8333 10 12 10ZM12 18.4C11.1222 18.4 10.2944 18.2333 9.51667 17.9C8.73889 17.5667 8.05556 17.1111 7.46667 16.5333C6.88889 15.9444 6.43333 15.2611 6.1 14.4833C5.76667 13.7056 5.6 12.8778 5.6 12C5.6 11.1111 5.76667 10.2833 6.1 9.51667C6.43333 8.73889 6.88889 8.06111 7.46667 7.48333C8.05556 6.89444 8.73889 6.43333 9.51667 6.1C10.2944 5.76667 11.1222 5.6 12 5.6C12.8889 5.6 13.7167 5.76667 14.4833 6.1C15.2611 6.43333 15.9389 6.89444 16.5167 7.48333C17.1056 8.06111 17.5667 8.73889 17.9 9.51667C18.2333 10.2833 18.4 11.1111 18.4 12C18.4 12.8778 18.2333 13.7056 17.9 14.4833C17.5667 15.2611 17.1056 15.9444 16.5167 16.5333C15.9389 17.1111 15.2611 17.5667 14.4833 17.9C13.7167 18.2333 12.8889 18.4 12 18.4ZM12 17.2C13.4444 17.2 14.6722 16.6944 15.6833 15.6833C16.6944 14.6722 17.2 13.4444 17.2 12C17.2 10.5556 16.6944 9.32778 15.6833 8.31667C14.6722 7.30555 13.4444 6.8 12 6.8C10.5556 6.8 9.32778 7.30555 8.31667 8.31667C7.30556 9.32778 6.8 10.5556 6.8 12C6.8 13.4444 7.30556 14.6722 8.31667 15.6833C9.32778 16.6944 10.5556 17.2 12 17.2Z" fill="#212121"/> 19</g> 20<defs> 21<clipPath id="clip0_6083_34804"> 22<rect width="24" height="24" fill="white"/> 23</clipPath> 24</defs>`,g.innerText="Preview backend running in this workspace."),g.setAttribute("id",p)}document.readyState==="loading"?window.addEventListener("DOMContentLoaded",h):h()}function Un(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function lB(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Un())}function cB(){var t;const e=(t=Kd())===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 uB(){return typeof navigator<"u"&&navigator.userAgent==="Cloudflare-Workers"}function fB(){const t=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof t=="object"&&t.id!==void 0}function hB(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function dB(){const t=Un();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0}function pB(){return!cB()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function mB(){try{return typeof indexedDB=="object"}catch{return!1}}function gB(){return new Promise((t,e)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",s=self.indexedDB.open(r);s.onsuccess=()=>{s.result.close(),n||self.indexedDB.deleteDatabase(r),t(!0)},s.onupgradeneeded=()=>{n=!1},s.onerror=()=>{var i;e(((i=s.error)===null||i===void 0?void 0:i.message)||"")}}catch(n){e(n)}})}const _B="FirebaseError";class Ts extends Error{constructor(e,n,r){super(n),this.code=e,this.customData=r,this.name=_B,Object.setPrototypeOf(this,Ts.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,ku.prototype.create)}}class ku{constructor(e,n,r){this.service=e,this.serviceName=n,this.errors=r}create(e,...n){const r=n[0]||{},s=`${this.service}/${e}`,i=this.errors[e],o=i?yB(i,r):"Error",a=`${this.serviceName}: ${o} (${s}).`;return new Ts(s,a,r)}}function yB(t,e){return t.replace(EB,(n,r)=>{const s=e[r];return s!=null?String(s):`<${r}?>`})}const EB=/\{\$([^}]+)}/g;function vB(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}function Yc(t,e){if(t===e)return!0;const n=Object.keys(t),r=Object.keys(e);for(const s of n){if(!r.includes(s))return!1;const i=t[s],o=e[s];if(R0(i)&&R0(o)){if(!Yc(i,o))return!1}else if(i!==o)return!1}for(const s of r)if(!n.includes(s))return!1;return!0}function R0(t){return t!==null&&typeof t=="object"}function Du(t){const e=[];for(const[n,r]of Object.entries(t))Array.isArray(r)?r.forEach(s=>{e.push(encodeURIComponent(n)+"="+encodeURIComponent(s))}):e.push(encodeURIComponent(n)+"="+encodeURIComponent(r));return e.length?"&"+e.join("&"):""}function oc(t){const e={};return t.replace(/^\?/,"").split("&").forEach(r=>{if(r){const[s,i]=r.split("=");e[decodeURIComponent(s)]=decodeURIComponent(i)}}),e}function ac(t){const e=t.indexOf("?");if(!e)return"";const n=t.indexOf("#",e);return t.substring(e,n>0?n:void 0)}function TB(t,e){const n=new wB(t,e);return n.subscribe.bind(n)}class wB{constructor(e,n){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Prom
24ise.resolve(),this.finalized=!1,this.onNoObservers=n,this.task.then(()=>{e(this)}).catch(r=>{this.error(r)})}next(e){this.forEachObserver(n=>{n.next(e)})}error(e){this.forEachObserver(n=>{n.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,n,r){let s;if(e===void 0&&n===void 0&&r===void 0)throw new Error("Missing Observer.");bB(e,["next","error","complete"])?s=e:s={next:e,error:n,complete:r},s.next===void 0&&(s.next=Dm),s.error===void 0&&(s.error=Dm),s.complete===void 0&&(s.complete=Dm);const i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?s.error(this.finalError):s.complete()}catch{}}),this.observers.push(s),i}unsubscribeOne(e){this.observers===void 0||this.observers[e]===void 0||(delete this.observers[e],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let n=0;n<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{}})}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 bB(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 Dm(){}function dt(t){return t&&t._delegate?t._delegate:t}class Yi{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}}const To="[DEFAULT]";class SB{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 iB;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{const s=this.getOrInitializeService({instanceIdentifier:n});s&&r.resolve(s)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(e){var n;const r=this.normalizeInstanceIdentifier(e?.identifier),s=(n=e?.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(i){if(s)return null;throw i}else{if(s)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,!!this.shouldAutoInitialize()){if(AB(e))try{this.getOrInitializeService({instanceIdentifier:To})}catch{}for(const[n,r]of this.instancesDeferred.entries()){const s=this.normalizeInstanceIdentifier(n);try{const i=this.getOrInitializeService({instanceIdentifier:s});r.resolve(i)}catch{}}}}clearInstance(e=To){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=To){return this.instances.has(e)}getOptions(e=To){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:n={}}=e,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const s=this.getOrInitializeService({instanceIdentifier:r,options:n});for(const[i,o]of this.instancesDeferred.entries()){const a=this.normalizeInstanceIdentifier(i);r===a&&o.resolve(s)}return s}onInit(e,n){var r;const s=this.normalizeInstanceIdentifier(n),i=(r=this.onInitCallbacks.get(s))!==null&&r!==void 0?r:new Set;i.add(e),this.onInitCallbacks.set(s,i);const o=this.instances.get(s);return o&&e(o,s),()=>{i.delete(e)}}invokeOnInitCallbacks(e,n){const r=this.onInitCallbacks.get(n);if(r)for(const s of r)try{s(e,n)}catch{}}getOrInitializeService({instanceIdentifier:e,options:n={}}){let r=this.instances.get(e);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:IB(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=To){return this.component?this.component.multipleInstances?e:To:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function IB(t){return t===To?void 0:t}function AB(t){return t.instantiationMode==="EAGER"}class RB{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 SB(e,this);return this.providers.set(e,n),n}getProviders(){return Array.from(this.providers.values())}}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 CB={debug:He.DEBUG,verbose:He.VERBOSE,info:He.INFO,warn:He.WARN,error:He.ERROR,silent:He.SILENT},PB=He.INFO,OB={[He.DEBUG]:"log",[He.VERBOSE]:"log",[He.INFO]:"info",[He.WARN]:"warn",[He.ERROR]:"error"},NB=(t,e,...n)=>{if(e<t.logLevel)return;const r=new Date().toISOString(),s=OB[e];if(!s)throw new Error(`Attempted to log a message with an invali
24d logType (value: ${e})`)};class Hy{constructor(e){this.name=e,this._logLevel=PB,this._logHandler=NB,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"?CB[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 kB=(t,e)=>e.some(n=>t instanceof n);let C0,P0;function DB(){return C0||(C0=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function xB(){return P0||(P0=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const bC=new WeakMap,Kg=new WeakMap,SC=new WeakMap,xm=new WeakMap,$y=new WeakMap;function MB(t){const e=new Promise((n,r)=>{const s=()=>{t.removeEventListener("success",i),t.removeEventListener("error",o)},i=()=>{n(Fi(t.result)),s()},o=()=>{r(t.error),s()};t.addEventListener("success",i),t.addEventListener("error",o)});return e.then(n=>{n instanceof IDBCursor&&bC.set(n,t)}).catch(()=>{}),$y.set(e,t),e}function LB(t){if(Kg.has(t))return;const e=new Promise((n,r)=>{const s=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",o),t.removeEventListener("abort",o)},i=()=>{n(),s()},o=()=>{r(t.error||new DOMException("AbortError","AbortError")),s()};t.addEventListener("complete",i),t.addEventListener("error",o),t.addEventListener("abort",o)});Kg.set(t,e)}let Xg={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return Kg.get(t);if(e==="objectStoreNames")return t.objectStoreNames||SC.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Fi(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 VB(t){Xg=t(Xg)}function UB(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...n){const r=t.call(Mm(this),e,...n);return SC.set(r,e.sort?e.sort():[e]),Fi(r)}:xB().includes(t)?function(...e){return t.apply(Mm(this),e),Fi(bC.get(this))}:function(...e){return Fi(t.apply(Mm(this),e))}}function FB(t){return typeof t=="function"?UB(t):(t instanceof IDBTransaction&&LB(t),kB(t,DB())?new Proxy(t,Xg):t)}function Fi(t){if(t instanceof IDBRequest)return MB(t);if(xm.has(t))return xm.get(t);const e=FB(t);return e!==t&&(xm.set(t,e),$y.set(e,t)),e}const Mm=t=>$y.get(t);function BB(t,e,{blocked:n,upgrade:r,blocking:s,terminated:i}={}){const o=indexedDB.open(t,e),a=Fi(o);return r&&o.addEventListener("upgradeneeded",l=>{r(Fi(o.result),l.oldVersion,l.newVersion,Fi(o.transaction),l)}),n&&o.addEventListener("blocked",l=>n(l.oldVersion,l.newVersion,l)),a.then(l=>{i&&l.addEventListener("close",()=>i()),s&&l.addEventListener("versionchange",u=>s(u.oldVersion,u.newVersion,u))}).catch(()=>{}),a}const HB=["get","getKey","getAll","getAllKeys","count"],$B=["put","add","delete","clear"],Lm=new Map;function O0(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(Lm.get(e))return Lm.get(e);const n=e.replace(/FromIndex$/,""),r=e!==n,s=$B.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(s||HB.includes(n)))return;const i=async function(o,...a){const l=this.transaction(o,s?"readwrite":"readonly");let u=l.store;
24return r&&(u=u.index(a.shift())),(await Promise.all([u[n](...a),s&&l.done]))[0]};return Lm.set(e,i),i}VB(t=>({...t,get:(e,n,r)=>O0(e,n)||t.get(e,n,r),has:(e,n)=>!!O0(e,n)||t.has(e,n)}));class jB{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(qB(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function qB(t){const e=t.getComponent();return e?.type==="VERSION"}const Jg="@firebase/app",N0="0.13.0";const ei=new Hy("@firebase/app"),WB="@firebase/app-compat",GB="@firebase/analytics-compat",YB="@firebase/analytics",zB="@firebase/app-check-compat",KB="@firebase/app-check",XB="@firebase/auth",JB="@firebase/auth-compat",QB="@firebase/database",ZB="@firebase/data-connect",e3="@firebase/database-compat",t3="@firebase/functions",n3="@firebase/functions-compat",r3="@firebase/installations",s3="@firebase/installations-compat",i3="@firebase/messaging",o3="@firebase/messaging-compat",a3="@firebase/performance",l3="@firebase/performance-compat",c3="@firebase/remote-config",u3="@firebase/remote-config-compat",f3="@firebase/storage",h3="@firebase/storage-compat",d3="@firebase/firestore",p3="@firebase/ai",m3="@firebase/firestore-compat",g3="firebase",_3="11.8.0";const Qg="[DEFAULT]",y3={[Jg]:"fire-core",[WB]:"fire-core-compat",[YB]:"fire-analytics",[GB]:"fire-analytics-compat",[KB]:"fire-app-check",[zB]:"fire-app-check-compat",[XB]:"fire-auth",[JB]:"fire-auth-compat",[QB]:"fire-rtdb",[ZB]:"fire-data-connect",[e3]:"fire-rtdb-compat",[t3]:"fire-fn",[n3]:"fire-fn-compat",[r3]:"fire-iid",[s3]:"fire-iid-compat",[i3]:"fire-fcm",[o3]:"fire-fcm-compat",[a3]:"fire-perf",[l3]:"fire-perf-compat",[c3]:"fire-rc",[u3]:"fire-rc-compat",[f3]:"fire-gcs",[h3]:"fire-gcs-compat",[d3]:"fire-fst",[m3]:"fire-fst-compat",[p3]:"fire-vertex","fire-js":"fire-js",[g3]:"fire-js-all"};const zc=new Map,E3=new Map,Zg=new Map;function k0(t,e){try{t.container.addComponent(e)}catch(n){ei.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`,n)}}function Ko(t){const e=t.name;if(Zg.has(e))return ei.debug(`There were multiple attempts to register component ${e}.`),!1;Zg.set(e,t);for(const n of zc.values())k0(n,t);for(const n of E3.values())k0(n,t);return!0}function jy(t,e){const n=t.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),t.container.getProvider(e)}function Yn(t){return t==null?!1:t.settings!==void 0}const v3={"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
24d-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."},Bi=new ku("app","Firebase",v3);class T3{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 Yi("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 Bi.create("app-deleted",{appName:this._name})}}const ca=_3;function IC(t,e={}){let n=t;typeof e!="object"&&(e={name:e});const r=Object.assign({name:Qg,automaticDataCollectionEnabled:!0},e),s=r.name;if(typeof s!="string"||!s)throw Bi.create("bad-app-name",{appName:String(s)});if(n||(n=EC()),!n)throw Bi.create("no-options");const i=zc.get(s);if(i){if(Yc(n,i.options)&&Yc(r,i.config))return i;throw Bi.create("duplicate-app",{appName:s})}const o=new RB(s);for(const l of Zg.values())o.addComponent(l);const a=new T3(n,r,o);return zc.set(s,a),a}function AC(t=Qg){const e=zc.get(t);if(!e&&t===Qg&&EC())return IC();if(!e)throw Bi.create("no-app",{appName:t});return e}function w3(){return Array.from(zc.values())}function hs(t,e,n){var r;let s=(r=y3[t])!==null&&r!==void 0?r:t;n&&(s+=`-${n}`);const i=s.match(/\s|\//),o=e.match(/\s|\//);if(i||o){const a=[`Unable to register library "${s}" with version "${e}":`];i&&a.push(`library name "${s}" contains illegal characters (whitespace or "/")`),i&&o&&a.push("and"),o&&a.push(`version name "${e}" contains illegal characters (whitespace or "/")`),ei.warn(a.join(" "));return}Ko(new Yi(`${s}-version`,()=>({library:s,version:e}),"VERSION"))}const b3="firebase-heartbeat-database",S3=1,Kc="firebase-heartbeat-store";let Vm=null;function RC(){return Vm||(Vm=BB(b3,S3,{upgrade:(t,e)=>{switch(e){case 0:try{t.createObjectStore(Kc)}catch{}}}}).catch(t=>{throw Bi.create("idb-open",{originalErrorMessage:t.message})})),Vm}async function I3(t){try{const n=(await RC()).transaction(Kc),r=await n.objectStore(Kc).get(CC(t));return await n.done,r}catch(e){if(e instanceof Ts)ei.warn(e.message);else{const n=Bi.create("idb-get",{originalErrorMessage:e?.message});ei.warn(n.message)}}}async function D0(t,e){try{const r=(await RC()).transaction(Kc,"readwrite");await r.objectStore(Kc).put(e,CC(t)),await r.done}catch(n){if(n instanceof Ts)ei.warn(n.message);else{const r=Bi.create("idb-set",{originalErrorMessage:n?.message});ei.warn(r.message)}}}function CC(t){return`${t.name}!${t.options.appId}`}const A3=1024,R3=30;class C3{constructor(e){this.container=e,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new O3(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){var e,n;try{const s=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),i=x0();if(((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(o=>o.date===i))return;if(this._heartbeatsCache.heartbeats.push({date:i,agent:s}),this._heartbeatsCache.heartbeats.length>R3){const o=N3(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(o,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(r){ei.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=x0(),{heartbeatsToSend:r,unsentEntries:s}=P3(this._heartbeatsCache.heartbeats),i=jh(JSON.stringify({version:2,heartbeats:r}));return this._heartbeatsCache.lastSentHeartbeatDate=n,s.length>0?(this._heartbeatsCache.heartbeats=s,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}catch(n){return ei.warn(n),""}}}function x0(){return new Date().toISOString().substring(0,10)}function P3(t,e=A3){const n=[];let r=t.slice();for(const s of t){const i=n.find(o=>o.agent===s.agent);if(i){if(i.dates.push(s.date),M0(n)>e){i.dates.pop();break}}else if(n.push({agent:s.agent,dates:[s.date]}),M0(n)>e){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class O3{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return mB()?gB().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await I3(this.app);return n?.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(e){var n;if(await this._canUseIndexedDBPromise){const s=await this.read();return D0(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:s.lastSentHeartbeatDate,heartbeats:e.heartbeats})}else return}async add(e){var n;if(await this._canUseIndexedDBPromise){const s=await this.read();return D0(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:s.lastSentHeartbeatDate,heartbeats:[...s.heartbeats,...e.heartbeats]})}else return}}function M0(t){return jh(JSON.stringify({version:2,heartbeats:t})).length}function N3(t){if(t.length===0)return-1;let e=0,n=t[0].date;for(let r=1;r<t.length;r++)t[r].date<n&&(n=t[r].date,e=r);return e}function k3(t){Ko(new Yi("platform-logger",e=>new jB(e),"PRIVATE")),Ko(new Yi("heartbeat",e=>new C3(e),"PRIVATE")),hs(Jg,N0,t),hs(Jg,N0,"esm2017"),hs("fire-js","")}k3("");function qy(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(t);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(n[r[s]]=t[r[s]]);return n}function PC(){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 D3=PC,OC=new ku("auth","Firebase",PC());const qh=new Hy("@firebase/auth");function x3(t,...e){qh.logLevel<=He.WARN&&qh.warn(`Auth (${ca}): ${t}`,...e)}function Jf(t,...e){qh.logLevel<=He.ERROR&&qh.error(`Auth (${ca}): ${t}`,...e)}function Pr(t,...e){throw Gy(t,...e)}function Wr(t,...e){return Gy(t,...e)}function Wy(t,e,n){const r=Object.assign(Object.assign({},D3()),{[e]:n});return new ku("auth","Firebase",r).create(e,{appName:t.name})}function ds(t){return Wy(t,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function M3(t,e,n){const r=n;if(!(e instanceof r))throw r.name!==e.constructor.name&&Pr(t,"argument-error"),Wy(t,"argument-error",`Type of ${e.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}function Gy(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 OC.create(t,...e)}function Te(t,e,...n){if(!t)throw Gy(e,...n)}function Bs(t){const e="INTERNAL ASSERTION FAILED: "+t;throw Jf(e),new Error(e)}function ti(t,e){t||Bs(e)}function Wh(){var t;return typeof self<"u"&&((t=self.location)===null||t===void 0?void 0:t.href)||""}function NC(){return L0()==="http:"||L0()==="https:"}function L0(){var t;return typeof self<"u"&&((t=self.location)===null||t===void 0?void 0:t.protocol)||null}function L3(){return typeof navigator<"u"&&navigator&&"onLine"in navigator&&typeof navigator.onLine=="boolean"&&(NC()||fB()||"connection"in navigator)?navigator.onLine:!0}
24function V3(){if(typeof navigator>"u")return null;const t=navigator;return t.languages&&t.languages[0]||t.language||null}class xu{constructor(e,n){this.shortDelay=e,this.longDelay=n,ti(n>e,"Short delay should be less than long delay!"),this.isMobile=lB()||hB()}get(){return L3()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}function Yy(t,e){ti(t.emulator,"Emulator should always be set here");const{url:n}=t.emulator;return e?`${n}${e.startsWith("/")?e.slice(1):e}`:n}class kC{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;Bs("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;Bs("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;Bs("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const U3={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"};const F3=["/v1/accounts:signInWithCustomToken","/v1/accounts:signInWithEmailLink","/v1/accounts:signInWithIdp","/v1/accounts:signInWithPassword","/v1/accounts:signInWithPhoneNumber","/v1/token"],B3=new xu(3e4,6e4);function Zr(t,e){return t.tenantId&&!e.tenantId?Object.assign(Object.assign({},e),{tenantId:t.tenantId}):e}async function Nr(t,e,n,r,s={}){return DC(t,s,async()=>{let i={},o={};r&&(e==="GET"?o=r:i={body:JSON.stringify(r)});const a=Du(Object.assign({key:t.config.apiKey},o)).slice(1),l=await t._getAdditionalHeaders();l["Content-Type"]="application/json",t.languageCode&&(l["X-Firebase-Locale"]=t.languageCode);const u=Object.assign({method:e,headers:l},i);return uB()||(u.referrerPolicy="no-referrer"),t.emulatorConfig&&wl(t.emulatorConfig.host)&&(u.credentials="include"),kC.fetch()(await xC(t,t.config.apiHost,n,a),u)})}async function DC(t,e,n){t._canInitEmulator=!1;const r=Object.assign(Object.assign({},U3),e);try{const s=new $3(t),i=await Promise.race([n(),s.promise]);s.clearNetworkTimeout();const o=await i.json();if("needConfirmation"in o)throw Of(t,"account-exists-with-different-credential",o);if(i.ok&&!("errorMessage"in o))return o;{const a=i.ok?o.errorMessage:o.error.message,[l,u]=a.split(" : ");if(l==="FEDERATED_USER_ID_ALREADY_LINKED")throw Of(t,"credential-already-in-use",o);if(l==="EMAIL_EXISTS")throw Of(t,"email-already-in-use",o);if(l==="USER_DISABLED")throw Of(t,"user-disabled",o);const f=r[l]||l.toLowerCase().replace(/[_\s]+/g,"-");if(u)throw Wy(t,f,u);Pr(t,f)}}catch(s){if(s instanceof Ts)throw s;Pr(t,"network-request-failed",{message:String(s)})}}async function bl(t,e,n,r,s={}){const i=await Nr(t,e,n,r,s);return"mfaPendingCredential"in i&&Pr(t,"multi-factor-auth-required",{_serverResponse:i}),i}async function xC(t,e,n,r){const s=`${e}${n}?${r}`,i=t,o=i.config.emulator?Yy(t.config,s):`${t.config.apiScheme}://${s}`;return F3.includes(n)&&(await i._persistenceManagerAvailable,i._getPersistenceType()==="COOKIE")?
24i._getPersistence()._getFinalTarget(o).toString():o}function H3(t){switch(t){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class $3{clearNetworkTimeout(){clearTimeout(this.timer)}constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((n,r)=>{this.timer=setTimeout(()=>r(Wr(this.auth,"network-request-failed")),B3.get())})}}function Of(t,e,n){const r={appName:t.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const s=Wr(t,e,r);return s.customData._tokenResponse=n,s}function V0(t){return t!==void 0&&t.enterprise!==void 0}class j3{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 H3(n.enforcementState);return null}isProviderEnabled(e){return this.getProviderEnforcementState(e)==="ENFORCE"||this.getProviderEnforcementState(e)==="AUDIT"}isAnyProviderEnabled(){return this.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")||this.isProviderEnabled("PHONE_PROVIDER")}}async function q3(t,e){return Nr(t,"GET","/v2/recaptchaConfig",Zr(t,e))}async function W3(t,e){return Nr(t,"POST","/v1/accounts:delete",e)}async function Gh(t,e){return Nr(t,"POST","/v1/accounts:lookup",e)}function Tc(t){if(t)try{const e=new Date(Number(t));if(!isNaN(e.getTime()))return e.toUTCString()}catch{}}async function G3(t,e=!1){const n=dt(t),r=await n.getIdToken(e),s=zy(r);Te(s&&s.exp&&s.auth_time&&s.iat,n.auth,"internal-error");const i=typeof s.firebase=="object"?s.firebase:void 0,o=i?.sign_in_provider;return{claims:s,token:r,authTime:Tc(Um(s.auth_time)),issuedAtTime:Tc(Um(s.iat)),expirationTime:Tc(Um(s.exp)),signInProvider:o||null,signInSecondFactor:i?.sign_in_second_factor||null}}function Um(t){return Number(t)*1e3}function zy(t){const[e,n,r]=t.split(".");if(e===void 0||n===void 0||r===void 0)return Jf("JWT malformed, contained fewer than 3 sections"),null;try{const s=_C(n);return s?JSON.parse(s):(Jf("Failed to decode base64 JWT payload"),null)}catch(s){return Jf("Caught error parsing JWT payload as JSON",s?.toString()),null}}function U0(t){const e=zy(t);return Te(e,"internal-error"),Te(typeof e.exp<"u","internal-error"),Te(typeof e.iat<"u","internal-error"),Number(e.exp)-Number(e.iat)}async function Xo(t,e,n=!1){if(n)return e;try{return await e}catch(r){throw r instanceof Ts&&Y3(r)&&t.auth.currentUser===t&&await t.auth.signOut(),r}}function Y3({code:t}){return t==="auth/user-disabled"||t==="auth/user-token-expired"}class z3{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,this.timerId!==null&&clearTimeout(this.timerId))}getInterval(e){var n;if(e){const r=this.errorBackoff;return this.errorBackoff=Math.min(this.errorBackoff*2,96e4),r}else{this.errorBackoff=3e4;const s=((n=this.user.stsTokenManager.expirationTime)!==null&&n!==void 0?n:0)-Date.now()-3e5;return Math.max(0,s)}}schedule(e=!1){if(!this.isRunning)return;const n=this.getInterval(e);this.timerId=setTimeout(async()=>{await this.iteration()},n)}async iteration(){try{await this.user.getIdToken(!0)}catch(e){e?.code==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()}}class e_{constructor(e,n){this.createdAt=e,this.lastLoginAt=n,this._initializeTime()}_initializeTime(){this.lastSignInTime=Tc(this.lastLoginAt),this.creationTime=Tc(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}async function Xc(t){var e;const n=t.auth,r=await t.getIdToken(),s=await Xo(t,Gh(n,{idToken:r}));Te(s?.users.length,n,"internal-error");const i=s.users[0];t._notifyReloadListener(i);const o=!((e=i.providerUserInfo)===null||e===void 0)&&e.length?MC(i.providerUserInfo):[],a=X3(t.providerData,o),l=t.isAnonymous,u=!(t.email&&i.passwordHash)&&!a?.length,f=l?u:!1,h={uid:i.localId,displayName:i.displayName||null,photoURL:i.photoUrl||null,email:i.email||null,emailVerified:i.emailVerified||!1,phoneNumber:i.phoneNumber||null,tenantId:i.tenantId||null,providerData:a,metadata:new e_(i.createdAt,i.lastLoginAt),isAnonymous:f};Object.assign(t,h)}async function K3(t){const e=dt(t);await Xc(e),await e.auth._persistUserIfCurrent(e),e.auth._notifyListenersIfCurrent(e)}function X3(t,e){return[...t.filter(r=>!e.some(s=>s.providerId===r.providerId)),...e]}function MC(t){return t.map(e=>{var{providerId:n}=e,r=qy(e,["providerId"]);
24return{providerId:n,uid:r.rawId||"",displayName:r.displayName||null,email:r.email||null,phoneNumber:r.phoneNumber||null,photoURL:r.photoUrl||null}})}async function J3(t,e){const n=await DC(t,{},async()=>{const r=Du({grant_type:"refresh_token",refresh_token:e}).slice(1),{tokenApiHost:s,apiKey:i}=t.config,o=await xC(t,s,"/v1/token",`key=${i}`),a=await t._getAdditionalHeaders();return a["Content-Type"]="application/x-www-form-urlencoded",kC.fetch()(o,{method:"POST",headers:a,body:r})});return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}async function Q3(t,e){return Nr(t,"POST","/v2/accounts:revokeToken",Zr(t,e))}class Ua{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){Te(e.idToken,"internal-error"),Te(typeof e.idToken<"u","internal-error"),Te(typeof e.refreshToken<"u","internal-error");const n="expiresIn"in e&&typeof e.expiresIn<"u"?Number(e.expiresIn):U0(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,n)}updateFromIdToken(e){Te(e.length!==0,"internal-error");const n=U0(e);this.updateTokensAndExpiration(e,null,n)}async getToken(e,n=!1){return!n&&this.accessToken&&!this.isExpired?this.accessToken:(Te(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:s,expiresIn:i}=await J3(e,n);this.updateTokensAndExpiration(r,s,Number(i))}updateTokensAndExpiration(e,n,r){this.refreshToken=n||null,this.accessToken=e||null,this.expirationTime=Date.now()+r*1e3}static fromJSON(e,n){const{refreshToken:r,accessToken:s,expirationTime:i}=n,o=new Ua;return r&&(Te(typeof r=="string","internal-error",{appName:e}),o.refreshToken=r),s&&(Te(typeof s=="string","internal-error",{appName:e}),o.accessToken=s),i&&(Te(typeof i=="number","internal-error",{appName:e}),o.expirationTime=i),o}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new Ua,this.toJSON())}_performRefresh(){return Bs("not implemented")}}function Ei(t,e){Te(typeof t=="string"||typeof t>"u","internal-error",{appName:e})}class Br{constructor(e){var{uid:n,auth:r,stsTokenManager:s}=e,i=qy(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new z3(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=n,this.auth=r,this.stsTokenManager=s,this.accessToken=s.accessToken,this.displayName=i.displayName||null,this.email=i.email||null,this.emailVerified=i.emailVerified||!1,this.phoneNumber=i.phoneNumber||null,this.photoURL=i.photoURL||null,this.isAnonymous=i.isAnonymous||!1,this.tenantId=i.tenantId||null,this.providerData=i.providerData?[...i.providerData]:[],this.metadata=new e_(i.createdAt||void 0,i.lastLoginAt||void 0)}async getIdToken(e){const n=await Xo(this,this.stsTokenManager.getToken(this.auth,e));return Te(n,this.auth,"internal-error"),this.accessToken!==n&&(this.accessToken=n,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),n}getIdTokenResult(e){return G3(this,e)}reload(){return K3(this)}_assign(e){this!==e&&(Te(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 Br(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return n.metadata._copy(this.metadata),n}_onReload(e){Te(!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 Xc(this),await this.auth._persistUserIfCurrent(this),r&&this.auth._notifyListenersIfCurrent(this)}async delete(){if(Yn(this.auth.app))return Promise.reject(ds(this.auth));const e=await this.getIdToken();return await Xo(this,W3(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
24nonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(e=>Object.assign({},e)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,n){var r,s,i,o,a,l,u,f;const h=(r=n.displayName)!==null&&r!==void 0?r:void 0,d=(s=n.email)!==null&&s!==void 0?s:void 0,p=(i=n.phoneNumber)!==null&&i!==void 0?i:void 0,g=(o=n.photoURL)!==null&&o!==void 0?o:void 0,_=(a=n.tenantId)!==null&&a!==void 0?a:void 0,v=(l=n._redirectEventId)!==null&&l!==void 0?l:void 0,N=(u=n.createdAt)!==null&&u!==void 0?u:void 0,O=(f=n.lastLoginAt)!==null&&f!==void 0?f:void 0,{uid:T,emailVerified:C,isAnonymous:x,providerData:L,stsTokenManager:R}=n;Te(T&&R,e,"internal-error");const w=Ua.fromJSON(this.name,R);Te(typeof T=="string",e,"internal-error"),Ei(h,e.name),Ei(d,e.name),Te(typeof C=="boolean",e,"internal-error"),Te(typeof x=="boolean",e,"internal-error"),Ei(p,e.name),Ei(g,e.name),Ei(_,e.name),Ei(v,e.name),Ei(N,e.name),Ei(O,e.name);const E=new Br({uid:T,auth:e,email:d,emailVerified:C,displayName:h,isAnonymous:x,photoURL:g,phoneNumber:p,tenantId:_,stsTokenManager:w,createdAt:N,lastLoginAt:O});return L&&Array.isArray(L)&&(E.providerData=L.map(b=>Object.assign({},b))),v&&(E._redirectEventId=v),E}static async _fromIdTokenResponse(e,n,r=!1){const s=new Ua;s.updateFromServerResponse(n);const i=new Br({uid:n.localId,auth:e,stsTokenManager:s,isAnonymous:r});return await Xc(i),i}static async _fromGetAccountInfoResponse(e,n,r){const s=n.users[0];Te(s.localId!==void 0,"internal-error");const i=s.providerUserInfo!==void 0?MC(s.providerUserInfo):[],o=!(s.email&&s.passwordHash)&&!i?.length,a=new Ua;a.updateFromIdToken(r);const l=new Br({uid:s.localId,auth:e,stsTokenManager:a,isAnonymous:o}),u={uid:s.localId,displayName:s.displayName||null,photoURL:s.photoUrl||null,email:s.email||null,emailVerified:s.emailVerified||!1,phoneNumber:s.phoneNumber||null,tenantId:s.tenantId||null,providerData:i,metadata:new e_(s.createdAt,s.lastLoginAt),isAnonymous:!(s.email&&s.passwordHash)&&!i?.length};return Object.assign(l,u),l}}const F0=new Map;function Hs(t){ti(t instanceof Function,"Expected a class definition");let e=F0.get(t);return e?(ti(e instanceof t,"Instance stored in cache mismatched with class"),e):(e=new t,F0.set(t,e),e)}class LC{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){}}LC.type="NONE";const B0=LC;function Qf(t,e,n){return`firebase:${t}:${e}:${n}`}class Fa{constructor(e,n,r){this.persistence=e,this.auth=n,this.userKey=r;const{config:s,name:i}=this.auth;this.fullUserKey=Qf(this.userKey,s.apiKey,i),this.fullPersistenceKey=Qf("persistence",s.apiKey,i),this.boundEventHandler=n._onStorageEvent.bind(n),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){const e=await this.persistence._get(this.fullUserKey);if(!e)return null;if(typeof e=="string"){const n=await Gh(this.auth,{idToken:e}).catch(()=>{});return n?Br._fromGetAccountInfoResponse(this.auth,n,e):null}return Br._fromJSON(this.auth,e)}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 Fa(Hs(B0),e,r);const s=(await Promise.all(n.map(async u=>{if(await u._isAvailable())return u}))).filter(u=>u);let i=s[0]||Hs(B0);const o=Qf(r,e.config.apiKey,e.name);let a=null;for(const u of n)try{const f=await u._get(o);if(f){let h;if(typeof f=="string"){const d=await Gh(e,{idToken:f}).catch(()=>{});if(!d)break;h=await Br._fromGetAccountInfoResponse(e,d,f)}else h=Br._fromJSON(e,f);u!==i&&(a=h),i=u;break}}catch{}const l=s.filter(u=>u._shouldAllowMigration);return!i._shouldAllowMigration||!l.length?new Fa(i,e,r):(i=l[0],a&&await i._set(o,a.toJSON()),await Promise.all(n.map(async u=>
24{if(u!==i)try{await u._remove(o)}catch{}})),new Fa(i,e,r))}}function H0(t){const e=t.toLowerCase();if(e.includes("opera/")||e.includes("opr/")||e.includes("opios/"))return"Opera";if(BC(e))return"IEMobile";if(e.includes("msie")||e.includes("trident/"))return"IE";if(e.includes("edge/"))return"Edge";if(VC(e))return"Firefox";if(e.includes("silk/"))return"Silk";if($C(e))return"Blackberry";if(jC(e))return"Webos";if(UC(e))return"Safari";if((e.includes("chrome/")||FC(e))&&!e.includes("edge/"))return"Chrome";if(HC(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 VC(t=Un()){return/firefox\//i.test(t)}function UC(t=Un()){const e=t.toLowerCase();return e.includes("safari/")&&!e.includes("chrome/")&&!e.includes("crios/")&&!e.includes("android")}function FC(t=Un()){return/crios\//i.test(t)}function BC(t=Un()){return/iemobile/i.test(t)}function HC(t=Un()){return/android/i.test(t)}function $C(t=Un()){return/blackberry/i.test(t)}function jC(t=Un()){return/webos/i.test(t)}function Ky(t=Un()){return/iphone|ipad|ipod/i.test(t)||/macintosh/i.test(t)&&/mobile/i.test(t)}function Z3(t=Un()){var e;return Ky(t)&&!!(!((e=window.navigator)===null||e===void 0)&&e.standalone)}function eH(){return dB()&&document.documentMode===10}function qC(t=Un()){return Ky(t)||HC(t)||jC(t)||$C(t)||/windows phone/i.test(t)||BC(t)}function WC(t,e=[]){let n;switch(t){case"Browser":n=H0(Un());break;case"Worker":n=`${H0(Un())}-${t}`;break;default:n=t}const r=e.length?e.join(","):"FirebaseCore-web";return`${n}/JsCore/${ca}/${r}`}class tH{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,n){const r=i=>new Promise((o,a)=>{try{const l=e(i);o(l)}catch(l){a(l)}});r.onAbort=n,this.queue.push(r);const s=this.queue.length-1;return()=>{this.queue[s]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;const n=[];try{for(const r of this.queue)await r(e),r.onAbort&&n.push(r.onAbort)}catch(r){n.reverse();for(const s of n)try{s()}catch{}throw this.auth._errorFactory.create("login-blocked",{originalMessage:r?.message})}}}async function nH(t,e={}){return Nr(t,"GET","/v2/passwordPolicy",Zr(t,e))}const rH=6;class sH{constructor(e){var n,r,s,i;const o=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=(n=o.minPasswordLength)!==null&&n!==void 0?n:rH,o.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=o.maxPasswordLength),o.containsLowercaseCharacter!==void 0&&(this.customStrengthOptions.containsLowercaseLetter=o.containsLowercaseCharacter),o.containsUppercaseCharacter!==void 0&&(this.customStrengthOptions.containsUppercaseLetter=o.containsUppercaseCharacter),o.containsNumericCharacter!==void 0&&(this.customStrengthOptions.containsNumericCharacter=o.containsNumericCharacter),o.containsNonAlphanumericCharacter!==void 0&&(this.customStrengthOptions.containsNonAlphanumericCharacter=o.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,this.enforcementState==="ENFORCEMENT_STATE_UNSPECIFIED"&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=(s=(r=e.allowedNonAlphanumericCharacters)===null||r===void 0?void 0:r.join(""))!==null&&s!==void 0?s:"",this.forceUpgradeOnSignin=(i=e.forceUpgradeOnSignin)!==null&&i!==void 0?i:!1,this.schemaVersion=e.schemaVersion}validatePassword(e){var n,r,s,i,o,a;const l={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,l),this.validatePasswordCharacterOptions(e,l),l.isValid&&(l.isValid=(n=l.meetsMinPasswordLength)!==null&&n!==void 0?n:!0),l.isValid&&(l.isValid=(r=l.meetsMaxPasswordLength)!==null&&r!==void 0?r:!0),l.isValid&&(l.isValid=(s=l.containsLowercaseLetter)!==null&&s!==void 0?s:!0),l.isValid&&(l.isValid=(i=l.containsUppercaseLetter)!==null&&i!==void 0?i:!0),l.isValid&&(l.isValid=(o=l.containsNumericCharacter)!==null&&o!==void 0?o:!0),l.isValid&&(l.isValid=(a=l.containsNonAlphanumericCharacter)!==null&&a!==void 0?a:!0),l}validatePasswordLengthOptions(e,n){const r=this.customStrengthOptions.minPasswordLength,s=this.customStrengthOptions.maxPasswordLength;r&&(n.meetsMinPasswordLength=e.length>=r),s&&(n.meetsMaxPasswordLength=e.length<=s)}validatePasswordCharacterOptions(e,n){this.updatePasswordCharacterOptionsStatuses(n,!1,
24!1,!1,!1);let r;for(let s=0;s<e.length;s++)r=e.charAt(s),this.updatePasswordCharacterOptionsStatuses(n,r>="a"&&r<="z",r>="A"&&r<="Z",r>="0"&&r<="9",this.allowedNonAlphanumericCharacters.includes(r))}updatePasswordCharacterOptionsStatuses(e,n,r,s,i){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=n)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=r)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=s)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=i))}}class iH{constructor(e,n,r,s){this.app=e,this.heartbeatServiceProvider=n,this.appCheckServiceProvider=r,this.config=s,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new $0(this),this.idTokenSubscription=new $0(this),this.beforeStateQueue=new tH(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=OC,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this._resolvePersistenceManagerAvailable=void 0,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=s.sdkClientVersion,this._persistenceManagerAvailable=new Promise(i=>this._resolvePersistenceManagerAvailable=i)}_initializeWithPersistence(e,n){return n&&(this._popupRedirectResolver=Hs(n)),this._initializationPromise=this.queue(async()=>{var r,s,i;if(!this._deleted&&(this.persistenceManager=await Fa.create(this,e),(r=this._resolvePersistenceManagerAvailable)===null||r===void 0||r.call(this),!this._deleted)){if(!((s=this._popupRedirectResolver)===null||s===void 0)&&s._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch{}await this.initializeCurrentUser(n),this.lastNotifiedUid=((i=this.currentUser)===null||i===void 0?void 0:i.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 Gh(this,{idToken:e}),r=await Br._fromGetAccountInfoResponse(this,n,e);await this.directlySetCurrentUser(r)}catch{await this.directlySetCurrentUser(null)}}async initializeCurrentUser(e){var n;if(Yn(this.app)){const o=this.app.settings.authIdToken;return o?new Promise(a=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(o).then(a,a))}):this.directlySetCurrentUser(null)}const r=await this.assertedPersistence.getCurrentUser();let s=r,i=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const o=(n=this.redirectUser)===null||n===void 0?void 0:n._redirectEventId,a=s?._redirectEventId,l=await this.tryRedirectSignIn(e);(!o||o===a)&&l?.user&&(s=l.user,i=!0)}if(!s)return this.directlySetCurrentUser(null);if(!s._redirectEventId){if(i)try{await this.beforeStateQueue.runMiddleware(s)}catch(o){s=r,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(o))}return s?this.reloadAndSetCurrentUserOrClear(s):this.directlySetCurrentUser(null)}return Te(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===s._redirectEventId?this.directlySetCurrentUser(s):this.reloadAndSetCurrentUserOrClear(s)}async tryRedirectSignIn(e){let n=null;try{n=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch{await this._setRedirectUser(null)}return n}async reloadAndSetCurrentUserOrClear(e){try{await Xc(e)}catch(n){if(n?.code!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=V3()}async _delete(){this._deleted=!0}
24async updateCurrentUser(e){if(Yn(this.app))return Promise.reject(ds(this));const n=e?dt(e):null;return n&&Te(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&&Te(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 Yn(this.app)?Promise.reject(ds(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(e){return Yn(this.app)?Promise.reject(ds(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(Hs(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 nH(this),n=new sH(e);this.tenantId===null?this._projectPasswordPolicy=n:this._tenantPasswordPolicies[this.tenantId]=n}_getPersistenceType(){return this.assertedPersistence.persistence.type}_getPersistence(){return this.assertedPersistence.persistence}_updateErrorMap(e){this._errorFactory=new ku("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 Q3(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&&Hs(e)||this._popupRedirectResolver;Te(n,this,"argument-error"),this.redirectPersistenceManager=await Fa.create(this,[Hs(n._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){var n,r;return this._isInitialized&&await this.queue(async()=>{}),((n=this._currentUser)===null||n===void 0?void 0:n._redirectEventId)===e?this._currentUser:((r=this.redirectUser)===null||r===void 0?void 0:r._redirectEventId)===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(e))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var e,n;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const r=(n=(e=this.currentUser)===null||e===void 0?void 0:e.uid)!==null&&n!==void 0?n:null;this.lastNotifiedUid!==r&&(this.lastNotifiedUid=r,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,n,r,s){if(this._deleted)return()=>{};const i=typeof n=="function"?n:n.next.bind(n);let o=!1;const a=this._isInitialized?Promise.resolve():this._initializationPromise;if(Te(a,this,"internal-error"),a.then(()=>{o||i(this.currentUser)}),typeof n=="function"){const l=e.addObserver(n,r,s);return()=>{o=!0,l()}}else{const l=e.addObserver(n);return()=>{o=!0,l()}}}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return Te(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){!e||this.frameworks.includes(e)||(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=WC(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var e;const n={"X-Client-Version":this.clientVersion};this.app.options.appId&&(n["X-Firebase-gmpid"]=this.app.options.appId);const r=await((e=this.heartbeatServiceProvider.getImmediate({optional:!0}))===null||e===void 0?void 0:e.getHeartbeatsHeader());r&&(n["X-Firebase-Client"]=r);const s=await this._getAppCheckToken();return s&&(n["X-Firebase-AppCheck"]=s),n}async _getAppCheckToken(){var e;if(Yn(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;const n=await((e=this.appCheckServiceProvider.getImmediate({optional:!0}))===null||e===void 0?void 0:e.getToken());return n?.error&&x3(`Error while retrieving App Check token: ${n.error}`),n?.token}}function ao(t){return dt(t)}class $0{constructor(e){this.auth=e,this.observer=null,this.addObserver=TB(n=>this.observer=n)}get next(){return Te(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}let Xd={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function oH(t){Xd=t}function GC(t){return Xd.loadJS(t)}function aH(){return Xd.recaptchaEnterpriseScript}function lH(){return Xd.gapiScript}function cH(t){return`__${t}${Math.floor(Math.random()*1e6)}`}class uH{constructor(){this.enterprise=new fH}ready(e){e()}execute(e,n){return Promise.resolve("token")}render(e,n){return""}}class fH{ready(e){e()}execute(e,n){return Promise.resolve("token")}render(e,n){return""}}const hH="recaptcha-enterprise",YC="NO_RECAPTCHA";class dH{constructor(e){this.type=hH,this.auth=ao(e)}
24async 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(o,a)=>{q3(i,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(l=>{if(l.recaptchaKey===void 0)a(new Error("recaptcha Enterprise site key undefined"));else{const u=new j3(l);return i.tenantId==null?i._agentRecaptchaConfig=u:i._tenantRecaptchaConfigs[i.tenantId]=u,o(u.siteKey)}}).catch(l=>{a(l)})})}function s(i,o,a){const l=window.grecaptcha;V0(l)?l.enterprise.ready(()=>{l.enterprise.execute(i,{action:e}).then(u=>{o(u)}).catch(()=>{o(YC)})}):a(Error("No reCAPTCHA enterprise script loaded."))}return this.auth.settings.appVerificationDisabledForTesting?new uH().execute("siteKey",{action:"verify"}):new Promise((i,o)=>{r(this.auth).then(a=>{if(!n&&V0(window.grecaptcha))s(a,i,o);else{if(typeof window>"u"){o(new Error("RecaptchaVerifier is only supported in browser"));return}let l=aH();l.length!==0&&(l+=a),GC(l).then(()=>{s(a,i,o)}).catch(u=>{o(u)})}}).catch(a=>{o(a)})})}}async function j0(t,e,n,r=!1,s=!1){const i=new dH(t);let o;if(s)o=YC;else try{o=await i.verify(n)}catch{o=await i.verify(n,!0)}const a=Object.assign({},e);if(n==="mfaSmsEnrollment"||n==="mfaSmsSignIn"){if("phoneEnrollmentInfo"in a){const l=a.phoneEnrollmentInfo.phoneNumber,u=a.phoneEnrollmentInfo.recaptchaToken;Object.assign(a,{phoneEnrollmentInfo:{phoneNumber:l,recaptchaToken:u,captchaResponse:o,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}else if("phoneSignInInfo"in a){const l=a.phoneSignInInfo.recaptchaToken;Object.assign(a,{phoneSignInInfo:{recaptchaToken:l,captchaResponse:o,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}return a}return r?Object.assign(a,{captchaResp:o}):Object.assign(a,{captchaResponse:o}),Object.assign(a,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(a,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),a}async function t_(t,e,n,r,s){var i;if(!((i=t._getRecaptchaConfig())===null||i===void 0)&&i.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const o=await j0(t,e,n,n==="getOobCode");return r(t,o)}else return r(t,e).catch(async o=>{if(o.code==="auth/missing-recaptcha-token"){const a=await j0(t,e,n,n==="getOobCode");return r(t,a)}else return Promise.reject(o)})}function pH(t,e){const n=jy(t,"auth");if(n.isInitialized()){const s=n.getImmediate(),i=n.getOptions();if(Yc(i,e??{}))return s;Pr(s,"already-initialized")}return n.initialize({options:e})}function mH(t,e){const n=e?.persistence||[],r=(Array.isArray(n)?n:[n]).map(Hs);e?.errorMap&&t._updateErrorMap(e.errorMap),t._initializeWithPersistence(r,e?.popupRedirectResolver)}class Xy{constructor(e,n){this.providerId=e,this.signInMethod=n}toJSON(){return Bs("not implemented")}_getIdTokenResponse(e){return Bs("not implemented")}_linkToIdToken(e,n){return Bs("not implemented")}_getReauthenticationResolver(e){return Bs("not implemented")}}async function gH(t,e){return Nr(t,"POST","/v1/accounts:update",e)}async function _H(t,e){return Nr(t,"POST","/v1/accounts:signUp",e)}async function yH(t,e){return bl(t,"POST","/v1/accounts:signInWithPassword",Zr(t,e))}async function EH(t,e){return Nr(t,"POST","/v1/accounts:sendOobCode",Zr(t,e))}async function vH(t,e){return EH(t,e)}async function TH(t,e){return bl(t,"POST","/v1/accounts:signInWithEmailLink",Zr(t,e))}async function wH(t,e){return bl(t,"POST","/v1/accounts:signInWithEmailLink",Zr(t,e))}class Jc extends Xy{constructor(e,n,r,s=null){super("password",r),this._email=e,this._password=n,this._tenantId=s}static _fromEmailAndPassword(e,n){return new Jc(e,n,"password")}static _fromEmailAndCode(e,n,r=null){return new Jc(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 t_(e,n,"signInWithPassword",yH);case"emailLink":return TH(e,{email:this._email,oobCode:this._password});default:Pr(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 t_(e,r,"signUpPassword",_H);case"emailLink":return wH(e,{idToken:n,email:this._email,oobCode:this._password});default:Pr(e,"internal-error")}}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}}async function Ba(t,e){return bl(t,"POST","/v1/accounts:signInWithIdp",Zr(t,e))}const bH="http://localhost";class ni extends Xy{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){const n=new ni(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&&
24(n.nonce=e.nonce),e.pendingToken&&(n.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(n.accessToken=e.oauthToken,n.secret=e.oauthTokenSecret):Pr("argument-error"),n}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){const n=typeof e=="string"?JSON.parse(e):e,{providerId:r,signInMethod:s}=n,i=qy(n,["providerId","signInMethod"]);if(!r||!s)return null;const o=new ni(r,s);return o.idToken=i.idToken||void 0,o.accessToken=i.accessToken||void 0,o.secret=i.secret,o.nonce=i.nonce,o.pendingToken=i.pendingToken||null,o}_getIdTokenResponse(e){const n=this.buildRequest();return Ba(e,n)}_linkToIdToken(e,n){const r=this.buildRequest();return r.idToken=n,Ba(e,r)}_getReauthenticationResolver(e){const n=this.buildRequest();return n.autoCreate=!1,Ba(e,n)}buildRequest(){const e={requestUri:bH,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=Du(n)}return e}}function SH(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 IH(t){const e=oc(ac(t)).link,n=e?oc(ac(e)).deep_link_id:null,r=oc(ac(t)).deep_link_id;return(r?oc(ac(r)).link:null)||r||n||e||t}class Jy{constructor(e){var n,r,s,i,o,a;const l=oc(ac(e)),u=(n=l.apiKey)!==null&&n!==void 0?n:null,f=(r=l.oobCode)!==null&&r!==void 0?r:null,h=SH((s=l.mode)!==null&&s!==void 0?s:null);Te(u&&f&&h,"argument-error"),this.apiKey=u,this.operation=h,this.code=f,this.continueUrl=(i=l.continueUrl)!==null&&i!==void 0?i:null,this.languageCode=(o=l.lang)!==null&&o!==void 0?o:null,this.tenantId=(a=l.tenantId)!==null&&a!==void 0?a:null}static parseLink(e){const n=IH(e);try{return new Jy(n)}catch{return null}}}class Sl{constructor(){this.providerId=Sl.PROVIDER_ID}static credential(e,n){return Jc._fromEmailAndPassword(e,n)}static credentialWithLink(e,n){const r=Jy.parseLink(n);return Te(r,"argument-error"),Jc._fromEmailAndCode(e,r.code,r.tenantId)}}Sl.PROVIDER_ID="password";Sl.EMAIL_PASSWORD_SIGN_IN_METHOD="password";Sl.EMAIL_LINK_SIGN_IN_METHOD="emailLink";class Qy{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}}class Il extends Qy{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}class Ha extends Il{static credentialFromJSON(e){const n=typeof e=="string"?JSON.parse(e):e;return Te("providerId"in n&&"signInMethod"in n,"argument-error"),ni._fromParams(n)}credential(e){return this._credential(Object.assign(Object.assign({},e),{nonce:e.rawNonce}))}_credential(e){return Te(e.idToken||e.accessToken,"argument-error"),ni._fromParams(Object.assign(Object.assign({}
24,e),{providerId:this.providerId,signInMethod:this.providerId}))}static credentialFromResult(e){return Ha.oauthCredentialFromTaggedObject(e)}static credentialFromError(e){return Ha.oauthCredentialFromTaggedObject(e.customData||{})}static oauthCredentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthIdToken:n,oauthAccessToken:r,oauthTokenSecret:s,pendingToken:i,nonce:o,providerId:a}=e;if(!r&&!s&&!n&&!i||!a)return null;try{return new Ha(a)._credential({idToken:n,accessToken:r,nonce:o,pendingToken:i})}catch{return null}}}class Ci extends Il{constructor(){super("facebook.com")}static credential(e){return ni._fromParams({providerId:Ci.PROVIDER_ID,signInMethod:Ci.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return Ci.credentialFromTaggedObject(e)}static credentialFromError(e){return Ci.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return Ci.credential(e.oauthAccessToken)}catch{return null}}}Ci.FACEBOOK_SIGN_IN_METHOD="facebook.com";Ci.PROVIDER_ID="facebook.com";class as extends Il{constructor(){super("google.com"),this.addScope("profile")}static credential(e,n){return ni._fromParams({providerId:as.PROVIDER_ID,signInMethod:as.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:n})}static credentialFromResult(e){return as.credentialFromTaggedObject(e)}static credentialFromError(e){return as.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthIdToken:n,oauthAccessToken:r}=e;if(!n&&!r)return null;try{return as.credential(n,r)}catch{return null}}}as.GOOGLE_SIGN_IN_METHOD="google.com";as.PROVIDER_ID="google.com";class Pi extends Il{constructor(){super("github.com")}static credential(e){return ni._fromParams({providerId:Pi.PROVIDER_ID,signInMethod:Pi.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return Pi.credentialFromTaggedObject(e)}static credentialFromError(e){return Pi.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return Pi.credential(e.oauthAccessToken)}catch{return null}}}Pi.GITHUB_SIGN_IN_METHOD="github.com";Pi.PROVIDER_ID="github.com";class Oi extends Il{constructor(){super("twitter.com")}static credential(e,n){return ni._fromParams({providerId:Oi.PROVIDER_ID,signInMethod:Oi.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:n})}static credentialFromResult(e){return Oi.credentialFromTaggedObject(e)}static credentialFromError(e){return Oi.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthAccessToken:n,oauthTokenSecret:r}=e;if(!n||!r)return null;try{return Oi.credential(n,r)}catch{return null}}}Oi.TWITTER_SIGN_IN_METHOD="twitter.com";Oi.PROVIDER_ID="twitter.com";async function AH(t,e){return bl(t,"POST","/v1/accounts:signUp",Zr(t,e))}class zi{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(e,n,r,s=!1){const i=await Br._fromIdTokenResponse(e,r,s),o=q0(r);return new zi({user:i,providerId:o,_tokenResponse:r,operationType:n})}static async _forOperation(e,n,r){await e._updateTokensIfNecessary(r,!0);const s=q0(r);return new zi({user:e,providerId:s,_tokenResponse:r,operationType:n})}}function q0(t){return t.providerId?t.providerId:"phoneNumber"in t?"phone":null}class Yh extends Ts{constructor(e,n,r,s){var i;super(n.code,n.message),this.operationType=r,this.user=s,Object.setPrototypeOf(this,Yh.prototype),this.customData={appName:e.name,tenantId:(i=e.tenantId)!==null&&i!==void 0?i:void 0,_serverResponse:n.customData._serverResponse,operationType:r}}static _fromErrorAndOperation(e,n,r,s){return new Yh(e,n,r,s)}}function zC(t,e,n,r){return(e==="reauthenticate"?n._getReauthenticationResolver(t):n._getIdTokenResponse(t)).catch(i=>{throw i.code==="auth/multi-factor-auth-required"?Yh._fromErrorAndOperation(t,i,e,r):i})}function RH(t){return new Set(t.map(({providerId:e})=>e).filter(e=>!!e))}async function KC(t,e,n=!1){const r=await Xo(t,e._linkToIdToken(t.auth,await t.getIdToken()),n);return zi._forOperation(t,"link",r)}async function CH(t,e,n){await Xc(e);const r=RH(e.providerData);Te(r.has(n)===t,e.auth,"provider-already-linked")}async function XC(t,e,n=!1){const{auth:r}=t;if(Yn(r.app))return Promise.reject(ds(r));const s="reauthenticate";try{const i=await Xo(t,zC(r,s,e,t),n);Te(i.idToken,r,"internal-error");const o=zy(i.idToken);Te(o,r,"internal-error");const{sub:a}=o;return Te(t.uid===a,r,"user-mismatch"),zi._forOperation(t,s,i)}catch(i){throw i?.code==="auth/user-not-found"&&Pr(r,"user-mismatch"),i}}async function JC(t,e,n=!1){if(Yn(t.app))return Promise.reject(ds(t));const r="signIn",s=await zC(t,r,e),i=await zi._fromIdTokenResponse(t,r,s);return n||await t._updateCurrentUser(i.user),i}async function PH(t,e){return JC(ao(t),e)}async function OH(t,e){const n=dt(t);return await CH(!1,n,e.providerId),KC(n,e)}async function jQ(t,e){return XC(dt(t),e)}async function NH(t,e){return bl(t,"POST","/v1/accounts:signInWithCustomToken",Zr(t,e))}async function kH(t,e){if(Yn(t.app))return Promise.reject(ds(t));const n=ao(t),r=await NH(n,{token:e,returnSecureToken:!0}),s=await zi._fromIdTokenResponse(n,"signIn",r);return await n._updateCurrentUser(s.user),s}function DH(t,e,n){var r;Te(((r=n.url)===null||r===void 0?void 0:r.length)>
240,t,"invalid-continue-uri"),Te(typeof n.dynamicLinkDomain>"u"||n.dynamicLinkDomain.length>0,t,"invalid-dynamic-link-domain"),Te(typeof n.linkDomain>"u"||n.linkDomain.length>0,t,"invalid-hosting-link-domain"),e.continueUrl=n.url,e.dynamicLinkDomain=n.dynamicLinkDomain,e.linkDomain=n.linkDomain,e.canHandleCodeInApp=n.handleCodeInApp,n.iOS&&(Te(n.iOS.bundleId.length>0,t,"missing-ios-bundle-id"),e.iOSBundleId=n.iOS.bundleId),n.android&&(Te(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)}async function QC(t){const e=ao(t);e._getPasswordPolicyInternal()&&await e._updatePasswordPolicy()}async function xH(t,e,n){if(Yn(t.app))return Promise.reject(ds(t));const r=ao(t),o=await t_(r,{returnSecureToken:!0,email:e,password:n,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",AH).catch(l=>{throw l.code==="auth/password-does-not-meet-requirements"&&QC(t),l}),a=await zi._fromIdTokenResponse(r,"signIn",o);return await r._updateCurrentUser(a.user),a}function MH(t,e,n){return Yn(t.app)?Promise.reject(ds(t)):PH(dt(t),Sl.credential(e,n)).catch(async r=>{throw r.code==="auth/password-does-not-meet-requirements"&&QC(t),r})}async function LH(t,e){return Nr(t,"POST","/v1/accounts:createAuthUri",Zr(t,e))}async function VH(t,e){const n=NC()?Wh():"http://localhost",r={identifier:e,continueUri:n},{signinMethods:s}=await LH(dt(t),r);return s||[]}async function ZC(t,e){const n=dt(t),s={requestType:"VERIFY_EMAIL",idToken:await t.getIdToken()};e&&DH(n.auth,s,e);const{email:i}=await vH(n.auth,s);i!==t.email&&await t.reload()}async function UH(t,e){return Nr(t,"POST","/v1/accounts:update",e)}async function qQ(t,{displayName:e,photoURL:n}){if(e===void 0&&n===void 0)return;const r=dt(t),i={idToken:await r.getIdToken(),displayName:e,photoUrl:n,returnSecureToken:!0},o=await Xo(r,UH(r.auth,i));r.displayName=o.displayName||null,r.photoURL=o.photoUrl||null;const a=r.providerData.find(({providerId:l})=>l==="password");a&&(a.displayName=r.displayName,a.photoURL=r.photoURL),await r._updateTokensIfNecessary(o)}function WQ(t,e){return FH(dt(t),null,e)}async function FH(t,e,n){const{auth:r}=t,i={idToken:await t.getIdToken(),returnSecureToken:!0};n&&(i.password=n);const o=await Xo(t,gH(r,i));await t._updateTokensIfNecessary(o,!0)}function BH(t,e,n,r){return dt(t).onAuthStateChanged(e,n,r)}function HH(t){return dt(t).signOut()}const W0="__sak";class e1{constructor(e,n){this.storageRetriever=e,this.type=n}_isAvailable(){try{return this.storage?(this.storage.setItem(W0,"1"),this.storage.removeItem(W0),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()}}const $H=1e3,jH=10;class t1 extends e1{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(e,n)=>this.onStorageEvent(e,n),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=qC(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(const n of Object.keys(this.listeners)){const r=this.storage.getItem(n),s=this.localCache[n];r!==s&&e(n,s,r)}}onStorageEvent(e,n=!1){if(!e.key){this.forAllChangedKeys((o,a,l)=>{this.notifyListeners(o,l)});return}const r=e.key;n?this.detachListener():this.stopPolling();const s=()=>{const o=this.storage.getItem(r);!n&&this.localCache[r]===o||this.notifyListeners(r,o)},i=this.storage.getItem(r);eH()&&i!==e.newValue&&e.newValue!==e.oldValue?setTimeout(s,jH):s()}notifyListeners(e,n){this.localCache[e]=n;const r=this.listeners[e];if(r)for(const s of Array.from(r))s(n&&JSON.parse(n))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((e,n,r)=>{this.onStorageEvent(new StorageEvent("storage",{key:e,oldValue:n,newValue:r}),!0)})},$H)}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
24ject.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]}}t1.type="LOCAL";const qH=t1;class n1 extends e1{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(e,n){}_removeListener(e,n){}}n1.type="SESSION";const WH=n1;function r1(t="",e=10){let n="";for(let r=0;r<e;r++)n+=Math.floor(Math.random()*10);return t+n}function Hi(){return window}function GH(t){Hi().location.href=t}new xu(3e4,6e4);function s1(t,e){return e?Hs(e):(Te(t._popupRedirectResolver,t,"argument-error"),t._popupRedirectResolver)}class Zy extends Xy{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return Ba(e,this._buildIdpRequest())}_linkToIdToken(e,n){return Ba(e,this._buildIdpRequest(n))}_getReauthenticationResolver(e){return Ba(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 YH(t){return JC(t.auth,new Zy(t),t.bypassAuthState)}function zH(t){const{auth:e,user:n}=t;return Te(n,e,"internal-error"),XC(n,new Zy(t),t.bypassAuthState)}async function KH(t){const{auth:e,user:n}=t;return Te(n,e,"internal-error"),KC(n,new Zy(t),t.bypassAuthState)}class i1{constructor(e,n,r,s,i=!1){this.auth=e,this.resolver=r,this.user=s,this.bypassAuthState=i,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(n)?n:[n]}execute(){return new Promise(async(e,n)=>{this.pendingPromise={resolve:e,reject:n};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(r){this.reject(r)}})}async onAuthEvent(e){const{urlResponse:n,sessionId:r,postBody:s,tenantId:i,error:o,type:a}=e;if(o){this.reject(o);return}const l={auth:this.auth,requestUri:n,sessionId:r,tenantId:i||void 0,postBody:s||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(a)(l))}catch(u){this.reject(u)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return YH;case"linkViaPopup":case"linkViaRedirect":return KH;case"reauthViaPopup":case"reauthViaRedirect":return zH;default:Pr(this.auth,"internal-error")}}resolve(e){ti(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){ti(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()}}const XH=new xu(2e3,1e4);async function eE(t,e,n){if(Yn(t.app))return Promise.reject(Wr(t,"operation-not-supported-in-this-environment"));const r=ao(t);M3(t,e,Qy);const s=s1(r,n);return new Ao(r,"signInViaPopup",e,s).executeNotNull()}class Ao extends i1{constructor(e,n,r,s,i){super(e,n,s,i),this.provider=r,this.authWindow=null,this.pollId=null,Ao.currentPopupAction&&Ao.currentPopupAction.cancel(),Ao.currentPopupAction=this}async executeNotNull(){const e=await this.execute();return Te(e,this.auth,"internal-error"),e}async onExecution(){ti(this.filter.length===1,"Popup operations only handle one event");const e=r1();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(Wr(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(Wr(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,Ao.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(Wr(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(e,XH.get())};e()}}Ao.currentPopupAction=null;const JH="pendingRedirect",Zf=new Map;class QH extends i1{constructor(e,n,r=!1){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],n,void 0,r),this.eventId=null}async execute(){let e=Zf.get(this.auth._key());if(!e){try{const r=await ZH(this.resolver,this.auth)?await super.execute():null;e=()=>Promise.resolve(r)}catch(n){e=()=>Promise.reject(n)}Zf.set(this.auth._key(),e)}return this.bypassAuthState||Zf.set(this.auth._key(),()=>Promise.resolve(null)),e()}
24async 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 ZH(t,e){const n=n$(e),r=t$(t);if(!await r._isAvailable())return!1;const s=await r._get(n)==="true";return await r._remove(n),s}function e$(t,e){Zf.set(t._key(),e)}function t$(t){return Hs(t._redirectPersistence)}function n$(t){return Qf(JH,t.config.apiKey,t.name)}async function r$(t,e,n=!1){if(Yn(t.app))return Promise.reject(ds(t));const r=ao(t),s=s1(r,e),o=await new QH(r,s,n).execute();return o&&!n&&(delete o.user._redirectEventId,await r._persistUserIfCurrent(o.user),await r._setRedirectUser(null,e)),o}const s$=600*1e3;class i${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||!o$(e)||(this.hasHandledPotentialRedirect=!0,n||(this.queuedRedirectEvent=e,n=!0)),n}sendToConsumer(e,n){var r;if(e.error&&!o1(e)){const s=((r=e.error.code)===null||r===void 0?void 0:r.split("auth/")[1])||"internal-error";n.onError(Wr(this.auth,s))}else n.onAuthEvent(e)}isEventForConsumer(e,n){const r=n.eventId===null||!!e.eventId&&e.eventId===n.eventId;return n.filter.includes(e.type)&&r}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=s$&&this.cachedEventUids.clear(),this.cachedEventUids.has(G0(e))}saveEventToCache(e){this.cachedEventUids.add(G0(e)),this.lastProcessedEventTime=Date.now()}}function G0(t){return[t.type,t.eventId,t.sessionId,t.tenantId].filter(e=>e).join("-")}function o1({type:t,error:e}){return t==="unknown"&&e?.code==="auth/no-auth-event"}function o$(t){switch(t.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return o1(t);default:return!1}}async function a$(t,e={}){return Nr(t,"GET","/v1/projects",e)}const l$=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,c$=/^https?/;async function u$(t){if(t.config.emulator)return;const{authorizedDomains:e}=await a$(t);for(const n of e)try{if(f$(n))return}catch{}Pr(t,"unauthorized-domain")}function f$(t){const e=Wh(),{protocol:n,hostname:r}=new URL(e);if(t.startsWith("chrome-extension://")){const o=new URL(t);return o.hostname===""&&r===""?n==="chrome-extension:"&&t.replace("chrome-extension://","")===e.replace("chrome-extension://",""):n==="chrome-extension:"&&o.hostname===r}if(!c$.test(n))return!1;if(l$.test(t))return r===t;const s=t.replace(/\./g,"\\.");return new RegExp("^(.+\\."+s+"|"+s+")$","i").test(r)}const h$=new xu(3e4,6e4);function Y0(){const t=Hi().___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 d$(t){return new Promise((e,n)=>{var r,s,i;function o(){Y0(),gapi.load("gapi.iframes",{callback:()=>{e(gapi.iframes.getContext())},ontimeout:()=>{Y0(),n(Wr(t,"network-request-failed"))},timeout:h$.get()})}if(!((s=(r=Hi().gapi)===null||r===void 0?void 0:r.iframes)===null||s===void 0)&&s.Iframe)e(gapi.iframes.getContext());else if(!((i=Hi().gapi)===null||i===void 0)&&i.load)o();else{const a=cH("iframefcb");return Hi()[a]=()=>{gapi.load?o():n(Wr(t,"network-request-failed"))},GC(`${lH()}?onload=${a}`).catch(l=>n(l))}}).catch(e=>{throw eh=null,e})}let eh=null;function p$(t){return eh=eh||d$(t),eh}const m$=new xu(5e3,15e3),g$="__/auth/iframe",_$="emulator/auth/iframe",
24y$={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},E$=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function v$(t){const e=t.config;Te(e.authDomain,t,"auth-domain-config-required");const n=e.emulator?Yy(e,_$):`https://${t.config.authDomain}/${g$}`,r={apiKey:e.apiKey,appName:t.name,v:ca},s=E$.get(t.config.apiHost);s&&(r.eid=s);const i=t._getFrameworks();return i.length&&(r.fw=i.join(",")),`${n}?${Du(r).slice(1)}`}async function T$(t){const e=await p$(t),n=Hi().gapi;return Te(n,t,"internal-error"),e.open({where:document.body,url:v$(t),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:y$,dontclear:!0},r=>new Promise(async(s,i)=>{await r.restyle({setHideOnLeave:!1});const o=Wr(t,"network-request-failed"),a=Hi().setTimeout(()=>{i(o)},m$.get());function l(){Hi().clearTimeout(a),s(r)}r.ping(l).then(l,()=>{i(o)})}))}const w$={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},b$=500,S$=600,I$="_blank",A$="http://localhost";class z0{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}function R$(t,e,n,r=b$,s=S$){const i=Math.max((window.screen.availHeight-s)/2,0).toString(),o=Math.max((window.screen.availWidth-r)/2,0).toString();let a="";const l=Object.assign(Object.assign({},w$),{width:r.toString(),height:s.toString(),top:i,left:o}),u=Un().toLowerCase();n&&(a=FC(u)?I$:n),VC(u)&&(e=e||A$,l.scrollbars="yes");const f=Object.entries(l).reduce((d,[p,g])=>`${d}${p}=${g},`,"");if(Z3(u)&&a!=="_self")return C$(e||"",a),new z0(null);const h=window.open(e||"",a,f);Te(h,t,"popup-blocked");try{h.focus()}catch{}return new z0(h)}function C$(t,e){const n=document.createElement("a");n.href=t,n.target=e;const r=document.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}const P$="__/auth/handler",O$="emulator/auth/handler",N$=encodeURIComponent("fac");async function K0(t,e,n,r,s,i){Te(t.config.authDomain,t,"auth-domain-config-required"),Te(t.config.apiKey,t,"invalid-api-key");const o={apiKey:t.config.apiKey,appName:t.name,authType:n,redirectUrl:r,v:ca,eventId:s};if(e instanceof Qy){e.setDefaultLanguage(t.languageCode),o.providerId=e.providerId||"",vB(e.getCustomParameters())||(o.customParameters=JSON.stringify(e.getCustomParameters()));for(const[f,h]of Object.entries({}))o[f]=h}if(e instanceof Il){const f=e.getScopes().filter(h=>h!=="");f.length>0&&(o.scopes=f.join(","))}t.tenantId&&(o.tid=t.tenantId);const a=o;for(const f of Object.keys(a))a[f]===void 0&&delete a[f];const l=await t._getAppCheckToken(),u=l?`#${N$}=${encodeURIComponent(l)}`:"";return`${k$(t)}?${Du(a).slice(1)}${u}`}function k$({config:t}){return t.emulator?Yy(t,O$):`https://${t.authDomain}/${P$}`}const Fm="webStorageSupport";class D${constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=WH,this._completeRedirectFn=r$,this._overrideRedirectResult=e$}
24async _openPopup(e,n,r,s){var i;ti((i=this.eventManagers[e._key()])===null||i===void 0?void 0:i.manager,"_initialize() not called before _openPopup()");const o=await K0(e,n,r,Wh(),s);return R$(e,o,r1())}async _openRedirect(e,n,r,s){await this._originValidation(e);const i=await K0(e,n,r,Wh(),s);return GH(i),new Promise(()=>{})}_initialize(e){const n=e._key();if(this.eventManagers[n]){const{manager:s,promise:i}=this.eventManagers[n];return s?Promise.resolve(s):(ti(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 T$(e),r=new i$(e);return n.register("authEvent",s=>(Te(s?.authEvent,e,"invalid-auth-event"),{status:r.onEvent(s.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:r},this.iframes[e._key()]=n,r}_isIframeWebStorageSupported(e,n){this.iframes[e._key()].send(Fm,{type:Fm},s=>{var i;const o=(i=s?.[0])===null||i===void 0?void 0:i[Fm];o!==void 0&&n(!!o),Pr(e,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){const n=e._key();return this.originValidationPromises[n]||(this.originValidationPromises[n]=u$(e)),this.originValidationPromises[n]}get _shouldInitProactively(){return qC()||UC()||Ky()}}const tE=D$;var X0="@firebase/auth",J0="1.10.6";class x${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(){Te(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}function M$(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 L$(t){Ko(new Yi("auth",(e,{options:n})=>{const r=e.getProvider("app").getImmediate(),s=e.getProvider("heartbeat"),i=e.getProvider("app-check-internal"),{apiKey:o,authDomain:a}=r.options;Te(o&&!o.includes(":"),"invalid-api-key",{appName:r.name});const l={apiKey:o,authDomain:a,clientPlatform:t,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:WC(t)},u=new iH(r,s,i,l);return mH(u,n),u},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,n,r)=>{e.getProvider("auth-internal").initialize()})),Ko(new Yi("auth-internal",e=>{const n=ao(e.getProvider("auth").getImmediate());return(r=>new x$(r))(n)},"PRIVATE").setInstantiationMode("EXPLICIT")),hs(X0,J0,M$(t)),hs(X0,J0,"esm2017")}const V$=300;sB("authIdTokenMaxAge");function U$(){var t,e;return(e=(t=document.getElementsByTagName("head"))===null||t===void 0?void 0:t[0])!==null&&e!==void 0?e:document}oH({loadJS(t){return new Promise((e,n)=>{const r=document.createElement("script");r.setAttribute("src",t),r.onload=e,r.onerror=s=>{const i=Wr("internal-error");i.customData=s,n(i)},r.type="text/javascript",r.charset="UTF-8",U$().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="});L$("Browser");var Q0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};var $i,a1;(function(){var t;function e(R,w){function E(){}E.prototype=w.prototype,R.D=w.prototype,R.prototype=new E,R.prototype.constructor=R,R.C=function(b,k,P){for(var A=Array(arguments.length-2),te=2;te<arguments.length;te++)A[te-2]=arguments[te];return w.prototype[k].apply(b,A)}}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 s(R,w,E){E||(E=0);var b=Array(16);if(typeof w=="string")for(var k=0;16>k;
vendor: 13,391 bytes, line 24
24++k)b[k]=w.charCodeAt(E++)|w.charCodeAt(E++)<<8|w.charCodeAt(E++)<<16|w.charCodeAt(E++)<<24;else for(k=0;16>k;++k)b[k]=w[E++]|w[E++]<<8|w[E++]<<16|w[E++]<<24;w=R.g[0],E=R.g[1],k=R.g[2];var P=R.g[3],A=w+(P^E&(k^P))+b[0]+3614090360&4294967295;w=E+(A<<7&4294967295|A>>>25),A=P+(k^w&(E^k))+b[1]+3905402710&4294967295,P=w+(A<<12&4294967295|A>>>20),A=k+(E^P&(w^E))+b[2]+606105819&4294967295,k=P+(A<<17&4294967295|A>>>15),A=E+(w^k&(P^w))+b[3]+3250441966&4294967295,E=k+(A<<22&4294967295|A>>>10),A=w+(P^E&(k^P))+b[4]+4118548399&4294967295,w=E+(A<<7&4294967295|A>>>25),A=P+(k^w&(E^k))+b[5]+1200080426&4294967295,P=w+(A<<12&4294967295|A>>>20),A=k+(E^P&(w^E))+b[6]+2821735955&4294967295,k=P+(A<<17&4294967295|A>>>15),A=E+(w^k&(P^w))+b[7]+4249261313&4294967295,E=k+(A<<22&4294967295|A>>>10),A=w+(P^E&(k^P))+b[8]+1770035416&4294967295,w=E+(A<<7&4294967295|A>>>25),A=P+(k^w&(E^k))+b[9]+2336552879&4294967295,P=w+(A<<12&4294967295|A>>>20),A=k+(E^P&(w^E))+b[10]+4294925233&4294967295,k=P+(A<<17&4294967295|A>>>15),A=E+(w^k&(P^w))+b[11]+2304563134&4294967295,E=k+(A<<22&4294967295|A>>>10),A=w+(P^E&(k^P))+b[12]+1804603682&4294967295,w=E+(A<<7&4294967295|A>>>25),A=P+(k^w&(E^k))+b[13]+4254626195&4294967295,P=w+(A<<12&4294967295|A>>>20),A=k+(E^P&(w^E))+b[14]+2792965006&4294967295,k=P+(A<<17&4294967295|A>>>15),A=E+(w^k&(P^w))+b[15]+1236535329&4294967295,E=k+(A<<22&4294967295|A>>>10),A=w+(k^P&(E^k))+b[1]+4129170786&4294967295,w=E+(A<<5&4294967295|A>>>27),A=P+(E^k&(w^E))+b[6]+3225465664&4294967295,P=w+(A<<9&4294967295|A>>>23),A=k+(w^E&(P^w))+b[11]+643717713&4294967295,k=P+(A<<14&4294967295|A>>>18),A=E+(P^w&(k^P))+b[0]+3921069994&4294967295,E=k+(A<<20&4294967295|A>>>12),A=w+(k^P&(E^k))+b[5]+3593408605&4294967295,w=E+(A<<5&4294967295|A>>>27),A=P+(E^k&(w^E))+b[10]+38016083&4294967295,P=w+(A<<9&4294967295|A>>>23),A=k+(w^E&(P^w))+b[15]+3634488961&4294967295,k=P+(A<<14&4294967295|A>>>18),A=E+(P^w&(k^P))+b[4]+3889429448&4294967295,E=k+(A<<20&4294967295|A>>>12),A=w+(k^P&(E^k))+b[9]+568446438&4294967295,w=E+(A<<5&4294967295|A>>>27),A=P+(E^k&(w^E))+b[14]+3275163606&4294967295,P=w+(A<<9&4294967295|A>>>23),A=k+(w^E&(P^w))+b[3]+4107603335&4294967295,k=P+(A<<14&4294967295|A>>>18),A=E+(P^w&(k^P))+b[8]+1163531501&4294967295,E=k+(A<<20&4294967295|A>>>12),A=w+(k^P&(E^k))+b[13]+2850285829&4294967295,w=E+(A<<5&4294967295|A>>>27),A=P+(E^k&(w^E))+b[2]+4243563512&4294967295,P=w+(A<<9&4294967295|A>>>23),A=k+(w^E&(P^w))+b[7]+1735328473&4294967295,k=P+(A<<14&4294967295|A>>>18),A=E+(P^w&(k^P))+b[12]+2368359562&4294967295,E=k+(A<<20&4294967295|A>>>12),A=w+(E^k^P)+b[5]+4294588738&4294967295,w=E+(A<<4&4294967295|A>>>28),A=P+(w^E^k)+b[8]+2272392833&4294967295,P=w+(A<<11&4294967295|A>>>21),A=k+(P^w^E)+b[11]+1839030562&4294967295,k=P+(A<<16&4294967295|A>>>16),A=E+(k^P^w)+b[14]+4259657740&4294967295,E=k+(A<<23&4294967295|A>>>9),A=w+(E^k^P)+b[1]+2763975236&4294967295,w=E+(A<<4&4294967295|A>>>28),A=P+(w^E^k)+b[4]+1272893353&4294967295,P=w+(A<<11&4294967295|A>>>21),A=k+(P^w^E)+b[7]+4139469664&4294967295,k=P+(A<<16&4294967295|A>>>16),A=E+(k^P^w)+b[10]+3200236656&4294967295,E=k+(A<<23&4294967295|A>>>9),A=w+(E^k^P)+b[13]+681279174&4294967295,w=E+(A<<4&4294967295|A>>>28),A=P+(w^E^k)+b[0]+3936430074&4294967295,P=w+(A<<11&4294967295|A>>>21),A=k+(P^w^E)+b[3]+3572445317&4294967295,k=P+(A<<16&4294967295|A>>>16),A=E+(k^P^w)+b[6]+76029189&4294967295,E=k+(A<<23&4294967295|A>>>9),A=w+(E^k^P)+b[9]+3654602809&4294967295,w=E+(A<<4&4294967295|A>>>28),A=P+(w^E^k)+b[12]+3873151461&4294967295,P=w+(A<<11&4294967295|A>>>21),A=k+(P^w^E)+b[15]+530742520&4294967295,k=P+(A<<16&4294967295|A>>>16),A=E+(k^P^w)+b[2]+3299628645&4294967295,E=k+(A<<23&4294967295|A>>>9),A=w+(k^(E|~P))+b[0]+4096336452&4294967295,w=E+(A<<6&4294967295|A>>>26),A=P+(E^(w|~k))+b[7]+1126891415&4294967295,P=w+(A<<10&4294967295|A>>>22),A=k+(w^(P|~E))+b[14]+2878612391&4294967295,k=P+(A<<15&4294967295|A>>>17),A=E+(P^(k|~w))+b[5]+4237533241&4294967295,E=k+(A<<21&4294967295|A>>>11),A=w+(k^(E|~P))+b[12]+1700485571&4294967295,w=E+(A<<6&4294967295|A>>>26),A=P+(E^(w|~k))+b[3]+2399980690&4294967295,P=w+(A<<10&4294967295|A>>>22),A=k+(w^(P|~E))+b[10]+4293915773&4294967295,k=P+(A<<15&4294967295|A>>>17),A=E+(P^(k|~w))+b[1]+2240044497&4294967295,E=k+(A<<21&4294967295|A>>>11),A=w+(k^(E|~P))+b[8]+1873313359&4294967295,w=E+(A<<6&4294967295|A>>>26),A=P+(E^(w|~k))+b[15]+4264355552&4294967295,P=w+(A<<10&4294967295|A>>>22),A=k+(w^(P|~E))+b[6]+2734768916&4294967295,k=P+(A<<15&4294967295|A>>>17),A=E+(P^(k|~w))+b[13]+1309151649&4294967295,E=k+(A<<21&4294967295|A>>>11),A=w+(k^(E|~P))+b[4]+4149444226&4294967295,w=E+(A<<6&4294967295|A>>>26),A=P+(E^(w|~k))+b[11]+3174756917&4294967295,P=w+(A<<10&4294967295|A>>>22),A=k+(w^(P|~E))+b[2]+718787259&4294967295,k=P+(A<<15&4294967295|A>>>17),A=E+(P^(k|~w))+b[9]+3951481745&4294967295,R.g[0]=R.g[0]+w&4294967295,R.g[1]=R.g[1]+(k+(A<<21&4294967295|A>>>11))&4294967295,R.g[2]=R.g[2]+k&4294967295,R.g[3]=R.g[3]+P&4294967295}r.prototype.u=function(R,w){w===void 0&&(w=R.length);for(var E=w-this.blockSize,b=this.B,k=this.h,P=0;P<w;){if(k==0)for(;P<=E;)s(this,R,P),P+=this.blockSize;if(typeof R=="string"){for(;P<w;)if(b[k++]=R.charCodeAt(P++),k==this.blockSize){s(this,b),k=0;break}}else for(;P<w;)if(b[k++]=R[P++],k==this.blockSize){s(this,b),k=0;break}}this.h=k,this.o+=w},r.prototype.v=function(){var R=Array((56>this.h?this.blockSize:2*this.blockSize)-this.h);R[0]=128;for(var w=1;w<R.length-8;++w)R[w]=0;var E=8*this.o;for(w=R.length-8;w<R.length;++w)R[w]=E&255,E/=256;for(this.u(R),R=Array(16),w=E=0;4>w;++w)for(var b=0;32>b;b+=8)R[E++]=this.g[w]>>>b&255;return R};function i(R,w){var E=a;return Object.prototype.hasOwnProperty.call(E,R)?E[R]:E[R]=w(R)}function o(R,w){this.h=w;for(var E=[],b=!0,k=R.length-1;0<=k;k--){var P=R[k]|0;b&&P==w||(E[k]=P,b=!1)}this.g=E}var a={};function l(R){return-128<=R&&128>R?i(R,function(w){return new o([w|0],0>w?-1:0)}):new o([R|0],0>R?-1:0)}function u(R){if(isNaN(R)||!isFinite(R))return h;if(0>R)return v(u(-R));for(var w=[],E=1,b=0;R>=E;b++)w[b]=R/E|0,E*=4294967296;return new o(w,0)}function f(R,w){if(R.length==0)throw Error("number format error: empty string");if(w=w||10,2>w||36<w)throw Error("radix out of range: "+w);if(R.charAt(0)=="-")return v(f(R.substring(1),w));if(0<=R.indexOf("-"))throw Error('number format error: interior "-" character');for(var E=u(Math.pow(w,8)),b=h,k=0;k<R.length;k+=8){var P=Math.min(8,R.length-k),A=parseInt(R.substring(k,k+P),w);8>P?(P=u(Math.pow(w,P)),b=b.j(P).add(u(A))):(b=b.j(E),b=b.add(u(A)))}return b}var h=l(0),d=l(1),p=l(16777216);t=o.prototype,t.m=function(){if(_(this))return-v(this).m();for(var R=0,w=1,E=0;E<this.g.length;E++){var b=this.i(E);R+=(0<=b?b:4294967296+b)*w,w*=4294967296}return R},t.toString=function(R){if(R=R||10,2>R||36<R)throw Error("radix out of range: "+R);if(g(this))return"0";if(_(this))return"-"+v(this).toString(R);for(var w=u(Math.pow(R,6)),E=this,b="";;){var k=C(E,w).g;E=N(E,k.j(w));var P=((0<E.g.length?E.g[0]:E.h)>>>0).toString(R);if(E=k,g(E))return P+b;for(;6>P.length;)P="0"+P;b=P+b}},t.i=function(R){return 0>R?0:R<this.g.length?this.g[R]:this.h};function g(R){if(R.h!=0)return!1;for(var w=0;w<R.g.length;w++)if(R.g[w]!=0)return!1;return!0}function _(R){return R.h==-1}t.l=function(R){return R=N(this,R),_(R)?-1:g(R)?0:1};function v(R){for(var w=R.g.length,E=[],b=0;b<w;b++)E[b]=~R.g[b];return new o(E,~R.h).add(d)}t.abs=function(){return _(this)?v(this):this},t.add=function(R){for(var w=Math.max(this.g.length,R.g.length),E=[],b=0,k=0;k<=w;k++){var P=b+(this.i(k)&65535)+(R.i(k)&65535),A=(P>>>16)+(this.i(k)>>>16)+(R.i(k)>>>16);b=A>>>16,P&=65535,A&=65535,E[k]=A<<16|P}return new o(E,E[E.length-1]&-2147483648?-1:0)};function N(R,w){return R.add(v(w))}t.j=function(R){if(g(this)||g(R))return h;if(_(this))return _(R)?v(this).j(v(R)):v(v(this).j(R));if(_(R))return v(this.j(v(R)));if(0>this.l(p)&&0>R.l(p))return u(this.m()*R.m());for(var w=this.g.length+R.g.length,E=[],b=0;b<2*w;b++)E[b]=0;for(b=0;b<this.g.length;b++)for(var k=0;k<R.g.length;k++){var P=this.i(b)>>>16,A=this.i(b)&65535,te=R.i(k)>>>16,he=R.i(k)&65535;E[2*b+2*k]+=A*he,O(E,2*b+2*k),E[2*b+2*k+1]+=P*he,O(E,2*b+2*k+1),E[2*b+2*k+1]+=A*te,O(E,2*b+2*k+1),E[2*b+2*k+2]+=P*te,O(E,2*b+2*k+2)}for(b=0;b<w;b++)E[b]=E[2*b+1]<<16|E[2*b];for(b=w;b<2*w;b++)E[b]=0;return new o(E,0)};function O(R,w){for(;(R[w]&65535)!=R[w];)R[w+1]+=R[w]>>>16,R[w]&=65535,w++}function T(R,w){this.g=R,this.h=w}function C(R,w){if(g(w))throw Error("division by zero");if(g(R))return new T(h,h);if(_(R))return w=C(v(R),w),new T(v(w.g),v(w.h));if(_(w))return w=C(R,v(w)),new T(v(w.g),w.h);if(30<R.g.length){if(_(R)||_(w))throw Error("slowDivide_ only works with positive integers.");for(var E=d,b=w;0>=b.l(R);)E=x(E),b=x(b);var k=L(E,1),P=L(b,1);for(b=L(b,2),E=L(E,2);!g(b);){var A=P.add(b);0>=A.l(R)&&(k=k.add(E),P=A),b=L(b,1),E=L(E,1)}return w=N(R,k.j(w)),new T(k,w)}for(k=h;0<=R.l(w);){for(E=Math.max(1,Math.floor(R.m()/w.m())),b=Math.ceil(Math.log(E)/Math.LN2),b=48>=b?1:Math.pow(2,b-48),P=u(E),A=P.j(w);_(A)||0<A.l(R);)E-=b,P=u(E),A=P.j(w);g(P)&&(P=d),k=k.add(P),R=N(R,A)}return new T(k,R)}t.A=function(R){return C(this,R).h},t.and=function(R){for(var w=Math.max(this.g.length,R.g.length),E=[],b=0;b<w;b++)E[b]=this.i(b)&R.i(b);return new o(E,this.h&R.h)},t.or=function(R){for(var w=Math.max(this.g.length,R.g.length),E=[],b=0;b<w;b++)E[b]=this.i(b)|R.i(b);return new o(E,this.h|R.h)},t.xor=function(R){for(var w=Math.max(this.g.length,R.g.length),E=[],b=0;b<w;b++)E[b]=this.i(b)^R.i(b);return new o(E,this.h^R.h)};function x(R){for(var w=R.g.length+1,E=[],b=0;b<w;b++)E[b]=R.i(b)<<1|R.i(b-1)>>>31;return new o(E,R.h)}function L(R,w){var E=w>>5;w%=32;for(var b=R.g.length-E,k=[],P=0;P<b;P++)k[P]=0<w?R.i(P+E)>>>w|R.i(P+E+1)<<32-w:R.i(P+E);return new o(k,R.h)}r.prototype.digest=r.prototype.v,r.prototype.reset=r.prototype.s,r.prototype.update=r.prototype.u,a1=r,o.prototype.add=o.prototype.add,o.prototype.multiply=o.prototype.j,o.prototype.modulo=o.prototype.A,o.prototype.compare=o.prototype.l,o.prototype.toNumber=o.prototype.m,o.prototype.toString=o.prototype.toString,o.prototype.getBits=o.prototype.i,o.fromNumber=u,o.fromString=f,$i=o}).apply(typeof Q0<"u"?Q0:typeof self<"u"?self:typeof window<"u"?window:{});var Nf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};var l1,lc,c1,th,n_,u1,f1,h1;(function(){var t,e=typeof Object.defineProperties=="function"?Object.defineProperty:function(c,m,y){return c==Array.prototype||c==Object.prototype||(c[m]=y.value),c};function n(c){c=[typeof globalThis=="object"&&globalThis,c,typeof window=="object"&&window,typeof self=="object"&&self,typeof Nf=="object"&&Nf];for(var m=0;m<c.length;++m){var y=c[m];if(y&&y.Math==Math)return y}throw Error("Cannot find global object")}var r=n(this);function s(c,m){if(m)e:{var y=r;c=c.split(".");for(var I=0;I<c.length-1;I++){var V=c[I];if(!(V in y))break e;y=y[V]}c=c[c.length-1],I=y[c],m=m(I),m!=I&&m!=null&&e(y,c,{configurable:!0,writable:!0,value:m})}}function i(c,m){c instanceof String&&(c+="");var y=0,I=!1,V={next:function(){if(!I&&y<c.length){var B=y++;return{value:m(B,c[B]),done:!1}}return I=!0,{done:!0,value:void 0}}};return V[Symbol.iterator]=function(){return V},V}s("Array.prototype.values",function(c){return c||function(){return i(this,function(m,y){return y})}});var o=o||{},a=this||self;function l(c){var m=typeof c;return m=m!="object"?m:c?Array.isArray(c)?"array":m:"null",m=="array"||m=="object"&&typeof c.length=="number"}function u(c){var m=typeof c;return m=="object"&&c!=null||m=="function"}function f(c,m,y){return c.call.apply(c.bind,arguments)}function h(c,m,y){if(!c)throw Error();if(2<arguments.length){var I=Array.prototype.slice.call(arguments,2);return function(){var V=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(V,I),c.apply(m,V)}}return function(){return c.apply(m,arguments)}}function d(c,m,y){return d=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?f:h,d.apply(null,arguments)}function p(c,m){var y=Array.prototype.slice.call(arguments,1);return function(){var I=y.slice();return I.push.apply(I,arguments),c.apply(this,I)}}function g(c,m){function y(){}y.prototype=m.prototype,c.aa=m.prototype,c.prototype=new y,c.prototype.constructor=c,c.Qb=function(I,V,B){for(var ee=Array(arguments.length-2),ut=2;ut<arguments.length;ut++)ee[ut-2]=arguments[ut];return m.prototype[V].apply(I,ee)}}function _(c){const m=c.length;if(0<m){const y=Array(m);for(let I=0;I<m;I++)y[I]=c[I];return y}return[]}function v(c,m){for(let y=1;y<arguments.length;y++){const I=arguments[y];if(l(I)){const V=c.length||0,B=I.length||0;c.length=V+B;for(let ee=0;ee<B;ee++)c[V+ee]=I[ee]}else c.push(I)}}class N{constructor(m,y){this.i=m,this.j=y,this.h=0,this.g=null}get(){let m;return 0<this.h?(this.h--,m=this.g,this.g=m.next,m.next=null):m=this.i(),m}}function O(c){return/^[\s\xa0]*$/.test(c)}function T(){var c=a.navigator;return c&&(c=c.userAgent)?c:""}function C(c){return C[" "](c),c}C[" "]=function(){};var x=T().indexOf("Gecko")!=-1&&!(T().toLowerCase().indexOf("webkit")!=-1&&T().indexOf("Edge")==-1)&&!(T().indexOf("Trident")!=-1||T().indexOf("MSIE")!=-1)&&T().indexOf("Edge")==-1;function L(c,m,y){for(const I in c)m.call(y,c[I],I,c)}function R(c,m){for(const y in c)m.call(void 0,c[y],y,c)}function w(c){const m={};for(const y in c)m[y]=c[y];return m}const E="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleStr
24ing toString valueOf".split(" ");function b(c,m){let y,I;for(let V=1;V<arguments.length;V++){I=arguments[V];for(y in I)c[y]=I[y];for(let B=0;B<E.length;B++)y=E[B],Object.prototype.hasOwnProperty.call(I,y)&&(c[y]=I[y])}}function k(c){var m=1;c=c.split(":");const y=[];for(;0<m&&c.length;)y.push(c.shift()),m--;return c.length&&y.push(c.join(":")),y}function P(c){a.setTimeout(()=>{throw c},0)}function A(){var c=Ue;let m=null;return c.g&&(m=c.g,c.g=c.g.next,c.g||(c.h=null),m.next=null),m}class te{constructor(){this.h=this.g=null}add(m,y){const I=he.get();I.set(m,y),this.h?this.h.next=I:this.g=I,this.h=I}}var he=new N(()=>new z,c=>c.reset());class z{constructor(){this.next=this.g=this.h=null}set(m,y){this.h=m,this.g=y,this.next=null}reset(){this.next=this.g=this.h=null}}let ne,J=!1,Ue=new te,lt=()=>{const c=a.Promise.resolve(void 0);ne=()=>{c.then(ct)}};var ct=()=>{for(var c;c=A();){try{c.h.call(c.g)}catch(y){P(y)}var m=he;m.j(c),100>m.h&&(m.h++,c.next=m.g,m.g=c)}J=!1};function Ye(){this.s=this.s,this.C=this.C}Ye.prototype.s=!1,Ye.prototype.ma=function(){this.s||(this.s=!0,this.N())},Ye.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()};function ot(c,m){this.type=c,this.g=this.target=m,this.defaultPrevented=!1}ot.prototype.h=function(){this.defaultPrevented=!0};var Fn=(function(){if(!a.addEventListener||!Object.defineProperty)return!1;var c=!1,m=Object.defineProperty({},"passive",{get:function(){c=!0}});try{const y=()=>{};a.addEventListener("test",y,m),a.removeEventListener("test",y,m)}catch{}return c})();function Kt(c,m){if(ot.call(this,c?c.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,c){var y=this.type=c.type,I=c.changedTouches&&c.changedTouches.length?c.changedTouches[0]:null;if(this.target=c.target||c.srcElement,this.g=m,m=c.relatedTarget){if(x){e:{try{C(m.nodeName);var V=!0;break e}catch{}V=!1}V||(m=null)}}else y=="mouseover"?m=c.fromElement:y=="mouseout"&&(m=c.toElement);this.relatedTarget=m,I?(this.clientX=I.clientX!==void 0?I.clientX:I.pageX,this.clientY=I.clientY!==void 0?I.clientY:I.pageY,this.screenX=I.screenX||0,this.screenY=I.screenY||0):(this.clientX=c.clientX!==void 0?c.clientX:c.pageX,this.clientY=c.clientY!==void 0?c.clientY:c.pageY,this.screenX=c.screenX||0,this.screenY=c.screenY||0),this.button=c.button,this.key=c.key||"",this.ctrlKey=c.ctrlKey,this.altKey=c.altKey,this.shiftKey=c.shiftKey,this.metaKey=c.metaKey,this.pointerId=c.pointerId||0,this.pointerType=typeof c.pointerType=="string"?c.pointerType:_n[c.pointerType]||"",this.state=c.state,this.i=c,c.defaultPrevented&&Kt.aa.h.call(this)}}g(Kt,ot);var _n={2:"touch",3:"pen",4:"mouse"};Kt.prototype.h=function(){Kt.aa.h.call(this);var c=this.i;c.preventDefault?c.preventDefault():c.returnValue=!1};var $="closure_listenable_"+(1e6*Math.random()|0),ae=0;function re(c,m,y,I,V){this.listener=c,this.proxy=null,this.src=m,this.type=y,this.capture=!!I,this.ha=V,this.key=++ae,this.da=this.fa=!1}function fe(c){c.da=!0,c.listener=null,c.proxy=null,c.src=null,c.ha=null}function Ne(c){this.src=c,this.g={},this.h=0}Ne.prototype.add=function(c,m,y,I,V){var B=c.toString();c=this.g[B],c||(c=this.g[B]=[],this.h++);var ee=S(c,m,I,V);return-1<ee?(m=c[ee],y||(m.fa=!1)):(m=new re(m,this.src,B,!!I,V),m.fa=y,c.push(m)),m};function K(c,m){var y=m.type;if(y in c.g){var I=c.g[y],V=Array.prototype.indexOf.call(I,m,void 0),B;(B=0<=V)&&Array.prototype.splice.call(I,V,1),B&&(fe(m),c.g[y].length==0&&(delete c.g[y],c.h--))}}function S(c,m,y,I){for(var V=0;V<c.length;++V){var B=c[V];if(!B.da&&B.listener==m&&B.capture==!!y&&B.ha==I)return V}return-1}var D="closure_lm_"+(1e6*Math.random()|0),M={};function H(c,m,y,I,V){if(Array.isArray(m)){for(var B=0;B<m.length;B++)H(c,m[B],y,I,V);return null}return y=ge(y),c&&c[$]?c.K(m,y,u(I)?!!I.capture:!1,V):F(c,m,y,!1,I,V)}function F(c,m,y,I,V,B){if(!m)throw Error("Invalid event type");var ee=u(V)?!!V.capture:!!V,ut=Ee(c);if(ut||(c[D]=ut=new Ne(c)),y=ut.add(m,y,I,ee,B),y.proxy)return y;if(I=W(),y.proxy=I,I.src=c,I.listener=y,c.addEventListener)Fn||(V=ee),V===void 0&&(V=!1),c.addEventListener(m.toString(),I,V);else if(c.attachEvent)c.attachEvent(X(m.toString()),I);else if(c.addListener&&c.removeListener)c.addListener(I);else throw Error("addEventListener and attachEvent are unavailable.");return y}function W(){function c(y){return m.call(c.src,c.listener,y)}const m=G;return c}function Z(c,m,y,I,V){if(Array.isArray(m))for(var B=0;B<m.length;B++)Z(c,m[B],y,I,V);else I=u(I)?!!I.capture:!!I,y=ge(y),c&&c[$]?(c=c.i,m=String(m).toString(),m in c.g&&(B=c.g[m],y=S(B,y,I,V),-1<y&&(fe(B[y]),Array.prototype.splice.call(B,y,1),B.length==0&&(delete c.g[m],c.h--)))):c&&(c=Ee(c))&&(m=c.g[m.toString()],c=-1,m&&(c=S(m,y,I,V)),(y=-1<c?m[c]:null)&&Q(y))}function Q(c){if(typeof c!="number"&&c&&!c.da){var m=c.src;if(m&&m[$])K(m.i,c);else{var y=c.type,I=c.proxy;m.removeEventListener?m.removeEventListener(y,I,c.capture):m.detachEvent?m.detachEvent(X(y),I):m.addListener&&m.removeListener&&m.removeListener(I),(y=Ee(m))?(K(y,c),y.h==0&&(y.src=null,m[D]=null)):fe(c)}}}function X(c){return c in M?M[c]:M[c]="on"+c}function G(c,m){if(c.da)c=!0;else{m=new Kt(m,this);var y=c.listener,I=c.ha||c.src;c.fa&&Q(c),c=y.call(I,m)}return c}function Ee(c){return c=c[D],c instanceof Ne?c:null}var ie="__closure_events_fn_"+(1e9*Math.random()>>>0);function ge(c){return typeof c=="function"?c:(c[ie]||(c[ie]=function(m){return c.handleEvent(m)}),c[ie])}function pe(){Ye.call(this),this.i=new Ne(this),this.M=this,this.F=null}g(pe,Ye),pe.prototype[$]=!0,pe.prototype.removeEventListener=function(c,m,y,I){Z(this,c,m,y,I)};function Se(c,m){var y,I=c.F;if(I)for(y=[];I;I=I.F)y.push(I);if(c=c.M,I=m.type||m,typeof m=="string")m=new ot(m,c);else if(m instanceof ot)m.target=m.target||c;else{var V=m;m=new ot(I,c),b(m,V)}if(V=!0,y)for(var B=y.length-1;0<=B;B--){var ee=m.g=y[B];V=tt(ee,I,!0,m)&&V}if(ee=m.g=c,V=tt(ee,I,!0,m)&&V,V=tt(ee,I,!1,m)&&V,y)for(B=0;B<y.length;B++)ee=m.g=y[B],V=tt(ee,I,!1,m)&&V}pe.prototype.N=function(){if(pe.aa.N.call(this),this.i){var c=this.i,m;for(m in c.g){for(var y=c.g[m],I=0;I<y.length;I++)fe(y[I]);delete c.g[m],c.h--}}this.F=null},pe.prototype.K=function(c,m,y,I){return this.i.add(String(c),m,!1,y,I)},pe.prototype.L=function(c,m,y,I){return this.i.add(String(c),m,!0,y,I)};function tt(c,m,y,I){if(m=c.i.g[String(m)],!m)return!0;m=m.concat();for(var V=!0,B=0;B<m.length;++B){var ee=m[B];if(ee&&!ee.da&&ee.capture==y){var ut=ee.listener,ln=ee.ha||ee.src;ee.fa&&K(c.i,ee),V=ut.call(ln,I)!==!1&&V}}return V&&!I.defaultPrevented}
vendor: 32,200 bytes, lines 24-32
24function ze(c,m,y){if(typeof c=="function")y&&(c=d(c,y));else if(c&&typeof c.handleEvent=="function")c=d(c.handleEvent,c);else throw Error("Invalid listener argument");return 2147483647<Number(m)?-1:a.setTimeout(c,m||0)}function on(c){c.g=ze(()=>{c.g=null,c.i&&(c.i=!1,on(c))},c.l);const m=c.h;c.h=null,c.m.apply(null,m)}class Xt extends Ye{constructor(m,y){super(),this.m=m,this.l=y,this.h=null,this.i=!1,this.g=null}j(m){this.h=arguments,this.g?this.i=!0:on(this)}N(){super.N(),this.g&&(a.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function an(c){Ye.call(this),this.h=c,this.g={}}g(an,Ye);var yn=[];function di(c){L(c.g,function(m,y){this.g.hasOwnProperty(y)&&Q(m)},c),c.g={}}an.prototype.N=function(){an.aa.N.call(this),di(this)},an.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var da=a.JSON.stringify,Bn=a.JSON.parse,Er=class{stringify(c){return a.JSON.stringify(c,void 0)}parse(c){return a.JSON.parse(c,void 0)}};function pa(){}pa.prototype.h=null;function Ll(c){return c.h||(c.h=c.i())}function Xv(){}var Vl={OPEN:"a",kb:"b",Ja:"c",wb:"d"};function Kp(){ot.call(this,"d")}g(Kp,ot);function Xp(){ot.call(this,"c")}g(Xp,ot);var fo={},Jv=null;function Zu(){return Jv=Jv||new pe}fo.La="serverreachability";function Qv(c){ot.call(this,fo.La,c)}g(Qv,ot);function Ul(c){const m=Zu();Se(m,new Qv(m))}fo.STAT_EVENT="statevent";function Zv(c,m){ot.call(this,fo.STAT_EVENT,c),this.stat=m}g(Zv,ot);function Hn(c){const m=Zu();Se(m,new Zv(m,c))}fo.Ma="timingevent";function eT(c,m){ot.call(this,fo.Ma,c),this.size=m}g(eT,ot);function Fl(c,m){if(typeof c!="function")throw Error("Fn must not be null and must be a function");return a.setTimeout(function(){c()},m)}function Bl(){this.g=!0}Bl.prototype.xa=function(){this.g=!1};function Ik(c,m,y,I,V,B){c.info(function(){if(c.g)if(B)for(var ee="",ut=B.split("&"),ln=0;ln<ut.length;ln++){var Ke=ut[ln].split("=");if(1<Ke.length){var En=Ke[0];Ke=Ke[1];var vn=En.split("_");ee=2<=vn.length&&vn[1]=="type"?ee+(En+"="+Ke+"&"):ee+(En+"=redacted&")}}else ee=null;else ee=B;return"XMLHTTP REQ ("+I+") [attempt "+V+"]: "+m+` 25`+y+` 26`+ee})}function Ak(c,m,y,I,V,B,ee){c.info(function(){return"XMLHTTP RESP ("+I+") [ attempt "+V+"]: "+m+` 27`+y+` 28`+B+" "+ee})}function ma(c,m,y,I){c.info(function(){return"XMLHTTP TEXT ("+m+"): "+Ck(c,y)+(I?" "+I:"")})}function Rk(c,m){c.info(function(){return"TIMEOUT: "+m})}Bl.prototype.info=function(){};function Ck(c,m){if(!c.g)return m;if(!m)return null;try{var y=JSON.parse(m);if(y){for(c=0;c<y.length;c++)if(Array.isArray(y[c])){var I=y[c];if(!(2>I.length)){var V=I[1];if(Array.isArray(V)&&!(1>V.length)){var B=V[0];if(B!="noop"&&B!="stop"&&B!="close")for(var ee=1;ee<V.length;ee++)V[ee]=""}}}}return da(y)}catch{return m}}var ef={NO_ERROR:0,gb:1,tb:2,sb:3,nb:4,rb:5,ub:6,Ia:7,TIMEOUT:8,xb:9},tT={lb:"complete",Hb:"success",Ja:"error",Ia:"abort",zb:"ready",Ab:"readystatechange",TIMEOUT:"timeout",vb:"incrementaldata",yb:"progress",ob:"downloadprogress",Pb:"uploadprogress"},Jp;function tf(){}g(tf,pa),tf.prototype.g=function(){return new XMLHttpRequest},tf.prototype.i=function(){return{}},Jp=new tf;function pi(c,m,y,I){this.j=c,this.i=m,this.l=y,this.R=I||1,this.U=new an(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 nT}function nT(){this.i=null,this.g="",this.h=!1}var rT={},Qp={};function Zp(c,m,y){c.L=1,c.v=of(Ss(m)),c.m=y,c.P=!0,sT(c,null)}function sT(c,m){c.F=Date.now(),nf(c),c.A=Ss(c.v);var y=c.A,I=c.R;Array.isArray(I)||(I=[String(I)]),yT(y.i,"t",I),c.C=0,y=c.j.J,c.h=new nT,c.g=LT(c.j,y?m:null,!c.m),0<c.O&&(c.M=new Xt(d(c.Y,c,c.g),c.O)),m=c.U,y=c.g,I=c.ca;var V="readystatechange";Array.isArray(V)||(V&&(yn[0]=V.toString()),V=yn);for(var B=0;B<V.length;B++){var ee=H(y,V[B],I||m.handleEvent,!1,m.h||m);if(!ee)break;m.g[ee.key]=ee}m=c.H?w(c.H):{},c.m?(c.u||(c.u="POST"),m["Content-Type"]="application/x-www-form-urlencoded",c.g.ea(c.A,c.u,c.m,m)):(c.u="GET",c.g.ea(c.A,c.u,null,m)),Ul(),Ik(c.i,c.u,c.A,c.l,c.R,c.m)}pi.prototype.ca=function(c){c=c.target;const m=this.M;m&&Is(c)==3?m.j():this.Y(c)},pi.prototype.Y=function(c){try{if(c==this.g)e:{const vn=Is(this.g);var m=this.g.Ba();const ya=this.g.Z();if(!(3>vn)&&(vn!=3||this.g&&(this.h.h||this.g.oa()||IT(this.g)))){this.J||vn!=4||m==7||(m==8||0>=ya?Ul(3):Ul(2)),em(this);var y=this.g.Z();this.X=y;t:if(iT(this)){var I=IT(this.g);c="";var V=I.length,B=Is(this.g)==4;if(!this.h.i){if(typeof TextDecoder>"u"){ho(this),Hl(this);var ee="";break t}this.h.i=new a.TextDecoder}for(m=0;m<V;m++)this.h.h=!0,c+=this.h.i.decode(I[m],{stream:!(B&&m==V-1)});I.length=0,this.h.g+=c,this.C=0,ee=this.h.g}else ee=this.g.oa();if(this.o=y==200,Ak(this.i,this.u,this.A,this.l,this.R,vn,y),this.o){if(this.T&&!this.K){t:{if(this.g){var ut,ln=this.g;if((ut=ln.g?ln.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!O(ut)){var Ke=ut;break t}}Ke=null}if(y=Ke)ma(this.i,this.l,y,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,tm(this,y);else{this.o=!1,this.s=3,Hn(12),ho(this),Hl(this);break e}}if(this.P){y=!0;let xr;for(;!this.J&&this.C<ee.length;)if(xr=Pk(this,ee),xr==Qp){vn==4&&(this.s=4,Hn(14),y=!1),ma(this.i,this.l,null,"[Incomplete Response]");break}else if(xr==rT){this.s=4,Hn(15),ma(this.i,this.l,ee,"[Invalid Chunk]"),y=!1;break}else ma(this.i,this.l,xr,null),tm(this,xr);if(iT(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,Hn(16),y=!1),this.o=this.o&&y,!y)ma(this.i,this.l,ee,"[Invalid Chunked Response]"),ho(this),Hl(this);else if(0<ee.length&&!this.W){this.W=!0;var En=this.j;En.g==this&&En.ba&&!En.M&&(En.j.info("Great, no buffering proxy detected. Bytes received: "+ee.length),am(En),En.M=!0,Hn(11))}}else ma(this.i,this.l,ee,null),tm(this,ee);vn==4&&ho(this),this.o&&!this.J&&(vn==4?kT(this.j,this):(this.o=!1,nf(this)))}else Gk(this.g),y==400&&0<ee.indexOf("Unknown SID")?(this.s=3,Hn(12)):(this.s=0,Hn(13)),ho(this),Hl(this)}}}catch{}finally{}};function iT(c){return c.g?c.u=="GET"&&c.L!=2&&c.j.Ca:!1}function Pk(c,m){var y=c.C,I=m.indexOf(` 29`,y);return I==-1?Qp:(y=Number(m.substring(y,I)),isNaN(y)?rT:(I+=1,I+y>m.length?Qp:(m=m.slice(I,I+y),c.C=I+y,m)))}pi.prototype.cancel=function(){this.J=!0,ho(this)};function nf(c){c.S=Date.now()+c.I,oT(c,c.I)}function oT(c,m){if(c.B!=null)throw Error("WatchDog timer not null");c.B=Fl(d(c.ba,c),m)}function em(c){c.B&&(a.clearTimeout(c.B),c.B=null)}pi.prototype.ba=function(){this.B=null;const c=Date.now();0<=c-this.S?(Rk(this.i,this.A),this.L!=2&&(Ul(),Hn(17)),ho(this),this.s=2,Hl(this)):oT(this,this.S-c)};function Hl(c){c.j.G==0||c.J||kT(c.j,c)}function ho(c){em(c);var m=c.M;m&&typeof m.ma=="function"&&m.ma(),c.M=null,di(c.U),c.g&&(m=c.g,c.g=null,m.abort(),m.ma())}function tm(c,m){try{var y=c.j;if(y.G!=0&&(y.g==c||nm(y.h,c))){if(!c.K&&nm(y.h,c)&&y.G==3){try{var I=y.Da.g.parse(m)}catch{I=null}if(Array.isArray(I)&&I.length==3){var V=I;if(V[0]==0){e:if(!y.u){if(y.g)if(y.g.F+3e3<c.F)hf(y),uf(y);else break e;om(y),Hn(18)}}else y.za=V[1],0<y.za-y.T&&37500>V[2]&&y.F&&y.v==0&&!y.C&&(y.C=Fl(d(y.Za,y),6e3));if(1>=cT(y.h)&&y.ca){try{y.ca()}catch{}y.ca=void 0}}else mo(y,11)}else if((c.K||y.g==c)&&hf(y),!O(m))for(V=y.Da.g.parse(m),m=0;m<V.length;m++){let Ke=V[m];if(y.T=Ke[0],Ke=Ke[1],y.G==2)if(Ke[0]=="c"){y.K=Ke[1],y.ia=Ke[2];const En=Ke[3];En!=null&&(y.la=En,y.j.info("VER="+y.la));const vn=Ke[4];vn!=null&&(y.Aa=vn,y.j.info("SVER="+y.Aa));const ya=Ke[5];ya!=null&&typeof ya=="number"&&0<ya&&(I=1.5*ya,y.L=I,y.j.info("backChannelRequestTimeoutMs_="+I)),I=y;const xr=c.g;if(xr){const pf=xr.g?xr.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(pf){var B=I.h;B.g||pf.indexOf("spdy")==-1&&pf.indexOf("quic")==-1&&pf.indexOf("h2")==-1||(B.j=B.l,B.g=new Set,B.h&&(rm(B,B.h),B.h=null))}if(I.D){const lm=xr.g?xr.g.getResponseHeader("X-HTTP-Session-Id"):null;lm&&(I.ya=lm,gt(I.I,I.D,lm))}}y.G=3,y.l&&y.l.ua(),y.ba&&(y.R=Date.now()-c.F,y.j.info("Handshake RTT: "+y.R+"ms")),I=y;var ee=c;if(I.qa=MT(I,I.J?I.ia:null,I.W),ee.K){uT(I.h,ee);var ut=ee,ln=I.L;ln&&(ut.I=ln),ut.B&&(em(ut),nf(ut)),I.g=ee}else OT(I);0<y.i.length&&ff(y)}else Ke[0]!="stop"&&Ke[0]!="close"||mo(y,7);else y.G==3&&(Ke[0]=="stop"||Ke[0]=="close"?Ke[0]=="stop"?mo(y,7):im(y):Ke[0]!="noop"&&y.l&&y.l.ta(Ke),y.v=0)}}Ul(4)}catch{}}var Ok=class{constructor(c,m){this.g=c,this.map=m}};function aT(c){this.l=c||10,a.PerformanceNavigationTiming?(c=a.performance.getEntriesByType("navigation"),c=0<c.length&&(c[0].nextHopProtocol=="hq"||c[0].nextHopProtocol=="h2")):c=!!(a.chrome&&a.chrome.loadTimes&&a.chrome.loadTimes()&&a.chrome.loadTimes().wasFetchedViaSpdy),this.j=c?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}function lT(c){return c.h?!0:c.g?c.g.size>=c.j:!1}function cT(c){return c.h?1:c.g?c.g.size:0}function nm(c,m){return c.h?c.h==m:c.g?c.g.has(m):!1}function rm(c,m){c.g?c.g.add(m):c.h=m}function uT(c,m){c.h&&c.h==m?c.h=null:c.g&&c.g.has(m)&&c.g.delete(m)}aT.prototype.cancel=function(){if(this.i=fT(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&this.g.size!==0){for(const c of this.g.values())c.cancel();this.g.clear()}};function fT(c){if(c.h!=null)return c.i.concat(c.h.D);if(c.g!=null&&c.g.size!==0){let m=c.i;for(const y of c.g.values())m=m.concat(y.D);return m}return _(c.i)}function Nk(c){if(c.V&&typeof c.V=="function")return c.V();if(typeof Map<"u"&&c instanceof Map||typeof Set<"u"&&c instanceof Set)return Array.from(c.values());if(typeof c=="string")return c.split("");if(l(c)){for(var m=[],y=c.length,I=0;I<y;I++)m.push(c[I]);return m}m=[],y=0;for(I in c)m[y++]=c[I];return m}function kk(c){if(c.na&&typeof c.na=="function")return c.na();if(!c.V||typeof c.V!="function"){if(typeof Map<"u"&&c instanceof Map)return Array.from(c.keys());if(!(typeof Set<"u"&&c instanceof Set)){if(l(c)||typeof c=="string"){var m=[];c=c.length;for(var y=0;y<c;y++)m.push(y);return m}m=[],y=0;for(const I in c)m[y++]=I;return m}}}function hT(c,m){if(c.forEach&&typeof c.forEach=="function")c.forEach(m,void 0);else if(l(c)||typeof c=="string")Array.prototype.forEach.call(c,m,void 0);else for(var y=kk(c),I=Nk(c),V=I.length,B=0;B<V;B++)m.call(void 0,I[B],y&&y[B],c)}var dT=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function Dk(c,m){if(c){c=c.split("&");for(var y=0;y<c.length;y++){var I=c[y].indexOf("="),V=null;if(0<=I){var B=c[y].substring(0,I);V=c[y].substring(I+1)}else B=c[y];m(B,V?decodeURIComponent(V.replace(/\+/g," ")):"")}}}function po(c){if(this.g=this.o=this.j="",this.s=null,this.m=this.l="",this.h=!1,c instanceof po){this.h=c.h,rf(this,c.j),this.o=c.o,this.g=c.g,sf(this,c.s),this.l=c.l;var m=c.i,y=new ql;y.i=m.i,m.g&&(y.g=new Map(m.g),y.h=m.h),pT(this,y),this.m=c.m}else c&&(m=String(c).match(dT))?(this.h=!1,rf(this,m[1]||"",!0),this.o=$l(m[2]||""),this.g=$l(m[3]||"",!0),sf(this,m[4]),this.l=$l(m[5]||"",!0),pT(this,m[6]||"",!0),this.m=$l(m[7]||"")):(this.h=!1,this.i=new ql(null,this.h))}po.prototype.toString=function(){var c=[],m=this.j;m&&c.push(jl(m,mT,!0),":");var y=this.g;return(y||m=="file")&&(c.push("//"),(m=this.o)&&c.push(jl(m,mT,!0),"@"),c.push(encodeURIComponent(String(y)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),y=this.s,y!=null&&c.push(":",String(y))),(y=this.l)&&(this.g&&y.charAt(0)!="/"&&c.push("/"),c.push(jl(y,y.charAt(0)=="/"?Lk:Mk,!0))),(y=this.i.toString())&&c.push("?",y),(y=this.m)&&c.push("#",jl(y,Uk)),c.join("")};function Ss(c){return new po(c)}function rf(c,m,y){c.j=y?$l(m,!0):m,c.j&&(c.j=c.j.replace(/:$/,""))}function sf(c,m){if(m){if(m=Number(m),isNaN(m)||0>m)throw Error("Bad port number "+m);c.s=m}else c.s=null}function pT(c,m,y){m instanceof ql?(c.i=m,Fk(c.i,c.h)):(y||(m=jl(m,Vk)),c.i=new ql(m,c.h))}function gt(c,m,y){c.i.set(m,y)}function of(c){return gt(c,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),c}function $l(c,m){return c?m?decodeURI(c.replace(/%25/g,"%2525")):decodeURIComponent(c):""}function jl(c,m,y){return typeof c=="string"?(c=encodeURI(c).replace(m,xk),y&&(c=c.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c):null}function xk(c){return c=c.charCodeAt(0),"%"+(c>>4&15).toString(16)+(c&15).toString(16)}var mT=/[#\/\?@]/g,Mk=/[#\?:]/g,Lk=/[#\?]/g,Vk=/[#\?@]/g,Uk=/#/g;function ql(c,m){this.h=this.g=null,this.i=c||null,this.j=!!m}function mi(c){c.g||(c.g=new Map,c.h=0,c.i&&Dk(c.i,function(m,y){c.add(decodeURIComponent(m.replace(/\+/g," ")),y)}))}t=ql.prototype,t.add=function(c,m){mi(this),this.i=null,c=ga(this,c);var y=this.g.get(c);return y||this.g.set(c,y=[]),y.push(m),this.h+=1,this};function gT(c,m){mi(c),m=ga(c,m),c.g.has(m)&&(c.i=null,c.h-=c.g.get(m).length,c.g.delete(m))}function _T(c,m){return mi(c),m=ga(c,m),c.g.has(m)}t.forEach=function(c,m){mi(this),this.g.forEach(function(y,I){y.forEach(function(V){c.call(m,V,I,this)},this)},this)},t.na=function(){mi(this);const c=Array.from(this.g.values()),m=Array.from(this.g.keys()),y=[];for(let I=0;I<m.length;I++){const V=c[I];for(let B=0;B<V.length;B++)y.push(m[I])}return y},t.V=function(c){mi(this);let m=[];if(typeof c=="string")_T(this,c)&&(m=m.concat(this.g.get(ga(this,c))));else{c=Array.from(this.g.values());for(let y=0;y<c.length;y++)m=m.concat(c[y])}return m},t.set=function(c,m){return mi(this),this.i=null,c=ga(this,c),_T(this,c)&&(this.h-=this.g.get(c).length),this.g.set(c,[m]),this.h+=1,this},t.get=function(c,m){return c?(c=this.V(c),0<c.length?String(c[0]):m):m};function yT(c,m,y){gT(c,m),0<y.length&&(c.i=null,c.g.set(ga(c,m),_(y)),c.h+=y.length)}t.toString=function(){if(this.i)return this.i;if(!this.g)return"";const c=[],m=Array.from(this.g.keys());for(var y=0;y<m.length;y++){var I=m[y];const B=encodeURIComponent(String(I)),ee=this.V(I);for(I=0;I<ee.length;I++){var V=B;ee[I]!==""&&(V+="="+encodeURIComponent(String(ee[I]))),c.push(V)}}return this.i=c.join("&")};function ga(c,m){return m=String(m),c.j&&(m=m.toLowerCase()),m}function Fk(c,m){m&&!c.j&&(mi(c),c.i=null,c.g.forEach(function(y,I){var V=I.toLowerCase();I!=V&&(gT(this,I),yT(this,V,y))},c)),c.j=m}function Bk(c,m){const y=new Bl;if(a.Image){const I=new Image;I.onload=p(gi,y,"TestLoadImage: loaded",!0,m,I),I.onerror=p(gi,y,"TestLoadImage: error",!1,m,I),I.onabort=p(gi,y,"TestLoadImage: abort",!1,m,I),I.ontimeout=p(gi,y,"TestLoadImage: timeout",!1,m,I),a.setTimeout(function(){I.ontimeout&&I.ontimeout()},1e4),I.src=c}else m(!1)}function Hk(c,m){const y=new Bl,I=new AbortController,V=setTimeout(()=>{I.abort(),gi(y,"TestPingServer: timeout",!1,m)},1e4);fetch(c,{signal:I.signal}).then(B=>{clearTimeout(V),B.ok?gi(y,"TestPingServer: ok",!0,m):gi(y,"TestPingServer: server error",!1,m)}).catch(()=>{clearTimeout(V),gi(y,"TestPingServer: error",!1,m)})}function gi(c,m,y,I,V){try{V&&(V.onload=null,V.onerror=null,V.onabort=null,V.ontimeout=null),I(y)}catch{}}function $k(){this.g=new Er}function jk(c,m,y){const I=y||"";try{hT(c,function(V,B){let ee=V;u(V)&&(ee=da(V)),m.push(I+B+"="+encodeURIComponent(ee))})}catch(V){throw m.push(I+"type="+encodeURIComponent("_badmap")),V}}function af(c){this.l=c.Ub||null,this.j=c.eb||!1}g(af,pa),af.prototype.g=function(){return new lf(this.l,this.j)},af.prototype.i=(function(c){return function(){return c}})({});function lf(c,m){pe.call(this),this.D=c,this.o=m,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}g(lf,pe),t=lf.prototype,t.open=function(c,m){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.B=c,this.A=m,this.readyState=1,Gl(this)},t.send=function(c){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.g=!0;const m={headers:this.u,method:this.B,credentials:this.m,cache:void 0};c&&(m.body=c),(this.D||a).fetch(new Request(this.A,m)).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(c){if(this.g&&(this.l=c,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=c.headers,this.readyState=2,Gl(this)),this.g&&(this.readyState=3,Gl(this),this.g)))if(this.responseType==="arraybuffer")c.arrayBuffer().then(this.Qa.bind(this),this.ga.bind(this));else if(typeof a.ReadableStream<"u"&&"body"in c){if(this.j=c.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;ET(this)}else c.text().then(this.Ra.bind(this),this.ga.bind(this))};function ET(c){c.j.read().then(c.Pa.bind(c)).catch(c.ga.bind(c))}t.Pa=function(c){if(this.g){if(this.o&&c.value)this.response.push(c.value);else if(!this.o){var m=c.value?c.value:new Uint8Array(0);(m=this.v.decode(m,{stream:!c.done}))&&(this.response=this.responseText+=m)}c.done?Wl(this):Gl(this),this.readyState==3&&ET(this)}},t.Ra=function(c){this.g&&(this.response=this.responseText=c,Wl(this))},t.Qa=function(c){this.g&&(this.response=c,Wl(this))},t.ga=function(){this.g&&Wl(this)};function Wl(c){c.readyState=4,c.l=null,c.j=null,c.v=null,Gl(c)}t.setRequestHeader=function(c,m){this.u.append(c,m)},t.getResponseHeader=function(c){return this.h&&this.h.get(c.toLowerCase())||""},t.getAllResponseHeaders=function(){if(!this.h)return"";const c=[],m=this.h.entries();for(var y=m.next();!y.done;)y=y.value,c.push(y[0]+": "+y[1]),y=m.next();return c.join(`\r 30`)};function Gl(c){c.onreadystatechange&&c.onreadystatechange.call(c)}Object.defineProperty(lf.prototype,"withCredentials",{get:function(){return this.m==="include"},set:function(c){this.m=c?"include":"same-origin"}});function vT(c){let m="";return L(c,function(y,I){m+=I,m+=":",m+=y,m+=`\r 31`}),m}function sm(c,m,y){e:{for(I in y){var I=!1;break e}I=!0}I||(y=vT(y),typeof c=="string"?y!=null&&encodeURIComponent(String(y)):gt(c,m,y))}function At(c){pe.call(this),this.headers=new Map,this.o=c||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}g(At,pe);var qk=/^https?$/i,Wk=["POST","PUT"];t=At.prototype,t.Ha=function(c){this.J=c},t.ea=function(c,m,y,I){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+c);m=m?m.toUpperCase():"GET",this.D=c,this.l="",this.m=0,this.A=!1,this.h=!0,this.g=this.o?this.o.g():Jp.g(),this.v=this.o?Ll(this.o):Ll(Jp),this.g.onreadystatechange=d(this.Ea,this);try{this.B=!0,this.g.open(m,String(c),!0),this.B=!1}catch(B){TT(this,B);return}if(c=y||"",y=new Map(this.headers),I)if(Object.getPrototypeOf(I)===Object.prototype)for(var V in I)y.set(V,I[V]);else if(typeof I.keys=="function"&&typeof I.get=="function")for(const B of I.keys())y.set(B,I.get(B));else throw Error("Unknown input type for opt_headers: "+String(I));I=Array.from(y.keys()).find(B=>B.toLowerCase()=="content-type"),V=a.FormData&&c instanceof a.FormData,!(0<=Array.prototype.indexOf.call(Wk,m,void 0))||I||V||y.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[B,ee]of y)this.g.setRequestHeader(B,ee);this.H&&(this.g.responseType=this.H),"withCredentials"in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{ST(this),this.u=!0,this.g.send(c),this.u=!1}catch(B){TT(this,B)}};function TT(c,m){c.h=!1,c.g&&(c.j=!0,c.g.abort(),c.j=!1),c.l=m,c.m=5,wT(c),cf(c)}function wT(c){c.A||(c.A=!0,Se(c,"complete"),Se(c,"error"))}t.abort=function(c){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=c||7,Se(this,"complete"),Se(this,"abort"),cf(this))},t.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),cf(this,!0)),At.aa.N.call(this)},t.Ea=function(){this.s||(this.B||this.u||this.j?bT(this):this.bb())},t.bb=function(){bT(this)};function bT(c){if(c.h&&typeof o<"u"&&(!c.v[1]||Is(c)!=4||c.Z()!=2)){if(c.u&&Is(c)==4)ze(c.Ea,0,c);else if(Se(c,"readystatechange"),Is(c)==4){c.h=!1;try{const ee=c.Z();e:switch(ee){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var m=!0;break e;default:m=!1}var y;if(!(y=m)){var I;if(I=ee===0){var V=String(c.D).match(dT)[1]||null;!V&&a.self&&a.self.location&&(V=a.self.location.protocol.slice(0,-1)),I=!qk.test(V?V.toLowerCase():"")}y=I}if(y)Se(c,"complete"),Se(c,"success");else{c.m=6;try{var B=2<Is(c)?c.g.statusText:""}catch{B=""}c.l=B+" ["+c.Z()+"]",wT(c)}}finally{cf(c)}}}}function cf(c,m){if(c.g){ST(c);const y=c.g,I=c.v[0]?()=>{}:null;c.g=null,c.v=null,m||Se(c,"ready");try{y.onreadystatechange=I}catch{}}}function ST(c){c.I&&(a.clearTimeout(c.I),c.I=null)}t.isActive=function(){return!!this.g};function Is(c){return c.g?c.g.readyState:0}t.Z=function(){try{return 2<Is(this)?this.g.status:-1}catch{return-1}},t.oa=function(){try{return this.g?this.g.responseText:""}catch{return""}},t.Oa=function(c){if(this.g){var m=this.g.responseText;return c&&m.indexOf(c)==0&&(m=m.substring(c.length)),Bn(m)}};function IT(c){try{if(!c.g)return null;if("response"in c.g)return c.g.response;switch(c.H){case"":case"text":return c.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in c.g)return c.g.mozResponseArrayBuffer}return null}catch{return null}}function Gk(c){const m={};c=(c.g&&2<=Is(c)&&c.g.getAllResponseHeaders()||"").split(`\r 32`);for(let I=0;I<c.length;I++){if(O(c[I]))continue;var y=k(c[I]);const V=y[0];if(y=y[1],typeof y!="string")continue;y=y.trim();const B=m[V]||[];m[V]=B,B.push(y)}R(m,function(I){return I.join(", ")})}t.Ba=function(){return this.m},t.Ka=function(){return typeof this.l=="string"?this.l:String(this.l)};function Yl(c,m,y){return y&&y.internalChannelParams&&y.internalChannelParams[c]||m}function AT(c){this.Aa=0,this.i=[],this.j=new Bl,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=Yl("failFast",!1,c),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=Yl("baseRetryDelayMs",5e3,c),this.cb=Yl("retryDelaySeedMs",1e4,c),this.Wa=Yl("forwardChannelMaxRetries",2,c),this.wa=Yl("forwardChannelRequestTimeoutMs",2e4,c),this.pa=c&&c.xmlHttpFactory||void 0,this.Xa=c&&c.Tb||void 0,this.Ca=c&&c.useFetchStreams||!1,this.L=void 0,this.J=c&&c.supportsCrossDomainXhr||!1,this.K="",this.h=new aT(c&&c.concurrentRequestLimit),this.Da=new $k,this.P=c&&c.fastHandshake||!1,this.O=c&&c.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.Ua=c&&c.Rb||!1,c&&c.xa&&this.j.xa(),c&&c.forceLongPolling&&(this.X=!1),this.ba=!this.P&&this.X&&c&&c.detectBufferingProxy||!1,this.ja=void 0,c&&c.longPollingTimeout&&0<c.longPollingTimeout&&(this.ja=c.longPollingTimeout),this.ca=void 0,this.R=0,this.M=!1,this.ka=this.A=null}t=AT.prototype,t.la=8,t.G=1,t.connect=function(c,m,y,I){Hn(0),this.W=c,this.H=m||{},y&&I!==void 0&&(this.H.OSID=y,this.H.OAID=I),this.F=this.X,this.I=MT(this,null,this.W),ff(this)};function im(c){if(RT(c),c.G==3){var m=c.U++,y=Ss(c.I);if(gt(y,"SID",c.K),gt(y,"RID",m),gt(y,"TYPE","terminate"),zl(c,y),m=new pi(c,c.j,m),m.L=2,m.v=of(Ss(y)),y=!1,a.navigator&&a.navigator.sendBeacon)try{y=a.navigator.sendBeacon(m.v.toString(),"")}catch{}!y&&a.Image&&(new Image().src=m.v,y=!0),y||(m.g=LT(m.j,null),m.g.ea(m.v)),m.F=Date.now(),nf(m)}xT(c)}function uf(c){c.g&&(am(c),c.g.cancel(),c.g=null)}function RT(c){uf(c),c.u&&(a.clearTimeout(c.u),c.u=null),hf(c),c.h.cancel(),c.s&&(typeof c.s=="number"&&a.clearTimeout(c.s),c.s=null)}function ff(c){if(!lT(c.h)&&!c.s){c.s=!0;var m=c.Ga;ne||lt(),J||(ne(),J=!0),Ue.add(m,c),c.B=0}}function Yk(c,m){return cT(c.h)>=c.h.j-(c.s?1:0)?!1:c.s?(c.i=m.D.concat(c.i),!0):c.G==1||c.G==2||c.B>=(c.Va?0:c.Wa)?!1:(c.s=Fl(d(c.Ga,c,m),DT(c,c.B)),c.B++,!0)}t.Ga=function(c){if(this.s)if(this.s=null,this.G==1){if(!c){this.U=Math.floor(1e5*Math.random()),c=this.U++;const V=new pi(this,this.j,c);let B=this.o;if(this.S&&(B?(B=w(B),b(B,this.S)):B=this.S),this.m!==null||this.O||(V.H=B,B=null),this.P)e:{for(var m=0,y=0;y<this.i.length;y++){t:{var I=this.i[y];if("__data__"in I.map&&(I=I.map.__data__,typeof I=="string")){I=I.length;break t}I=void 0}if(I===void 0)break;if(m+=I,4096<m){m=y;break e}if(m===4096||y===this.i.length-1){m=y+1;break e}}m=1e3}else m=1e3;m=PT(this,V,m),y=Ss(this.I),gt(y,"RID",c),gt(y,"CVER",22),this.D&>(y,"X-HTTP-Session-Id",this.D),zl(this,y),B&&(this.O?m="headers="+encodeURIComponent(String(vT(B)))+"&"+m:this.m&&sm(y,this.m,B)),rm(this.h,V),this.Ua&>(y,"TYPE","init"),this.P?(gt(y,"$req",m),gt(y,"SID","null"),V.T=!0,Zp(V,y,null)):Zp(V,y,m),this.G=2}}else this.G==3&&(c?CT(this,c):this.i.length==0||lT(this.h)||CT(this))};function CT(c,m){var y;m?y=m.l:y=c.U++;const I=Ss(c.I);gt(I,"SID",c.K),gt(I,"RID",y),gt(I,"AID",c.T),zl(c,I),c.m&&c.o&&sm(I,c.m,c.o),y=new pi(c,c.j,y,c.B+1),c.m===null&&(y.H=c.o),m&&(c.i=m.D.concat(c.i)),m=PT(c,y,1e3),y.I=Math.round(.5*c.wa)+Math.round(.5*c.wa*Math.random()),rm(c.h,y),Zp(y,I,m)}function zl(c,m){c.H&&L(c.H,function(y,I){gt(m,I,y)}),c.l&&hT({},function(y,I){gt(m,I,y)})}function PT(c,m,y){y=Math.min(c.i.length,y);var I=c.l?d(c.l.Na,c.l,c):null;e:{var V=c.i;let B=-1;for(;;){const ee=["count="+y];B==-1?0<y?(B=V[0].g,ee.push("ofs="+B)):B=0:ee.push("ofs="+B);let ut=!0;for(let ln=0;ln<y;ln++){let Ke=V[ln].g;const En=V[ln].map;if(Ke-=B,0>Ke)B=Math.max(0,V[ln].g-100),ut=!1;else try{jk(En,ee,"req"+Ke+"_")}catch{I&&I(En)}}if(ut){I=ee.join("&");break e}}}return c=c.i.splice(0,y),m.D=c,I}function OT(c){if(!c.g&&!c.u){c.Y=1;var m=c.Fa;ne||lt(),J||(ne(),J=!0),Ue.add(m,c),c.v=0}}function om(c){return c.g||c.u||3<=c.v?!1:(c.Y++,c.u=Fl(d(c.Fa,c),DT(c,c.v)),c.v++,!0)}t.Fa=function(){if(this.u=null,NT(this),this.ba&&!(this.M||this.g==null||0>=this.R)){var c=2*this.R;this.j.info("BP detection timer enabled: "+c),this.A=Fl(d(this.ab,this),c)}},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,Hn(10),uf(this),NT(this))};function am(c){c.A!=null&&(a.clearTimeout(c.A),c.A=null)}function NT(c){c.g=new pi(c,c.j,"rpc",c.Y),c.m===null&&(c.g.H=c.o),c.g.O=0;var m=Ss(c.qa);gt(m,"RID","rpc"),gt(m,"SID",c.K),gt(m,"AID",c.T),gt(m,"CI",c.F?"0":"1"),!c.F&&c.ja&>(m,"TO",c.ja),gt(m,"TYPE","xmlhttp"),zl(c,m),c.m&&c.o&&sm(m,c.m,c.o),c.L&&(c.g.I=c.L);var y=c.g;c=c.ia,y.L=1,y.v=of(Ss(m)),y.m=null,y.P=!0,sT(y,c)}t.Za=function(){this.C!=null&&(this.C=null,uf(this),om(this),Hn(19))};function hf(c){c.C!=null&&(a.clearTimeout(c.C),c.C=null)}function kT(c,m){var y=null;if(c.g==m){hf(c),am(c),c.g=null;var I=2}else if(nm(c.h,m))y=m.D,uT(c.h,m),I=1;else return;if(c.G!=0){if(m.o)if(I==1){y=m.m?m.m.length:0,m=Date.now()-m.F;var V=c.B;I=Zu(),Se(I,new eT(I,y)),ff(c)}else OT(c);else if(V=m.s,V==3||V==0&&0<m.X||!(I==1&&Yk(c,m)||I==2&&om(c)))switch(y&&0<y.length&&(m=c.h,m.i=m.i.concat(y)),V){case 1:mo(c,5);break;case 4:mo(c,10);break;case 3:mo(c,6);break;default:mo(c,2)}}}function DT(c,m){let y=c.Ta+Math.floor(Math.random()*c.cb);return c.isActive()||(y*=2),y*m}function mo(c,m){if(c.j.info("Error code "+m),m==2){var y=d(c.fb,c),I=c.Xa;const V=!I;I=new po(I||"//www.google.com/images/cleardot.gif"),a.location&&a.location.protocol=="http"||rf(I,"https"),of(I),V?Bk(I.toString(),y):Hk(I.toString(),y)}else Hn(2);c.G=0,c.l&&c.l.sa(m),xT(c),RT(c)}t.fb=function(c){c?(this.j.info("Successfully pinged google.com"),Hn(2)):(this.j.info("Failed to ping google.com"),Hn(1))};function xT(c){if(c.G=0,c.ka=[],c.l){const m=fT(c.h);(m.length!=0||c.i.length!=0)&&(v(c.ka,m),v(c.ka,c.i),c.h.i.length=0,_(c.i),c.i.length=0),c.l.ra()}}function MT(c,m,y){var I=y instanceof po?Ss(y):new po(y);if(I.g!="")m&&(I.g=m+"."+I.g),sf(I,I.s);else{var V=a.location;I=V.protocol,m=m?m+"."+V.hostname:V.hostname,V=+V.port;var B=new po(null);I&&rf(B,I),m&&(B.g=m),V&&sf(B,V),y&&(B.l=y),I=B}return y=c.D,m=c.ya,y&&m&>(I,y,m),gt(I,"VER",c.la),zl(c,I),I}function LT(c,m,y){if(m&&!c.J)throw Error("Can't create secondary domain capable XhrIo object.");return m=c.Ca&&!c.pa?new At(new af({eb:y})):new At(c.pa),m.Ha(c.J),m}t.isActive=function(){return!!this.l&&this.l.isActive(this)};function VT(){}t=VT.prototype,t.ua=function(){},t.ta=function(){},t.sa=function(){},t.ra=function(){},t.isActive=function(){return!0},t.Na=function(){};function df(){}df.prototype.g=function(c,m){return new cr(c,m)};function cr(c,m){pe.call(this),this.g=new AT(m),this.l=c,this.h=m&&m.messageUrlParams||null,c=m&&m.messageHeaders||null,m&&m.clientProtocolHeaderRequired&&(c?c["X-Client-Protocol"]="webchannel":c={"X-Client-Protocol":"webchannel"}),this.g.o=c,c=m&&m.initMessageHeaders||null,m&&m.messageContentType&&(c?c["X-WebChannel-Content-Type"]=m.messageContentType:c={"X-WebChannel-Content-Type":m.messageContentType}),m&&m.va&&(c?c["X-WebChannel-Client-Profile"]=m.va:c={"X-WebChannel-Client-Profile":m.va}),this.g.S=c,(c=m&&m.Sb)&&!O(c)&&(this.g.m=c),this.v=m&&m.supportsCrossDomainXhr||!1,this.u=m&&m.sendRawJson||!1,(m=m&&m.httpSessionIdParam)&&!O(m)&&(this.g.D=m,c=this.h,c!==null&&m in c&&(c=this.h,m in c&&delete c[m])),this.j=new _a(this)}g(cr,pe),cr.prototype.m=function(){this.g.l=this.j,this.v&&(this.g.J=!0),this.g.connect(this.l,this.h||void 0)},cr.prototype.close=function(){im(this.g)},cr.prototype.o=function(c){var m=this.g;if(typeof c=="string"){var y={};y.__data__=c,c=y}else this.u&&(y={},y.__data__=da(c),c=y);m.i.push(new Ok(m.Ya++,c)),m.G==3&&ff(m)},cr.prototype.N=function(){this.g.l=null,delete this.j,im(this.g),delete this.g,cr.aa.N.call(this)};function UT(c){Kp.call(this),c.__headers__&&(this.headers=c.__headers__,this.statusCode=c.__status__,delete c.__headers__,delete c.__status__);var m=c.__sm__;if(m){e:{for(const y in m){c=y;break e}c=void 0}(this.i=c)&&(c=this.i,m=m!==null&&c in m?m[c]:void 0),this.data=m}else this.data=c}g(UT,Kp);function FT(){Xp.call(this),this.status=1}g(FT,Xp);function _a(c){this.g=c}g(_a,VT),_a.prototype.ua=function(){Se(this.g,"a")},_a.prototype.ta=function(c){Se(this.g,new UT(c))},_a.prototype.sa=function(c){Se(this.g,new FT)},_a.prototype.ra=function(){Se(this.g,"b")},df.prototype.createWebChannel=df.prototype.g,cr.prototype.send=cr.prototype.o,cr.prototype.open=cr.prototype.m,cr.prototype.close=cr.prototype.close,h1=function(){return new df},f1=function(){return Zu()},u1=fo,n_={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},ef.NO_ERROR=0,ef.TIMEOUT=8,ef.HTTP_ERROR=6,th=ef,tT.COMPLETE="complete",c1=tT,Xv.EventType=Vl,Vl.OPEN="a",Vl.CLOSE="b",Vl.ERROR="c",Vl.MESSAGE="d",pe.prototype.listen=pe.prototype.K,lc=Xv,At.prototype.listenOnce=At.prototype.L,At.prototype.getLastError=At.prototype.Ka,At.prototype.getLastErrorCode=At.prototype.Ba,At.prototype.getStatus=At.prototype.Z,At.prototype.getResponseJson=At.prototype.Oa,At.prototype.getResponseText=At.prototype.oa,At.prototype.send=At.prototype.ea,At.prototype.setWithCredentials=At.prototype.Ha,l1=At}).apply(typeof Nf<"u"?Nf:typeof self<"u"?self:typeof window<"u"?window:{});const Z0="@firebase/firestore",eb="4.7.16";class In{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}}In.UNAUTHENTICATED=new In(null),In.GOOGLE_CREDENTIALS=new In("google-credentials-uid"),In.FIRST_PARTY=new In("first-party-uid"),In.MOCK_USER=new In("mock-user");let Al="11.8.1";const Jo=new Hy("@firebase/firestore");function Ra(){return Jo.logLevel}function ce(t,...e){if(Jo.logLevel<=He.DEBUG){const n=e.map(nE);Jo.debug(`Firestore (${Al}): ${t}`,...n)}}function ri(t,...e){if(Jo.logLevel<=He.ERROR){const n=e.map(nE);Jo.error(`Firestore (${Al}): ${t}`,...n)}}function rl(t,...e){if(Jo.logLevel<=He.WARN){const n=e.map(nE);Jo.warn(`Firestore (${Al}): ${t}`,...n)}}function nE(t){if(typeof t=="string")return t;try{return(function(n){return JSON.stringify(n)})(t)}catch{return t}}function Ie(t,e,n){let r="Unexpected state";
32typeof e=="string"?r=e:n=e,d1(t,r,n)}function d1(t,e,n){let r=`FIRESTORE (${Al}) INTERNAL ASSERTION FAILED: ${e} (ID: ${t.toString(16)})`;if(n!==void 0)try{r+=" CONTEXT: "+JSON.stringify(n)}catch{r+=" CONTEXT: "+n}throw ri(r),new Error(r)}function it(t,e,n,r){let s="Unexpected state";typeof n=="string"?s=n:r=n,t||d1(e,s,r)}function De(t,e){return t}const j={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"};let le=class extends Ts{constructor(e,n){super(e,n),this.code=e,this.message=n,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}};class Ws{constructor(){this.promise=new Promise(((e,n)=>{this.resolve=e,this.reject=n}))}}class p1{constructor(e,n){this.user=n,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${e}`)}}class F${getToken(){return Promise.resolve(null)}invalidateToken(){}start(e,n){e.enqueueRetryable((()=>n(In.UNAUTHENTICATED)))}shutdown(){}}class B${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 H${constructor(e){this.t=e,this.currentUser=In.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(e,n){it(this.o===void 0,42304);let r=this.i;const s=l=>this.i!==r?(r=this.i,n(l)):Promise.resolve();let i=new Ws;this.o=()=>{this.i++,this.currentUser=this.u(),i.resolve(),i=new Ws,e.enqueueRetryable((()=>s(this.currentUser)))};const o=()=>{const l=i;e.enqueueRetryable((async()=>{await l.promise,await s(this.currentUser)}))},a=l=>{ce("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=l,this.o&&(this.auth.addAuthTokenListener(this.o),o())};this.t.onInit((l=>a(l))),setTimeout((()=>{if(!this.auth){const l=this.t.getImmediate({optional:!0});l?a(l):(ce("FirebaseAuthCredentialsProvider","Auth not yet detected"),i.resolve(),i=new Ws)}}),0),o()}getToken(){const e=this.i,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then((r=>this.i!==e?(ce("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):r?(it(typeof r.accessToken=="string",31837,{l:r}),new p1(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 it(e===null||typeof e=="string",2055,{h:e}),new In(e)}}class $${constructor(e,n,r){this.P=e,this.T=n,this.I=r,this.type="FirstParty",this.user=In.FIRST_PARTY,this.A=new Map}R(){return this.I?this.I():null}get headers(){this.A.set("X-Goog-AuthUser",this.P);const e=this.R();return e&&this.A.set("Authorization",e),this.T&&this.A.set("X-Goog-Iam-Authorization-Token",this.T),this.A}}class j${constructor(e,n,r){this.P=e,this.T=n,this.I=r}getToken(){return Promise.resolve(new $$(this.P,this.T,this.I))}start(e,n){e.enqueueRetryable((()=>n(In.FIRST_PARTY)))}shutdown(){}invalidateToken(){}}class tb{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 q${constructor(e,n){this.V=n,this.forceRefresh=!1,this.appCheck=null,this.m=null,this.p=null,Yn(e)&&e.settings.appCheckToken&&(this.p=e.settings.appCheckToken)}start(e,n){it(this.o===void 0,3512);const r=i=>{i.error!=null&&ce("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${i.error.message}`);const o=i.token!==this.m;return this.m=i.token,ce("FirebaseAppCheckTokenProvider",`Received ${o?"new":"existing"} token.`),o?n(i.token):Promise.resolve()};this.o=i=>{e.enqueueRetryable((()=>r(i)))};const s=i=>{ce("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=i,this.o&&this.appCheck.addTokenListener(this.o)};this.V.onInit((i=>s(i))),setTimeout((()=>
32{if(!this.appCheck){const i=this.V.getImmediate({optional:!0});i?s(i):ce("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}}),0)}getToken(){if(this.p)return Promise.resolve(new tb(this.p));const e=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(e).then((n=>n?(it(typeof n.token=="string",44558,{tokenResult:n}),this.m=n.token,new tb(n.token)):null)):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.o&&this.appCheck.removeTokenListener(this.o),this.o=void 0}}function W$(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}function m1(){return new TextEncoder}class g1{static newId(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=62*Math.floor(4.129032258064516);let r="";for(;r.length<20;){const s=W$(40);for(let i=0;i<s.length;++i)r.length<20&&s[i]<n&&(r+=e.charAt(s[i]%62))}return r}}function Le(t,e){return t<e?-1:t>e?1:0}function r_(t,e){let n=0;for(;n<t.length&&n<e.length;){const r=t.codePointAt(n),s=e.codePointAt(n);if(r!==s){if(r<128&&s<128)return Le(r,s);{const i=m1(),o=G$(i.encode(nb(t,n)),i.encode(nb(e,n)));return o!==0?o:Le(r,s)}}n+=r>65535?2:1}return Le(t.length,e.length)}function nb(t,e){return t.codePointAt(e)>65535?t.substring(e,e+2):t.substring(e,e+1)}function G$(t,e){for(let n=0;n<t.length&&n<e.length;++n)if(t[n]!==e[n])return Le(t[n],e[n]);return Le(t.length,e.length)}function sl(t,e,n){return t.length===e.length&&t.every(((r,s)=>n(r,e[s])))}const rb=-62135596800,sb=1e6;class Gt{static now(){return Gt.fromMillis(Date.now())}static fromDate(e){return Gt.fromMillis(e.getTime())}static fromMillis(e){const n=Math.floor(e/1e3),r=Math.floor((e-1e3*n)*sb);return new Gt(n,r)}constructor(e,n){if(this.seconds=e,this.nanoseconds=n,n<0)throw new le(j.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+n);if(n>=1e9)throw new le(j.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+n);if(e<rb)throw new le(j.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new le(j.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/sb}_compareTo(e){return this.seconds===e.seconds?Le(this.nanoseconds,e.nanoseconds):Le(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-rb;return String(e).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}}class Oe{static fromTimestamp(e){return new Oe(e)}static min(){return new Oe(new Gt(0,0))}static max(){return new Oe(new Gt(253402300799,999999999))}constructor(e){this.timestamp=e}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}}const ib="__name__";class is{constructor(e,n,r){n===void 0?n=0:n>e.length&&Ie(637,{offset:n,range:e.length}),r===void 0?r=e.length-n:r>e.length-n&&Ie(1746,{length:r,range:e.length-n}),this.segments=e,this.offset=n,this.len=r}get length(){return this.len}isEqual(e){return is.comparator(this,e)===0}child(e){const n=this.segments.slice(this.offset,this.limit());return e instanceof is?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 s=0;s<r;s++){const i=is.compareSegments(e.get(s),n.get(s));if(i!==0)return i}return Le(e.length,n.length)}static compareSegments(e,n){const r=is.isNumericId(e),s=is.isNumericId(n);return r&&!s?-1:!r&&s?1:r&&s?is.extractNumericId(e).compare(is.extractNumericId(n)):r_(e,n)}static isNumericId(e){return e.startsWith("__id")&&e.endsWith("__")}static extractNumericId(e){return $i.fromString(e.substring(4,e.length-2))}}class _t extends is{construct(e,n,r){return new _t(e,n,r)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}
32toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(...e){const n=[];for(const r of e){if(r.indexOf("//")>=0)throw new le(j.INVALID_ARGUMENT,`Invalid segment (${r}). Paths must not contain // in them.`);n.push(...r.split("/").filter((s=>s.length>0)))}return new _t(n)}static emptyPath(){return new _t([])}}const Y$=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class pn extends is{construct(e,n,r){return new pn(e,n,r)}static isValidIdentifier(e){return Y$.test(e)}canonicalString(){return this.toArray().map((e=>(e=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),pn.isValidIdentifier(e)||(e="`"+e+"`"),e))).join(".")}toString(){return this.canonicalString()}isKeyField(){return this.length===1&&this.get(0)===ib}static keyField(){return new pn([ib])}static fromServerFormat(e){const n=[];let r="",s=0;const i=()=>{if(r.length===0)throw new le(j.INVALID_ARGUMENT,`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);n.push(r),r=""};let o=!1;for(;s<e.length;){const a=e[s];if(a==="\\"){if(s+1===e.length)throw new le(j.INVALID_ARGUMENT,"Path has trailing escape character: "+e);const l=e[s+1];if(l!=="\\"&&l!=="."&&l!=="`")throw new le(j.INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);r+=l,s+=2}else a==="`"?(o=!o,s++):a!=="."||o?(r+=a,s++):(i(),s++)}if(i(),o)throw new le(j.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new pn(n)}static emptyPath(){return new pn([])}}class we{constructor(e){this.path=e}static fromPath(e){return new we(_t.fromString(e))}static fromName(e){return new we(_t.fromString(e).popFirst(5))}static empty(){return new we(_t.emptyPath())}get collectionGroup(){return this.path.popLast().lastSegment()}hasCollectionId(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(e){return e!==null&&_t.comparator(this.path,e.path)===0}toString(){return this.path.toString()}static comparator(e,n){return _t.comparator(e.path,n.path)}static isDocumentKey(e){return e.length%2==0}static fromSegments(e){return new we(new _t(e.slice()))}}const Qc=-1;function z$(t,e){const n=t.toTimestamp().seconds,r=t.toTimestamp().nanoseconds+1,s=Oe.fromTimestamp(r===1e9?new Gt(n+1,0):new Gt(n,r));return new Ki(s,we.empty(),e)}function K$(t){return new Ki(t.readTime,t.key,Qc)}class Ki{constructor(e,n,r){this.readTime=e,this.documentKey=n,this.largestBatchId=r}static min(){return new Ki(Oe.min(),we.empty(),Qc)}static max(){return new Ki(Oe.max(),we.empty(),Qc)}}function X$(t,e){let n=t.readTime.compareTo(e.readTime);return n!==0?n:(n=we.comparator(t.documentKey,e.documentKey),n!==0?n:Le(t.largestBatchId,e.largestBatchId))}const J$="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class Q${constructor(){this.onCommittedListeners=[]}addOnCommittedListener(e){this.onCommittedListeners.push(e)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach((e=>e()))}}async function Rl(t){if(t.code!==j.FAILED_PRECONDITION||t.message!==J$)throw t;ce("LocalStore","Unexpectedly lost primary lease")}class q{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&&Ie(59440),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(n,this.error):this.wrapSuccess(e,this.result):new q(((r,s)=>{this.nextCallback=i=>{this.wrapSuccess(e,i).next(r,s)},this.catchCallback=i=>{this.wrapFailure(n,i).next(r,s)}}))}toPromise(){return new Promise(((e,n)=>{this.next(e,n)}))}wrapUserFunction(e){try{const n=e();return n instanceof q?n:q.resolve(n)}catch(n){return q.reject(n)}}wrapSuccess(e,n){return e?this.wrapUserFunction((()=>e(n))):q.resolve(n)}wrapFailure(e,n){return e?this.wrapUserFunction((()=>e(n))):q.reject(n)}static resolve(e){return new q(((n,r)=>{n(e)}))}static reject(e){return new q(((n,r)=>{r(e)}))}static waitFor(e){return new q(((n,r)=>{let s=0,i=0,o=!1;e.forEach((a=>{++s,a.next((()=>{++i,o&&i===s&&n()}),(l=>r(l)))})),o=!0,i===s&&n()}))}static or(e){let n=q.resolve(!1);for(const r of e)n=n.next((s=>s?q.resolve(s):r()));return n}static forEach(e,n){const r=[];return e.forEach(((s,i)=>{r.push(n.call(this,s,i))})),this.waitFor(r)}static mapArray(e,n){return new q(((r,s)=>{const i=e.length,o=new Array(i);let a=0;for(let l=0;l<i;l++){const u=l;n(e[u]).next((f=>{o[u]=f,++a,a===i&&r(o)}),(f=>s(f)))}}))}static doWhile(e,n){return new q(((r,s)=>{const i=()=>{e()===!0?n().next((()=>{i()}),s):r()};i()}))}}function Z$(t){const e=t.match(/Android ([\d.]+)/i),n=e?e[1].split(".").slice(0,2).join("."):"-1";return Number(n)}function Cl(t){return t.name==="IndexedDbTransactionError"}class Jd{constructor(e,n){this.previousValue=e,n&&(n.sequenceNumberHandler=r=>this.ue(r),this.ce=r=>n.writeSequenceNumber(r))}ue(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue}next(){const e=++this.previousValue;return this.ce&&this.ce(e),e}}Jd.le=-1;const rE=-1;function Qd(t){return t==null}
32function zh(t){return t===0&&1/t==-1/0}function ej(t){return typeof t=="number"&&Number.isInteger(t)&&!zh(t)&&t<=Number.MAX_SAFE_INTEGER&&t>=Number.MIN_SAFE_INTEGER}const _1="�";function tj(t){let e="";for(let n=0;n<t.length;n++)e.length>0&&(e=ob(e)),e=nj(t.get(n),e);return ob(e)}function nj(t,e){let n=e;const r=t.length;for(let s=0;s<r;s++){const i=t.charAt(s);switch(i){case"\0":n+="��";break;case _1:n+="��";break;default:n+=i}}return n}function ob(t){return t+_1+"�"}function ab(t){let e=0;for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}function lo(t,e){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])}function y1(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}class It{constructor(e,n){this.comparator=e,this.root=n||fn.EMPTY}insert(e,n){return new It(this.comparator,this.root.insert(e,n,this.comparator).copy(null,null,fn.BLACK,null,null))}remove(e){return new It(this.comparator,this.root.remove(e,this.comparator).copy(null,null,fn.BLACK,null,null))}get(e){let n=this.root;for(;!n.isEmpty();){const r=this.comparator(e,n.key);if(r===0)return n.value;r<0?n=n.left:r>0&&(n=n.right)}return null}indexOf(e){let n=0,r=this.root;for(;!r.isEmpty();){const s=this.comparator(e,r.key);if(s===0)return n+r.left.size;s<0?r=r.left:(n+=r.left.size+1,r=r.right)}return-1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(e){return this.root.inorderTraversal(e)}forEach(e){this.inorderTraversal(((n,r)=>(e(n,r),!1)))}toString(){const e=[];return this.inorderTraversal(((n,r)=>(e.push(`${n}:${r}`),!1))),`{${e.join(", ")}}`}reverseTraversal(e){return this.root.reverseTraversal(e)}getIterator(){return new kf(this.root,null,this.comparator,!1)}getIteratorFrom(e){return new kf(this.root,e,this.comparator,!1)}getReverseIterator(){return new kf(this.root,null,this.comparator,!0)}getReverseIteratorFrom(e){return new kf(this.root,e,this.comparator,!0)}}class kf{constructor(e,n,r,s){this.isReverse=s,this.nodeStack=[];let i=1;for(;!e.isEmpty();)if(i=n?r(e.key,n):1,n&&s&&(i*=-1),i<0)e=this.isReverse?e.left:e.right;else{if(i===0){this.nodeStack.push(e);break}this.nodeStack.push(e),e=this.isReverse?e.right:e.left}}getNext(){let e=this.nodeStack.pop();const n={key:e.key,value:e.value};if(this.isReverse)for(e=e.left;!e.isEmpty();)this.nodeStack.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack.push(e),e=e.left;return n}hasNext(){return this.nodeStack.length>0}peek(){if(this.nodeStack.length===0)return null;const e=this.nodeStack[this.nodeStack.length-1];return{key:e.key,value:e.value}}}class fn{constructor(e,n,r,s,i){this.key=e,this.value=n,this.color=r??fn.RED,this.left=s??fn.EMPTY,this.right=i??fn.EMPTY,this.size=this.left.size+1+this.right.size}copy(e,n,r,s,i){return new fn(e??this.key,n??this.value,r??this.color,s??this.left,i??this.right)}isEmpty(){return!1}inorderTraversal(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)}reverseTraversal(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}min(){return this.left.isEmpty()?this:this.left.min()}minKey(){return this.min().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(e,n,r){let s=this;const i=r(e,s.key);return s=i<0?s.copy(null,null,null,s.left.insert(e,n,r),null):i===0?s.copy(null,n,null,null,null):s.copy(null,null,null,null,s.right.insert(e,n,r)),s.fixUp()}removeMin(){if(this.left.isEmpty())return fn.EMPTY;let e=this;return e.left.isRed()||e.left.left.isRed()||(e=e.moveRedLeft()),e=e.copy(null,null,null,e.left.removeMin(),null),e.fixUp()}remove(e,n){let r,s=this;if(n(e,s.key)<0)s.left.isEmpty()||s.left.isRed()||s.left.left.isRed()||(s=s.moveRedLeft()),s=s.copy(null,null,null,s.left.remove(e,n),null);else{if(s.left.isRed()&&(s=s.rotateRight()),s.right.isEmpty()||s.right.isRed()||s.right.left.isRed()||(s=s.moveRedRight()),n(e,s.key)===0){if(s.right.isEmpty())return fn.EMPTY;r=s.right.min(),s=s.copy(r.key,r.value,null,null,s.right.removeMin())}s=s.copy(null,null,null,null,s.right.remove(e,n))}return s.fixUp()}isRed(){return this.color}fixUp(){let e=this;return e.right.isRed()&&!e.left.isRed()&&(e=e.rotateLeft()),e.left.isRed()&&e.left.left.isRed()&&(e=e.rotateRight()),e.left.isRed()&&e.right.isRed()&&(e=e.colorFlip()),e}moveRedLeft(){let e=this.colorFlip();return e.right.left.isRed()&&(e=e.copy(null,null,null,null,e.right.rotateRight()),e=e.rotateLeft(),e=e.colorFlip()),e}moveRedRight(){let e=this.colorFlip();return e.left.left.isRed()&&(e=e.rotateRight(),e=e.colorFlip()),e}rotateLeft(){const e=this.copy(null,null,fn.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight(){const e=this.copy(null,null,fn.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())throw Ie(43730,{key:this.key,value:this.value});if(this.right.isRed())throw Ie(14113,{key:this.key,value:this.value});const e=this.left.check();if(e!==this.right.check())throw Ie(27949);return e+(this.isRed()?0:1)}}fn.EMPTY=null,fn.RED=!0,fn.BLACK=!1;
32fn.EMPTY=new class{constructor(){this.size=0}get key(){throw Ie(57766)}get value(){throw Ie(16141)}get color(){throw Ie(16727)}get left(){throw Ie(29726)}get right(){throw Ie(36894)}copy(e,n,r,s,i){return this}insert(e,n,r){return new fn(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}};class Yt{constructor(e){this.comparator=e,this.data=new It(this.comparator)}has(e){return this.data.get(e)!==null}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(e){return this.data.indexOf(e)}forEach(e){this.data.inorderTraversal(((n,r)=>(e(n),!1)))}forEachInRange(e,n){const r=this.data.getIteratorFrom(e[0]);for(;r.hasNext();){const s=r.getNext();if(this.comparator(s.key,e[1])>=0)return;n(s.key)}}forEachWhile(e,n){let r;for(r=n!==void 0?this.data.getIteratorFrom(n):this.data.getIterator();r.hasNext();)if(!e(r.getNext().key))return}firstAfterOrEqual(e){const n=this.data.getIteratorFrom(e);return n.hasNext()?n.getNext().key:null}getIterator(){return new lb(this.data.getIterator())}getIteratorFrom(e){return new lb(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 Yt)||this.size!==e.size)return!1;const n=this.data.getIterator(),r=e.data.getIterator();for(;n.hasNext();){const s=n.getNext().key,i=r.getNext().key;if(this.comparator(s,i)!==0)return!1}return!0}toArray(){const e=[];return this.forEach((n=>{e.push(n)})),e}toString(){const e=[];return this.forEach((n=>e.push(n))),"SortedSet("+e.toString()+")"}copy(e){const n=new Yt(this.comparator);return n.data=e,n}}class lb{constructor(e){this.iter=e}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}class dr{constructor(e){this.fields=e,e.sort(pn.comparator)}static empty(){return new dr([])}unionWith(e){let n=new Yt(pn.comparator);for(const r of this.fields)n=n.add(r);for(const r of e)n=n.add(r);return new dr(n.toArray())}covers(e){for(const n of this.fields)if(n.isPrefixOf(e))return!0;return!1}isEqual(e){return sl(this.fields,e.fields,((n,r)=>n.isEqual(r)))}}class E1 extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}class gn{constructor(e){this.binaryString=e}static fromBase64String(e){const n=(function(s){try{return atob(s)}catch(i){throw typeof DOMException<"u"&&i instanceof DOMException?new E1("Invalid base64 string: "+i):i}})(e);return new gn(n)}static fromUint8Array(e){const n=(function(s){let i="";for(let o=0;o<s.length;++o)i+=String.fromCharCode(s[o]);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 s=0;s<n.length;s++)r[s]=n.charCodeAt(s);return r})(this.binaryString)}approximateByteSize(){return 2*this.binaryString.length}compareTo(e){return Le(this.binaryString,e.binaryString)}isEqual(e){return this.binaryString===e.binaryString}}gn.EMPTY_BYTE_STRING=new gn("");const rj=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function Xi(t){if(it(!!t,39018),typeof t=="string"){let e=0;const n=rj.exec(t);if(it(!!n,46558,{timestamp:t}),n[1]){let s=n[1];s=(s+"000000000").substr(0,9),e=Number(s)}const r=new Date(t);return{seconds:Math.floor(r.getTime()/1e3),nanos:e}}return{seconds:Mt(t.seconds),nanos:Mt(t.nanos)}}function Mt(t){return typeof t=="number"?t:typeof t=="string"?Number(t):0}function Ji(t){return typeof t=="string"?gn.fromBase64String(t):gn.fromUint8Array(t)}const v1="server_timestamp",T1="__type__",w1="__previous_value__",b1="__local_write_time__";function sE(t){var e,n;return((n=(((e=t?.mapValue)===null||e===void 0?void 0:e.fields)||{})[T1])===null||n===void 0?void 0:n.stringValue)===v1}function Zd(t){const e=t.mapValue.fields[w1];return sE(e)?Zd(e):e}function Zc(t){const e=Xi(t.mapValue.fields[b1].timestampValue);return new Gt(e.seconds,e.nanos)}class sj{constructor(e,n,r,s,i,o,a,l,u,f){this.databaseId=e,this.appId=n,this.persistenceKey=r,this.host=s,this.ssl=i,this.forceLongPolling=o,this.autoDetectLongPolling=a,this.longPollingOptions=l,this.useFetchStreams=u,this.isUsingEmulator=f}}const Kh="(default)";class eu{constructor(e,n){this.projectId=e,this.database=n||Kh}static empty(){return new eu("","")}get isDefaultDatabase(){return this.database===Kh}isEqual(e){return e instanceof eu&&e.projectId===this.projectId&&e.database===this.database}}const S1="__type__",ij="__max__",Df={mapValue:{}},I1="__vector__",Xh="value";function Qi(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?sE(t)?4:aj(t)?9007199254740991:oj(t)?10:11:Ie(28295,{value:t})}function ys(t,e){if(t===e)return!0;const n=Qi(t);
32if(n!==Qi(e))return!1;switch(n){case 0:case 9007199254740991:return!0;case 1:return t.booleanValue===e.booleanValue;case 4:return Zc(t).isEqual(Zc(e));case 3:return(function(s,i){if(typeof s.timestampValue=="string"&&typeof i.timestampValue=="string"&&s.timestampValue.length===i.timestampValue.length)return s.timestampValue===i.timestampValue;const o=Xi(s.timestampValue),a=Xi(i.timestampValue);return o.seconds===a.seconds&&o.nanos===a.nanos})(t,e);case 5:return t.stringValue===e.stringValue;case 6:return(function(s,i){return Ji(s.bytesValue).isEqual(Ji(i.bytesValue))})(t,e);case 7:return t.referenceValue===e.referenceValue;case 8:return(function(s,i){return Mt(s.geoPointValue.latitude)===Mt(i.geoPointValue.latitude)&&Mt(s.geoPointValue.longitude)===Mt(i.geoPointValue.longitude)})(t,e);case 2:return(function(s,i){if("integerValue"in s&&"integerValue"in i)return Mt(s.integerValue)===Mt(i.integerValue);if("doubleValue"in s&&"doubleValue"in i){const o=Mt(s.doubleValue),a=Mt(i.doubleValue);return o===a?zh(o)===zh(a):isNaN(o)&&isNaN(a)}return!1})(t,e);case 9:return sl(t.arrayValue.values||[],e.arrayValue.values||[],ys);case 10:case 11:return(function(s,i){const o=s.mapValue.fields||{},a=i.mapValue.fields||{};if(ab(o)!==ab(a))return!1;for(const l in o)if(o.hasOwnProperty(l)&&(a[l]===void 0||!ys(o[l],a[l])))return!1;return!0})(t,e);default:return Ie(52216,{left:t})}}function tu(t,e){return(t.values||[]).find((n=>ys(n,e)))!==void 0}function il(t,e){if(t===e)return 0;const n=Qi(t),r=Qi(e);if(n!==r)return Le(n,r);switch(n){case 0:case 9007199254740991:return 0;case 1:return Le(t.booleanValue,e.booleanValue);case 2:return(function(i,o){const a=Mt(i.integerValue||i.doubleValue),l=Mt(o.integerValue||o.doubleValue);return a<l?-1:a>l?1:a===l?0:isNaN(a)?isNaN(l)?0:-1:1})(t,e);case 3:return cb(t.timestampValue,e.timestampValue);case 4:return cb(Zc(t),Zc(e));case 5:return r_(t.stringValue,e.stringValue);case 6:return(function(i,o){const a=Ji(i),l=Ji(o);return a.compareTo(l)})(t.bytesValue,e.bytesValue);case 7:return(function(i,o){const a=i.split("/"),l=o.split("/");for(let u=0;u<a.length&&u<l.length;u++){const f=Le(a[u],l[u]);if(f!==0)return f}return Le(a.length,l.length)})(t.referenceValue,e.referenceValue);case 8:return(function(i,o){const a=Le(Mt(i.latitude),Mt(o.latitude));return a!==0?a:Le(Mt(i.longitude),Mt(o.longitude))})(t.geoPointValue,e.geoPointValue);case 9:return ub(t.arrayValue,e.arrayValue);case 10:return(function(i,o){var a,l,u,f;const h=i.fields||{},d=o.fields||{},p=(a=h[Xh])===null||a===void 0?void 0:a.arrayValue,g=(l=d[Xh])===null||l===void 0?void 0:l.arrayValue,_=Le(((u=p?.values)===null||u===void 0?void 0:u.length)||0,((f=g?.values)===null||f===void 0?void 0:f.length)||0);return _!==0?_:ub(p,g)})(t.mapValue,e.mapValue);case 11:return(function(i,o){if(i===Df.mapValue&&o===Df.mapValue)return 0;if(i===Df.mapValue)return 1;if(o===Df.mapValue)return-1;const a=i.fields||{},l=Object.keys(a),u=o.fields||{},f=Object.keys(u);l.sort(),f.sort();for(let h=0;h<l.length&&h<f.length;++h){const d=r_(l[h],f[h]);if(d!==0)return d;const p=il(a[l[h]],u[f[h]]);if(p!==0)return p}return Le(l.length,f.length)})(t.mapValue,e.mapValue);default:throw Ie(23264,{Pe:n})}}function cb(t,e){if(typeof t=="string"&&typeof e=="string"&&t.length===e.length)return Le(t,e);const n=Xi(t),r=Xi(e),s=Le(n.seconds,r.seconds);return s!==0?s:Le(n.nanos,r.nanos)}function ub(t,e){const n=t.values||[],r=e.values||[];for(let s=0;s<n.length&&s<r.length;++s){const i=il(n[s],r[s]);if(i)return i}return Le(n.length,r.length)}function ol(t){return s_(t)}function s_(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=Xi(n);return`time(${r.seconds},${r.nanos})`})(t.timestampValue):"stringValue"in t?t.stringValue:"bytesValue"in t?(function(n){return Ji(n).toBase64()})(t.bytesValue):"referenceValue"in t?(function(n){return we.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="[",s=!0;for(const i of n.values||[])s?s=!1:r+=",",r+=s_(i);return r+"]"})(t.arrayValue):"mapValue"in t?(function(n){const r=Object.keys(n.fields||{}).sort();let s="{",i=!0;for(const o of r)i?i=!1:s+=",",s+=`${o}:${s_(n.fields[o])}`;return s+"}"})(t.mapValue):Ie(61005,{value:t})}function nh(t){switch(Qi(t)){case 0:case 1:return 4;case 2:return 8;case 3:case 8:return 16;case 4:const e=Zd(t);return e?16+nh(e):16;case 5:return 2*t.stringValue.length;case 6:return Ji(t.bytesValue).approximateByteSize();case 7:return t.referenceValue.length;case 9:return(function(r){return(r.values||[]).reduce(((s,i)=>s+nh(i)),0)})(t.arrayValue);case 10:case 11:return(function(r){let s=0;return lo(r.fields,((i,o)=>{s+=i.length+nh(o)})),s})(t.mapValue);default:throw Ie(13486,{value:t})}}function fb(t,e){return{referenceValue:`projects/${t.projectId}/databases/${t.database}/documents/${e.path.canonicalString()}`}}function i_(t){return!!t&&"integerValue"in t}function iE(t){return!!t&&"arrayValue"in t}function hb(t){return!!t&&"nullValue"in t}function db(t){return!!t&&"doubleValue"in t&&isNaN(Number(t.doubleValue))}function rh(t){return!!t&&"mapValue"in t}function oj(t){var e,n;return((n=(((e=t?.mapValue)===null||e===void 0?void 0:e.fields)||{})[S1])===null||n===void 0?void 0:n.stringValue)===I1}function wc(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 lo(t.mapValue.fields,((n,r)=>e.mapValue.fields[n]=wc(r))),e}if(t.arrayValue){const e={arrayValue:{values:[]}};for(let n=0;n<(t.arrayValue.values||[]).length;++n)e.arrayValue.values[n]=wc(t.arrayValue.values[n]);return e}return Object.assign({},t)}function aj(t){return(((t.mapValue||{}).fields||{}).__type__||{}).stringValue===ij}class rr{constructor(e){this.value=e}static empty(){return new rr({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)],!rh(n))return null;return n=(n.mapValue.fields||{})[e.lastSegment()],n||null}}set(e,n){this.getFieldsMap(e.popLast())[e.lastSegment()]=wc(n)}setAll(e){let n=pn.emptyPath(),r={},s=[];e.forEach(((o,a)=>
32{if(!n.isImmediateParentOf(a)){const l=this.getFieldsMap(n);this.applyChanges(l,r,s),r={},s=[],n=a.popLast()}o?r[a.lastSegment()]=wc(o):s.push(a.lastSegment())}));const i=this.getFieldsMap(n);this.applyChanges(i,r,s)}delete(e){const n=this.field(e.popLast());rh(n)&&n.mapValue.fields&&delete n.mapValue.fields[e.lastSegment()]}isEqual(e){return ys(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 s=n.mapValue.fields[e.get(r)];rh(s)&&s.mapValue.fields||(s={mapValue:{fields:{}}},n.mapValue.fields[e.get(r)]=s),n=s}return n.mapValue.fields}applyChanges(e,n,r){lo(n,((s,i)=>e[s]=i));for(const s of r)delete e[s]}clone(){return new rr(wc(this.value))}}function A1(t){const e=[];return lo(t.fields,((n,r)=>{const s=new pn([n]);if(rh(r)){const i=A1(r.mapValue).fields;if(i.length===0)e.push(s);else for(const o of i)e.push(s.child(o))}else e.push(s)})),new dr(e)}class Pn{constructor(e,n,r,s,i,o,a){this.key=e,this.documentType=n,this.version=r,this.readTime=s,this.createTime=i,this.data=o,this.documentState=a}static newInvalidDocument(e){return new Pn(e,0,Oe.min(),Oe.min(),Oe.min(),rr.empty(),0)}static newFoundDocument(e,n,r,s){return new Pn(e,1,n,Oe.min(),r,s,0)}static newNoDocument(e,n){return new Pn(e,2,n,Oe.min(),Oe.min(),rr.empty(),0)}static newUnknownDocument(e,n){return new Pn(e,3,n,Oe.min(),Oe.min(),rr.empty(),2)}convertToFoundDocument(e,n){return!this.createTime.isEqual(Oe.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=rr.empty(),this.documentState=0,this}convertToUnknownDocument(e){return this.version=e,this.documentType=3,this.data=rr.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=Oe.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 Pn&&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 Pn(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}toString(){return`Document(${this.key}, ${this.version}, ${JSON.stringify(this.data.value)}, {createTime: ${this.createTime}}), {documentType: ${this.documentType}}), {documentState: ${this.documentState}})`}}class Jh{constructor(e,n){this.position=e,this.inclusive=n}}function pb(t,e,n){let r=0;for(let s=0;s<t.position.length;s++){const i=e[s],o=t.position[s];if(i.field.isKeyField()?r=we.comparator(we.fromName(o.referenceValue),n.key):r=il(o,n.data.field(i.field)),i.dir==="desc"&&(r*=-1),r!==0)break}return r}function mb(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(!ys(t.position[n],e.position[n]))return!1;return!0}class nu{constructor(e,n="asc"){this.field=e,this.dir=n}}function lj(t,e){return t.dir===e.dir&&t.field.isEqual(e.field)}class R1{}class Ht extends R1{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 uj(e,n,r):n==="array-contains"?new dj(e,r):n==="in"?new pj(e,r):n==="not-in"?new mj(e,r):n==="array-contains-any"?new gj(e,r):new Ht(e,n,r)}static createKeyFieldInFilter(e,n,r){return n==="in"?new fj(e,r):new hj(e,r)}matches(e){const n=e.data.field(this.field);return this.op==="!="?n!==null&&n.nullValue===void 0&&this.matchesComparison(il(n,this.value)):n!==null&&Qi(this.value)===Qi(n)&&this.matchesComparison(il(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 Ie(47266,{operator:this.op})}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class zr extends R1{constructor(e,n){super(),this.filters=e,this.op=n,this.Te=null}static create(e,n){return new zr(e,n)}matches(e){return C1(this)?this.filters.find((n=>!n.matches(e)))===void 0:this.filters.find((n=>n.matches(e)))!==void 0}getFlattenedFilters(){return this.Te!==null||(this.Te=this.filters.reduce(((e,n)=>e.concat(n.getFlattenedFilters())),[])),this.Te}getFilters(){return Object.assign([],this.filters)}}function C1(t){return t.op==="and"}function P1(t){return cj(t)&&C1(t)}function cj(t){for(const e of t.filters)if(e instanceof zr)return!1;return!0}function o_(t){if(t instanceof Ht)return t.field.canonicalString()+t.op.toString()+ol(t.value);if(P1(t))return t.filters.map((e=>o_(e))).join(",");{const e=t.filters.map((n=>o_(n))).join(",");return`${t.op}(${e})`}}function O1(t,e){return t instanceof Ht?(function(r,s){return s instanceof Ht&&r.op===s.op&&r.field.isEqual(s.field)&&ys(r.value,s.value)})(t,e):t instanceof zr?(function(r,s){return s instanceof zr&&r.op===s.op&&r.filters.length===s.filters.length?r.filters.reduce(((i,o,a)=>i&&O1(o,s.filters[a])),!0):!1})(t,e):void Ie(19439)}function N1(t){return t instanceof Ht?(function(n){return`${n.field.canonicalString()} ${n.op} ${ol(n.value)}`})(t):t instanceof zr?(function(n){return n.op.toString()+" {"+n.getFilters().map(N1).join(" ,")+"}"})(t):"Filter"}class uj extends Ht{constructor(e,n,r){super(e,n,r),this.key=we.fromName(r.referenceValue)}matches(e){const n=we.comparator(e.key,this.key);return this.matchesComparison(n)}}class fj extends Ht{constructor(e,n){super(e,"in",n),this.keys=k1("in",n)}matches(e){return this.keys.some((n=>n.isEqual(e.key)))}}class hj extends Ht{constructor(e,n){super(e,"not-in",n),this.keys=k1("not-in",n)}matches(e){return!this.keys.some((n=>n.isEqual(e.key)))}}function k1(t,e){var n;return(((n=e.arrayValue)===null||n===void 0?void 0:n.values)||[]).map((r=>we.fromName(r.referenceValue)))}class dj extends Ht{constructor(e,n){super(e,"array-contains",n)}matches(e){const n=e.data.field(this.field);return iE(n)&&tu(n.arrayValue,this.value)}}class pj extends Ht{constructor(e,n){super(e,"in",n)}matches(e){const n=e.data.field(this.field);return n!==null&&tu(this.value.arrayValue,n)}}class mj extends Ht{constructor(e,n){super(e,"not-in",n)}matches(e){if(tu(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const n=e.data.field(this.field);return n!==null&&n.nullValue===void 0&&!tu(this.value.arrayValue,n)}}class gj extends Ht{constructor(e,n){super(e,"array-contains-any",n)}matches(e){const n=e.data.field(this.field);return!(!iE(n)||!n.arrayValue.values)&&n.arrayValue.values.some((r=>tu(this.value.arrayValue,r)))}}class _j{constructor(e,n=null,r=[],s=[],i=null,o=null,a=null){this.path=e,this.collectionGroup=n,this.orderBy=r,this.filters=s,this.limit=i,this.startAt=o,this.endAt=a,this.Ie=null}}function gb(t,e=null,n=[],r=[],s=null,i=null,o=null){return new _j(t,e,n,r,s,i,o)}function oE(t){const e=De(t);if(e.Ie===null){let n=e.path.canonicalString();e.collectionGroup!==null&&(n+="|cg:"+e.collectionGroup),n+="|f:",n+=e.filters.map((r=>o_(r))).join(","),n+="|ob:",n+=e.orderBy.map((r=>(function(i){return i.field.canonicalString()+i.dir})(r))).join(","),Qd(e.limit)||(n+="|l:",n+=e.limit),e.startAt&&(n+="|lb:",n+=e.startAt.inclusive?"b:":"a:",n+=e.startAt.position.map((r=>ol(r))).join(",")),e.endAt&&(n+="|ub:",n+=e.endAt.inclusive?"a:":"b:",n+=e.endAt.position.map((r=>ol(r))).join(",")),e.Ie=n}return e.Ie}function aE(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(!lj(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(!O1(t.filters[n],e.filters[n]))return!1;return t.collectionGroup===e.collectionGroup&&!!t.path.isEqual(e.path)&&!!mb(t.startAt,e.startAt)&&mb(t.endAt,e.endAt)}function a_(t){return we.isDocumentKey(t.path)&&t.collectionGroup===null&&t.filters.length===0}class Pl{constructor(e,n=null,r=[],s=[],i=null,o="F",a=null,l=null){this.path=e,this.collectionGroup=n,this.explicitOrderBy=r,this.filters=s,this.limit=i,this.limitType=o,this.startAt=a,this.endAt=l,this.Ee=null,this.de=null,this.Ae=null,this.startAt,this.endAt}}function yj(t,e,n,r,s,i,o,a){return new Pl(t,e,n,r,s,i,o,a)}function ep(t){return new Pl(t)}function _b(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 D1(t){return t.collectionGroup!==null}function bc(t){const e=De(t);if(e.Ee===null){e.Ee=[];const n=new Set;for(const i of e.explicitOrderBy)e.Ee.push(i),n.add(i.field.canonicalString());const r=e.explicitOrderBy.length>0?e.explicitOrderBy[e.explicitOrderBy.length-1].dir:"asc";(function(o){let a=new Yt(pn.comparator);
32return o.filters.forEach((l=>{l.getFlattenedFilters().forEach((u=>{u.isInequality()&&(a=a.add(u.field))}))})),a})(e).forEach((i=>{n.has(i.canonicalString())||i.isKeyField()||e.Ee.push(new nu(i,r))})),n.has(pn.keyField().canonicalString())||e.Ee.push(new nu(pn.keyField(),r))}return e.Ee}function ps(t){const e=De(t);return e.de||(e.de=Ej(e,bc(t))),e.de}function Ej(t,e){if(t.limitType==="F")return gb(t.path,t.collectionGroup,e,t.filters,t.limit,t.startAt,t.endAt);{e=e.map((s=>{const i=s.dir==="desc"?"asc":"desc";return new nu(s.field,i)}));const n=t.endAt?new Jh(t.endAt.position,t.endAt.inclusive):null,r=t.startAt?new Jh(t.startAt.position,t.startAt.inclusive):null;return gb(t.path,t.collectionGroup,e,t.filters,t.limit,n,r)}}function l_(t,e){const n=t.filters.concat([e]);return new Pl(t.path,t.collectionGroup,t.explicitOrderBy.slice(),n,t.limit,t.limitType,t.startAt,t.endAt)}function Qh(t,e,n){return new Pl(t.path,t.collectionGroup,t.explicitOrderBy.slice(),t.filters.slice(),e,n,t.startAt,t.endAt)}function tp(t,e){return aE(ps(t),ps(e))&&t.limitType===e.limitType}function x1(t){return`${oE(ps(t))}|lt:${t.limitType}`}function Ca(t){return`Query(target=${(function(n){let r=n.path.canonicalString();return n.collectionGroup!==null&&(r+=" collectionGroup="+n.collectionGroup),n.filters.length>0&&(r+=`, filters: [${n.filters.map((s=>N1(s))).join(", ")}]`),Qd(n.limit)||(r+=", limit: "+n.limit),n.orderBy.length>0&&(r+=`, orderBy: [${n.orderBy.map((s=>(function(o){return`${o.field.canonicalString()} (${o.dir})`})(s))).join(", ")}]`),n.startAt&&(r+=", startAt: ",r+=n.startAt.inclusive?"b:":"a:",r+=n.startAt.position.map((s=>ol(s))).join(",")),n.endAt&&(r+=", endAt: ",r+=n.endAt.inclusive?"a:":"b:",r+=n.endAt.position.map((s=>ol(s))).join(",")),`Target(${r})`})(ps(t))}; limitType=${t.limitType})`}function np(t,e){return e.isFoundDocument()&&(function(r,s){const i=s.key.path;return r.collectionGroup!==null?s.key.hasCollectionId(r.collectionGroup)&&r.path.isPrefixOf(i):we.isDocumentKey(r.path)?r.path.isEqual(i):r.path.isImmediateParentOf(i)})(t,e)&&(function(r,s){for(const i of bc(r))if(!i.field.isKeyField()&&s.data.field(i.field)===null)return!1;return!0})(t,e)&&(function(r,s){for(const i of r.filters)if(!i.matches(s))return!1;return!0})(t,e)&&(function(r,s){return!(r.startAt&&!(function(o,a,l){const u=pb(o,a,l);return o.inclusive?u<=0:u<0})(r.startAt,bc(r),s)||r.endAt&&!(function(o,a,l){const u=pb(o,a,l);return o.inclusive?u>=0:u>0})(r.endAt,bc(r),s))})(t,e)}function vj(t){return t.collectionGroup||(t.path.length%2==1?t.path.lastSegment():t.path.get(t.path.length-2))}function M1(t){return(e,n)=>{let r=!1;for(const s of bc(t)){const i=Tj(s,e,n);if(i!==0)return i;r=r||s.field.isKeyField()}return 0}}function Tj(t,e,n){const r=t.field.isKeyField()?we.comparator(e.key,n.key):(function(i,o,a){const l=o.data.field(i),u=a.data.field(i);return l!==null&&u!==null?il(l,u):Ie(42886)})(t.field,e,n);switch(t.dir){case"asc":return r;case"desc":return-1*r;default:return Ie(19790,{direction:t.dir})}}class ua{constructor(e,n){this.mapKeyFn=e,this.equalsFn=n,this.inner={},this.innerSize=0}get(e){const n=this.mapKeyFn(e),r=this.inner[n];if(r!==void 0){for(const[s,i]of r)if(this.equalsFn(s,e))return i}}has(e){return this.get(e)!==void 0}set(e,n){const r=this.mapKeyFn(e),s=this.inner[r];if(s===void 0)return this.inner[r]=[[e,n]],void this.innerSize++;for(let i=0;i<s.length;i++)if(this.equalsFn(s[i][0],e))return void(s[i]=[e,n]);s.push([e,n]),this.innerSize++}delete(e){const n=this.mapKeyFn(e),r=this.inner[n];if(r===void 0)return!1;for(let s=0;s<r.length;s++)if(this.equalsFn(r[s][0],e))return r.length===1?delete this.inner[n]:r.splice(s,1),this.innerSize--,!0;return!1}forEach(e){lo(this.inner,((n,r)=>{for(const[s,i]of r)e(s,i)}))}isEmpty(){return y1(this.inner)}size(){return this.innerSize}}const wj=new It(we.comparator);function si(){return wj}const L1=new It(we.comparator);function cc(...t){let e=L1;for(const n of t)e=e.insert(n.key,n);return e}function V1(t){let e=L1;return t.forEach(((n,r)=>e=e.insert(n,r.overlayedDocument))),e}function Ro(){return Sc()}function U1(){return Sc()}function Sc(){return new ua((t=>t.toString()),((t,e)=>t.isEqual(e)))}const bj=new It(we.comparator),Sj=new Yt(we.comparator);function je(...t){let e=Sj;for(const n of t)e=e.add(n);return e}const Ij=new Yt(Le);function Aj(){return Ij}function lE(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:zh(e)?"-0":e}}function F1(t){return{integerValue:""+t}}function B1(t,e){return ej(e)?F1(e):lE(t,e)}class rp{constructor(){this._=void 0}}function Rj(t,e,n){return t instanceof ru?(function(s,i){const o={fields:{[T1]:{stringValue:v1},[b1]:{timestampValue:{seconds:s.seconds,nanos:s.nanoseconds}}}};return i&&sE(i)&&(i=Zd(i)),i&&(o.fields[w1]=i),{mapValue:o}})(n,e):t instanceof su?$1(t,e):t instanceof iu?j1(t,e):(function(s,i){const o=H1(s,i),a=yb(o)+yb(s.Re);return i_(o)&&i_(s.Re)?F1(a):lE(s.serializer,a)})(t,e)}function Cj(t,e,n){return t instanceof su?$1(t,e):t instanceof iu?j1(t,e):n}function H1(t,e){return t instanceof ou?(function(r){return i_(r)||(function(i){return!!i&&"doubleValue"in i})(r)})(e)?e:{integerValue:0}:null}class ru extends rp{}class su extends rp{constructor(e){super(),this.elements=e}}function $1(t,e){const n=q1(e);for(const r of t.elements)n.some((s=>ys(s,r)))||n.push(r);return{arrayValue:{values:n}}}class iu extends rp{constructor(e){super(),this.elements=e}}function j1(t,e){let n=q1(e);for(const r of t.elements)n=n.filter((s=>!ys(s,r)));return{arrayValue:{values:n}}}
32class ou extends rp{constructor(e,n){super(),this.serializer=e,this.Re=n}}function yb(t){return Mt(t.integerValue||t.doubleValue)}function q1(t){return iE(t)&&t.arrayValue.values?t.arrayValue.values.slice():[]}class W1{constructor(e,n){this.field=e,this.transform=n}}function Pj(t,e){return t.field.isEqual(e.field)&&(function(r,s){return r instanceof su&&s instanceof su||r instanceof iu&&s instanceof iu?sl(r.elements,s.elements,ys):r instanceof ou&&s instanceof ou?ys(r.Re,s.Re):r instanceof ru&&s instanceof ru})(t.transform,e.transform)}class Oj{constructor(e,n){this.version=e,this.transformResults=n}}class ms{constructor(e,n){this.updateTime=e,this.exists=n}static none(){return new ms}static exists(e){return new ms(void 0,e)}static updateTime(e){return new ms(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 sh(t,e){return t.updateTime!==void 0?e.isFoundDocument()&&e.version.isEqual(t.updateTime):t.exists===void 0||t.exists===e.isFoundDocument()}class sp{}function G1(t,e){if(!t.hasLocalMutations||e&&e.fields.length===0)return null;if(e===null)return t.isNoDocument()?new z1(t.key,ms.none()):new Mu(t.key,t.data,ms.none());{const n=t.data,r=rr.empty();let s=new Yt(pn.comparator);for(let i of e.fields)if(!s.has(i)){let o=n.field(i);o===null&&i.length>1&&(i=i.popLast(),o=n.field(i)),o===null?r.delete(i):r.set(i,o),s=s.add(i)}return new co(t.key,r,new dr(s.toArray()),ms.none())}}function Nj(t,e,n){t instanceof Mu?(function(s,i,o){const a=s.value.clone(),l=vb(s.fieldTransforms,i,o.transformResults);a.setAll(l),i.convertToFoundDocument(o.version,a).setHasCommittedMutations()})(t,e,n):t instanceof co?(function(s,i,o){if(!sh(s.precondition,i))return void i.convertToUnknownDocument(o.version);const a=vb(s.fieldTransforms,i,o.transformResults),l=i.data;l.setAll(Y1(s)),l.setAll(a),i.convertToFoundDocument(o.version,l).setHasCommittedMutations()})(t,e,n):(function(s,i,o){i.convertToNoDocument(o.version).setHasCommittedMutations()})(0,e,n)}function Ic(t,e,n,r){return t instanceof Mu?(function(i,o,a,l){if(!sh(i.precondition,o))return a;const u=i.value.clone(),f=Tb(i.fieldTransforms,l,o);return u.setAll(f),o.convertToFoundDocument(o.version,u).setHasLocalMutations(),null})(t,e,n,r):t instanceof co?(function(i,o,a,l){if(!sh(i.precondition,o))return a;const u=Tb(i.fieldTransforms,l,o),f=o.data;return f.setAll(Y1(i)),f.setAll(u),o.convertToFoundDocument(o.version,f).setHasLocalMutations(),a===null?null:a.unionWith(i.fieldMask.fields).unionWith(i.fieldTransforms.map((h=>h.field)))})(t,e,n,r):(function(i,o,a){return sh(i.precondition,o)?(o.convertToNoDocument(o.version).setHasLocalMutations(),null):a})(t,e,n)}function kj(t,e){let n=null;for(const r of t.fieldTransforms){const s=e.data.field(r.field),i=H1(r.transform,s||null);i!=null&&(n===null&&(n=rr.empty()),n.set(r.field,i))}return n||null}function Eb(t,e){return t.type===e.type&&!!t.key.isEqual(e.key)&&!!t.precondition.isEqual(e.precondition)&&!!(function(r,s){return r===void 0&&s===void 0||!(!r||!s)&&sl(r,s,((i,o)=>Pj(i,o)))})(t.fieldTransforms,e.fieldTransforms)&&(t.type===0?t.value.isEqual(e.value):t.type!==1||t.data.isEqual(e.data)&&t.fieldMask.isEqual(e.fieldMask))}class Mu extends sp{constructor(e,n,r,s=[]){super(),this.key=e,this.value=n,this.precondition=r,this.fieldTransforms=s,this.type=0}getFieldMask(){return null}}class co extends sp{constructor(e,n,r,s,i=[]){super(),this.key=e,this.data=n,this.fieldMask=r,this.precondition=s,this.fieldTransforms=i,this.type=1}getFieldMask(){return this.fieldMask}}function Y1(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 vb(t,e,n){const r=new Map;it(t.length===n.length,32656,{Ve:n.length,me:t.length});for(let s=0;s<n.length;s++){const i=t[s],o=i.transform,a=e.data.field(i.field);r.set(i.field,Cj(o,a,n[s]))}return r}function Tb(t,e,n){const r=new Map;for(const s of t){const i=s.transform,o=n.data.field(s.field);r.set(s.field,Rj(i,o,e))}return r}class z1 extends sp{constructor(e,n){super(),this.key=e,this.prec
32ondition=n,this.type=2,this.fieldTransforms=[]}getFieldMask(){return null}}class Dj extends sp{constructor(e,n){super(),this.key=e,this.precondition=n,this.type=3,this.fieldTransforms=[]}getFieldMask(){return null}}class xj{constructor(e,n,r,s){this.batchId=e,this.localWriteTime=n,this.baseMutations=r,this.mutations=s}applyToRemoteDocument(e,n){const r=n.mutationResults;for(let s=0;s<this.mutations.length;s++){const i=this.mutations[s];i.key.isEqual(e.key)&&Nj(i,e,r[s])}}applyToLocalView(e,n){for(const r of this.baseMutations)r.key.isEqual(e.key)&&(n=Ic(r,e,n,this.localWriteTime));for(const r of this.mutations)r.key.isEqual(e.key)&&(n=Ic(r,e,n,this.localWriteTime));return n}applyToLocalDocumentSet(e,n){const r=U1();return this.mutations.forEach((s=>{const i=e.get(s.key),o=i.overlayedDocument;let a=this.applyToLocalView(o,i.mutatedFields);a=n.has(s.key)?null:a;const l=G1(o,a);l!==null&&r.set(s.key,l),o.isValidDocument()||o.convertToNoDocument(Oe.min())})),r}keys(){return this.mutations.reduce(((e,n)=>e.add(n.key)),je())}isEqual(e){return this.batchId===e.batchId&&sl(this.mutations,e.mutations,((n,r)=>Eb(n,r)))&&sl(this.baseMutations,e.baseMutations,((n,r)=>Eb(n,r)))}}class cE{constructor(e,n,r,s){this.batch=e,this.commitVersion=n,this.mutationResults=r,this.docVersions=s}static from(e,n,r){it(e.mutations.length===r.length,58842,{fe:e.mutations.length,ge:r.length});let s=(function(){return bj})();const i=e.mutations;for(let o=0;o<i.length;o++)s=s.insert(i[o].key,r[o].version);
32return new cE(e,n,r,s)}}class Mj{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{ 33 largestBatchId: ${this.largestBatchId}, 34 mutation: ${this.mutation.toString()} 35 }`}}class Lj{constructor(e,n){this.count=e,this.unchangedNames=n}}var Ft,We;function Vj(t){switch(t){case j.OK:return Ie(64938);case j.CANCELLED:case j.UNKNOWN:case j.DEADLINE_EXCEEDED:case j.RESOURCE_EXHAUSTED:case j.INTERNAL:case j.UNAVAILABLE:case j.UNAUTHENTICATED:return!1;case j.INVALID_ARGUMENT:case j.NOT_FOUND:case j.ALREADY_EXISTS:case j.PERMISSION_DENIED:case j.FAILED_PRECONDITION:case j.ABORTED:case j.OUT_OF_RANGE:case j.UNIMPLEMENTED:case j.DATA_LOSS:return!0;default:return Ie(15467,{code:t})}}function K1(t){if(t===void 0)return ri("GRPC error has no .code"),j.UNKNOWN;switch(t){case Ft.OK:return j.OK;case Ft.CANCELLED:return j.CANCELLED;case Ft.UNKNOWN:return j.UNKNOWN;case Ft.DEADLINE_EXCEEDED:return j.DEADLINE_EXCEEDED;case Ft.RESOURCE_EXHAUSTED:return j.RESOURCE_EXHAUSTED;case Ft.INTERNAL:return j.INTERNAL;case Ft.UNAVAILABLE:return j.UNAVAILABLE;case Ft.UNAUTHENTICATED:return j.UNAUTHENTICATED;case Ft.INVALID_ARGUMENT:return j.INVALID_ARGUMENT;case Ft.NOT_FOUND:return j.NOT_FOUND;case Ft.ALREADY_EXISTS:return j.ALREADY_EXISTS;case Ft.PERMISSION_DENIED:return j.PERMISSION_DENIED;case Ft.FAILED_PRECONDITION:return j.FAILED_PRECONDITION;case Ft.ABORTED:return j.ABORTED;case Ft.OUT_OF_RANGE:return j.OUT_OF_RANGE;case Ft.UNIMPLEMENTED:return j.UNIMPLEMENTED;case Ft.DATA_LOSS:return j.DATA_LOSS;default:return Ie(39323,{code:t})}}(We=Ft||(Ft={}))[We.OK=0]="OK",We[We.CANCELLED=1]="CANCELLED",We[We.UNKNOWN=2]="UNKNOWN",We[We.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",We[We.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",We[We.NOT_FOUND=5]="NOT_FOUND",We[We.ALREADY_EXISTS=6]="ALREADY_EXISTS",We[We.PERMISSION_DENIED=7]="PERMISSION_DENIED",We[We.UNAUTHENTICATED=16]="UNAUTHENTICATED",We[We.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",We[We.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",We[We.ABORTED=10]="ABORTED",We[We.OUT_OF_RANGE=11]="OUT_OF_RANGE",We[We.UNIMPLEMENTED=12]="UNIMPLEMENTED",We[We.INTERNAL=13]="INTERNAL",We[We.UNAVAILABLE=14]="UNAVAILABLE",We[We.DATA_LOSS=15]="DATA_LOSS";const Uj=new $i([4294967295,4294967295],0);function wb(t){const e=m1().encode(t),n=new a1;return n.update(e),new Uint8Array(n.digest())}function bb(t){const e=new DataView(t.buffer),n=e.getUint32(0,!0),r=e.getUint32(4,!0),s=e.getUint32(8,!0),i=e.getUint32(12,!0);return[new $i([n,r],0),new $i([s,i],0)]}class uE{constructor(e,n,r){if(this.bitmap=e,this.padding=n,this.hashCount=r,n<0||n>=8)throw new uc(`Invalid padding: ${n}`);if(r<0)throw new uc(`Invalid hash count: ${r}`);if(e.length>0&&this.hashCount===0)throw new uc(`Invalid hash count: ${r}`);if(e.length===0&&n!==0)throw new uc(`Invalid padding when bitmap length is 0: ${n}`);this.pe=8*e.length-n,this.ye=$i.fromNumber(this.pe)}we(e,n,r){let s=e.add(n.multiply($i.fromNumber(r)));return s.compare(Uj)===1&&(s=new $i([s.getBits(0),s.getBits(1)],0)),s.modulo(this.ye).toNumber()}Se(e){return!!(this.bitmap[Math.floor(e/8)]&1<<e%8)}mightContain(e){if(this.pe===0)return!1;const n=wb(e),[r,s]=bb(n);for(let i=0;i<this.hashCount;i++){const o=this.we(r,s,i);if(!this.Se(o))return!1}return!0}static create(e,n,r){const s=e%8==0?0:8-e%8,i=new Uint8Array(Math.ceil(e/8)),o=new uE(i,s,n);return r.forEach((a=>o.insert(a))),o}insert(e){if(this.pe===0)return;const n=wb(e),[r,s]=bb(n);for(let i=0;i<this.hashCount;i++){const o=this.we(r,s,i);this.be(o)}}be(e){const n=Math.floor(e/8),r=e%8;this.bitmap[n]|=1<<r}}class uc extends Error{constructor(){super(...arguments),this.name="BloomFilterError"}}class ip{constructor(e,n,r,s,i){this.snapshotVersion=e,this.targetChanges=n,this.targetMismatches=r,this.documentUpdates=s,this.resolvedLimboDocuments=i}static createSynthesizedRemoteEventForCurrentChange(e,n,r){const s=new Map;return s.set(e,Lu.createSynthesizedTargetChangeForCurrentChange(e,n,r)),new ip(Oe.min(),s,new It(Le),si(),je())}}class Lu{constructor(e,n,r,s,i){this.resumeToken=e,this.current=n,this.addedDocuments=r,this.modifiedDocuments=s,this.removedDocuments=i}static createSynthesizedTargetChangeForCurrentChange(e,n,r){return new Lu(r,n,je(),je(),je())}}class ih{constructor(e,n,r,s){this.De=e,this.removedTargetIds=n,this.key=r,this.ve=s}}class X1{constructor(e,n){this.targetId=e,this.Ce=n}}class J1{constructor(e,n,r=gn.EMPTY_BYTE_STRING,s=null){this.state=e,this.targetIds=n,this.resumeToken=r,this.cause=s}}class Sb{constructor(){this.Fe=0,this.Me=Ib(),this.xe=gn.EMPTY_BYTE_STRING,this.Oe=!1,this.Ne=!0}get current(){return this.Oe}get resumeToken(){return this.xe}get Be(){return this.Fe!==0}get Le(){return this.Ne}ke(e){e.approximateByteSize()>0&&(this.Ne=!0,this.xe=e)}qe(){let e=je(),n=je(),r=je();return this.Me.forEach(((s,i)=>{switch(i){case 0:e=e.add(s);break;case 2:n=n.add(s);break;case 1:r=r.add(s);break;default:Ie(38017,{changeType:i})}})),new Lu(this.xe,this.Oe,e,n,r)}Qe(){this.Ne=!1,this.Me=Ib()}$e(e,n){this.Ne=!0,this.Me=this.Me.insert(e,n)}Ue(e){this.Ne=!0,this.Me=this.Me.remove(e)}Ke(){this.Fe+=1}We(){this.Fe-=1,it(this.Fe>=0,3241,{Fe:this.Fe})}Ge(){this.Ne=!0,this.Oe=!0}}class Fj{constructor(e){this.ze=e,this.je=new Map,this.He=si(),this.Je=xf(),this.Ye=xf(),this.Ze=new It(Le)}Xe(e){for(const n of e.De)e.ve&&e.ve.isFoundDocument()?this.et(n,e.ve):this.tt(n,e.key,e.ve);for(const n of e.removedTargetIds)this.tt(n,e.key,e.ve)}nt(e){this.forEachTarget(e,(n=>{const r=this.rt(n);switch(e.state){case 0:this.it(n)&&r.ke(e.resumeToken);break;case 1:r.We(),r.Be||r.Qe(),r.ke(e.resumeToken);break;case 2:r.We(),r.Be||this.removeTarget(n);break;case 3:this.it(n)&&(r.Ge(),r.ke(e.resumeToken));break;case 4:this.it(n)&&(this.st(n),r.ke(e.resumeToken));break;default:Ie(56790,{state:e.state})}}))}forEachTarget(e,n){e.targetIds.length>0?e.targetIds.forEach(n):this.je.forEach(((r,s)=>{this.it(s)&&n(s)}))}ot(e){const n=e.targetId,r=e.Ce.count,s=this._t(n);if(s){const i=s.target;if(a_(i))if(r===0){const o=new we(i.path);this.tt(n,o,Pn.newNoDocument(o,Oe.min()))}else it(r===1,20013,{expectedCount:r});else{const o=this.ut(n);if(o!==r){const a=this.ct(e),l=a?this.lt(a,e,o):1;if(l!==0){this.st(n);const u=l===2?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch";this.Ze=this.Ze.insert(n,u)}}}}}ct(e){const n=e.Ce.unchangedNames;if(!n||!n.bits)return null;const{bits:{bitmap:r="",padding:s=0},hashCount:i=0}=n;let o,a;try{o=Ji(r).toUint8Array()}catch(l){if(l instanceof E1)return rl("Decoding the base64 bloom filter in existence filter failed ("+l.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw l}try{a=new uE(o,s,i)}catch(l){return rl(l instanceof uc?"BloomFilter error: ":"Applying bloom filter failed: ",l),null}return a.pe===0?null:a}lt(e,n,r){return n.Ce.count===r-this.Tt(e,n.targetId)?0:2}Tt(e,n){const r=this.ze.getRemoteKeysForTarget(n);let s=0;return r.forEach((i=>{const o=this.ze.Pt(),a=`projects/${o.projectId}/databases/${o.database}/documents/${i.path.canonicalString()}`;e.mightContain(a)||(this.tt(n,i,null),s++)})),s}It(e){const n=new Map;this.je.forEach(((i,o)=>{const a=this._t(o);if(a){if(i.current&&a_(a.target)){const l=new we(a.target.path);this.Et(l).has(o)||this.dt(o,l)||this.tt(o,l,Pn.newNoDocument(l,e))}i.Le&&(n.set(o,i.qe()),i.Qe())}}));let r=je();this.Ye.forEach(((i,o)=>{let a=!0;o.forEachWhile((l=>{const u=this._t(l);return!u||u.purpose==="TargetPurposeLimboResolution"||(a=!1,!1)})),a&&(r=r.add(i))})),this.He.forEach(((i,o)=>o.setReadTime(e)));const s=new ip(e,n,this.Ze,this.He,r);return this.He=si(),this.Je=xf(),this.Ye=xf(),this.Ze=new It(Le),s}et(e,n){if(!this.it(e))return;const r=this.dt(e,n.key)?2:0;this.rt(e).$e(n.key,r),this.He=this.He.insert(n.key,n),this.Je=this.Je.insert(n.key,this.Et(n.key).add(e)),this.Ye=this.Ye.insert(n.key,this.At(n.key).add(e))}tt(e,n,r){if(!this.it(e))return;const s=this.rt(e);this.dt(e,n)?s.$e(n,1):s.Ue(n),this.Ye=this.Ye.insert(n,this.At(n).delete(e)),this.Ye=this.Ye.insert(n,this.At(n).add(e)),r&&(this.He=this.He.insert(n,r))}removeTarget(e){this.je.delete(e)}ut(e){const n=this.rt(e).qe();return this.ze.getRemoteKeysForTarget(e).size+n.addedDocuments.size-n.removedDocuments.size}Ke(e){this.rt(e).Ke()}rt(e){let n=this.je.get(e);return n||(n=new Sb,this.je.set(e,n)),n}At(e){let n=this.Ye.get(e);return n||(n=new Yt(Le),this.Ye=this.Ye.insert(e,n)),n}Et(e){let n=this.Je.get(e);return n||(n=new Yt(Le),this.Je=this.Je.insert(e,n)),n}it(e){const n=this._t(e)!==null;return n||ce("WatchChangeAggregator","Detected inactive target",e),n}_t(e){const n=this.je.get(e);return n&&n.Be?null:this.ze.Rt(e)}st(e){this.je.set(e,new Sb),this.ze.getRemoteKeysForTarget(e).forEach((n=>{this.tt(e,n,null)}))}dt(e,n){return this.ze.getRemoteKeysForTarget(e).has(n)}}function xf(){return new It(we.comparator)}function Ib(){return new It(we.comparator)}const Bj={asc:"ASCENDING",desc:"DESCENDING"},Hj={"<":"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"},$j={and:"AND",or:"OR"};class jj{constructor(e,n){this.databaseId=e,this.useProto3Json=n}}function c_(t,e){return t.useProto3Json||Qd(e)?e:{value:e}}function Zh(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 Q1(t,e){return t.useProto3Json?e.toBase64():e.toUint8Array()}function qj(t,e){return Zh(t,e.toTimestamp())}function gs(t){return it(!!t,49232),Oe.fromTimestamp((function(n){const r=Xi(n);return new Gt(r.seconds,r.nanos)})(t))}function fE(t,e){return u_(t,e).canonicalString()}function u_(t,e){const n=(function(s){return new _t(["projects",s.projectId,"databases",s.database])})(t).child("documents");return e===void 0?n:n.child(e)}function Z1(t){const e=_t.fromString(t);return it(sP(e),10190,{key:e.toString()}),e}function f_(t,e){return fE(t.databaseId,e.path)}function Bm(t,e){const n=Z1(e);if(n.get(1)!==t.databaseId.projectId)throw new le(j.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 le(j.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+t.databaseId.database);return new we(tP(n))}function eP(t,e){return fE(t.databaseId,e)}function Wj(t){const e=Z1(t);return e.length===4?_t.emptyPath():tP(e)}function h_(t){return new _t(["projects",t.databaseId.projectId,"databases",t.databaseId.database]).canonicalString()}function tP(t){return it(t.length>4&&t.get(4)==="documents",29091,{key:t.toString()}),t.popFirst(5)}function Ab(t,e,n){return{name:f_(t,e),fields:n.value.mapValue.fields}}function Gj(t,e){let n;if("targetChange"in e){e.targetChange;const r=(function(u){return u==="NO_CHANGE"?0:u==="ADD"?1:u==="REMOVE"?2:u==="CURRENT"?3:u==="RESET"?4:Ie(39313,{state:u})})(e.targetChange.targetChangeType||"NO_CHANGE"),s=e.targetChange.targetIds||[],i=(function(u,f){return u.useProto3Json?(it(f===void 0||typeof f=="string",58123),gn.fromBase64String(f||"")):(it(f===void 0||f instanceof Buffer||f instanceof Uint8Array,16193),gn.fromUint8Array(f||new Uint8Array))})(t,e.targetChange.resumeToken),o=e.targetChange.cause,a=o&&(function(u){const f=u.code===void 0?j.UNKNOWN:K1(u.code);return new le(f,u.message||"")})(o);n=new J1(r,s,i,a||null)}else if("documentChange"in e){e.documentChange;const r=e.documentChange;r.document,r.document.name,r.document.updateTime;const s=Bm(t,r.document.name),i=gs(r.document.updateTime),o=r.document.createTime?gs(r.document.createTime):Oe.min(),a=new rr({mapValue:{fields:r.document.fields}}),l=Pn.newFoundDocument(s,i,o,a),u=r.targetIds||[],f=r.removedTargetIds||[];n=new ih(u,f,l.key,l)}else if("documentDelete"in e){e.documentDelete;const r=e.documentDelete;r.document;const s=Bm(t,r.document),i=r.readTime?gs(r.readTime):Oe.min(),o=Pn.newNoDocument(s,i),a=r.removedTargetIds||[];n=new ih([],a,o.key,o)}else if("documentRemove"in e){e.documentRemove;const r=e.documentRemove;r.document;const s=Bm(t,r.document),i=r.removedTargetIds||[];n=new ih([],i,s,null)}else{if(!("filter"in e))return Ie(11601,{Vt:e});{e.filter;const r=e.filter;r.targetId;const{count:s=0,unchangedNames:i}=r,o=new Lj(s,i),a=r.targetId;n=new X1(a,o)}}return n}function Yj(t,e){let n;if(e instanceof Mu)n={update:Ab(t,e.key,e.value)};else if(e instanceof z1)n={delete:f_(t,e.key)};else if(e instanceof co)n={update:Ab(t,e.key,e.data),updateMask:n5(e.fieldMask)};
35else{if(!(e instanceof Dj))return Ie(16599,{ft:e.type});n={verify:f_(t,e.key)}}return e.fieldTransforms.length>0&&(n.updateTransforms=e.fieldTransforms.map((r=>(function(i,o){const a=o.transform;if(a instanceof ru)return{fieldPath:o.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(a instanceof su)return{fieldPath:o.field.canonicalString(),appendMissingElements:{values:a.elements}};if(a instanceof iu)return{fieldPath:o.field.canonicalString(),removeAllFromArray:{values:a.elements}};if(a instanceof ou)return{fieldPath:o.field.canonicalString(),increment:a.Re};throw Ie(20930,{transform:o.transform})})(0,r)))),e.precondition.isNone||(n.currentDocument=(function(s,i){return i.updateTime!==void 0?{updateTime:qj(s,i.updateTime)}:i.exists!==void 0?{exists:i.exists}:Ie(27497)})(t,e.precondition)),n}function zj(t,e){return t&&t.length>0?(it(e!==void 0,14353),t.map((n=>(function(s,i){let o=s.updateTime?gs(s.updateTime):gs(i);return o.isEqual(Oe.min())&&(o=gs(i)),new Oj(o,s.transformResults||[])})(n,e)))):[]}function Kj(t,e){return{documents:[eP(t,e.path)]}}function Xj(t,e){const n={structuredQuery:{}},r=e.path;let s;e.collectionGroup!==null?(s=r,n.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(s=r.popLast(),n.structuredQuery.from=[{collectionId:r.lastSegment()}]),n.parent=eP(t,s);const i=(function(u){if(u.length!==0)return rP(zr.create(u,"and"))})(e.filters);i&&(n.structuredQuery.where=i);const o=(function(u){if(u.length!==0)return u.map((f=>(function(d){return{field:Pa(d.field),direction:Zj(d.dir)}})(f)))})(e.orderBy);o&&(n.structuredQuery.orderBy=o);const a=c_(t,e.limit);return a!==null&&(n.structuredQuery.limit=a),e.startAt&&(n.structuredQuery.startAt=(function(u){return{before:u.inclusive,values:u.position}})(e.startAt)),e.endAt&&(n.structuredQuery.endAt=(function(u){return{before:!u.inclusive,values:u.position}})(e.endAt)),{gt:n,parent:s}}function Jj(t){let e=Wj(t.parent);const n=t.structuredQuery,r=n.from?n.from.length:0;let s=null;if(r>0){it(r===1,65062);const f=n.from[0];f.allDescendants?s=f.collectionId:e=e.child(f.collectionId)}let i=[];n.where&&(i=(function(h){const d=nP(h);return d instanceof zr&&P1(d)?d.getFilters():[d]})(n.where));let o=[];n.orderBy&&(o=(function(h){return h.map((d=>(function(g){return new nu(Oa(g.field),(function(v){switch(v){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}})(g.direction))})(d)))})(n.orderBy));let a=null;n.limit&&(a=(function(h){let d;return d=typeof h=="object"?h.value:h,Qd(d)?null:d})(n.limit));let l=null;n.startAt&&(l=(function(h){const d=!!h.before,p=h.values||[];return new Jh(p,d)})(n.startAt));let u=null;return n.endAt&&(u=(function(h){const d=!h.before,p=h.values||[];return new Jh(p,d)})(n.endAt)),yj(e,s,o,i,a,"F",l,u)}function Qj(t,e){const n=(function(s){switch(s){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return Ie(28987,{purpose:s})}})(e.purpose);return n==null?null:{"goog-listen-tags":n}}function nP(t){return t.unaryFilter!==void 0?(function(n){switch(n.unaryFilter.op){case"IS_NAN":const r=Oa(n.unaryFilter.field);return Ht.create(r,"==",{doubleValue:NaN});case"IS_NULL":const s=Oa(n.unaryFilter.field);return Ht.create(s,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const i=Oa(n.unaryFilter.field);return Ht.create(i,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const o=Oa(n.unaryFilter.field);return Ht.create(o,"!=",{nullValue:"NULL_VALUE"});case"OPERATOR_UNSPECIFIED":return Ie(61313);default:return Ie(60726)}})(t):t.fieldFilter!==void 0?(function(n){return Ht.create(Oa(n.fieldFilter.field),(function(s){switch(s){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";case"OPERATOR_UNSPECIFIED":return Ie(58110);default:return Ie(50506)}})(n.fieldFilter.op),n.fieldFilter.value)})(t):t.compositeFilter!==void 0?(function(n){return zr.create(n.compositeFilter.filters.map((r=>nP(r))),(function(s){switch(s){case"AND":return"and";case"OR":return"or";default:return Ie(1026)}})(n.compositeFilter.op))})(t):Ie(30097,{filter:t})}function Zj(t){return Bj[t]}function e5(t){return Hj[t]}function t5(t){return $j[t]}function Pa(t){return{fieldPath:t.canonicalString()}}function Oa(t){return pn.fromServerFormat(t.fieldPath)}function rP(t){return t instanceof Ht?(function(n){if(n.op==="=="){if(db(n.value))return{unaryFilter:{field:Pa(n.field),op:"IS_NAN"}};if(hb(n.value))return{unaryFilter:{field:Pa(n.field),op:"IS_NULL"}}}else if(n.op==="!="){if(db(n.value))return{unaryFilter:{field:Pa(n.field),op:"IS_NOT_NA
35N"}};if(hb(n.value))return{unaryFilter:{field:Pa(n.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Pa(n.field),op:e5(n.op),value:n.value}}})(t):t instanceof zr?(function(n){const r=n.getFilters().map((s=>rP(s)));return r.length===1?r[0]:{compositeFilter:{op:t5(n.op),filters:r}}})(t):Ie(54877,{filter:t})}function n5(t){const e=[];return t.fields.forEach((n=>e.push(n.canonicalString()))),{fieldPaths:e}}function sP(t){return t.length>=4&&t.get(0)==="projects"&&t.get(2)==="databases"}class ki{constructor(e,n,r,s,i=Oe.min(),o=Oe.min(),a=gn.EMPTY_BYTE_STRING,l=null){this.target=e,this.targetId=n,this.purpose=r,this.sequenceNumber=s,this.snapshotVersion=i,this.lastLimboFreeSnapshotVersion=o,this.resumeToken=a,this.expectedCount=l}withSequenceNumber(e){return new ki(this.target,this.targetId,this.purpose,e,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(e,n){return new ki(this.target,this.targetId,this.purpose,this.sequenceNumber,n,this.lastLimboFreeSnapshotVersion,e,null)}withExpectedCount(e){return new ki(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,e)}withLastLimboFreeSnapshotVersion(e){return new ki(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,e,this.resumeToken,this.expectedCount)}}class r5{constructor(e){this.wt=e}}function s5(t){const e=Jj({parent:t.parent,structuredQuery:t.structuredQuery});return t.limitType==="LAST"?Qh(e,e.limit,"L"):e}class i5{constructor(){this.Cn=new o5}addToCollectionParentIndex(e,n){return this.Cn.add(n),q.resolve()}getCollectionParents(e,n){return q.resolve(this.Cn.getEntries(n))}addFieldIndex(e,n){return q.resolve()}deleteFieldIndex(e,n){return q.resolve()}deleteAllFieldIndexes(e){return q.resolve()}createTargetIndexes(e,n){return q.resolve()}getDocumentsMatchingTarget(e,n){return q.resolve(null)}getIndexType(e,n){return q.resolve(0)}getFieldIndexes(e,n){return q.resolve([])}getNextCollectionGroupToUpdate(e){return q.resolve(null)}getMinOffset(e,n){return q.resolve(Ki.min())}getMinOffsetFromCollectionGroup(e,n){return q.resolve(Ki.min())}updateCollectionGroup(e,n,r){return q.resolve()}updateIndexEntries(e,n){return q.resolve()}}class o5{constructor(){this.index={}}add(e){const n=e.lastSegment(),r=e.popLast(),s=this.index[n]||new Yt(_t.comparator),i=!s.has(r);return this.index[n]=s.add(r),i}has(e){const n=e.lastSegment(),r=e.popLast(),s=this.index[n];return s&&s.has(r)}getEntries(e){return(this.index[e]||new Yt(_t.comparator)).toArray()}}const Rb={didRun:!1,sequenceNumbersCollected:0,targetsRemoved:0,documentsRemoved:0},iP=41943040;class tr{static withCacheSize(e){return new tr(e,tr.DEFAULT_COLLECTION_PERCENTILE,tr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}constructor(e,n,r){this.cacheSizeCollectionThreshold=e,this.percentileToCollect=n,this.maximumSequenceNumbersToCollect=r}}tr.DEFAULT_COLLECTION_PERCENTILE=10,tr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,tr.DEFAULT=new tr(iP,tr.DEFAULT_COLLECTION_PERCENTILE,tr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),tr.DISABLED=new tr(-1,0,0);class al{constructor(e){this.ur=e}next(){return this.ur+=2,this.ur}static cr(){return new al(0)}static lr(){return new al(-1)}}const Cb="LruGarbageCollector",a5=1048576;function Pb([t,e],[n,r]){const s=Le(t,n);return s===0?Le(e,r):s}class l5{constructor(e){this.Er=e,this.buffer=new Yt(Pb),this.dr=0}Ar(){return++this.dr}Rr(e){const n=[e,this.Ar()];if(this.buffer.size<this.Er)this.buffer=this.buffer.add(n);else{const r=this.buffer.last();Pb(n,r)<0&&(this.buffer=this.buffer.delete(r).add(n))}}get maxValue(){return this.buffer.last()[0]}}class c5{constructor(e,n,r){this.garbageCollector=e,this.asyncQueue=n,this.localStore=r,this.Vr=null}start(){this.garbageCollector.params.cacheSizeCollectionThreshold!==-1&&this.mr(6e4)}stop(){this.Vr&&(this.Vr.cancel(),this.Vr=null)}get started(){return this.Vr!==null}mr(e){ce(Cb,`Garbage collection scheduled in ${e}ms`),this.Vr=this.asyncQueue.enqueueAfterDelay("lru_garbage_collection",e,(async()=>{this.Vr=null;try{await this.localStore.collectGarbage(this.garbageCollector)}catch(n){Cl(n)?ce(Cb,"Ignoring IndexedDB error during garbage collection: ",n):await Rl(n)}await this.mr(3e5)}))}}class u5{constructor(e,n){this.gr=e,this.params=n}calculateTargetCount(e,n){return this.gr.pr(e).next((r=>Math.floor(n/100*r)))}nthSequenceNumber(e,n){if(n===0)return q.resolve(Jd.le);const r=new l5(n);return this.gr.forEachTarget(e,(s=>r.Rr(s.sequenceNumber))).next((()=>this.gr.yr(e,(s=>r.Rr(s))))).next((()=>r.maxValue))}removeTargets(e,n,r){return this.gr.removeTargets(e,n,r)}removeOrphanedDocuments(e,n){return this.gr.removeOrphanedDocuments(e,n)}collect(e,n){return this.params.cacheSizeCollectionThreshold===-1?(ce("LruGarbageCollector","Garbage collection skipped; disabled"),q.resolve(Rb)):this.getCacheSize(e).next((r=>r<this.params.cacheSizeCollectionThreshold?(ce("LruGarbageCollector",`Garbage collection skipped; Cache size ${r} is lower than threshold ${this.params.cacheSizeCollectionThreshold}`),Rb):this.wr(e,n)))}getCacheSize(e){return this.gr.getCacheSize(e)}wr(e,n){let r,s,i,o,a,l,u;const f=Date.now();return this.calculateTargetCount(e,this.params.percentileToCollect).next((h=>(h>this.params.maximumSequenceNumbersToCollect?(ce("LruGarbageCollector",`C
35apping sequence numbers to collect down to the maximum of ${this.params.maximumSequenceNumbersToCollect} from ${h}`),s=this.params.maximumSequenceNumbersToCollect):s=h,o=Date.now(),this.nthSequenceNumber(e,s)))).next((h=>(r=h,a=Date.now(),this.removeTargets(e,r,n)))).next((h=>(i=h,l=Date.now(),this.removeOrphanedDocuments(e,r)))).next((h=>(u=Date.now(),Ra()<=He.DEBUG&&ce("LruGarbageCollector",`LRU Garbage Collection 36 Counted targets in ${o-f}ms 37 Determined least recently used ${s} in `+(a-o)+`ms 38 Removed ${i} targets in `+(l-a)+`ms 39 Removed ${h} documents in `+(u-l)+`ms 40Total Duration: ${u-f}ms`),q.resolve({didRun:!0,sequenceNumbersCollected:s,targetsRemoved:i,documentsRemoved:h}))))}}function f5(t,e){return new u5(t,e)}class h5{constructor(){this.changes=new ua((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,Pn.newInvalidDocument(e).setReadTime(n))}getEntry(e,n){this.assertNotApplied();const r=this.changes.get(n);return r!==void 0?q.resolve(r):this.getFromCache(e,n)}getEntries(e,n){return this.getAllFromCache(e,n)}apply(e){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(e)}assertNotApplied(){}}class d5{constructor(e,n){this.overlayedDocument=e,this.mutatedFields=n}}class p5{constructor(e,n,r,s){this.remoteDocumentCache=e,this.mutationQueue=n,this.documentOverlayCache=r,this.indexManager=s}getDocument(e,n){let r=null;return this.documentOverlayCache.getOverlay(e,n).next((s=>(r=s,this.remoteDocumentCache.getEntry(e,n)))).next((s=>(r!==null&&Ic(r.mutation,s,dr.empty(),Gt.now()),s)))}getDocuments(e,n){return this.remoteDocumentCache.getEntries(e,n).next((r=>this.getLocalViewOfDocuments(e,r,je()).next((()=>r))))}getLocalViewOfDocuments(e,n,r=je()){const s=Ro();return this.populateOverlays(e,s,n).next((()=>this.computeViews(e,n,s,r).next((i=>{let o=cc();return i.forEach(((a,l)=>{o=o.insert(a,l.overlayedDocument)})),o}))))}getOverlayedDocuments(e,n){const r=Ro();return this.populateOverlays(e,r,n).next((()=>this.computeViews(e,n,r,je())))}populateOverlays(e,n,r){const s=[];return r.forEach((i=>{n.has(i)||s.push(i)})),this.documentOverlayCache.getOverlays(e,s).next((i=>{i.forEach(((o,a)=>{n.set(o,a)}))}))}computeViews(e,n,r,s){let i=si();const o=Sc(),a=(function(){return Sc()})();return n.forEach(((l,u)=>{const f=r.get(u.key);s.has(u.key)&&(f===void 0||f.mutation instanceof co)?i=i.insert(u.key,u):f!==void 0?(o.set(u.key,f.mutation.getFieldMask()),Ic(f.mutation,u,f.mutation.getFieldMask(),Gt.now())):o.set(u.key,dr.empty())})),this.recalculateAndSaveOverlays(e,i).next((l=>(l.forEach(((u,f)=>o.set(u,f))),n.forEach(((u,f)=>{var h;return a.set(u,new d5(f,(h=o.get(u))!==null&&h!==void 0?h:null))})),a)))}recalculateAndSaveOverlays(e,n){const r=Sc();let s=new It(((o,a)=>o-a)),i=je();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(e,n).next((o=>{for(const a of o)a.keys().forEach((l=>{const u=n.get(l);if(u===null)return;let f=r.get(l)||dr.empty();f=a.applyToLocalView(u,f),r.set(l,f);const h=(s.get(a.batchId)||je()).add(l);s=s.insert(a.batchId,h)}))})).next((()=>{const o=[],a=s.getReverseIterator();for(;a.hasNext();){const l=a.getNext(),u=l.key,f=l.value,h=U1();f.forEach((d=>{if(!i.has(d)){const p=G1(n.get(d),r.get(d));p!==null&&h.set(d,p),i=i.add(d)}})),o.push(this.documentOverlayCache.saveOverlays(e,u,h))}return q.waitFor(o)})).next((()=>r))}recalculateAndSaveOverlaysForDocumentKeys(e,n){return this.remoteDocumentCache.getEntries(e,n).next((r=>this.recalculateAndSaveOverlays(e,r)))}getDocumentsMatchingQuery(e,n,r,s){return(function(o){return we.isDocumentKey(o.path)&&o.collectionGroup===null&&o.filters.length===0})(n)?this.getDocumentsMatchingDocumentQuery(e,n.path):D1(n)?this.getDocumentsMatchingCollectionGroupQuery(e,n,r,s):this.getDocumentsMatchingCollectionQuery(e,n,r,s)}getNextDocuments(e,n,r,s){return this.remoteDocumentCache.getAllFromCollectionGroup(e,n,r,s).next((i=>{const o=s-i.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(e,n,r.largestBatchId,s-i.size):q.resolve(Ro());let a=Qc,l=i;return o.next((u=>q.forEach(u,((f,h)=>(a<h.largestBatchId&&(a=h.largestBatchId),i.get(f)?q.resolve():this.remoteDocumentCache.getEntry(e,f).next((d=>{l=l.insert(f,d)}))))).next((()=>this.populateOverlays(e,u,i))).next((()=>this.computeViews(e,l,u,je()))).next((f=>({batchId:a,changes:V1(f)})))))}))}getDocumentsMatchingDocumentQuery(e,n){return this.getDocument(e,new we(n)).next((r=>{let s=cc();
40return r.isFoundDocument()&&(s=s.insert(r.key,r)),s}))}getDocumentsMatchingCollectionGroupQuery(e,n,r,s){const i=n.collectionGroup;let o=cc();return this.indexManager.getCollectionParents(e,i).next((a=>q.forEach(a,(l=>{const u=(function(h,d){return new Pl(d,null,h.explicitOrderBy.slice(),h.filters.slice(),h.limit,h.limitType,h.startAt,h.endAt)})(n,l.child(i));return this.getDocumentsMatchingCollectionQuery(e,u,r,s).next((f=>{f.forEach(((h,d)=>{o=o.insert(h,d)}))}))})).next((()=>o))))}getDocumentsMatchingCollectionQuery(e,n,r,s){let i;return this.documentOverlayCache.getOverlaysForCollection(e,n.path,r.largestBatchId).next((o=>(i=o,this.remoteDocumentCache.getDocumentsMatchingQuery(e,n,r,i,s)))).next((o=>{i.forEach(((l,u)=>{const f=u.getKey();o.get(f)===null&&(o=o.insert(f,Pn.newInvalidDocument(f)))}));let a=cc();return o.forEach(((l,u)=>{const f=i.get(l);f!==void 0&&Ic(f.mutation,u,dr.empty(),Gt.now()),np(n,u)&&(a=a.insert(l,u))})),a}))}}class m5{constructor(e){this.serializer=e,this.kr=new Map,this.qr=new Map}getBundleMetadata(e,n){return q.resolve(this.kr.get(n))}saveBundleMetadata(e,n){return this.kr.set(n.id,(function(s){return{id:s.id,version:s.version,createTime:gs(s.createTime)}})(n)),q.resolve()}getNamedQuery(e,n){return q.resolve(this.qr.get(n))}saveNamedQuery(e,n){return this.qr.set(n.name,(function(s){return{name:s.name,query:s5(s.bundledQuery),readTime:gs(s.readTime)}})(n)),q.resolve()}}class g5{constructor(){this.overlays=new It(we.comparator),this.Qr=new Map}getOverlay(e,n){return q.resolve(this.overlays.get(n))}getOverlays(e,n){const r=Ro();return q.forEach(n,(s=>this.getOverlay(e,s).next((i=>{i!==null&&r.set(s,i)})))).next((()=>r))}saveOverlays(e,n,r){return r.forEach(((s,i)=>{this.bt(e,n,i)})),q.resolve()}removeOverlaysForBatchId(e,n,r){const s=this.Qr.get(r);return s!==void 0&&(s.forEach((i=>this.overlays=this.overlays.remove(i))),this.Qr.delete(r)),q.resolve()}getOverlaysForCollection(e,n,r){const s=Ro(),i=n.length+1,o=new we(n.child("")),a=this.overlays.getIteratorFrom(o);for(;a.hasNext();){const l=a.getNext().value,u=l.getKey();if(!n.isPrefixOf(u.path))break;u.path.length===i&&l.largestBatchId>r&&s.set(l.getKey(),l)}return q.resolve(s)}getOverlaysForCollectionGroup(e,n,r,s){let i=new It(((u,f)=>u-f));const o=this.overlays.getIterator();for(;o.hasNext();){const u=o.getNext().value;if(u.getKey().getCollectionGroup()===n&&u.largestBatchId>r){let f=i.get(u.largestBatchId);f===null&&(f=Ro(),i=i.insert(u.largestBatchId,f)),f.set(u.getKey(),u)}}const a=Ro(),l=i.getIterator();for(;l.hasNext()&&(l.getNext().value.forEach(((u,f)=>a.set(u,f))),!(a.size()>=s)););return q.resolve(a)}bt(e,n,r){const s=this.overlays.get(r.key);if(s!==null){const o=this.Qr.get(s.largestBatchId).delete(r.key);this.Qr.set(s.largestBatchId,o)}this.overlays=this.overlays.insert(r.key,new Mj(n,r));let i=this.Qr.get(n);i===void 0&&(i=je(),this.Qr.set(n,i)),this.Qr.set(n,i.add(r.key))}}class _5{constructor(){this.sessionToken=gn.EMPTY_BYTE_STRING}getSessionToken(e){return q.resolve(this.sessionToken)}setSessionToken(e,n){return this.sessionToken=n,q.resolve()}}class hE{constructor(){this.$r=new Yt(Qt.Ur),this.Kr=new Yt(Qt.Wr)}isEmpty(){return this.$r.isEmpty()}addReference(e,n){const r=new Qt(e,n);this.$r=this.$r.add(r),this.Kr=this.Kr.add(r)}Gr(e,n){e.forEach((r=>this.addReference(r,n)))}removeReference(e,n){this.zr(new Qt(e,n))}jr(e,n){e.forEach((r=>this.removeReference(r,n)))}Hr(e){const n=new we(new _t([])),r=new Qt(n,e),s=new Qt(n,e+1),i=[];return this.Kr.forEachInRange([r,s],(o=>{this.zr(o),i.push(o.key)})),i}Jr(){this.$r.forEach((e=>this.zr(e)))}zr(e){this.$r=this.$r.delete(e),this.Kr=this.Kr.delete(e)}Yr(e){const n=new we(new _t([])),r=new Qt(n,e),s=new Qt(n,e+1);let i=je();return this.Kr.forEachInRange([r,s],(o=>{i=i.add(o.key)})),i}containsKey(e){const n=new Qt(e,0),r=this.$r.firstAfterOrEqual(n);return r!==null&&e.isEqual(r.key)}}class Qt{constructor(e,n){this.key=e,this.Zr=n}static Ur(e,n){return we.comparator(e.key,n.key)||Le(e.Zr,n.Zr)}static Wr(e,n){return Le(e.Zr,n.Zr)||we.comparator(e.key,n.key)}}class y5{constructor(e,n){this.indexManager=e,this.referenceDelegate=n,this.mutation
40Queue=[],this.nr=1,this.Xr=new Yt(Qt.Ur)}checkEmpty(e){return q.resolve(this.mutationQueue.length===0)}addMutationBatch(e,n,r,s){const i=this.nr;this.nr++,this.mutationQueue.length>0&&this.mutationQueue[this.mutationQueue.length-1];const o=new xj(i,n,r,s);this.mutationQueue.push(o);for(const a of s)this.Xr=this.Xr.add(new Qt(a.key,i)),this.indexManager.addToCollectionParentIndex(e,a.key.path.popLast());return q.resolve(o)}lookupMutationBatch(e,n){return q.resolve(this.ei(n))}getNextMutationBatchAfterBatchId(e,n){const r=n+1,s=this.ti(r),i=s<0?0:s;return q.resolve(this.mutationQueue.length>i?this.mutationQueue[i]:null)}getHighestUnacknowledgedBatchId(){return q.resolve(this.mutationQueue.length===0?rE:this.nr-1)}getAllMutationBatches(e){return q.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(e,n){const r=new Qt(n,0),s=new Qt(n,Number.POSITIVE_INFINITY),i=[];return this.Xr.forEachInRange([r,s],(o=>{const a=this.ei(o.Zr);i.push(a)})),q.resolve(i)}getAllMutationBatchesAffectingDocumentKeys(e,n){let r=new Yt(Le);return n.forEach((s=>{const i=new Qt(s,0),o=new Qt(s,Number.POSITIVE_INFINITY);this.Xr.forEachInRange([i,o],(a=>{r=r.add(a.Zr)}))})),q.resolve(this.ni(r))}getAllMutationBatchesAffectingQuery(e,n){const r=n.path,s=r.length+1;let i=r;we.isDocumentKey(i)||(i=i.child(""));const o=new Qt(new we(i),0);let a=new Yt(Le);return this.Xr.forEachWhile((l=>{const u=l.key.path;return!!r.isPrefixOf(u)&&(u.length===s&&(a=a.add(l.Zr)),!0)}),o),q.resolve(this.ni(a))}ni(e){const n=[];return e.forEach((r=>{const s=this.ei(r);s!==null&&n.push(s)})),n}removeMutationBatch(e,n){it(this.ri(n.batchId,"removed")===0,55003),this.mutationQueue.shift();let r=this.Xr;return q.forEach(n.mutations,(s=>{const i=new Qt(s.key,n.batchId);return r=r.delete(i),this.referenceDelegate.markPotentiallyOrphaned(e,s.key)})).next((()=>{this.Xr=r}))}sr(e){}containsKey(e,n){const r=new Qt(n,0),s=this.Xr.firstAfterOrEqual(r);return q.resolve(n.isEqual(s&&s.key))}performConsistencyCheck(e){return this.mutationQueue.length,q.resolve()}ri(e,n){return this.ti(e)}ti(e){return this.mutationQueue.length===0?0:e-this.mutationQueue[0].batchId}ei(e){const n=this.ti(e);return n<0||n>=this.mutationQueue.length?null:this.mutationQueue[n]}}class E5{constructor(e){this.ii=e,this.docs=(function(){return new It(we.comparator)})(),this.size=0}setIndexManager(e){this.indexManager=e}addEntry(e,n){const r=n.key,s=this.docs.get(r),i=s?s.size:0,o=this.ii(n);return this.docs=this.docs.insert(r,{document:n.mutableCopy(),size:o}),this.size+=o-i,this.indexManager.addToCollectionParentIndex(e,r.path.popLast())}removeEntry(e){const n=this.docs.get(e);n&&(this.docs=this.docs.remove(e),this.size-=n.size)}getEntry(e,n){const r=this.docs.get(n);return q.resolve(r?r.document.mutableCopy():Pn.newInvalidDocument(n))}getEntries(e,n){let r=si();return n.forEach((s=>{const i=this.docs.get(s);r=r.insert(s,i?i.document.mutableCopy():Pn.newInvalidDocument(s))})),q.resolve(r)}getDocumentsMatchingQuery(e,n,r,s){let i=si();const o=n.path,a=new we(o.child("__id-9223372036854775808__")),l=this.docs.getIteratorFrom(a);for(;l.hasNext();){const{key:u,value:{document:f}}=l.getNext();if(!o.isPrefixOf(u.path))break;u.path.length>o.length+1||X$(K$(f),r)<=0||(s.has(f.key)||np(n,f))&&(i=i.insert(f.key,f.mutableCopy()))}return q.resolve(i)}getAllFromCollectionGroup(e,n,r,s){Ie(9500)}si(e,n){return q.forEach(this.docs,(r=>n(r)))}newChangeBuffer(e){return new v5(this)}getSize(e){return q.resolve(this.size)}}class v5 extends h5{constructor(e){super(),this.Br=e}applyChanges(e){const n=[];
vendor: 4,797 bytes, line 40
40return this.changes.forEach(((r,s)=>{s.isValidDocument()?n.push(this.Br.addEntry(e,s)):this.Br.removeEntry(r)})),q.waitFor(n)}getFromCache(e,n){return this.Br.getEntry(e,n)}getAllFromCache(e,n){return this.Br.getEntries(e,n)}}class T5{constructor(e){this.persistence=e,this.oi=new ua((n=>oE(n)),aE),this.lastRemoteSnapshotVersion=Oe.min(),this.highestTargetId=0,this._i=0,this.ai=new hE,this.targetCount=0,this.ui=al.cr()}forEachTarget(e,n){return this.oi.forEach(((r,s)=>n(s))),q.resolve()}getLastRemoteSnapshotVersion(e){return q.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(e){return q.resolve(this._i)}allocateTargetId(e){return this.highestTargetId=this.ui.next(),q.resolve(this.highestTargetId)}setTargetsMetadata(e,n,r){return r&&(this.lastRemoteSnapshotVersion=r),n>this._i&&(this._i=n),q.resolve()}Tr(e){this.oi.set(e.target,e);const n=e.targetId;n>this.highestTargetId&&(this.ui=new al(n),this.highestTargetId=n),e.sequenceNumber>this._i&&(this._i=e.sequenceNumber)}addTargetData(e,n){return this.Tr(n),this.targetCount+=1,q.resolve()}updateTargetData(e,n){return this.Tr(n),q.resolve()}removeTargetData(e,n){return this.oi.delete(n.target),this.ai.Hr(n.targetId),this.targetCount-=1,q.resolve()}removeTargets(e,n,r){let s=0;const i=[];return this.oi.forEach(((o,a)=>{a.sequenceNumber<=n&&r.get(a.targetId)===null&&(this.oi.delete(o),i.push(this.removeMatchingKeysForTargetId(e,a.targetId)),s++)})),q.waitFor(i).next((()=>s))}getTargetCount(e){return q.resolve(this.targetCount)}getTargetData(e,n){const r=this.oi.get(n)||null;return q.resolve(r)}addMatchingKeys(e,n,r){return this.ai.Gr(n,r),q.resolve()}removeMatchingKeys(e,n,r){this.ai.jr(n,r);const s=this.persistence.referenceDelegate,i=[];return s&&n.forEach((o=>{i.push(s.markPotentiallyOrphaned(e,o))})),q.waitFor(i)}removeMatchingKeysForTargetId(e,n){return this.ai.Hr(n),q.resolve()}getMatchingKeysForTargetId(e,n){const r=this.ai.Yr(n);return q.resolve(r)}containsKey(e,n){return q.resolve(this.ai.containsKey(n))}}class oP{constructor(e,n){this.ci={},this.overlays={},this.li=new Jd(0),this.hi=!1,this.hi=!0,this.Pi=new _5,this.referenceDelegate=e(this),this.Ti=new T5(this),this.indexManager=new i5,this.remoteDocumentCache=(function(s){return new E5(s)})((r=>this.referenceDelegate.Ii(r))),this.serializer=new r5(n),this.Ei=new m5(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.hi=!1,Promise.resolve()}get started(){return this.hi}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(e){return this.indexManager}getDocumentOverlayCache(e){let n=this.overlays[e.toKey()];return n||(n=new g5,this.overlays[e.toKey()]=n),n}getMutationQueue(e,n){let r=this.ci[e.toKey()];return r||(r=new y5(n,this.referenceDelegate),this.ci[e.toKey()]=r),r}getGlobalsCache(){return this.Pi}getTargetCache(){return this.Ti}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.Ei}runTransaction(e,n,r){ce("MemoryPersistence","Starting transaction:",e);const s=new w5(this.li.next());return this.referenceDelegate.di(),r(s).next((i=>this.referenceDelegate.Ai(s).next((()=>i)))).toPromise().then((i=>(s.raiseOnCommittedEvent(),i)))}Ri(e,n){return q.or(Object.values(this.ci).map((r=>()=>r.containsKey(e,n))))}}class w5 extends Q${constructor(e){super(),this.currentSequenceNumber=e}}class dE{constructor(e){this.persistence=e,this.Vi=new hE,this.mi=null}static fi(e){return new dE(e)}get gi(){if(this.mi)return this.mi;throw Ie(60996)}addReference(e,n,r){return this.Vi.addReference(r,n),this.gi.delete(r.toString()),q.resolve()}removeReference(e,n,r){return this.Vi.removeReference(r,n),this.gi.add(r.toString()),q.resolve()}markPotentiallyOrphaned(e,n){return this.gi.add(n.toString()),q.resolve()}removeTarget(e,n){this.Vi.Hr(n.targetId).forEach((s=>this.gi.add(s.toString())));const r=this.persistence.getTargetCache();return r.getMatchingKeysForTargetId(e,n.targetId).next((s=>{s.forEach((i=>this.gi.add(i.toString())))})).next((()=>r.removeTargetData(e,n)))}di(){this.mi=new Set}Ai(e){const n=this.persistence.getRemoteDocumentCache().newChangeBuffer();return q.forEach(this.gi,(r=>{const s=we.fromPath(r);return this.pi(e,s).next((i=>{i||n.removeEntry(s,Oe.min())}))})).next((()=>(this.mi=null,n.apply(e))))}updateLimboDocument(e,n){return this.pi(e,n).next((r=>{r?this.gi.delete(n.toString()):this.gi.add(n.toString())}))}Ii(e){return 0}pi(e,n){return q.or([()=>q.resolve(this.Vi.containsKey(n)),()=>this.persistence.getTargetCache().containsKey(e,n),()=>this.persistence.Ri(e,n)])}}class ed{constructor(e,n){this.persistence=e,this.yi=new ua((r=>tj(r.path)),((r,s)=>r.isEqual(s))),this.garbageCollector=f5(this,n)}static fi(e,n){return new ed(e,n)}di(){}Ai(e){return q.resolve()}forEachTarget(e,n){return this.persistence.getTargetCache().forEac
40hTarget(e,n)}pr(e){const n=this.Sr(e);return this.persistence.getTargetCache().getTargetCount(e).next((r=>n.next((s=>r+s))))}Sr(e){let n=0;return this.yr(e,(r=>{n++})).next((()=>n))}yr(e,n){return q.forEach(this.yi,((r,s)=>this.Dr(e,r,s).next((i=>i?q.resolve():n(s)))))}removeTargets(e,n,r){return this.persistence.getTargetCache().removeTargets(e,n,r)}removeOrphanedDocuments(e,n){let r=0;const s=this.persistence.getRemoteDocumentCache(),i=s.newChangeBuffer();return s.si(e,(o=>this.Dr(e,o,n).next((a=>{a||(r++,i.removeEntry(o,Oe.min()))})))).next((()=>i.apply(e))).next((()=>r))}markPotentiallyOrphaned(e,n){return this.yi.set(n,e.currentSequenceNumber),q.resolve()}removeTarget(e,n){const r=n.withSequenceNumber(e.currentSequenceNumber);return this.persistence.getTargetCache().updateTargetData(e,r)}addReference(e,n,r){return this.yi.set(r,e.currentSequenceNumber),q.resolve()}removeReference(e,n,r){return this.yi.set(r,e.currentSequenceNumber),q.resolve()}updateLimboDocument(e,n){return this.yi.set(n,e.currentSequenceNumber),q.resolve()}Ii(e){let n=e.key.toString().length;return e.isFoundDocument()&&(n+=nh(e.data.value)),n}Dr(e,n,r){return q.or([()=>this.persistence.Ri(e,n),()=>this.persistence.getTargetCache().containsKey(e,n),()=>{const s=this.yi.get(n);return q.resolve(s!==void 0&&s>r)}])}getCacheSize(e){return this.persistence.getRemoteDocumentCache().getSize(e)}}class pE{constructor(e,n,r,s){this.targetId=e,this.fromCache=n,this.ds=r,this.As=s}static Rs(e,n){let r=je(),s=je();for(const i of n.docChanges)switch(i.type){case 0:r=r.add(i.doc.key);break;case 1:s=s.add(i.doc.key)}return new pE(e,n.fromCache,r,s)}}class b5{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(e){this._documentReadCount+=e}}class S5{constructor(){this.Vs=!1,this.fs=!1,this.gs=100,this.ps=(function(){return pB()?8:Z$(Un())>0?6:4})()}initialize(e,n){this.ys=e,this.indexManager=n,this.Vs=!0}getDocumentsMatchingQuery(e,n,r,s){const i={result:null};return this.ws(e,n).next((o=>{i.result=o})).next((()=>{if(!i.result)return this.Ss(e,n,s,r).next((o=>{i.result=o}))})).next((()=>{if(i.result)return;const o=new b5;return this.bs(e,n,o).next((a=>{if(i.result=a,this.fs)return this.Ds(e,n,o,a.size)}))})).next((()=>i.result))}Ds(e,n,r,s){return r.documentReadCount<this.gs?(Ra()<=He.DEBUG&&ce("QueryEngine","SDK will not create cache indexes for query:",Ca(n),"since it only creates cache indexes for collection contains","more than or equal to",this.gs,"documents"),q.resolve()):(Ra()<=He.DEBUG&&ce("QueryEngine","Query:",Ca(n),"scans",r.documentReadCount,"local documents and returns",s,"documents as results."),r.documentReadCount>this.ps*s?(Ra()<=He.DEBUG&&ce("QueryEngine","The SDK decides to create cache indexes for query:",Ca(n),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(e,ps(n))):q.resolve())}ws(e,n){if(_b(n))return q.resolve(null);let r=ps(n);return this.indexManager.getIndexType(e,r).next((s=>s===0?null:(n.limit!==null&&s===1&&(n=Qh(n,null,"F"),r=ps(n)),this.indexManager.getDocumentsMatchingTarget(e,r).next((i=>{const o=je(...i);return this.ys.getDocuments(e,o).next((a=>this.indexManager.getMinOffset(e,r).next((l=>{const u=this.vs(n,a);return this.Cs(n,u,o,l.readTime)?this.ws(e,Qh(n,null,"F")):this.Fs(e,u,n,l)}))))})))))}Ss(e,n,r,s){return _b(n)||s.isEqual(Oe.min())?q.resolve(null):this.ys.getDocuments(e,r).next((i=>{const o=this.vs(n,i);return this.Cs(n,o,r,s)?q.resolve(null):(Ra()<=He.DEBUG&&ce("QueryEngine","Re-using previous result from %s to execute query: %s",s.toString(),Ca(n)),this.Fs(e,o,n,z$(s,Qc)).next((a=>a)))}))}vs(e,n){let r=new Yt(M1(e));return n.forEach(((s,i)=>{np(e,i)&&(r=r.add(i))})),r}Cs(e,n,r,s){if(e.limit===null)return!1;if(r.size!==n.size)return!0;const i=e.limitType==="F"?n.last():n.first();return!!i&&(i.hasPendingWrites||i.version.compareTo(s)>0)}bs(e,n,r){return Ra()<=He.DEBUG&&ce("QueryEngine","Using full collection scan to execute query:",Ca(n)),this.ys.getDocumentsMatchingQuery(e,n,Ki.min(),r)}
40Fs(e,n,r,s){return this.ys.getDocumentsMatchingQuery(e,r,s).next((i=>(n.forEach((o=>{i=i.insert(o.key,o)})),i)))}}const mE="LocalStore",I5=3e8;class A5{constructor(e,n,r,s){this.persistence=e,this.Ms=n,this.serializer=s,this.xs=new It(Le),this.Os=new ua((i=>oE(i)),aE),this.Ns=new Map,this.Bs=e.getRemoteDocumentCache(),this.Ti=e.getTargetCache(),this.Ei=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 p5(this.Bs,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.Bs.setIndexManager(this.indexManager),this.Ms.initialize(this.localDocuments,this.indexManager)}collectGarbage(e){return this.persistence.runTransaction("Collect garbage","readwrite-primary",(n=>e.collect(n,this.xs)))}}function R5(t,e,n,r){return new A5(t,e,n,r)}async function aP(t,e){const n=De(t);return await n.persistence.runTransaction("Handle user change","readonly",(r=>{let s;
40return n.mutationQueue.getAllMutationBatches(r).next((i=>(s=i,n.Ls(e),n.mutationQueue.getAllMutationBatches(r)))).next((i=>{const o=[],a=[];let l=je();for(const u of s){o.push(u.batchId);for(const f of u.mutations)l=l.add(f.key)}for(const u of i){a.push(u.batchId);for(const f of u.mutations)l=l.add(f.key)}return n.localDocuments.getDocuments(r,l).next((u=>({ks:u,removedBatchIds:o,addedBatchIds:a})))}))}))}function C5(t,e){const n=De(t);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",(r=>{const s=e.batch.keys(),i=n.Bs.newChangeBuffer({trackRemovals:!0});return(function(a,l,u,f){const h=u.batch,d=h.keys();let p=q.resolve();return d.forEach((g=>{p=p.next((()=>f.getEntry(l,g))).next((_=>{const v=u.docVersions.get(g);it(v!==null,48541),_.version.compareTo(v)<0&&(h.applyToRemoteDocument(_,u),_.isValidDocument()&&(_.setReadTime(u.commitVersion),f.addEntry(_)))}))})),p.next((()=>a.mutationQueue.removeMutationBatch(l,h)))})(n,r,e,i).next((()=>i.apply(r))).next((()=>n.mutationQueue.performConsistencyCheck(r))).next((()=>n.documentOverlayCache.removeOverlaysForBatchId(r,s,e.batch.batchId))).next((()=>n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(r,(function(a){let l=je();for(let u=0;u<a.mutationResults.length;++u)a.mutationResults[u].transformResults.length>0&&(l=l.add(a.batch.mutations[u].key));return l})(e)))).next((()=>n.localDocuments.getDocuments(r,s)))}))}function lP(t){const e=De(t);return e.persistence.runTransaction("Get last remote snapshot version","readonly",(n=>e.Ti.getLastRemoteSnapshotVersion(n)))}function P5(t,e){const n=De(t),r=e.snapshotVersion;let s=n.xs;return n.persistence.runTransaction("Apply remote event","readwrite-primary",(i=>{const o=n.Bs.newChangeBuffer({trackRemovals:!0});s=n.xs;const a=[];
40e.targetChanges.forEach(((f,h)=>{const d=s.get(h);if(!d)return;a.push(n.Ti.removeMatchingKeys(i,f.removedDocuments,h).next((()=>n.Ti.addMatchingKeys(i,f.addedDocuments,h))));let p=d.withSequenceNumber(i.currentSequenceNumber);e.targetMismatches.get(h)!==null?p=p.withResumeToken(gn.EMPTY_BYTE_STRING,Oe.min()).withLastLimboFreeSnapshotVersion(Oe.min()):f.resumeToken.approximateByteSize()>0&&(p=p.withResumeToken(f.resumeToken,r)),s=s.insert(h,p),(function(_,v,N){return _.resumeToken.approximateByteSize()===0||v.snapshotVersion.toMicroseconds()-_.snapshotVersion.toMicroseconds()>=I5?!0:N.addedDocuments.size+N.modifiedDocuments.size+N.removedDocuments.size>0})(d,p,f)&&a.push(n.Ti.updateTargetData(i,p))}));let l=si(),u=je();if(e.documentUpdates.forEach((f=>{e.resolvedLimboDocuments.has(f)&&a.push(n.persistence.referenceDelegate.updateLimboDocument(i,f))})),a.push(O5(i,o,e.documentUpdates).next((f=>{l=f.qs,u=f.Qs}))),!r.isEqual(Oe.min())){const f=n.Ti.getLastRemoteSnapshotVersion(i).next((h=>n.Ti.setTargetsMetadata(i,i.currentSequenceNumber,r)));a.push(f)}return q.waitFor(a).next((()=>o.apply(i))).next((()=>n.localDocuments.getLocalViewOfDocuments(i,l,u))).next((()=>l))})).then((i=>(n.xs=s,i)))}function O5(t,e,n){let r=je(),s=je();return n.forEach((i=>r=r.add(i))),e.getEntries(t,r).next((i=>{let o=si();return n.forEach(((a,l)=>{const u=i.get(a);l.isFoundDocument()!==u.isFoundDocument()&&(s=s.add(a)),l.isNoDocument()&&l.version.isEqual(Oe.min())?(e.removeEntry(a,l.readTime),o=o.insert(a,l)):!u.isValidDocument()||l.version.compareTo(u.version)>0||l.version.compareTo(u.version)===0&&u.hasPendingWrites?(e.addEntry(l),o=o.insert(a,l)):ce(mE,"Ignoring outdated watch update for ",a,". Current version:",u.version," Watch version:",l.version)})),{qs:o,Qs:s}}))}function N5(t,e){const n=De(t);return n.persistence.runTransaction("Get next mutation batch","readonly",(r=>(e===void 0&&(e=rE),n.mutationQueue.getNextMutationBatchAfterBatchId(r,e))))}function k5(t,e){const n=De(t);return n.persistence.runTransaction("Allocate target","readwrite",(r=>{let s;return n.Ti.getTargetData(r,e).next((i=>i?(s=i,q.resolve(s)):n.Ti.allocateTargetId(r).next((o=>(s=new ki(e,o,"TargetPurposeListen",r.currentSequenceNumber),n.Ti.addTargetData(r,s).next((()=>s)))))))})).then((r=>{const s=n.xs.get(r.targetId);return(s===null||r.snapshotVersion.compareTo(s.snapshotVersion)>0)&&(n.xs=n.xs.insert(r.targetId,r),n.Os.set(e,r.targetId)),r}))}async function d_(t,e,n){const r=De(t),s=r.xs.get(e),i=n?"readwrite":"readwrite-primary";try{n||await r.persistence.runTransaction("Release target",i,(o=>r.persistence.referenceDelegate.removeTarget(o,s)))}catch(o){if(!Cl(o))throw o;ce(mE,`Failed to update sequence numbers for target ${e}: ${o}`)}r.xs=r.xs.remove(e),r.Os.delete(s.target)}function Ob(t,e,n){const r=De(t);let s=Oe.min(),i=je();return r.persistence.runTransaction("Execute query","readwrite",(o=>(function(l,u,f){const h=De(l),d=h.Os.get(f);return d!==void 0?q.resolve(h.xs.get(d)):h.Ti.getTargetData(u,f)})(r,o,ps(e)).next((a=>{if(a)return s=a.lastLimboFreeSnapshotVersion,r.Ti.getMatchingKeysForTargetId(o,a.targetId).next((l=>{i=l}))})).next((()=>r.Ms.getDocumentsMatchingQuery(o,e,n?s:Oe.min(),n?i:je()))).next((a=>(D5(r,vj(e),a),{documents:a,$s:i})))))}function D5(t,e,n){let r=t.Ns.get(e)||Oe.min();n.forEach(((s,i)=>{i.readTime.compareTo(r)>0&&(r=i.readTime)})),t.Ns.set(e,r)}class Nb{constructor(){this.activeTargetIds=Aj()}js(e){this.activeTargetIds=this.activeTargetIds.add(e)}Hs(e){this.activeTargetIds=this.activeTargetIds.delete(e)}zs(){const e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)}}class x5{constructor(){this.xo=new Nb,this.Oo={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(e){}updateMutationState(e,n,r){}addLocalQueryTarget(e,n=!0){return n&&this.xo.js(e),this.Oo[e]||"not-current"}updateQueryState(e,n,r){this.Oo[e]=n}removeLocalQueryTarget(e){this.xo.Hs(e)}isLocalQueryTarget(e){return this.xo.activeTargetIds.has(e)}clearQueryState(e){delete this.Oo[e]}getAllActiveQueryTargets(){return this.xo.activeTargetIds}isActiveQueryTarget(e){return this.xo.activeTargetIds.has(e)}start(){return this.xo=new Nb,Promise.resolve()}handleUserChange(e,n,r){}setOnlineState(e){}shutdown(){}writeSequenceNumber(e){}notifyBundleLoaded(e){}}class M5{No(e){}shutdown(){}}const kb="ConnectivityMonitor";class Db{constructor(){this.Bo=()=>this.Lo(),this.ko=()=>this.qo(),this.Qo=[],this.$o()}No(e){this.Qo.push(e)}shutdown(){window.removeEventListener("online",this.Bo),window.removeEventListener("offline",this.ko)}$o(){window.addEventListener("online",this.Bo),window.addEventListener("offline",this.ko)}Lo(){ce(kb,"Network connectivity changed: AVAILABLE");for(const e of this.Qo)e(0)}qo(){ce(kb,"Network connectivity changed: UNAVAILABLE");for(const e of this.Qo)e(1)}static C(){return typeof window<"u"&&window.addEventListener!==void 0&&window.removeEventListener!==void 0}}let Mf=null;function p_(){return Mf===null?Mf=(function(){return 268435456+Math.round(2147483648*Math.random())})():Mf++,"0x"+Mf.toString(16)}const Hm="RestConnection",L5={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregation
40Query:"runAggregationQuery"};class V5{get Uo(){return!1}constructor(e){this.databaseInfo=e,this.databaseId=e.databaseId;const n=e.ssl?"https":"http",r=encodeURIComponent(this.databaseId.projectId),s=encodeURIComponent(this.databaseId.database);this.Ko=n+"://"+e.host,this.Wo=`projects/${r}/databases/${s}`,this.Go=this.databaseId.database===Kh?`project_id=${r}`:`project_id=${r}&database_id=${s}`}zo(e,n,r,s,i){const o=p_(),a=this.jo(e,n.toUriEncodedString());ce(Hm,`Sending RPC '${e}' ${o}:`,a,r);const l={"google-cloud-resource-prefix":this.Wo,"x-goog-request-params":this.Go};this.Ho(l,s,i);const{host:u}=new URL(a),f=wl(u);return this.Jo(e,a,l,r,f).then((h=>(ce(Hm,`Received RPC '${e}' ${o}: `,h),h)),(h=>{throw rl(Hm,`RPC '${e}' ${o} failed with error: `,h,"url: ",a,"request:",r),h}))}Yo(e,n,r,s,i,o){return this.zo(e,n,r,s,i)}Ho(e,n,r){e["X-Goog-Api-Client"]=(function(){return"gl-js/ fire/"+Al})(),e["Content-Type"]="text/plain",this.databaseInfo.appId&&(e["X-Firebase-GMPID"]=this.databaseInfo.appId),n&&n.headers.forEach(((s,i)=>e[i]=s)),r&&r.headers.forEach(((s,i)=>e[i]=s))}jo(e,n){const r=L5[e];return`${this.Ko}/v1/${n}:${r}`}terminate(){}}class U5{constructor(e){this.Zo=e.Zo,this.Xo=e.Xo}e_(e){this.t_=e}n_(e){this.r_=e}i_(e){this.s_=e}onMessage(e){this.o_=e}close(){this.Xo()}send(e){this.Zo(e)}__(){this.t_()}a_(){this.r_()}u_(e){this.s_(e)}c_(e){this.o_(e)}}const Tn="WebChannelConnection";class F5 extends V5{constructor(e){super(e),this.forceLongPolling=e.forceLongPolling,this.autoDetectLongPolling=e.autoDetectLongPolling,this.useFetchStreams=e.useFetchStreams,this.longPollingOptions=e.longPollingOptions}Jo(e,n,r,s,i){const o=p_();return new Promise(((a,l)=>{const u=new l1;u.setWithCredentials(!0),u.listenOnce(c1.COMPLETE,(()=>{try{switch(u.getLastErrorCode()){case th.NO_ERROR:const h=u.getResponseJson();ce(Tn,`XHR for RPC '${e}' ${o} received:`,JSON.stringify(h)),a(h);break;case th.TIMEOUT:ce(Tn,`RPC '${e}' ${o} timed out`),l(new le(j.DEADLINE_EXCEEDED,"Request time out"));break;case th.HTTP_ERROR:const d=u.getStatus();if(ce(Tn,`RPC '${e}' ${o} failed with status:`,d,"response text:",u.getResponseText()),d>0){let p=u.getResponseJson();Array.isArray(p)&&(p=p[0]);const g=p?.error;if(g&&g.status&&g.message){const _=(function(N){const O=N.toLowerCase().replace(/_/g,"-");return Object.values(j).indexOf(O)>=0?O:j.UNKNOWN})(g.status);l(new le(_,g.message))}else l(new le(j.UNKNOWN,"Server responded with status "+u.getStatus()))}else l(new le(j.UNAVAILABLE,"Connection failed."));break;default:Ie(9055,{l_:e,streamId:o,h_:u.getLastErrorCode(),P_:u.getLastError()})}}finally{ce(Tn,`RPC '${e}' ${o} completed.`)}}));const f=JSON.stringify(s);ce(Tn,`RPC '${e}' ${o} sending request:`,s),u.send(n,"POST",f,r,15)}))}T_(e,n,r){const s=p_(),i=[this.Ko,"/","google.firestore.v1.Firestore","/",e,"/channel"],o=h1(),a=f1(),l={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:`projects/${this.databaseId.projectId}/databases/${this.databaseId.database}`},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling},u=this.longPollingOptions.timeoutSeconds;u!==void 0&&(l.longPollingTimeout=Math.round(1e3*u)),this.useFetchStreams&&(l.useFetchStreams=!0),this.Ho(l.initMessageHeaders,n,r),l.encodeInitMessageHeaders=!0;const f=i.join("");ce(Tn,`Creating RPC '${e}' stream ${s}: ${f}`,l);const h=o.createWebChannel(f,l);let d=!1,p=!1;const g=new U5({Zo:v=>{p?ce(Tn,`Not sending because RPC '${e}' stream ${s} is closed:`,v):(d||(ce(Tn,`Opening RPC '${e}' stream ${s} transport.`),h.open(),d=!0),ce(Tn,`RPC '${e}' stream ${s} sending:`,v),h.send(v))},Xo:()=>h.close()}),_=(v,N,O)=>
40{v.listen(N,(T=>{try{O(T)}catch(C){setTimeout((()=>{throw C}),0)}}))};return _(h,lc.EventType.OPEN,(()=>{p||(ce(Tn,`RPC '${e}' stream ${s} transport opened.`),g.__())})),_(h,lc.EventType.CLOSE,(()=>{p||(p=!0,ce(Tn,`RPC '${e}' stream ${s} transport closed`),g.u_())})),_(h,lc.EventType.ERROR,(v=>{p||(p=!0,rl(Tn,`RPC '${e}' stream ${s} transport errored. Name:`,v.name,"Message:",v.message),g.u_(new le(j.UNAVAILABLE,"The operation could not be completed")))})),_(h,lc.EventType.MESSAGE,(v=>{var N;if(!p){const O=v.data[0];it(!!O,16349);const T=O,C=T?.error||((N=T[0])===null||N===void 0?void 0:N.error);if(C){ce(Tn,`RPC '${e}' stream ${s} received error:`,C);const x=C.status;let L=(function(E){const b=Ft[E];if(b!==void 0)return K1(b)})(x),R=C.message;L===void 0&&(L=j.INTERNAL,R="Unknown error status: "+x+" with message "+C.message),p=!0,g.u_(new le(L,R)),h.close()}else ce(Tn,`RPC '${e}' stream ${s} received:`,O),g.c_(O)}})),_(a,u1.STAT_EVENT,(v=>{v.stat===n_.PROXY?ce(Tn,`RPC '${e}' stream ${s} detected buffering proxy`):v.stat===n_.NOPROXY&&ce(Tn,`RPC '${e}' stream ${s} detected no buffering proxy`)})),setTimeout((()=>{g.a_()}),0),g}}function $m(){return typeof document<"u"?document:null}function op(t){return new jj(t,!0)}class cP{constructor(e,n,r=1e3,s=1.5,i=6e4){this.xi=e,this.timerId=n,this.I_=r,this.E_=s,this.d_=i,this.A_=0,this.R_=null,this.V_=Date.now(),this.reset()}reset(){this.A_=0}m_(){this.A_=this.d_}f_(e){this.cancel();const n=Math.floor(this.A_+this.g_()),r=Math.max(0,Date.now()-this.V_),s=Math.max(0,n-r);s>0&&ce("ExponentialBackoff",`Backing off for ${s} ms (base delay: ${this.A_} ms, delay with jitter: ${n} ms, last attempt: ${r} ms ago)`),this.R_=this.xi.enqueueAfterDelay(this.timerId,s,(()=>(this.V_=Date.now(),e()))),this.A_*=this.E_,this.A_<this.I_&&(this.A_=this.I_),this.A_>this.d_&&(this.A_=this.d_)}p_(){this.R_!==null&&(this.R_.skipDelay(),this.R_=null)}cancel(){this.R_!==null&&(this.R_.cancel(),this.R_=null)}g_(){return(Math.random()-.5)*this.A_}}const xb="PersistentStream";class uP{constructor(e,n,r,s,i,o,a,l){this.xi=e,this.y_=r,this.w_=s,this.connection=i,this.authCredentialsProvider=o,this.appCheckCredentialsProvider=a,this.listener=l,this.state=0,this.S_=0,this.b_=null,this.D_=null,this.stream=null,this.v_=0,this.C_=new cP(e,n)}F_(){return this.state===1||this.state===5||this.M_()}M_(){return this.state===2||this.state===3}start(){this.v_=0,this.state!==4?this.auth():this.x_()}async stop(){this.F_()&&await this.close(0)}O_(){this.state=0,this.C_.reset()}N_(){this.M_()&&this.b_===null&&(this.b_=this.xi.enqueueAfterDelay(this.y_,6e4,(()=>this.B_())))}L_(e){this.k_(),this.stream.send(e)}async B_(){if(this.M_())return this.close(0)}k_(){this.b_&&(this.b_.cancel(),this.b_=null)}q_(){this.D_&&(this.D_.cancel(),this.D_=null)}async close(e,n){this.k_(),this.q_(),this.C_.cancel(),this.S_++,e!==4?this.C_.reset():n&&n.code===j.RESOURCE_EXHAUSTED?(ri(n.toString()),ri("Using maximum backoff delay to prevent overloading the backend."),this.C_.m_()):n&&n.code===j.UNAUTHENTICATED&&this.state!==3&&(this.authCredentialsProvider.invalidateToken(),this.appCheckCredentialsProvider.invalidateToken()),this.stream!==null&&(this.Q_(),this.stream.close(),this.stream=null),this.state=e,await this.listener.i_(n)}Q_(){}auth(){this.state=1;const e=this.U_(this.S_),n=this.S_;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then((([r,s])=>{this.S_===n&&this.K_(r,s)}),(r=>{e((()=>{const s=new le(j.UNKNOWN,"Fetching auth token failed: "+r.message);return this.W_(s)}))}))}K_(e,n){const r=this.U_(this.S_);this.stream=this.G_(e,n),this.stream.e_((()=>{r((()=>this.listener.e_()))})),this.stream.n_((()=>{r((()=>(this.state=2,this.D_=this.xi.enqueueAfterDelay(this.w_,1e4,(()=>(this.M_()&&(this.state=3),Promise.resolve()))),this.listener.n_())))})),this.stream.i_((s=>{r((()=>this.W_(s)))})),this.stream.onMessage((s=>{r((()=>++this.v_==1?this.z_(s):this.onNext(s)))}))}x_(){this.state=5,this.C_.f_((async()=>{this.state=0,this.start()}))}W_(e){return ce(xb,`close with error: ${e}`),this.stream=null,this.close(4,e)}U_(e){return n=>{this.xi.enqueueAndForget((()=>this.S_===e?n():(ce(xb,"stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())))}}}class B5 extends uP{constructor(e,n,r,s,i,o){super(e,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",n,r,s,o),this.serializer
40=i}G_(e,n){return this.connection.T_("Listen",e,n)}z_(e){return this.onNext(e)}onNext(e){this.C_.reset();const n=Gj(this.serializer,e),r=(function(i){if(!("targetChange"in i))return Oe.min();const o=i.targetChange;return o.targetIds&&o.targetIds.length?Oe.min():o.readTime?gs(o.readTime):Oe.min()})(e);return this.listener.j_(n,r)}H_(e){const n={};n.database=h_(this.serializer),n.addTarget=(function(i,o){let a;const l=o.target;if(a=a_(l)?{documents:Kj(i,l)}:{query:Xj(i,l).gt},a.targetId=o.targetId,o.resumeToken.approximateByteSize()>0){a.resumeToken=Q1(i,o.resumeToken);const u=c_(i,o.expectedCount);u!==null&&(a.expectedCount=u)}else if(o.snapshotVersion.compareTo(Oe.min())>0){a.readTime=Zh(i,o.snapshotVersion.toTimestamp());const u=c_(i,o.expectedCount);u!==null&&(a.expectedCount=u)}return a})(this.serializer,e);const r=Qj(this.serializer,e);r&&(n.labels=r),this.L_(n)}J_(e){const n={};n.database=h_(this.serializer),n.removeTarget=e,this.L_(n)}}class H5 extends uP{constructor(e,n,r,s,i,o){super(e,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",n,r,s,o),this.serializer=i}get Y_(){return this.v_>0}start(){this.lastStreamToken=void 0,super.start()}Q_(){this.Y_&&this.Z_([])}G_(e,n){return this.connection.T_("Write",e,n)}z_(e){return it(!!e.streamToken,31322),this.lastStreamToken=e.streamToken,it(!e.writeResults||e.writeResults.length===0,55816),this.listener.X_()}onNext(e){it(!!e.streamToken,12678),this.lastStreamToken=e.streamToken,this.C_.reset();const n=zj(e.writeResults,e.commitTime),r=gs(e.commitTime);return this.listener.ea(r,n)}ta(){const e={};e.database=h_(this.serializer),this.L_(e)}Z_(e){const n={streamToken:this.lastStreamToken,writes:e.map((r=>Yj(this.serializer,r)))};this.L_(n)}}class $5{}class j5 extends $5{constructor(e,n,r,s){super(),this.authCredentials=e,this.appCheckCredentials=n,this.connection=r,this.serializer=s,this.na=!1}ra(){if(this.na)throw new le(j.FAILED_PRECONDITION,"The client has already been terminated.")}zo(e,n,r,s){return this.ra(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then((([i,o])=>this.connection.zo(e,u_(n,r),s,i,o))).catch((i=>{throw i.name==="FirebaseError"?(i.code===j.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),i):new le(j.UNKNOWN,i.toString())}))}Yo(e,n,r,s,i){return this.ra(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then((([o,a])=>this.connection.Yo(e,u_(n,r),s,o,a,i))).catch((o=>{throw o.name==="FirebaseError"?(o.code===j.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),o):new le(j.UNKNOWN,o.toString())}))}terminate(){this.na=!0,this.connection.terminate()}}class q5{constructor(e,n){this.asyncQueue=e,this.onlineStateHandler=n,this.state="Unknown",this.ia=0,this.sa=null,this.oa=!0}_a(){this.ia===0&&(this.aa("Unknown"),this.sa=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,(()=>(this.sa=null,this.ua("Backend didn't respond within 10 seconds."),this.aa("Offline"),Promise.resolve()))))}ca(e){this.state==="Online"?this.aa("Unknown"):(this.ia++,this.ia>=1&&(this.la(),this.ua(`Connection failed 1 times. Most recent error: ${e.toString()}`),this.aa("Offline")))}set(e){this.la(),this.ia=0,e==="Online"&&(this.oa=!1),this.aa(e)}aa(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))}ua(e){const n=`Could not reach Cloud Firestore backend. ${e} 41This 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.oa?(ri(n),this.oa=!1):ce("OnlineStateTracker",n)}la(){this.sa!==null&&(this.sa.cancel(),this.sa=null)}}const Qo="RemoteStore";class W5{constructor(e,n,r,s,i){this.localStore=e,this.datastore=n,this.asyncQueue=r,this.remoteSyncer={},this.ha=[],this.Pa=new Map,this.Ta=new Set,this.Ia=[],this.Ea=i,this.Ea.No((o=>{r.enqueueAndForget((async()=>{fa(this)&&(ce(Qo,"Restarting streams for network reachability change."),await(async function(l){const u=De(l);u.Ta.add(4),await Vu(u),u.da.set("Unknown"),u.Ta.delete(4),await ap(u)})(this))}))})),this.da=new q5(r,s)}}async function ap(t){if(fa(t))for(const e of t.Ia)await e(!0)}async function Vu(t){for(const e of t.Ia)await e(!1)}function fP(t,e){const n=De(t);
41n.Pa.has(e.targetId)||(n.Pa.set(e.targetId,e),EE(n)?yE(n):Ol(n).M_()&&_E(n,e))}function gE(t,e){const n=De(t),r=Ol(n);n.Pa.delete(e),r.M_()&&hP(n,e),n.Pa.size===0&&(r.M_()?r.N_():fa(n)&&n.da.set("Unknown"))}function _E(t,e){if(t.Aa.Ke(e.targetId),e.resumeToken.approximateByteSize()>0||e.snapshotVersion.compareTo(Oe.min())>0){const n=t.remoteSyncer.getRemoteKeysForTarget(e.targetId).size;e=e.withExpectedCount(n)}Ol(t).H_(e)}function hP(t,e){t.Aa.Ke(e),Ol(t).J_(e)}function yE(t){t.Aa=new Fj({getRemoteKeysForTarget:e=>t.remoteSyncer.getRemoteKeysForTarget(e),Rt:e=>t.Pa.get(e)||null,Pt:()=>t.datastore.serializer.databaseId}),Ol(t).start(),t.da._a()}function EE(t){return fa(t)&&!Ol(t).F_()&&t.Pa.size>0}function fa(t){return De(t).Ta.size===0}function dP(t){t.Aa=void 0}async function G5(t){t.da.set("Online")}async function Y5(t){t.Pa.forEach(((e,n)=>{_E(t,e)}))}async function z5(t,e){dP(t),EE(t)?(t.da.ca(e),yE(t)):t.da.set("Unknown")}async function K5(t,e,n){if(t.da.set("Online"),e instanceof J1&&e.state===2&&e.cause)try{await(async function(s,i){const o=i.cause;for(const a of i.targetIds)s.Pa.has(a)&&(await s.remoteSyncer.rejectListen(a,o),s.Pa.delete(a),s.Aa.removeTarget(a))})(t,e)}catch(r){ce(Qo,"Failed to remove targets %s: %s ",e.targetIds.join(","),r),await td(t,r)}else if(e instanceof ih?t.Aa.Xe(e):e instanceof X1?t.Aa.ot(e):t.Aa.nt(e),!n.isEqual(Oe.min()))try{const r=await lP(t.localStore);n.compareTo(r)>=0&&await(function(i,o){const a=i.Aa.It(o);
41return a.targetChanges.forEach(((l,u)=>{if(l.resumeToken.approximateByteSize()>0){const f=i.Pa.get(u);f&&i.Pa.set(u,f.withResumeToken(l.resumeToken,o))}})),a.targetMismatches.forEach(((l,u)=>{const f=i.Pa.get(l);if(!f)return;i.Pa.set(l,f.withResumeToken(gn.EMPTY_BYTE_STRING,f.snapshotVersion)),hP(i,l);const h=new ki(f.target,l,u,f.sequenceNumber);_E(i,h)})),i.remoteSyncer.applyRemoteEvent(a)})(t,n)}catch(r){ce(Qo,"Failed to raise snapshot:",r),await td(t,r)}}async function td(t,e,n){if(!Cl(e))throw e;t.Ta.add(1),await Vu(t),t.da.set("Offline"),n||(n=()=>lP(t.localStore)),t.asyncQueue.enqueueRetryable((async()=>{ce(Qo,"Retrying IndexedDB access"),await n(),t.Ta.delete(1),await ap(t)}))}function pP(t,e){return e().catch((n=>td(t,n,e)))}async function lp(t){const e=De(t),n=Zi(e);let r=e.ha.length>0?e.ha[e.ha.length-1].batchId:rE;for(;X5(e);)try{const s=await N5(e.localStore,r);if(s===null){e.ha.length===0&&n.N_();break}r=s.batchId,J5(e,s)}catch(s){await td(e,s)}mP(e)&&gP(e)}function X5(t){return fa(t)&&t.ha.length<10}function J5(t,e){t.ha.push(e);const n=Zi(t);n.M_()&&n.Y_&&n.Z_(e.mutations)}function mP(t){return fa(t)&&!Zi(t).F_()&&t.ha.length>0}function gP(t){Zi(t).start()}async function Q5(t){Zi(t).ta()}async function Z5(t){const e=Zi(t);for(const n of t.ha)e.Z_(n.mutations)}async function e9(t,e,n){const r=t.ha.shift(),s=cE.from(r,e,n);await pP(t,(()=>t.remoteSyncer.applySuccessfulWrite(s))),await lp(t)}async function t9(t,e){e&&Zi(t).Y_&&await(async function(r,s){if((function(o){return Vj(o)&&o!==j.ABORTED})(s.code)){const i=r.ha.shift();Zi(r).O_(),await pP(r,(()=>r.remoteSyncer.rejectFailedWrite(i.batchId,s))),await lp(r)}})(t,e),mP(t)&&gP(t)}async function Mb(t,e){const n=De(t);n.asyncQueue.verifyOperationInProgress(),ce(Qo,"RemoteStore received new credentials");const r=fa(n);n.Ta.add(3),await Vu(n),r&&n.da.set("Unknown"),await n.remoteSyncer.handleCredentialChange(e),n.Ta.delete(3),await ap(n)}async function n9(t,e){const n=De(t);e?(n.Ta.delete(2),await ap(n)):e||(n.Ta.add(2),await Vu(n),n.da.set("Unknown"))}function Ol(t){return t.Ra||(t.Ra=(function(n,r,s){const i=De(n);return i.ra(),new B5(r,i.connection,i.authCredentials,i.appCheckCredentials,i.serializer,s)})(t.datastore,t.asyncQueue,{e_:G5.bind(null,t),n_:Y5.bind(null,t),i_:z5.bind(null,t),j_:K5.bind(null,t)}),t.Ia.push((async e=>{e?(t.Ra.O_(),EE(t)?yE(t):t.da.set("Unknown")):(await t.Ra.stop(),dP(t))}))),t.Ra}
41function Zi(t){return t.Va||(t.Va=(function(n,r,s){const i=De(n);return i.ra(),new H5(r,i.connection,i.authCredentials,i.appCheckCredentials,i.serializer,s)})(t.datastore,t.asyncQueue,{e_:()=>Promise.resolve(),n_:Q5.bind(null,t),i_:t9.bind(null,t),X_:Z5.bind(null,t),ea:e9.bind(null,t)}),t.Ia.push((async e=>{e?(t.Va.O_(),await lp(t)):(await t.Va.stop(),t.ha.length>0&&(ce(Qo,`Stopping write stream with ${t.ha.length} pending writes`),t.ha=[]))}))),t.Va}class vE{constructor(e,n,r,s,i){this.asyncQueue=e,this.timerId=n,this.targetTimeMs=r,this.op=s,this.removalCallback=i,this.deferred=new Ws,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch((o=>{}))}get promise(){return this.deferred.promise}static createAndSchedule(e,n,r,s,i){const o=Date.now()+r,a=new vE(e,n,o,s,i);return a.start(r),a}start(e){this.timerHandle=setTimeout((()=>this.handleDelayElapsed()),e)}skipDelay(){return this.handleDelayElapsed()}cancel(e){this.timerHandle!==null&&(this.clearTimeout(),this.deferred.reject(new le(j.CANCELLED,"Operation cancelled"+(e?": "+e:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget((()=>this.timerHandle!==null?(this.clearTimeout(),this.op().then((e=>this.deferred.resolve(e)))):Promise.resolve()))}clearTimeout(){this.timerHandle!==null&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function TE(t,e){if(ri("AsyncQueue",`${e}: ${t}`),Cl(t))return new le(j.UNAVAILABLE,`${e}: ${t}`);throw t}class $a{static emptySet(e){return new $a(e.comparator)}constructor(e){this.comparator=e?(n,r)=>e(n,r)||we.comparator(n.key,r.key):(n,r)=>we.comparator(n.key,r.key),this.keyedMap=cc(),this.sortedSet=new It(this.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 $a)||this.size!==e.size)return!1;const n=this.sortedSet.getIterator(),r=e.sortedSet.getIterator();for(;n.hasNext();){const s=n.getNext().key,i=r.getNext().key;if(!s.isEqual(i))return!1}return!0}toString(){const e=[];return this.forEach((n=>{e.push(n.toString())})),e.length===0?"DocumentSet ()":`DocumentSet ( 42 `+e.join(` 43`)+` 44)`}copy(e,n){const r=new $a;return r.comparator=this.comparator,r.keyedMap=e,r.sortedSet=n,r}}class Lb{constructor(){this.ma=new It(we.comparator)}track(e){const n=e.doc.key,r=this.ma.get(n);r?e.type!==0&&r.type===3?this.ma=this.ma.insert(n,e):e.type===3&&r.type!==1?this.ma=this.ma.insert(n,{type:r.type,doc:e.doc}):e.type===2&&r.type===2?this.ma=this.ma.insert(n,{type:2,doc:e.doc}):e.type===2&&r.type===0?this.ma=this.ma.insert(n,{type:0,doc:e.doc}):e.type===1&&r.type===0?this.ma=this.ma.remove(n):e.type===1&&r.type===2?this.ma=this.ma.insert(n,{type:1,doc:r.doc}):e.type===0&&r.type===1?this.ma=this.ma.insert(n,{type:2,doc:e.doc}):Ie(63341,{Vt:e,fa:r}):this.ma=this.ma.insert(n,e)}ga(){const e=[];return this.ma.inorderTraversal(((n,r)=>{e.push(r)})),e}}class ll{constructor(e,n,r,s,i,o,a,l,u){this.query=e,this.docs=n,this.oldDocs=r,this.docChanges=s,this.mutatedKeys=i,this.fromCache=o,this.syncStateChanged=a,this.excludesMetadataChanges=l,this.hasCachedResults=u}static fromInitialDocuments(e,n,r,s,i){const o=[];return n.forEach((a=>{o.push({type:0,doc:a})})),new ll(e,n,$a.emptySet(n),o,r,s,!0,!1,i)}get hasPendingWrites(){return!this.mutatedKeys.isEmpty()}isEqual(e){if(!(this.fromCache===e.fromCache&&this.hasCachedResults===e.hasCachedResults&&this.syncStateChanged===e.syncStateChanged&&this.mutatedKeys.isEqual(e.mutatedKeys)&&tp(this.query,e.query)&&this.docs.isEqual(e.docs)&&this.oldDocs.isEqual(e.oldDocs)))return!1;const n=this.docChanges,r=e.docChanges;if(n.length!==r.length)return!1;for(let s=0;s<n.length;s++)if(n[s].type!==r[s].type||!n[s].doc.isEqual(r[s].doc))return!1;return!0}}class r9{constructor(){this.pa=void 0,this.ya=[]}wa(){return this.ya.some((e=>e.Sa()))}}class s9{constructor(){this.queries=Vb(),this.onlineState="Unknown",this.ba=new Set}terminate(){(function(n,r){const s=De(n),i=s.queries;
44s.queries=Vb(),i.forEach(((o,a)=>{for(const l of a.ya)l.onError(r)}))})(this,new le(j.ABORTED,"Firestore shutting down"))}}function Vb(){return new ua((t=>x1(t)),tp)}async function wE(t,e){const n=De(t);let r=3;const s=e.query;let i=n.queries.get(s);i?!i.wa()&&e.Sa()&&(r=2):(i=new r9,r=e.Sa()?0:1);try{switch(r){case 0:i.pa=await n.onListen(s,!0);break;case 1:i.pa=await n.onListen(s,!1);break;case 2:await n.onFirstRemoteStoreListen(s)}}catch(o){const a=TE(o,`Initialization of query '${Ca(e.query)}' failed`);return void e.onError(a)}n.queries.set(s,i),i.ya.push(e),e.Da(n.onlineState),i.pa&&e.va(i.pa)&&SE(n)}async function bE(t,e){const n=De(t),r=e.query;let s=3;const i=n.queries.get(r);if(i){const o=i.ya.indexOf(e);o>=0&&(i.ya.splice(o,1),i.ya.length===0?s=e.Sa()?0:1:!i.wa()&&e.Sa()&&(s=2))}switch(s){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 i9(t,e){const n=De(t);let r=!1;for(const s of e){const i=s.query,o=n.queries.get(i);if(o){for(const a of o.ya)a.va(s)&&(r=!0);o.pa=s}}r&&SE(n)}function o9(t,e,n){const r=De(t),s=r.queries.get(e);if(s)for(const i of s.ya)i.onError(n);r.queries.delete(e)}function SE(t){t.ba.forEach((e=>{e.next()}))}var m_,Ub;(Ub=m_||(m_={})).Ca="default",Ub.Cache="cache";class IE{constructor(e,n,r){this.query=e,this.Fa=n,this.Ma=!1,this.xa=null,this.onlineState="Unknown",this.options=r||{}}va(e){if(!this.options.includeMetadataChanges){const r=[];for(const s of e.docChanges)s.type!==3&&r.push(s);e=new ll(e.query,e.docs,e.oldDocs,r,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0,e.hasCachedResults)}let n=!1;return this.Ma?this.Oa(e)&&(this.Fa.next(e),n=!0):this.Na(e,this.onlineState)&&(this.Ba(e),n=!0),this.xa=e,n}onError(e){this.Fa.error(e)}Da(e){this.onlineState=e;let n=!1;return this.xa&&!this.Ma&&this.Na(this.xa,e)&&(this.Ba(this.xa),n=!0),n}Na(e,n){if(!e.fromCache||!this.Sa())return!0;const r=n!=="Offline";return(!this.options.La||!r)&&(!e.docs.isEmpty()||e.hasCachedResults||n==="Offline")}Oa(e){if(e.docChanges.length>0)return!0;const n=this.xa&&this.xa.hasPendingWrites!==e.hasPendingWrites;return!(!e.syncStateChanged&&!n)&&this.options.includeMetadataChanges===!0}Ba(e){e=ll.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache,e.hasCachedResults),this.Ma=!0,this.Fa.next(e)}Sa(){return this.options.source!==m_.Cache}}class _P{constructor(e){this.key=e}}class yP{constructor(e){this.key=e}}class a9{constructor(e,n){this.query=e,this.Ga=n,this.za=null,this.hasCachedResults=!1,this.current=!1,this.ja=je(),this.mutatedKeys=je(),this.Ha=M1(e),this.Ja=new $a(this.Ha)}get Ya(){return this.Ga}Za(e,n){const r=n?n.Xa:new Lb,s=n?n.Ja:this.Ja;let i=n?n.mutatedKeys:this.mutatedKeys,o=s,a=!1;const l=this.query.limitType==="F"&&s.size===this.query.limit?s.last():null,u=this.query.limitType==="L"&&s.size===this.query.limit?s.first():null;if(e.inorderTraversal(((f,h)=>{const d=s.get(f),p=np(this.query,h)?h:null,g=!!d&&this.mutatedKeys.has(d.key),_=!!p&&(p.hasLocalMutations||this.mutatedKeys.has(p.key)&&p.hasCommittedMutations);let v=!1;d&&p?d.data.isEqual(p.data)?g!==_&&(r.track({type:3,doc:p}),v=!0):this.eu(d,p)||(r.track({type:2,doc:p}),v=!0,(l&&this.Ha(p,l)>0||u&&this.Ha(p,u)<0)&&(a=!0)):!d&&p?(r.track({type:0,doc:p}),v=!0):d&&!p&&(r.track({type:1,doc:d}),v=!0,(l||u)&&(a=!0)),v&&(p?(o=o.add(p),i=_?i.add(f):i.delete(f)):(o=o.delete(f),i=i.delete(f)))})),this.query.limit!==null)for(;o.size>this.query.limit;){const f=this.query.limitType==="F"?o.last():o.first();o=o.delete(f.key),i=i.delete(f.key),r.track({type:1,doc:f})}return{Ja:o,Xa:r,Cs:a,mutatedKeys:i}}eu(e,n){return e.hasLocalMutations&&n.hasCommittedMutations&&!n.hasLocalMutations}applyChanges(e,n,r,s){const i=this.Ja;this.Ja=e.Ja,this.mutatedKeys=e.mutatedKeys;const o=e.Xa.ga();o.sort(((f,h)=>(function(p,g){const _=v=>{switch(v){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return Ie(20277,{Vt:v})}};return _(p)-_(g)})(f.type,h.type)||this.Ha(f.doc,h.doc))),this.tu(r),s=s!=null&&s;const a=n&&!s?this.nu():[],l=this.ja.size===0&&this.current&&!s?1:0,u=l!==this.za;return this.za=l,o.length!==0||u?{snapshot:new ll(this.query,e.Ja,i,o,e.mutatedKeys,l===0,u,!1,!!r&&r.resumeToken.approximateByteSize()>0),ru:a}:{ru:a}}Da(e){return this.current&&e==="Offline"?(this.current=!1,this.applyChanges({Ja:this.Ja,Xa:new Lb,mutatedKeys:this.mutatedKeys,Cs:!1},!1)):{ru:[]}}iu(e){return!this.Ga.has(e)&&!!this.Ja.has(e)&&!this.Ja.get(e).hasLocalMutations}
44tu(e){e&&(e.addedDocuments.forEach((n=>this.Ga=this.Ga.add(n))),e.modifiedDocuments.forEach((n=>{})),e.removedDocuments.forEach((n=>this.Ga=this.Ga.delete(n))),this.current=e.current)}nu(){if(!this.current)return[];const e=this.ja;this.ja=je(),this.Ja.forEach((r=>{this.iu(r.key)&&(this.ja=this.ja.add(r.key))}));const n=[];return e.forEach((r=>{this.ja.has(r)||n.push(new yP(r))})),this.ja.forEach((r=>{e.has(r)||n.push(new _P(r))})),n}su(e){this.Ga=e.$s,this.ja=je();const n=this.Za(e.documents);return this.applyChanges(n,!0)}ou(){return ll.fromInitialDocuments(this.query,this.Ja,this.mutatedKeys,this.za===0,this.hasCachedResults)}}const AE="SyncEngine";class l9{constructor(e,n,r){this.query=e,this.targetId=n,this.view=r}}class c9{constructor(e){this.key=e,this._u=!1}}class u9{constructor(e,n,r,s,i,o){this.localStore=e,this.remoteStore=n,this.eventManager=r,this.sharedClientState=s,this.currentUser=i,this.maxConcurrentLimboResolutions=o,this.au={},this.uu=new ua((a=>x1(a)),tp),this.cu=new Map,this.lu=new Set,this.hu=new It(we.comparator),this.Pu=new Map,this.Tu=new hE,this.Iu={},this.Eu=new Map,this.du=al.lr(),this.onlineState="Unknown",this.Au=void 0}get isPrimaryClient(){return this.Au===!0}}async function f9(t,e,n=!0){const r=SP(t);let s;const i=r.uu.get(e);return i?(r.sharedClientState.addLocalQueryTarget(i.targetId),s=i.view.ou()):s=await EP(r,e,n,!0),s}async function h9(t,e){const n=SP(t);await EP(n,e,!0,!1)}async function EP(t,e,n,r){const s=await k5(t.localStore,ps(e)),i=s.targetId,o=t.sharedClientState.addLocalQueryTarget(i,n);let a;return r&&(a=await d9(t,e,i,o==="current",s.resumeToken)),t.isPrimaryClient&&n&&fP(t.remoteStore,s),a}async function d9(t,e,n,r,s){t.Ru=(h,d,p)=>(async function(_,v,N,O){let T=v.view.Za(N);T.Cs&&(T=await Ob(_.localStore,v.query,!1).then((({documents:R})=>v.view.Za(R,T))));const C=O&&O.targetChanges.get(v.targetId),x=O&&O.targetMismatches.get(v.targetId)!=null,L=v.view.applyChanges(T,_.isPrimaryClient,C,x);return Bb(_,v.targetId,L.ru),L.snapshot})(t,h,d,p);const i=await Ob(t.localStore,e,!0),o=new a9(e,i.$s),a=o.Za(i.documents),l=Lu.createSynthesizedTargetChangeForCurrentChange(n,r&&t.onlineState!=="Offline",s),u=o.applyChanges(a,t.isPrimaryClient,l);Bb(t,n,u.ru);const f=new l9(e,n,o);return t.uu.set(e,f),t.cu.has(n)?t.cu.get(n).push(e):t.cu.set(n,[e]),u.snapshot}async function p9(t,e,n){const r=De(t),s=r.uu.get(e),i=r.cu.get(s.targetId);if(i.length>1)return r.cu.set(s.targetId,i.filter((o=>!tp(o,e)))),void r.uu.delete(e);r.isPrimaryClient?(r.sharedClientState.removeLocalQueryTarget(s.targetId),r.sharedCl
44ientState.isActiveQueryTarget(s.targetId)||await d_(r.localStore,s.targetId,!1).then((()=>{r.sharedClientState.clearQueryState(s.targetId),n&&gE(r.remoteStore,s.targetId),g_(r,s.targetId)})).catch(Rl)):(g_(r,s.targetId),await d_(r.localStore,s.targetId,!0))}async function m9(t,e){const n=De(t),r=n.uu.get(e),s=n.cu.get(r.targetId);n.isPrimaryClient&&s.length===1&&(n.sharedClientState.removeLocalQueryTarget(r.targetId),gE(n.remoteStore,r.targetId))}async function g9(t,e,n){const r=b9(t);try{const s=await(function(o,a){const l=De(o),u=Gt.now(),f=a.reduce(((p,g)=>p.add(g.key)),je());let h,d;return l.persistence.runTransaction("Locally write mutations","readwrite",(p=>{let g=si(),_=je();return l.Bs.getEntries(p,f).next((v=>{g=v,g.forEach(((N,O)=>{O.isValidDocument()||(_=_.add(N))}))})).next((()=>l.localDocuments.getOverlayedDocuments(p,g))).next((v=>{h=v;const N=[];for(const O of a){const T=kj(O,h.get(O.key).overlayedDocument);T!=null&&N.push(new co(O.key,T,A1(T.value.mapValue),ms.exists(!0)))}return l.mutationQueue.addMutationBatch(p,u,N,a)})).next((v=>{d=v;const N=v.applyToLocalDocumentSet(h,_);return l.documentOverlayCache.saveOverlays(p,v.batchId,N)}))})).then((()=>({batchId:d.batchId,changes:V1(h)})))})(r.localStore,e);r.sharedClientState.addPendingMutation(s.batchId),(function(o,a,l){let u=o.Iu[o.currentUser.toKey()];u||(u=new It(Le)),u=u.insert(a,l),o.Iu[o.currentUser.toKey()]=u})(r,s.batchId,n),await Uu(r,s.changes),await lp(r.remoteStore)}catch(s){const i=TE(s,"Failed to persist write");n.reject(i)}}async function vP(t,e){const n=De(t);try{const r=await P5(n.localStore,e);
44e.targetChanges.forEach(((s,i)=>{const o=n.Pu.get(i);o&&(it(s.addedDocuments.size+s.modifiedDocuments.size+s.removedDocuments.size<=1,22616),s.addedDocuments.size>0?o._u=!0:s.modifiedDocuments.size>0?it(o._u,14607):s.removedDocuments.size>0&&(it(o._u,42227),o._u=!1))})),await Uu(n,r,e)}catch(r){await Rl(r)}}function Fb(t,e,n){const r=De(t);if(r.isPrimaryClient&&n===0||!r.isPrimaryClient&&n===1){const s=[];r.uu.forEach(((i,o)=>{const a=o.view.Da(e);a.snapshot&&s.push(a.snapshot)})),(function(o,a){const l=De(o);l.onlineState=a;let u=!1;l.queries.forEach(((f,h)=>{for(const d of h.ya)d.Da(a)&&(u=!0)})),u&&SE(l)})(r.eventManager,e),s.length&&r.au.j_(s),r.onlineState=e,r.isPrimaryClient&&r.sharedClientState.setOnlineState(e)}}async function _9(t,e,n){const r=De(t);r.sharedClientState.updateQueryState(e,"rejected",n);const s=r.Pu.get(e),i=s&&s.key;if(i){let o=new It(we.comparator);o=o.insert(i,Pn.newNoDocument(i,Oe.min()));const a=je().add(i),l=new ip(Oe.min(),new Map,new It(Le),o,a);await vP(r,l),r.hu=r.hu.remove(i),r.Pu.delete(e),RE(r)}else await d_(r.localStore,e,!1).then((()=>g_(r,e,n))).catch(Rl)}async function y9(t,e){const n=De(t),r=e.batch.batchId;try{const s=await C5(n.localStore,e);wP(n,r,null),TP(n,r),n.sharedClientState.updateMutationState(r,"acknowledged"),await Uu(n,s)}catch(s){await Rl(s)}}async function E9(t,e,n){const r=De(t);try{const s=await(function(o,a){const l=De(o);return l.persistence.runTransaction("Reject batch","readwrite-primary",(u=>{let f;return l.mutationQueue.lookupMutationBatch(u,a).next((h=>(it(h!==null,37113),f=h.keys(),l.mutationQueue.removeMutationBatch(u,h)))).next((()=>l.mutationQueue.performConsistencyCheck(u))).next((()=>l.documentOverlayCache.removeOverlaysForBatchId(u,f,a))).next((()=>l.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(u,f))).next((()=>l.localDocuments.getDocuments(u,f)))}))})(r.localStore,e);wP(r,e,n),TP(r,e),r.sharedClientState.updateMutationState(e,"rejected",n),await Uu(r,s)}catch(s){await Rl(s)}}function TP(t,e){(t.Eu.get(e)||[]).forEach((n=>{n.resolve()})),t.Eu.delete(e)}function wP(t,e,n){const r=De(t);let s=r.Iu[r.currentUser.toKey()];if(s){const i=s.get(e);i&&(n?i.reject(n):i.resolve(),s=s.remove(e)),r.Iu[r.currentUser.toKey()]=s}}
44function g_(t,e,n=null){t.sharedClientState.removeLocalQueryTarget(e);for(const r of t.cu.get(e))t.uu.delete(r),n&&t.au.Vu(r,n);t.cu.delete(e),t.isPrimaryClient&&t.Tu.Hr(e).forEach((r=>{t.Tu.containsKey(r)||bP(t,r)}))}function bP(t,e){t.lu.delete(e.path.canonicalString());const n=t.hu.get(e);n!==null&&(gE(t.remoteStore,n),t.hu=t.hu.remove(e),t.Pu.delete(n),RE(t))}function Bb(t,e,n){for(const r of n)r instanceof _P?(t.Tu.addReference(r.key,e),v9(t,r)):r instanceof yP?(ce(AE,"Document no longer in limbo: "+r.key),t.Tu.removeReference(r.key,e),t.Tu.containsKey(r.key)||bP(t,r.key)):Ie(19791,{mu:r})}function v9(t,e){const n=e.key,r=n.path.canonicalString();t.hu.get(n)||t.lu.has(r)||(ce(AE,"New document in limbo: "+n),t.lu.add(r),RE(t))}function RE(t){for(;t.lu.size>0&&t.hu.size<t.maxConcurrentLimboResolutions;){const e=t.lu.values().next().value;t.lu.delete(e);const n=new we(_t.fromString(e)),r=t.du.next();t.Pu.set(r,new c9(n)),t.hu=t.hu.insert(n,r),fP(t.remoteStore,new ki(ps(ep(n.path)),r,"TargetPurposeLimboResolution",Jd.le))}}async function Uu(t,e,n){const r=De(t),s=[],i=[],o=[];r.uu.isEmpty()||(r.uu.forEach(((a,l)=>{o.push(r.Ru(l,e,n).then((u=>{var f;if((u||n)&&r.isPrimaryClient){const h=u?!u.fromCache:(f=n?.targetChanges.get(l.targetId))===null||f===void 0?void 0:f.current;
44r.sharedClientState.updateQueryState(l.targetId,h?"current":"not-current")}if(u){s.push(u);const h=pE.Rs(l.targetId,u);i.push(h)}})))})),await Promise.all(o),r.au.j_(s),await(async function(l,u){const f=De(l);try{await f.persistence.runTransaction("notifyLocalViewChanges","readwrite",(h=>q.forEach(u,(d=>q.forEach(d.ds,(p=>f.persistence.referenceDelegate.addReference(h,d.targetId,p))).next((()=>q.forEach(d.As,(p=>f.persistence.referenceDelegate.removeReference(h,d.targetId,p)))))))))}catch(h){if(!Cl(h))throw h;ce(mE,"Failed to update sequence numbers: "+h)}for(const h of u){const d=h.targetId;if(!h.fromCache){const p=f.xs.get(d),g=p.snapshotVersion,_=p.withLastLimboFreeSnapshotVersion(g);f.xs=f.xs.insert(d,_)}}})(r.localStore,i))}async function T9(t,e){const n=De(t);if(!n.currentUser.isEqual(e)){ce(AE,"User change. New user:",e.toKey());const r=await aP(n.localStore,e);n.currentUser=e,(function(i,o){i.Eu.forEach((a=>{a.forEach((l=>{l.reject(new le(j.CANCELLED,o))}))})),i.Eu.clear()})(n,"'waitForPendingWrites' promise is rejected due to a user change."),n.sharedClientState.handleUserChange(e,r.removedBatchIds,r.addedBatchIds),await Uu(n,r.ks)}}function w9(t,e){const n=De(t),r=n.Pu.get(e);if(r&&r._u)return je().add(r.key);{let s=je();const i=n.cu.get(e);if(!i)return s;for(const o of i){const a=n.uu.get(o);s=s.unionWith(a.view.Ya)}return s}}function SP(t){const e=De(t);return e.remoteStore.remoteSyncer.applyRemoteEvent=vP.bind(null,e),e.remoteStore.remoteSyncer.getRemoteKeysForTarget=w9.bind(null,e),e.remoteStore.remoteSyncer.rejectListen=_9.bind(null,e),e.au.j_=i9.bind(null,e.eventManager),e.au.Vu=o9.bind(null,e.eventManager),e}function b9(t){const e=De(t);return e.remoteStore.remoteSyncer.applySuccessfulWrite=y9.bind(null,e),e.remoteStore.remoteSyncer.rejectFailedWrite=E9.bind(null,e),e}class nd{constructor(){this.kind="memory",this.synchronizeTabs=!1}async initialize(e){this.serializer=op(e.databaseInfo.databaseId),this.sharedClientState=this.pu(e),this.persistence=this.yu(e),await this.persistence.start(),this.localStore=this.wu(e),this.gcScheduler=this.Su(e,this.localStore),this.indexBackfillerScheduler=this.bu(e,this.localStore)}Su(e,n){return null}bu(e,n){return null}wu(e){return R5(this.persistence,new S5,e.initialUser,this.serializer)}yu(e){return new oP(dE.fi,this.serializer)}pu(e){return new x5}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()}}nd.provider={build:()=>new nd};class S9 extends nd{constructor(e){super(),this.cacheSizeBytes=e}Su(e,n){it(this.persistence.referenceDelegate instanceof ed,46915);const r=this.persistence.referenceDelegate.garbageCollector;return new c5(r,e.asyncQueue,n)}yu(e){const n=this.cacheSizeBytes!==void 0?tr.withCacheSize(this.cacheSizeBytes):tr.DEFAULT;return new oP((r=>ed.fi(r,n)),this.serializer)}}class __{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=>Fb(this.syncEngine,r,1),this.remoteStore.remoteSyncer.handleCredentialChange=T9.bind(null,this.syncEngine),await n9(this.remoteStore,this.syncEngine.isPrimaryClient))}createEventManager(e){return(function(){return new s9})()}createDatastore(e){const n=op(e.databaseInfo.databaseId),r=(function(i){return new F5(i)})(e.databaseInfo);return(function(i,o,a,l){return new j5(i,o,a,l)})(e.authCredentials,e.appCheckCredentials,r,n)}createRemoteStore(e){return(function(r,s,i,o,a){return new W5(r,s,i,o,a)})(this.localStore,this.datastore,e.asyncQueue,(n=>Fb(this.syncEngine,n,0)),(function(){return Db.C()?new Db:new M5})())}createSyncEngine(e,n){return(function(s,i,o,a,l,u,f){const h=new u9(s,i,o,a,l,u);return f&&(h.Au=!0),h})(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,e.initialUser,e.maxConcurrentLimboResolutions,n)}async terminate(){var e,n;await(async function(s){const i=De(s);ce(Qo,"RemoteStore shutting down."),i.Ta.add(5),await Vu(i),i.Ea.shutdown(),i.da.set("Unknown")})(this.remoteStore),(e=this.datastore)===null||e===void 0||e.terminate(),(n=this.eventManager)===null||n===void 0||n.terminate()}}__.provider={build:()=>new __};class CE{constructor(e){this.observer=e,this.muted=!1}next(e){this.muted||this.observer.next&&this.vu(this.observer.next,e)}error(e){this.muted||(this.observer.error?this.vu(this.observer.error,e):ri("Uncaught Error in snapshot listener:",e.toString()))}Cu(){this.muted=!0}
44vu(e,n){setTimeout((()=>{this.muted||e(n)}),0)}}const eo="FirestoreClient";class I9{constructor(e,n,r,s,i){this.authCredentials=e,this.appCheckCredentials=n,this.asyncQueue=r,this.databaseInfo=s,this.user=In.UNAUTHENTICATED,this.clientId=g1.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this._uninitializedComponentsProvider=i,this.authCredentials.start(r,(async o=>{ce(eo,"Received user=",o.uid),await this.authCredentialListener(o),this.user=o})),this.appCheckCredentials.start(r,(o=>(ce(eo,"Received new app check token=",o),this.appCheckCredentialListener(o,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 Ws;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=TE(n,"Failed to shutdown persistence");e.reject(r)}})),e.promise}}async function jm(t,e){t.asyncQueue.verifyOperationInProgress(),ce(eo,"Initializing OfflineComponentProvider");const n=t.configuration;await e.initialize(n);let r=n.initialUser;t.setCredentialChangeListener((async s=>{r.isEqual(s)||(await aP(e.localStore,s),r=s)})),e.persistence.setDatabaseDeletedListener((()=>t.terminate())),t._offlineComponents=e}async function Hb(t,e){t.asyncQueue.verifyOperationInProgress();const n=await A9(t);ce(eo,"Initializing OnlineComponentProvider"),await e.initialize(n,t.configuration),t.setCredentialChangeListener((r=>Mb(e.remoteStore,r))),t.setAppCheckTokenChangeListener(((r,s)=>Mb(e.remoteStore,s))),t._onlineComponents=e}async function A9(t){if(!t._offlineComponents)if(t._uninitializedComponentsProvider){ce(eo,"Using user provided OfflineComponentProvider");try{await jm(t,t._uninitializedComponentsProvider._offline)}catch(e){const n=e;if(!(function(s){return s.name==="FirebaseError"?s.code===j.FAILED_PRECONDITION||s.code===j.UNIMPLEMENTED:!(typeof DOMException<"u"&&s instanceof DOMException)||s.code===22||s.code===20||s.code===11})(n))throw n;rl("Error using user provided cache. Falling back to memory cache: "+n),await jm(t,new nd)}}else ce(eo,"Using default OfflineComponentProvider"),await jm(t,new S9(void 0));return t._offlineComponents}async function IP(t){return t._onlineComponents||(t._uninitializedComponentsProvider?(ce(eo,"Using user provided OnlineComponentProvider"),await Hb(t,t._uninitializedComponentsProvider._online)):(ce(eo,"Using default OnlineComponentProvider"),await Hb(t,new __))),t._onlineComponents}function R9(t){return IP(t).then((e=>e.syncEngine))}async function rd(t){const e=await IP(t),n=e.eventManager;return n.onListen=f9.bind(null,e.syncEngine),n.onUnlisten=p9.bind(null,e.syncEngine),n.onFirstRemoteStoreListen=h9.bind(null,e.syncEngine),n.onLastRemoteStoreUnlisten=m9.bind(null,e.syncEngine),n}function C9(t,e,n={}){const r=new Ws;return t.asyncQueue.enqueueAndForget((async()=>(function(i,o,a,l,u){const f=new CE({next:d=>{f.Cu(),o.enqueueAndForget((()=>bE(i,h)));const p=d.docs.has(a);!p&&d.fromCache?u.reject(new le(j.UNAVAILABLE,"Failed to get document because the client is offline.")):p&&d.fromCache&&l&&l.source==="server"?u.reject(new le(j.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.)')):u.resolve(d)},error:d=>u.reject(d)}),h=new IE(ep(a.path),f,{includeMetadataChanges:!0,La:!0});return wE(i,h)})(await rd(t),t.asyncQueue,e,n,r))),r.promise}function P9(t,e,n={}){const r=new Ws;return t.asyncQueue.enqueueAndForget((async()=>(function(i,o,a,l,u){const f=new CE({next:d=>{f.Cu(),o.enqueueAndForget((()=>bE(i,h))),d.fromCache&&l.source==="server"?u.reject(new le(j.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.)')):u.resolve(d)},error:d=>u.reject(d)}),h=new IE(a,f,{includeMetadataChanges:!0,La:!0});return wE(i,h)})(await rd(t),t.asyncQueue,e,n,r))),r.promise}function AP(t){const e={};return t.timeoutSeconds!==void 0&&(e.timeoutSeconds=t.timeoutSeconds),e}const $b=new Map;function RP(t,e,n){if(!n)throw new le(j.INVALID_ARGUMENT,`Function ${t}() cannot be called with an empty ${e}.`)}function O9(t,e,n,r){if(e===!0&&r===!0)throw new le(j.INVALID_ARGUMENT,`${t} and ${n} cannot be used together.`)}function jb(t){if(!we.isDocumentKey(t))throw new le(j.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${t} has ${t.length}.`)}function qb(t){if(we.isDocumentKey(t))throw new le(j.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${t} has ${t.length}.`)}function cp(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":Ie(12329,{type:typeof t})}function Ir(t,e){if("_delegate"in t&&(t=t._delegate),!(t instanceof e)){if(e.name===t.constructor.name)throw new le(j.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const n=cp(t);throw new le(j.INVALID_ARGUMENT,`Expected type '${e.name}', but it was: ${n}`)}}return t}function N9(t,e){if(e<=0)throw new le(j.INVALID_ARGUMENT,`Function ${t}() requires a positive number, but it was: ${e}.`)}const CP="firestore.googleapis.com",Wb=!0;class Gb{constructor(e){var n,r;if(e.host===void 0){if(e.ssl!==void 0)throw new le(j.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host=CP,this.ssl=Wb}else this.host=e.host,this.ssl=(n=e.ssl)!==null&&n!==void 0?n:Wb;if(this.isUsingEmulator=e.emulatorOptions!==void 0,this.credentials=e.credentials,this.ignoreUndefinedProperties=!!e.ignoreUndefinedProperties,this.localCache=e.localCache,e.cacheSizeBytes===void 0)this.cacheSizeBytes=iP;
44else{if(e.cacheSizeBytes!==-1&&e.cacheSizeBytes<a5)throw new le(j.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=e.cacheSizeBytes}O9("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=AP((r=e.experimentalLongPollingOptions)!==null&&r!==void 0?r:{}),(function(i){if(i.timeoutSeconds!==void 0){if(isNaN(i.timeoutSeconds))throw new le(j.INVALID_ARGUMENT,`invalid long polling timeout: ${i.timeoutSeconds} (must not be NaN)`);if(i.timeoutSeconds<5)throw new le(j.INVALID_ARGUMENT,`invalid long polling timeout: ${i.timeoutSeconds} (minimum allowed value is 5)`);if(i.timeoutSeconds>30)throw new le(j.INVALID_ARGUMENT,`invalid long polling timeout: ${i.timeoutSeconds} (maximum allowed value is 30)`)}})(this.experimentalLongPollingOptions),this.useFetchStreams=!!e.useFetchStreams}isEqual(e){return this.host===e.host&&this.ssl===e.ssl&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.experimentalForceLongPolling===e.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===e.experimentalAutoDetectLongPolling&&(function(r,s){return r.timeoutSeconds===s.timeoutSeconds})(this.experimentalLongPollingOptions,e.experimentalLongPollingOptions)&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams}}class up{constructor(e,n,r,s){this._authCredentials=e,this._appCheckCredentials=n,this._databaseId=r,this._app=s,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new Gb({}),this._settingsFrozen=!1,this._emulatorOptions={},this._terminateTask="notTerminated"}get app(){if(!this._app)throw new le(j.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 le(j.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 Gb(e),this._emulatorOptions=e.emulatorOptions||{},e.credentials!==void 0&&(this._authCredentials=(function(r){if(!r)return new F$;switch(r.type){case"firstParty":return new j$(r.sessionIndex||"0",r.iamToken||null,r.authTokenFactory||null);case"provider":return r.client;default:throw new le(j.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invalid credential type")}})(e.credentials))}_getSettings(){return this._settings}_getEmulatorOptions(){return this._emulatorOptions}_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=$b.get(n);r&&(ce("ComponentProvider","Removing Datastore"),$b.delete(n),r.terminate())})(this),Promise.resolve()}}function k9(t,e,n,r={}){var s;t=Ir(t,up);const i=wl(e),o=t._getSettings(),a=Object.assign(Object.assign({},o),{emulatorOptions:t._getEmulatorOptions()}),l=`${e}:${n}`;i&&(vC(`https://${l}`),wC("Firestore",!0)),o.host!==CP&&o.host!==l&&rl("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used.");const u=Object.assign(Object.assign({},o),{host:l,ssl:i,emulatorOptions:r});if(!Yc(u,a)&&(t._setSettings(u),r.mockUserToken)){let f,h;if(typeof r.mockUserToken=="string")f=r.mockUserToken,h=In.MOCK_USER;else{f=TC(r.mockUserToken,(s=t._app)===null||s===void 0?void 0:s.options.projectId);const d=r.mockUserToken.sub||r.mockUserToken.user_id;if(!d)throw new le(j.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");h=new In(d)}t._authCredentials=new B$(new p1(f,h))}}class li{constructor(e,n,r){this.converter=n,this._query=r,this.type="query",this.firestore=e}withConverter(e){return new li(this.firestore,e,this._query)}}class xn{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()}
44get path(){return this._key.path.canonicalString()}get parent(){return new ji(this.firestore,this.converter,this._key.path.popLast())}withConverter(e){return new xn(this.firestore,e,this._key)}}class ji extends li{constructor(e,n,r){super(e,n,ep(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 xn(this.firestore,null,new we(e))}withConverter(e){return new ji(this.firestore,e,this._path)}}function D9(t,e,...n){if(t=dt(t),RP("collection","path",e),t instanceof up){const r=_t.fromString(e,...n);return qb(r),new ji(t,null,r)}{if(!(t instanceof xn||t instanceof ji))throw new le(j.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const r=t._path.child(_t.fromString(e,...n));return qb(r),new ji(t.firestore,null,r)}}function zQ(t,e,...n){if(t=dt(t),arguments.length===1&&(e=g1.newId()),RP("doc","path",e),t instanceof up){const r=_t.fromString(e,...n);return jb(r),new xn(t,null,new we(r))}{if(!(t instanceof xn||t instanceof ji))throw new le(j.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const r=t._path.child(_t.fromString(e,...n));return jb(r),new xn(t.firestore,t instanceof ji?t.converter:null,new we(r))}}const Yb="AsyncQueue";class zb{constructor(e=Promise.resolve()){this.zu=[],this.ju=!1,this.Hu=[],this.Ju=null,this.Yu=!1,this.Zu=!1,this.Xu=[],this.C_=new cP(this,"async_queue_retry"),this.ec=()=>{const r=$m();r&&ce(Yb,"Visibility state changed to "+r.visibilityState),this.C_.p_()},this.tc=e;const n=$m();n&&typeof n.addEventListener=="function"&&n.addEventListener("visibilitychange",this.ec)}get isShuttingDown(){return this.ju}enqueueAndForget(e){this.enqueue(e)}enqueueAndForgetEvenWhileRestricted(e){this.nc(),this.rc(e)}enterRestrictedMode(e){if(!this.ju){this.ju=!0,this.Zu=e||!1;const n=$m();n&&typeof n.removeEventListener=="function"&&n.removeEventListener("visibilitychange",this.ec)}}enqueue(e){if(this.nc(),this.ju)return new Promise((()=>{}));const n=new Ws;return this.rc((()=>this.ju&&this.Zu?Promise.resolve():(e().then(n.resolve,n.reject),n.promise))).then((()=>n.promise))}enqueueRetryable(e){this.enqueueAndForget((()=>(this.zu.push(e),this.sc())))}async sc(){if(this.zu.length!==0){try{await this.zu[0](),this.zu.shift(),this.C_.reset()}catch(e){if(!Cl(e))throw e;ce(Yb,"Operation failed with retryable error: "+e)}this.zu.length>0&&this.C_.f_((()=>this.sc()))}}rc(e){const n=this.tc.then((()=>(this.Yu=!0,e().catch((r=>{throw this.Ju=r,this.Yu=!1,ri("INTERNAL UNHANDLED ERROR: ",Kb(r)),r})).then((r=>(this.Yu=!1,r))))));return this.tc=n,n}enqueueAfterDelay(e,n,r){this.nc(),this.Xu.indexOf(e)>-1&&(n=0);const s=vE.createAndSchedule(this,e,n,r,(i=>this.oc(i)));return this.Hu.push(s),s}nc(){this.Ju&&Ie(47125,{_c:Kb(this.Ju)})}verifyOperationInProgress(){}async ac(){let e;do e=this.tc,await e;while(e!==this.tc)}uc(e){for(const n of this.Hu)if(n.timerId===e)return!0;return!1}cc(e){return this.ac().then((()=>{this.Hu.sort(((n,r)=>n.targetTimeMs-r.targetTimeMs));for(const n of this.Hu)if(n.skipDelay(),e!=="all"&&n.timerId===e)break;return this.ac()}))}lc(e){this.Xu.push(e)}oc(e){const n=this.Hu.indexOf(e);this.Hu.splice(n,1)}}function Kb(t){let e=t.message||"";return t.stack&&(e=t.stack.includes(t.message)?t.stack:t.message+` 45`+t.stack),e}function Xb(t){return(function(n,r){if(typeof n!="object"||n===null)return!1;const s=n;for(const i of r)if(i in s&&typeof s[i]=="function")return!0;return!1})(t,["next","error","complete"])}class Zo extends up{constructor(e,n,r,s){super(e,n,r,s),this.type="firestore",this._queue=new zb,this._persistenceKey=s?.name||"[DEFAULT]"}async _terminate(){if(this._firestoreClient){const e=this._firestoreClient.terminate();this._queue=new zb(e),this._firestoreClient=void 0,await e}}}function Jb(t,e){const n=typeof t=="object"?t:AC(),r=typeof t=="string"?t:e||Kh,s=jy(n,"firestore").getImmediate({identifier:r});if(!s._initialized){const i=yC("firestore");i&&k9(s,...i)}return s}function fp(t){if(t._terminated)throw new le(j.FAILED_PRECONDITION,"The client has already been terminated.");return t._firestoreClient||x9(t),t._firestoreClient}function x9(t){var e,n,r;const s=t._freezeSettings(),i=(function(a,l,u,f){return new sj(a,l,u,f.host,f.ssl,f.experimentalForceLongPolling,f.experimentalAutoDetectLongPolling,AP(f.experimentalLongPollingOptions),f.useFetchStreams,f.isUsingEmulator)})(t._databaseId,((e=t._app)===null||e===void 0?void 0:e.options.appId)||"",t._persistenceKey,s);t._componentsProvider||!((n=s.localCache)===null||n===void 0)&&n._offlineComponentProvider&&(!((r=s.localCache)===null||r===void 0)&&r._onlineComponentProvider)&&(t._componentsProvider={_offline:s.localCache._offlineComponentProvider,_online:s.localCache._onlineComponentProvider}),t._firestoreClient=new I9(t._authCredentials,t._appCheckCredentials,t._queue,i,t._componentsProvider&&(function(a){const l=a?._online.build();return{_offline:a?._offline.build(l),_online:l}})(t._componentsProvider))}class cl{constructor(e){this._byteString=e}static fromBase64String(e){try{return new cl(gn.fromBase64String(e))}catch(n){throw new le(j.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+n)}}static fromUint8Array(e){return new cl(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)}}class hp{constructor(...e){for(let n=0;n<e.length;++n)if(e[n].length===0)throw new le(j.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new pn(e)}isEqual(e){return this._internalPath.isEqual(e._internalPath)}}class Fu{constructor(e){this._methodName=e}}class PE{constructor(e,n){if(!isFinite(e)||e<-90||e>90)throw new le(j.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(n)||n<-180||n>180)throw new le(j.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 Le(this._lat,e._lat)||Le(this._long,e._long)}}class OE{constructor(e){this._values=(e||[]).map((n=>n))}toArray(){return this._values.map((e=>e))}isEqual(e){return(function(r,s){if(r.length!==s.length)return!1;for(let i=0;i<r.length;++i)if(r[i]!==s[i])return!1;return!0})(this._values,e._values)}}const M9=/^__.*__$/;class L9{constructor(e,n,r){this.data=e,this.fieldMask=n,this.fieldTransforms=r}toMutation(e,n){return this.fieldMask!==null?new co(e,this.data,this.fieldMask,n,this.fieldTransforms):new Mu(e,this.data,n,this.fieldTransforms)}}class PP{constructor(e,n,r){this.data=e,this.fieldMask=n,this.fieldTransforms=r}toMutation(e,n){return new co(e,this.data,this.fieldMask,n,this.fieldTransforms)}}function OP(t){switch(t){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw Ie(40011,{hc:t})}}class NE{constructor(e,n,r,s,i,o){this.settings=e,this.databaseId=n,this.serializer
45=r,this.ignoreUndefinedProperties=s,i===void 0&&this.Pc(),this.fieldTransforms=i||[],this.fieldMask=o||[]}get path(){return this.settings.path}get hc(){return this.settings.hc}Tc(e){return new NE(Object.assign(Object.assign({},this.settings),e),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}Ic(e){var n;const r=(n=this.path)===null||n===void 0?void 0:n.child(e),s=this.Tc({path:r,Ec:!1});return s.dc(e),s}Ac(e){var n;const r=(n=this.path)===null||n===void 0?void 0:n.child(e),s=this.Tc({path:r,Ec:!1});return s.Pc(),s}Rc(e){return this.Tc({path:void 0,Ec:!0})}Vc(e){return sd(e,this.settings.methodName,this.settings.mc||!1,this.path,this.settings.fc)}contains(e){return this.fieldMask.find((n=>e.isPrefixOf(n)))!==void 0||this.fieldTransforms.find((n=>e.isPrefixOf(n.field)))!==void 0}Pc(){if(this.path)for(let e=0;e<this.path.length;e++)this.dc(this.path.get(e))}dc(e){if(e.length===0)throw this.Vc("Document fields must not be empty");if(OP(this.hc)&&M9.test(e))throw this.Vc('Document fields cannot begin and end with "__"')}}class V9{constructor(e,n,r){this.databaseId=e,this.ignoreUndefinedProperties=n,this.serializer=r||op(e)}gc(e,n,r,s=!1){return new NE({hc:e,methodName:n,fc:r,path:pn.emptyPath(),Ec:!1,mc:s},this.databaseId,this.serializer,this.ignoreUndefinedProperties)}}function kE(t){const e=t._freezeSettings(),n=op(t._databaseId);return new V9(t._databaseId,!!e.ignoreUndefinedProperties,n)}function U9(t,e,n,r,s,i={}){const o=t.gc(i.merge||i.mergeFields?2:0,e,n,s);ME("Data must be an object, but it was:",o,r);const a=NP(r,o);let l,u;if(i.merge)l=new dr(o.fieldMask),u=o.fieldTransforms;else if(i.mergeFields){const f=[];for(const h of i.mergeFields){const d=y_(e,h,n);if(!o.contains(d))throw new le(j.INVALID_ARGUMENT,`Field '${d}' is specified in your field mask but missing from your input data.`);DP(f,d)||f.push(d)}l=new dr(f),u=o.fieldTransforms.filter((h=>l.covers(h.field)))}else l=null,u=o.fieldTransforms;return new L9(new rr(a),l,u)}class dp extends Fu{_toFieldTransform(e){if(e.hc!==2)throw e.hc===1?e.Vc(`${this._methodName}() can only appear at the top level of your update data`):e.Vc(`${this._methodName}() cannot be used with set() unless you pass {merge:true}`);return e.fieldMask.push(e.path),null}isEqual(e){return e instanceof dp}}class DE extends Fu{_toFieldTransform(e){return new W1(e.path,new ru)}isEqual(e){return e instanceof DE}}class xE extends Fu{constructor(e,n){super(e),this.wc=n}_toFieldTransform(e){const n=new ou(e.serializer,B1(e.serializer,this.wc));return new W1(e.path,n)}isEqual(e){return e instanceof xE&&this.wc===e.wc}}function F9(t,e,n,r){const s=t.gc(1,e,n);ME("Data must be an object, but it was:",s,r);const i=[],o=rr.empty();lo(r,((l,u)=>{const f=LE(e,l,n);u=dt(u);const h=s.Ac(f);if(u instanceof dp)i.push(f);else{const d=Bu(u,h);d!=null&&(i.push(f),o.set(f,d))}}));const a=new dr(i);return new PP(o,a,s.fieldTransforms)}function B9(t,e,n,r,s,i){const o=t.gc(1,e,n),a=[y_(e,r,n)],l=[s];if(i.length%2!=0)throw new le(j.INVALID_ARGUMENT,`Function ${e}() needs to be called with an even number of arguments that alternate between field names and values.`);for(let d=0;d<i.length;d+=2)a.push(y_(e,i[d])),l.push(i[d+1]);const u=[],f=rr.empty();for(let d=a.length-1;d>=0;--d)if(!DP(u,a[d])){const p=a[d];let g=l[d];g=dt(g);const _=o.Ac(p);if(g instanceof dp)u.push(p);else{const v=Bu(g,_);v!=null&&(u.push(p),f.set(p,v))}}const h=new dr(u);return new PP(f,h,o.fieldTransforms)}function H9(t,e,n,r=!1){return Bu(n,t.gc(r?4:3,e))}function Bu(t,e){if(kP(t=dt(t)))return ME("Unsupported field value:",e,t),NP(t,e);if(t instanceof Fu)return(function(r,s){if(!OP(s.hc))throw s.Vc(`${r._methodName}() can only be used with update() and set()`);if(!s.path)throw s.Vc(`${r._methodName}() is not currently supported inside arrays`);const i=r._toFieldTransform(s);i&&s.fieldTransforms.push(i)})(t,e),null;if(t===void 0&&e.ignoreUndefinedProperties)return null;if(e.path&&e.fieldMask.push(e.path),t instanceof Array){if(e.settings.Ec&&e.hc!==4)throw e.Vc("Nested arrays are not supported");return(function(r,s){const i=[];let o=0;
45for(const a of r){let l=Bu(a,s.Rc(o));l==null&&(l={nullValue:"NULL_VALUE"}),i.push(l),o++}return{arrayValue:{values:i}}})(t,e)}return(function(r,s){if((r=dt(r))===null)return{nullValue:"NULL_VALUE"};if(typeof r=="number")return B1(s.serializer,r);if(typeof r=="boolean")return{booleanValue:r};if(typeof r=="string")return{stringValue:r};if(r instanceof Date){const i=Gt.fromDate(r);return{timestampValue:Zh(s.serializer,i)}}if(r instanceof Gt){const i=new Gt(r.seconds,1e3*Math.floor(r.nanoseconds/1e3));return{timestampValue:Zh(s.serializer,i)}}if(r instanceof PE)return{geoPointValue:{latitude:r.latitude,longitude:r.longitude}};if(r instanceof cl)return{bytesValue:Q1(s.serializer,r._byteString)};if(r instanceof xn){const i=s.databaseId,o=r.firestore._databaseId;if(!o.isEqual(i))throw s.Vc(`Document reference is for database ${o.projectId}/${o.database} but should be for database ${i.projectId}/${i.database}`);return{referenceValue:fE(r.firestore._databaseId||s.databaseId,r._key.path)}}if(r instanceof OE)return(function(o,a){return{mapValue:{fields:{[S1]:{stringValue:I1},[Xh]:{arrayValue:{values:o.toArray().map((u=>{if(typeof u!="number")throw a.Vc("VectorValues must only contain numeric values.");return lE(a.serializer,u)}))}}}}}})(r,s);throw s.Vc(`Unsupported field value: ${cp(r)}`)})(t,e)}function NP(t,e){const n={};return y1(t)?e.path&&e.path.length>0&&e.fieldMask.push(e.path):lo(t,((r,s)=>{const i=Bu(s,e.Ic(r));i!=null&&(n[r]=i)})),{mapValue:{fields:n}}}function kP(t){return!(typeof t!="object"||t===null||t instanceof Array||t instanceof Date||t instanceof Gt||t instanceof PE||t instanceof cl||t instanceof xn||t instanceof Fu||t instanceof OE)}function ME(t,e,n){if(!kP(n)||!(function(s){return typeof s=="object"&&s!==null&&(Object.getPrototypeOf(s)===Object.prototype||Object.getPrototypeOf(s)===null)})(n)){const r=cp(n);throw r==="an object"?e.Vc(t+" a custom object"):e.Vc(t+" "+r)}}function y_(t,e,n){if((e=dt(e))instanceof hp)return e._internalPath;if(typeof e=="string")return LE(t,e);throw sd("Field path arguments must be of type string or ",t,!1,void 0,n)}const $9=new RegExp("[~\\*/\\[\\]]");function LE(t,e,n){if(e.search($9)>=0)throw sd(`Invalid field path (${e}). Paths must not contain '~', '*', '/', '[', or ']'`,t,!1,void 0,n);try{return new hp(...e.split("."))._internalPath}catch{throw sd(`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,t,!1,void 0,n)}}function sd(t,e,n,r,s){const i=r&&!r.isEmpty(),o=s!==void 0;let a=`Function ${e}() called with invalid data`;n&&(a+=" (via `toFirestore()`)"),a+=". ";let l="";return(i||o)&&(l+=" (found",i&&(l+=` in field ${r}`),o&&(l+=` in document ${s}`),l+=")"),new le(j.INVALID_ARGUMENT,a+t+l)}function DP(t,e){return t.some((n=>n.isEqual(e)))}class xP{constructor(e,n,r,s,i){this._firestore=e,this._userDataWriter=n,this._key=r,this._document=s,this._converter=i}get id(){return this._key.path.lastSegment()}get ref(){return new xn(this._firestore,this._converter,this._key)}exists(){return this._document!==null}data(){if(this._document){if(this._converter){const e=new j9(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(pp("DocumentSnapshot.get",e));if(n!==null)return this._userDataWriter.convertValue(n)}}}class j9 extends xP{data(){return super.data()}}function pp(t,e){return typeof e=="string"?LE(t,e):e instanceof hp?e._internalPath:e._delegate._internalPath}function MP(t){if(t.limitType==="L"&&t.explicitOrderBy.length===0)throw new le(j.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}class VE{}class UE extends VE{}function q9(t,e,...n){let r=[];e instanceof VE&&r.push(e),r=r.concat(n),(function(i){const o=i.filter((l=>l instanceof FE)).length,a=i.filter((l=>l instanceof mp)).length;if(o>1||o>0&&a>0)throw new le(j.INVALID_ARGUMENT,"InvalidQuery. When using composite filters, you cannot use more than one filter at the top level. Consider nesting the multiple filters within an `and(...)` statement. For example: change `query(query, where(...), or(...))` to `query(query, and(where(...), or(...)))`.")})(r);for(const s of r)t=s._apply(t);return t}class mp extends UE{constructor(e,n,r){super(),this._field=e,this._op=n,this._value=r,this.type="where"}static _create(e,n,r){return new mp(e,n,r)}_apply(e){const n=this._parse(e);return LP(e._query,n),new li(e.firestore,e.converter,l_(e._query,n))}_parse(e){const n=kE(e.firestore);return(function(i,o,a,l,u,f,h){let d;
45if(u.isKeyField()){if(f==="array-contains"||f==="array-contains-any")throw new le(j.INVALID_ARGUMENT,`Invalid Query. You can't perform '${f}' queries on documentId().`);if(f==="in"||f==="not-in"){eS(h,f);const g=[];for(const _ of h)g.push(Zb(l,i,_));d={arrayValue:{values:g}}}else d=Zb(l,i,h)}else f!=="in"&&f!=="not-in"&&f!=="array-contains-any"||eS(h,f),d=H9(a,o,h,f==="in"||f==="not-in");return Ht.create(u,f,d)})(e._query,"where",n,e.firestore._databaseId,this._field,this._op,this._value)}}function Qb(t,e,n){const r=e,s=pp("where",t);return mp._create(s,r,n)}class FE extends VE{constructor(e,n){super(),this.type=e,this._queryConstraints=n}static _create(e,n){return new FE(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]:zr.create(n,this._getOperator())}_apply(e){const n=this._parse(e);return n.getFilters().length===0?e:((function(s,i){let o=s;const a=i.getFlattenedFilters();for(const l of a)LP(o,l),o=l_(o,l)})(e._query,n),new li(e.firestore,e.converter,l_(e._query,n)))}_getQueryConstraints(){return this._queryConstraints}_getOperator(){return this.type==="and"?"and":"or"}}class BE extends UE{constructor(e,n){super(),this._field=e,this._direction=n,this.type="orderBy"}static _create(e,n){return new BE(e,n)}_apply(e){const n=(function(s,i,o){if(s.startAt!==null)throw new le(j.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(s.endAt!==null)throw new le(j.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");return new nu(i,o)})(e._query,this._field,this._direction);return new li(e.firestore,e.converter,(function(s,i){const o=s.explicitOrderBy.concat([i]);return new Pl(s.path,s.collectionGroup,o,s.filters.slice(),s.limit,s.limitType,s.startAt,s.endAt)})(e._query,n))}}function KQ(t,e="asc"){const n=e,r=pp("orderBy",t);return BE._create(r,n)}class HE extends UE{constructor(e,n,r){super(),this.type=e,this._limit=n,this._limitType=r}static _create(e,n,r){return new HE(e,n,r)}_apply(e){return new li(e.firestore,e.converter,Qh(e._query,this._limit,this._limitType))}}function XQ(t){return N9("limit",t),HE._create("limit",t,"F")}function Zb(t,e,n){if(typeof(n=dt(n))=="string"){if(n==="")throw new le(j.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.");if(!D1(e)&&n.indexOf("/")!==-1)throw new le(j.INVALID_ARGUMENT,`Invalid query. When querying a collection by documentId(), you must provide a plain document ID, but '${n}' contains a '/' character.`);const r=e.path.child(_t.fromString(n));if(!we.isDocumentKey(r))throw new le(j.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 fb(t,new we(r))}if(n instanceof xn)return fb(t,n._key);throw new le(j.INVALID_ARGUMENT,`Invalid query. When querying with documentId(), you must provide a valid string or a DocumentReference, but it was: ${cp(n)}.`)}function eS(t,e){if(!Array.isArray(t)||t.length===0)throw new le(j.INVALID_ARGUMENT,`Invalid Query. A non-empty array is required for '${e.toString()}' filters.`)}function LP(t,e){const n=(function(s,i){for(const o of s)for(const a of o.getFlattenedFilters())if(i.indexOf(a.op)>=0)return a.op;return null})(t.filters,(function(s){switch(s){case"!=":return["!=","not-in"];case"array-contains-any":case"in":return["not-in"];case"not-in":return["array-contains-any","in","not-in","!="];default:return[]}})(e.op));if(n!==null)throw n===e.op?new le(j.INVALID_ARGUMENT,`Invalid query. You cannot use more than one '${e.op.toString()}' filter.`):new le(j.INVALID_ARGUMENT,`Invalid query. You cannot use '${e.op.toString()}' filters with '${n.toString()}' filters.`)}class W9{convertValue(e,n="none"){switch(Qi(e)){case 0:return null;case 1:return e.booleanValue;case 2:return Mt(e.integerValue||e.doubleValue);case 3:return this.convertTimestamp(e.timestampValue);case 4:return this.convertServerTimestamp(e,n);case 5:return e.stringValue;case 6:return this.convertBytes(Ji(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 Ie(62114,{value:e})}}convertObject(e,n){return this.convertObjectMap(e.fields,n)}convertObjectMap(e,n="none"){const r={};return lo(e,((s,i)=>{r[s]=this.convertValue(i,n)})),r}convertVectorValue(e){var n,r,s;const i=(s=(r=(n=e.fields)===null||n===void 0?void 0:n[Xh].arrayValue)===null||r===void 0?void 0:r.values)===null||s===void 0?void 0:s.map((o=>Mt(o.doubleValue)));return new OE(i)}convertGeoPoint(e){return new PE(Mt(e.latitude),Mt(e.longitude))}convertArray(e,n){return(e.values||[]).map((r=>this.convertValue(r,n)))}convertServerTimestamp(e,n){switch(n){case"previous":const r=Zd(e);return r==null?null:this.convertValue(r,n);case"estimate":return this.convertTimestamp(Zc(e));default:return null}}convertTimestamp(e){const n=Xi(e);return new Gt(n.seconds,n.nanos)}convertDocumentKey(e,n){const r=_t.fromString(e);it(sP(r),9688,{name:e});const s=new eu(r.get(1),r.get(3)),i=new we(r.popFirst(5));return s.isEqual(n)||ri(`Document ${i} contains a document reference within a different database (${s.projectId}/${s.database}) which is not supported. It will be treated as a reference in the current database (${n.projectId}/${n.database}) instead.`),i}}function G9(t,e,n){let r;return r=t?t.toFirestore(e):e,r}class fc{constructor(e,n){this.hasPendingWrites=e,this.fromCache=n}isEqual(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}}class VP extends xP{constructor(e,n,r,s,i,o){super(e,n,r,s,o),this._firestore=e,this._firestoreImpl=e,this.metadata=i}exists(){return super.exists()}data(e={}){if(this._document){if(this._converter){const n=new oh(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(pp("DocumentSnapshot.get",e));if(r!==null)return this._userDataWriter.convertValue(r,n.serverTimestamps)}}}class oh extends VP{data(e={}){return super.data(e)}}class UP{constructor(e,n,r,s){this._firestore=e,this._userDataWriter=n,this._snapshot=s,this.metadata=new fc(s.hasPendingWrites,s.fromCache),this.query=r}get docs(){const e=[];return this.forEach((n=>e.push(n))),e}get size(){return this._snapshot.docs.size}get empty(){return this.size===0}forEach(e,n){this._snapshot.docs.forEach((r=>{e.call(n,new oh(this._firestore,this._userDataWriter,r.key,r,new fc(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 le(j.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===n||(this._cachedChanges=(function(s,i){if
45(s._snapshot.oldDocs.isEmpty()){let o=0;return s._snapshot.docChanges.map((a=>{const l=new oh(s._firestore,s._userDataWriter,a.doc.key,a.doc,new fc(s._snapshot.mutatedKeys.has(a.doc.key),s._snapshot.fromCache),s.query.converter);return a.doc,{type:"added",doc:l,oldIndex:-1,newIndex:o++}}))}{let o=s._snapshot.oldDocs;return s._snapshot.docChanges.filter((a=>i||a.type!==3)).map((a=>{const l=new oh(s._firestore,s._userDataWriter,a.doc.key,a.doc,new fc(s._snapshot.mutatedKeys.has(a.doc.key),s._snapshot.fromCache),s.query.converter);let u=-1,f=-1;return a.type!==0&&(u=o.indexOf(a.doc.key),o=o.delete(a.doc.key)),a.type!==1&&(o=o.add(a.doc),f=o.indexOf(a.doc.key)),{type:Y9(a.type),doc:l,oldIndex:u,newIndex:f}}))}})(this,n),this._cachedChangesIncludeMetadataChanges=n),this._cachedChanges}}function Y9(t){switch(t){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return Ie(61501,{type:t})}}function JQ(t){t=Ir(t,xn);const e=Ir(t.firestore,Zo);return C9(fp(e),t._key).then((n=>BP(e,t,n)))}class $E extends W9{constructor(e){super(),this.firestore=e}convertBytes(e){return new cl(e)}convertReference(e){const n=this.convertDocumentKey(e,this.firestore._databaseId);return new xn(this.firestore,null,n)}}function QQ(t){t=Ir(t,li);const e=Ir(t.firestore,Zo),n=fp(e),r=new $E(e);return MP(t._query),P9(n,t._query).then((s=>new UP(e,r,t,s)))}function ZQ(t,e,n){t=Ir(t,xn);const r=Ir(t.firestore,Zo),s=G9(t.converter,e);return FP(r,[U9(kE(r),"setDoc",t._key,s,t.converter!==null,n).toMutation(t._key,ms.none())])}function eZ(t,e,n,...r){t=Ir(t,xn);const s=Ir(t.firestore,Zo),i=kE(s);let o;return o=typeof(e=dt(e))=="string"||e instanceof hp?B9(i,"updateDoc",t._key,e,n,r):F9(i,"updateDoc",t._key,e),FP(s,[o.toMutation(t._key,ms.exists(!0))])}function z9(t,...e){var n,r,s;t=dt(t);let i={includeMetadataChanges:!1,source:"default"},o=0;typeof e[o]!="object"||Xb(e[o])||(i=e[o],o++);const a={includeMetadataChanges:i.includeMetadataChanges,source:i.source};if(Xb(e[o])){const h=e[o];e[o]=(n=h.next)===null||n===void 0?void 0:n.bind(h),e[o+1]=(r=h.error)===null||r===void 0?void 0:r.bind(h),e[o+2]=(s=h.complete)===null||s===void 0?void 0:s.bind(h)}let l,u,f;if(t instanceof xn)u=Ir(t.firestore,Zo),f=ep(t._key.path),l={next:h=>{e[o]&&e[o](BP(u,t,h))},error:e[o+1],complete:e[o+2]};else{const h=Ir(t,li);u=Ir(h.firestore,Zo),f=h._query;const d=new $E(u);l={next:p=>{e[o]&&e[o](new UP(u,d,h,p))},error:e[o+1],complete:e[o+2]},MP(t._query)}return(function(d,p,g,_){const v=new CE(_),N=new IE(p,v,g);return d.asyncQueue.enqueueAndForget((async()=>wE(await rd(d),N))),()=>{v.Cu(),d.asyncQueue.enqueueAndForget((async()=>bE(await rd(d),N)))}})(fp(u),f,a,l)}function FP(t,e){return(function(r,s){const i=new Ws;return r.asyncQueue.enqueueAndForget((async()=>g9(await R9(r),s,i))),i.promise})(fp(t),e)}function BP(t,e,n){const r=n.docs.get(e._key),s=new $E(t);return new VP(t,s,e._key,r,new fc(n.hasPendingWrites,n.fromCache),e.converter)}function tZ(){return new DE("serverTimestamp")}function nZ(t){return new xE("increment",t)}(function(e,n=!0){(function(s){Al=s})(ca),Ko(new Yi("firestore",((r,{instanceIdentifier:s,options:i})=>{const o=r.getProvider("app").getImmediate(),a=new Zo(new H$(r.getProvider("auth-internal")),new q$(o,r.getProvider("app-check-internal")),(function(u,f){if(!Object.prototype.hasOwnProperty.apply(u.options,["projectId"]))throw new le(j.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new eu(u.options.projectId,f)})(o,s),o);return i=Object.assign({useFetchStreams:n},i),a._setSettings(i),a}),"PUBLIC").setMultipleInstances(!0)),hs(Z0,eb,e),hs(Z0,eb,"esm2017")})();var HP;function se(){return HP.apply(null,arguments)}function K9(t){HP=t}function Kr(t){return t instanceof Array||Object.prototype.toString.call(t)==="[object Array]"}function Ho(t){return t!=null&&Object.prototype.toString.call(t)==="[object Object]"}function Qe(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function jE(t){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(t).length===0;var e;for(e in t)if(Qe(t,e))return!1;return!0}function Zn(t){return t===void 0}function ii(t){return typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]"}function Hu(t){return t instanceof Date||Object.prototype.toString.call(t)==="[object Date]"}function $P(t,e){var n=[],r,s=t.length;for(r=0;r<s;++r)n.push(e(t[r],r));return n}
vendor: 14,653 bytes, lines 45-48
45function Di(t,e){for(var n in e)Qe(e,n)&&(t[n]=e[n]);return Qe(e,"toString")&&(t.toString=e.toString),Qe(e,"valueOf")&&(t.valueOf=e.valueOf),t}function ws(t,e,n,r){return fO(t,e,n,r,!0).utc()}function X9(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function Me(t){return t._pf==null&&(t._pf=X9()),t._pf}var E_;Array.prototype.some?E_=Array.prototype.some:E_=function(t){var e=Object(this),n=e.length>>>0,r;for(r=0;r<n;r++)if(r in e&&t.call(this,e[r],r,e))return!0;return!1};function qE(t){var e=null,n=!1,r=t._d&&!isNaN(t._d.getTime());if(r&&(e=Me(t),n=E_.call(e.parsedDateParts,function(s){return s!=null}),r=e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n),t._strict&&(r=r&&e.charsLeftOver===0&&e.unusedTokens.length===0&&e.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(t))t._isValid=r;else return r;return t._isValid}function gp(t){var e=ws(NaN);return t!=null?Di(Me(e),t):Me(e).userInvalidated=!0,e}var tS=se.momentProperties=[],qm=!1;function WE(t,e){var n,r,s,i=tS.length;if(Zn(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),Zn(e._i)||(t._i=e._i),Zn(e._f)||(t._f=e._f),Zn(e._l)||(t._l=e._l),Zn(e._strict)||(t._strict=e._strict),Zn(e._tzm)||(t._tzm=e._tzm),Zn(e._isUTC)||(t._isUTC=e._isUTC),Zn(e._offset)||(t._offset=e._offset),Zn(e._pf)||(t._pf=Me(e)),Zn(e._locale)||(t._locale=e._locale),i>0)for(n=0;n<i;n++)r=tS[n],s=e[r],Zn(s)||(t[r]=s);return t}function $u(t){WE(this,t),this._d=new Date(t._d!=null?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),qm===!1&&(qm=!0,se.updateOffset(this),qm=!1)}function Xr(t){return t instanceof $u||t!=null&&t._isAMomentObject!=null}function jP(t){se.suppressDeprecationWarnings===!1&&typeof console<"u"}function kr(t,e){var n=!0;return Di(function(){if(se.deprecationHandler!=null&&se.deprecationHandler(null,t),n){var r=[],s,i,o,a=arguments.length;for(i=0;i<a;i++){if(s="",typeof arguments[i]=="object"){s+=` 46[`+i+"] ";for(o in arguments[0])Qe(arguments[0],o)&&(s+=o+": "+arguments[0][o]+", ");s=s.slice(0,-2)}else s=arguments[i];r.push(s)}jP(t+` 47Arguments: `+Array.prototype.slice.call(r).join("")+` 48`+new Error().stack),n=!1}return e.apply(this,arguments)},e)}var nS={};function qP(t,e){se.deprecationHandler!=null&&se.deprecationHandler(t,e),nS[t]||(jP(e),nS[t]=!0)}se.suppressDeprecationWarnings=!1;se.deprecationHandler=null;function bs(t){return typeof Function<"u"&&t instanceof Function||Object.prototype.toString.call(t)==="[object Function]"}function J9(t){var e,n;for(n in t)Qe(t,n)&&(e=t[n],bs(e)?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function v_(t,e){var n=Di({},t),r;for(r in e)Qe(e,r)&&(Ho(t[r])&&Ho(e[r])?(n[r]={},Di(n[r],t[r]),Di(n[r],e[r])):e[r]!=null?n[r]=e[r]:delete n[r]);for(r in t)Qe(t,r)&&!Qe(e,r)&&Ho(t[r])&&(n[r]=Di({},n[r]));return n}function GE(t){t!=null&&this.set(t)}var T_;Object.keys?T_=Object.keys:T_=function(t){var e,n=[];for(e in t)Qe(t,e)&&n.push(e);return n};var Q9={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Z9(t,e,n){var r=this._calendar[t]||this._calendar.sameElse;return bs(r)?r.call(e,n):r}function Es(t,e,n){var r=""+Math.abs(t),s=e-r.length,i=t>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+r}var YE=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Lf=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Wm={},ja={};function ye(t,e,n,r){var s=r;typeof r=="string"&&(s=function(){return this[r]()}),t&&(ja[t]=s),e&&(ja[e[0]]=function(){return Es(s.apply(this,arguments),e[1],e[2])}),n&&(ja[n]=function(){return this.localeData().ordinal(s.apply(this,arguments),t)})}function eq(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function tq(t){var e=t.match(YE),n,r;for(n=0,r=e.length;n<r;n++)ja[e[n]]?e[n]=ja[e[n]]:e[n]=eq(e[n]);return function(s){var i="",o;for(o=0;o<r;o++)i+=bs(e[o])?e[o].call(s,t):e[o];return i}}function ah(t,e){return t.isValid()?(e=WP(e,t.localeData()),Wm[e]=Wm[e]||tq(e),Wm[e](t)):t.localeData().invalidDate()}function WP(t,e){var n=5;function r(s){return e.longDateFormat(s)||s}for(Lf.lastIndex=0;n>=0&&Lf.test(t);)t=t.replace(Lf,r),Lf.lastIndex=0,n-=1;return t}var nq={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function rq(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(YE).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[t])}var sq="Invalid date";function iq(){return this._invalidDate}var oq="%d",aq=/\d{1,2}/;function lq(t){return this._ordinal.replace("%d",t)}var cq={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function uq(t,e,n,r){var s=this._relativeTime[n];return bs(s)?s(t,e,n,r):s.replace(/%d/i,t)}function fq(t,e){var n=this._relativeTime[t>0?"future":"past"];return bs(n)?n(e):n.replace(/%s/i,e)}var rS={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Dr(t){return typeof t=="string"?rS[t]||rS[t.toLowerCase()]:void 0}function zE(t){var e={},n,r;for(r in t)Qe(t,r)&&(n=Dr(r),n&&(e[n]=t[r]));return e}var hq={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function dq(t){var e=[],n;for(n in t)Qe(t,n)&&e.push({unit:n,priority:hq[n]});return e.sort(function(r,s){return r.priority-s.priority}),e}var GP=/\d/,yr=/\d\d/,YP=/\d{3}/,KE=/\d{4}/,_p=/[+-]?\d{6}/,Tt=/\d\d?/,zP=/\d\d\d\d?/,KP=/\d\d\d\d\d\d?/,yp=/\d{1,3}/,XE=/\d{1,4}/,Ep=/[+-]?\d{1,6}/,Nl=/\d+/,vp=/[+-]?\d+/,pq=/Z|[+-]\d\d:?\d\d/gi,Tp=/Z|[+-]\d\d(?::?\d\d)?/gi,mq=/[+-]?\d+(\.\d{1,3})?/,ju=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,kl=/^[1-9]\d?/,JE=/^([1-9]\d|\d)/,id;id={};function ue(t,e,n){id[t]=bs(e)?e:function(r,s){return r&&n?n:e}}function gq(t,e){return Qe(id,t)?id[t](e._strict,e._locale):new RegExp(_q(t))}function _q(t){return Gs(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,n,r,s,i){return n||r||s||i}))}function Gs(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function wr(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function qe(t){var e=+t,n=0;return e!==0&&isFinite(e)&&(n=wr(e)),n}var w_={};function at(t,e){var n,r=e,s;for(typeof t=="string"&&(t=[t]),ii(e)&&(r=function(i,o){o[e]=qe(i)}),s=t.length,n=0;n<s;n++)w_[t[n]]=r}function qu(t,e){at(t,function(n,r,s,i){s._w=s._w||{},e(n,s._w,s,i)})}function yq(t,e,n){e!=null&&Qe(w_,t)&&w_[t](e,n._a,n,t)}function wp(t){return t%4===0&&t%100!==0||t%400===0}var Mn=0,$s=1,ls=2,qt=3,Hr=4,js=5,Co=6,Eq=7,vq=8;ye("Y",0,0,function(){var t=this.year();return t<=9999?Es(t,4):"+"+t});ye(0,["YY",2],0,function(){return this.year()%100});ye(0,["YYYY",4],0,"year");ye(0,["YYYYY",5],0,"year");ye(0,["YYYYYY",6,!0],0,"year");ue("Y",vp);ue("YY",Tt,yr);ue("YYYY",XE,KE);ue("YYYYY",Ep,_p);ue("YYYYYY",Ep,_p);at(["YYYYY","YYYYYY"],Mn);at("YYYY",function(t,e){e[Mn]=t.length===2?se.parseTwoDigitYear(t):qe(t)});at("YY",function(t,e){e[Mn]=se.parseTwoDigitYear(t)});at("Y",function(t,e){e[Mn]=parseInt(t,10)});function Ac(t){return wp(t)?366:365}se.parseTwoDigitYear=function(t){return qe(t)+(qe(t)>68?1900:2e3)};var XP=Dl("FullYear",!0);function Tq(){return wp(this.year())}function Dl(t,e){return function(n){return n!=null?(JP(this,t,n),se.updateOffset(this,e),this):au(this,t)}}function au(t,e){if(!t.isValid())return NaN;var n=t._d,r=t._isUTC;switch(e){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function JP(t,e,n){var r,s,i,o,a;if(!(!t.isValid()||isNaN(n))){switch(r=t._d,s=t._isUTC,e){case"Milliseconds":return void(s?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(s?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(s?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(s?r.setUTCHours(n):r.setHours(n));case"Date":return void(s?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}i=n,o=t.month(),a=t.date(),a=a===29&&o===1&&!wp(i)?28:a,s?r.setUTCFullYear(i,o,a):r.setFullYear(i,o,a)}}function wq(t){return t=Dr(t),bs(this[t])?this[t]():this}function bq(t,e){if(typeof t=="object"){t=zE(t);var n=dq(t),r,s=n.length;for(r=0;r<s;r++)this[n[r].unit](t[n[r].unit])}else if(t=Dr(t),bs(this[t]))return this[t](e);return this}function Sq(t,e){return(t%e+e)%e}var xt;Array.prototype.indexOf?xt=Array.prototype.indexOf:xt=function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1};function QE(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=Sq(e,12);return t+=(e-n)/12,n===1?wp(t)?29:28:31-n%7%2}ye("M",["MM",2],"Mo",function(){return this.month()+1});ye("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)});ye("MMMM",0,0,function(t){return this.localeData().months(this,t)});ue("M",Tt,kl);ue("MM",Tt,yr);ue("MMM",function(t,e){return e.monthsShortRegex(t)});ue("MMMM",function(t,e){return e.monthsRegex(t)});at(["M","MM"],function(t,e){e[$s]=qe(t)-1});at(["MMM","MMMM"],function(t,e,n,r){var s=n._locale.monthsParse(t,r,n._strict);s!=null?e[$s]=s:Me(n).invalidMonth=t});var Iq="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),QP="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ZP=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Aq=ju,Rq=ju;function Cq(t,e){return t?Kr(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||ZP).test(e)?"format":"standalone"][t.month()]:Kr(this._months)?this._months:this._months.standalone}function Pq(t,e){return t?Kr(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[ZP.test(e)?"format":"standalone"][t.month()]:Kr(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Oq(t,e,n){var r,s,i,o=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=ws([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?e==="MMM"?(s=xt.call(this._shortMonthsParse,o),s!==-1?s:null):(s=xt.call(this._longMonthsParse,o),s!==-1?s:null):e==="MMM"?(s=xt.call(this._shortMonthsParse,o),s!==-1?s:(s=xt.call(this._longMonthsParse,o),s!==-1?s:null)):(s=xt.call(this._longMonthsParse,o),s!==-1?s:(s=xt.call(this._shortMonthsParse,o),s!==-1?s:null))}function Nq(t,e,n){var r,s,i;if(this._monthsParseExact)return Oq.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(s=ws([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(i="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&e==="MMMM"&&this._longMonthsParse[r].test(t))return r;if(n&&e==="MMM"&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}}function eO(t,e){if(!t.isValid())return t;if(typeof e=="string"){if(/^\d+$/.test(e))e=qe(e);else if(e=t.localeData().monthsParse(e),!ii(e))return t}var n=e,r=t.date();return r=r<29?r:Math.min(r,QE(t.year(),n)),t._isUTC?t._d.setUTCMonth(n,r):t._d.setMonth(n,r),t}function tO(t){return t!=null?(eO(this,t),se.updateOffset(this,!0),this):au(this,"Month")}function kq(){return QE(this.year(),this.month())}function Dq(t){return this._monthsParseExact?(Qe(this,"_monthsRegex")||nO.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(Qe(this,"_monthsShortRegex")||(this._monthsShortRegex=Aq),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function xq(t){return this._monthsParseExact?(Qe(this,"_monthsRegex")||nO.call(this),t?this._monthsStrictRegex:this._monthsRegex):(Qe(this,"_monthsRegex")||(this._monthsRegex=Rq),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function nO(){function t(l,u){return u.length-l.length}var e=[],n=[],r=[],s,i,o,a;for(s=0;s<12;s++)i=ws([2e3,s]),o=Gs(this.monthsShort(i,"")),a=Gs(this.months(i,"")),e.push(o),n.push(a),r.push(a),r.push(o);e.sort(t),n.sort(t),r.sort(t),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")","i")}function Mq(t,e,n,r,s,i,o){var a;return t<100&&t>=0?(a=new Date(t+400,e,n,r,s,i,o),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,n,r,s,i,o),a}function lu(t){var e,n;return t<100&&t>
48=0?(n=Array.prototype.slice.call(arguments),n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function od(t,e,n){var r=7+e-n,s=(7+lu(t,0,r).getUTCDay()-e)%7;return-s+r-1}function rO(t,e,n,r,s){var i=(7+n-r)%7,o=od(t,r,s),a=1+7*(e-1)+i+o,l,u;return a<=0?(l=t-1,u=Ac(l)+a):a>Ac(t)?(l=t+1,u=a-Ac(t)):(l=t,u=a),{year:l,dayOfYear:u}}function cu(t,e,n){var r=od(t.year(),e,n),s=Math.floor((t.dayOfYear()-r-1)/7)+1,i,o;return s<1?(o=t.year()-1,i=s+Ys(o,e,n)):s>Ys(t.year(),e,n)?(i=s-Ys(t.year(),e,n),o=t.year()+1):(o=t.year(),i=s),{week:i,year:o}}function Ys(t,e,n){var r=od(t,e,n),s=od(t+1,e,n);return(Ac(t)-r+s)/7}ye("w",["ww",2],"wo","week");ye("W",["WW",2],"Wo","isoWeek");ue("w",Tt,kl);ue("ww",Tt,yr);ue("W",Tt,kl);ue("WW",Tt,yr);qu(["w","ww","W","WW"],function(t,e,n,r){e[r.substr(0,1)]=qe(t)});function Lq(t){return cu(t,this._week.dow,this._week.doy).week}var Vq={dow:0,doy:6};function Uq(){return this._week.dow}function Fq(){return this._week.doy}function Bq(t){var e=this.localeData().week(this);return t==null?e:this.add((t-e)*7,"d")}function Hq(t){var e=cu(this,1,4).week;return t==null?e:this.add((t-e)*7,"d")}ye("d",0,"do","day");ye("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)});ye("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)});ye("dddd",0,0,function(t){return this.localeData().weekdays(this,t)});ye("e",0,0,"weekday");ye("E",0,0,"isoWeekday");ue("d",Tt);ue("e",Tt);ue("E",Tt);ue("dd",function(t,e){return e.weekdaysMinRegex(t)});ue("ddd",function(t,e){return e.weekdaysShortRegex(t)});ue("dddd",function(t,e){return e.weekdaysRegex(t)});qu(["dd","ddd","dddd"],function(t,e,n,r){var s=n._locale.weekdaysParse(t,r,n._strict);s!=null?e.d=s:Me(n).invalidWeekday=t});qu(["d","e","E"],function(t,e,n,r){e[r]=qe(t)});function $q(t,e){return typeof t!="string"?t:isNaN(t)?(t=e.weekdaysParse(t),t
vendor: 14,327 bytes, line 48
48ypeof t=="number"?t:null):parseInt(t,10)}function jq(t,e){return typeof t=="string"?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function ZE(t,e){return t.slice(e,7).concat(t.slice(0,e))}var qq="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),sO="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Wq="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Gq=ju,Yq=ju,zq=ju;function Kq(t,e){var n=Kr(this._weekdays)?this._weekdays:this._weekdays[t&&t!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return t===!0?ZE(n,this._week.dow):t?n[t.day()]:n}function Xq(t){return t===!0?ZE(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Jq(t){return t===!0?ZE(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Qq(t,e,n){var r,s,i,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=ws([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?e==="dddd"?(s=xt.call(this._weekdaysParse,o),s!==-1?s:null):e==="ddd"?(s=xt.call(this._shortWeekdaysParse,o),s!==-1?s:null):(s=xt.call(this._minWeekdaysParse,o),s!==-1?s:null):e==="dddd"?(s=xt.call(this._weekdaysParse,o),s!==-1||(s=xt.call(this._shortWeekdaysParse,o),s!==-1)?s:(s=xt.call(this._minWeekdaysParse,o),s!==-1?s:null)):e==="ddd"?(s=xt.call(this._shortWeekdaysParse,o),s!==-1||(s=xt.call(this._weekdaysParse,o),s!==-1)?s:(s=xt.call(this._minWeekdaysParse,o),s!==-1?s:null)):(s=xt.call(this._minWeekdaysParse,o),s!==-1||(s=xt.call(this._weekdaysParse,o),s!==-1)?s:(s=xt.call(this._shortWeekdaysParse,o),s!==-1?s:null))}function Zq(t,e,n){var r,s,i;if(this._weekdaysParseExact)return Qq.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(s=ws([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&e==="dddd"&&this._fullWeekdaysParse[r].test(t))return r;if(n&&e==="ddd"&&this._shortWeekdaysParse[r].test(t))return r;if(n&&e==="dd"&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}}function eW(t){if(!this.isValid())return t!=null?this:NaN;var e=au(this,"Day");return t!=null?(t=$q(t,this.localeData()),this.add(t-e,"d")):e}function tW(t){if(!this.isValid())return t!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return t==null?e:this.add(t-e,"d")}function nW(t){if(!this.isValid())return t!=null?this:NaN;if(t!=null){var e=jq(t,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function rW(t){return this._weekdaysParseExact?(Qe(this,"_weekdaysRegex")||ev.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(Qe(this,"_weekdaysRegex")||(this._weekdaysRegex=Gq),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function sW(t){return this._weekdaysParseExact?(Qe(this,"_weekdaysRegex")||ev.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Qe(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Yq),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function iW(t){return this._weekdaysParseExact?(Qe(this,"_weekdaysRegex")||ev.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Qe(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=zq),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ev(){function t(f,h){return h.length-f.length}var e=[],n=[],r=[],s=[],i,o,a,l,u;for(i=0;i<7;i++)o=ws([2e3,1]).day(i),a=Gs(this.weekdaysMin(o,"")),l=Gs(this.weekdaysShort(o,"")),u=Gs(this.weekdays(o,"")),e.push(a),n.push(l),r.push(u),s.push(a),s.push(l),s.push(u);e.sort(t),n.sort(t),r.sort(t),s.sort(t),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function tv(){return this.hours()%12||12}function oW(){return this.hours()||24}ye("H",["HH",2],0,"hour");ye("h",["hh",2],0,tv);ye("k",["kk",2],0,oW);ye("hmm",0,0,function(){return""+tv.apply(this)+Es(this.minutes(),2)});ye("hmmss",0,0,function(){return""+tv.apply(this)+Es(this.minutes(),2)+Es(this.seconds(),2)});ye("Hmm",0,0,function(){return""+this.hours()+Es(this.minutes(),2)});ye("Hmmss",0,0,function(){return""+this.hours()+Es(this.minutes(),2)+Es(this.seconds(),2)});function iO(t,e){ye(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}iO("a",!0);iO("A",!1);function oO(t,e){return e._meridiemParse}ue("a",oO);ue("A",oO);ue("H",Tt,JE);ue("h",Tt,kl);ue("k",Tt,kl);ue("HH",Tt,yr);ue("hh",Tt,yr);ue("kk",Tt,yr);ue("hmm",zP);ue("hmmss",KP);ue("Hmm",zP);ue("Hmmss",KP);at(["H","HH"],qt);at(["k","kk"],function(t,e,n){var r=qe(t);e[qt]=r===24?0:r});at(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t});at(["h","hh"],function(t,e,n){e[qt]=qe(t),Me(n).bigHour=!0});at("hmm",function(t,e,n){var r=t.length-2;e[qt]=qe(t.substr(0,r)),e[Hr]=qe(t.substr(r)),Me(n).bigHour=!0});at("hmmss",function(t,e,n){var r=t.length-4,s=t.length-2;e[qt]=qe(t.substr(0,r)),e[Hr]=qe(t.substr(r,2)),e[js]=qe(t.substr(s)),Me(n).bigHour=!0});at("Hmm",function(t,e,n){var r=t.length-2;e[qt]=qe(t.substr(0,r)),e[Hr]=qe(t.substr(r))});at("Hmmss",function(t,e,n){var r=t.length-4,s=t.length-2;e[qt]=qe(t.substr(0,r)),e[Hr]=qe(t.substr(r,2)),e[js]=qe(t.substr(s))});function aW(t){return(t+"").toLowerCase().charAt(0)==="p"}var lW=/[ap]\.?m?\.?/i,cW=Dl("Hours",!0);function uW(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var aO={calendar:Q9,longDateFormat:nq,invalidDate:sq,ordinal:oq,dayOfMonthOrdinalParse:aq,relativeTime:cq,months:Iq,monthsShort:QP,week:Vq,weekdays:qq,weekdaysMin:Wq,weekdaysShort:sO,meridiemParse:lW},bt={},tc={},uu;function fW(t,e){var n,r=Math.min(t.length,e.length);for(n=0;n<r;n+=1)if(t[n]!==e[n])return n;return r}function sS(t){return t&&t.toLowerCase().replace("_","-")}function hW(t){for(var e=0,n,r,s,i;e<t.length;){for(i=sS(t[e]).split("-"),n=i.length,r=sS(t[e+1]),r=r?r.split("-"):null;n>0;){if(s=bp(i.slice(0,n).join("-")),s)return s;if(r&&r.length>=n&&fW(i,r)>=n-1)break;n--}e++}return uu}function dW(t){return!!(t&&t.match("^[^/\\\\]*$"))}function bp(t){var e=null,n;if(bt[t]===void 0&&typeof module<"u"&&module&&module.exports&&dW(t))try{e=uu._abbr,n=require,n("./locale/"+t),qi(e)}catch{bt[t]=null}return bt[t]}function qi(t,e){var n;return t&&(Zn(e)?n=ci(t):n=nv(t,e),n&&(uu=n)),uu._abbr}function nv(t,e){if(e!==null){var n,r=aO;if(e.abbr=t,bt[t]!=null)qP("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=bt[t]._config;else if(e.parentLocale!=null)if(bt[e.parentLocale]!=null)r=bt[e.parentLocale]._config;else if(n=bp(e.parentLocale),n!=null)r=n._config;else return tc[e.parentLocale]||(tc[e.parentLocale]=[]),tc[e.parentLocale].push({name:t,config:e}),null;return bt[t]=new GE(v_(r,e)),tc[t]&&tc[t].forEach(function(s){nv(s.name,s.config)}),qi(t),bt[t]}else return delete bt[t],null}function pW(t,e){if(e!=null){var n,r,s=aO;bt[t]!=null&&bt[t].parentLocale!=null?bt[t].set(v_(bt[t]._config,e)):(r=bp(t),r!=null&&(s=r._config),e=v_(s,e),r==null&&(e.abbr=t),n=new GE(e),n.parentLocale=bt[t],bt[t]=n),qi(t)}else bt[t]!=null&&(bt[t].parentLocale!=null?(bt[t]=bt[t].parentLocale,t===qi()&&qi(t)):bt[t]!=null&&delete bt[t]);return bt[t]}function ci(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return uu;if(!Kr(t)){if(e=bp(t),e)return e;t=[t]}return hW(t)}function mW(){return T_(bt)}function rv(t){var e,n=t._a;return n&&Me(t).overflow===-2&&(e=n[$s]<0||n[$s]>11?$s:n[ls]<1||n[ls]>QE(n[Mn],n[$s])?ls:n[qt]<0||n[qt]>24||n[qt]===24&&(n[Hr]!==0||n[js]!==0||n[Co]!==0)?qt:n[Hr]<0||n[Hr]>59?Hr:n[js]<0||n[js]>59?js:n[Co]<0||n[Co]>999?Co:-1,Me(t)._overflowDayOfYear&&(e<Mn||e>ls)&&(e=ls),Me(t)._overflowWeeks&&e===-1&&(e=Eq),Me(t)._overflowWeekday&&e===-1&&(e=vq),Me(t).overflow=e),t}var gW=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_W=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yW=/Z|[+-]\d\d(?::?\d\d)?/,Vf=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Gm=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],EW=/^\/?Date\((-?\d+)/i,vW=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,TW={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function lO(t){var e,n,r=t._i,s=gW.exec(r)||_W.exec(r),i,o,a,l,u=Vf.length,f=Gm.length;if(s){for(Me(t).iso=!0,e=0,n=u;e<n;e++)if(Vf[e][1].exec(s[1])){o=Vf[e][0],i=Vf[e][2]!==!1;break}if(o==null){t._isValid=!1;return}if(s[3]){for(e=0,n=f;e<n;e++)if(Gm[e][1].exec(s[3])){a=(s[2]||" ")+Gm[e][0];break}if(a==null){t._isValid=!1;return}}if(!i&&a!=null){t._isValid=!1;return}if(s[4])if(yW.exec(s[4]))l="Z";else{t._isValid=!1;return}t._f=o+(a||"")+(l||""),iv(t)}else t._isValid=!1}function wW(t,e,n,r,s,i){var o=[bW(t),QP.indexOf(e),parseInt(n,10),parseInt(r,10),parseInt(s,10)];return i&&o.push(parseInt(i,10)),o}function bW(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function SW(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function IW(t,e,n){if(t){var r=sO.indexOf(t),s=new Date(e[0],e[1],e[2]).getDay();if(r!==s)return Me(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function AW(t,e,n){if(t)return TW[t];if(e)return 0;var r=parseInt(n,10),s=r%100,i=(r-s)/100;return i*60+s}function cO(t){var e=vW.exec(SW(t._i)),n;if(e){if(n=wW(e[4],e[3],e[2],e[5],e[6],e[7]),!IW(e[1],n,t))return;t._a=n,t._tzm=AW(e[8],e[9],e[10]),t._d=lu.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),Me(t).rfc2822=!0}else t._isValid=!1}function RW(t){var e=EW.exec(t._i);if(e!==null){t._d=new Date(+e[1]);return}if(lO(t),t._isValid===!1)delete t._isValid;else return;if(cO(t),t._isValid===!1)delete t._isValid;else return;t._strict?t._isValid=!1:se.createFromInputFallback(t)}se.createFromInputFallback=kr("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))});function Na(t,e,n){return t??e??n}function CW(t){var e=new Date(se.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function sv(t){var e,n,r=[],s,i,o;if(!t._d){for(s=CW(t),t._w&&t._a[ls]==null&&t._a[$s]==null&&PW(t),t._dayOfYear!=null&&(o=Na(t._a[Mn],s[Mn]),(t._dayOfYear>Ac(o)||t._dayOfYear===0)&&(Me(t)._overflowDayOfYear=!0),n=lu(o,0,t._dayOfYear),t._a[$s]=n.getUTCMonth(),t._a[ls]=n.getUTCDate()),e=0;e<3&&t._a[e]==null;++e)t._a[e]=r[e]=s[e];for(;e<7;e++)t._a[e]=r[e]=t._a[e]==null?e===2?1:0:t._a[e];t._a[qt]===24&&t._a[Hr]===0&&t._a[js]===0&&t._a[Co]===0&&(t._nextDay=!0,t._a[qt]=0),t._d=(t._useUTC?lu:Mq).apply(null,r),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),t._tzm!=null&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[qt]=24),t._w&&typeof t._w.d<"u"&&t._w.d!==i&&(Me(t).weekdayMismatch=!0)}}function PW(t){var e,n,r,s,i,o,a,l,u;e=t._w,e.GG!=null||e.W!=null||e.E!=null?(i=1,o=4,n=Na(e.GG,t._a[Mn],cu(vt(),1,4).year),r=Na(e.W,1),s=Na(e.E,1),(s<1||s>7)&&(l=!0)):(i=t._locale._week.dow,o=t._locale._week.doy,u=cu(vt(),i,o),n=Na(e.gg,t._a[Mn],u.year),r=Na(e.w,u.week),e.d!=null?(s=e.d,(s<0||s>6)&&(l=!0)):e.e!=null?(s=e.e+i,(e.e<0||e.e>6)&&(l=!0)):s=i),r<1||r>Ys(n,i,o)?Me(t)._overflowWeeks=!0:l!=null?Me(t)._overflowWeekday=!0:(a=rO(n,r,s,i,o),t._a[Mn]=a.year,t._dayOfYear=a.dayOfYear)}se.ISO_8601=function(){};se.RFC_2822=function(){};function iv(t){if(t._f===se.ISO_8601){lO(t);return}if(t._f===se.RFC_2822){cO(t);return}t._a=[],Me(t).empty=!0;var e=""+t._i,n,r,s,i,o,a=e.length,l=0,u,f;for(s=WP(t._f,t._locale).match(YE)||[],f=s.length,n=0;n<f;n++)i=s[n],r=(e.match(gq(i,t))||[])[0],r&&(o=e.substr(0,e.indexOf(r)),o.length>0&&Me(t).unusedInput.push(o),e=e.slice(e.indexOf(r)+r.length),l+=r.length),ja[i]?(r?Me(t).empty=!1:Me(t).unusedTokens.push(i),yq(i,r,t)):t._strict&&!r&&Me(t).unusedTokens.push(i);Me(t).charsLeftOver=a-l,e.length>0&&Me(t).unusedInput.push(e),t._a[qt]<=12&&Me(t).bigHour===!0&&t._a[qt]>0&&(Me(t).bigHour=void 0),Me(t).parsedDateParts=t._a.slice(0),Me(t).meridiem=t._meridiem,t._a[qt]=OW(t._locale,t._a[qt],t._meridiem),u=Me(t).era,u!==null&&(t._a[Mn]=t._locale.erasConvertYear(u,t._a[Mn])),sv(t),rv(t)}function OW(t,e,n){var r;
vendor: 5,054 bytes, line 48
48return n==null?e:t.meridiemHour!=null?t.meridiemHour(e,n):(t.isPM!=null&&(r=t.isPM(n),r&&e<12&&(e+=12),!r&&e===12&&(e=0)),e)}function NW(t){var e,n,r,s,i,o,a=!1,l=t._f.length;if(l===0){Me(t).invalidFormat=!0,t._d=new Date(NaN);return}for(s=0;s<l;s++)i=0,o=!1,e=WE({},t),t._useUTC!=null&&(e._useUTC=t._useUTC),e._f=t._f[s],iv(e),qE(e)&&(o=!0),i+=Me(e).charsLeftOver,i+=Me(e).unusedTokens.length*10,Me(e).score=i,a?i<r&&(r=i,n=e):(r==null||i<r||o)&&(r=i,n=e,o&&(a=!0));Di(t,n||e)}function kW(t){if(!t._d){var e=zE(t._i),n=e.day===void 0?e.date:e.day;t._a=$P([e.year,e.month,n,e.hour,e.minute,e.second,e.millisecond],function(r){return r&&parseInt(r,10)}),sv(t)}}function DW(t){var e=new $u(rv(uO(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function uO(t){var e=t._i,n=t._f;return t._locale=t._locale||ci(t._l),e===null||n===void 0&&e===""?gp({nullInput:!0}):(typeof e=="string"&&(t._i=e=t._locale.preparse(e)),Xr(e)?new $u(rv(e)):(Hu(e)?t._d=e:Kr(n)?NW(t):n?iv(t):xW(t),qE(t)||(t._d=null),t))}function xW(t){var e=t._i;Zn(e)?t._d=new Date(se.now()):Hu(e)?t._d=new Date(e.valueOf()):typeof e=="string"?RW(t):Kr(e)?(t._a=$P(e.slice(0),function(n){return parseInt(n,10)}),sv(t)):Ho(e)?kW(t):ii(e)?t._d=new Date(e):se.createFromInputFallback(t)}function fO(t,e,n,r,s){var i={};return(e===!0||e===!1)&&(r=e,e=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(Ho(t)&&jE(t)||Kr(t)&&t.length===0)&&(t=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=s,i._l=n,i._i=t,i._f=e,i._strict=r,DW(i)}function vt(t,e,n,r){return fO(t,e,n,r,!1)}var MW=kr("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=vt.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:gp()}),LW=kr("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=vt.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:gp()});function hO(t,e){var n,r;if(e.length===1&&Kr(e[0])&&(e=e[0]),!e.length)return vt();for(n=e[0],r=1;r<e.length;++r)(!e[r].isValid()||e[r][t](n))&&(n=e[r]);return n}function VW(){var t=[].slice.call(arguments,0);return hO("isBefore",t)}function UW(){var t=[].slice.call(arguments,0);return hO("isAfter",t)}var FW=function(){return Date.now?Date.now():+new Date},nc=["year","quarter","month","week","day","hour","minute","second","millisecond"];function BW(t){var e,n=!1,r,s=nc.length;for(e in t)if(Qe(t,e)&&!(xt.call(nc,e)!==-1&&(t[e]==null||!isNaN(t[e]))))return!1;for(r=0;r<s;++r)if(t[nc[r]]){if(n)return!1;parseFloat(t[nc[r]])!==qe(t[nc[r]])&&(n=!0)}return!0}function HW(){return this._isValid}function $W(){return es(NaN)}function Sp(t){var e=zE(t),n=e.year||0,r=e.quarter||0,s=e.month||0,i=e.week||e.isoWeek||0,o=e.day||0,a=e.hour||0,l=e.minute||0,u=e.second||0,f=e.millisecond||0;this._isValid=BW(e),this._milliseconds=+f+u*1e3+l*6e4+a*1e3*60*60,this._days=+o+i*7,this._months=+s+r*3+n*12,this._data={},this._locale=ci(),this._bubble()}function lh(t){return t instanceof Sp}function b_(t){return t<0?Math.round(-1*t)*-1:Math.round(t)}function jW(t,e,n){var r=Math.min(t.length,e.length),s=Math.abs(t.length-e.length),i=0,o;for(o=0;o<r;o++)qe(t[o])!==qe(e[o])&&i++;return i+s}function dO(t,e){ye(t,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+Es(~~(n/60),2)+e+Es(~~n%60,2)})}dO("Z",":");dO("ZZ","");ue("Z",Tp);ue("ZZ",Tp);at(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=ov(Tp,t)});var qW=/([\+\-]|\d\d)/gi;function ov(t,e){var n=(e||"").match(t),r,s,i;return n===null?null:(r=n[n.length-1]||[],s=(r+"").match(qW)||["-",0,0],i=+(s[1]*60)+qe(s[2]),i===0?0:s[0]==="+"?i:-i)}function av(t,e){var n,r;return e._isUTC?(n=e.clone(),r=(Xr(t)||Hu(t)?t.valueOf():vt(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),se.updateOffset(n,!1),n):vt(t).local()}function S_(t){return-Math.round(t._d.getTimezoneOffset())}se.updateOffset=function(){};function WW(t,e,n){var r=this._offset||0,s;if(!this.isValid())return t!=null?this:NaN;if(t!=null){if(typeof t=="string"){if(t=ov(Tp,t),t===null)return this}else Math.abs(t)<16&&!n&&(t=t*60);return!this._isUTC&&e&&(s=S_(this)),this._offset=t,this._isUTC=!0,s!=null&&this.add(s,"m"),r!==t&&(!e||this._changeInProgress?gO(this,es(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,se.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:S_(this)}function GW(t,e){return t!=null?(typeof t!="string"&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function YW(t){return this.utcOffset(0,t)}function zW(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(S_(this),"m")),this}function KW(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var t=ov(pq,this._i);t!=null?this.utcOffset(t):this.utcOffset(0,!0)}return this}function XW(t){return this.isValid()?(t=t?vt(t).utcOffset():0,(this.utcOffset()-t)%60===0):!1}function JW(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}
vendor: 9,798 bytes, line 48
48function QW(){if(!Zn(this._isDSTShifted))return this._isDSTShifted;var t={},e;return WE(t,this),t=uO(t),t._a?(e=t._isUTC?ws(t._a):vt(t._a),this._isDSTShifted=this.isValid()&&jW(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function ZW(){return this.isValid()?!this._isUTC:!1}function e7(){return this.isValid()?this._isUTC:!1}function pO(){return this.isValid()?this._isUTC&&this._offset===0:!1}var t7=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,n7=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function es(t,e){var n=t,r=null,s,i,o;return lh(t)?n={ms:t._milliseconds,d:t._days,M:t._months}:ii(t)||!isNaN(+t)?(n={},e?n[e]=+t:n.milliseconds=+t):(r=t7.exec(t))?(s=r[1]==="-"?-1:1,n={y:0,d:qe(r[ls])*s,h:qe(r[qt])*s,m:qe(r[Hr])*s,s:qe(r[js])*s,ms:qe(b_(r[Co]*1e3))*s}):(r=n7.exec(t))?(s=r[1]==="-"?-1:1,n={y:Eo(r[2],s),M:Eo(r[3],s),w:Eo(r[4],s),d:Eo(r[5],s),h:Eo(r[6],s),m:Eo(r[7],s),s:Eo(r[8],s)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(o=r7(vt(n.from),vt(n.to)),n={},n.ms=o.milliseconds,n.M=o.months),i=new Sp(n),lh(t)&&Qe(t,"_locale")&&(i._locale=t._locale),lh(t)&&Qe(t,"_isValid")&&(i._isValid=t._isValid),i}es.fn=Sp.prototype;es.invalid=$W;function Eo(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function iS(t,e){var n={};return n.months=e.month()-t.month()+(e.year()-t.year())*12,t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function r7(t,e){var n;return t.isValid()&&e.isValid()?(e=av(e,t),t.isBefore(e)?n=iS(t,e):(n=iS(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function mO(t,e){return function(n,r){var s,i;return r!==null&&!isNaN(+r)&&(qP(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),s=es(n,r),gO(this,s,t),this}}function gO(t,e,n,r){var s=e._milliseconds,i=b_(e._days),o=b_(e._months);t.isValid()&&(r=r??!0,o&&eO(t,au(t,"Month")+o*n),i&&JP(t,"Date",au(t,"Date")+i*n),s&&t._d.setTime(t._d.valueOf()+s*n),r&&se.updateOffset(t,i||o))}var s7=mO(1,"add"),i7=mO(-1,"subtract");function _O(t){return typeof t=="string"||t instanceof String}function o7(t){return Xr(t)||Hu(t)||_O(t)||ii(t)||l7(t)||a7(t)||t===null||t===void 0}function a7(t){var e=Ho(t)&&!jE(t),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s,i,o=r.length;for(s=0;s<o;s+=1)i=r[s],n=n||Qe(t,i);return e&&n}function l7(t){var e=Kr(t),n=!1;return e&&(n=t.filter(function(r){return!ii(r)&&_O(t)}).length===0),e&&n}function c7(t){var e=Ho(t)&&!jE(t),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],s,i;for(s=0;s<r.length;s+=1)i=r[s],n=n||Qe(t,i);return e&&n}function u7(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function f7(t,e){arguments.length===1&&(arguments[0]?o7(arguments[0])?(t=arguments[0],e=void 0):c7(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||vt(),r=av(n,this).startOf("day"),s=se.calendarFormat(this,r)||"sameElse",i=e&&(bs(e[s])?e[s].call(this,n):e[s]);return this.format(i||this.localeData().calendar(s,this,vt(n)))}function h7(){return new $u(this)}function d7(t,e){var n=Xr(t)?t:vt(t);return this.isValid()&&n.isValid()?(e=Dr(e)||"millisecond",e==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf()):!1}function p7(t,e){var n=Xr(t)?t:vt(t);return this.isValid()&&n.isValid()?(e=Dr(e)||"millisecond",e==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf()):!1}function m7(t,e,n,r){var s=Xr(t)?t:vt(t),i=Xr(e)?e:vt(e);return this.isValid()&&s.isValid()&&i.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(s,n):!this.isBefore(s,n))&&(r[1]===")"?this.isBefore(i,n):!this.isAfter(i,n))):!1}function g7(t,e){var n=Xr(t)?t:vt(t),r;return this.isValid()&&n.isValid()?(e=Dr(e)||"millisecond",e==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(e).valueOf()<=r&&r<=this.clone().endOf(e).valueOf())):!1}function _7(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function y7(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function E7(t,e,n){var r,s,i;if(!this.isValid())return NaN;if(r=av(t,this),!r.isValid())return NaN;switch(s=(r.utcOffset()-this.utcOffset())*6e4,e=Dr(e),e){case"year":i=ch(this,r)/12;break;case"month":i=ch(this,r);break;case"quarter":i=ch(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-s)/864e5;break;case"week":i=(this-r-s)/6048e5;break;default:i=this-r}return n?i:wr(i)}function ch(t,e){if(t.date()<e.date())return-ch(e,t);var n=(e.year()-t.year())*12+(e.month()-t.month()),r=t.clone().add(n,"months"),s,i;return e-r<0?(s=t.clone().add(n-1,"months"),i=(e-r)/(r-s)):(s=t.clone().add(n+1,"months"),i=(e-r)/(s-r)),-(n+i)||0}se.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";se.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function v7(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function T7(t){if(!this.isValid())return null;var e=t!==!0,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?ah(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):bs(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ah(n,"Z")):ah(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function w7(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="",n,r,s,i;return this.isLocal()||(t=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),n="["+t+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",i=e+'[")]',this.format(n+r+s+i)}function b7(t){t||(t=this.isUtc()?se.defaultFormatUtc:se.defaultFormat);var e=ah(this,t);return this.localeData().postformat(e)}function S7(t,e){return this.isValid()&&(Xr(t)&&t.isValid()||vt(t).isValid())?es({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function I7(t){return this.from(vt(),t)}function A7(t,e){return this.isValid()&&(Xr(t)&&t.isValid()||vt(t).isValid())?es({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function R7(t){return this.to(vt(),t)}function yO(t){var e;return t===void 0?this._locale._abbr:(e=ci(t),e!=null&&(this._locale=e),this)}var EO=kr("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return t===void 0?this.localeData():this.locale(t)});function vO(){return this._locale}var ad=1e3,qa=60*ad,ld=60*qa,TO=(365*400+97)*24*ld;function Wa(t,e){return(t%e+e)%e}function wO(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-TO:new Date(t,e,n).valueOf()}function bO(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-TO:Date.UTC(t,e,n)}function C7(t){var e,n;if(t=Dr(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?bO:wO,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=Wa(e+(this._isUTC?0:this.utcOffset()*qa),ld);break;case"minute":e=this._d.valueOf(),e-=Wa(e,qa);break;case"second":e=this._d.valueOf(),e-=Wa(e,ad);break}return this._d.setTime(e),se.updateOffset(this,!0),this}function P7(t){var e,n;if(t=Dr(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?bO:wO,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=ld-Wa(e+(this._isUTC?0:this.utcOffset()*qa),ld)-1;break;case"minute":e=this._d.valueOf(),e+=qa-Wa(e,qa)-1;break;case"second":e=this._d.valueOf(),e+=ad-Wa(e,ad)-1;break}return this._d.setTime(e),se.updateOffset(this,!0),this}function O7(){return this._d.valueOf()-(this._offset||0)*6e4}function N7(){return Math.floor(this.valueOf()/1e3)}function k7(){return new Date(this.valueOf())}function D7(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function x7(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function M7(){return this.isValid()?this.toISOString():null}function L7(){return qE(this)}function V7(){return Di({},Me(this))}function U7(){return Me(this).overflow}function F7(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}ye("N",0,0,"eraAbbr");ye("NN",0,0,"eraAbbr");ye("NNN",0,0,"eraAbbr");ye("NNNN",0,0,"eraName");ye("NNNNN",0,0,"eraNarrow");ye("y",["y",1],"yo","eraYear");ye("y",["yy",2],0,"eraYear");ye("y",["yyy",3],0,"eraYear");ye("y",["yyyy",4],0,"eraYear");ue("N",lv);ue("NN",lv);ue("NNN",lv);ue("NNNN",X7);ue("NNNNN",J7);
48at(["N","NN","NNN","NNNN","NNNNN"],function(t,e,n,r){var s=n._locale.erasParse(t,r,n._strict);s?Me(n).era=s:Me(n).invalidEra=t});ue("y",Nl);ue("yy",Nl);ue("yyy",Nl);ue("yyyy",Nl);ue("yo",Q7);at(["y","yy","yyy","yyyy"],Mn);at(["yo"],function(t,e,n,r){var s;n._locale._eraYearOrdinalRegex&&(s=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[Mn]=n._locale.eraYearOrdinalParse(t,s):e[Mn]=parseInt(t,10)});function B7(t,e){var n,r,s,i=this._eras||ci("en")._eras;for(n=0,r=i.length;n<r;++n){switch(typeof i[n].since){case"string":s=se(i[n].since).startOf("day"),i[n].since=s.valueOf();break}switch(typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":s=se(i[n].until).startOf("day").valueOf(),i[n].until=s.valueOf();break}}return i}function H7(t,e,n){var r,s,i=this.eras(),o,a,l;for(t=t.toUpperCase(),r=0,s=i.length;r<s;++r)if(o=i[r].name.toUpperCase(),a=i[r].abbr.toUpperCase(),l=i[r].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(a===t)return i[r];break;case"NNNN":if(o===t)return i[r];break;case"NNNNN":if(l===t)return i[r];break}else if([o,a,l].indexOf(t)>=0)return i[r]}function $7(t,e){var n=t.since<=t.until?1:-1;return e===void 0?se(t.since).year():se(t.since).year()+(e-t.offset)*n}function j7(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until||r[t].until<=n&&n<=r[t].since)return r[t].name;return""}function q7(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until||r[t].until<=n&&n<=r[t].since)return r[t].narrow;return""}function W7(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until||r[t].until<=n&&n<=r[t].since)return r[t].abbr;return""}function G7(){var t,e,n,r,s=this.localeData().eras();for(t=0,e=s.length;t<e;++t)if(n=s[t].since<=s[t].until?1:-1,r=this.clone().startOf("day").valueOf(),s[t].since<=r&&r<=s[t].until||s[t].until<=r&&r<=s[t].since)return(this.year()-se(s[t].since).year())*n+s[t].offset;return this.year()}function Y7(t){return Qe(this,"_erasNameRegex")||cv.call(this),t?this._erasNameRegex:this._erasRegex}function z7(t){return Qe(this,"_erasAbbrRegex")||cv.call(this),t?this._erasAbbrRegex:this._erasRegex}function K7(t){return Qe(this,"_erasNarrowRegex")||cv.call(this),t?this._erasNarrowRegex:this._erasRegex}function lv(t,e){return e.erasAbbrRegex(t)}function X7(t,e){return e.erasNameRegex(t)}function J7(t,e){return e.erasNarrowRegex(t)}function Q7(t,e){return e._eraYearOrdinalRegex||Nl}function cv(){var t=[],e=[],n=[],r=[],s,i,o,a,l,u=this.eras();for(s=0,i=u.length;s<i;++s)o=Gs(u[s].name),a=Gs(u[s].abbr),l=Gs(u[s].narrow),e.push(o),t.push(a),n.push(l),r.push(o),r.push(a),r.push(l);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}ye(0,["gg",2],0,function(){return this.weekYear()%100});ye(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Ip(t,e){ye(0,[t,t.length],0,e)}Ip("gggg","weekYear");Ip("ggggg","weekYear");Ip("GGGG","isoWeekYear");Ip("GGGGG","isoWeekYear");ue("G",vp);ue("g",vp);ue("GG",Tt,yr);ue("gg",Tt,yr);ue("GGGG",XE,KE);ue("gggg",XE,KE);ue("GGGGG",Ep,_p);ue("ggggg",Ep,_p);qu(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,r){e[r.substr(0,2)]=qe(t)});qu(["gg","GG"],function(t,e,n,r){e[r]=se.parseTwoDigitYear(t)});function Z7(t){return SO.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function e8(t){return SO.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function t8(){return Ys(this.year(),1,4)}function n8(){return Ys(this.isoWeekYear(),1,4)}function r8(){var t=this.localeData()._week;return Ys(this.year(),t.dow,t.doy)}function s8(){var t=this.localeData()._week;return Ys(this.weekYear(),t.dow,t.doy)}function SO(t,e,n,r,s){var i;return t==null?cu(this,r,s).year:(i=Ys(t,r,s),e>i&&(e=i),i8.call(this,t,e,n,r,s))}function i8(t,e,n,r,s){var i=rO(t,e,n,r,s),o=lu(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}ye("Q",0,"Qo","quarter");ue("Q",GP);at("Q",function(t,e){e[$s]=(qe(t)-1)*3});function o8(t){return t==null?Math.ceil((this.month()+1)/3):this.month((t-1)*3+this.month()%3)}ye("D",["DD",2],"Do","date");ue("D",Tt,kl);ue("DD",Tt,yr);ue("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient});at(["D","DD"],ls);at("Do",function(t,e){e[ls]=qe(t.match(Tt)[0])});var IO=Dl("Date",!0);ye("DDD",["DDDD",3],"DDDo","dayOfYear");ue("DDD",yp);ue("DDDD",YP);at(["DDD","DDDD"],function(t,e,n){n._dayOfYear=qe(t)});function a8(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return t==null?e:this.add(t-e,"d")}ye("m",["mm",2],0,"minute");ue("m",Tt,JE);ue("mm",Tt,yr);at(["m","mm"],Hr);var l8=Dl("Minutes",!1);ye("s",["ss",2],0,"second");ue("s",Tt,JE);ue("ss",Tt,yr);at(["s","ss"],js);var c8=Dl("Seconds",!1);ye("S",0,0,function(){return~~(this.millisecond()/100)});ye(0,["SS",2],0,function(){return~~(this.millisecond()/10)});ye(0,["SSS",3],0,"millisecond");ye(0,["SSSS",4],0,function(){return this.millisecond()*10});ye(0,["SSSSS",5],0,function(){return this.millisecond()*100});ye(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});ye(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});ye(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});ye(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});ue("S",yp,GP);ue("SS",yp,yr);ue("SSS",yp,YP);var xi,AO;for(xi="SSSS";xi.length<=9;xi+="S")ue(xi,Nl);function u8(t,e){e[Co]=qe(("0."+t)*1e3)}for(xi="S";xi.length<=9;xi+="S")at(xi,u8);AO=Dl("Milliseconds",!1);ye("z",0,0,"zoneAbbr");ye("zz",0,0,"zoneName");function f8(){return this._isUTC?"UTC":""}function h8(){return this._isUTC?"Coordinated Universal Time":""}var Y=$u.prototype;Y.add=s7;Y.calendar=f7;Y.clone=h7;Y.diff=E7;Y.endOf=P7;Y.format=b7;Y.from=S7;Y.fromNow=I7;Y.to=A7;Y.toNow=R7;Y.get=wq;
vendor: 9,788 bytes, line 48
48Y.invalidAt=U7;Y.isAfter=d7;Y.isBefore=p7;Y.isBetween=m7;Y.isSame=g7;Y.isSameOrAfter=_7;Y.isSameOrBefore=y7;Y.isValid=L7;Y.lang=EO;Y.locale=yO;Y.localeData=vO;Y.max=LW;Y.min=MW;Y.parsingFlags=V7;Y.set=bq;Y.startOf=C7;Y.subtract=i7;Y.toArray=D7;Y.toObject=x7;Y.toDate=k7;Y.toISOString=T7;Y.inspect=w7;typeof Symbol<"u"&&Symbol.for!=null&&(Y[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});Y.toJSON=M7;Y.toString=v7;Y.unix=N7;Y.valueOf=O7;Y.creationData=F7;Y.eraName=j7;Y.eraNarrow=q7;Y.eraAbbr=W7;Y.eraYear=G7;Y.year=XP;Y.isLeapYear=Tq;Y.weekYear=Z7;Y.isoWeekYear=e8;Y.quarter=Y.quarters=o8;Y.month=tO;Y.daysInMonth=kq;Y.week=Y.weeks=Bq;Y.isoWeek=Y.isoWeeks=Hq;Y.weeksInYear=r8;Y.weeksInWeekYear=s8;Y.isoWeeksInYear=t8;Y.isoWeeksInISOWeekYear=n8;Y.date=IO;Y.day=Y.days=eW;Y.weekday=tW;Y.isoWeekday=nW;Y.dayOfYear=a8;Y.hour=Y.hours=cW;Y.minute=Y.minutes=l8;Y.second=Y.seconds=c8;Y.millisecond=Y.milliseconds=AO;Y.utcOffset=WW;Y.utc=YW;Y.local=zW;Y.parseZone=KW;Y.hasAlignedHourOffset=XW;Y.isDST=JW;Y.isLocal=ZW;Y.isUtcOffset=e7;Y.isUtc=pO;Y.isUTC=pO;Y.zoneAbbr=f8;Y.zoneName=h8;Y.dates=kr("dates accessor is deprecated. Use date instead.",IO);Y.months=kr("months accessor is deprecated. Use month instead",tO);Y.years=kr("years accessor is deprecated. Use year instead",XP);Y.zone=kr("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",GW);Y.isDSTShifted=kr("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",QW);function d8(t){return vt(t*1e3)}function p8(){return vt.apply(null,arguments).parseZone()}function RO(t){return t}var et=GE.prototype;et.calendar=Z9;et.longDateFormat=rq;et.invalidDate=iq;et.ordinal=lq;et.preparse=RO;et.postformat=RO;et.relativeTime=uq;et.pastFuture=fq;et.set=J9;et.eras=B7;et.erasParse=H7;et.erasConvertYear=$7;et.erasAbbrRegex=z7;et.erasNameRegex=Y7;et.erasNarrowRegex=K7;et.months=Cq;et.monthsShort=Pq;et.monthsParse=Nq;et.monthsRegex=xq;et.monthsShortRegex=Dq;et.week=Lq;et.firstDayOfYear=Fq;et.firstDayOfWeek=Uq;et.weekdays=Kq;et.weekdaysMin=Jq;et.weekdaysShort=Xq;et.weekdaysParse=Zq;et.weekdaysRegex=rW;et.weekdaysShortRegex=sW;et.weekdaysMinRegex=iW;et.isPM=aW;et.meridiem=uW;function cd(t,e,n,r){var s=ci(),i=ws().set(r,e);return s[n](i,t)}function CO(t,e,n){if(ii(t)&&(e=t,t=void 0),t=t||"",e!=null)return cd(t,e,n,"month");var r,s=[];for(r=0;r<12;r++)s[r]=cd(t,r,n,"month");return s}function uv(t,e,n,r){typeof t=="boolean"?(ii(e)&&(n=e,e=void 0),e=e||""):(e=t,n=e,t=!1,ii(e)&&(n=e,e=void 0),e=e||"");var s=ci(),i=t?s._week.dow:0,o,a=[];if(n!=null)return cd(e,(n+i)%7,r,"day");for(o=0;o<7;o++)a[o]=cd(e,(o+i)%7,r,"day");return a}function m8(t,e){return CO(t,e,"months")}function g8(t,e){return CO(t,e,"monthsShort")}function _8(t,e,n){return uv(t,e,n,"weekdays")}function y8(t,e,n){return uv(t,e,n,"weekdaysShort")}function E8(t,e,n){return uv(t,e,n,"weekdaysMin")}qi("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=qe(t%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return t+n}});se.lang=kr("moment.lang is deprecated. Use moment.locale instead.",qi);se.langData=kr("moment.langData is deprecated. Use moment.localeData instead.",ci);var Cs=Math.abs;function v8(){var t=this._data;return this._milliseconds=Cs(this._milliseconds),this._days=Cs(this._days),this._months=Cs(this._months),t.milliseconds=Cs(t.milliseconds),t.seconds=Cs(t.seconds),t.minutes=Cs(t.minutes),t.hours=Cs(t.hours),t.months=Cs(t.months),t.years=Cs(t.years),this}function PO(t,e,n,r){var s=es(e,n);return t._milliseconds+=r*s._milliseconds,t._days+=r*s._days,t._months+=r*s._months,t._bubble()}function T8(t,e){return PO(this,t,e,1)}function w8(t,e){return PO(this,t,e,-1)}function oS(t){return t<0?Math.floor(t):Math.ceil(t)}function b8(){var t=this._milliseconds,e=this._days,n=this._months,r=this._data,s,i,o,a,l;return t>=0&&e>=0&&n>=0||t<=0&&e<=0&&n<=0||(t+=oS(I_(n)+e)*864e5,e=0,n=0),r.milliseconds=t%1e3,s=wr(t/1e3),r.seconds=s%60,i=wr(s/60),r.minutes=i%60,o=wr(i/60),r.hours=o%24,e+=wr(o/24),l=wr(OO(e)),n+=l,e-=oS(I_(l)),a=wr(n/12),n%=12,r.days=e,r.months=n,r.years=a,this}function OO(t){return t*4800/146097}function I_(t){return t*146097/4800}function S8(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if(t=Dr(t),t==="month"||t==="quarter"||t==="year")switch(e=this._days+r/864e5,n=this._months+OO(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(I_(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return e*24+r/36e5;case"minute":return e*1440+r/6e4;case"second":return e*86400+r/1e3;case"millisecond":return Math.floor(e*864e5)+r;default:throw new Error("Unknown unit "+t)}}function ui(t){return function(){return this.as(t)}}var NO=ui("ms"),I8=ui("s"),A8=ui("m"),R8=ui("h"),C8=ui("d"),P8=ui("w"),O8=ui("M"),N8=ui("Q"),k8=ui("y"),D8=NO;function x8(){return es(this)}function M8(t){return t=Dr(t),this.isValid()?this[t+"s"]():NaN}function ha(t){return function(){return this.isValid()?this._data[t]:NaN}}var L8=ha("milliseconds"),V8=ha("seconds"),U8=ha("minutes"),F8=ha("hours"),B8=ha("days"),H8=ha("months"),$8=ha("years");function j8(){return wr(this.days()/7)}var xs=Math.round,Da={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function q8(t,e,n,r,s){return s.relativeTime(e||1,!!n,t,r)}function W8(t,e,n,r){var s=es(t).abs(),i=xs(s.as("s")),o=xs(s.as("m")),a=xs(s.as("h")),l=xs(s.as("d")),u=xs(s.as("M")),f=xs(s.as("w")),h=xs(s.as("y")),d=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||o<=1&&["m"]||o<n.m&&["mm",o]||a<=1&&["h"]||a<n.h&&["hh",a]||l<=1&&["d"]||l<n.d&&["dd",l];return n.w!=null&&(d=d||f<=1&&["w"]||f<n.w&&["ww",f]),d=d||u<=1&&["M"]||u<n.M&&["MM",u]||h<=1&&["y"]||["yy",h],d[2]=e,d[3]=+t>0,d[4]=r,q8.apply(null,d)}function G8(t){return t===void 0?xs:typeof t=="function"?(xs=t,!0):!1}function Y8(t,e){return Da[t]===void 0?!1:e===void 0?Da[t]:(Da[t]=e,t==="s"&&(Da.ss=e-1),!0)}function z8(t,e){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Da,s,i;return typeof t=="object"&&(e=t,t=!1),typeof t=="boolean"&&(n=t),typeof e=="object"&&(r=Object.assign({},Da,e),e.s!=null&&e.ss==null&&(r.ss=e.s-1)),s=this.localeData(),i=W8(this,!n,r,s),n&&(i=s.pastFuture(+this,i)),s.postformat(i)}var Ym=Math.abs;function Ta(t){return(t>0)-(t<0)||+t}function Ap(){if(!this.isValid())return this.localeData().invalidDate();var t=Ym(this._milliseconds)/1e3,e=Ym(this._days),n=Ym(this._months),r,s,i,o,a=this.asSeconds(),l,u,f,h;return a?(r=wr(t/60),s=wr(r/60),t%=60,r%=60,i=wr(n/12),n%=12,o=t?t.toFixed(3).replace(/\.?0+$/,""):"",l=a<0?"-":"",u=Ta(this._months)!==Ta(a)?"-":"",f=Ta(this._days)!==Ta(a)?"-":"",h=Ta(this._milliseconds)!==Ta(a)?"-":"",l+"P"+(i?u+i+"Y":"")+(n?u+n+"M":"")+(e?f+e+"D":"")+(s||r||t?"T":"")+(s?h+s+"H":"")+(r?h+r+"M":"")+(t?h+o+"S":"")):"P0D"}var Ge=Sp.prototype;Ge.isValid=HW;Ge.abs=v8;Ge.add=T8;Ge.subtract=w8;Ge.as=S8;Ge.asMilliseconds=NO;Ge.asSeconds=I8;Ge.asMinutes=A8;Ge.asHours=R8;Ge.asDays=C8;Ge.asWeeks=P8;Ge.asMonths=O8;Ge.asQuarters=N8;Ge.asYears=k8;Ge.valueOf=D8;Ge._bubble=b8;Ge.clone=x8;Ge.get=M8;Ge.milliseconds=L8;Ge.seconds=V8;Ge.minutes=U8;Ge.hours=F8;Ge.days=B8;Ge.weeks=j8;Ge.months=H8;Ge.years=$8;Ge.humanize=z8;Ge.toISOString=Ap;Ge.toString=Ap;Ge.toJSON=Ap;Ge.locale=yO;Ge.localeData=vO;Ge.toIsoString=kr("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ap);Ge.lang=EO;ye("X",0,0,"unix");ye("x",0,0,"valueOf");ue("x",vp);ue("X",mq);at("X",function(t,e,n){n._d=new Date(parseFloat(t)*1e3)});at("x",function(t,e,n){n._d=new Date(qe(t))});se.version="2.30.1";K9(vt);se.fn=Y;se.min=VW;se.max=UW;se.now=FW;se.utc=ws;se.unix=d8;se.months=m8;se.isDate=Hu;se.locale=qi;se.invalid=gp;se.duration=es;se.isMoment=Xr;se.weekdays=_8;se.parseZone=p8;se.localeData=ci;se.isDuration=lh;se.monthsShort=g8;se.weekdaysMin=E8;se.defineLocale=nv;se.updateLocale=pW;se.locales=mW;se.weekdaysShort=y8;se.normalizeUnits=Dr;se.relativeTimeRounding=G8;se.relativeTimeThreshold=Y8;se.calendarFormat=u7;se.prototype=Y;se.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Wu={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},ul={LIGHT:"light",DARK:"dark",COLORED:"colored",AUTO:"auto"},Jn={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},K8={BOUNCE:"bounce",SLIDE:"slide",FLIP:"flip",ZOOM:"zoom",NONE:"none"},X8={dangerouslyHTMLString:!1,multiple:!0,position:Wu.TOP_RIGHT,autoClose:5e3,transition:"bounce",hideProgressBar:!1,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,className:"",bodyClassName:"",style:{},progressClassName:"",progressStyle:{},role:"alert",theme:"light"},J8={rtl:!1,newestOnTop:!1,toastClassName:""},kO={...X8,...J8};Jn.DEFAULT;var st=(t=>(t[t.COLLAPSE_DURATION=300]="COLLAPSE_DURATION",t[t.DEBOUNCE_DURATION=50]="DEBOUNCE_DURATION",t.CSS_NAMESPACE="Toastify",t))(st||{}),A_=(t=>(t.ENTRANCE_ANIMATION_END="d",t))(A_||{});const Q8={enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0},Z8={enter:"Toastify--animate Toastify__slide-enter",exit:"Toastify--animate Toastify__slide-exit",appendPosition:!0},eG={enter:"Toastify--animate Toastify__zoom-enter",exit:"Toastify--animate Toastify__zoom-exit"}
vendor: 4,726 bytes, line 48
48,tG={enter:"Toastify--animate Toastify__flip-enter",exit:"Toastify--animate Toastify__flip-exit"},aS="Toastify--animate Toastify__none-enter";function DO(t,e=!1){var n;let r=Q8;if(!t||typeof t=="string")switch(t){case"flip":r=tG;break;case"zoom":r=eG;break;case"slide":r=Z8;break}else r=t;if(e)r.enter=aS;else if(r.enter===aS){const s=(n=r.exit.split("__")[1])==null?void 0:n.split("-")[0];r.enter=`Toastify--animate Toastify__${s}-enter`}return r}function nG(t){return t.containerId||String(t.position)}const Rp="will-unmount";function rG(t=Wu.TOP_RIGHT){return!!document.querySelector(`.${st.CSS_NAMESPACE}__toast-container--${t}`)}function sG(t=Wu.TOP_RIGHT){return`${st.CSS_NAMESPACE}__toast-container--${t}`}function iG(t,e,n=!1){const r=[`${st.CSS_NAMESPACE}__toast-container`,`${st.CSS_NAMESPACE}__toast-container--${t}`,n?`${st.CSS_NAMESPACE}__toast-container--rtl`:null].filter(Boolean).join(" ");return Ga(e)?e({position:t,rtl:n,defaultClassName:r}):`${r} ${e||""}`}function oG(t){var e;const{position:n,containerClassName:r,rtl:s=!1,style:i={}}=t,o=st.CSS_NAMESPACE,a=sG(n),l=document.querySelector(`.${o}`),u=document.querySelector(`.${a}`),f=!!u&&!((e=u.className)!=null&&e.includes(Rp)),h=l||document.createElement("div"),d=document.createElement("div");d.className=iG(n,r,s),d.dataset.testid=`${st.CSS_NAMESPACE}__toast-container--${n}`,d.id=nG(t);for(const p in i)if(Object.prototype.hasOwnProperty.call(i,p)){const g=i[p];d.style[p]=g}return l||(h.className=st.CSS_NAMESPACE,document.body.appendChild(h)),f||h.appendChild(d),d}function R_(t){var e,n,r;const s=typeof t=="string"?t:((e=t.currentTarget)==null?void 0:e.id)||((n=t.target)==null?void 0:n.id),i=document.getElementById(s);i&&i.removeEventListener("animationend",R_,!1);try{fu[s].unmount(),(r=document.getElementById(s))==null||r.remove(),delete fu[s],delete un[s]}catch{}}const fu=nn({});function aG(t,e){const n=document.getElementById(String(e));n&&(fu[n.id]=t)}function C_(t,e=!0){const n=String(t);if(!fu[n])return;const r=document.getElementById(n);r&&r.classList.add(Rp),e?(cG(t),r&&r.addEventListener("animationend",R_,!1)):R_(n),vs.items=vs.items.filter(s=>s.containerId!==t)}function lG(t){for(const e in fu)C_(e,t);vs.items=[]}function xO(t,e){const n=document.getElementById(t.toastId);if(n){let r=t;r={...r,...DO(r.transition)};const s=r.appendPosition?`${r.exit}--${r.position}`:r.exit;n.className+=` ${s}`,e&&e(n)}}function cG(t){for(const e in un)if(e===t)for(const n of un[e]||[])xO(n)}function uG(t){const e=fl().find(n=>n.toastId===t);return e?.containerId}function fv(t){return document.getElementById(t)}function fG(t){const e=fv(t.containerId);return e&&e.classList.contains(Rp)}function lS(t){var e;const n=Gr(t.content)?Re(t.content.props):null;return n??Re((e=t.data)!=null?e:{})}function hG(t){return t?vs.items.filter(e=>e.containerId===t).length>0:vs.items.length>0}function dG(){if(vs.items.length>0){const t=vs.items.shift();uh(t?.toastContent,t?.toastProps)}}const un=nn({}),vs=nn({items:[]});function fl(){const t=Re(un);return Object.values(t).reduce((e,n)=>[...e,...n],[])}function pG(t){return fl().find(e=>e.toastId===t)}function uh(t,e={}){if(fG(e)){const n=fv(e.containerId);n&&n.addEventListener("animationend",P_.bind(null,t,e),!1)}else P_(t,e)}function P_(t,e={}){const n=fv(e.containerId);n&&n.removeEventListener("animationend",P_.bind(null,t,e),!1);const r=un[e.containerId]||[],s=r.length>0;if(!s&&!rG(e.position)){const i=oG(e),o=jc(xG,e);e.useHandler&&e.useHandler(o),o.mount(i),aG(o,i.id)}s&&!e.updateId&&(e.position=r[0].position),Xn(()=>{e.updateId?hr.update(e):hr.add(t,e)})}const hr={add(t,e){const{containerId:n=""}=e;n&&(un[n]=un[n]||[],un[n].find(r=>r.toastId===e.toastId)||setTimeout(()=>{var r,s;e.newestOnTop?(r=un[n])==null||r.unshift(e):(s=un[n])==null||s.push(e),e.onOpen&&e.onOpen(lS(e))},e.delay||0))},remove(t){if(t){const e=uG(t);if(e){const n=un[e];let r=n.find(s=>s.toastId===t);un[e]=n.filter(s=>s.toastId!==t),!un[e].length&&!hG(e)&&C_(e,!1),dG(),Xn(()=>{r!=null&&r.onClose&&(r.onClose(lS(r)),r=void 0)})}}},update(t={}){const{containerId:e=""}=t;if(e&&t.updateId){un[e]=un[e]||[];const n=un[e].find(i=>i.toastId===t.toastId),r=n?.position!==t.position||n?.transition!==t.transition,s={...t,disabledEnterTransition:!r,updateId:void 0};hr.dismissForce(t?.toastId),setTimeout(()=>{Je(s.content,s)},t.delay||0)}},clear(t,e=!0){t?C_(t,e):lG(e)},dismissCallback(t){var e;const n=(e=t.currentTarget)==null?void 0:e.id,r=document.getElementById(n);r&&(r.removeEventListener("animationend",hr.dismissCallback,!1),setTimeout(()=>{hr.remove(n)}))},dismiss(t){if(t){const e=fl();for(const n of e)if(n.toastId===t){xO(n,r=>{r.addEventListener("animationend",hr.dismissCallback,!1)});break}}}
48,dismissForce(t){if(t){const e=fl();for(const n of e)if(n.toastId===t){const r=document.getElementById(t);r&&(r.remove(),r.removeEventListener("animationend",hr.dismissCallback,!1),hr.remove(t));break}}}},mG=nn({useHandler:void 0}),MO=nn({}),ud=nn({});function LO(){return Math.random().toString(36).substring(2,9)}function gG(t){return typeof t=="number"&&!isNaN(t)}function O_(t){return typeof t=="string"}function Ga(t){return typeof t=="function"}function Cp(...t){return Or(...t)}function fh(t){return typeof t=="object"&&(!!(t!=null&&t.render)||!!(t!=null&&t.setup)||typeof t?.type=="object")}function _G(t={}){MO[`${st.CSS_NAMESPACE}-default-options`]=t}function yG(){return MO[`${st.CSS_NAMESPACE}-default-options`]||kO}function EG(){const t=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches;return document.documentElement.classList.contains("dark")||t?"dark":"light"}var hh=(t=>(t[t.Enter=0]="Enter",t[t.Exit=1]="Exit",t))(hh||{});const VO={containerId:{type:[String,Number],required:!1,default:""},clearOnUrlChange:{type:Boolean,required:!1,default:!0},disabledEnterTransition:{type:Boolean,required:!1,default:!1},dangerouslyHTMLString:{type:Boolean,required:!1,default:!1},multiple:{type:Boolean,required:!1,default:!0},limit:{type:Number,required:!1,default:void 0},position:{type:String,required:!1,default:Wu.TOP_LEFT},bodyClassName:{type:String,required:!1,default:""},autoClose:{type:[Number,Boolean],required:!1,default:!1},closeButton:{type:[Boolean,Function,Object],required:!1,default:void 0},transition:{type:[String,Object],required:!1,default:"bounce"},hideProgressBar:{type:Boolean,required:!1,default:!1},pauseOnHover:{type:Boolean,required:!1,default:!0},pauseOnFocusLoss:{type:Boolean,required:!1,default:!0},closeOnClick:{type:Boolean,required:!1,default:!0},progress:{type:Number,required:!1,default:void 0},progressClassName:{type:String,required:!1,default:""},toastStyle:{type:Object,required:!1,default(){return{}}},progressStyle:{type:Object,required:!1,default(){return{}}},role:{type:String,required:!1,default:"alert"},theme:{type:String,required:!1,default:ul.AUTO},content:{type:[String,Object,Function],required:!1,default:""},toastId:{type:[String,Number],required:!1,default:""},data:{type:[Object,String],required:!1,default(){return{}}},type:{type:String,required:!1,default:Jn.DEFAULT},icon:{type:[Boolean,String,Number,Object,Function],required:!1,default:void 0},delay:{type:Number,required:!1,default:void 0},onOpen:{type:Function,required:!1,default:void 0},onClose:{type:Function,required:!1,default:void 0},onClick:{type:Function,required:!1,default:void 0},isLoading:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},toastClassName:{type:String,required:!1,default:""},updateId:{type:[String,Number],required:!1,default:""},contentProps:{type:Object,required:!1,default:null},expandCustomProps:{type:Boolean,required:!1,default:!1}},vG={autoClose:{type:[Number,Boolean],required:!0},isRunning:{type:Boolean,required:!1,default:void 0},type:{type:String,required:!1,default:Jn.DEFAULT},theme:{type:String,required:!1,default:ul.AUTO},hide:{type:Boolean,required:!1,default:void 0},className:{type:[String,Function],required:!1,default:""},controlledProgress:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:void 0},isIn:{type:Boolean,required:!1,default:void 0},progress:{type:Number,required:!1,default:void 0},closeToast:{type:Function,required:!1,default:void 0}},TG=Nt({name:"ProgressBar",props:vG,setup(t,{attrs:e}){const n=Pe(),r=de(()=>t.hide?"true":"false"),s=de(()=>({...e.style||{},animationDuration:`${t.autoClose===!0?5e3:t.autoClose}ms`,animationPlayState:t.isRunning?"running":"paused",opacity:t.hide||t.autoClose===!1?0:1,transform:t.controlledProgress?`scaleX(${t.progress})`:"none"})),i=de(()=>[`${st.CSS_NAMESPACE}__progress-bar`,t.controlledProgress?`${st.CSS_NAMESPACE}__progress-bar--controlled`:`${st.CSS_NAMESPACE}__progress-bar--animated`,`${st.CSS_NAMESPACE}__progress-bar-theme--${t.theme}`,`${st.CSS_NAMESPACE}__progress-bar--${t.type}`,t.rtl?`${st.CSS_NAMESPACE}
48__progress-bar--rtl`:null].filter(Boolean).join(" ")),o=de(()=>`${i.value} ${e?.class||""}`),a=()=>{n.value&&(n.value.onanimationend=null,n.value.ontransitionend=null)},l=()=>{t.isIn&&t.closeToast&&t.autoClose!==!1&&(t.closeToast(),a())},u=de(()=>t.controlledProgress?null:l),f=de(()=>t.controlledProgress?l:null);return La(()=>{n.value&&(a(),n.value.onanimationend=u.value,n.value.ontransitionend=f.value)}),()=>_e("div",{ref:n,role:"progressbar","aria-hidden":r.value,"aria-label":"notification timer",class:o.value,style:s.value},null)}}),wG=Nt({name:"CloseButton",inheritAttrs:!1,props:{theme:{type:String,required:!1,default:ul.AUTO},type:{type:String,required:!1,default:ul.LIGHT},ariaLabel:{type:String,required:!1,default:"close"},closeToast:{type:Function,required:!1,default:void 0}},setup(t){return()=>_e("button",{class:`${st.CSS_NAMESPACE}__close-button ${st.CSS_NAMESPACE}__close-button--${t.theme}`,type:"button",onClick:e=>{e.stopPropagation(),t.closeToast&&t.closeToast(e)},"aria-label":t.ariaLabel},[_e("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},[_e("path",{"fill-rule":"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"},null)])])}}),Pp=({theme:t,type:e,path:n,...r})=>_e("svg",Or({viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${e})`},r),[_e("path",{d:n},null)]);function bG(t){return _e(Pp,Or(t,{path:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}),null)}function SG(t){return _e(Pp,Or(t,{path:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}),null)}function IG(t){return _e(Pp,Or(t,{path:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}),null)}function AG(t){return _e(Pp,Or(t,{path:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}),null)}function RG(){return _e("div",{class:`${st.CSS_NAMESPACE}__spinner`},null)}const dh={info:SG,warning:bG,success:IG,error:AG,spinner:RG},CG=t=>t in dh;function PG({theme:t,type:e,isLoading:n,icon:r}){let s;const i=!!n||e==="loading",o={theme:t,type:e};if(i&&(r===void 0||typeof r=="boolean"))return dh.spinner();if(r!==!1){if(fh(r))s=Re(r);else if(Ga(r)){const a=r;o.type=i?"loading":e,s=a(o),s=!s&&i?dh.spinner():s}else Gr(r)?s=Cr(r,o):O_(r)||gG(r)?s=r:CG(e)&&(s=dh[e](o));return s}}const OG=()=>{};function NG(t,e,n=st.COLLAPSE_DURATION){const{scrollHeight:r,style:s}=t,i=n;requestAnimationFrame(()=>{s.minHeight="initial",s.height=r+"px",s.transition=`all ${i}ms`,requestAnimationFrame(()=>{s.height="0",s.padding="0",s.margin="0",setTimeout(e,i)})})}function kG(t){const e=Pe(!1),n=Pe(!1),r=Pe(!1),s=Pe(hh.Enter),i=nn({...t,appendPosition:t.appendPosition||!1,collapse:typeof t.collapse>"u"?!0:t.collapse,collapseDuration:t.collapseDuration||st.COLLAPSE_DURATION}),o=i.done||OG,a=de(()=>i.appendPosition?`${i.enter}--${i.position}`:i.enter),l=de(()=>i.appendPosition?`${i.exit}--${i.position}`:i.exit),u=de(()=>t.pauseOnHover?{onMouseenter:v,onMouseleave:_}:{});function f(){const O=a.value.split(" ");d().addEventListener(A_.ENTRANCE_ANIMATION_END,_,{once:!0});const T=x=>{const L=d();x.target===L&&(L.dispatchEvent(new Event(A_.ENTRANCE_ANIMATION_END)),L.removeEventListener("animationend",T),L.removeEventListener("animationcancel",T),s.value===hh.Enter&&x.type!=="animationcancel"&&L.classList.remove(...O))},C=()=>{const x=d();x.classList.add(...O),x.addEventListener("animationend",T),x.addEventListener("animationcancel",T)};t.pauseOnFocusLoss&&p(),C()}function h(){if(!d())return;const O=()=>{const C=d();
48C.removeEventListener("animationend",O),i.collapse?NG(C,o,i.collapseDuration):o()},T=()=>{const C=d();s.value=hh.Exit,C&&(C.className+=` ${l.value}`,C.addEventListener("animationend",O))};n.value||(r.value?O():setTimeout(T))}function d(){return t.toastRef.value}function p(){document.hasFocus()||v(),window.addEventListener("focus",_),window.addEventListener("blur",v)}function g(){window.removeEventListener("focus",_),window.removeEventListener("blur",v)}function _(){(!t.loading.value||t.isLoading===void 0)&&(e.value=!0)}function v(){e.value=!1}function N(O){O&&(O.stopPropagation(),O.preventDefault()),n.value=!1}return La(h),La(()=>{const O=fl();n.value=O.findIndex(T=>T.toastId===i.toastId)>-1}),La(()=>{t.isLoading!==void 0&&(t.loading.value?v():_())}),Jr(f),la(()=>{t.pauseOnFocusLoss&&g()}),{isIn:n,isRunning:e,hideToast:N,eventHandlers:u}}const DG=Nt({name:"ToastItem",inheritAttrs:!1,props:VO,setup(t){const e=Pe(),n=de(()=>!!t.isLoading),r=de(()=>t.progress!==void 0&&t.progress!==null),s=de(()=>PG(t)),i=de(()=>[`${st.CSS_NAMESPACE}__toast`,`${st.CSS_NAMESPACE}__toast-theme--${t.theme}`,`${st.CSS_NAMESPACE}__toast--${t.type}`,t.rtl?`${st.CSS_NAMESPACE}__toast--rtl`:void 0,t.toastClassName||""].filter(Boolean).join(" ")),{isRunning:o,isIn:a,hideToast:l,eventHandlers:u}=kG({toastRef:e,loading:n,done:()=>{hr.remove(t.toastId)},...DO(t.transition,t.disabledEnterTransition),...t});return()=>_e("div",Or({id:t.toastId,class:i.value,style:t.toastStyle||{},ref:e,"data-testid":`toast-item-${t.toastId}`,onClick:f=>{t.closeOnClick&&l(),t.onClick&&t.onClick(f)}},u.value),[_e("div",{role:t.role,"data-testid":"toast-body",class:`${st.CSS_NAMESPACE}__toast-body ${t.bodyClassName||""}`},[s.value!=null&&_e("div",{"data-testid":`toast-icon-${t.type}`,class:[`${st.CSS_NAMESPACE}__toast-icon`,t.isLoading?"":`${st.CSS_NAMESPACE}--animate-icon ${st.CSS_NAMESPACE}__zoom-enter`].join(" ")},[fh(s.value)?Et(Re(s.value),{theme:t.theme,type:t.type}):Ga(s.value)?s.value({theme:t.theme,type:t.type}):s.value]),_e("div",{"data-testid":"toast-content"},[fh(t.content)?Et(Re(t.content),{toastProps:Re(t),closeToast:l,data:t.data,...t.expandCustomProps?t.contentProps:{contentProps:t.contentProps||{}}}):Ga(t.content)?t.content({toastProps:Re(t),closeToast:l,data:t.data}):t.dangerouslyHTMLString?Et("div",{innerHTML:t.content}):t.content])]),(t.closeButton===void 0||t.closeButton===!0)&&_e(wG,{theme:t.theme,closeToast:f=>{f.stopPropagation(),f.preventDefault(),l()}},null),fh(t.closeButton)?Et(Re(t.closeButton),{closeToast:l,type:t.type,theme:t.theme}):Ga(t.closeButton)?t.closeButton({closeToast:l,type:t.type,theme:t.theme}):null,_e(TG,{className:t.progressClassName,style:t.progressStyle,rtl:t.rtl,theme:t.theme,isIn:a.value,type:t.type,hide:t.hideProgressBar,isRunning:o.value,autoClose:t.autoClose,controlledProgress:r.value,progress:t.progress,closeToast:t.isLoading?void 0:l},null)])}});let Rc=0;function UO(){typeof window>"u"||(Rc&&window.cancelAnimationFrame(Rc),Rc=window.requestAnimationFrame(UO),ud.lastUrl!==window.location.href&&(ud.lastUrl=window.location.href,hr.clear()))}const xG=Nt({name:"ToastifyContainer",inheritAttrs:!1,props:VO,setup(t){const e=de(()=>t.containerId),n=de(()=>un[e.value]||[]),r=de(()=>n.value.filter(s=>s.position===t.position));return Jr(()=>{typeof window<"u"&&t.clearOnUrlChange&&window.requestAnimationFrame(UO)}),la(()=>{typeof window<"u"&&Rc&&(window.cancelAnimationFrame(Rc),ud.lastUrl="")}),()=>_e(St,null,[r.value.map(s=>{const{toastId:i=""}=s;return _e(DG,Or({key:i},s),null)})])}});let zm=!1;const FO={isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1};function BO(){const t=[];return fl().forEach(e=>{const n=document.getElementById(e.containerId);n&&!n.classList.contains(Rp)&&t.push(e)}),t}function MG(t){const e=BO().length,n=t??0;return n>0&&e+vs.items.length>=n}function LG(t){MG(t.limit)&&!t.updateId&&vs.items.push({toastId:t.toastId,containerId:t.containerId,toastContent:t.content,toastProps:t})}function uo(t,e,n={}){if(zm)return;n=Cp(yG(),{type:e}
48,Re(n)),(!n.toastId||typeof n.toastId!="string"&&typeof n.toastId!="number")&&(n.toastId=LO()),n={...n,...n.type==="loading"?FO:{},content:t,containerId:n.containerId||String(n.position)};const r=Number(n?.progress);return!isNaN(r)&&r<0&&(n.progress=0),r>1&&(n.progress=1),n.theme==="auto"&&(n.theme=EG()),LG(n),ud.lastUrl=window.location.href,n.multiple?vs.items.length?n.updateId&&uh(t,n):uh(t,n):(zm=!0,Je.clearAll(void 0,!1),setTimeout(()=>{uh(t,n)},0),setTimeout(()=>{zm=!1},390)),n.toastId}const Je=(t,e)=>uo(t,Jn.DEFAULT,e);Je.info=(t,e)=>uo(t,Jn.DEFAULT,{...e,type:Jn.INFO});Je.error=(t,e)=>uo(t,Jn.DEFAULT,{...e,type:Jn.ERROR});Je.warning=(t,e)=>uo(t,Jn.DEFAULT,{...e,type:Jn.WARNING});Je.warn=Je.warning;Je.success=(t,e)=>uo(t,Jn.DEFAULT,{...e,type:Jn.SUCCESS});Je.loading=(t,e)=>uo(t,Jn.DEFAULT,Cp(e,FO));Je.dark=(t,e)=>uo(t,Jn.DEFAULT,Cp(e,{theme:ul.DARK}));Je.remove=t=>{t?hr.dismiss(t):hr.clear()};Je.clearAll=(t,e)=>{Xn(()=>{hr.clear(t,e)})};Je.isActive=t=>{let e=!1;return e=BO().findIndex(n=>n.toastId===t)>-1,e};Je.update=(t,e={})=>{setTimeout(()=>{const n=pG(t);if(n){const r=Re(n),{content:s}=r,i={...r,...e,toastId:e.toastId||t,updateId:LO()},o=i.render||s;delete i.render,uo(o,i.type,i)}},0)};Je.done=t=>{Je.update(t,{isLoading:!1,progress:1})};Je.promise=VG;function VG(t,{pending:e,error:n,success:r},s){var i,o,a;let l;const u={...s||{},autoClose:!1};e&&(l=O_(e)?Je.loading(e,u):Je.loading(e.render,{...u,...e}));const f={autoClose:(i=s?.autoClose)!=null?i:!0,closeOnClick:(o=s?.closeOnClick)!=null?o:!0,closeButton:(a=s?.autoClose)!=null?a:null,isLoading:void 0,draggable:null,delay:100},h=(p,g,_)=>{if(g==null){Je.remove(l);return}const v={type:p,...f,...s,data:_},N=O_(g)?{render:g}:g;return l?Je.update(l,{...v,...N,isLoading:!1}):Je(N.render,{...v,...N,isLoading:!1}),_},d=Ga(t)?t():t;return d.then(p=>{h("success",r,p)}).catch(p=>{h("error",n,p)}),d}Je.POSITION=Wu;Je.THEME=ul;Je.TYPE=Jn;Je.TRANSITIONS=K8;const HO={install(t,e={}){mG.useHandler=e.useHandler||(()=>{}),UG(e)}};typeof window<"u"&&(window.Vue3Toastify=HO);function UG(t={}){const e=Cp(kO,t);_G(e)}var $r=(t=>(t.ACCESS_TOKEN="access_token",t.UID="uid",t.VERIFY_TOKEN="verify_token",t.THEME="theme",t.EMAIL_GET_THEME="email_get_theme",t.BEFORE_LOGIN_PATH="before_login_path",t.CART="cart",t.WISHLIST="wishlist",t))($r||{}),FG=(t=>(t.TABLES="tables",t.CHARTS="charts",t.DESIGN="designs",t.ANALYTICS="analytics",t))(FG||{}),BG=(t=>(t[t.ALREADY_ACTIVE=101]="ALREADY_ACTIVE",t[t.PREVIOUSLY_EXPIRED=102]="PREVIOUSLY_EXPIRED",t))(BG||{}),HG=(t=>(t[t.SUCCESS=100]="SUCCESS",t[t.ALREADY_SUBSCRIBED=101]="ALREADY_SUBSCRIBED",t))(HG||{});class sr extends Error{code;severity;userMessage;cause;constructor(e){super(e.message),this.name="AppError",this.code=e.code,this.severity=e.severity??"toast",this.userMessage=e.userMessage??e.message,this.cause=e.cause}}class N_ extends sr{constructor(e){super({...e,code:e.code??"AUTH"}),this.name="AuthError"}}class $G extends sr{constructor(e){super({...e,code:e.code??"NETWORK"}),this.name="NetworkError"}}class rZ extends sr{constructor(e){super({...e,code:e.code??"FIRESTORE"}),this.name="FirestoreError"}}function Cc(t){return t instanceof sr?t:t instanceof Error?new sr({code:"UNKNOWN",message:t.message,cause:t}):typeof t=="string"?new sr({code:"UNKNOWN",message:t}):new sr({code:"UNKNOWN",message:"Unexpected error",cause:t})}const jG={"auth/email-already-in-use":"This email is already registered.","auth/invalid-email":"That email address is not valid.","auth/user-disabled":"This account has been disabled.","auth/user-not-found":"No account found with this email.","auth/wrong-password":"Incorrect email or password.","auth/invalid-credential":"Incorrect email or password.","auth/weak-password":"Password is too weak (use at least 6 characters).","auth/network-request-failed":"Network problem. Please check your connection and try again.","auth/too-many-requests":"Too many attempts. Please wait a moment before trying again.","auth/popup-closed-by-user":"Sign-in window was closed before completing.","auth/cancelled-popup-request":"Sign-in was cancelled.","auth/account-exists-with-different-credential":"This email is registered using a different sign-in method.","auth/requires-recent-login":"Please sign in again to complete this action.","auth/expired-action-code":"This link has expired. Request a new one.","auth/invalid-action-code":"This link is invali
48d or already used."};function oi(t){const e=t??{},n=e.code??"auth/unknown";return new N_({code:n,message:e.message??"Firebase auth error",userMessage:jG[n]??"Sign-in failed. Please try again.",severity:"toast",cause:t})}function cS(t){if(!t.response)return new $G({message:t.message||"Network request failed",userMessage:"Cannot reach the server. Check your connection and try again.",severity:"toast",cause:t});const e=t.response.status,n=t.response.data??{},r=n.message??n.error;return e===401?new N_({code:"HTTP_401",message:r??"Unauthorized",userMessage:"Your session expired. Please sign in again.",severity:"silent",cause:t}):e===403?new N_({code:"HTTP_403",message:r??"Forbidden",userMessage:"You do not have permission to perform this action.",severity:"toast",cause:t}):e===404?new sr({code:"HTTP_404",message:r??"Not found",userMessage:r??"Resource not found.",severity:"toast",cause:t}):e===429?new sr({code:"HTTP_429",message:r??"Too many requests",userMessage:"You are doing that too often. Please wait a moment and try again.",severity:"toast",cause:t}):e>=500?new sr({code:`HTTP_${e}`,message:r??`Server error ${e}`,userMessage:"The server hit an error. Please try again in a moment.",severity:"toast",cause:t}):new sr({code:`HTTP_${e}`,message:r??`HTTP ${e}`,userMessage:r??"Something went wrong. Please try again.",severity:"toast",cause:t})}function fd(t){const e=Cc(t);return e.severity==="toast"&&Je.error(e.userMessage),qG(e),e}function qG(t){if(t.severity!=="silent"&&!(typeof window>"u"))try{const n=Zt().public.apiBase;if(!n)return;fetch(`${n}/api/v1/log/error`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:t.code,message:t.message,userMessage:t.userMessage,severity:t.severity,url:window.location.href,userAgent:navigator.userAgent,stack:t.cause instanceof Error?t.cause.stack:t.stack,uid:typeof localStorage<"u"?localStorage.getItem("uid")??"":""}),keepalive:!0}).catch(()=>{})}catch{}}const WG="/",Pc="/login",$O="/register",sZ="/verify",GG="/settings",YG="/general",iZ="/contact",oZ="/cart",aZ="/wishlist";const jO="firebasestorage.googleapis.com",qO="storageBucket",zG=120*1e3,KG=600*1e3;class kt extends Ts{constructor(e,n,r=0){super(Km(e),`Firebase Storage: ${n} (${Km(e)})`),this.status_=r,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,kt.prototype)}get status(){return this.status_}set status(e){this.status_=e}_codeEquals(e){return Km(e)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(e){this.customData.serverResponse=e,this.customData.serverResponse?this.message=`${this._baseMessage} 49${this.customData.serverResponse}`:this.message=this._baseMessage}}var Ot;(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"})(Ot||(Ot={}));function Km(t){return"storage/"+t}function hv(){const t="An unknown error occurred, please check the error payload for server response.";return new kt(Ot.UNKNOWN,t)}function XG(t){return new kt(Ot.OBJECT_NOT_FOUND,"Object '"+t+"' does not exist.")}function JG(t){return new kt(Ot.QUOTA_EXCEEDED,"Quota for bucket '"+t+"' exceeded, please view quota on https://firebase.google.com/pricing/.")}function QG(){const t="User is not authenticated, please authenticate using Firebase Authentication and try again.";return new kt(Ot.UNAUTHENTICATED,t)}function ZG(){return new kt(Ot.UNAUTHORIZED_APP,"This app does not have permission to access Firebase Storage on this project.")}function eY(t){return new kt(Ot.UNAUTHORIZED,"User does not have permission to access '"+t+"'.")}function tY(){return new kt(Ot.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.")}function nY(){return new kt(Ot.CANCELED,"User canceled the upload/download.")}function rY(t){return new kt(Ot.INVALID_URL,"Invalid URL '"+t+"'.")}function sY(t){return new kt(Ot.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+t+"'.")}function iY(){return new kt(Ot.NO_DEFAULT_BUCKET,"No default bucket found. Did you set the '"+qO+"' property when initializing the app?")}function oY(){return new kt(Ot.CANNOT_SLICE_BLOB,"Cannot slice blob for upload. Please retry the upload.")}function aY(){return new kt(Ot.NO_DOWNLOAD_URL,"The given file does not have any download URLs.")}function lY(t){return new kt(Ot.UNSUPPORTED_ENVIRONMENT,`${t} is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.`)}function k_(t){return new kt(Ot.INVALID_ARGUMENT,t)}function WO(){return new kt(Ot.APP_DELETED,"The Firebase app was deleted.")}function cY(t){return new kt(Ot.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').")}function Oc(t,e){return new kt(Ot.INVALID_FORMAT,"String does not match format '"+t+"': "+e)}function rc(t){throw new kt(Ot.INTERNAL_ERROR,"Internal error: "+t)}class pr{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=pr.makeFromUrl(e,n)}catch{return new pr(e,"")}if(r.path==="")return r;throw sY(e)}static makeFromUrl(e,n){let r=null;const s="([A-Za-z0-9.\\-_]+)";function i(C){C.path.charAt(C.path.length-1)==="/"&&(C.path_=C.path_.slice(0,-1))}const o="(/(.*))?$",a=new RegExp("^gs://"+s+o,"i"),l={bucket:1,path:3};function u(C){C.path_=decodeURIComponent(C.path)}const f="v[A-Za-z0-9_]+",h=n.replace(/[.]/g,"\\."),d="(/([^?#]*).*)?$",p=new RegExp(`^https?://${h}/${f}/b/${s}/o${d}`,"i"),g={bucket:1,path:3},_=n===jO?"(?:storage.googleapis.com|storage.cloud.google.com)":n,v="([^?#]*)",N=new RegExp(`^https?://${_}/${s}/${v}`,"i"),T=[{regex:a,indices:l,postModify:i},{regex:p,indices:g,postModify:u},{regex:N,indices:{bucket:1,path:2},postModify:u}];for(let C=0;C<T.length;C++){const x=T[C],L=x.regex.exec(e);if(L){const R=L[x.indices.bucket];let w=L[x.indices.path];
49w||(w=""),r=new pr(R,w),x.postModify(r);break}}if(r==null)throw rY(e);return r}}class uY{constructor(e){this.promise_=Promise.reject(e)}getPromise(){return this.promise_}cancel(e=!1){}}function fY(t,e,n){let r=1,s=null,i=null,o=!1,a=0;function l(){return a===2}let u=!1;function f(...v){u||(u=!0,e.apply(null,v))}function h(v){s=setTimeout(()=>{s=null,t(p,l())},v)}function d(){i&&clearTimeout(i)}function p(v,...N){if(u){d();return}if(v){d(),f.call(null,v,...N);return}if(l()||o){d(),f.call(null,v,...N);return}r<64&&(r*=2);let T;a===1?(a=2,T=0):T=(r+Math.random())*1e3,h(T)}let g=!1;function _(v){g||(g=!0,d(),!u&&(s!==null?(v||(a=2),clearTimeout(s),h(0)):v||(a=1)))}return h(0),i=setTimeout(()=>{o=!0,_(!0)},n),_}function hY(t){t(!1)}function dY(t){return t!==void 0}function pY(t){return typeof t=="object"&&!Array.isArray(t)}function dv(t){return typeof t=="string"||t instanceof String}function uS(t){return pv()&&t instanceof Blob}function pv(){return typeof Blob<"u"}function fS(t,e,n,r){if(r<e)throw k_(`Invalid value for '${t}'. Expected ${e} or greater.`);if(r>n)throw k_(`Invalid value for '${t}'. Expected ${n} or less.`)}function mv(t,e,n){let r=e;return n==null&&(r=`https://${e}`),`${n}://${r}/v0${t}`}function GO(t){const e=encodeURIComponent;let n="?";for(const r in t)if(t.hasOwnProperty(r)){const s=e(r)+"="+e(t[r]);n=n+s+"&"}return n=n.slice(0,-1),n}var $o;(function(t){t[t.NO_ERROR=0]="NO_ERROR",t[t.NETWORK_ERROR=1]="NETWORK_ERROR",t[t.ABORT=2]="ABORT"})($o||($o={}));function mY(t,e){const n=t>=500&&t<600,s=[408,429].indexOf(t)!==-1,i=e.indexOf(t)!==-1;return n||s||i}class gY{constructor(e,n,r,s,i,o,a,l,u,f,h,d=!0,p=!1){this.url_=e,this.method_=n,this.headers_=r,this.body_=s,this.successCodes_=i,this.additionalRetryCodes_=o,this.callback_=a,this.errorCallback_=l,this.timeout_=u,this.progressCallback_=f,this.connectionFactory_=h,this.retry=d,this.isUsingEmulator=p,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise((g,_)=>{this.resolve_=g,this.reject_=_,this.start_()})}start_(){const e=(r,s)=>{if(s){r(!1,new Uf(!1,null,!0));return}const i=this.connectionFactory_();this.pendingConnection_=i;const o=a=>{const l=a.loaded,u=a.lengthComputable?a.total:-1;this.progressCallback_!==null&&this.progressCallback_(l,u)};this.progressCallback_!==null&&i.addUploadProgressListener(o),i.send(this.url_,this.method_,this.isUsingEmulator,this.body_,this.headers_).then(()=>{this.progressCallback_!==null&&i.removeUploadProgressListener(o),this.pendingConnection_=null;const a=i.getErrorCode()===$o.NO_ERROR,l=i.getStatus();if(!a||mY(l,this.additionalRetryCodes_)&&this.retry){const f=i.getErrorCode()===$o.ABORT;r(!1,new Uf(!1,null,f));return}const u=this.successCodes_.indexOf(l)!==-1;r(!0,new Uf(u,i))})},n=(r,s)=>{const i=this.resolve_,o=this.reject_,a=s.connection;if(s.wasSuccessCode)try{const l=this.callback_(a,a.getResponse());dY(l)?i(l):i()}catch(l){o(l)}else if(a!==null){const l=hv();l.serverResponse=a.getErrorText(),this.errorCallback_?o(this.errorCallback_(a,l)):o(l)}else if(s.canceled){const l=this.appDelete_?WO():nY();o(l)}else{const l=tY();o(l)}};this.canceled_?n(!1,new Uf(!1,null,!0)):this.backoffId_=fY(e,n,this.timeout_)}getPromise(){return this.promise_}cancel(e){this.canceled_=!0,this.appDelete_=e||!1,this.backoffId_!==null&&hY(this.backoffId_),this.pendingConnection_!==null&&this.pendingConnection_.abort()}}class Uf{constructor(e,n,r){this.wasSuccessCode=e,this.connection=n,this.canceled=!!r}}function _Y(t,e){e!==null&&e.length>0&&(t.Authorization="Firebase "+e)}function yY(t,e){t["X-Firebase-Storage-Version"]="webjs/"+(e??"AppManager")}function EY(t,e){e&&(t["X-Firebase-GMPID"]=e)}function vY(t,e){e!==null&&(t["X-Firebase-AppCheck"]=e)}function TY(t,e,n,r,s,i,o=!0,a=!1){const l=GO(t.urlParams),u=t.url+l,f=Object.assign({},t.headers);return EY(f,e),_Y(f,n),yY(f,i),vY(f,r),new gY(u,t.method,f,t.body,t.successCodes,t.additionalRetryCodes,t.handler,t.errorHandler,t.timeout,t.progressCallback,s,o,a)}function wY(){return typeof BlobBuilder<"u"?BlobBuilder:typeof WebKitBlobBuilder<"u"?WebKitBlobBuilder:void 0}function bY(...t){const e=wY();if(e!==void 0){const n=new e;for(let r=0;r<t.length;r++)n.append(t[r]);return n.getBlob()}else{if(pv())return new Blob(t);throw new kt(Ot.UNSUPPORTED_ENVIRONMENT,"This browser doesn't seem to supp
49ort creating Blobs")}}function SY(t,e,n){return t.webkitSlice?t.webkitSlice(e,n):t.mozSlice?t.mozSlice(e,n):t.slice?t.slice(e,n):null}function IY(t){if(typeof atob>"u")throw lY("base-64");return atob(t)}const us={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"};class Xm{constructor(e,n){this.data=e,this.contentType=n||null}}function AY(t,e){switch(t){case us.RAW:return new Xm(YO(e));case us.BASE64:case us.BASE64URL:return new Xm(zO(t,e));case us.DATA_URL:return new Xm(CY(e),PY(e))}throw hv()}function YO(t){const e=[];for(let n=0;n<t.length;n++){let r=t.charCodeAt(n);if(r<=127)e.push(r);else if(r<=2047)e.push(192|r>>6,128|r&63);else if((r&64512)===55296)if(!(n<t.length-1&&(t.charCodeAt(n+1)&64512)===56320))e.push(239,191,189);else{const i=r,o=t.charCodeAt(++n);r=65536|(i&1023)<<10|o&1023,e.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|r&63)}else(r&64512)===56320?e.push(239,191,189):e.push(224|r>>12,128|r>>6&63,128|r&63)}return new Uint8Array(e)}function RY(t){let e;try{e=decodeURIComponent(t)}catch{throw Oc(us.DATA_URL,"Malformed data URL.")}return YO(e)}function zO(t,e){switch(t){case us.BASE64:{const s=e.indexOf("-")!==-1,i=e.indexOf("_")!==-1;if(s||i)throw Oc(t,"Invalid character '"+(s?"-":"_")+"' found: is it base64url encoded?");break}case us.BASE64URL:{const s=e.indexOf("+")!==-1,i=e.indexOf("/")!==-1;if(s||i)throw Oc(t,"Invalid character '"+(s?"+":"/")+"' found: is it base64 encoded?");e=e.replace(/-/g,"+").replace(/_/g,"/");break}}let n;try{n=IY(e)}catch(s){throw s.message.includes("polyfill")?s:Oc(t,"Invalid character found")}const r=new Uint8Array(n.length);for(let s=0;s<n.length;s++)r[s]=n.charCodeAt(s);return r}class KO{constructor(e){this.base64=!1,this.contentType=null;const n=e.match(/^data:([^,]+)?,/);if(n===null)throw Oc(us.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");const r=n[1]||null;r!=null&&(this.base64=OY(r,";base64"),this.contentType=this.base64?r.substring(0,r.length-7):r),this.rest=e.substring(e.indexOf(",")+1)}}function CY(t){const e=new KO(t);return e.base64?zO(us.BASE64,e.rest):RY(e.rest)}function PY(t){return new KO(t).contentType}function OY(t,e){return t.length>=e.length?t.substring(t.length-e.length)===e:!1}class Ni{constructor(e,n){let r=0,s="";uS(e)?(this.data_=e,r=e.size,s=e.type):e instanceof ArrayBuffer?(n?this.data_=new Uint8Array(e):(this.data_=new Uint8Array(e.byteLength),this.data_.set(new Uint8Array(e))),r=this.data_.length):e instanceof Uint8Array&&(n?this.data_=e:(this.data_=new Uint8Array(e.length),this.data_.set(e)),r=e.length),this.size_=r,this.type_=s}size(){return this.size_}type(){return this.type_}slice(e,n){if(uS(this.data_)){const r=this.data_,s=SY(r,e,n);return s===null?null:new Ni(s)}else{const r=new Uint8Array(this.data_.buffer,e,n-e);return new Ni(r,!0)}}static getBlob(...e){if(pv()){const n=e.map(r=>r instanceof Ni?r.data_:r);return new Ni(bY.apply(null,n))}else{const n=e.map(o=>dv(o)?AY(us.RAW,o).data:o.data_);let r=0;n.forEach(o=>{r+=o.byteLength});const s=new Uint8Array(r);let i=0;return n.forEach(o=>{for(let a=0;a<o.length;a++)s[i++]=o[a]}),new Ni(s,!0)}}uploadData(){return this.data_}}function XO(t){let e;try{e=JSON.parse(t)}catch{return null}return pY(e)?e:null}function NY(t){if(t.length===0)return null;const e=t.lastIndexOf("/");return e===-1?"":t.slice(0,e)}function kY(t,e){const n=e.split("/").filter(r=>r.length>0).join("/");return t.length===0?n:t+"/"+n}function JO(t){const e=t.lastIndexOf("/",t.length-2);return e===-1?t:t.slice(e+1)}function DY(t,e){return e}class $n{constructor(e,n,r,s){this.server=e,this.local=n||e,this.writable=!!r,this.xform=s||DY}}let Ff=null;function xY(t){return!dv(t)||t.length<2?t:JO(t)}function QO(){if(Ff)return Ff;const t=[];t.push(new $n("bucket")),t.push(new $n("generation")),t.push(new $n("metageneration")),t.push(new $n("name","fullPath",!0));function e(i,o){return xY(o)}const n=new $n("name");n.xform=e,t.push(n);function r(i,o){return o!==void 0?Number(o):o}const s=new $n("size");return s.xform=r,t.push(s),t.push(new $n("timeCreated")),t.push(new $n("updated")),t.push(new $n("md5Hash",null,!0)),t.push(new $n("cacheControl",null,!0)),t.push(new $n("contentDisposition",null,!0)),t.push(new $n("contentEncoding",null,!0)),t.push(new $n("contentLanguage",null,!0)),t.push(new $n("contentType",null,!0)),t.push(new $n("metadata","customMetadata",!0)),Ff=t,Ff}function MY(t,e){function n(){const r=t.bucket,s=t.fullPath,i=new pr(r,s);return e._makeStorageReference(i)}Object.defineProperty(t,"ref",{get:n})}function LY(t,e,n){const r={};r.type="file";const s=n.length;for(let i=0;i<s;i++){const o=n[i];r[o.local]=o.xform(r,e[o.server])}return MY(r,t),r}function ZO(t,e,n){const r=XO(e);return r===null?null:LY(t,r,n)}function VY(t,e,n,r){const s=XO(e);
49if(s===null||!dv(s.downloadTokens))return null;const i=s.downloadTokens;if(i.length===0)return null;const o=encodeURIComponent;return i.split(",").map(u=>{const f=t.bucket,h=t.fullPath,d="/b/"+o(f)+"/o/"+o(h),p=mv(d,n,r),g=GO({alt:"media",token:u});return p+g})[0]}function UY(t,e){const n={},r=e.length;for(let s=0;s<r;s++){const i=e[s];i.writable&&(n[i.server]=t[i.local])}return JSON.stringify(n)}class eN{constructor(e,n,r,s){this.url=e,this.method=n,this.handler=r,this.timeout=s,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}}function tN(t){if(!t)throw hv()}function FY(t,e){function n(r,s){const i=ZO(t,s,e);return tN(i!==null),i}return n}function BY(t,e){function n(r,s){const i=ZO(t,s,e);return tN(i!==null),VY(i,s,t.host,t._protocol)}return n}function nN(t){function e(n,r){let s;return n.getStatus()===401?n.getErrorText().includes("Firebase App Check token is invalid")?s=ZG():s=QG():n.getStatus()===402?s=JG(t.bucket):n.getStatus()===403?s=eY(t.path):s=r,s.status=n.getStatus(),s.serverResponse=r.serverResponse,s}return e}function HY(t){const e=nN(t);function n(r,s){let i=e(r,s);return r.getStatus()===404&&(i=XG(t.path)),i.serverResponse=s.serverResponse,i}return n}function $Y(t,e,n){const r=e.fullServerUrl(),s=mv(r,t.host,t._protocol),i="GET",o=t.maxOperationRetryTime,a=new eN(s,i,BY(t,n),o);return a.errorHandler=HY(e),a}function jY(t,e){return t&&t.contentType||e&&e.type()||"application/octet-stream"}function qY(t,e,n){const r=Object.assign({},n);return r.fullPath=t.path,r.size=e.size(),r.contentType||(r.contentType=jY(null,e)),r}function WY(t,e,n,r,s){const i=e.bucketOnlyServerUrl(),o={"X-Goog-Upload-Protocol":"multipart"};function a(){let T="";for(let C=0;C<2;C++)T=T+Math.random().toString().slice(2);return T}const l=a();o["Content-Type"]="multipart/related; boundary="+l;const u=qY(e,r,s),f=UY(u,n),h="--"+l+`\r 50Content-Type: application/json; charset=utf-8\r 51\r 52`+f+`\r 53--`+l+`\r 54Content-Type: `+u.contentType+`\r 55\r 56`,d=`\r 57--`+l+"--",p=Ni.getBlob(h,r,d);if(p===null)throw oY();const g={name:u.fullPath},_=mv(i,t.host,t._protocol),v="POST",N=t.maxUploadRetryTime,O=new eN(_,v,FY(t,n),N);return O.urlParams=g,O.headers=o,O.body=p.uploadData(),O.errorHandler=nN(e),O}class GY{constructor(){this.sent_=!1,this.xhr_=new XMLHttpRequest,this.initXhr(),this.errorCode_=$o.NO_ERROR,this.sendPromise_=new Promise(e=>{this.xhr_.addEventListener("abort",()=>{this.errorCode_=$o.ABORT,e()}),this.xhr_.addEventListener("error",()=>{this.errorCode_=$o.NETWORK_ERROR,e()}),this.xhr_.addEventListener("load",()=>{e()})})}send(e,n,r,s,i){if(this.sent_)throw rc("cannot .send() more than once");if(wl(e)&&r&&(this.xhr_.withCredentials=!0),this.sent_=!0,this.xhr_.open(n,e,!0),i!==void 0)for(const o in i)i.hasOwnProperty(o)&&this.xhr_.setRequestHeader(o,i[o].toString());return s!==void 0?this.xhr_.send(s):this.xhr_.send(),this.sendPromise_}getErrorCode(){if(!this.sent_)throw rc("cannot .getErrorCode() before sending");return this.errorCode_}getStatus(){if(!this.sent_)throw rc("cannot .getStatus() before sending");try{return this.xhr_.status}catch{return-1}}getResponse(){if(!this.sent_)throw rc("cannot .getResponse() before sending");return this.xhr_.response}getErrorText(){if(!this.sent_)throw rc("cannot .getErrorText() before sending");return this.xhr_.statusText}abort(){this.xhr_.abort()}getResponseHeader(e){return this.xhr_.getResponseHeader(e)}addUploadProgressListener(e){this.xhr_.upload!=null&&this.xhr_.upload.addEventListener("progress",e)}removeUploadProgressListener(e){this.xhr_.upload!=null&&this.xhr_.upload.removeEventListener("progress",e)}}class YY extends GY{initXhr(){this.xhr_.responseType="text"}}function rN(){return new YY}class ea{constructor(e,n){this._service=e,n instanceof pr?this._location=n:this._location=pr.makeFromUrl(n,e.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(e,n){return new ea(e,n)}get root(){const e=new pr(this._location.bucket,"");return this._newRef(this._service,e)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return JO(this._location.path)}get storage(){return this._service}get parent(){const e=NY(this._location.path);if(e===null)return null;const n=new pr(this._location.bucket,e);return new ea(this._service,n)}_throwIfRoot(e){if(this._location.path==="")throw cY(e)}}function zY(t,e,n){t._throwIfRoot("uploadBytes");const r=WY(t.storage,t._location,QO(),new Ni(e,!0),n);return t.storage.makeRequestWithTokens(r,rN).then(s=>({metadata:s,ref:t}))}function KY(t){t._throwIfRoot("getDownloadURL");const e=$Y(t.storage,t._location,QO());return t.storage.makeRequestWithTokens(e,rN).then(n=>{if(n===null)throw aY();return n})}function XY(t,e){const n=kY(t._location.path,e),r=new pr(t._location.bucket,n);return new ea(t.storage,r)}function JY(t){return/^[A-Za-z]+:\/\//.test(t)}function QY(t,e){return new ea(t,e)}function sN(t,e){if(t instanceof gv){const n=t;if(n._bucket==null)throw iY();const r=new ea(n,n._bucket);return e!=null?sN(r,e):r}else return e!==void 0?XY(t,e):t}function ZY(t,e){if(e&&JY(e)){if(t instanceof gv)return QY(t,e);throw k_("To use ref(service, url), the first argument must be a Storage instance.")}else return sN(t,e)}function hS(t,e){const n=e?.[qO];return n==null?null:pr.makeFromBucketSpec(n,t)}function ez(t,e,n,r={}){t.host=`${e}:${n}`;const s=wl(e);s&&(vC(`https://${t.host}`),wC("Storage",!0)),t._isUsingEmulator=!0,t._protocol=s?"https":"http";const{mockUserToken:i}=r;i&&(t._overrideAuthToken=typeof i=="string"?i:TC(i,t.app.options.projectId))}class gv{constructor(e,n,r,s,i,o=!1){this.app=e,this._authProvider=n,this._appCheckProvider=r,this._url=s,this._firebaseVersion=i,this._isUsingEmulator=o,this._bucket=null,this._host=jO,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=zG,this._maxUploadRetryTime=KG,this._requests=new Set,s!=null?this._bucket=pr.makeFromBucketSpec(s,this._host):this._bucket=hS(this._host,this.app.options)}get host(){return this._host}set host(e){this._host=e,this._url!=null?this._bucket=pr.makeFromBucketSpec(this._url,e):this._bucket=hS(e,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(e){fS("time",0,Number.POSITIVE_INFINITY,e),this._maxUploadRetryTime=e}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(e){fS("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(){if(Yn(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;const e=this._appCheckProvider.getImmediate({optional:!0});
57return 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 ea(this,e)}_makeRequest(e,n,r,s,i=!0){if(this._deleted)return new uY(WO());{const o=TY(e,this._appId,r,s,n,this._firebaseVersion,i,this._isUsingEmulator);return this._requests.add(o),o.getPromise().then(()=>this._requests.delete(o),()=>this._requests.delete(o)),o}}async makeRequestWithTokens(e,n){const[r,s]=await Promise.all([this._getAuthToken(),this._getAppCheckToken()]);return this._makeRequest(e,n,r,s).getPromise()}}const dS="@firebase/storage",pS="0.13.12";const iN="storage";function lZ(t,e,n){return t=dt(t),zY(t,e,n)}function cZ(t){return t=dt(t),KY(t)}function uZ(t,e){return t=dt(t),ZY(t,e)}function tz(t=AC(),e){t=dt(t);const r=jy(t,iN).getImmediate({identifier:e}),s=yC("storage");return s&&nz(r,...s),r}function nz(t,e,n,r={}){ez(t,e,n,r)}function rz(t,{instanceIdentifier:e}){const n=t.getProvider("app").getImmediate(),r=t.getProvider("auth-internal"),s=t.getProvider("app-check-internal");return new gv(n,r,s,e,ca)}function sz(){Ko(new Yi(iN,rz,"PUBLIC").setMultipleInstances(!0)),hs(dS,pS,""),hs(dS,pS,"esm2017")}sz();let hc=null;const iz=t=>{hc=t},hu=()=>{if(hc)return hc;const{$firebase:t}=ht();if(!t)throw new sr({code:"FIREBASE_INIT",message:"Firebase plugin not initialised",userMessage:"Application failed to start. Please refresh the page.",severity:"fatal"});return hc=t,hc},fi=()=>{const{auth:t}=hu();if(!t)throw new sr({code:"FIREBASE_CLIENT_ONLY",message:"Firebase Auth is only available on the client",severity:"silent"});return t};let jo=null;const oz=async()=>{const e=hu().auth?.currentUser;if(!e)return!1;try{const n=await e.getIdToken(!0),r=Zt().public.apiBase??"";return await fetch(`${r}/api/v1/auth/session-cookie`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({idToken:n})}),!0}catch{return!1}},hi=t=>e=>`/api/v1/${t}${e}`,Mr=hi("users"),fZ=hi("theme"),hZ=hi("email_support"),az=hi("ai"),dZ=hi("wait_list"),mS=hi("discount"),oN=hi("auth"),pZ=hi("affiliate"),mZ=hi("excel"),aN=()=>{const e=Zt().public.apiBase,n=Pt.create({baseURL:e,withCredentials:!0,headers:{"Content-Type":"application/json"}});return n.interceptors.request.use(async r=>{try{const s=hu().auth?.currentUser;if(s){const i=await s.getIdToken();r.headers.set("Authorization",`Bearer ${i}`)}}catch{}return r}),n.interceptors.response.use(r=>r,async r=>{if(r.response?.status===401&&r.config&&!r.config._retried)try{return await oz()?(r.config._retried=!0,jo(r.config)):(gS(),Promise.reject(cS(r)))}catch(o){return gS(),Promise.reject(o)}const s=cS(r);return r.config?._skipErrorToast===!0||fd(s),Promise.reject(s)}),n},gZ=()=>(jo||(jo=aN()),jo),Jt=()=>(jo||(jo=aN()),jo),gS=()=>{localStorage.removeItem($r.UID),$d(Pc)},lN=t=>t==="staging"||t==="development",cN=new as,uN=new Ha("microsoft.com");async function _Z(t,e){const n=fi();try{const s=lN(Zt().public.appEnv),o=(await xH(n,t,e)).user,a=localStorage.getItem("pending_affiliate_ref");let l="https://flexaintel.com/login";return a&&(l=s?`https://partnerportal-staging.web.app/login?ref=${a}`:`https://partnerportal-production.web.app/login?ref=${a}`),await ZC(o,{url:l}),{user:o,error:null}}catch(r){return{user:null,error:oi(r).userMessage}}}async function yZ(){try{const e=fi().currentUser;if(!e)throw new Error("User not logged in.");return await ZC(e),{success:!0,error:null}}catch(t){return{success:!1,error:oi(t).userMessage}}}async function lz(t){try{const e=fi();return{user:(await kH(e,t)).user,error:null}}catch(e){return{user:null,error:oi(e).userMessage}}}async function EZ(t,e){try{const n=fi();return{user:(await MH(n,t,e)).user,error:null}}catch(n){return{user:null,error:oi(n).userMessage}}}const cz=t=>t==="google.com"?cN:t==="microsoft.com"?uN:null;async function fN(t,e){try{const n=fi(),r=e==="google"?as.credentialFromError(t):Ha.credentialFromError(t),s=t?.customData?.email;if(!r||!s)return{user:null,error:oi(t).userMessage};const o=(await VH(n,s)).find(l=>l==="google.com"||l==="microsoft.com"),a=o?cz(o):null;if(a){const l=await eE(n,a,tE);return await OH(l.user,r),{user:l.user,error:null}}return{user:null,error:"This email is already registered with email & password. Please sign in with your password first â you can link Google/Microsoft afterward."}}catch(n){return{user:null,error:oi(n).userMessage}}}async function vZ(){try{const t=fi();return{user:(await eE(t,cN,tE)).user,error:null}}catch(t){return t?.code==="auth/account-exists-with-different-credential"?fN(t,"google"):{user:null,error:oi(t).userMessage}}}async function TZ(){try{const t=fi();return{user:(await eE(t,uN,tE)).user,error:null}}catch(t){return t?.code==="auth/account-exists-with-different-credential"?fN(t,"microsoft"):{user:null,error:oi(t).userMessage}}}async function uz(){try{const t=fi();return await HH(t),{error:null}}catch(t){return{error:oi(t).userMessage}}}async function wZ(t){try{const e=await Jt().post(oN("/request-password-reset"),{email:t.trim().toLowerCase()});if(e.data.success&&e.data.code===100)return{success:!0,error:null};if(e.data.code===404||e.data.code===101)return{success:!0,error:null};throw new Error(e.data.message||"Unknown error")}catch{return Je.info("If the email is registered, a reset link has been sent."),{success:!0,error:null}}}const fz=Symbol.for("nuxt:client-only"),hz=Nt({name:"ClientOnly",
57inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(t,{slots:e,attrs:n}){const r=or(!1);Jr(()=>{r.value=!0});const s=rn();return s&&(s._nuxtClientOnly=!0),fs(fz,!0),()=>{if(r.value){const l=e.default?.();return l&&l.length===1?[Cr(l[0],n)]:l}const i=e.fallback||e.placeholder;if(i)return Et(i);const o=t.fallback||t.placeholder||"",a=t.fallbackTag||t.placeholderTag||"span";return Lt(a,n,o)}}}),D_=globalThis.requestIdleCallback||(t=>{const e=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-e))};return setTimeout(()=>{t(n)},1)}),dz=globalThis.cancelIdleCallback||(t=>{clearTimeout(t)}),Gu=t=>{const e=ht();e.isHydrating?e.hooks.hookOnce("app:suspense:resolve",()=>{D_(()=>t())}):D_(()=>t())};function pz(t){if(t?.__asyncLoader&&!t.__asyncResolved)return t.__asyncLoader()}async function hN(t,e=Vn()){const{path:n,matched:r}=e.resolve(t);if(!r.length||(e._routePreloaded||=new Set,e._routePreloaded.has(n)))return;const s=e._preloadPromises||=[];if(s.length>4)return Promise.all(s).then(()=>hN(t,e));e._routePreloaded.add(n);for(const i of r){const o=i.components?.default;if(typeof o!="function")continue;const a=Promise.resolve(o()).catch(()=>{}).finally(()=>s.splice(s.indexOf(a)));s.push(a)}await Promise.all(s)}function mz(t={}){const e=t.path||window.location.pathname;let n={};try{n=Mh(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:ht().payload.state}))}catch{}window.location.pathname!==e?window.location.href=e:window.location.reload()}}const gz=(...t)=>t.find(e=>e!==void 0);function _z(t){const e=t.componentName||"NuxtLink";function n(i){return typeof i=="string"&&i.startsWith("#")}function r(i,o,a){const l=a??t.trailingSlash;if(!i||l!=="append"&&l!=="remove")return i;if(typeof i=="string")return Bf(i,l);const u="path"in i&&i.path!==void 0?i.path:o(i).path;return{...i,name:void 0,path:Bf(u,l)}}function s(i){const o=Vn(),a=Zt(),l=de(()=>!!i.target&&i.target!=="_self"),u=de(()=>{const v=i.to||i.href||"";return typeof v=="string"&&oo(v,{acceptRelative:!0})}),f=dg("RouterLink"),h=f&&typeof f!="string"?f.useLink:void 0,d=de(()=>{if(i.external)return!0;const v=i.to||i.href||"";return typeof v=="object"?!1:v===""||u.value}),p=de(()=>{const v=i.to||i.href||"";return d.value?v:r(v,o.resolve,i.trailingSlash)}),g=d.value?void 0:h?.({...i,to:p}),_=de(()=>{const v=i.trailingSlash??t.trailingSlash;if(!p.value||u.value||n(p.value))return p.value;if(d.value){const N=typeof p.value=="object"&&"path"in p.value?xg(p.value):p.value,O=typeof N=="object"?o.resolve(N).href:N;return Bf(O,v)}return typeof p.value=="object"?o.resolve(p.value)?.href??null:Bf(Bd(a.app.baseURL,p.value),v)});return{to:p,hasTarget:l,isAbsoluteUrl:u,isExternal:d,href:_,isActive:g?.isActive??de(()=>p.value===o.currentRoute.value.path),isExactActive:g?.isExactActive??de(()=>p.value===o.currentRoute.value.path),route:g?.route??de(()=>o.resolve(p.value)),async navigate(v){await $d(_.value,{replace:i.replace,external:d.value||l.value})}}}return Nt({name:e,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:s,setup(i,{slots:o}){const a=Vn(),{to:l,href:u,navigate:f,isExternal:h,hasTarget:d,isAbsoluteUrl:p}
57=s(i),g=or(!1),_=Pe(null),v=T=>{_.value=i.custom?T?.$el?.nextElementSibling:T?.$el};function N(T){return!g.value&&(typeof i.prefetchOn=="string"?i.prefetchOn===T:i.prefetchOn?.[T]??t.prefetchOn?.[T])&&(i.prefetch??t.prefetch)!==!1&&i.noPrefetch!==!0&&i.target!=="_blank"&&!Tz()}async function O(T=ht()){if(g.value)return;g.value=!0;const C=typeof l.value=="string"?l.value:h.value?xg(l.value):a.resolve(l.value).fullPath,x=h.value?new URL(C,window.location.href).href:C;await Promise.all([T.hooks.callHook("link:prefetch",x).catch(()=>{}),!h.value&&!d.value&&hN(l.value,a).catch(()=>{})])}if(N("visibility")){const T=ht();let C,x=null;Jr(()=>{const L=Ez();Gu(()=>{C=D_(()=>{_?.value?.tagName&&(x=L.observe(_.value,async()=>{x?.(),x=null,await O(T)}))})})}),aa(()=>{C&&dz(C),x?.(),x=null})}return()=>{if(!h.value&&!d.value&&!n(l.value)){const x={ref:v,to:l.value,activeClass:i.activeClass||t.activeClass,exactActiveClass:i.exactActiveClass||t.exactActiveClass,replace:i.replace,ariaCurrentValue:i.ariaCurrentValue,custom:i.custom};
57return i.custom||(N("interaction")&&(x.onPointerenter=O.bind(null,void 0),x.onFocus=O.bind(null,void 0)),g.value&&(x.class=i.prefetchedClass||t.prefetchedClass),x.rel=i.rel||void 0),Et(dg("RouterLink"),x,o.default)}const T=i.target||null,C=gz(i.noRel?"":i.rel,t.externalRelAttribute,p.value||d.value?"noopener noreferrer":"")||null;return i.custom?o.default?o.default({href:u.value,navigate:f,prefetch:O,get route(){if(!u.value)return;const x=new URL(u.value,window.location.href);return{path:x.pathname,fullPath:x.pathname,get query(){return Sy(x.search)},hash:x.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:u.value}},rel:C,target:T,isExternal:h.value||d.value,isActive:!1,isExactActive:!1}):null:Et("a",{ref:_,href:u.value||null,rel:C,target:T,onClick:x=>{if(!(h.value||d.value))return x.preventDefault(),i.replace?a.replace(u.value):a.push(u.value)}},o.default?.())}}})}const yz=_z(jV);function Bf(t,e){const n=e==="append"?rR:qc;return oo(t)&&!t.startsWith("http")?t:n(t,!0)}function Ez(){const t=ht();if(t._observer)return t._observer;let e=null;const n=new Map,r=(i,o)=>(e||=new IntersectionObserver(a=>{for(const l of a){const u=n.get(l.target);(l.isIntersecting||l.intersectionRatio>0)&&u&&u()}}),n.set(i,o),e.observe(i),()=>{n.delete(i),e?.unobserve(i),n.size===0&&(e?.disconnect(),e=null)});return t._observer={observe:r}}const vz=/2g/;function Tz(){const t=navigator.connection;return!!(t&&(t.saveData||vz.test(t.effectiveType)))}let dN;const Yu=t=>dN=t,pN=Symbol();function x_(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var Nc;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(Nc||(Nc={}));function wz(){const t=Sd(!0),e=t.run(()=>Pe({}));let n=[],r=[];const s=Od({install(i){Yu(s),s._a=i,i.provide(pN,s),i.config.globalProperties.$pinia=s,r.forEach(o=>n.push(o)),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 s}const mN=()=>{};function _S(t,e,n,r=mN){t.push(e);const s=()=>{const i=t.indexOf(e);i>-1&&(t.splice(i,1),r())};return!n&&bu()&&za(s),s}function wa(t,...e){t.slice().forEach(n=>{n(...e)})}const bz=t=>t(),yS=Symbol(),Jm=Symbol();function M_(t,e){t instanceof Map&&e instanceof Map?e.forEach((n,r)=>t.set(r,n)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n],s=t[n];x_(s)&&x_(r)&&t.hasOwnProperty(n)&&!ft(r)&&!qr(r)?t[n]=M_(s,r):t[n]=r}return t}const Sz=Symbol();function Iz(t){return!x_(t)||!t.hasOwnProperty(Sz)}const{assign:wi}=Object;function Az(t){return!!(ft(t)&&t.effect)}function Rz(t,e,n,r){const{state:s,actions:i,getters:o}=e,a=n.state.value[t];let l;function u(){a||(n.state.value[t]=s?s():{});const f=RI(n.state.value[t]);return wi(f,i,Object.keys(o||{}).reduce((h,d)=>(h[d]=Od(de(()=>{Yu(n);const p=n._s.get(t);return o[d].call(p,p)})),h),{}))}return l=gN(t,u,e,n,r,!0),l}function gN(t,e,n={},r,s,i){let o;const a=wi({actions:{}},n),l={deep:!0};let u,f,h=[],d=[],p;const g=r.state.value[t];!i&&!g&&(r.state.value[t]={}),Pe({});let _;function v(w){let E;u=f=!1,typeof w=="function"?(w(r.state.value[t]),E={type:Nc.patchFunction,storeId:t,events:p}):(M_(r.state.value[t],w),E={type:Nc.patchObject,payload:w,storeId:t,events:p});const b=_=Symbol();Xn().then(()=>{_===b&&(u=!0)}),f=!0,wa(h,E,r.state.value[t])}const N=i?function(){const{state:E}=n,b=E?E():{};this.$patch(k=>{wi(k,b)})}:mN;function O(){o.stop(),h=[],d=[],r._s.delete(t)}const T=(w,E="")=>{if(yS in w)return w[Jm]=E,w;const b=function(){Yu(r);const k=Array.from(arguments),P=[],A=[];function te(ne){P.push(ne)}function he(ne){A.push(ne)}wa(d,{args:k,name:b[Jm],store:x,after:te,onError:he});let z;try{z=w.apply(this&&this.$id===t?this:x,k)}catch(ne){throw wa(A,ne),ne}
57return z instanceof Promise?z.then(ne=>(wa(P,ne),ne)).catch(ne=>(wa(A,ne),Promise.reject(ne))):(wa(P,z),z)};return b[yS]=!0,b[Jm]=E,b},C={_p:r,$id:t,$onAction:_S.bind(null,d),$patch:v,$reset:N,$subscribe(w,E={}){const b=_S(h,w,E.detached,()=>k()),k=o.run(()=>br(()=>r.state.value[t],P=>{(E.flush==="sync"?f:u)&&w({storeId:t,type:Nc.direct,events:p},P)},wi({},l,E)));return b},$dispose:O},x=nn(C);r._s.set(t,x);const R=(r._a&&r._a.runWithContext||bz)(()=>r._e.run(()=>(o=Sd()).run(()=>e({action:T}))));for(const w in R){const E=R[w];if(ft(E)&&!Az(E)||qr(E))i||(g&&Iz(E)&&(ft(E)?E.value=g[w]:M_(E,g[w])),r.state.value[t][w]=E);else if(typeof E=="function"){const b=T(E,w);R[w]=b,a.actions[w]=E}}return wi(x,R),wi(Re(x),R),Object.defineProperty(x,"$state",{get:()=>r.state.value[t],set:w=>{v(E=>{wi(E,w)})}}),r._p.forEach(w=>{wi(x,o.run(()=>w({store:x,app:r._a,pinia:r,options:a})))}),g&&i&&n.hydrate&&n.hydrate(x.$state,g),u=!0,f=!0,x}function _v(t,e,n){let r,s;const i=typeof e=="function";typeof t=="string"?(r=t,s=i?n:e):(s=t,r=t.id);function o(a,l){const u=El();return a=a||(u?Wt(pN,null):null),a&&Yu(a),a=dN,a._s.has(r)||(i?gN(r,e,s,a):Rz(r,s,a)),a._s.get(r)}return o.$id=r,o}function Cz(t){{t=Re(t);const e={};for(const n in t){const r=t[n];(ft(r)||qr(r))&&(e[n]=ty(t,n))}return e}}const yv=_v("user",()=>{const t=Pe({}),e=Pe(null),n=Pe({data:[],page:1,totalPages:0,total:0}),r=Pe([]),s=Pe(null),i=Pe(!1),o=Pe(""),a=Pe(0),l=Pe(!1),u=Pe(!0),f=Pe(!1),h=Pe(!0),d=Pe(""),p=Pe(!1),g=de(()=>t.value),_=de(()=>n.value),v=de(()=>r.value.slice().sort((K,S)=>new Date(S.createdAt).getTime()-new Date(K.createdAt).getTime())),N=de(()=>l.value),O=de(()=>f.value),T=de(()=>h.value),C=de(()=>o.value),x=de(()=>d.value),L=de(()=>a.value),R=de(()=>u.value),w=de(()=>p.value),E=K=>{if(i.value)return;const{flexaFirestore:S}=hu();s.value&&(s.value(),s.value=null);const D=q9(D9(S,"/licenses"),Qb("uid","==",K),Qb("deletedAt","==",null));s.value=z9(D,M=>{const H=[];M.forEach(F=>{H.push({id:F.id,...F.data()})}),r.value=H.slice().sort((F,W)=>new Date(W.createdAt).getTime()-new Date(F.createdAt).getTime())},async M=>{if(s.value?.(),s.value=null,i.value=!1,M.code!=="permission-denied"){lt().catch(console.error);return}const H=hu().auth?.currentUser;if(!H){await fe();return}try{await H.getIdToken(!0),E(K)}catch{await fe()}}),i.value=!0};{const K=fi();BH(K,async S=>{if(e.value=S,S&&S.emailVerified)try{const D=await S.getIdToken(!0);localStorage.setItem($r.UID,S.uid),await $fetch(`${Zt().public.apiBase}/api/v1/auth/session-cookie`,{method:"POST",credentials:"include",body:{idToken:D}}).catch(()=>{}),t.value.id||await lt()}catch{}finally{u.value=!1}else s.value&&(s.value(),s.value=null),i.value=!1,localStorage.removeItem($r.UID),ae(),u.value=!1})}async function b(K,S){const D=await Jt().post(Mr(`/license-free/${t.value.uid}`),{month:K,visualType:S,name:t.value.name});return await lt(),D}async function k(K,S,D,M,H,F,W){const Z=JSON.parse(localStorage.getItem("affiliateData")||"{}"),Q=Date.now();let X=W||"";Object.keys(Z).length>0&&Z.expireDate>Q&&(X=Z.affiliateCode);const G=await Jt().post(Mr(`/license/${t.value.uid}`),{month:K,licenseType:S,visualType:D,name:t.value.name,quantity:M,viewMode:H,affiliateCode:X,orderTotalUSD:F});return await lt(),G}async function P(K){return(await Jt().post("/api/checkout/design-subscription",{licenseType:K})).data}async function A(){return(await Jt().post("/api/billing-portal/session",{})).data}async function te(K,S){try{const D=await Jt().post(Mr("/check-session"),{sessionId:K,planId:S});return D.data&&D.data.licensesUpdated&&await lt(),D.data}catch(D){throw Cc(D)}}async function he(K){l.value=!0;try{const S={search:K.searchKeyword||void 0,page:K.page,limit:K.limit};if(K.createdDateRange&&K.createdDateRange.length===2){const[M,H]=K.createdDateRange,F=W=>new Date(W).toISOString().split("T")[0];S.createdDateFrom=F(M),S.createdDateTo=F(H)}K.sortBy&&K.sortOrder&&(S.sortBy=K.sortBy,S.sortOrder=K.sortOrder);const D=await Jt().get(Mr("/"),{params:S,paramsSerializer:M=>Object.entries(M).filter(([H,F])=>F!=null&&F!=="").map(([H,F])=>`${H}=${encodeURIComponent(F)}`).join("&")});return D.data?.data&&(n.value=D.data),D}catch(S){throw S}finally{l.value=!1}}async function z(K,S=!0){try{const D={_skipErrorToast:!0},M=await Jt().post(Mr("/"),K,D);return M.data&&S&&(t.value=M.data,r.value=M.data.props?.licenses||[]),M}catch(D){const M=Cc(D);if(M.code==="HTTP_409"){const H=Zt().public.appEnv,F=H==="staging"||H==="development";Je.warning(F?"This account already exists on production. Please sign in at https://flexaintel.com.":M.userMessage||"This account already exists in another environment. Please sign in there instead.",{autoClose:8e3}),await fe()}else fd(M);throw M}}async function ne(K,S,D,M,H){return await Jt().post(Mr("/init-relationship"),{affiliateCode:K,email:D,name:M,status:S,role:H}),null}function J(K){d.value=K}function Ue(K,S){t.value={...t.value,uid:K,...S?{email:S}:{}}}async function lt(){const K=localStorage.getItem($r.UID);if(!K){u.value=!1;return}l.value=!0;let S;try{const D={_skipErrorToast:!0};S=await Jt().get(Mr(`/${K}`),D),S.data&&(t.value=S.data,r.value=S.data.props?.licenses||[],p.value=r.value.some(M=>M.licenseType!=="free")||!!t.value.hasPurchased,i.value||E(K))}catch(D){const M=Cc(D);if(M.code==="HTTP_401")return await fe(),S;if(M.code==="HTTP_404"){const H=Zt().public.appEnv,W=H==="staging"||H==="development"?"
57No account found for this sign-in. Please sign up first. (If you registered on production, sign in at https://flexaintel.com.)":"No account found for this sign-in. Please sign up first, or check your credentials.";return Je.warning(W,{autoClose:8e3}),await fe(),S}fd(M)}finally{l.value=!1}return S}async function ct(){const K=await Jt().get(mS("/latest"));return K.data&&se(K.data.expiryDate).isAfter(se())?(h.value=!1,o.value=K.data.expiryDate,a.value=K.data.userCount):(h.value=!0,o.value="",a.value=0),K}async function Ye(){try{return await Jt().get(mS("/decrement")).then(()=>{a.value-=1})}catch(K){throw new Error(K.message||"Failed to update user remain")}}async function ot(K,S,D,M){try{const H=await Jt().put(Mr(`/${K}`),S);return await he({searchKeyword:D,page:M,limit:10}),H}catch(H){throw new Error(H.message||"Failed to update user")}}async function Fn(K={id:"",uid:""},S,D){try{const M=await Jt().delete(Mr(`/${K.id}`),{params:{uid:K.uid}});return await he({searchKeyword:S,page:D,limit:10}),M}catch(M){throw new Error(M.message||"Failed to delete user")}}async function Kt(K){const S=await Jt().put(Mr(`/${t.value.uid}`),K);return await lt(),S}async function _n(){return await Jt().delete(Mr(`/${t.value.uid}`))}async function $(K,S,D){try{const M=await Jt().post(oN("/verify-code"),{email:K,code:S,verifyToken:D});return await lz(M.data.customToken),{message:"Verified"}}catch(M){throw new Error(M.message||"Failed to verify code")}}function ae(){t.value={},r.value=[],l.value=!1,f.value=!1,i.value=!1,p.value=!1}function re(K){f.value=K}async function fe(){try{s.value&&(s.value(),s.value=null),i.value=!1,await $fetch(`${Zt().public.apiBase}/api/v1/auth/session-cookie`,{method:"DELETE",credentials:"include"}).catch(()=>{}),await uz(),localStorage.removeItem($r.UID),sessionStorage.removeItem("popupShown"),ae()}catch{}}async function Ne(){try{return(await Pt.get("https://api.ipify.org?format=json")).data?.ip??""}catch{return""}}return{dataUser:g,dataUsers:_,dataLicenses:v,isLoadingGetUser:N,isOpenPopupDiscount:O,isExpiredLicenseFree:T,dateExpiredLicenseFree:C,remainUserGetLicenseFree:L,dataLicenseMessage:x,isAuthLoading:R,authUser:e,isHasPurchased:w,setLicenseMessage:J,seedFromSession:Ue,getUser:lt,clearDataUser:ae,createUser:z,updateAMUserRelationship:ne,updateUser:Kt,deleteUser:_n,getUsers:he,createLicenseFree:b,createLicense:k,checkPaymentSession:te,createDesignSubscriptionCheckout:P,openBillingPortalSession:A,logout:fe,updateUserById:ot,deleteUserById:Fn,verifyCode:$,setOpenPopupDiscount:re,getDiscountLicenseFree:ct,updateDisCountUserRemain:Ye,getUserIp:Ne}}),Pz=async t=>{let e,n;const r=yv();r.isAuthLoading&&([e,n]=Uo(()=>new Promise(i=>{const o=br(()=>r.isAuthLoading,a=>{a||(o(),i())})})),await e,n());const s=!!r.authUser?.emailVerified;if(s&&!r.dataUser?.email)try{[e,n]=Uo(()=>r.getUser()),await e,n()}catch{return window.location.href=Pc,!1}if(s&&[Pc,$O].includes(t.path))return $d(WG);if(!s&&[YG,GG].includes(t.path))return window.location.href=Pc,!1},Oz=[E4,Pz],L_={};function Nz(t,e,n){const{pathname:r,search:s,hash:i}=e,o=t.indexOf("#");if(o>-1){const u=i.includes(t.slice(o))?t.slice(o).length:1;let f=i.slice(u);return f[0]!=="/"&&(f="/"+f),Cw(f,"")}const a=Cw(r,t),l=!n||uV(a,n)?a:n;return l+(l.includes("?")?"":s)+i}const kz=sn({name:"nuxt:router",enforce:"pre",async setup(t){let e,n,r=Zt().app.baseURL;const s=yi.history?.(r)??zU(r),i=yi.routes?([e,n]=Uo(()=>yi.routes(Pm)),e=await e,n(),e??Pm):Pm;let o;const a=mF({...yi,scrollBehavior:(v,N,O)=>{if(N===Tr){o=O;return}if(yi.scrollBehavior){if(a.options.scrollBehavior=yi.scrollBehavior,"scrollRestoration"in window.history){const T=a.beforeEach(()=>{T(),window.history.scrollRestoration="manual"})}return yi.scrollBehavior(v,Tr,o||O)}},history:s,routes:i});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),t.vueApp.use(a);const l=or(a.currentRoute.value);a.afterEach((v,N)=>{l.value=N}),Object.defineProperty(t.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});const u=Nz(r,window.location,t.payload.path),f=or(a.currentRoute.value),h=()=>{f.value=a.currentRoute.value};t.hook("page:finish",h),a.afterEach((v,N)=>{v.matched[v.matched.length-1]?.components?.default===N.matched[N.matched.length-1]?.components?.default&&h()});const d={};for(const v in f.value)Object.defineProperty(d,v,{get:()=>f.value[v],enumerable:!0});t._route=Fr(d),t._middleware||={global:[],named:{}};const p=Ru();
57a.afterEach(async(v,N,O)=>{delete t._processingMiddleware,!t.isHydrating&&p.value&&await t.runWithContext(Mg),O&&await t.callHook("page:loading:end")});try{[e,n]=Uo(()=>a.isReady()),await e,n()}catch(v){[e,n]=Uo(()=>t.runWithContext(()=>vo(v))),await e,n()}const g=u!==a.currentRoute.value.fullPath?a.resolve(u):a.currentRoute.value;h();const _=t.payload.state._layout;return a.beforeEach(async(v,N)=>{await t.callHook("page:loading:start"),v.meta=nn(v.meta),t.isHydrating&&_&&!_s(v.meta.layout)&&(v.meta.layout=_),t._processingMiddleware=!0;{const O=new Set([...Oz,...t._middleware.global]);for(const T of v.matched){const C=T.meta.middleware;if(C)for(const x of Ly(C))O.add(x)}for(const T of O){const C=typeof T=="string"?t._middleware.named[T]||await L_[T]?.().then(x=>x.default||x):T;if(!C)throw new Error(`Unknown route middleware: '${T}'.`);try{const x=await t.runWithContext(()=>C(v,N));if(!t.payload.serverRendered&&t.isHydrating&&(x===!1||x instanceof Error)){const L=x||Fo({statusCode:404,statusMessage:`Page Not Found: ${u}`});return await t.runWithContext(()=>vo(L)),!1}if(x===!0)continue;if(x===!1)return x;if(x)return yR(x)&&x.fatal&&await t.runWithContext(()=>vo(x)),x}catch(x){const L=Fo(x);return L.fatal&&await t.runWithContext(()=>vo(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(()=>vo(Fo({statusCode:404,fatal:!1,statusMessage:`Page not found: ${v.fullPath}`,data:{path:v.fullPath}})))}),t.hooks.hookOnce("app:created",async()=>{try{"name"in g&&(g.name=void 0),await a.replace({...g,force:!0}),a.options.scrollBehavior=yi.scrollBehavior}catch(v){await t.runWithContext(()=>vo(v))}}),{provide:{router:a}}}}),Dz=sn({name:"app-version-banner",enforce:"pre",setup(){}}),xz=sn({name:"nuxt:payload",setup(t){const e=new Set;Vn().beforeResolve(async(n,r)=>{if(n.path===r.path)return;const s=await jw(n.path);if(s){for(const i of e)delete t.static.data[i];for(const i in s.data)i in t.static.data||e.add(i),t.static.data[i]=s.data[i]}}),Gu(()=>{t.hooks.hook("link:prefetch",async n=>{const{hostname:r}=new URL(n,window.location.href);r===window.location.hostname&&await jw(n).catch(()=>{})})})}}),Mz=sn(()=>{const t=Vn();Gu(()=>{t.beforeResolve(async()=>{await new Promise(e=>{setTimeout(e,100),requestAnimationFrame(()=>{setTimeout(e,0)})})})})}),Lz=sn({name:"nuxt:chunk-reload",setup(t){const e=Vn(),n=Zt(),r=new Set;e.beforeEach(()=>{r.clear()}),t.hook("app:chunkError",({error:i})=>{r.add(i)});function s(i){const o=Bd(n.app.baseURL,i.fullPath);mz({path:o,persistState:!0})}t.hook("app:manifest:update",()=>{e.beforeResolve(s)}),e.onError((i,o)=>{r.has(i)&&s(o)})}});function Vz(){return Zt().public["nuxt-scripts"]}function Uz(t){return t.key||t.src||(typeof t.innerHTML=="string"?t.innerHTML:"")}function Fz(t,e){t=typeof t=="string"?{src:t}:t,e=Ay(e,Vz()?.defaultScriptOptions);const n=String(Uz(t)),r=ht();if(e.head=e.head||Oy(),!e.head)throw new Error("useScript() has been called without Nuxt context.");r.$scripts=r.$scripts||nn({}),r.$scripts?.[n],(e.trigger==="onNuxtReady"||e.trigger==="client")&&(e.warmupStrategy||(e.warmupStrategy="preload"),e.trigger==="onNuxtReady"&&(e.trigger=Gu));const s=Z2(t,e),i=s.remove;return s.remove=()=>(r.$scripts[n]=void 0,i()),r.$scripts[n]=s,s}const Op=Object.freeze(Object.assign(()=>{},{__mock__:!0})),Bz=Op,Hz=Op,$z=Op,ES=Op;function jz(t){return(Zt().public.scripts||{})[t]}function qz(t,e,n){const r=jz(t),s=Object.assign(n||{},typeof r=="object"?r:{}),i=e(s),o=Ay(s.scriptInput,i.scriptInput,{key:t}),a=Object.assign(s?.scriptOptions||{},i.scriptOptions||{}),l=a.beforeInit;return a.beforeInit=()=>{l?.(),i.clientInit?.()},Fz(o,a)}Bz({client:ES(Hz()),autoAds:ES($z())});function Wz(t){return qz("googleAdsense",e=>({scriptInput:{src:"https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"},schema:void 0,scriptOptions:{use(){return{adsbygoogle:window.adsbygoogle}},beforeInit(){e?.client&&Ny({meta:[{name:"google-adsense-account",content:e.client}],script:[{innerHTML:` 58 (adsbygoogle = window.adsbygoogle || []).push({ 59 google_ad_client: "${e.client}", 60 enable_page_level_ads: ${e.autoAds??!1} 61 }); 62 `,type:"text/javascript"}]})}}}),t)}const Gz=sn({name:"scripts:init",env:{islands:!1},parallel:!0,setup(){return{provide:{$scripts:{googleAdsense:Wz({client:"ca-pub-6381228221972553",autoAds:!1}
62)}}}}}),Yz=sn(t=>{const e=wz();return t.vueApp.use(e),Yu(e),t.payload&&t.payload.pinia&&(e.state.value=t.payload.pinia),{provide:{pinia:e}}}),zz=sn({name:"nuxt:global-components"}),Mi={default:hg(()=>Ae(()=>import("./BBttLbUZ.js"),__vite__mapDeps([129,8,9,36,10,3,4,5,99,11,91,44,116,124,43,130,18]),import.meta.url).then(t=>t.default||t)),login:hg(()=>Ae(()=>import("./JkNNbD5B.js"),__vite__mapDeps([131,18]),import.meta.url).then(t=>t.default||t))},Kz=sn({name:"nuxt:prefetch",setup(t){const e=Vn();t.hooks.hook("app:mounted",()=>{e.beforeEach(async n=>{const r=n?.meta?.layout;r&&typeof Mi[r]=="function"&&await Mi[r]()})}),t.hooks.hook("link:prefetch",n=>{if(oo(n))return;const r=e.resolve(n);if(!r)return;const s=r.meta.layout;let i=Ly(r.meta.middleware);i=i.filter(o=>typeof o=="string");for(const o of i)typeof L_[o]=="function"&&L_[o]();typeof s=="string"&&s in Mi&&pz(Mi[s])})}});function Qm(...t){window.dataLayer?.push(arguments)}function Xz({tags:t}){window.dataLayer=window.dataLayer||[];for(const e of t)for(const n of e.initCommands??[])Qm(...n);Qm("js",new Date);for(const e of t)Qm("config",e.id,e.config??{})}function Jz(t){const e=Re(t),n=e.tags.filter(Boolean).map(r=>typeof r=="string"?{id:r}:r);if(e.id){const{id:r,config:s,initCommands:i}=e;n.unshift({id:r,config:s,initCommands:i})}return n}const Qz=sn({parallel:!0,setup(){const t=Zt().public.gtag,e=Jz(t);if(!e.length||(Xz({tags:e}),t.initMode==="manual"))return;const n=t.loadingStrategy==="async"?"async":"defer";Ny({link:[{rel:"preload",as:"script",href:Vh(t.url,{id:e[0].id})}],script:[{src:Vh(t.url,{id:e[0].id}),[n]:!0,"data-gtag":""}]})}});function vS(){try{const t=localStorage.getItem($r.CART);return t?JSON.parse(t):[]}catch{return[]}}function Zm(t){try{localStorage.setItem($r.CART,JSON.stringify(t))}catch{}}const Zz=_v("cart",()=>{const t=Pe(vS()),e=de(()=>t.value.length),n=de(()=>t.value.reduce((l,u)=>l+u.price,0));function r(l){return t.value.some(u=>u.templateId===l)}function s(l){r(l.templateId)||(t.value=[...t.value,l],Zm(t.value))}function i(l){t.value=t.value.filter(u=>u.templateId!==l),Zm(t.value)}function o(){t.value=[],Zm(t.value)}function a(){t.value=vS()}return{items:t,itemCount:e,totalPrice:n,hasItem:r,addItem:s,removeItem:i,clear:o,hydrateFromStorage:a}}),eK=sn(()=>{Zz().hydrateFromStorage()});var tK="firebase",nK="11.8.1";hs(tK,nK,"app");const rK=sn(t=>{const e=Zt(),n=e.public.appEnv,r=e.public.firebase;if(!r.apiKey)throw new Error("Firebase config missing â set NUXT_PUBLIC_FIREBASE_* in .env");const s="[DEFAULT]",i=w3().find(d=>d.name===s)||IC(r,s),o=pH(i,{persistence:qH}),a=tz(i);let l="(default)";n==="staging"||n==="development"?l="staging-db":n==="production"&&(l="(default)");const u=l==="staging-db"?Jb(i,l):Jb(i),h={auth:o,storage:a,firestore:u,flexaFirestore:u};return iz(h),{provide:{firebase:h}}});var bZ=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function SZ(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Ev(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var n=function r(){var s=!1;try{s=this instanceof r}catch{}return s?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var s=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return t[r]}})}),n}var Lr={},eg={},Ps={},Os={},TS;function _N(){if(TS)return Os;TS=1;var t=Os&&Os.__awaiter||function(r,s,i,o){function a(l){return l instanceof i?l:new i(function(u){u(l)})}return new(i||(i=Promise))(function(l,u){function f(p){try{d(o.next(p))}catch(g){u(g)}}function h(p){try{d(o.throw(p))}catch(g){u(g)}}function d(p){p.done?l(p.value):a(p.value).then(f,h)}d((o=o.apply(r,s||[])).next())})},e=Os&&Os.__generator||function(r,s){var i={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},o,a,l,u;return u={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function f(d){return function(p){return h([d,p])}}function h(d){if(o)throw new TypeError("Generator is already executing.");for(;u&&(u=0,d[0]&&(i=0)),i;)try{if(o=1,a&&(l=d[0]&2?a.return:d[0]?a.throw||((l=a.return)&&l.call(a),0):a.next)&&!(l=l.call(a,d[1])).done)return l;
62switch(a=0,l&&(d=[d[0]&2,l.value]),d[0]){case 0:case 1:l=d;break;case 4:return i.label++,{value:d[1],done:!1};case 5:i.label++,a=d[1],d=[0];continue;case 7:d=i.ops.pop(),i.trys.pop();continue;default:if(l=i.trys,!(l=l.length>0&&l[l.length-1])&&(d[0]===6||d[0]===2)){i=0;continue}if(d[0]===3&&(!l||d[1]>l[0]&&d[1]<l[3])){i.label=d[1];break}if(d[0]===6&&i.label<l[1]){i.label=l[1],l=d;break}if(l&&i.label<l[2]){i.label=l[2],i.ops.push(d);break}l[2]&&i.ops.pop(),i.trys.pop();continue}d=s.call(r,i)}catch(p){d=[6,p],a=0}finally{o=l=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}};Object.defineProperty(Os,"__esModule",{value:!0}),Os.ReCaptchaInstance=void 0;var n=(function(){function r(s,i,o){this.siteKey=s,this.recaptchaID=i,this.recaptcha=o,this.styleContainer=null}return r.prototype.execute=function(s){return t(this,void 0,void 0,function(){var i;return e(this,function(o){switch(o.label){case 0:return this.recaptcha.enterprise?[4,this.recaptcha.enterprise.execute(this.recaptchaID,{action:s})]:[3,2];case 1:return i=o.sent(),[3,4];case 2:return[4,this.recaptcha.execute(this.recaptchaID,{action:s})];case 3:i=o.sent(),o.label=4;case 4:return[2,i]}})})},r.prototype.getSiteKey=function(){return this.siteKey},r.prototype.hideBadge=function(){this.styleContainer===null&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},r.prototype.showBadge=function(){this.styleContainer!==null&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},r})();return Os.ReCaptchaInstance=n,Os}var wS;function sK(){if(wS)return Ps;wS=1;var t=Ps&&Ps.__assign||function(){return t=Object.assign||function(s){for(var i,o=1,a=arguments.length;o<a;o++){i=arguments[o];for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(s[l]=i[l])}return s},t.apply(this,arguments)};Object.defineProperty(Ps,"__esModule",{value:!0}),Ps.getInstance=Ps.load=void 0;var e=_N(),n;(function(s){s[s.NOT_LOADED=0]="NOT_LOADED",s[s.LOADING=1]="LOADING",s[s.LOADED=2]="LOADED"})(n||(n={}));var r=(function(){function s(){}return s.load=function(i,o){if(o===void 0&&(o={}),typeof document>"u")return Promise.reject(new Error("This is a library for the browser!"));if(s.getLoadingState()===n.LOADED)return s.instance.getSiteKey()===i?Promise.resolve(s.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(s.getLoadingState()===n.LOADING)return i!==s.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(l,u){s.successfulLoadingConsumers.push(function(f){return l(f)}),s.errorLoadingRunnable.push(function(f){return u(f)})});s.instanceSiteKey=i,s.setLoadingState(n.LOADING);var a=new s;return new Promise(function(l,u){a.loadScript(i,o.useRecaptchaNet||!1,o.useEnterprise||!1,o.renderParameters?o.renderParameters:{},o.customUrl).then(function(){s.setLoadingState(n.LOADED);var f=a.doExplicitRender(grecaptcha,i,o.explicitRenderParameters?o.explicitRenderParameters:{},o.useEnterprise||!1),h=new e.ReCaptchaInstance(i,f,grecaptcha);s.successfulLoadingConsumers.forEach(function(d){return d(h)}),s.successfulLoadingConsumers=[],o.autoHideBadge&&h.hideBadge(),s.instance=h,l(h)}).catch(function(f){s.errorLoadingRunnable.forEach(function(h){return h(f)}),s.errorLoadingRunnable=[],u(f)})})},s.getInstance=function(){return s.instance}
62,s.setLoadingState=function(i){s.loadingState=i},s.getLoadingState=function(){return s.loadingState===null?n.NOT_LOADED:s.loadingState},s.prototype.loadScript=function(i,o,a,l,u){var f=this;o===void 0&&(o=!1),a===void 0&&(a=!1),l===void 0&&(l={}),u===void 0&&(u="");var h=document.createElement("script");h.setAttribute("recaptcha-v3-script",""),h.setAttribute("async",""),h.setAttribute("defer","");var d="https://www.google.com/recaptcha/api.js";o?a?d="https://recaptcha.net/recaptcha/enterprise.js":d="https://recaptcha.net/recaptcha/api.js":a&&(d="https://www.google.com/recaptcha/enterprise.js"),u&&(d=u),l.render&&(l.render=void 0);var p=this.buildQueryString(l);return h.src=d+"?render=explicit"+p,new Promise(function(g,_){h.addEventListener("load",f.waitForScriptToLoad(function(){g(h)},a),!1),h.onerror=function(v){s.setLoadingState(n.NOT_LOADED),_(v)},document.head.appendChild(h)})},s.prototype.buildQueryString=function(i){var o=Object.keys(i);return o.length<1?"":"&"+Object.keys(i).filter(function(a){return!!i[a]}).map(function(a){return a+"="+i[a]}).join("&")},s.prototype.waitForScriptToLoad=function(i,o){var a=this;return function(){window.grecaptcha===void 0?setTimeout(function(){a.waitForScriptToLoad(i,o)},s.SCRIPT_LOAD_DELAY):o?window.grecaptcha.enterprise.ready(function(){i()}):window.grecaptcha.ready(function(){i()})}},s.prototype.doExplicitRender=function(i,o,a,l){var u=t({sitekey:o},a);return a.container?l?i.enterprise.render(a.container,u):i.render(a.container,u):l?i.enterprise.render(u):i.render(u)},s.loadingState=null,s.instance=null,s.instanceSiteKey=null,s.successfulLoadingConsumers=[],s.errorLoadingRunnable=[],s.SCRIPT_LOAD_DELAY=25,s})();return Ps.load=r.load,Ps.getInstance=r.getInstance,Ps}var bS;function iK(){return bS||(bS=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ReCaptchaInstance=t.getInstance=t.load=void 0;var e=sK();Object.defineProperty(t,"load",{enumerable:!0,get:function(){return e.load}}),Object.defineProperty(t,"getInstance",{enumerable:!0,get:function(){return e.getInstance}});var n=_N();Object.defineProperty(t,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})})(eg)),eg}var tg={exports:{}},ng={};const hl=Symbol(""),Ya=Symbol(""),Np=Symbol(""),du=Symbol(""),vv=Symbol(""),to=Symbol(""),Tv=Symbol(""),wv=Symbol(""),kp=Symbol(""),Dp=Symbol(""),xl=Symbol(""),xp=Symbol(""),bv=Symbol(""),Mp=Symbol(""),Lp=Symbol(""),Vp=Symbol(""),Up=Symbol(""),Fp=Symbol(""),Bp=Symbol(""),Sv=Symbol(""),Iv=Symbol(""),zu=Symbol(""),pu=Symbol(""),Hp=Symbol(""),$p=Symbol(""),dl=Symbol(""),Ml=Symbol(""),jp=Symbol(""),hd=Symbol(""),yN=Symbol(""),dd=Symbol(""),mu=Symbol(""),EN=Symbol(""),vN=Symbol(""),qp=Symbol(""),TN=Symbol(""),wN=Symbol(""),Wp=Symbol(""),Av=Symbol(""),ta={[hl]:"Fragment",[Ya]:"Teleport",[Np]:"Suspense",[du]:"KeepAlive",[vv]:"BaseTransition",[to]:"openBlock",[Tv]:"createBlock",[wv]:"createElementBlock",[kp]:"createVNode",[Dp]:"createElementVNode",[xl]:"createCommentVNode",[xp]:"createTextVNode",[bv]:"createStaticVNode",[Mp]:"resolveComponent",[Lp]:"resolveDynamicComponent",[Vp]:"resolveDirective",[Up]:"resolveFilter",[Fp]:"withDirectives",[Bp]:"renderList",[Sv]:"renderSlot",[Iv]:"createSlots",[zu]:"toDisplayString",[pu]:"mergeProps",[Hp]:"normalizeClass",[$p]:"normalizeStyle",[dl]:"normalizeProps",[Ml]:"guardReactiveProps",[jp]:"toHandlers",[hd]:"camelize",[yN]:"capitalize",[dd]:"toHandlerKey",[mu]:"setBlockTracking",[EN]:"pushScopeId",[vN]:"popScopeId",[qp]:"withCtx",[TN]:"unref",[wN]:"isRef",[Wp]:"withMemo",[Av]:"isMemoSame"};function bN(t){Object.getOwnPropertySymbols(t).forEach(e=>{ta[e]=t[e]})}const oK={HTML:0,0:"HTML",SVG:1,1:"SVG",MATH_ML:2,2:"MATH_ML"},aK={ROOT:0,0:"ROOT",ELEMENT:1,1:"ELEMENT",TEXT:2,2:"TEXT",COMMENT:3,3:"COMMENT",SIMPLE_EXPRESSION:4,4:"SIMPLE_EXPRESSION",INTERPOLATION:5,5:"INTERPOLATION",ATTRIBUTE:6,6:"ATTRIBUTE",DIRECTIVE:7,7:"DIRECTIVE",COMPOUND_EXPRESSION:8,8:"COMPOUND_EXPRESSION",IF:9,9:"IF",IF_BRANCH:10,10:"IF_BRANCH",FOR:11,11:"FOR",TEXT_CALL:12,12:"TEXT_CALL",VNODE_CALL:13,13:"VNODE_CALL",JS_CALL_EXPRESSION:14,14:"JS_CALL_EXPRESSION",JS_OBJECT_EXPRESSION:15,15:"JS_OBJECT_EXPRESSION",JS_PROPERTY:16,16:"JS_PROPERTY",JS_ARRAY_EXPRESSION:17,17:"JS_ARRAY_EXPRESSION",JS_FUNCTION_EXPRESSION:18,18:"JS_FUNCTION_EXPRESSION",JS_CONDITIONAL_EXPRESSION:19,19:"JS_CONDITIONAL_EXPRESSION",JS_CACHE_EXPRESSION:20,20:"JS_CACHE_EXPRESSION",JS_BLOCK_STATEMENT:21,21:"JS_BLOCK_STATEMENT",JS_TEMPLATE_LITERAL:22,22:"JS_TEMPLATE_LITERAL",JS_IF_STATEMENT:23,23:"JS_IF_STATEMENT",JS_ASSIGNMENT_EXPRESSION:24,24:"JS_ASSIGNMENT_EXPRESSION",JS_SEQUENCE_EXPRESSION:25,25:"JS_SEQUENCE_EXPRESSION",JS_RETURN_STATEMENT:26,26:"JS_RETURN_STATEMENT"},lK={ELEMENT:0,0:"ELEMENT",COMPONENT:1,1:"COMPONENT",SLOT:2,2:"SLOT",TEMPLATE:3,3:"TEMPLATE"},cK={NOT_CONSTANT:0,0:"NOT_CONSTANT",CAN_SKIP_PATCH:1,1:"CAN_SKIP_PATCH",CAN_CACHE:2,2:"CAN_CACHE",CAN_STRINGIFY:3,3:"CAN_STRINGIFY"},zt={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function SN(t,e=""){return{type:0,source:e,children:t,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:zt}}function pl(t,e,n,r,s,i,o,a=!1,l=!1,u=!1,f=zt){return t&&(a?(t.helper(to),t.helper(sa(t.inSSR,u))):t.helper(ra(t.inSSR,u)),o&&t.helper(Fp)),{type:13,tag:e,props:n,children:r,patchFlag:s,dynamicProps:i,directives:o,isBlock:a,disableTracking:l,isComponent:u,loc:f}}function Wi(t,e=zt){return{type:17,loc:e,elements:t}}function mr(t,e=zt){return{type:15,loc:e,properties:t}}function Ut(t,e){return{type:16,loc:zt,key:Ce(t)?ke(t,!0):t,value:e}}function ke(t,e=!1,n=zt,r=0){return{type:4,loc:n,content:t,isStatic:e,constType:e?3:r}}function uK(t,e){return{type:5,loc:e,content:Ce(t)?ke(t,!1,e):t}}function Ar(t,e=zt){return{type:8,loc:e,children:t}}function Bt(t,e=[],n=zt){return{type:14,loc:n,callee:t,arguments:e}}function na(t,e=void 0,n=!1,r=!1,s=zt){return{type:18,params:t,returns:e,newline:n,isSlot:r,loc:s}}function pd(t,e,n,r=!0){return{type:19,test:t,consequent:e,alternate:n,newline:r,loc:zt}}function IN(t,e,n=!1,r=!1){return{type:20,index:t,value:e,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:zt}}
vendor: 13,527 bytes, line 62
62function AN(t){return{type:21,body:t,loc:zt}}function fK(t){return{type:22,elements:t,loc:zt}}function hK(t,e,n){return{type:23,test:t,consequent:e,alternate:n,loc:zt}}function dK(t,e){return{type:24,left:t,right:e,loc:zt}}function pK(t){return{type:25,expressions:t,loc:zt}}function mK(t){return{type:26,returns:t,loc:zt}}function ra(t,e){return t||e?kp:Dp}function sa(t,e){return t||e?Tv:wv}function Gp(t,{helper:e,removeHelper:n,inSSR:r}){t.isBlock||(t.isBlock=!0,n(ra(r,t.isComponent)),e(to),e(sa(r,t.isComponent)))}const SS=new Uint8Array([123,123]),IS=new Uint8Array([125,125]);function AS(t){return t>=97&&t<=122||t>=65&&t<=90}function ur(t){return t===32||t===10||t===9||t===12||t===13}function vi(t){return t===47||t===62||ur(t)}function md(t){const e=new Uint8Array(t.length);for(let n=0;n<t.length;n++)e[n]=t.charCodeAt(n);return e}const wn={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class gK{constructor(e,n){this.stack=e,this.cbs=n,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=SS,this.delimiterClose=IS,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=SS,this.delimiterClose=IS}getPos(e){let n=1,r=e+1;for(let s=this.newlines.length-1;s>=0;s--){const i=this.newlines[s];if(e>i){n=s+2,r=e-i;break}}return{column:r,line:n,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){e===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&e===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const n=this.index+1-this.delimiterOpen.length;n>this.sectionStart&&this.cbs.ontext(this.sectionStart,n),this.state=3,this.sectionStart=n}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?vi(e):(e|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(e===62||ur(e)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const r=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=r}this.sectionStart=n+2,this.stateInClosingTagName(e),this.inRCDATA=!1;return}this.sequenceIndex=0}(e|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===wn.TitleEnd||this.currentSequence===wn.TextareaEnd&&!this.inSFCRoot?!this.inVPre&&e===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(e===60)}stateCDATASequence(e){e===wn.Cdata[this.sequenceIndex]?++this.sequenceIndex===wn.Cdata.length&&(this.state=28,this.currentSequence=wn.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);if(n===10&&this.newlines.push(this.index),n===e)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===wn.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(e,n){this.enterRCDATA(e,n),this.state=31}enterRCDATA(e,n){this.inRCDATA=!0,this.currentSequence=e,this.sequenceIndex=n}stateBeforeTagName(e){e===33?(this.state=22,this.sectionStart=this.index+1):e===63?(this.state=24,this.sectionStart=this.index+1):AS(e)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:e===116?this.state=30:this.state=e===115?29:6):e===47?this.state=8:(this.state=1,this.stateText(e))}stateInTagName(e){vi(e)&&this.handleTagName(e)}stateInSFCRootTagName(e){if(vi(e)){const n=this.buffer.slice(this.sectionStart,this.index);n!=="template"&&this.enterRCDATA(md("</"+n),0),this.handleTagName(e)}}handleTagName(e){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)}stateBeforeClosingTagName(e){ur(e)||(e===62?(this.state=1,this.sectionStart=this.index+1):(this.state=AS(e)?9:27,this.sectionStart=this.index))}stateInClosingTagName(e){(e===62||ur(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){e===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(e){e===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):e===47?this.state=7:e===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):ur(e)||this.handleAttrStart(e)}handleAttrStart(e){e===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):e===46||e===58||e===64||e===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(e){e===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):ur(e)||(this.state=11,this.stateBeforeAttrName(e))}stateInAttrName(e){(e===61||vi(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(e))}stateInDirName(e){e===61||vi(e)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(e)):e===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):e===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(e){e===61||vi(e)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(e)):e===91?this.state=15:e===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(e){e===93?this.state=14:(e===61||vi(e))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(e))}stateInDirModifier(e){e===61||vi(e)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(e)):e===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(e){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(e)}stateAfterAttrName(e){e===61?this.state=18:e===47||e===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)):ur(e)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(e))}stateBeforeAttrValue(e){e===34?(this.state=19,this.sectionStart=this.index+1):e===39?(this.state=20,this.sectionStart=this.index+1):ur(e)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(e))}handleInAttrValue(e,n){(e===n||this.fastForwardTo(n))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(n===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(e){this.handleInAttrValue(e,34)}stateInAttrValueSingleQuotes(e){this.handleInAttrValue(e,39)}stateInAttrValueNoQuotes(e){ur(e)||e===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(e)):(e===39||e===60||e===61||e===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(e){e===91?(this.state=26,this.sequenceIndex=0):this.state=e===45?25:23}stateInDeclaration(e){(e===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(e===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(e){e===45?(this.state=28,this.currentSequence=wn.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(e){(e===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){e===wn.ScriptEnd[3]?this.startSpecial(wn.ScriptEnd,4):e===wn.StyleEnd[3]?this.startSpecial(wn.StyleEnd,4):(this.state=6,this.stateInTagName(e))}stateBeforeSpecialT(e){e===wn.TitleEnd[3]?this.startSpecial(wn.TitleEnd,4):e===wn.TextareaEnd[3]?this.startSpecial(wn.TextareaEnd,4):(this.state=6,this.stateInTagName(e))}startEntity(){}stateInEntity(){}parse(e){for(this.buffer=e;this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);switch(n===10&&this.state!==33&&this.newlines.push(this.index),this.state){case 1:{this.stateText(n);break}case 2:{this.stateInterpolationOpen(n);break}case 3:{this.stateInterpolation(n);break}case 4:{this.stateInterpolationClose(n);break}case 31:{this.stateSpecialStartSequence(n);break}case 32:{this.stateInRCDATA(n);break}case 26:{this.stateCDATASequence(n);break}case 19:{this.stateInAttrValueDoubleQuotes(n);break}case 12:{this.stateInAttrName(n);break}case 13:{this.stateInDirName(n);break}case 14:{this.stateInDirArg(n);break}case 15:{this.stateInDynamicDirArg(n);break}case 16:{this.stateInDirModifier(n);break}case 28:{this.stateInCommentLike(n);break}case 27:{this.stateInSpecialComment(n);break}case 11:{this.stateBeforeAttrName(n);break}case 6:{this.stateInTagName(n);break}case 34:{this.stateInSFCRootTagName(n);break}case 9:{this.stateInClosingTagName(n);break}case 5:{this.stateBeforeTagName(n);break}case 17:{this.stateAfterAttrName(n);break}case 20:{this.stateInAttrValueSingleQuotes(n);break}case 18:{this.stateBeforeAttrValue(n);break}case 8:{this.stateBeforeClosingTagName(n);break}case 10:{this.stateAfterClosingTagName(n);break}case 29:{this.stateBeforeSpecialS(n);break}case 30:{this.stateBeforeSpecialT(n);break}case 21:{this.stateInAttrValueNoQuotes(n);break}case 7:{this.stateInSelfClosingTag(n);break}case 23:{this.stateInDeclaration(n);break}case 22:{this.stateBeforeDeclaration(n);break}case 25:{this.stateBeforeComment(n);break}case 24:{this.stateInProcessingInstruction(n);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const e=this.buffer.length;this.sectionStart>=e||(this.state===28?this.currentSequence===wn.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,n){}}const _K={COMPILER_IS_ON_ELEMENT:"COMPILER_IS_ON_ELEMENT",COMPILER_V_BIND_SYNC:"COMPILER_V_BIND_SYNC",COMPILER_V_BIND_OBJECT_ORDER:"COMPILER_V_BIND_OBJECT_ORDER",COMPILER_V_ON_NATIVE:"COMPILER_V_ON_NATIVE",COMPILER_V_IF_V_FOR_PRECEDENCE:"COMPILER_V_IF_V_FOR_PRECEDENCE",COMPILER_NATIVE_TEMPLATE:"COMPILER_NATIVE_TEMPLATE",COMPILER_INLINE_TEMPLATE:"COMPILER_INLINE_TEMPLATE",COMPILER_FILTERS:"COMPILER_FILTERS"},yK={COMPILER_IS_ON_ELEMENT:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},COMPILER_V_BIND_SYNC:{message:t=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${t}.sync\` should be changed to \`v-model:${t
vendor: 1,681 bytes, line 62
62}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},COMPILER_V_BIND_OBJECT_ORDER:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},COMPILER_V_ON_NATIVE:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},COMPILER_NATIVE_TEMPLATE:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},COMPILER_INLINE_TEMPLATE:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},COMPILER_FILTERS:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function
vendor: 48,951 bytes, lines 62-70
62V_(t,{compatConfig:e}){const n=e&&e[t];return t==="MODE"?n||3:n}function qo(t,e){const n=V_("MODE",e),r=V_(t,e);return n===3?r===!0:r!==!1}function ml(t,e,n,...r){return qo(t,e)}function EK(t,e,n,...r){if(V_(t,e)==="suppress-warning")return;const{message:i,link:o}=yK[t],a=`(deprecation ${t}) ${typeof i=="function"?i(...r):i}${o?` 63 Details: ${o}`:""}`,l=new SyntaxError(a);l.code=t,n&&(l.loc=n),e.onWarn(l)}function Rv(t){throw t}function RN(t){}function yt(t,e,n,r){const s=`https://vuejs.org/error-reference/#compiler-${t}`,i=new SyntaxError(String(s));return i.code=t,i.loc=e,i}const vK={ABRUPT_CLOSING_OF_EMPTY_COMMENT:0,0:"ABRUPT_CLOSING_OF_EMPTY_COMMENT",CDATA_IN_HTML_CONTENT:1,1:"CDATA_IN_HTML_CONTENT",DUPLICATE_ATTRIBUTE:2,2:"DUPLICATE_ATTRIBUTE",END_TAG_WITH_ATTRIBUTES:3,3:"END_TAG_WITH_ATTRIBUTES",END_TAG_WITH_TRAILING_SOLIDUS:4,4:"END_TAG_WITH_TRAILING_SOLIDUS",EOF_BEFORE_TAG_NAME:5,5:"EOF_BEFORE_TAG_NAME",EOF_IN_CDATA:6,6:"EOF_IN_CDATA",EOF_IN_COMMENT:7,7:"EOF_IN_COMMENT",EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT:8,8:"EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT",EOF_IN_TAG:9,9:"EOF_IN_TAG",INCORRECTLY_CLOSED_COMMENT:10,10:"INCORRECTLY_CLOSED_COMMENT",INCORRECTLY_OPENED_COMMENT:11,11:"INCORRECTLY_OPENED_COMMENT",INVALID_FIRST_CHARACTER_OF_TAG_NAME:12,12:"INVALID_FIRST_CHARACTER_OF_TAG_NAME",MISSING_ATTRIBUTE_VALUE:13,13:"MISSING_ATTRIBUTE_VALUE",MISSING_END_TAG_NAME:14,14:"MISSING_END_TAG_NAME",MISSING_WHITESPACE_BETWEEN_ATTRIBUTES:15,15:"MISSING_WHITESPACE_BETWEEN_ATTRIBUTES",NESTED_COMMENT:16,16:"NESTED_COMMENT",UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME:17,17:"UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME",UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE:18,18:"UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE",UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME:19,19:"UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME",UNEXPECTED_NULL_CHARACTER:20,20:"UNEXPECTED_NULL_CHARACTER",UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME:21,21:"UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME",UNEXPECTED_SOLIDUS_IN_TAG:22,22:"UNEXPECTED_SOLIDUS_IN_TAG",X_INVALID_END_TAG:23,23:"X_INVALID_END_TAG",X_MISSING_END_TAG:24,24:"X_MISSING_END_TAG",X_MISSING_INTERPOLATION_END:25,25:"X_MISSING_INTERPOLATION_END",X_MISSING_DIRECTIVE_NAME:26,26:"X_MISSING_DIRECTIVE_NAME",X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END:27,27:"X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END",X_V_IF_NO_EXPRESSION:28,28:"X_V_IF_NO_EXPRESSION",X_V_IF_SAME_KEY:29,29:"X_V_IF_SAME_KEY",X_V_ELSE_NO_ADJACENT_IF:30,30:"X_V_ELSE_NO_ADJACENT_IF",X_V_FOR_NO_EXPRESSION:31,31:"X_V_FOR_NO_EXPRESSION",X_V_FOR_MALFORMED_EXPRESSION:32,32:"X_V_FOR_MALFORMED_EXPRESSION",X_V_FOR_TEMPLATE_KEY_PLACEMENT:33,33:"X_V_FOR_TEMPLATE_KEY_PLACEMENT",X_V_BIND_NO_EXPRESSION:34,34:"X_V_BIND_NO_EXPRESSION",X_V_ON_NO_EXPRESSION:35,35:"X_V_ON_NO_EXPRESSION",X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET:36,36:"X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET",X_V_SLOT_MIXED_SLOT_USAGE:37,37:"X_V_SLOT_MIXED_SLOT_USAGE",X_V_SLOT_DUPLICATE_SLOT_NAMES:38,38:"X_V_SLOT_DUPLICATE_SLOT_NAMES",X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN:39,39:"X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN",X_V_SLOT_MISPLACED:40,40:"X_V_SLOT_MISPLACED",X_V_MODEL_NO_EXPRESSION:41,41:"X_V_MODEL_NO_EXPRESSION",X_V_MODEL_MALFORMED_EXPRESSION:42,42:"X_V_MODEL_MALFORMED_EXPRESSION",X_V_MODEL_ON_SCOPE_VARIABLE:43,43:"X_V_MODEL_ON_SCOPE_VARIABLE",X_V_MODEL_ON_PROPS:44,44:"X_V_MODEL_ON_PROPS",X_INVALID_EXPRESSION:45,45:"X_INVALID_EXPRESSION",X_KEEP_ALIVE_INVALID_CHILDREN:46,46:"X_KEEP_ALIVE_INVALID_CHILDREN",X_PREFIX_ID_NOT_SUPPORTED:47,47:"X_PREFIX_ID_NOT_SUPPORTED",X_MODULE_MODE_NOT_SUPPORTED:48,48:"X_MODULE_MODE_NOT_SUPPORTED",X_CACHE_HANDLER_NOT_SUPPORTED:49,49:"X_CACHE_HANDLER_NOT_SUPPORTED",X_SCOPE_ID_NOT_SUPPORTED:50,50:"X_SCOPE_ID_NOT_SUPPORTED",X_VNODE_HOOKS:51,51:"X_VNODE_HOOKS",X_V_BIND_INVALID_SAME_NAME_ARGUMENT:52,52:"X_V_BIND_INVALID_SAME_NAME_ARGUMENT",__EXTEND_POINT__:53,53:"__EXTEND_POINT__"},TK={0:"Illegal comment.",1:"CDATA section is allowed only in XML context.",2:"Duplicate attribute.",3:"End tag cannot have attributes.",4:"Illegal '/' in tags.",5:"Unexpected EOF in tag.",6:"Unexpected EOF in CDATA section.",7:"Unexpected EOF in comment.",8:"Unexpected EOF in script.",9:"Unexpected EOF in tag.",10:"Incorrectly closed comment.",11:"Incorrectly opened comment.",12:"Illegal tag name. Use '<' to print '<'.",13:"Attribute value was expected.",14:"End tag name was expected.",15:"Whitespace was expected.",16:"Unexpected '<!--' in comment.",17:`Attribute name cannot contain U+0022 ("), U+0027 ('), and U+003C (<).`,18:"Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).",19:"Attribute name cannot start with '='.",21:"'<?' is allowed only in XML context.",20:"Unexpected null character.",22:"Illegal '/' in tags.",23:"Invalid end tag.",24:"Element is missing end tag.",25:"Interpolation end sign was not found.",27:"End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.",26:"Legal directive name was expected.",28:"v-if/v-else-if is missing expression.",29:"v-if/else branches must use unique keys.",30:"v-else/v-else-if has no adjacent v-if or v-else-if.",31:"v-for is missing expression.",32:"v-for has invalid expression.",33:"<template v-for> key should be placed on the <template> tag.",34:"v-bind is missing expression.",52:"v-bind with same-name shorthand only allows static argument.",35:"v-on is missing expression.",36:"Unexpected custom directive on <slot> outlet.",37:"Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.",38:"Duplicate slot names found. ",39:"Extraneous children found when component already has explicitly named default slot. These children will be ignored.",40:"v-slot can only be used on components or <template> tags.",41:"v-model is missing expression.",42:"v-model value must be a valid JavaScript member expression.",43:"v-model cannot be used on v-for or v-slot scope variables because they are not writable.",44:`v-model cannot be used on a prop, because local prop bindings are not writable. 64Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,45:"Error parsing JavaScript expression: ",46:"<KeepAlive> expects exactly one child component.",51:"@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.",47:'"prefixIdentifiers" option is not supported in this build of compiler.',48:"ES module mode is not supported in this build of compiler.",49:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',50:'"scopeId" option is only supported in module mode.',53:""};function wK(t,e,n=!1,r=[],s=Object.create(null)){}function bK(t,e,n){return!1}function SK(t,e){if(t&&(t.type==="ObjectProperty"||t.type==="ArrayPattern")){let n=e.length;for(;n--;){const r=e[n];if(r.type==="AssignmentExpression")return!0;if(r.type!=="ObjectProperty"&&!r.type.endsWith("Pattern"))break}}return!1}function IK(t){let e=t.length;for(;e--;){const n=t[e];if(n.type==="NewExpression")return!0;if(n.type!=="MemberExpression")break}return!1}function AK(t,e){for(const n of t.params)for(const r of cs(n))e(r)}function CN(t,e){const n=t.type==="SwitchCase"?t.consequent:t.body;for(const r of n)if(r.type==="VariableDeclaration"){if(r.declare)continue;for(const s of r.declarations)for(const i of cs(s.id))e(i)}else if(r.type==="FunctionDeclaration"||r.type==="ClassDeclaration"){if(r.declare||!r.id)continue;e(r.id)}else RK(r)?CK(r,!0,e):r.type==="SwitchStatement"&&PK(r,!0,e)}function RK(t){return t.type==="ForOfStatement"||t.type==="ForInStatement"||t.type==="ForStatement"}function CK(t,e,n){const r=t.type==="ForStatement"?t.init:t.left;if(r&&r.type==="VariableDeclaration"&&(r.kind==="var"?e:!e))for(const s of r.declarations)for(const i of cs(s.id))n(i)}function PK(t,e,n){for(const r of t.cases){for(const s of r.consequent)if(s.type==="VariableDeclaration"&&(s.kind==="var"?e:!e))for(const i of s.declarations)for(const o of cs(i.id))n(o);CN(r,n)}}function cs(t,e=[]){switch(t.type){case"Identifier":e.push(t);break;case"MemberExpression":let n=t;for(;n.type==="MemberExpression";)n=n.object;e.push(n);break;case"ObjectPattern":for(const r of t.properties)r.type==="RestElement"?cs(r.argument,e):cs(r.value,e);break;case"ArrayPattern":t.elements.forEach(r=>{r&&cs(r,e)});break;case"RestElement":cs(t.argument,e);break;case"AssignmentPattern":cs(t.left,e);break}return e}const OK=t=>/Function(?:Expression|Declaration)$|Method$/.test(t.type),PN=t=>t&&(t.type==="ObjectProperty"||t.type==="ObjectMethod")&&!t.computed,NK=(t,e)=>PN(e)&&e.key===t,ON=["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"];function NN(t){return ON.includes(t.type)?NN(t.expression):t}const zn=t=>t.type===4&&t.isStatic;function Cv(t){switch(t){case"Teleport":case"teleport":return Ya;case"Suspense":case"suspense":return Np;case"KeepAlive":case"keep-alive":return du;case"BaseTransition":case"base-transition":return vv}}const kK=/^$|^\d|[^\$\w\xA0-\uFFFF]/,Ku=t=>!kK.test(t),Pv=/[A-Za-z_$\xA0-\uFFFF]/,DK=/[\.\?\w$\xA0-\uFFFF]/,xK=/\s+[.[]\s*|\s*[.[]\s+/g,kN=t=>t.type===4?t.content:t.loc.source,DN=t=>{const e=kN(t).trim().replace(xK,a=>a.trim());let n=0,r=[],s=0,i=0,o=null;for(let a=0;a<e.length;a++){const l=e.charAt(a);switch(n){case 0:if(l==="[")r.push(n),n=1,s++;else if(l==="(")r.push(n),n=2,i++;else if(!(a===0?Pv:DK).test(l))return!1;break;case 1:l==="'"||l==='"'||l==="`"?(r.push(n),n=3,o=l):l==="["?s++:l==="]"&&(--s||(n=r.pop()));break;case 2:if(l==="'"||l==='"'||l==="`")r.push(n),n=3,o=l;else if(l==="(")i++;else if(l===")"){if(a===e.length-1)return!1;--i||(n=r.pop())}break;case 3:l===o&&(n=r.pop(),o=null);break}}return!s&&!i},MK=en,Ov=DN,LK=/^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,xN=t=>LK.test(kN(t)),VK=en,MN=xN;function UK(t,e,n=e.length){return LN({offset:t.offset,line:t.line,column:t.column},e,n)}function LN(t,e,n=e.length){let r=0,s=-1;for(let i=0;i<n;i++)e.charCodeAt(i)===10&&(r++,s=i);return t.offset+=n,t.line+=r,t.column=s===-1?t.column+n:n-s,t}function FK(t,e){if(!t)throw new Error(e||"unexpected compiler condition")}function Gn(t,e,n=!1){for(let r=0;r<t.props.length;r++){const s=t.props[r];if(s.type===7&&(n||s.exp)&&(Ce(e)?s.name===e:e.test(s.name)))return s}}function Xu(t,e,n=!1,r=!1){for(let s=0;s<t.props.length;s++){const i=t.props[s];if(i.type===6){if(n)continue;if(i.name===e&&(i.value||r))return i}else if(i.name==="bind"&&(i.exp||r)&&Li(i.arg,e))return i}}function Li(t,e){return!!(t&&zn(t)&&t.content===e)}function VN(t){return t.props.some(e=>e.type===7&&e.name==="bind"&&(!e.arg||e.arg.type!==4||!e.arg.isStatic))}function ph(t){return t.type===5||t.type===2}function U_(t){return t.type===7&&t.name==="pre"}function Nv(t){return t.type===7&&t.name==="slot"}function gl(t){return t.type===1&&t.tagType===3}function gu(t){return t.type===1&&t.tagType===2}const BK=new Set([dl,Ml]);function UN(t,e=[]){if(t&&!Ce(t)&&t.type===14){const n=t.callee;if(!Ce(n)&&BK.has(n))return UN(t.arguments[0],e.concat(t))}return[t,e]}function _u(t,e,n){let r,s=t.type===13?t.props:t.arguments[2],i=[],o;if(s&&!Ce(s)&&s.type===14){const a=UN(s);s=a[0],i=a[1],o=i[i.length-1]}if(s==null||Ce(s))r=mr([e]);else if(s.type===14){const a=s.arguments[0];!Ce(a)&&a.type===15?RS(e,a)||a.properties.unshift(e):s.callee===jp?r=Bt(n.helper(pu),[mr([e]),s]):s.arguments.unshift(mr([e])),!r&&(r=s)}else s.type===15?(RS(e,s)||s.properties.unshift(e),r=s):(r=Bt(n.helper(pu),[mr([e]),s]),o&&o.callee===Ml&&(o=i[i.length-2]));t.type===13?o?o.arguments[0]=r:t.props=r:o?o.arguments[0]=r:t.arguments[2]=r}function RS(t,e){let n=!1;if(t.key.type===4){const r=t.key.content;n=e.properties.some(s=>s.key.type===4&&s.key.content===r)}return n}function _l(t,e){return`_${e}_${t.replace(/[^\w]/g,(n,r)=>n==="-"?"_":t.charCodeAt(r).toString())}`}function Vr(t,e){if(!t||Object.keys(e).length===0)return!1;switch(t.type){case 1:for(let n=0;n<t.props.length;n++){const r=t.props[n];if(r.type===7&&(Vr(r.arg,e)||Vr(r.exp,e)))return!0}return t.children.some(n=>Vr(n,e));case 11:return Vr(t.source,e)?!0:t.children.some(n=>Vr(n,e));case 9:return t.branches.some(n=>Vr(n,e));case 10:return Vr(t.condition,e)?!0:t.children.some(n=>Vr(n,e));case 4:return!t.isStatic&&Ku(t.content)&&!!e[t.content];case 8:return t.children.some(n=>Ze(n)&&Vr(n,e));case 5:case 12:return Vr(t.content,e);case 2:case 3:case 20:return!1;default:return!1}}function FN(t){return t.type===14&&t.callee===Wp?t.arguments[1].returns:t}const BN=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,HN={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:bo,isPreTag:bo,isIgnoreNewlineTag:bo,isCustomElement:bo,onError:Rv,onWarn:RN,comments:!1,prefixIdentifiers:!1};let nt=HN,yu=null,zs="",Sn=null,Be=null,Qn="",ks=-1,wo=-1,kv=0,Ri=!1,F_=null;const wt=[],Ct=new gK(wt,{onerr:Ns,ontext(t,e){Hf(cn(t,e),t,e)},ontextentity(t,e,n){Hf(t,e,n)},oninterpolation(t,e){if(Ri)return Hf(cn(t,e),t,e);let n=t+Ct.delimiterOpen.length,r=e-Ct.delimiterClose.length;for(;ur(zs.charCodeAt(n));)n++;for(;ur(zs.charCodeAt(r-1));)r--;let s=cn(n,r);s.includes("&")&&(s=nt.decodeEntities(s,!1)),B_({type:5,content:gh(s,!1,Dt(n,r)),loc:Dt(t,e)})},onopentagname(t,e){const n=cn(t,e);Sn={type:1,tag:n,ns:nt.getNamespace(n,wt[0],nt.ns),tagType:0,props:[],children:[],loc:Dt(t-1,e),codegenNode:void 0}},onopentagend(t){PS(t)},onclosetag(t,e){const n=cn(t,e);if(!nt.isVoidTag(n)){let r=!1;for(let s=0;s<wt.length;s++)if(wt[s].tag.toLowerCase()===n.toLowerCase()){r=!0,s>0&&Ns(24,wt[0].loc.start.offset);for(let o=0;o<=s;o++){const a=wt.shift();mh(a,e,o<s)}break}r||Ns(23,$N(t,60))}},onselfclosingtag(t){const e=Sn.tag;Sn.isSelfClosing=!0,PS(t),wt[0]&&wt[0].tag===e&&mh(wt.shift(),t)},onattribname(t,e){Be={type:6,name:cn(t,e),nameLoc:Dt(t,e),value:void 0,loc:Dt(t)}},ondirname(t,e){const n=cn(t,e),r=n==="."||n===":"?"bind":n==="@"?"on":n==="#"?"slot":n.slice(2);if(!Ri&&r===""&&Ns(26,t),Ri||r==="")Be={type:6,name:n,nameLoc:Dt(t,e),value:void 0,loc:Dt(t)};else if(Be={type:7,name:r,rawName:n,exp:void 0,arg:void 0,modifiers:n==="."?[ke("prop")]:[],loc:Dt(t)},r==="pre"){Ri=Ct.inVPre=!0,F_=Sn;const s=Sn.props;for(let i=0;i<s.length;i++)s[i].type===7&&(s[i]=JK(s[i]))}},ondirarg(t,e){if(t===e)return;const n=cn(t,e);if(Ri&&!U_(Be))Be.name+=n,Po(Be.nameLoc,e);else{const r=n[0]!=="[";Be.arg=gh(r?n:n.slice(1,-1),r,Dt(t,e),r?3:0)}},ondirmodifier(t,e){const n=cn(t,e);if(Ri&&!U_(Be))Be.name+="."+n,Po(Be.nameLoc,e);else if(Be.name==="slot"){const r=Be.arg;r&&(r.content+="."+n,Po(r.loc,e))}else{const r=ke(n,!0,Dt(t,e));Be.modifiers.push(r)}},onattribdata(t,e){Qn+=cn(t,e),ks<0&&(ks=t),wo=e},onattribentity(t,e,n){Qn+=t,ks<0&&(ks=e),wo=n},onattribnameend(t){const e=Be.loc.start.offset,n=cn(e,t);Be.type===7&&(Be.rawName=n),Sn.props.some(r=>(r.type===7?r.rawName:r.name)===n)&&Ns(2,e)},onattribend(t,e){if(Sn&&Be){if(Po(Be.loc,e),t!==0)if(Qn.includes("&")&&(Qn=nt.decodeEntities(Qn,!0)),Be.type===6)Be.name==="class"&&(Qn=qN(Qn).trim()),t===1&&!Qn&&Ns(13,e),Be.value={type:2,content:Qn,loc:t===1?Dt(ks,wo):Dt(ks-1,wo+1)},Ct.inSFCRoot&&Sn.tag==="template"&&Be.name==="lang"&&Qn&&Qn!=="html"&&Ct.enterRCDATA(md("</template"),0);else{let n=0;Be.exp=gh(Qn,!1,Dt(ks,wo),0,n),Be.name==="for"&&(Be.forParseResult=$K(Be.exp));let r=-1;Be.name==="bind"&&(r=Be.modifiers.findIndex(s=>s.content==="sync"))>-1&&ml("COMPILER_V_BIND_SYNC",nt,Be.loc,Be.arg.loc.source)&&(Be.name="model",Be.modifiers.splice(r,1))}(Be.type!==7||Be.name!=="pre")&&Sn.props.push(Be)}Qn="",ks=wo=-1},oncomment(t,e){nt.comments&&B_({type:3,content:cn(t,e),loc:Dt(t-4,e+3)})},onend(){const t=zs.length;for(let e=0;e<wt.length;e++)mh(wt[e],t-1),Ns(24,wt[e].loc.start.offset)},oncdata(t,e){wt[0].ns!==0?Hf(cn(t,e),t,e):Ns(1,t-9)},onprocessinginstruction(t){(wt[0]?wt[0].ns:nt.ns)===0&&Ns(21,t-1)}}),CS=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,HK=/^\(|\)$/g;function $K(t){const e=t.loc,n=t.content,r=n.match(BN);if(!r)return;const[,s,i]=r,o=(h,d,p=!1)=>{const g=e.start.offset+d,_=g+h.length;return gh(h,!1,Dt(g,_),0,p?1:0)},a={source:o(i.trim(),n.indexOf(i,s.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=s.trim().replace(HK,"").trim();const u=s.indexOf(l),f=l.match(CS);if(f){l=l.replace(CS,"").trim();const h=f[1].trim();let d;if(h&&(d=n.indexOf(h,u+l.length),a.key=o(h,d,!0)),f[2]){const p=f[2].trim();p&&(a.index=o(p,n.indexOf(p,a.key?d+h.length:u+l.length),!0))}}return l&&(a.value=o(l,u,!0)),a}function cn(t,e){return zs.slice(t,e)}function PS(t){Ct.inSFCRoot&&(Sn.innerLoc=Dt(t+1,t+1)),B_(Sn);const{tag:e,ns:n}=Sn;n===0&&nt.isPreTag(e)&&kv++,nt.isVoidTag(e)?mh(Sn,t):(wt.unshift(Sn),(n===1||n===2)&&(Ct.inXML=!0)),Sn=null}function Hf(t,e,n){{const i=wt[0]&&wt[0].tag;i!=="script"&&i!=="style"&&t.includes("&")&&(t=nt.decodeEntities(t,!1))}const r=wt[0]||yu,s=r.children[r.children.length-1];s&&s.type===2?(s.content+=t,Po(s.loc,n)):r.children.push({type:2,content:t,loc:Dt(e,n)})}function mh(t,e,n=!1){n?Po(t.loc,$N(e,60)):Po(t.loc,jK(e,62)+1),Ct.inSFCRoot&&(t.children.length?t.innerLoc.end=Ve({},t.children[t.children.length-1].loc.end):t.innerLoc.end=Ve({},t.innerLoc.start),t.innerLoc.source=cn(t.innerLoc.start.offset,t.innerLoc.end.offset));const{tag:r,ns:s,children:i}=t;if(Ri||(r==="slot"?t.tagType=2:OS(t)?t.tagType=3:WK(t)&&(t.tagType=1)),Ct.inRCDATA||(t.children=jN(i)),s===0&&nt.isIgnoreNewlineTag(r)){const o=i[0];o&&o.type===2&&(o.content=o.content.replace(/^\r?\n/,""))}s===0&&nt.isPreTag(r)&&kv--,F_===t&&(Ri=Ct.inVPre=!1,F_=null),Ct.inXML&&(wt[0]?wt[0].ns:nt.ns)===0&&(Ct.inXML=!1);{const o=t.props;if(!Ct.inSFCRoot&&qo("COMPILER_NATIVE_TEMPLATE",nt)&&t.tag==="template"&&!OS(t)){const l=wt[0]||yu,u=l.children.indexOf(t);l.children.splice(u,1,...t.children)}const a=o.find(l=>l.type===6&&l.name==="inline-template");a&&ml("COMPILER_INLINE_TEMPLATE",nt,a.loc)&&t.children.length&&(a.value={type:2,content:cn(t.children[0].loc.start.offset,t.children[t.children.length-1].loc.end.offset),loc:a.loc})}}function jK(t,e){let n=t;for(;zs.charCodeAt(n)!==e&&n<zs.length-1;)n++;return n}function $N(t,e){let n=t;for(;zs.charCodeAt(n)!==e&&n>=0;)n--;return n}const qK=new Set(["if","else","else-if","for","slot"]);function OS({tag:t,props:e}){if(t==="template"){for(let n=0;n<e.length;n++)if(e[n].type===7&&qK.has(e[n].name))return!0}return!1}function WK({tag:t,props:e}){if(nt.isCustomElement(t))return!1;if(t==="component"||GK(t.charCodeAt(0))||Cv(t)||nt.isBuiltInComponent&&nt.isBuiltInComponent(t)||nt.isNativeTag&&!nt.isNativeTag(t))return!0;for(let n=0;n<e.length;n++){const r=e[n];if(r.type===6){if(r.name==="is"&&r.value){if(r.value.content.startsWith("vue:"))return!0;if(ml("COMPILER_IS_ON_ELEMENT",nt,r.loc))return!0}}else if(r.name==="bind"&&Li(r.arg,"is")&&ml("COMPILER_IS_ON_ELEMENT",nt,r.loc))return!0}return!1}function GK(t){return t>64&&t<91}const YK=/\r\n/g;function jN(t){const e=nt.whitespace!=="preserve";let n=!1;for(let r=0;r<t.length;r++){const s=t[r];if(s.type===2)if(kv)s.content=s.content.replace(YK,` 65`);else if(zK(s.content)){const i=t[r-1]&&t[r-1].type,o=t[r+1]&&t[r+1].type;!i||!o||e&&(i===3&&(o===3||o===1)||i===1&&(o===3||o===1&&KK(s.content)))?(n=!0,t[r]=null):s.content=" "}else e&&(s.content=qN(s.content))}return n?t.filter(Boolean):t}function zK(t){for(let e=0;e<t.length;e++)if(!ur(t.charCodeAt(e)))return!1;return!0}function KK(t){for(let e=0;e<t.length;e++){const n=t.charCodeAt(e);if(n===10||n===13)return!0}return!1}function qN(t){let e="",n=!1;for(let r=0;r<t.length;r++)ur(t.charCodeAt(r))?n||(e+=" ",n=!0):(e+=t[r],n=!1);return e}function B_(t){(wt[0]||yu).children.push(t)}function Dt(t,e){return{start:Ct.getPos(t),end:e==null?e:Ct.getPos(e),source:e==null?e:cn(t,e)}}function XK(t){return Dt(t.start.offset,t.end.offset)}function Po(t,e){t.end=Ct.getPos(e),t.source=cn(t.start.offset,e)}function JK(t){const e={type:6,name:t.rawName,nameLoc:Dt(t.loc.start.offset,t.loc.start.offset+t.rawName.length),value:void 0,loc:t.loc};if(t.exp){const n=t.exp.loc;n.end.offset<t.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),e.value={type:2,content:t.exp.content,loc:n}}return e}function gh(t,e=!1,n,r=0,s=0){return ke(t,e,n,r)}function Ns(t,e,n){nt.onError(yt(t,Dt(e,e)))}function QK(){Ct.reset(),Sn=null,Be=null,Qn="",ks=-1,wo=-1,wt.length=0}function Dv(t,e){if(QK(),zs=t,nt=Ve({},HN),e){let s;for(s in e)e[s]!=null&&(nt[s]=e[s])}Ct.mode=nt.parseMode==="html"?1:nt.parseMode==="sfc"?2:0,Ct.inXML=nt.ns===1||nt.ns===2;const n=e&&e.delimiters;n&&(Ct.delimiterOpen=md(n[0]),Ct.delimiterClose=md(n[1]));const r=yu=SN([],t);return Ct.parse(zs),r.loc=Dt(0,t.length),r.children=jN(r.children),yu=null,r}function ZK(t,e){_h(t,void 0,e,!!WN(t))}function WN(t){const e=t.children.filter(n=>n.type!==3);return e.length===1&&e[0].type===1&&!gu(e[0])?e[0]:null}function _h(t,e,n,r=!1,s=!1){const{children:i}=t,o=[];for(let f=0;f<i.length;f++){const h=i[f];if(h.type===1&&h.tagType===0){const d=r?0:ir(h,n);if(d>0){if(d>=2){h.codegenNode.patchFlag=-1,o.push(h);continue}}else{const p=h.codegenNode;if(p.type===13){const g=p.patchFlag;if((g===void 0||g===512||g===1)&&YN(h,n)>=2){const _=zN(h);_&&(p.props=n.hoist(_))}p.dynamicProps&&(p.dynamicProps=n.hoist(p.dynamicProps))}}}else if(h.type===12&&(r?0:ir(h,n))>=2){h.codegenNode.type===14&&h.codegenNode.arguments.length>0&&h.codegenNode.arguments.push("-1"),o.push(h);continue}if(h.type===1){const d=h.tagType===1;d&&n.scopes.vSlot++,_h(h,t,n,!1,s),d&&n.scopes.vSlot--}else if(h.type===11)_h(h,t,n,h.children.length===1,!0);else if(h.type===9)for(let d=0;d<h.branches.length;d++)_h(h.branches[d],t,n,h.branches[d].children.length===1,s)}let a=!1;if(o.length===i.length&&t.type===1){if(t.tagType===0&&t.codegenNode&&t.codegenNode.type===13&&oe(t.codegenNode.children))t.codegenNode.children=l(Wi(t.codegenNode.children)),a=!0;else if(t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!oe(t.codegenNode.children)&&t.codegenNode.children.type===15){const f=u(t.codegenNode,"default");f&&(f.returns=l(Wi(f.returns)),a=!0)}else if(t.tagType===3&&e&&e.type===1&&e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!oe(e.codegenNode.children)&&e.codegenNode.children.type===15){const f=Gn(t,"slot",!0),h=f&&f.arg&&u(e.codegenNode,f.arg);h&&(h.returns=l(Wi(h.returns)),a=!0)}}if(!a)for(const f of o)f.codegenNode=n.cache(f.codegenNode);function l(f){const h=n.cache(f);return h.needArraySpread=!0,h}function u(f,h){if(f.children&&!oe(f.children)&&f.children.type===15){const d=f.children.properties.find(p=>p.key===h||p.key.content===h);return d&&d.value}}o.length&&n.transformHoist&&n.transformHoist(i,n,t)}function ir(t,e){const{constantCache:n}=e;switch(t.type){case 1:if(t.tagType!==0)return 0;const r=n.get(t);if(r!==void 0)return r;const s=t.codegenNode;if(s.type!==13||s.isBlock&&t.tag!=="svg"&&t.tag!=="foreignObject"&&t.tag!=="math")return 0;if(s.patchFlag===void 0){let o=3;const a=YN(t,e);if(a===0)return n.set(t,0),0;a<o&&(o=a);for(let l=0;l<t.children.length;l++){const u=ir(t.children[l],e);if(u===0)return n.set(t,0),0;u<o&&(o=u)}if(o>1)for(let l=0;l<t.props.length;l++){const u=t.props[l];if(u.type===7&&u.name==="bind"&&u.exp){const f=ir(u.exp,e);if(f===0)return n.set(t,0),0;f<o&&(o=f)}}if(s.isBlock){for(let l=0;l<t.props.length;l++)if(t.props[l].type===7)return n.set(t,0),0;e.removeHelper(to),e.removeHelper(sa(e.inSSR,s.isComponent)),s.isBlock=!1,e.helper(ra(e.inSSR,s.isComponent))}return n.set(t,o),o}else return n.set(t,0),0;case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return ir(t.content,e);case 4:return t.constType;case 8:let i=3;for(let o=0;o<t.children.length;o++){const a=t.children[o];if(Ce(a)||Kn(a))continue;const l=ir(a,e);if(l===0)return 0;l<i&&(i=l)}return i;case 20:return 2;default:return 0}}const eX=new Set([Hp,$p,dl,Ml]);function GN(t,e){if(t.type===14&&!Ce(t.callee)&&eX.has(t.callee)){const n=t.arguments[0];if(n.type===4)return ir(n,e);if(n.type===14)return GN(n,e)}return 0}function YN(t,e){let n=3;const r=zN(t);if(r&&r.type===15){const{properties:s}=r;for(let i=0;i<s.length;i++){const{key:o,value:a}=s[i],l=ir(o,e);if(l===0)return l;l<n&&(n=l);let u;if(a.type===4?u=ir(a,e):a.type===14?u=GN(a,e):u=0,u===0)return u;u<n&&(n=u)}}return n}function zN(t){const e=t.codegenNode;if(e.type===13)return e.props}function KN(t,{filename:e="",prefixIdentifiers:n=!1,hoistStatic:r=!1,hmr:s=!1,cacheHandlers:i=!1,nodeTransforms:o=[],directiveTransforms:a={},transformHoist:l=null,isBuiltInComponent:u=en,isCustomElement:f=en,expressionPlugins:h=[],scopeId:d=null,slotted:p=!0,ssr:g=!1,inSSR:_=!1,ssrCssVars:v="",bindingMetadata:N=Fe,inline:O=!1,isTS:T=!1,onError:C=Rv,onWarn:x=RN,compatConfig:L}){const R=e.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),w={filename:e,selfName:R&&so(mt(R[1])),prefixIdentifiers:n,hoistStatic:r,hmr:s,cacheHandlers:i,nodeTransforms:o,directiveTransforms:a,transformHoist:l,isBuiltInComponent:u,isCustomElement:f,expressionPlugins:h,scopeId:d,slotted:p,ssr:g,inSSR:_,ssrCssVars:v,bindingMetadata:N,inline:O,isTS:T,onError:C,onWarn:x,compatConfig:L,root:t,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:t,childIndex:0,inVOnce:!1,helper(E){const b=w.helpers.get(E)||0;return w.helpers.set(E,b+1),E},removeHelper(E){const b=w.helpers.get(E);if(b){const k=b-1;k?w.helpers.set(E,k):w.helpers.delete(E)}},helperString(E){return`_${ta[w.helper(E)]}`},replaceNode(E){w.parent.children[w.childIndex]=w.currentNode=E},removeNode(E){const b=w.parent.children,k=E?b.indexOf(E):w.currentNode?w.childIndex:-1;!E||E===w.currentNode?(w.currentNode=null,w.onNodeRemoved()):w.childIndex>k&&(w.childIndex--,w.onNodeRemoved()),w.parent.children.splice(k,1)},onNodeRemoved:en,addIdentifiers(E){},removeIdentifiers(E){},hoist(E){Ce(E)&&(E=ke(E)),w.hoists.push(E);const b=ke(`_hoisted_${w.hoists.length}`,!1,E.loc,2);return b.hoisted=E,b},cache(E,b=!1,k=!1){const P=IN(w.cached.length,E,b,k);return w.cached.push(P),P}};return w.filters=new Set,w}function XN(t,e){const n=KN(t,e);Ju(t,n),e.hoistStatic&&ZK(t,n),e.ssr||tX(t,n),t.helpers=new Set([...n.helpers.keys()]),t.components=[...n.components],t.directives=[...n.directives],t.imports=n.imports,t.hoists=n.hoists,t.temps=n.temps,t.cached=n.cached,t.transformed=!0,t.filters=[...n.filters]}function tX(t,e){const{helper:n}=e,{children:r}=t;if(r.length===1){const s=WN(t);if(s&&s.codegenNode){const i=s.codegenNode;i.type===13&&Gp(i,e),t.codegenNode=i}else t.codegenNode=r[0]}else if(r.length>1){let s=64;t.codegenNode=pl(e,n(hl),void 0,t.children,s,void 0,void 0,!0,void 0,!1)}}function nX(t,e){let n=0;const r=()=>{n--};for(;n<t.children.length;n++){const s=t.children[n];Ce(s)||(e.grandParent=e.parent,e.parent=t,e.childIndex=n,e.onNodeRemoved=r,Ju(s,e))}}function Ju(t,e){e.currentNode=t;const{nodeTransforms:n}=e,r=[];for(let i=0;i<n.length;i++){const o=n[i](t,e);if(o&&(oe(o)?r.push(...o):r.push(o)),e.currentNode)t=e.currentNode;else return}switch(t.type){case 3:e.ssr||e.helper(xl);break;case 5:e.ssr||e.helper(zu);break;case 9:for(let i=0;i<t.branches.length;i++)Ju(t.branches[i],e);break;case 10:case 11:case 1:case 0:nX(t,e);break}e.currentNode=t;let s=r.length;for(;s--;)r[s]()}function xv(t,e){const n=Ce(t)?r=>r===t:r=>t.test(r);return(r,s)=>{if(r.type===1){const{props:i}=r;if(r.tagType===3&&i.some(Nv))return;const o=[];for(let a=0;a<i.length;a++){const l=i[a];if(l.type===7&&n(l.name)){i.splice(a,1),a--;const u=e(r,l,s);u&&o.push(u)}}return o}}}const Yp="/*@__PURE__*/",JN=t=>`${ta[t]}: _${ta[t]}`;function rX(t,{mode:e="function",prefixIdentifiers:n=e==="module",sourceMap:r=!1,filename:s="template.vue.html",scopeId:i=null,optimizeImports:o=!1,runtimeGlobalName:a="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:u="vue/server-renderer",ssr:f=!1,isTS:h=!1,inSSR:d=!1}){const p={mode:e,prefixIdentifiers:n,sourceMap:r,filename:s,scopeId:i,optimizeImports:o,runtimeGlobalName:a,runtimeModuleName:l,ssrRuntimeModuleName:u,ssr:f,isTS:h,inSSR:d,source:t.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(_){return`_${ta[_]}`},push(_,v=-2,N){p.code+=_},indent(){g(++p.indentLevel)},deindent(_=!1){_?--p.indentLevel:g(--p.indentLevel)},newline(){g(p.indentLevel)}};function g(_){p.push(` 66`+" ".repeat(_),0)}return p}function QN(t,e={}){const n=rX(t,e);e.onContextCreated&&e.onContextCreated(n);const{mode:r,push:s,prefixIdentifiers:i,indent:o,deindent:a,newline:l,scopeId:u,ssr:f}=n,h=Array.from(t.helpers),d=h.length>0,p=!i&&r!=="module";sX(t,n);const _=f?"ssrRender":"render",N=(f?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(s(`function ${_}(${N}) {`),o(),p&&(s("with (_ctx) {"),o(),d&&(s(`const { ${h.map(JN).join(", ")} } = _Vue 67`,-1),l())),t.components.length&&(rg(t.components,"component",n),(t.directives.length||t.temps>0)&&l()),t.directives.length&&(rg(t.directives,"directive",n),t.temps>0&&l()),t.filters&&t.filters.length&&(l(),rg(t.filters,"filter",n),l()),t.temps>0){s("let ");for(let O=0;O<t.temps;O++)s(`${O>0?", ":""}_temp${O}`)}return(t.components.length||t.directives.length||t.temps)&&(s(` 68`,0),l()),f||s("return "),t.codegenNode?Ln(t.codegenNode,n):s("null"),p&&(a(),s("}")),a(),s("}"),{ast:t,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function sX(t,e){const{ssr:n,prefixIdentifiers:r,push:s,newline:i,runtimeModuleName:o,runtimeGlobalName:a,ssrRuntimeModuleName:l}=e,u=a,f=Array.from(t.helpers);if(f.length>0&&(s(`const _Vue = ${u} 69`,-1),t.hoists.length)){const h=[kp,Dp,xl,xp,bv].filter(d=>f.includes(d)).map(JN).join(", ");s(`const { ${h} } = _Vue 70`,-1)}iX(t.hoists,e),i(),s("return ")}function rg(t,e,{helper:n,push:r,newline:s,isTS:i}){const o=n(e==="filter"?Up:e==="component"?Mp:Vp);for(let a=0;a<t.length;a++){let l=t[a];const u=l.endsWith("__self");u&&(l=l.slice(0,-6)),r(`const ${_l(l,e)} = ${o}(${JSON.stringify(l)}${u?", true":""})${i?"!":""}`),a<t.length-1&&s()}}function iX(t,e){if(!t.length)return;e.pure=!0;const{push:n,newline:r}=e;r();for(let s=0;s<t.length;s++){const i=t[s];i&&(n(`const _hoisted_${s+1} = `),Ln(i,e),r())}e.pure=!1}function Mv(t,e){const n=t.length>3||!1;e.push("["),n&&e.indent(),Qu(t,e,n),n&&e.deindent(),e.push("]")}function Qu(t,e,n=!1,r=!0){const{push:s,newline:i}=e;for(let o=0;o<t.length;o++){const a=t[o];Ce(a)?s(a,-3):oe(a)?Mv(a,e):Ln(a,e),o<t.length-1&&(n?(r&&s(","),i()):r&&s(", "))}}function Ln(t,e){if(Ce(t)){e.push(t,-3);return}if(Kn(t)){e.push(e.helper(t));return}switch(t.type){case 1:case 9:case 11:Ln(t.codegenNode,e);break;case 2:oX(t,e);break;case 4:ZN(t,e);break;case 5:aX(t,e);break;case 12:Ln(t.codegenNode,e);break;case 8:ek(t,e);break;case 3:cX(t,e);break;case 13:uX(t,e);break;case 14:hX(t,e);break;case 15:dX(t,e);break;case 17:pX(t,e);break;case 18:mX(t,e);break;case 19:gX(t,e);break;case 20:_X(t,e);break;case 21:Qu(t.body,e,!0,!1);break}}function oX(t,e){e.push(JSON.stringify(t.content),-3,t)}function ZN(t,e){const{content:n,isStatic:r}=t;e.push(r?JSON.stringify(n):n,-3,t)}function aX(t,e){const{push:n,helper:r,pure:s}=e;s&&n(Yp),n(`${r(zu)}(`),Ln(t.content,e),n(")")}function ek(t,e){for(let n=0;n<t.children.length;n++){const r=t.children[n];Ce(r)?e.push(r,-3):Ln(r,e)}}function lX(t,e){const{push:n}=e;if(t.type===8)n("["),ek(t,e),n("]");else if(t.isStatic){const r=Ku(t.content)?t.content:JSON.stringify(t.content);n(r,-2,t)}else n(`[${t.content}]`,-3,t)}function cX(t,e){const{push:n,helper:r,pure:s}=e;s&&n(Yp),n(`${r(xl)}(${JSON.stringify(t.content)})`,-3,t)}function uX(t,e){const{push:n,helper:r,pure:s}=e,{tag:i,props:o,children:a,patchFlag:l,dynamicProps:u,directives:f,isBlock:h,disableTracking:d,isComponent:p}=t;let g;l&&(g=String(l)),f&&n(r(Fp)+"("),h&&n(`(${r(to)}(${d?"true":""}), `),s&&n(Yp);const _=h?sa(e.inSSR,p):ra(e.inSSR,p);n(r(_)+"(",-2,t),Qu(fX([i,o,a,g,u]),e),n(")"),h&&n(")"),f&&(n(", "),Ln(f,e),n(")"))}function fX(t){let e=t.length;for(;e--&&t[e]==null;);return t.slice(0,e+1).map(n=>n||"null")}function hX(t,e){const{push:n,helper:r,pure:s}=e,i=Ce(t.callee)?t.callee:r(t.callee);s&&n(Yp),n(i+"(",-2,t),Qu(t.arguments,e),n(")")}function dX(t,e){const{push:n,indent:r,deindent:s,newline:i}=e,{properties:o}=t;if(!o.length){n("{}",-2,t);return}const a=o.length>1||!1;n(a?"{":"{ "),a&&r();for(let l=0;l<o.length;l++){const{key:u,value:f}=o[l];lX(u,e),n(": "),Ln(f,e),l<o.length-1&&(n(","),i())}a&&s(),n(a?"}":" }")}function pX(t,e){Mv(t.elements,e)}function mX(t,e){const{push:n,indent:r,deindent:s}=e,{params:i,returns:o,body:a,newline:l,isSlot:u}=t;u&&n(`_${ta[qp]}(`),n("(",-2,t),oe(i)?Qu(i,e):i&&Ln(i,e),n(") => "),(l||a)&&(n("{"),r()),o?(l&&n("return "),oe(o)?Mv(o,e):Ln(o,e)):a&&Ln(a,e),(l||a)&&(s(),n("}")),u&&(t.isNonScopedSlot&&n(", undefined, true"),n(")"))}function gX(t,e){const{test:n,consequent:r,alternate:s,newline:i}=t,{push:o,indent:a,deindent:l,newline:u}=e;if(n.type===4){const h=!Ku(n.content);h&&o("("),ZN(n,e),h&&o(")")}else o("("),Ln(n,e),o(")");i&&a(),e.indentLevel++,i||o(" "),o("? "),Ln(r,e),e.indentLevel--,i&&u(),i||o(" "),o(": ");const f=s.type===19;f||e.indentLevel++,Ln(s,e),f||e.indentLevel--,i&&l(!0)}function _X(t,e){const{push:n,helper:r,indent:s,deindent:i,newline:o}=e,{needPauseTracking:a,needArraySpread:l}=t;l&&n("[...("),n(`_cache[${t.index}] || (`),a&&(s(),n(`${r(mu)}(-1`),t.inVOnce&&n(", true"),n("),"),o(),n("(")),n(`_cache[${t.index}] = `),Ln(t.value,e),a&&(n(`).cacheIndex = ${t.index},`),o(),n(`${r(mu)}(1),`),o(),n(`_cache[${t.index}]`),i()),n(")"),l&&n(")]")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const yX=(t,e)=>{if(t.type===5)t.content=yh(t.content,e);else if(t.type===1){const n=Gn(t,"memo");for(let r=0;r<t.props.length;r++){const s=t.props[r];if(s.type===7&&s.name!=="for"){const i=s.exp,o=s.arg;i&&i.type===4&&!(s.name==="on"&&o)&&!(n&&o&&o.type===4&&o.content==="key")&&(s.exp=yh(i,e,s.name==="slot")),o&&o.type===4&&!o.isStatic&&(s.arg=yh(o,e))}}}};function yh(t,e,n=!1,r=!1,s=Object.create(e.identifiers)){return t}function tk(t){return Ce(t)?t:t.type===4?t.content:t.children.map(tk).join("")}const EX=xv(/^(?:if|else|else-if)$/,(t,e,n)=>nk(t,e,n,(r,s,i)=>{const o=n.parent.children;let a=o.indexOf(r),l=0;for(;a-->=0;){const u=o[a];u&&u.type===9&&(l+=u.branches.length)}return()=>{if(i)r.codegenNode=kS(s,l,n);else{const u=vX(r.codegenNode);u.alternate=kS(s,l+r.branches.length-1,n)}}}));function nk(t,e,n,r){if(e.name!=="else"&&(!e.exp||!e.exp.content.trim())){const s=e.exp?e.exp.loc:t.loc;n.onError(yt(28,e.loc)),e.exp=ke("true",!1,s)}if(e.name==="if"){const s=NS(t,e),i={type:9,loc:XK(t.loc),branches:[s]};if(n.replaceNode(i),r)return r(i,s,!0)}else{const s=n.parent.children;let i=s.indexOf(t);for(;i-->=-1;){const o=s[i];if(o&&o.type===3){n.removeNode(o);continue}if(o&&o.type===2&&!o.content.trim().length){n.removeNode(o);continue}if(o&&o.type===9){(e.name==="else-if"||e.name==="else")&&o.branches[o.branches.length-1].condition===void 0&&n.onError(yt(30,t.loc)),n.removeNode();const a=NS(t,e);o.branches.push(a);const l=r&&r(o,a,!1);Ju(a,n),l&&l(),n.currentNode=null}else n.onError(yt(30,t.loc));break}}}function NS(t,e){const n=t.tagType===3;return{type:10,loc:t.loc,condition:e.name==="else"?void 0:e.exp,children:n&&!Gn(t,"for")?t.children:[t],userKey:Xu(t,"key"),isTemplateIf:n}}function kS(t,e,n){return t.condition?pd(t.condition,DS(t,e,n),Bt(n.helper(xl),['""',"true"])):DS(t,e,n)}function DS(t,e,n){const{helper:r}=n,s=Ut("key",ke(`${e}`,!1,zt,2)),{children:i}=t,o=i[0];if(i.length!==1||o.type!==1)if(i.length===1&&o.type===11){const l=o.codegenNode;return _u(l,s,n),l}else return pl(n,r(hl),mr([s]),i,64,void 0,void 0,!0,!1,!1,t.loc);else{const l=o.codegenNode,u=FN(l);return u.type===13&&Gp(u,n),_u(u,s,n),l}}function vX(t){for(;;)if(t.type===19)if(t.alternate.type===19)t=t.alternate;else return t;else t.type===20&&(t=t.value)}const TX=xv("for",(t,e,n)=>{const{helper:r,removeHelper:s}=n;return rk(t,e,n,i=>{const o=Bt(r(Bp),[i.source]),a=gl(t),l=Gn(t,"memo"),u=Xu(t,"key",!1,!0);u&&u.type;let f=u&&(u.type===6?u.value?ke(u.value.content,!0):void 0:u.exp);const h=u&&f?Ut("key",f):null,d=i.source.type===4&&i.source.constType>0,p=d?64:u?128:256;return i.codegenNode=pl(n,r(hl),void 0,o,p,void 0,void 0,!0,!d,!1,t.loc),()=>{let g;const{children:_}=i,v=_.length!==1||_[0].type!==1,N=gu(t)?t:a&&t.children.length===1&&gu(t.children[0])?t.children[0]:null;if(N?(g=N.codegenNode,a&&h&&_u(g,h,n)):v?g=pl(n,r(hl),h?mr([h]):void 0,t.children,64,void 0,void 0,!0,void 0,!1):(g=_[0].codegenNode,a&&h&&_u(g,h,n),g.isBlock!==!d&&(g.isBlock?(s(to),s(sa(n.inSSR,g.isComponent))):s(ra(n.inSSR,g.isComponent))),g.isBlock=!d,g.isBlock?(r(to),r(sa(n.inSSR,g.isComponent))):r(ra(n.inSSR,g.isComponent))),l){const O=na(gd(i.parseResult,[ke("_cached")]));O.body=AN([Ar(["const _memo = (",l.exp,")"]),Ar(["if (_cached",...f?[" && _cached.key === ",f]:[],` && ${n.helperString(Av)}(_cached, _memo)) return _cached`]),Ar(["const _item = ",g]),ke("_item.memo = _memo"),ke("return _item")]),o.arguments.push(O,ke("_cache"),ke(String(n.cached.length))),n.cached.push(null)}else o.arguments.push(na(gd(i.parseResult),g,!0))}})});function rk(t,e,n,r){if(!e.exp){n.onError(yt(31,e.loc));return}const s=e.forParseResult;if(!s){n.onError(yt(32,e.loc));return}Lv(s);const{addIdentifiers:i,removeIdentifiers:o,scopes:a}=n,{source:l,value:u,key:f,index:h}=s,d={type:11,loc:e.loc,source:l,valueAlias:u,keyAlias:f,objectIndexAlias:h,parseResult:s,children:gl(t)?t.children:[t]};n.replaceNode(d),a.vFor++;const p=r&&r(d);return()=>{a.vFor--,p&&p()}}function Lv(t,e){t.finalized||(t.finalized=!0)}function gd({value:t,key:e,index:n},r=[]){return wX([t,e,n,...r])}function wX(t){let e=t.length;for(;e--&&!t[e];);return t.slice(0,e+1).map((n,r)=>n||ke("_".repeat(r+1),!1))}const xS=ke("undefined",!1),sk=(t,e)=>{if(t.type===1&&(t.tagType===1||t.tagType===3)){const n=Gn(t,"slot");if(n)return n.exp,e.scopes.vSlot++,()=>{e.scopes.vSlot--}}},bX=(t,e)=>{let n;if(gl(t)&&t.props.some(Nv)&&(n=Gn(t,"for"))){const r=n.forParseResult;if(r){Lv(r);const{value:s,key:i,index:o}=r,{addIdentifiers:a,removeIdentifiers:l}=e;return s&&a(s),i&&a(i),o&&a(o),()=>{s&&l(s),i&&l(i),o&&l(o)}}}},SX=(t,e,n,r)=>na(t,n,!1,!0,n.length?n[0].loc:r);function ik(t,e,n=SX){e.helper(qp);const{children:r,loc:s}=t,i=[],o=[];let a=e.scopes.vSlot>0||e.scopes.vFor>0;const l=Gn(t,"slot",!0);if(l){const{arg:v,exp:N}=l;v&&!zn(v)&&(a=!0),i.push(Ut(v||ke("default",!0),n(N,void 0,r,s)))}let u=!1,f=!1;const h=[],d=new Set;let p=0;for(let v=0;v<r.length;v++){const N=r[v];let O;if(!gl(N)||!(O=Gn(N,"slot",!0))){N.type!==3&&h.push(N);continue}if(l){e.onError(yt(37,O.loc));break}u=!0;const{children:T,loc:C}=N,{arg:x=ke("default",!0),exp:L,loc:R}=O;let w;zn(x)?w=x?x.content:"default":a=!0;const E=Gn(N,"for"),b=n(L,E,T,C);let k,P;if(k=Gn(N,"if"))a=!0,o.push(pd(k.exp,$f(x,b,p++),xS));else if(P=Gn(N,/^else(?:-if)?$/,!0)){let A=v,te;for(;A--&&(te=r[A],!(te.type!==3&&H_(te))););if(te&&gl(te)&&Gn(te,/^(?:else-)?if$/)){let he=o[o.length-1];for(;he.alternate.type===19;)he=he.alternate;he.alternate=P.exp?pd(P.exp,$f(x,b,p++),xS):$f(x,b,p++)}else e.onError(yt(30,P.loc))}else if(E){a=!0;const A=E.forParseResult;A?(Lv(A),o.push(Bt(e.helper(Bp),[A.source,na(gd(A),$f(x,b),!0)]))):e.onError(yt(32,E.loc))}else{if(w){if(d.has(w)){e.onError(yt(38,R));continue}d.add(w),w==="default"&&(f=!0)}i.push(Ut(x,b))}}if(!l){const v=(N,O)=>{const T=n(N,void 0,O,s);return e.compatConfig&&(T.isNonScopedSlot=!0),Ut("default",T)};u?h.length&&h.some(N=>H_(N))&&(f?e.onError(yt(39,h[0].loc)):i.push(v(void 0,h))):i.push(v(void 0,r))}const g=a?2:Eh(t.children)?3:1;let _=mr(i.concat(Ut("_",ke(g+"",!1))),s);return o.length&&(_=Bt(e.helper(Iv),[_,Wi(o)])),{slots:_,hasDynamicSlots:a}}function $f(t,e,n){const r=[Ut("name",t),Ut("fn",e)];return n!=null&&r.push(Ut("key",ke(String(n),!0))),mr(r)}function Eh(t){for(let e=0;e<t.length;e++){const n=t[e];switch(n.type){case 1:if(n.tagType===2||Eh(n.children))return!0;break;case 9:if(Eh(n.branches))return!0;break;case 10:case 11:if(Eh(n.children))return!0;break}}return!1}function H_(t){return t.type!==2&&t.type!==12?!0:t.type===2?!!t.content.trim():H_(t.content)}const ok=new WeakMap,ak=(t,e)=>function(){if(t=e.currentNode,!(t.type===1&&(t.tagType===0||t.tagType===1)))return;const{tag:r,props:s}=t,i=t.tagType===1;let o=i?lk(t,e):`"${r}"`;const a=Ze(o)&&o.callee===Lp;let l,u,f=0,h,d,p,g=a||o===Ya||o===Np||!i&&(r==="svg"||r==="foreignObject"||r==="math");if(s.length>0){const _=Vv(t,e,void 0,i,a);l=_.props,f=_.patchFlag,d=_.dynamicPropNames;const v=_.directives;p=v&&v.length?Wi(v.map(N=>ck(N,e))):void 0,_.shouldUseBlock&&(g=!0)}if(t.children.length>0)if(o===du&&(g=!0,f|=1024),i&&o!==Ya&&o!==du){const{slots:v,hasDynamicSlots:N}=ik(t,e);u=v,N&&(f|=1024)}else if(t.children.length===1&&o!==Ya){const v=t.children[0],N=v.type,O=N===5||N===8;O&&ir(v,e)===0&&(f|=1),O||N===2?u=v:u=t.children}else u=t.children;d&&d.length&&(h=AX(d)),t.codegenNode=pl(e,o,l,u,f===0?void 0:f,h,p,!!g,!1,i,t.loc)};function lk(t,e,n=!1){let{tag:r}=t;const s=$_(r),i=Xu(t,"is",!1,!0);if(i)if(s||qo("COMPILER_IS_ON_ELEMENT",e)){let a;if(i.type===6?a=i.value&&ke(i.value.content,!0):(a=i.exp,a||(a=ke("is",!1,i.arg.loc))),a)return Bt(e.helper(Lp),[a])}else i.type===6&&i.value.content.startsWith("vue:")&&(r=i.value.content.slice(4));const o=Cv(r)||e.isBuiltInComponent(r);return o?(n||e.helper(o),o):(e.helper(Mp),e.components.add(r),_l(r,"component"))}function Vv(t,e,n=t.props,r,s,i=!1){const{tag:o,loc:a,children:l}=t;let u=[];const f=[],h=[],d=l.length>0;let p=!1,g=0,_=!1,v=!1,N=!1,O=!1,T=!1,C=!1;const x=[],L=b=>{u.length&&(f.push(mr(MS(u),a)),u=[]),b&&f.push(b)},R=()=>{e.scopes.vFor>0&&u.push(Ut(ke("ref_for",!0),ke("true")))},w=({key:b,value:k})=>{if(zn(b)){const P=b.content,A=no(P);if(A&&(!r||s)&&P.toLowerCase()!=="onclick"&&P!=="onUpdate:modelValue"&&!qs(P)&&(O=!0),A&&qs(P)&&(C=!0),A&&k.type===14&&(k=k.arguments[0]),k.type===20||(k.type===4||k.type===8)&&ir(k,e)>0)return;P==="ref"?_=!0:P==="class"?v=!0:P==="style"?N=!0:P!=="key"&&!x.includes(P)&&x.push(P),r&&(P==="class"||P==="style")&&!x.includes(P)&&x.push(P)}else T=!0};for(let b=0;b<n.length;b++){const k=n[b];if(k.type===6){const{loc:P,name:A,nameLoc:te,value:he}=k;let z=!0;if(A==="ref"&&(_=!0,R()),A==="is"&&($_(o)||he&&he.content.startsWith("vue:")||qo("COMPILER_IS_ON_ELEMENT",e)))continue;u.push(Ut(ke(A,!0,te),ke(he?he.content:"",z,he?he.loc:P)))}else{const{name:P,arg:A,exp:te,loc:he,modifiers:z}=k,ne=P==="bind",J=P==="on";if(P==="slot"){r||e.onError(yt(40,he));continue}if(P==="once"||P==="memo"||P==="is"||ne&&Li(A,"is")&&($_(o)||qo("COMPILER_IS_ON_ELEMENT",e))||J&&i)continue;if((ne&&Li(A,"key")||J&&d&&Li(A,"vue:before-update"))&&(p=!0),ne&&Li(A,"ref")&&R(),!A&&(ne||J)){if(T=!0,te)if(ne){if(L(),qo("COMPILER_V_BIND_OBJECT_ORDER",e)){f.unshift(te);continue}R(),L(),f.push(te)}else L({type:14,loc:he,callee:e.helper(jp),arguments:r?[te]:[te,"true"]});else e.onError(yt(ne?34:35,he));continue}ne&&z.some(lt=>lt.content==="prop")&&(g|=32);const Ue=e.directiveTransforms[P];if(Ue){const{props:lt,needRuntime:ct}=Ue(k,t,e);!i&<.forEach(w),J&&A&&!zn(A)?L(mr(lt,a)):u.push(...lt),ct&&(h.push(k),Kn(ct)&&ok.set(k,ct))}else JS(P)||(h.push(k),d&&(p=!0))}}let E;if(f.length?(L(),f.length>1?E=Bt(e.helper(pu),f,a):E=f[0]):u.length&&(E=mr(MS(u),a)),T?g|=16:(v&&!r&&(g|=2),N&&!r&&(g|=4),x.length&&(g|=8),O&&(g|=32)),!p&&(g===0||g===32)&&(_||C||h.length>0)&&(g|=512),!e.inSSR&&E)switch(E.type){case 15:let b=-1,k=-1,P=!1;for(let he=0;he<E.properties.length;he++){const z=E.properties[he].key;zn(z)?z.content==="class"?b=he:z.content==="style"&&(k=he):z.isHandlerKey||(P=!0)}const A=E.properties[b],te=E.properties[k];P?E=Bt(e.helper(dl),[E]):(A&&!zn(A.value)&&(A.value=Bt(e.helper(Hp),[A.value])),te&&(N||te.value.type===4&&te.value.content.trim()[0]==="["||te.value.type===17)&&(te.value=Bt(e.helper($p),[te.value])));break;case 14:break;default:E=Bt(e.helper(dl),[Bt(e.helper(Ml),[E])]);break}return{props:E,directives:h,patchFlag:g,dynamicPropNames:x,shouldUseBlock:p}}function MS(t){const e=new Map,n=[];for(let r=0;r<t.length;r++){const s=t[r];if(s.key.type===8||!s.key.isStatic){n.push(s);continue}const i=s.key.content,o=e.get(i);o?(i==="style"||i==="class"||no(i))&&IX(o,s):(e.set(i,s),n.push(s))}return n}function IX(t,e){t.value.type===17?t.value.elements.push(e.value):t.value=Wi([t.value,e.value],t.loc)}function ck(t,e){const n=[],r=ok.get(t);r?n.push(e.helperString(r)):(e.helper(Vp),e.directives.add(t.name),n.push(_l(t.name,"directive")));const{loc:s}=t;if(t.exp&&n.push(t.exp),t.arg&&(t.exp||n.push("void 0"),n.push(t.arg)),Object.keys(t.modifiers).length){t.arg||(t.exp||n.push("void 0"),n.push("void 0"));const i=ke("true",!1,s);n.push(mr(t.modifiers.map(o=>Ut(o,i)),s))}return Wi(n,t.loc)}function AX(t){let e="[";for(let n=0,r=t.length;n<r;n++)e+=JSON.stringify(t[n]),n<r-1&&(e+=", ");return e+"]"}function $_(t){return t==="component"||t==="Component"}const RX=(t,e)=>{if(gu(t)){const{children:n,loc:r}=t,{slotName:s,slotProps:i}=uk(t,e),o=[e.prefixIdentifiers?"_ctx.$slots":"$slots",s,"{}","undefined","true"];let a=2;i&&(o[2]=i,a=3),n.length&&(o[3]=na([],n,!1,!1,r),a=4),e.scopeId&&!e.slotted&&(a=5),o.splice(a),t.codegenNode=Bt(e.helper(Sv),o,r)}};function uk(t,e){let n='"default"',r;const s=[];for(let i=0;i<t.props.length;i++){const o=t.props[i];if(o.type===6)o.value&&(o.name==="name"?n=JSON.stringify(o.value.content):(o.name=mt(o.name),s.push(o)));else if(o.name==="bind"&&Li(o.arg,"name")){if(o.exp)n=o.exp;else if(o.arg&&o.arg.type===4){const a=mt(o.arg.content);n=o.exp=ke(a,!1,o.arg.loc)}}else o.name==="bind"&&o.arg&&zn(o.arg)&&(o.arg.content=mt(o.arg.content)),s.push(o)}if(s.length>0){const{props:i,directives:o}=Vv(t,e,s,!1,!1);r=i,o.length&&e.onError(yt(36,o[0].loc))}return{slotName:n,slotProps:r}}const Uv=(t,e,n,r)=>{const{loc:s,modifiers:i,arg:o}=t;!t.exp&&!i.length&&n.onError(yt(35,s));let a;if(o.type===4)if(o.isStatic){let h=o.content;h.startsWith("vue:")&&(h=`vnode-${h.slice(4)}`);const d=e.tagType!==0||h.startsWith("vnode")||!/[A-Z]/.test(h)?ko(mt(h)):`on:${h}`;a=ke(d,!0,o.loc)}else a=Ar([`${n.helperString(dd)}(`,o,")"]);else a=o,a.children.unshift(`${n.helperString(dd)}(`),a.children.push(")");let l=t.exp;l&&!l.content.trim()&&(l=void 0);let u=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const h=Ov(l),d=!(h||MN(l)),p=l.content.includes(";");(d||u&&h)&&(l=Ar([`${d?"$event":"(...args)"} => ${p?"{":"("}`,l,p?"}":")"]))}let f={props:[Ut(a,l||ke("() => {}",!1,s))]};return r&&(f=r(f)),u&&(f.props[0].value=n.cache(f.props[0].value)),f.props.forEach(h=>h.key.isHandlerKey=!0),f},fk=(t,e,n)=>{const{modifiers:r,loc:s}=t,i=t.arg;let{exp:o}=t;return o&&o.type===4&&!o.content.trim()&&(o=void 0),i.type!==4?(i.children.unshift("("),i.children.push(') || ""')):i.isStatic||(i.content=i.content?`${i.content} || ""`:'""'),r.some(a=>a.content==="camel")&&(i.type===4?i.isStatic?i.content=mt(i.content):i.content=`${n.helperString(hd)}(${i.content})`:(i.children.unshift(`${n.helperString(hd)}(`),i.children.push(")"))),n.inSSR||(r.some(a=>a.content==="prop")&&LS(i,"."),r.some(a=>a.content==="attr")&&LS(i,"^")),{props:[Ut(i,o)]}},LS=(t,e)=>{t.type===4?t.isStatic?t.content=e+t.content:t.content=`\`${e}\${${t.content}}\``:(t.children.unshift(`'${e}' + (`),t.children.push(")"))},CX=(t,e)=>{if(t.type===0||t.type===1||t.type===11||t.type===10)return()=>{const n=t.children;let r,s=!1;for(let i=0;i<n.length;i++){const o=n[i];if(ph(o)){s=!0;for(let a=i+1;a<n.length;a++){const l=n[a];if(ph(l))r||(r=n[i]=Ar([o],o.loc)),r.children.push(" + ",l),n.splice(a,1),a--;else{r=void 0;break}}}}if(!(!s||n.length===1&&(t.type===0||t.type===1&&t.tagType===0&&!t.props.find(i=>i.type===7&&!e.directiveTransforms[i.name])&&t.tag!=="template")))for(let i=0;i<n.length;i++){const o=n[i];if(ph(o)||o.type===8){const a=[];(o.type!==2||o.content!==" ")&&a.push(o),!e.ssr&&ir(o,e)===0&&a.push("1"),n[i]={type:12,content:o,loc:o.loc,codegenNode:Bt(e.helper(xp),a)}}}}},VS=new WeakSet,PX=(t,e)=>{if(t.type===1&&Gn(t,"once",!0))return VS.has(t)||e.inVOnce||e.inSSR?void 0:(VS.add(t),e.inVOnce=!0,e.helper(mu),()=>{e.inVOnce=!1;const n=e.currentNode;n.codegenNode&&(n.codegenNode=e.cache(n.codegenNode,!0,!0))})},Fv=(t,e,n)=>{const{exp:r,arg:s}=t;if(!r)return n.onError(yt(41,t.loc)),jf();const i=r.loc.source.trim(),o=r.type===4?r.content:i,a=n.bindingMetadata[i];if(a==="props"||a==="props-aliased")return n.onError(yt(44,r.loc)),jf();if(!o.trim()||!Ov(r))return n.onError(yt(42,r.loc)),jf();const l=s||ke("modelValue",!0),u=s?zn(s)?`onUpdate:${mt(s.content)}
70`:Ar(['"onUpdate:" + ',s]):"onUpdate:modelValue";let f;const h=n.isTS?"($event: any)":"$event";f=Ar([`${h} => ((`,r,") = $event)"]);const d=[Ut(l,t.exp),Ut(u,f)];if(t.modifiers.length&&e.tagType===1){const p=t.modifiers.map(_=>_.content).map(_=>(Ku(_)?_:JSON.stringify(_))+": true").join(", "),g=s?zn(s)?`${s.content}Modifiers`:Ar([s,' + "Modifiers"']):"modelModifiers";d.push(Ut(g,ke(`{ ${p} }`,!1,t.loc,2)))}return jf(d)};function jf(t=[]){return{props:t}}const OX=/[\w).+\-_$\]]/,NX=(t,e)=>{qo("COMPILER_FILTERS",e)&&(t.type===5?_d(t.content,e):t.type===1&&t.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&_d(n.exp,e)}))};function _d(t,e){if(t.type===4)US(t,e);else for(let n=0;n<t.children.length;n++){const r=t.children[n];typeof r=="object"&&(r.type===4?US(r,e):r.type===8?_d(t,e):r.type===5&&_d(r.content,e))}}function US(t,e){const n=t.content;let r=!1,s=!1,i=!1,o=!1,a=0,l=0,u=0,f=0,h,d,p,g,_=[];for(p=0;p<n.length;p++)if(d=h,h=n.charCodeAt(p),r)h===39&&d!==92&&(r=!1);else if(s)h===34&&d!==92&&(s=!1);else if(i)h===96&&d!==92&&(i=!1);else if(o)h===47&&d!==92&&(o=!1);else if(h===124&&n.charCodeAt(p+1)!==124&&n.charCodeAt(p-1)!==124&&!a&&!l&&!u)g===void 0?(f=p+1,g=n.slice(0,p).trim()):v();else{switch(h){case 34:s=!0;break;case 39:r=!0;break;case 96:i=!0;break;case 40:u++;break;case 41:u--;break;case 91:l++;break;case 93:l--;break;case 123:a++;break;case 125:a--;break}if(h===47){let N=p-1,O;for(;N>=0&&(O=n.charAt(N),O===" ");N--);(!O||!OX.test(O))&&(o=!0)}}g===void 0?g=n.slice(0,p).trim():f!==0&&v();function v(){_.push(n.slice(f,p).trim()),f=p+1}if(_.length){for(p=0;p<_.length;p++)g=kX(g,_[p],e);t.content=g,t.ast=void 0}}function kX(t,e,n){n.helper(Up);const r=e.indexOf("(");if(r<0)return n.filters.add(e),`${_l(e,"filter")}(${t})`;{const s=e.slice(0,r),i=e.slice(r+1);return n.filters.add(s),`${_l(s,"filter")}(${t}${i!==")"?","+i:i}`}}const FS=new WeakSet,DX=(t,e)=>{if(t.type===1){const n=Gn(t,"memo");return!n||FS.has(t)||e.inSSR?void 0:(FS.add(t),()=>{const r=t.codegenNode||e.currentNode.codegenNode;r&&r.type===13&&(t.tagType!==1&&Gp(r,e),t.codegenNode=Bt(e.helper(Wp),[n.exp,na(void 0,r),"_cache",String(e.cached.length)]),e.cached.push(null))})}},hk=(t,e)=>{if(t.type===1){for(const n of t.props)if(n.type===7&&n.name==="bind"&&(!n.exp||n.exp.type===4&&!n.exp.content.trim())&&n.arg){const r=n.arg;if(r.type!==4||!r.isStatic)e.onError(yt(52,r.loc)),n.exp=ke("",!0,r.loc);else{const s=mt(r.content);(Pv.test(s[0])||s[0]==="-")&&(n.exp=ke(s,!1,r.loc))}}}};function dk(t){return[[hk,PX,EX,DX,TX,NX,RX,ak,sk,CX],{on:Uv,bind:fk,model:Fv}]}function pk(t,e={}){const n=e.onError||Rv,r=e.mode==="module";e.prefixIdentifiers===!0?n(yt(47)):r&&n(yt(48));const s=!1;e.cacheHandlers&&n(yt(49)),e.scopeId&&!r&&n(yt(50));const i=Ve({},e,{prefixIdentifiers:s}),o=Ce(t)?Dv(t,i):t,[a,l]=dk();return XN(o,Ve({},i,{nodeTransforms:[...a,...e.nodeTransforms||[]],directiveTransforms:Ve({},l,e.directiveTransforms||{})})),QN(o,i)}const xX={DATA:"data",PROPS:"props",PROPS_ALIASED:"props-aliased",SETUP_LET:"setup-let",SETUP_CONST:"setup-const",SETUP_REACTIVE_CONST:"setup-reactive-const",SETUP_MAYBE_REF:"setup-maybe-ref",SETUP_REF:"setup-ref",OPTIONS:"options",LITERAL_CONST:"literal-const"},mk=()=>({props:[]});const Bv=Symbol(""),Hv=Symbol(""),$v=Symbol(""),jv=Symbol(""),yd=Symbol(""),qv=Symbol(""),Wv=Symbol(""),Gv=Symbol(""),Yv=Symbol(""),zv=Symbol("");bN({[Bv]:"vModelRadio",[Hv]:"vModelCheckbox",[$v]:"vModelText",[jv]:"vModelSelect",[yd]:"vModelDynamic",[qv]:"withModifiers",[Wv]:"withKeys",[Gv]:"vShow",[Yv]:"Transition",[zv]:"TransitionGroup"});let ba;function MX(t,e=!1){return ba||(ba=document.createElement("div")),e?(ba.innerHTML=`<div foo="${t.replace(/"/g,""")}">`,ba.children[0].getAttribute("foo")):(ba.innerHTML=t,ba.textContent)}const Kv={parseMode:"html",isVoidTag:nI,isNativeTag:t=>ZS(t)||eI(t)||tI(t),isPreTag:t=>t==="pre",isIgnoreNewlineTag:t=>t==="pre"||t==="textarea",decodeEntities:MX,isBuiltInComponent:t=>{if(t==="Transition"||t==="transition")return Yv;if(t==="TransitionGroup"||t==="transition-group")return zv},getNamespace(t,e,n){let r=e?e.ns:n;if(e&&r===2)if(e.tag==="annotation-xml"){if(t==="svg")return 1;e.props.some(s=>s.type===6&&s.name==="encoding"&&s.value!=null&&(s.value.content==="text/html"||s.value.content==="application/xhtml+xml"))&&(r=0)}else/^m(?:[ions]|text)$/.test(e.tag)&&t!=="mglyph"&&t!=="malignmark"&&(r=0);else e&&r===1&&(e.tag==="foreignObject"||e.tag==="desc"||e.tag==="title")&&(r=0);if(r===0){if(t==="svg")return 1;if(t==="math")return 2}return r}},gk=t=>{t.type===1&&t.props.forEach((e,n)=>{e.type===6&&e.name==="style"&&e.value&&(t.props[n]={type:7,name:"bind",arg:ke("style",!0,e.loc),exp:LX(e.value.content,e.loc),modifiers:[],loc:e.loc})})},LX=(t,e)=>{const n=Y_(t);return ke(JSON.stringify(n),!1,e,3)};function Ks(t,e){return yt(t,e)}const VX={X_V_HTML_NO_EXPRESSION:53,53:"X_V_HTML_NO_EXPRESSION",X_V_HTML_WITH_CHILDREN:54,54:"X_V_HTML_WITH_CHILDREN",X_V_TEXT_NO_EXPRESSION:55,55:"X_V_TEXT_NO_EXPRESSION",X_V_TEXT_WITH_CHILDREN:56,56:"X_V_TEXT_WITH_CHILDREN",X_V_MODEL_ON_INVALID_ELEMENT:57,57:"X_V_MODEL_ON_INVALID_ELEMENT",X_V_MODEL_ARG_ON_ELEMENT:58,58:"X_V_MODEL_ARG_ON_ELEMENT",X_V_MODEL_ON_FILE_INPUT_ELEMENT:59,59:"X_V_MODEL_ON_FILE_INPUT_ELEMENT",X_V_MODEL_UNNECESSARY_VALUE:60,60:"X_V_MODEL_UNNECESSARY_VALUE",X_V_SHOW_NO_EXPRESSION:61,61:"X_V_SHOW_NO_EXPRESSION",X_TRANSITION_INVA
70LID_CHILDREN:62,62:"X_TRANSITION_INVALID_CHILDREN",X_IGNORED_SIDE_EFFECT_TAG:63,63:"X_IGNORED_SIDE_EFFECT_TAG",__EXTEND_POINT__:64,64:"__EXTEND_POINT__"},UX={53:"v-html is missing expression.",54:"v-html will override element children.",55:"v-text is missing expression.",56:"v-text will override element children.",57:"v-model can only be used on <input>, <textarea> and <select> elements.",58:"v-model argument is not supported on plain elements.",59:"v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.",60:"Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.",61:"v-show is missing expression.",62:"<Transition> expects exactly one child element or component.",63:"Tags with side effect (<script> and <style>) are ignored in client component templates."},FX=(t,e,n)=>{const{exp:r,loc:s}=t;return r||n.onError(Ks(53,s)),e.children.length&&(n.onError(Ks(54,s)),e.children.length=0),{props:[Ut(ke("innerHTML",!0,s),r||ke("",!0))]}},BX=(t,e,n)=>{const{exp:r,loc:s}=t;return r||n.onError(Ks(55,s)),e.children.length&&(n.onError(Ks(56,s)),e.children.length=0),{props:[Ut(ke("textContent",!0),r?ir(r,n)>0?r:Bt(n.helperString(zu),[r],s):ke("",!0))]}},HX=(t,e,n)=>{const r=Fv(t,e,n);if(!r.props.length||e.tagType===1)return r;t.arg&&n.onError(Ks(58,t.arg.loc));const{tag:s}=e,i=n.isCustomElement(s);if(s==="input"||s==="textarea"||s==="select"||i){let o=$v,a=!1;if(s==="input"||i){const l=Xu(e,"type");if(l){if(l.type===7)o=yd;else if(l.value)switch(l.value.content){case"radio":o=Bv;break;case"checkbox":o=Hv;break;case"file":a=!0,n.onError(Ks(59,t.loc));break}}else VN(e)&&(o=yd)}else s==="select"&&(o=jv);a||(r.needRuntime=n.helper(o))}else n.onError(Ks(57,t.loc));return r.props=r.props.filter(o=>!(o.key.type===4&&o.key.content==="modelValue")),r},$X=tn("passive,once,capture"),jX=tn("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),qX=tn("left,right"),_k=tn("onkeyup,onkeydown,onkeypress"),WX=(t,e,n,r)=>{const s=[],i=[],o=[];for(let a=0;a<e.length;a++){const l=e[a].content;l==="native"&&ml("COMPILER_V_ON_NATIVE",n)||$X(l)?o.push(l):qX(l)?zn(t)?_k(t.content.toLowerCase())?s.push(l):i.push(l):(s.push(l),i.push(l)):jX(l)?i.push(l):s.push(l)}return{keyModifiers:s,nonKeyModifiers:i,eventOptionModifiers:o}},BS=(t,e)=>zn(t)&&t.content.toLowerCase()==="onclick"?ke(e,!0):t.type!==4?Ar(["(",t,`) === "onClick" ? "${e}" : (`,t,")"]):t,GX=(t,e,n)=>Uv(t,e,n,r=>{const{modifiers:s}=t;if(!s.length)return r;let{key:i,value:o}=r.props[0];const{keyModifiers:a,nonKeyModifiers:l,eventOptionModifiers:u}=WX(i,s,n,t.loc);if(l.includes("right")&&(i=BS(i,"onContextmenu")),l.includes("middle")&&(i=BS(i,"onMouseup")),l.length&&(o=Bt(n.helper(qv),[o,JSON.stringify(l)])),a.length&&(!zn(i)||_k(i.content.toLowerCase()))&&(o=Bt(n.helper(Wv),[o,JSON.stringify(a)])),u.length){const f=u.map(so).join("");i=zn(i)?ke(`${i.content}${f}`,!0):Ar(["(",i,`) + "${f}"`])}return{props:[Ut(i,o)]}}),YX=(t,e,n)=>{const{exp:r,loc:s}=t;return r||n.onError(Ks(61,s)),{props:[],needRuntime:n.helper(Gv)}},zX=(t,e)=>{t.type===1&&t.tagType===0&&(t.tag==="script"||t.tag==="style")&&e.removeNode()},yk=[gk],Ek={cloak:mk,html:FX,text:BX,model:HX,on:GX,show:YX};function KX(t,e={}){return pk(t,Ve({},Kv,e,{nodeTransforms:[zX,...yk,...e.nodeTransforms||[]],directiveTransforms:Ve({},Ek,e.directiveTransforms||{}),transformHoist:null}))}function XX(t,e={}){return Dv(t,Ve({},Kv,e))}const JX=Object.freeze(Object.defineProperty({__proto__:null,BASE_TRANSITION:vv,BindingTypes:xX,CAMELIZE:hd,CAPITALIZE:yN,CREATE_BLOCK:Tv,CREATE_COMMENT:xl,CREATE_ELEMENT_BLOCK:wv,CREATE_ELEMENT_VNODE:Dp,CREATE_SLOTS:Iv,CREATE_STATIC:bv,CREATE_TEXT:xp,CREATE_VNODE:kp,CompilerDeprecationTypes:_K,ConstantTypes:cK,DOMDirectiveTransforms:Ek,DOMErrorCodes:VX,DOMErrorMessages:UX,DOMNodeTransforms:yk,ElementTypes:lK,ErrorCodes:vK,FRAGMENT:hl,GUARD_REACTIVE_PROPS:Ml,IS_MEMO_SAME:Av,IS_REF:wN,KEEP_ALIVE:du,MERGE_PROPS:pu,NORMALIZE_CLASS:Hp,NORMALIZE_PROPS:dl,NORMALIZE_STYLE:$p,Namespaces:oK,NodeTypes:aK,OPEN_BLOCK:to,POP_SCOPE_ID:vN,PUSH_SCOPE_ID:EN,RENDER_LIST:Bp,RENDER_SLOT:Sv,RESOLVE_COMPONENT:Mp,RESOLVE_DIRECTIVE:Vp,RESOLVE_DYNAMIC_COMPONENT:Lp,RESOLVE_FILTER:Up,SET_BLOCK_TRACKING:mu,SUSPENSE:Np,TELEPORT:Ya,TO_DISPLAY_STRING:zu,TO_HANDLERS:jp,TO_HANDLER_KEY:d
70d,TRANSITION:Yv,TRANSITION_GROUP:zv,TS_NODE_TYPES:ON,UNREF:TN,V_MODEL_CHECKBOX:Hv,V_MODEL_DYNAMIC:yd,V_MODEL_RADIO:Bv,V_MODEL_SELECT:jv,V_MODEL_TEXT:$v,V_ON_WITH_KEYS:Wv,V_ON_WITH_MODIFIERS:qv,V_SHOW:Gv,WITH_CTX:qp,WITH_DIRECTIVES:Fp,WITH_MEMO:Wp,advancePositionWithClone:UK,advancePositionWithMutation:LN,assert:FK,baseCompile:pk,baseParse:Dv,buildDirectiveArgs:ck,buildProps:Vv,buildSlots:ik,checkCompatEnabled:ml,compile:KX,convertToBlock:Gp,createArrayExpression:Wi,createAssignmentExpression:dK,createBlockStatement:AN,createCacheExpression:IN,createCallExpression:Bt,createCompilerError:yt,createCompoundExpression:Ar,createConditionalExpression:pd,createDOMCompilerError:Ks,createForLoopParams:gd,createFunctionExpression:na,createIfStatement:hK,createInterpolation:uK,createObjectExpression:mr,createObjectProperty:Ut,createReturnStatement:mK,createRoot:SN,createSequenceExpression:pK,createSimpleExpression:ke,createStructuralDirectiveTransform:xv,createTemplateLiteral:fK,createTransformContext:KN,createVNodeCall:pl,errorMessages:TK,extractIdentifiers:cs,findDir:Gn,findProp:Xu,forAliasRE:BN,generate:QN,generateCodeFrame:QS,getBaseTransformPreset:dk,getConstantType:ir,getMemoedVNodeCall:FN,getVNodeBlockHelper:sa,getVNodeHelper:ra,hasDynamicKeyVBind:VN,hasScopeRef:Vr,helperNameMap:ta,injectProp:_u,isCoreComponent:Cv,isFnExpression:MN,isFnExpressionBrowser:xN,isFnExpressionNode:VK,isFunctionType:OK,isInDestructureAssignment:SK,isInNewExpression:IK,isMemberExpression:Ov,isMemberExpressionBrowser:DN,isMemberExpressionNode:MK,isReferencedIdentifier:bK,isSimpleIdentifier:Ku,isSlotOutlet:gu,isStaticArgOf:Li,isStaticExp:zn,isStaticProperty:PN,isStaticPropertyKey:NK,isTemplateNode:gl,isText:ph,isVPre:U_,isVSlot:Nv,locStub:zt,noopDirectiveTransform:mk,parse:XX,parserOptions:Kv,processExpression:yh,processFor:rk,processIf:nk,processSlotOutlet:uk,registerRuntimeHelpers:bN,resolveComponentType:lk,stringifyExpression:tk,toValidAssetId:_l,trackSlotScopes:sk,trackVForSlotScopes:bX,transform:XN,transformBind:fk,transformElement:ak,transformExpression:yX,transformModel:Fv,transformOn:Uv,transformStyle:gk,transformVBindShorthand:hk,traverseNode:Ju,unwrapTSNode:NN,validFirstIdentCharRE:Pv,walkBlockDeclarations:CN,walkFunctionParams:AK,walkIdentifiers:wK,warnDeprecation:EK},Symbol.toStringTag,{value:"Module"})),QX=Ev(JX),ZX=Ev(VL),eJ=Ev(PD);var HS;function tJ(){return HS||(HS=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=QX,n=ZX,r=eJ;function s(l){var u=Object.create(null);if(l)for(var f in l)u[f]=l[f];return u.default=l,Object.freeze(u)}var i=s(n);const o=Object.create(null);function a(l,u){if(!r.isString(l))if(l.nodeType)l=l.innerHTML;else return r.NOOP;const f=r.genCacheKey(l,u),h=o[f];if(h)return h;if(l[0]==="#"){const _=document.querySelector(l);l=_?_.innerHTML:""}const d=r.extend({hoistStatic:!0,onError:void 0,onWarn:r.NOOP},u);!d.isCustomElement&&typeof customElements<"u"&&(d.isCustomElement=_=>!!customElements.get(_));const{code:p}=e.compile(l,d),g=new Function("Vue",p)(i);return g._rc=!0,o[f]=g}n.registerRuntimeCompiler(a),t.compile=a,Object.keys(n).forEach(function(l){l!=="default"&&!Object.prototype.hasOwnProperty.call(t,l)&&(t[l]=n[l])})})(ng)),ng}var $S;function nJ(){return $S||($S=1,tg.exports=tJ()),tg.exports}var jS;function rJ(){if(jS)return Lr;jS=1;var t=Lr&&Lr.__awaiter||function(f,h,d,p){function g(_){return _ instanceof d?_:ne
70w d(function(v){v(_)})}return new(d||(d=Promise))(function(_,v){function N(C){try{T(p.next(C))}catch(x){v(x)}}function O(C){try{T(p.throw(C))}catch(x){v(x)}}function T(C){C.done?_(C.value):g(C.value).then(N,O)}T((p=p.apply(f,h||[])).next())})},e=Lr&&Lr.__generator||function(f,h){var d={label:0,sent:function(){if(_[0]&1)throw _[1];return _[1]},trys:[],ops:[]},p,g,_,v;return v={next:N(0),throw:N(1),return:N(2)},typeof Symbol=="function"&&(v[Symbol.iterator]=function(){return this}),v;function N(T){return function(C){return O([T,C])}}function O(T){if(p)throw new TypeError("Generator is already executing.");for(;d;)try{if(p=1,g&&(_=T[0]&2?g.return:T[0]?g.throw||((_=g.return)&&_.call(g),0):g.next)&&!(_=_.call(g,T[1])).done)return _;switch(g=0,_&&(T=[T[0]&2,_.value]),T[0]){case 0:case 1:_=T;break;case 4:return d.label++,{value:T[1],done:!1};case 5:d.label++,g=T[1],T=[0];continue;case 7:T=d.ops.pop(),d.trys.pop();continue;default:if(_=d.trys,!(_=_.length>0&&_[_.length-1])&&(T[0]===6||T[0]===2)){d=0;continue}if(T[0]===3&&(!_||T[1]>_[0]&&T[1]<_[3])){d.label=T[1];break}if(T[0]===6&&d.label<_[1]){d.label=_[1],_=T;break}if(_&&d.label<_[2]){d.label=_[2],d.ops.push(T);break}_[2]&&d.ops.pop(),d.trys.pop();continue}T=h.call(f,d)}catch(C){T=[6,C],g=0}finally{p=_=0}if(T[0]&5)throw T[1];return{value:T[0]?T[1]:void 0,done:!0}}};Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.useReCaptcha=Lr.VueReCaptcha=void 0;var n=iK(),r=nJ(),s=Symbol("VueReCaptchaInjectKey"),i={loadedWaiters:[],error:null};Lr.VueReCaptcha={install:function(f,h){var d=r.ref(!1),p=r.ref(void 0);f.config.globalProperties.$recaptchaLoaded=l(d),a(h).then(function(g){d.value=!0,p.value=g,f.config.globalProperties.$recaptcha=u(p),f.config.globalProperties.$recaptchaInstance=p,i.loadedWaiters.forEach(function(_){return _.resolve(!0)})}).catch(function(g){i.error=g,i.loadedWaiters.forEach(function(_){return _.reject(g)})}),f.provide(s,{instance:p,isLoaded:d,executeRecaptcha:u(p),recaptchaLoaded:l(d)})}};function o(){return r.inject(s)}Lr.useReCaptcha=o;function a(f){return t(this,void 0,void 0,function(){return e(this,function(h){switch(h.label){case 0:return[4,n.load(f.siteKey,f.loaderOptions)];case 1:return[2,h.sent()]}})})}function l(f){return function(){return new Promise(function(h,d){if(i.error!==null)return d(i.error);if(f.value)return h(!0);i.loadedWaiters.push({resolve:h,reject:d})})}}function u(f){var h=this;return function(d){return t(h,void 0,void 0,function(){var p;return e(this,function(g){switch(g.label){case 0:return[4,(p=f.value)===null||p===void 0?void 0:p.execute(d)];case 1:return[2,g.sent()]}})})}}return Lr}var sJ=rJ();const iJ=sn(t=>{const e=Zt();t.vueApp.use(sJ.VueReCaptcha,{siteKey:e.public.recaptchaSiteKey,loaderOptions:{useEnterprise:!0,autoHideBadge:!1,explicitRenderParameters:{badge:"bottomleft"}}})}),qS="fx_sid",vk="fx_evq",j_="fx_attr",oJ=10,aJ=100,lJ=["register_complete","begin_checkout","download_template"];function sg(){try{const t=sessionStorage.getItem(vk),e=t?JSON.parse(t):[];return Array.isArray(e)?e:[]}catch{return[]}}function ig(t){try{sessionStorage.setItem(vk,JSON.stringify(t.slice(-aJ)))}catch{}}function cJ(){let t=sessionStorage.getItem(qS);return t||(t=typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,12)}`,sessionStorage.setItem(qS,t)),t}function uJ(){try{const t=localStorage.getItem(j_);return t?JSON.parse(t):void 0}catch{return}}const fJ=()=>{const t=()=>{try{if(localStorage.getItem(j_))return;const r=new URLSearchParams(window.location.search),s={lp:window.location.pathname,t:Date.now()},i=r.get("utm_source"),o=r.get("utm_medium"),a=r.get("utm_campaign"),l=r.get("utm_term"),u=r.get("utm_content");i&&(s.src=i),o&&(s.med=o),a&&(s.cmp=a),l&&(s.term=l),u&&(s.cnt=u);const f=document.referrer;f&&!f.startsWith(window.location.origin)&&(s.ref=f),localStorage.setItem(j_,JSON.stringify(s))}catch{}},e=(r=!1)=>{try{const s=sg();if(s.length===0)return;ig([]);const i={sid:cJ(),events:s},o=localStorage.getItem($r.UID);o&&(i.uid=o);const a=uJ();if(a&&(i.attribution=a),r&&navigator.sendBeacon){navigator.sendBeacon("/api/track",new Blob([JSON.stringify(i)],{type:"text/plain"}));return}$fetch("/api/track",{method:"POST",body:i}).catch(()=>{ig([...s,...sg()])})}catch{}};return{track:(r,s)=>{try{const i=sg(),o={n:r,p:window.location.pathname,t:Date.now()};s&&Object.keys(s).length>0&&(o.m=s),i.push(o),ig(i),(i.length>=oJ||lJ.includes(r))&&e()}catch{}},flush:e,captureAttribution:t}},hJ=sn(()=>{const{captureAttribution:t,flush:e}
70=fJ();t(),document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&e(!0)}),window.addEventListener("pagehide",()=>e(!0))}),dJ=sn(t=>(t.vueApp.use(HO,{autoClose:2e3,position:Je.POSITION.BOTTOM_LEFT}),{provide:{toast:Je}}));function WS(){try{const t=localStorage.getItem($r.WISHLIST);return t?JSON.parse(t):[]}catch{return[]}}function og(t){try{localStorage.setItem($r.WISHLIST,JSON.stringify(t))}catch{}}const pJ=_v("wishlist",()=>{const t=Pe(WS()),e=de(()=>t.value.length);function n(l){return t.value.some(u=>u.templateId===l)}function r(l){n(l.templateId)?i(l.templateId):s(l)}function s(l){n(l.templateId)||(t.value=[...t.value,l],og(t.value))}function i(l){t.value=t.value.filter(u=>u.templateId!==l),og(t.value)}function o(){t.value=[],og(t.value)}function a(){t.value=WS()}return{items:t,itemCount:e,hasItem:n,toggle:r,addItem:s,removeItem:i,clear:o,hydrateFromStorage:a}}),mJ=sn(()=>{pJ().hydrateFromStorage()}),gJ=[iU,uU,kz,Dz,xz,Mz,Lz,Gz,Yz,zz,Kz,Qz,eK,rK,iJ,hJ,dJ,mJ];function _J(t,e){const n=e/t*100;return 2/Math.PI*100*Math.atan(n/50)}function yJ(t={}){const{duration:e=2e3,throttle:n=200,hideDelay:r=500,resetDelay:s=400}=t,i=t.estimatedProgress||_J,o=ht(),a=or(0),l=or(!1),u=or(!1);let f=!1,h,d,p,g;const _=(R={})=>{T(),u.value=!1,v(0,R)};function v(R=0,w={}){if(o.isHydrating)return;if(R>=100)return O({force:w.force});C(),a.value=R<0?0:R;const E=w.force?0:n;E?d=setTimeout(()=>{l.value=!0,x()},E):(l.value=!0,x())}function N(){p=setTimeout(()=>{l.value=!1,g=setTimeout(()=>{a.value=0},s)},r)}function O(R={}){a.value=100,f=!0,C(),T(),R.error&&(u.value=!0),R.force?(a.value=0,l.value=!1):N()}function T(){clearTimeout(p),clearTimeout(g)}function C(){clearTimeout(d),cancelAnimationFrame(h)}function x(){f=!1;let R;function w(E){if(f)return;R??=E;const b=E-R;a.value=Math.max(0,Math.min(100,i(e,b))),h=requestAnimationFrame(w)}h=requestAnimationFrame(w)}let L=()=>{};{const R=o.hook("page:loading:start",()=>{_()}),w=o.hook("page:loading:end",()=>{O()}),E=o.hook("vue:error",()=>O());L=()=>{E(),R(),w(),C()}}return{_cleanup:L,progress:de(()=>a.value),isLoading:de(()=>l.value),error:de(()=>u.value),start:_,set:v,finish:O,clear:C}}function EJ(t={}){const e=ht(),n=e._loadingIndicator||=yJ(t);return bu()&&(e._loadingIndicatorDeps||=0,e._loadingIndicatorDeps++,za(()=>{e._loadingIndicatorDeps--,e._loadingIndicatorDeps===0&&(n._cleanup(),delete e._loadingIndicator)})),n}const vJ=Nt({name:"NuxtLoadingIndicator",props:{throttle:{type:Number,default:200},duration:{type:Number,default:2e3},hideDelay:{type:Number,default:500},resetDelay:{type:Number,default:400},height:{type:Number,default:3},color:{type:[String,Boolean],default:"repeating-linear-gradient(to right,#00dc82 0%,#34cdfe 50%,#0047e1 100%)"},errorColor:{type:String,default:"repeating-linear-gradient(to right,#f87171 0%,#ef4444 100%)"},estimatedProgress:{type:Function,required:!1}},setup(t,{slots:e,expose:n}){const{progress:r,isLoading:s,error:i,start:o,finish:a,clear:l}=EJ({duration:t.duration,throttle:t.throttle,hideDelay:t.hideDelay,resetDelay:t.resetDelay,estimatedProgress:t.estimatedProgress});return n({progress:r,isLoading:s,error:i,start:o,finish:a,clear:l}),()=>Et("div",{class:"nuxt-loading-indicator",style:{position:"fixed",top:0,right:0,left:0,pointerEvents:"none",width:"auto",height:`${t.height}px`,opacity:s.value?1:0,background:i.value?t.errorColor:t.color||void 0,backgroundSize:`${r.value>0?100/r.value*100:0}% auto`,transform:`scaleX(${r.value}%)`,transformOrigin:"left",transition:"transform 0.1s, height 0.4s, opacity 0.4s",zIndex:999999}},e)}}),Tk=(t="RouteProvider")=>Nt({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,s={};for(const i in e.route)Object.defineProperty(s,i,{get:()=>n===e.renderKey?e.route[i]:r[i],enumerable:!0});return fs(Yo,Fr(s)),()=>e.vnode?Et(e.vnode,{ref:e.vnodeRef}):e.vnode}}),TJ=Tk(),GS=new WeakMap,wJ=Nt({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 s=ht(),i=Pe(),o=Wt(Yo,null);let a;r({pageRef:i});const l=Wt(gR,null);let u;const f=s.deferHydration();if(s.isHydrating){const d=s.hooks.hookOnce("app:error",f);Vn().beforeEach(d)}t.pageKey&&br(()=>t.pageKey,(d,p)=>{d!==p&&s.callHook("page:loading:start")});let h=!1;{const d=Vn().beforeResolve(()=>{h=!1});aa(()=>{d()})}return()=>Et(HR,{name:t.name,route:t.route,...e},{default:d=>{const p=SJ(o,d.route,d.Component),g=o&&o.matched.length===d.route.matched.length;if(!d.Component){if(u&&!g)return u;f();return}if(u&&l&&!l.isCurrent(d.route))return u;if(p&&o&&(!l||l?.isCurrent(o)))return g?u:null;const _=qg(d,t.pageKey),v=IJ(o,d.route,d.Component);!s.isHydrating&&a===_&&!v&&Xn(()=>{h=!0,s.callHook("page:loading:end")}),a=_;const N=!!(t.transition??d.route.meta.pageTransition??Dw),O=N&&bJ([t.transition,d.route.meta.pageTransition,Dw,{onAfterLeave(){delete s._runningTransition,s.callHook("page:transition:finish",d.Component)}}]),T=t.keepalive??d.route.meta.keepalive??$V;return u=jR(N&&O,vF(T,Et(Ud,{suspensible:!0,onPending:()=>{N&&(s._runningTransition=!0),s.callHook("page:start",d.Component)}
70,onResolve:()=>{Xn(()=>s.callHook("page:finish",d.Component).then(()=>{if(delete s._runningTransition,!h&&!v)return h=!0,s.callHook("page:loading:end")}).finally(f))}},{default:()=>{const C={key:_||void 0,vnode:n.default?AJ(n.default,d):d.Component,route:d.route,renderKey:_||void 0,trackRootNodes:N,vnodeRef:i};if(!T)return Et(TJ,C);const x=d.Component.type,L=x;let R=GS.get(L);return R||(R=Tk(x.name||x.__name),GS.set(L,R)),Et(R,C)}}))).default(),u}})}});function bJ(t){const e=[];for(const n of t)n&&e.push({...n,onAfterLeave:n.onAfterLeave?Ly(n.onAfterLeave):void 0});return Ay(...e)}function SJ(t,e,n){if(!t)return!1;const r=e.matched.findIndex(s=>s.components?.default===n?.type);return!r||r===-1?!1:e.matched.slice(0,r).some((s,i)=>s.components?.default!==t.matched[i]?.components?.default)||n&&qg({route:e,Component:n})!==qg({route:t,Component:n})}function IJ(t,e,n){return t?e.matched.findIndex(s=>s.components?.default===n?.type)<e.matched.length-1:!1}function AJ(t,e){const n=t(e);return n.length===1?Et(n[0]):Et(St,void 0,n)}const RJ=Nt({name:"LayoutLoader",inheritAttrs:!1,props:{name:String,layoutProps:Object},setup(t,e){return()=>Et(Mi[t.name],t.layoutProps,e.slots)}}),CJ={name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},PJ=Nt({name:"NuxtLayout",inheritAttrs:!1,props:CJ,setup(t,e){const n=ht(),r=Wt(Yo),i=!r||r===Hd()?$R():r,o=de(()=>{let f=ve(t.name)??i?.meta.layout??"default";return f&&!(f in Mi)&&t.fallback&&(f=ve(t.fallback)),f}),a=or();e.expose({layoutRef:a});const l=n.deferHydration();if(n.isHydrating){const f=n.hooks.hookOnce("app:error",l);Vn().beforeEach(f)}let u;return()=>{const f=o.value&&o.value in Mi,h=i?.meta.layoutTransition??HV,d=u;return u=o.value,jR(f&&h,{default:()=>Et(Ud,{suspensible:!0,onResolve:()=>{Xn(l)}},{default:()=>Et(OJ,{layoutProps:Or(e.attrs,{ref:a}),key:o.value||void 0,name:o.value,shouldProvide:!t.name,isRenderingNewLayout:p=>p!==d&&p===o.value,hasTransition:!!h},e.slots)})}).default()}}}),OJ=Nt({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&&fs(gR,{isCurrent:i=>n===(i.meta.layout??"default")});const r=Wt(Yo);if(r&&r===Hd()){const i=$R(),o={};for(const a in i){const l=a;Object.defineProperty(o,l,{enumerable:!0,get:()=>t.isRenderingNewLayout(t.name)?i[l]:r[l]})}fs(Yo,Fr(o))}return()=>!n||typeof n=="string"&&!(n in Mi)?e.slots.default?.():Et(RJ,{key:n,layoutProps:t.layoutProps,name:n},e.slots)}}),NJ=Nt({__name:"default",props:{size:{default:10},color:{default:"#4f46e5"},inline:{type:Boolean,default:!1}},setup(t){return(e,n)=>($e(),Lt("span",{class:_r(["loader",{"loader-inline":t.inline}]),style:io({"--loader-size":`${t.size}px`,"--loader-color":t.color})},null,6))}}),zp=(t,e)=>{const n=t.__vccOpts||t;for(const[r,s]of e)n[r]=s;return n},kJ=zp(NJ,[["__scopeId","data-v-21ae0484"]]),DJ=["type","disabled"],wk=Nt({__name:"Button",props:{variant:{default:"solid"},color:{default:"primary"},size:{default:"md"},shape:{default:"pill"},fullWidth:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{default:"button"}},emits:["click"],setup(t,{emit:e}){const n=t,r=e,s=de(()=>n.disabled||n.loading),i=T=>{s.value||r("click",T)},o=de(()=>n.shape==="pill"?"rounded-full":"rounded-lg"),a={sm:"px-4 py-1.5 text-xs",md:"px-5 py-2.5 text-sm",lg:"px-8 py-3 text-base"},l=de(()=>a[n.size]),u={sm:4,md:5,lg:6},f=de(()=>u[n.size]),h={primary:"#4f46e5",neutral:"#374151",dark:"#0f172a",success:"#059669",warning:"#d97706",danger:"#dc2626",light:"#4338ca"},d=de(()=>n.color==="light"?h.light:n.variant==="solid"||n.variant==="gradient"?"#ffffff":h[n.color]),N={solid:{primary:"bg-indigo-600 text-white hover:bg-indigo-700",neutral:"bg-gray-200 text-gray-800 hover:bg-gray-300",dark:"bg-slate-900 text-white hover:bg-slate-800",success:"bg-emerald-600 text-white hover:bg-emerald-700",warning:"bg-amber-500 text-white hover:bg-amber-600",danger:"bg-red-600 text-white hover:bg-red-700",light:"bg-white text-indigo-700 hover:bg-indigo-50"},outline:{primary:"border-2 border-indigo-600 text-indigo-600 hover:bg-indigo-600 hover:text-white",neutral:"border border-gray-300 text-gray-700 hover:bg-gray-50",dark:"border-2 border-slate-900 text-slate-900 hover:bg-slate-900 hover:text-white",success:"border-2 border-emerald-600 text-emerald-600 hover:bg-emerald-600 hover:text-white",warning:"border-2 border-amber-500 text-amber-600 hover:bg-amber-500 hover:text-white",danger:"border-2 border-red-600 text-red-600 hover:bg-red-600 hover:text-white",light:"border-2 border-white text-white hover:bg-white hover:text-indigo-700"},ghost:{primary:"text-indigo-600 hover:text-indigo-700",neutral:"text-gray-600 hover:text-gray-800",dark:"text-slate-700 hover:text-slate-900",success:"text-emerald-600 hover:text-emerald-700",warning:"text-amber-600 hover:text-amber-700",danger:"text-red-600 hover:text-red-700",light:"text-white hover:text-white/80"},gradient:{primary:"bg-gradient-to-r from-indigo-600 to-violet-600 text-white hover:from-indigo-700 hover:to-violet-700",neutral:"bg-gradient-to-r from-gray-600 to-gray-700 text-white hover:from-gray-700 hover:to-gray-800",dark:"bg-gradient-to-r from-slate-800 to-slate-900 text-white hover:from-slate-900 hover:to-black",success:"bg-gradient-to-r from-emerald-600 to-teal-600 text-white hover:from-emerald-700 hover:to-teal-700",warning:"bg-gradient-to-r from-amber-500 to-orange-500 text-white hover:from-amber-600 hover:to-orange-600",danger:"bg-gradient-to-r from-red-600 to-rose-600 text-white hover:from-red-700 hover:to-rose-700",light:"bg-white text-indigo-700 hover:bg-indigo-50"}},O=de(()=>N[n.variant][n.color]);return(T,C)=>{const x=kJ;return $e(),Lt("button",{type:t.type,disabled:ve(s),class:_r(["inline-flex items-center justify-center gap-2 font-semibold transition-colors disabled:opacity-50 disabled:cursor-not-allowed disabled:pointer-events-none",ve(o),ve(l),ve(O),t.fullWidth?"w-full":""]),onClick:i}
70,[t.loading?($e(),Nn(x,{key:0,inline:"",size:ve(f),color:ve(d)},null,8,["size","color"])):Xa("",!0),Mo(T.$slots,"default")],10,DJ)}}}),xJ=Object.assign({name:"NuxtErrorBoundary",inheritAttrs:!1},{__name:"nuxt-error-boundary",emits:["error"],setup(t,{expose:e,emit:n}){const r=n,s=or(null);function i(){s.value=null}{let o=function(...l){const[u,f,h]=l;r("error",u),a.hooks.callHook("vue:error",u,f,h),s.value=u};const a=ht();Md((l,u,f)=>(a.isHydrating?Gu(()=>o(l,u,f)):o(l,u,f),!1))}return e({error:s,clearError:i}),(o,a)=>s.value?Mo(o.$slots,"error",z_(Or({key:0},{error:s.value,clearError:i}))):Mo(o.$slots,"default",{key:1})}});function bk(t,e){return $e(),Lt("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[me("path",{"fill-rule":"evenodd",d:"M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z","clip-rule":"evenodd"})])}const Sk={MODAL:9999,PROMO_OVERLAY:1e3},MJ={class:"px-4 py-3 border-b border-[#a8a8a8] flex justify-between items-center"},LJ={class:"text-xl font-semibold text-primary"},VJ={class:"py-4 px-4"},UJ={class:"p-2 flex justify-end"},FJ={__name:"PopupLayout",props:{isVisible:{type:Boolean,required:!0},title:{type:String,default:"Flexa Intel"},widthClass:{type:String,default:""},hideClose:{type:Boolean,default:!1},bare:{type:Boolean,default:!1},zIndex:{type:Number,default:Sk.MODAL},transition:{type:Boolean,default:!1},backdropClass:{type:String,default:""},closeOnBackdrop:{type:Boolean,default:!0}},emits:["onclose"],setup(t,{emit:e}){const n=t,r=e,s=()=>r("onclose"),i=()=>{n.closeOnBackdrop&&s()};return(o,a)=>($e(),Nn(FI,{to:"body"},[_e(yy,{name:t.transition?"modal":void 0},{default:Cn(()=>[t.isVisible?($e(),Lt("div",{key:0,class:"popup-root",style:io({zIndex:t.zIndex})},[me("div",{class:_r(["popup-backdrop",t.backdropClass]),onClick:i},null,2),t.bare?($e(),Lt("div",{key:0,class:"popup-bare",onClick:Ty(i,["self"])},[Mo(o.$slots,"default",{close:s},void 0,!0)])):($e(),Lt("div",{key:1,class:_r(["popup-panel bg-white rounded-lg shadow-lg max-h-[90vh] overflow-y-auto",[t.widthClass&&t.widthClass.length>0?t.widthClass:"","w-96"]])},[me("header",MJ,[me("h2",LJ,fr(t.title),1),t.hideClose?Xa("",!0):($e(),Nn(ve(bk),{key:0,class:"w-6 h-6 cursor-pointer text-[#585858] hover:text-primary",onClick:s}))]),me("main",VJ,[Mo(o.$slots,"body",{},void 0,!0)]),me("footer",UJ,[Mo(o.$slots,"footer",{},void 0,!0)])],2))],4)):Xa("",!0)]),_:3},8,["name"])]))}},BJ=zp(FJ,[["__scopeId","data-v-32897c83"]]),HJ="data:image/webp;base64,UklGRsoMAABXRUJQVlA4WAoAAAAQAAAAKwEAKwEAQUxQSNkEAAABhyAQIBzwP2whIpJOULBtJ44kfTEZY0Da/3YjM/GEUFUPGdH/CcCXoXSZYi8Bb7gHzNxXmWj1z4sytcQyVU5Pczy1JNNND2syM8/zYf+oXaZWZcL1SVGmFmTK4TmO51bmVB5DTebW59QfU2RyMumnJDEUz4ZCTQyliKEkMRTPhkJNDKWIoSQxFM+GQl0M5ZDRLTzeLcwmr9xqTn5BvLw4l0RrQf3NPo+4Eoe8f0/LsMkUe1oDL7OsfgGoT0Nk098hM62kvCxz7V51QWbLXnHE0xH2eqsyYfZayzLlTjrzMumqM7RJSdaZ40lJUBnirLrOsE9Kss7QJsWkM8dzkqIzxEkJ6Qx5UllpqHPqWiOekkSlIcypaA15Sqw21BlJUBvxUMlPP+oNstoQhgJeMNarqt6QXwiIfI0oDvWNEC7yiqP+RtivCYqDfyW6JmsO2xvhWBYcb5QuOXRH/YXCJVV38C+EhcFmKjhMhbqlwJsKNlNBMRVqlgLPloJkKiimQs1S4J2lvOmv/3799+u/0XDJbir5/wG4Lo+vCwWqT9uxUkB+FCcsFiI/p3ssF3x7SiUsGOh4xo4vlwvID+CIZUPkuzWPhYNr9zoISwcqd8r46ZoB2204wgAQ+B7NwQTg2h0KwQiAct2G4ZVDuogDTAGer2gOxgBq5xWCOQDlrIRzlw+Jz2APo4DvY41gFqA6UnC+BQD7jzjBOJD4u+5hHvDtq0owENDxseNiMwCycIKZIHoYyh1//TdRnhNr7ZjTobU0p6g19Bl1qD3MKOgNeT4Zmt9ns0P3kWfCEdqnrc2ibYQVpDBFwi+K3d5Erb0EXVAR5VavCM+iXk5q8CwaTkqgLipmr4NdlFxVQKLmoIFNT0UDh566BrqeRAPy2y4XUj45eWPwW2W5skc7oK3J9cUIKLPcsphAZLlrWD865L7H8vkud149z2InnsVOiOXebe2q3Hxbuiw3b1g5xzdjv3RF7l0dVs7JnfsRcf+1KCf1PTq85FKQnNoTXnQp0hm84VWX4jiBPayCZJw9zCKOsYdd5LENhlGHKiyDh4JpyGiHZYSh3VSCqThTgWlsppKHnKlEU9lNpZtGGpJoGWGsmYpkUxFvF/EM9maxnyEcjYL4FJGdTKLI2ZzJHKjIlUcOX7vFczHvtdYud64bLVksXZ7JYbnczvLgtFa0y7PZrVRkeXpZJyrygstETd4wLJJnsRPHYifU5CWxRIe8ZFmiTV6S3Qo5Ob3XWmu/UcIK1XN6Dvgy34YTVijImTXg+7twcViiegJv+OlJLQfCjx2erCov493jqsPhVVVVxhrhIo54WVXxEHtcxB7rFmQ44qoNC5eHDlzVsXJ1yF22L10fOXDZtnTD8bpgCbCUairFVPJfJP26fcQtXR2oZ7QBxtLlAaExJ4PH2oWRNJZHtrUDD3Qa8TLqFq8MSBmgNnJg8fyIlB9Rk9GweqgjctB3octow/KFIeESAFCqMh7WD8fQZ5dTKwyA+Ixz2VkA4l0STAD7PQqMAOUODa/d1YXjukbvdeipf4NyVSO896an8h32axrhxUlP4QeIfEHBu+9aqvgxHWdxxMtT1xH7nwGhnlIIr+9ZRQnj4RgqHjP0rB9OONVt9Qdtc5gkFe1Uj/N9SDmHgKm6vemll4AvAQBWUDggygcAABA6AJ0BKiwBLAE+USaPRiOiISEncSkocAoJY27hb75E/jHqA6A/AD9AP4AjVGb/uH5GbIT0D8h/7J+yPT47T+Bf6P+u2ZPeOfjn+Z/vP48e47+yew7zAP0h/0H3FdwDzAfz/+Zf9T/ge7z/Zv9V/qvcB+zn+39wD+e/zr/se0l/qvYg9AD+b/5//6+zR/sP2K+Bb9pP3R+BH+b/2b/z/uF/////9AHoAegB6
705/QD+AfgB+gH5+9/hKLsYJgu8mqz7+Qp9joOWKZVKh51aFifRags3emA+aToXZ4OAy0vPsa4+00nRrp0KhS0b76NNw1EeM8FDlUojLJ4+Qp8k1BatL48O/dIrF5eoPsdBVl4cuEoyQQjPC7Tou4+Qp8k1tgGlT103l5OhdBNyPCU/NPXTeXk6F008uCHnIUY5iIYx0badOfMzIU+wXfND01NnzXgU8iZEXMIPHKG1xgms3V8L/4oo+gmSc4BI+XHaPIyyfv1F4XR93i5v1R74zmZkKfY6DleSRiH2fXZ+fY6DlvtLnLYo/7JU9dOhdEpmtjeHXnlpUYux12fn2Og5ZTKvYaNajkVUJU4mCj106FNgJJp0XcfIU+xzgdDbihEQAILf2Y5058OXChq4wAAPebE+V84H7nHhVcArx0bifFutaehlF8Us+KWeJxWUU5sr7yHbx7OxPgO9LfhCHbmZ3GcDV/upxh9BHGqC//SLP/5Ma//8lKXWo4s1eZBAH0FIwuCGl6h2sdxqUIl4OacwEQLgHMTPNUX+OY/+tdzNzY+YqDbQ0pWR5BY3yAQej0coE3cQlzpwdctG7QD2F/FuEOtOfiVkPlcCZleT9q9DaWxTPJ8mwd6dB+EUaXZNqFBIwVW7pSbavpaVF8QmqbM3gQPk3ZPk+PY9MRJ1SNzmz3WN4/hM0wnqL6ILnUZaTKkawKcX0SRlw6msUY78uJsXgVc4hCyBES2/ZXUwc9iCiBB3Hd46yAkpWDI+pENtoz6A+Weqi1g8AGXV6E4qE1IQTHgj/BKopt8pS7whxLTAZxp7guj1GDtvkIYCZx/4PkIgZpoE0hEFNlgf6KpeC6iqn3jZbmWbvhAZ8F10lrLDolJLT7SwaDOGNALrtvRH1gfEHKjhhLcGFOqkeVlrfWCLEQA/gpMtj7C9QKq9VFN1xUgDSIspUEt+Z6yTegremtxiGnd3NdycB0Jd/C2pNT27ycgANOEgubYrTr08dqGWNWrhc9j3odg/phRHcGoB5Ge32fMoEv0qG/tyhuQjpDY99SzVYhJXBo6Ed92H98zAhWDDkB3AO5wsQZCVZ8l187g94AQZl7RunxBqDIbLcyzd8e09Ba1NIxQpM9Ae4UZXU3RQkKt2C5CKBdmlE9jtS13yuh9j9qi/6crHEvDTBDFg5x57FKTq76wDv8vwMYAdnE74AFBkANH3OyEst/+zDaCysHTHDMPBHxF5miKC/imFxRLP6clvBc6k4MMRV6OGQ/UgqgFVjX+JRagYz16zwtj+77IzsDCUzn/wUryYCAbgN7VvgG8ywBr4hE5s2dMWaelB096ehw3DDzqm+NjSDFapOIAykh9m2Mxrs5/D6GXqmOwaFj6j0Rtc/GzIk6ifURfh1zr8QKu+doTds6QY7yAJOYAXxTlGtj+ykc4/cyE1/Bn2T77w4d6WMYiXv+J67MX5cr35P1YSrxOUXnRaGyjxzW73sBOes6zrp7WjgvKIyIS68rv2FWLIA5MM8rCx7GtAN35zqLXPmTx3JQpwAefSVhcimH8dGJl3aN0+PBjhVlKoilEOV2Wu2lp3bS07tpty5+9McyJYGWimcPSGhUK/Uwlb72HNZIUX5MCczqm8R4V3DF6DCx+j6vsvV7P8cd+Hxa8+ZBmjUKOWt7Bwb1NVxAPRfSm3ZxDeMAK7poSqLywyAlluCLPFYgvVzEDDmgdE93yLs4qAd1NPzxGYmkBI9DHrGC71eR/zdwXq+Ol5kSy+Bz/yEtJTblBq9ddHbGhfgyGQgl8QBJB/yoT8v6bWMvtxX9yf4BWoezB84DM8rn1gA3gBxb7jQG9TkwJzJlLDcbuF//ugBYoYkHXTVELDhgTJe6z8fe0vm1+h6aiaREL++roHN60FxlMf//ycsesAG8AOOQtNuR7hLH+kFwDmKRm8l4s9JnG5eaJ7b9R0yULdDT+kbAOM8SfT1zQABAFKXweYnp/AS13nTAaVJ1HYEIdzMz3jZnd0UGK2vroyvYmti2HOHB+aYZB6BzM6YmH1VAkX//kLJttVWCfBP01Vx1jy/fZcLiBjXVuub5CYxbk/gClQl/SA563lGrZqzB8JgjzSgPIZmrD8hbM3pwIG45hLciXdsKv4B/KbZ7fN7x2LUccnWkeJqAIlBJI3KICW+fL58yyop21s6XHWlWAVfv/1bB///k5gbA2eRemyyUs9yCO505b9Cue87yd+hjuabFP3HqRM6IEKtkZ7Qg3q4/Iwn3PycpCf/9JZf/+kRqAjJwIY+urfo+yMt+PCi5JkBqQ1QMP53MvwN4yRQSCJpT/JXUCX5s0dWnFeZQfbUuCY+pNVnQfuunv3WsnCqbPw9BfAaiZvwYTXfkscpkLlX4fYnD/eUe8swDW/3a1LobbHEG84kwwzPIgZPiOhqmlqVEP3kip3Ht7Z3AaAAA",$J=globalThis.setInterval,jJ={class:"popup"},qJ={class:"popup-content"},WJ={class:"popup-left"},GJ={class:"flex justify-center items-center gap-2 bg-white rounded-full shadow-[0_4px_20px_0_#c1cdff] px-6 py-[0.625rem] mx-auto mb-5 w-fit icons-container md:gap-4"},YJ=["src"],zJ={class:"countdown"},KJ={class:"countdown-item"},XJ={class:"countdown-item"},JJ={class:"countdown-item"},QJ={class:"countdown-item"},ZJ={class:"popup-right"},eQ={class:"custom-list"},tQ=Nt({__name:"Discount",props:{expiryDate:{}},setup(t){const e=t,n=yv(),{isOpenPopupDiscount:r}=Cz(n),s=Pe([{title:"Full Flexibility",description:"Pivot, analyze, and customize pre- or post-publish."},{title:"Auto Variance",description:"Instantly view sales, finance, or inventory deltas."},{title:"Pivot on the Fly",description:"Pivot tables post-publish for flexible insights."}
70,{title:"Interactive Formulas",description:"Customize calcs directly in the UIâno code needed."},{title:"Charts in Tables",description:"Visualize trends inline for faster analysis."},{title:"Conditional Formatting",description:"Highlight key metrics with smart visual cues."}]),i=()=>{u(),$d("/pricing-tables")},o=Pe({days:0,hours:0,minutes:0,seconds:0}),a=()=>{const f=e.expiryDate||"";if(!f){o.value={days:0,hours:0,minutes:0,seconds:0};return}const h=new Date(f);if(isNaN(h.getTime()))return;const d=Date.now(),p=h.getTime()-d;if(p<=0){o.value={days:0,hours:0,minutes:0,seconds:0};return}o.value={days:Math.floor(p/(1e3*60*60*24)),hours:Math.floor(p%(1e3*60*60*24)/(1e3*60*60)),minutes:Math.floor(p%(1e3*60*60)/(1e3*60)),seconds:Math.floor(p%(1e3*60)/1e3)}};let l=null;br(r,f=>{f?(a(),l=$J(a,1e3)):l&&(clearInterval(l),l=null)},{immediate:!0}),la(()=>{l&&clearInterval(l)});const u=()=>{n.setOpenPopupDiscount(!1)};return(f,h)=>{const d=BJ;return $e(),Nn(d,{bare:"","is-visible":ve(r),"z-index":ve(Sk).PROMO_OVERLAY,onOnclose:u},{default:Cn(()=>[me("div",jJ,[me("button",{class:"close-btn","aria-label":"Close",onClick:u},[_e(ve(bk),{class:"h-6 w-6"})]),me("div",qJ,[me("div",WJ,[h[4]||(h[4]=me("h4",{class:"text-xl md:text-2xl"},"1 MONTH FREE LICENSE",-1)),h[5]||(h[5]=me("h3",{class:"text-2xl md:text-3xl"},"Only 6 Left! Hurry Up!",-1)),h[6]||(h[6]=me("p",null,"Flexa Tables Free License for user!",-1)),me("div",GJ,[me("img",{src:ve(HJ),alt:"Flexa Tables Logo",class:"w-8 h-8 mx-auto"},null,8,YJ)]),me("div",zJ,[me("div",KJ,[me("span",null,fr(ve(o).days),1),h[0]||(h[0]=me("span",null,"days",-1))]),me("div",XJ,[me("span",null,fr(ve(o).hours),1),h[1]||(h[1]=me("span",null,"hours",-1))]),me("div",JJ,[me("span",null,fr(ve(o).minutes),1),h[2]||(h[2]=me("span",null,"mins",-1))]),me("div",QJ,[me("span",null,fr(ve(o).seconds),1),h[3]||(h[3]=me("span",null,"secs",-1))])]),me("a",{class:"cta-button cursor-pointer",onClick:i}," Claim Now! ")]),h[7]||(h[7]=me("div",{class:"popup-divider"},null,-1)),me("div",ZJ,[me("ul",eQ,[($e(!0),Lt(St,null,fy(ve(s),(p,g)=>($e(),Lt("li",{key:g},[me("b",null,fr(p.title)+":",1),os(" "+fr(p.description),1)]))),128))])])])])]),_:1},8,["is-visible","z-index"])}}}),nQ=zp(tQ,[["__scopeId","data-v-d11e0c94"]]),rQ={class:"floating-chat"},sQ={key:1,class:"chat-window"},iQ={class:"message-bubble"},oQ={key:0,class:"message-bubble assistant loading"},aQ={class:"chat-input"},lQ=["disabled"],cQ=["disabled"],uQ=Nt({__name:"floating",setup(t){const e=Pe(!1),n=Pe(""),r=Pe([]),s=Pe(!1),i=Pe(null),o=()=>{e.value=!e.value,e.value&&Xn(()=>a())},a=()=>{i.value&&(i.value.scrollTop=i.value.scrollHeight)},l=async()=>{if(!n.value.trim()||s.value)return;r.value.push({role:"user",content:n.value});const u=n.value;n.value="",s.value=!0;try{const f=await Jt().post(az("/chat"),{message:u}),h=f.data?.answer||f.data?.answer||"No response";r.value.push({role:"assistant",content:h})}catch{r.value.push({role:"assistant",content:"Sorry, an error occurred. Please try again later."})}finally{s.value=!1,Xn(()=>a())}};return(u,f)=>($e(),Lt("div",rQ,[ve(e)?($e(),Lt("div",sQ,[me("div",{class:"chat-header"},[f[2]||(f[2]=me("span",null,"Chat with AI",-1)),me("button",{class:"close-btn","aria-label":"Close chat",onClick:o}," à ")]),me("div",{ref_key:"messagesRef",ref:i,class:"chat-messages"},[($e(!0),Lt(St,null,fy(ve(r),(h,d)=>($e(),Lt("div",{key:d,class:_r(h.role)},[me("div",iQ,fr(h.content),1)],2))),128)),ve(s)?($e(),Lt("div",oQ," AI is thinking... ")):Xa("",!0)],512),me("div",aQ,[MI(me("input",{"onUpdate:modelValue":f[0]||(f[0]=h=>ft(n)?n.value=h:null),placeholder:"Type your question...",disabled:ve(s),onKeyup:XA(l,["enter"])},null,40,lQ),[[$c,ve(n)]]),me("button",{disabled:ve(s)||!ve(n).trim(),onClick:l}," Send ",8,cQ)])])):($e(),Lt("button",{key:0,class:"chat-icon","aria-label":"Open chat",onClick:o},[...f[1]||(f[1]=[me("span",{class:"icon","aria-hidden":"true"},"ð¬",-1),me("div",{class:"pulse-ring"},null,-1)])]))]))}}),fQ=zp(uQ,[["__scopeId","data-v-3c483747"]]),hQ={class:"fixed inset-0 z-[9999] flex flex-col items-center justify-center bg-gradient-to-br from-slate-50 via-indigo-50/40 to-violet-50/30 px-6 text-center"},dQ={__name:"app",setup(t){const e=f=>{const h=Cc(f);
70fd(new sr({code:h.code,message:h.message,userMessage:"An unexpected error occurred.",severity:"fatal",cause:h.cause??f}))},n=yv(),{setOpenPopupDiscount:r}=n,s=Vn(),i=Zt(),o=lN(i.public.appEnv),a=de(()=>`${i.public.hostDomain||"https://flexaintel.com"}${s.currentRoute.value.path}`);Ny({link:[{key:"canonical",rel:"canonical",href:a}],meta:[{key:"og:url",property:"og:url",content:a}]});const l=Pe(""),u=()=>{const f=[Pc,$O];sessionStorage.getItem("popupShown")||setTimeout(()=>{f.includes(s.currentRoute.value.path)||(r(!0),sessionStorage.setItem("popupShown","true"))},3e4)};return Jr(async()=>{sessionStorage.removeItem("popupShown"),await n.getDiscountLicenseFree().then(f=>{const h=f.data?.expiryDate||"";l.value=h,se(h).isAfter(se())&&u()})}),(f,h)=>{const d=vJ,p=wJ,g=PJ,_=wk,v=xJ,N=nQ,O=hz,T=fQ;return $e(),Lt("div",null,[_e(d),_e(v,{onError:e},{error:Cn(({clearError:C})=>[me("div",hQ,[h[1]||(h[1]=me("h1",{class:"text-2xl sm:text-3xl font-bold text-slate-900 mb-3"}," Something went wrong ",-1)),h[2]||(h[2]=me("p",{class:"text-slate-500 max-w-sm leading-relaxed mb-8"}," An unexpected error occurred. Reloading the page usually fixes it. ",-1)),_e(_,{class:"shadow-sm shadow-indigo-300 active:scale-95",onClick:x=>C({redirect:"/"})},{default:Cn(()=>[...h[0]||(h[0]=[os(" Go back home ",-1)])]),_:1},8,["onClick"])])]),default:Cn(()=>[_e(g,null,{default:Cn(()=>[_e(p)]),_:1})]),_:1}),_e(O,null,{default:Cn(()=>[_e(N,{"expiry-date":ve(l)},null,8,["expiry-date"])]),_:1}),_e(O,null,{default:Cn(()=>[ve(o)?($e(),Nn(T,{key:0})):Xa("",!0)]),_:1})])}}},pQ=""+new URL("logo.BCabPlYa.webp",import.meta.url).href,mQ={class:"fixed inset-0 z-[9999] flex flex-col items-center justify-center bg-gradient-to-br from-slate-50 via-indigo-50/40 to-violet-50/30 px-6"},gQ={class:"text-2xl sm:text-3xl font-bold text-slate-900 mb-3 text-center"},_Q={class:"text-slate-500 text-center max-w-xs leading-relaxed mb-10"},yQ={class:"flex flex-col sm:flex-row items-center gap-3"},EQ={class:"mt-16 opacity-30 hover:opacity-60 transition-opacity"},vQ=Nt({__name:"error",setup(t){const n=Pe(Ru().value?.statusCode),r=de(()=>n.value===404),s=()=>{Mg({redirect:"/"})},i=()=>{Mg(),window.location.reload()};return(o,a)=>{const l=wk,u=yz;return $e(),Lt("div",mQ,[me("p",{class:_r(["font-black leading-none tracking-tighter select-none bg-gradient-to-br bg-clip-text text-transparent text-[8rem] sm:text-[11rem]",ve(r)?"from-indigo-500 via-violet-500 to-indigo-400":"from-red-500 to-orange-400"])},fr(ve(n)??(ve(r)?404:500)),3),me("div",{class:_r(["w-14 h-1 rounded-full mb-7 mt-2",ve(r)?"bg-indigo-200":"bg-red-200"])},null,2),me("h1",gQ,fr(ve(r)?"Page not found":"Something went wrong"),1),me("p",_Q,[ve(r)?($e(),Lt(St,{key:0},[os(" The page you're looking for doesn't exist or has been moved. ")],64)):($e(),Lt(St,{key:1},[os(" An unexpected error occurred. Please try again shortly. ")],64))]),me("div",yQ,[_e(l,{class:"shadow-sm shadow-indigo-300 active:scale-95",onClick:s},{default:Cn(()=>[...a[0]||(a[0]=[me("svg",{class:"w-4 h-4 shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[me("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})],-1),os(" Go back home ",-1)])]),_:1}),ve(r)?($e(),Nn(u,{key:0,to:"/Power-BI-dashboard-examples-PBIX",class:"inline-flex items-center gap-2 px-7 py-3 rounded-full font-semibold text-sm text-slate-600 bg-white border border-slate-200 hover:border-indigo-300 hover:text-indigo-600 hover:bg-indigo-50 active:scale-95 transition-all"},{default:Cn(()=>[...a[1]||(a[1]=[os(" Browse templates ",-1),me("svg",{class:"w-4 h-4 shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[me("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 7l5 5m0 0l-5 5m5-5H6"})],-1)])]),_:1})):($e(),Nn(l,{key:1,variant:"outline",color:"neutral",class:"active:scale-95",onClick:i},{default:Cn(()=>[...a[2]||(a[2]=[me("svg",{class:"w-4 h-4 shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[me("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1),os(" Try again ",-1)])]),_:1}))]),me("div",EQ,[_e(u,{to:"/",onClick:Ty(s,["prevent"])},{default:Cn(()=>[...a[3]||(a[3]=[me("img",{src:pQ,alt:"Flexa Intel",class:"h-6"},null,-1)])]),_:1})])])}}}),TQ={key:0},YS={__name:"nuxt-root",setup(t){const e=()=>null,n=ht(),r=n.deferHydration();if(n.isHydrating){const u=n.hooks.hookOnce("app:error",r);Vn().beforeEach(u)}const s=!1;fs(Yo,Hd()),n.hooks.callHookWith(u=>u.map(f=>f()),"vue:setup");const i=Ru(),o=!1,a=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;Md((u,f,h)=>
70{if(n.hooks.callHook("vue:error",u,f,h).catch(d=>{}),a.test(navigator.userAgent))return n.hooks.callHook("app:error",u),!1;if(yR(u)&&(u.fatal||u.unhandled))return n.runWithContext(()=>vo(u)),!1});const l=!1;return(u,f)=>($e(),Nn(Ud,{onResolve:ve(r)},{default:Cn(()=>[ve(o)?($e(),Lt("div",TQ)):ve(i)?($e(),Nn(ve(vQ),{key:1,error:ve(i)},null,8,["error"])):ve(l)?($e(),Nn(ve(e),{key:2,context:ve(l)},null,8,["context"])):ve(s)?($e(),Nn(QI(ve(s)),{key:3})):($e(),Nn(ve(dQ),{key:4}))]),_:1},8,["onResolve"]))}};let zS;{let t;zS=async function(){if(t)return t;const r=!!(window.__NUXT__?.serverRendered??document.getElementById("__NUXT_DATA__")?.dataset.ssr==="true")?wy(YS):jc(YS),s=zV({vueApp:r});async function i(o){await s.callHook("app:error",o),s.payload.error||=Fo(o)}r.config.errorHandler=i,s.hook("app:suspense:resolve",()=>{r.config.errorHandler===i&&(r.config.errorHandler=void 0)});try{await JV(s,gJ)}catch(o){i(o)}try{await s.hooks.callHook("app:created",r),await s.hooks.callHook("app:beforeMount",r),r.mount(WV),await s.hooks.callHook("app:mounted",r),await Xn()}catch(o){i(o)}return r},t=zS().catch(e=>{throw e})}export{yy as $,QI as A,$d as B,Ny as C,Zt as D,Fo as E,St as F,Hd as G,Vn as H,yv as I,Zz as J,wk as K,kJ as L,hz as M,Je as N,se as O,MI as P,$c as Q,oZ as R,ft as S,Cz as T,Pc as U,gZ as V,mZ as W,Ty as X,$O as Y,br as Z,yz as _,DM as a,qr as a$,$J as a0,EZ as a1,yZ as a2,wZ as a3,$r as a4,Xn as a5,sJ as a6,nn as a7,GA as a8,ht as a9,fZ as aA,or as aB,Et as aC,DA as aD,Re as aE,Pd as aF,iZ as aG,Ey as aH,bu as aI,za as aJ,rn as aK,jz as aL,Wz as aM,Mo as aN,Or as aO,IL as aP,wx as aQ,Pt as aR,WG as aS,BG as aT,lN as aU,hg as aV,Ae as aW,oN as aX,YI as aY,Wt as aZ,fs as a_,ty as aa,BA as ab,dg as ac,aa as ad,sr as ae,II as af,zA as ag,_Z as ah,fJ as ai,XA as aj,BJ as ak,FG as al,GG as am,hu as an,uZ as ao,lZ as ap,cZ as aq,qQ as ar,fi as as,Sl as at,jQ as au,WQ as av,pJ as aw,Jt as ax,hZ as ay,pZ as az,me as b,_s as b0,SQ as b1,D9 as b2,q9 as b3,Qb as b4,XQ as b5,QQ as b6,KQ as b7,tZ as b8,eZ as b9,zQ as ba,JQ as bb,nZ as bc,bQ as bd,fz as be,Lc as bf,ZQ as bg,vZ as bh,TZ as bi,sZ as bj,HG as bk,dZ as bl,FI as bm,Yo as bn,bk as bo,La as bp,pQ as bq,aZ as br,Ev as bs,bZ as bt,SZ as bu,Gt as bv,Lt as c,Nt as d,_e as e,os as f,Pe as g,zp as h,io as i,Jr as j,la as k,HJ as l,Xa as m,_r as n,$e as o,_v as p,de as q,fy as r,fd as s,fr as t,ve as u,rZ as v,Cn as w,
70Cc as x,tM as y,Nn 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.