PageSourceSearch

https://axethrowing.org/assets/index-M5qy_4Wm.js

js axethrowing.org collected 2026-10-01 15:00:49 UTC 2,089,859 bytes, 5,091 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/hosts-B73H6XnY.js","assets/drawerIcon-D6p8KgWU.js","assets/drawerIcon-BjmTC9VI.css","assets/hosts-Buzjm4rN.css","assets/hostsEvents-CPLsYHDG.js","assets/archiveDeletedEvent-D-VJ8hc5.js","assets/timePicker-Dw_3Eha9.js","assets/timePicker-DT-YtUjV.css","assets/imageURLreturn-BI9YqGmO.js","assets/croppie-COvZV25I.js","assets/imageURLreturn-BNvdeVBH.css","assets/index-C-Bqcmmh.js","assets/date-CrrqCBL3.js","assets/imageSelector-BltB3WF7.js","assets/imageSelector-Q-L2vZRw.css","assets/dateTimeFormater-C88j8ARD.js","assets/hostAppBar-Nsn6mbm2.js","assets/customSearch-sElyVGsZ.js","assets/customSearch-ByfLhYg_.css","assets/hostAppBar-cncXQ_IH.css","assets/products-BiK3QDIf.js","assets/products-BDT0kTKw.css","assets/flagLabel-oINNZ4JB.js","assets/hostsEvents-DbjIhfWg.css","assets/siteProfile-CZNGFVao.js","assets/customSwitcher-csKReEKa.js","assets/customSwitcher-CbXbnP2j.css","assets/tw-BqCbVyhq.js","assets/customInputNew-BA6e7JlB.js","assets/zipcodeInput-CI6rYt2r.js","assets/setCustomClaims-DxqBngw-.js","assets/rating-wecbD98B.js","assets/siteProfile-19wmXHpu.css","assets/siteLogin-D8VA8VNT.js","assets/termsOfService-CMTeA5Ea.js","assets/termsOfService-C9Mywkn_.css","assets/createPlayer-DRfAS1VB.js","assets/siteLogin-CRX03lgs.css","assets/watl-Dr90i3Zc.js","assets/matchups-BkvTHpmK.js","assets/customBottomSheet-C2KbP7iQ.js","assets/customBottomSheet-CkqBn3H4.css","assets/setVenueTvLanes-D7ccZfAY.js","assets/weekGames-BmMPzrMO.js","assets/matchups-Cm7WcCSG.css","assets/accolades-BIKMTpKJ.js","assets/newroundrobin-BxKMGNd8.js","assets/playoffScheduling-DTKuKqYe.js","assets/chat-BKlFAIoT.js","assets/chat-B7XND4LM.css","assets/online-CG08BUj0.js","assets/online-B_eCu8fS.css","assets/targetPoint-tZzPPSMN.js","assets/targetPoint-Ctvvgpiv.css","assets/arrow-BN2WFFaR.js","assets/boardBottom-aHDEkg-L.js","assets/boardBottom-Diz1mZHm.css","assets/chatModal-DvERl9al.js","assets/chatModal-DBx6XwP3.css","assets/watl-BJRg8plJ.css","assets/watlDoubles-BYtZkzCY.js","assets/newNonStandardBoardTarget-CO7wqwoW.js","assets/newNonStandardBoardTarget-SMA0qF1m.css","assets/playoffDualsScheduling-B4sNXpEm.js","assets/watlDoubles-B6FC93jk.css","assets/watlBigAxe-Cgw7ST53.js","assets/watlBigAxe-H7WIe1UA.css","assets/play-tWkHPZFX.js","assets/onlinePlayers-SB-YkU-4.js","assets/play-CipWdiOq.css","assets/siteCompare-CROXVAiS.js","assets/siteCompare-C_KmuyuX.css","assets/siteCircuit-BctFJtMc.js","assets/siteCircuit-DD8b_Aho.css","assets/siteVenues-DTaMWUpS.js","assets/siteVenues-DKVdPs99.css","assets/sitePasswordReset-gwCXKm3A.js","assets/sitePasswordReset-CSycTNi_.css","assets/siteDocuments-OJyldw3n.js","assets/siteDocuments-0J4wCFaE.css","assets/siteAddVenue-C7ALT5-W.js","assets/customInput-CRuVXa_j.js","assets/customInput-Dr2m46xd.css","assets/tz-J99ISGfe.js","assets/siteAddVenue-Bb3FDRMm.css","assets/siteSelfSignUp-BLPvTxFy.js","assets/siteSelfSignUp-D1V8aLs5.css","assets/sitePlayerSubscriptions-MHIwQ9jI.js","assets/sitePlayerSubscriptions-BSGA8CB6.css","assets/siteLeagueView-vOWLuW2I.js","assets/eventLeaderboard-BnVczQCJ.js","assets/leaderboard-D3RLSy-d.js","assets/leaderboard-DSkqtWlg.css","assets/playoffsNew-bt8aho6j.js","assets/playoffsNew-B17oLjaU.css","assets/fakePlayerStats-GKur_n2A.js","assets/fakePlayerStats-BLbVspdc.css","assets/eventLeaderboard-VtdSGuuU.css","assets/eventView-CosjKi0m.js","assets/eventView-CbSLiDro.css","assets/siteLeagueView-B8UIhCCx.css","assets/siteTournaments-BU1yyRqb.js","assets/featuredEvents-BzNN47LA.js","assets/featuredEvents-C_xcp-i1.css","assets/siteTournaments-0uAuvwLc.css","assets/siteLeagues-CKT1KOu7.js","assets/siteLeagues-NvNTpv97.css","assets/siteQT-CIv0tO-Y.js","assets/siteQT-D-cYOxX7.css","assets/siteTournamentView-B0ui3xCB.js","assets/siteTournamentView-XLfvQ6Xt.css","assets/siteVirtualEvent-CTjlguD9.js","assets/addParticipantToEvent-CyNk3lPn.js","assets/siteVirtualEvent-bsj9Fjd5.css","assets/siteArticle-BeV3ZZ4h.js","assets/siteArticle-gGsIEe40.css","assets/sitePlayers-DIocstW6.js","assets/playersExport-CYvrXQpj.js","assets/sitePlayers--H1AYOBR.css","assets/siteTeam-DEXfWWCr.js","assets/siteTeam-B38LJMm3.css","assets/connectFivePublic-BzKvoAKR.js","assets/connectFive-KnvXkx-L.js","assets/team-b-win-DjW6Btuo.js","assets/close-btn-uxpzqoEZ.js","assets/cell33-BXfPCcWY.js","assets/connectFive-D5X1QTSh.css","assets/connectFivePublic-D0Nbq0Hs.css","assets/ticTacToePublic-Pa24t4wX.js","assets/ticTacToe-BU8iG35S.js","assets/tictactoe-board-image-tMXg6dqj.js","assets/ticTacToe-CMpxtEcI.css","assets/ticTacToePublic-BdhZBv4
1K.css","assets/axeCricketPublic-Bb5jaUZK.js","assets/axeCricket-pFAHqDr1.js","assets/axe-cricket-rules-1-DYl0eb9w.js","assets/axeCricket-CjFhdw7X.css","assets/watlPublic-CPIJ2j66.js","assets/watlPublic-DLUx0253.css","assets/watlDualsPublic-C_byAhG0.js","assets/watlDualsPublic-BlkF-8Yq.css","assets/watlQuickGamesPublic-X5w0bYJ5.js","assets/watlQuickGamesPublic-CuHoyocm.css","assets/siteGuestGames-CusioyG_.js","assets/axe-cricket-icon-CEuGkILV.js","assets/siteGuestGames-BanSnyMo.css","assets/watlQuickGamesGuestMode-DTo39bGB.js","assets/roundrobin_quicktournaments-BfAsIDMP.js","assets/roundrobin_quicktournaments-BhIXP5-y.css","assets/watlQuickGamesGuestMode-BDagpIxf.css","assets/screenOne-xBeSxGRA.js","assets/screenOne-BPVfj4bz.css","assets/hostsTeams-C1dY5C5c.js","assets/hostsTeams-D017UlEO.css","assets/newDashboard-DDL-MvCc.js","assets/newDashboard-Bx9T_fa-.css","assets/hostsVenueMaster-q5mFkv20.js","assets/addVenue-7KV-NmDK.js","assets/playerCode-DfpfWfTs.js","assets/addVenue-DulavgQc.css","assets/hostsVenueMaster-Dnycdjo9.css","assets/hostsEvent-DpoXz-Nn.js","assets/hostsEvent-Ce7uKogq.css","assets/hostsQuickGroupGames-N1Xwc4FD.js","assets/hostsQuickGroupGames-DKb0nonW.css","assets/hostsSubscription-D3lmDC6X.js","assets/hostsSubscription-Bq5AkDzU.css","assets/hostsSeasons-PJUsHXha.js","assets/hostsSeasons-BusIOIRN.css","assets/hostsVenue-HRw6vayq.js","assets/hostsPlayers-CLKaYXk3.js","assets/addPlayer-z4PVjC1Y.js","assets/addPlayer-ChA2rKF8.css","assets/playerList-B8Anh31S.js","assets/bottomSheet-IkNnWW7E.js","assets/bottomSheet-CmLYPR_X.css","assets/playerList-DFd1T7Rn.css","assets/hostsPlayers-CNOVSEci.css","assets/hostsGroup-DrrrRrKV.js","assets/hostsGroup-DVp6uLce.css","assets/hostsNews--JwZGRZf.js","assets/hostsNews-CBB38dHH.css","assets/hostsSponsors-74KFU6V3.js","assets/hostsSponsors-BT8D9Frh.css","assets/hostsAccess-PoeXtoQo.js","assets/hostsAccess-DQynrgZM.css","assets/watlQuickGames-CQ5Z52_0.js","assets/watlQuickGames-BcnEdhNY.css","assets/hostsQuickGroupConnectFive-B6oSruUi.js","assets/hostsQuickGroupTicTacToe--dHLkCCA.js","assets/hostsQuickGroupAxeCricket-bprBgwTZ.js","assets/dashboard-CZhzASAb.js","assets/dashboard-COTrBptB.css","assets/start-gkgqpsCv.js","assets/start-DmQXa7A4.css","assets/AccessGuard-v1Kz29bJ.js","assets/AccessGuard-Clq8WLRm.css"])))=>i.map(i=>d[i]);
2var e;function t(){import.meta.url,import("_").catch(()=>1),async function*(){}().next()}
3/**
4* @vue/shared v3.5.22
5* (c) 2018-present Yuxi (Evan) You and Vue contributors
6* @license MIT
7**/
8function n(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver(e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)}).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();const a={},i=[],r=()=>{},o=()=>!1,s=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),l=e=>e.startsWith("onUpdate:"),u=Object.assign,c=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},d=Object.prototype.hasOwnProperty,h=(e,t)=>d.call(e,t),p=Array.isArray,f=e=>"[object Map]"===S(e),m=e=>"[object Set]"===S(e),v=e=>"[object Date]"===S(e),g=e=>"[object RegExp]"===S(e),y=e=>"function"==typeof e,b=e=>"string"==typeof e,_=e=>"symbol"==typeof e,w=e=>null!==e&&"object"==typeof e,k=e=>(w(e)||y(e))&&y(e.then)&&y(e.catch),C=Object.prototype.toString,S=e=>C.call(e),T=e=>S(e).slice(8,-1),A=e=>"[object Object]"===S(e),E=e=>b(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,I=n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),x=n("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),N=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},P=/-\w/g,M=N(e=>e.replace(P,e=>e.slice(1).toUpperCase())),O=/\B([A-Z])/g,R=N(e=>e.replace(O,"-$1").toLowerCase()),D=N(e=>e.charAt(0).toUpperCase()+e.slice(1)),L=N(e=>e?"on".concat(D(e)):""),B=(e,t)=>!Object.is(e,t),F=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},V=(e,t,n,a=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:a,value:n})},X=e=>{const t=parseFloat(e);return isNaN(t)?e:t},j=e=>{const t=b(e)?Number(e):NaN;return isNaN(t)?e:t};let U;const H=()=>U||(U="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}),z=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;const K={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"},W={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},G=n("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol"),q=G;function $(e,t=0,n=e.length){if((t=Math.max(0,Math.min(t,e.length)))>(n=Math.max(0,Math.min(n,e.length))))return"";let a=e.split(/(\r?\n)/);const i=a.filter((e,t)=>t%2==1);a=a.filter((e,t)=>t%2==0);let r=0;const o=[];for(let s=0;s<a.length;s++)if(r+=a[s].length+(i[s]&&i[s].length||0),r>=t){for(let e=s-2;e<=s+2||n>r;e++){if(e<0||e>=a.length)continue;const l=e+1;o.push("".concat(l).concat(" ".repeat(Math.max(3-String(l).length,0)),"|  ").concat(a[e]));const u=a[e].length,c=i[e]&&i[e].length||0;if(e===s){const e=t-(r-(u+c)),a=Math.max(1,n>r?u-e:n-t);o.push("   |  "+" ".repeat(e)+"^".repeat(a))}else if(e>s){if(n>r){const e=Math.max(Math.min(n-r,u),1);o.push("   |  "+"^".repeat(e))}r+=u+c}}break}return o.join("\n")}function Y(e){if(p(e)){const t={};for(let n=0;n<e.length;n++){const a=e[n],i=b(a)?ee(a):Y(a);if(i)for(const e in i)t[e]=i[e]}return t}if(b(e)||w(e))return e}const J=/;(?![^(]*\))/g,Q=/:([^]+)/,Z=/\/\*[^]*?\*\//g;function ee(e){const t={};return e.replace(Z,"").split(J).forEach(e=>{if(e){const n=e.split(Q);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function te(e){if(!e)return"";if(b(e))return e;let t="";for(const n in e){const a=e[n];if(b(a)||"number"==typeof a){const e=n.startsWith("--")?n:R(n);t+="".concat(e,":").concat(a,";")}}return t}function ne(e){let t="";if(b(e))t=e;else if(p(e))for(let n=0;n<e.length;n++){const a=ne(e[n]);a&&(t+=a+" ")}else if(w(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function ae(e){if(!e)return null;let{class:t,style:n}=e;return t&&!b(t)&&(e.class=ne(t)),n&&(e.style=Y(n)),e}const ie=n("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"),re=n("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"),oe=n("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"),se=n("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"),le="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ue=n(le),ce=n(le+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,
8checked,muted,multiple,selected");function de(e){return!!e||""===e}const he=/[>/="'\u0009\u000a\u000c\u0020]/,pe={};const fe=n("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),me=n("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
8-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"),ve=n("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 ge(e){if(null==e)return!1;const t=typeof e;return"string"===t||"number"===t||"boolean"===t}const ye=/["'&<>]/;const be=/^-?>|<!--|-->|--!>|<!-$/g;const _e=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function we(e,t){return e.replace(_e,e=>t?'"'===e?'\\\\\\"':"\\\\".concat(e):"\\".concat(e))}function ke(e,t){if(e===t)return!0;let n=v(e),a=v(t);if(n||a)return!(!n||!a)&&e.getTime()===t.getTime();if(n=_(e),a=_(t),n||a)return e===t;if(n=p(e),a=p(t),n||a)return!(!n||!a)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let a=0;n&&a<e.length;a++)n=ke(e[a],t[a]);return n}(e,t);if(n=w(e),a=w(t),n||a){if(!n||!a)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const a=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(a&&!i||!a&&i||!ke(e[n],t[n]))return!1}}return String(e)===String(t)}function Ce(e,t){return e.findIndex(e=>ke(e,t))}const Se=e=>!(!e||!0!==e.__v_isRef),Te=e=>b(e)?e:null==e?"":p(e)||w(e)&&(e.toString===C||!y(e.toString))?Se(e)?Te(e.value):JSON.stringify(e,Ae,2):String(e),Ae=(e,t)=>Se(t)?Ae(e,t.value):f(t)?{["Map(".concat(t.size,")")]:[...t.entries()].reduce((e,[t,n],a)=>(e[Ee(t,a)+" =>"]=n,e),{})}:m(t)?{["Set(".concat(t.size,")")]:[...t.values()].map(e=>Ee(e))}:_(t)?Ee(t):!w(t)||p(t)||A(t)?t:String(t),Ee=(e,t="")=>{var n;return _(e)?"Symbol(".concat(null!=(n=e.description)?n:t,")"):e};function Ie(e){return null==e?"initial":"string"==typeof e?""===e?" ":e:String(e)}const xe=Object.freeze(Object.defineProperty({__proto__:null,EMPTY_ARR:i,EMPTY_OBJ:a,NO:o,NOOP:r,PatchFlagNames:K,PatchFlags:{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"},ShapeFlags:{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"},SlotFlags:{STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},camelize:M,capitalize:D,cssVarNameEscapeSymbolsRE:_e,def:V,escapeHtml:function(e){const t=""+e,n=ye.exec(t);if(!n)return t;let a,i,r="",o=0;for(i=n.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:a="&quot;";break;case 38:a="&amp;";break;case 39:a="&#39;";break;case 60:a="&lt;";break;case 62:a="&gt;";break;default:continue}o!==i&&(r+=t.slice(o,i)),o=i+1,r+=a}return o!==i?r+t.slice(o,i):r},escapeHtmlComment:function(e){return e.replace(be,"")},extend:u,genCacheKey:function(e,t){return e+JSON.stringify(t,(e,t)=>"function"==typeof t?t.toString():t)},genPropsAccessExp:function(e){return z.test(e)?"__props.".concat(e):"__props[".concat(JSON.stringify(e),"]")},generateCodeFrame:$,getEscapedCssVarName:we,getGlobalThis:H,hasChanged:B,hasOwn:h,hyphenate:R,includeBooleanAttr:de,invokeArrayFns:F,isArray:p,isBooleanAttr:ce,isBuiltInDirective:x,isDate:v,isFunction:y,isGloballyAllowed:G,isGloballyWhitelisted:q,isHTMLTag:ie,isIntegerKey:E,isKnownHtmlAttr:fe,isKnownMathMLAttr:ve,isKnownSvgAttr:me,isMap:f,isMathMLTag:oe,isModelListener:l,isObject:w,isOn:s,isPlainObject:A,isPromise:k,isRegExp:g,isRenderableAttrValue:ge,isReservedProp:I,isSSRSafeAttrName:function(e){if(pe.hasOwnProperty(e))return pe[e];const t=he.test(e);return t&&console.error("unsafe attribute name: ".concat(e)),pe[e]=!t},isSVGTag:re,isSet:m,isSpecialBooleanAttr:ue,isString:b,isSymbol:_,isVoidTag:se,looseEqual:ke,looseIndexOf:Ce,looseToNumber:X,makeMap:n,normalizeClass:ne,normalizeCssVarValue:Ie,n
vendor: 5,933 bytes, lines 8-13
8ormalizeProps:ae,normalizeStyle:Y,objectToString:C,parseStringStyle:ee,propsToAttrMap:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},remove:c,slotFlagsText:W,stringifyStyle:te,toDisplayString:Te,toHandlerKey:L,toNumber:j,toRawType:T,toTypeString:S},Symbol.toStringTag,{value:"Module"}));
9/**
10* @vue/reactivity v3.5.22
11* (c) 2018-present Yuxi (Evan) You and Vue contributors
12* @license MIT
13**/let Ne,Pe;class Me{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ne,!e&&Ne&&(this.index=(Ne.scopes||(Ne.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=Ne;try{return Ne=this,e()}finally{Ne=t}}}on(){1===++this._on&&(this.prevScope=Ne,Ne=this)}off(){this._on>0&&0===--this._on&&(Ne=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){let t,n;for(this._active=!1,t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}}function Oe(e){return new Me(e)}function Re(){return Ne}function De(e,t=!1){Ne&&Ne.cleanups.push(e)}const Le=new WeakSet;class Be{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,Ne&&Ne.active&&Ne.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,Le.has(this)&&(Le.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||je(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,et(this),ze(this);const e=Pe,t=Ye;Pe=this,Ye=!0;try{return this.fn()}finally{Ke(this),Pe=e,Ye=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)qe(e);this.deps=this.depsTail=void 0,et(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?Le.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){We(this)&&this.run()}get dirty(){return We(this)}}let Fe,Ve,Xe=0;function je(e,t=!1){if(e.flags|=8,t)return e.next=Ve,void(Ve=e);e.next=Fe,Fe=e}function Ue(){Xe++}function He(){if(--Xe>0)return;if(Ve){let e=Ve;for(Ve=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Fe;){let n=Fe;for(Fe=void 0;n;){const a=n.next;if(n.next=void 0,n.flags&=-9,1&n.flags)try{n.trigger()}catch(t){e||(e=t)}n=a}}if(e)throw e}function ze(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ke(e){let t,n=e.depsTail,a=n;for(;a;){const e=a.prevDep;-1===a.version?(a===n&&(n=e),qe(a),$e(a)):t=a,a.dep.activeLink=a.prevActiveLink,a.prevActiveLink=void 0,a=e}e.deps=t,e.depsTail=n}function We(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ge(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ge(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===tt)return;if(e.globalVersion=tt,!e.isSSR&&128&e.flags&&(!e.deps&&!e._dirty||!We(e)))return;e.flags|=2;const t=e.dep,n=Pe,a=Ye;Pe=e,Ye=!0;try{ze(e);const n=e.fn(e._value);(0===t.version||B(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(i){throw t.version++,i}finally{Pe=n,Ye=a,Ke(e),e.flags&=-3}}function qe(e,t=!1){const{dep:n,prevSub:a,nextSub:i}=e;if(a&&(a.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=a,e.nextSub=void 0),n.subs===e&&(n.subs=a,!a&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)qe(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}function $e(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ye=!0;const Je=[];function Qe(){Je.push(Ye),Ye=!1}function Ze(){const e=Je.pop();Ye=void 0===e||e}function et(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=Pe;Pe=void 0;try{t()}finally{Pe=e}}}let tt=0;class nt{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class at{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(!Pe||!Ye||Pe===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==Pe)t=this.activeLink=new nt(Pe,this),Pe.deps?(t.prevDep=Pe.depsTail,Pe.depsTail.nextDep=t,Pe.depsTail=t):Pe.deps=Pe.depsTail=t,it(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=Pe.depsTail,t.nextDep=void 0,Pe.depsTail.nextDep=t,Pe.depsTail=t,Pe.deps===t&&(Pe.deps=e)}return t}trigger(e){this.version++,tt++,this.notify(e)}notify(e){Ue();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{He()}}}function it(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)it(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const rt=new WeakMap,ot=Symbol(""),st=Symbol(""),lt=Symbol("");function ut(e,t,n){if(Ye&&Pe){let t=rt.get(e);t||rt.set(e,t=new Map);let a=t.get(n);a||(t.set(n,a=new at),a.map=t,a.key=n),a.track()}}function ct(e,t,n,a,i,r){const o=rt.get(e);if(!o)return void tt++;const s=e=>{e&&e.trigger()};
vendor: 3,202 bytes, line 13
13if(Ue(),"clear"===t)o.forEach(s);else{const i=p(e),r=i&&E(n);if(i&&"length"===n){const e=Number(a);o.forEach((t,n)=>{("length"===n||n===lt||!_(n)&&n>=e)&&s(t)})}else switch((void 0!==n||o.has(void 0))&&s(o.get(n)),r&&s(o.get(lt)),t){case"add":i?r&&s(o.get("length")):(s(o.get(ot)),f(e)&&s(o.get(st)));break;case"delete":i||(s(o.get(ot)),f(e)&&s(o.get(st)));break;case"set":f(e)&&s(o.get(ot))}}He()}function dt(e){const t=Qt(e);return t===e?t:(ut(t,0,lt),Yt(e)?t:t.map(en))}function ht(e){return ut(e=Qt(e),0,lt),e}const pt={__proto__:null,[Symbol.iterator](){return ft(this,Symbol.iterator,en)},concat(...e){return dt(this).concat(...e.map(e=>p(e)?dt(e):e))},entries(){return ft(this,"entries",e=>(e[1]=en(e[1]),e))},every(e,t){return vt(this,"every",e,t,void 0,arguments)},filter(e,t){return vt(this,"filter",e,t,e=>e.map(en),arguments)},find(e,t){return vt(this,"find",e,t,en,arguments)},findIndex(e,t){return vt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return vt(this,"findLast",e,t,en,arguments)},findLastIndex(e,t){return vt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return vt(this,"forEach",e,t,void 0,arguments)},includes(...e){return yt(this,"includes",e)},indexOf(...e){return yt(this,"indexOf",e)},join(e){return dt(this).join(e)},lastIndexOf(...e){return yt(this,"lastIndexOf",e)},map(e,t){return vt(this,"map",e,t,void 0,arguments)},pop(){return bt(this,"pop")},push(...e){return bt(this,"push",e)},reduce(e,...t){return gt(this,"reduce",e,t)},reduceRight(e,...t){return gt(this,"reduceRight",e,t)},shift(){return bt(this,"shift")},some(e,t){return vt(this,"some",e,t,void 0,arguments)},splice(...e){return bt(this,"splice",e)},toReversed(){return dt(this).toReversed()},toSorted(e){return dt(this).toSorted(e)},toSpliced(...e){return dt(this).toSpliced(...e)},unshift(...e){return bt(this,"unshift",e)},values(){return ft(this,"values",en)}};function ft(e,t,n){const a=ht(e),i=a[t]();return a===e||Yt(e)||(i._next=i.next,i.next=()=>{const e=i._next();return e.done||(e.value=n(e.value)),e}),i}const mt=Array.prototype;function vt(e,t,n,a,i,r){const o=ht(e),s=o!==e&&!Yt(e),l=o[t];if(l!==mt[t]){const t=l.apply(e,r);return s?en(t):t}let u=n;o!==e&&(s?u=function(t,a){return n.call(this,en(t),a,e)}:n.length>2&&(u=function(t,a){return n.call(this,t,a,e)}));const c=l.call(o,u,a);return s&&i?i(c):c}function gt(e,t,n,a){const i=ht(e);let r=n;return i!==e&&(Yt(e)?n.length>3&&(r=function(t,a,i){return n.call(this,t,a,i,e)}):r=function(t,a,i){return n.call(this,t,en(a),i,e)}),i[t](r,...a)}function yt(e,t,n){const a=Qt(e);ut(a,0,lt);const i=a[t](...n);return-1!==i&&!1!==i||!Jt(n[0])?i:(n[0]=Qt(n[0]),a[t](...n))}function bt(e,t,n=[]){Qe(),Ue();const a=Qt(e)[t].apply(e,n);return He(),Ze(),a}const _t=n("__proto__,__v_isRef,__isVue"),wt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(_));function kt(e){_(e)||(e=String(e));const t=Qt(this);return ut(t,0,e),t.hasOwnProperty(e)}class Ct{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if("__v_skip"===t)return e.__v_skip;const a=this._isReadonly,i=this._isShallow;if("__v_isReactive"===t)return!a;if("__v_isReadonly"===t)return a;
13if("__v_isShallow"===t)return i;if("__v_raw"===t)return n===(a?i?Ut:jt:i?Xt:Vt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const r=p(e);if(!a){let e;if(r&&(e=pt[t]))return e;if("hasOwnProperty"===t)return kt}const o=Reflect.get(e,t,nn(e)?e:n);if(_(t)?wt.has(t):_t(t))return o;if(a||ut(e,0,t),i)return o;if(nn(o)){const e=r&&E(t)?o:o.value;return a&&w(e)?Kt(e):e}return w(o)?a?Kt(o):Ht(o):o}}class St extends Ct{constructor(e=!1){super(!1,e)}set(e,t,n,a){let i=e[t];if(!this._isShallow){const t=$t(i);if(Yt(n)||$t(n)||(i=Qt(i),n=Qt(n)),!p(e)&&nn(i)&&!nn(n))return t||(i.value=n),!0}const r=p(e)&&E(t)?Number(t)<e.length:h(e,t),o=Reflect.set(e,t,n,nn(e)?e:a);return e===Qt(a)&&(r?B(n,i)&&ct(e,"set",t,n):ct(e,"add",t,n)),o}deleteProperty(e,t){const n=h(e,t);e[t];const a=Reflect.deleteProperty(e,t);return a&&n&&ct(e,"delete",t,void 0),a}has(e,t){const n=Reflect.has(e,t);return _(t)&&wt.has(t)||ut(e,0,t),n}ownKeys(e){return ut(e,0,p(e)?"length":ot),Reflect.ownKeys(e)}}class Tt extends Ct{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const At=new St,Et=new Tt,It=new St(!0),xt=new Tt(!0),Nt=e=>e,Pt=e=>Reflect.getPrototypeOf(e);function Mt(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function Ot(e,t){const n={get(n){const a=this.__v_raw,i=Qt(a),r=Qt(n);e||(B(n,r)&&ut(i,0,n),ut(i,0,r));const{has:o}=Pt(i),s=t?Nt:e?tn:en;return o.call(i,n)?s(a.get(n)):o.call(i,r)?s(a.get(r)):void(a!==i&&a.get(n))},get size(){const t=this.__v_raw;return!e&&ut(Qt(t),0,ot),t.size},has(t){const n=this.__v_raw,a=Qt(n),i=Qt(t);return e||(B(t,i)&&ut(a,0,t),ut(a,0,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,a){const i=this,r=i.__v_raw,o=Qt(r),s=t?Nt:e?tn:en;return!e&&ut(o,0,ot),r.forEach((e,t)=>n.call(a,s(e),s(t),i))}};u(n,e?{add:Mt("add"),set:Mt("set"),delete:Mt("delete"),clear:Mt("clear")}:{add(e){t||Yt(e)||$t(e)||(e=Qt(e));const n=Qt(this);return Pt(n).has.call(n,e)||(n.add(e),ct(n,"add",e,e)),this},set(e,n){t||Yt(n)||$t(n)||(n=Qt(n));const a=Qt(this),{has:i,get:r}=Pt(a);let o=i.call(a,e);o||(e=Qt(e),o=i.call(a,e));const s=r.call(a,e);return a.set(e,n),o?B(n,s)&&ct(a,"set",e,n):ct(a,"add",e,n),this},delete(e){const t=Qt(this),{has:n,get:a}=Pt(t);let i=n.call(t,e);i||(e=Qt(e),i=n.call(t,e)),a&&a.call(t,e);const r=t.delete(e);return i&&ct(t,"delete",e,void 0),r},clear(){const e=Qt(this),t=0!==e.size,n=e.clear();return t&&ct(e,"clear",void 0,void 0),n}});return["keys","values","entries",Symbol.iterator].forEach(a=>{n[a]=function(e,t,n){return function(...a){const i=this.__v_raw,r=Qt(i),o=f(r),s="entries"===e||e===Symbol.iterator&&o,l="keys"===e&&o,u=i[e](...a),c=n?Nt:t?tn:en;return!t&&ut(r,0,l?st:ot),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:s?[c(e[0]),c(e[1])]:c(e),done:t}},[Symbol.iterator](){return this}}}}(a,e,t)}),n}function Rt(e,t){const n=Ot(e,t);return(t,a,i)=>"__v_isReactive"===a?!e:"__v_isReadonly"===a?e:"__v_raw"===a?t:Reflect.get(h(n,a)&&a in t?n:t,a,i)}const Dt={get:Rt(!1,!1)},Lt={get:Rt(!1,!0)},Bt={get:Rt(!0,!1)},Ft={get:Rt(!0,!0)},Vt=new WeakMap,Xt=new WeakMap,jt=new WeakMap,Ut=new WeakMap;function Ht(e){return $t(e)?e:Gt(e,!1,At,Dt,Vt)}function zt(e){return Gt(e,!1,It,Lt,Xt)}function Kt(e){return Gt(e,!0,Et,Bt,jt)}function Wt(e){return Gt(e,!0,xt,Ft,Ut)}function Gt(e,t,n,a,i){if(!w(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const r=(o=e).__v_skip||!Object.isExtensible(o)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(T(o));var o;if(0===r)return e;const s=i.get(e);if(s)return s;const l=new Proxy(e,2===r?a:n);return i.set(e,l),l}function qt(e){return $t(e)?qt(e.__v_raw):!(!e||!e.__v_isReactive)}function $t(e){return!(!e||!e.__v_isReadonly)}function Yt(e){return!(!e||!e.__v_isShallow)}function Jt(e){return!!e&&!!e.__v_raw}function Qt(e){const t=e&&e.__v_raw;return t?Qt(t):e}function Zt(e){return!h(e,"__v_skip")&&Object.isExtensible(e)&&V(e,"__v_skip",!0),e}const en=e=>w(e)?Ht(e):e,tn=e=>w(e)?Kt(e):e;function nn(e){return!!e&&!0===e.__v_isRef}function an(e){return on(e,!1)}function rn(e){return on(e,!0)}function on(e,t){return nn(e)?e:new sn(e,t)}class sn{constructor(e,t){this.dep=new at,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:Qt(e),this._value=t?e:en(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,n=this.__v_isShallow||Yt(e)||$t(e);e=n?e:Qt(e),B(e,t)&&(this._rawValue=e,this._value=n?e:en(e),this.dep.trigger())}}function ln(e){return nn(e)?e.value:e}
13function un(e){return y(e)?e():ln(e)}const cn={get:(e,t,n)=>"__v_raw"===t?e:ln(Reflect.get(e,t,n)),set:(e,t,n,a)=>{const i=e[t];return nn(i)&&!nn(n)?(i.value=n,!0):Reflect.set(e,t,n,a)}};function dn(e){return qt(e)?e:new Proxy(e,cn)}class hn{constructor(e){this.__v_isRef=!0,this._value=void 0;const t=this.dep=new at,{get:n,set:a}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=a}get value(){return this._value=this._get()}set value(e){this._set(e)}}function pn(e){return new hn(e)}function fn(e){const t=p(e)?new Array(e.length):{};for(const n in e)t[n]=yn(e,n);return t}class mn{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){const n=rt.get(e);return n&&n.get(t)}(Qt(this._object),this._key)}}class vn{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 gn(e,t,n){return nn(e)?e:y(e)?new vn(e):w(e)&&arguments.length>1?yn(e,t,n):an(e)}function yn(e,t,n){const a=e[t];return nn(a)?a:new mn(e,t,n)}class bn{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new at(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=tt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags)&&Pe!==this)return je(this,!0),!0}get value(){const e=this.dep.track();return Ge(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}const _n={},wn=new WeakMap;let kn;function Cn(e,t=!1,n=kn){if(n){let t=wn.get(n);t||wn.set(n,t=[]),t.push(e)}}function Sn(e,t=1/0,n){if(t<=0||!w(e)||e.__v_skip)return e;if(((n=n||new Map).get(e)||0)>=t)return e;if(n.set(e,t),t--,nn(e))Sn(e.value,t,n);else if(p(e))for(let a=0;a<e.length;a++)Sn(e[a],t,n);else if(m(e)||f(e))e.forEach(e=>{Sn(e,t,n)});else if(A(e)){for(const a in e)Sn(e[a],t,n);for(const a of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,a)&&Sn(e[a],t,n)}return e}
14/**
15* @vue/runtime-core v3.5.22
16* (c) 2018-present Yuxi (Evan) You and Vue contributors
17* @license MIT
18**/const Tn=[];let An=!1;function En(e,...t){if(An)return;An=!0,Qe();const n=Tn.length?Tn[Tn.length-1].component:null,a=n&&n.appContext.config.warnHandler,i=function(){let e=Tn[Tn.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const a=e.component&&e.component.parent;e=a&&a.vnode}return t}();if(a)Pn(a,n,11,[e+t.map(e=>{var t,n;return null!=(n=null==(t=e.toString)?void 0:t.call(e))?n:JSON.stringify(e)}).join(""),n&&n.proxy,i.map(({vnode:e})=>"at <".concat(Qo(n,e.type),">")).join("\n"),i]);else{const n=["[Vue warn]: ".concat(e),...t];i.length&&n.push("\n",...function(e){const t=[];return e.forEach((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){const n=t>0?"... (".concat(t," recursive calls)"):"",a=!!e.component&&null==e.component.parent,i=" at <".concat(Qo(e.component,e.type,a)),r=">"+n;return e.props?[i,...In(e.props),r]:[i+r]}(e))}),t}(i)),console.warn(...n)}Ze(),An=!1}function In(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(n=>{t.push(...xn(n,e[n]))}),n.length>3&&t.push(" ..."),t}function xn(e,t,n){return b(t)?(t=JSON.stringify(t),n?t:["".concat(e,"=").concat(t)]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:["".concat(e,"=").concat(t)]:nn(t)?(t=xn(e,Qt(t.value),!0),n?t:["".concat(e,"=Ref<"),t,">"]):y(t)?["".concat(e,"=fn").concat(t.name?"<".concat(t.name,">"):"")]:(t=Qt(t),n?t:["".concat(e,"="),t])}const Nn={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 Pn(e,t,n,a){try{return a?e(...a):e()}catch(i){On(i,t,n)}}function Mn(e,t,n,a){if(y(e)){const i=Pn(e,t,n,a);return i&&k(i)&&i.catch(e=>{On(e,t,n)}),i}if(p(e)){const i=[];for(let r=0;r<e.length;r++)i.push(Mn(e[r],t,n,a));return i}}function On(e,t,n,i=!0){t&&t.vnode;const{errorHandler:r,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||a;if(t){let a=t.parent;const i=t.proxy,o="https://vuejs.org/error-reference/#runtime-".concat(n);for(;a;){const t=a.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,i,o))return;a=a.parent}if(r)return Qe(),Pn(r,null,10,[e,i,o]),void Ze()}!function(e,t,n,a=!0,i=!1){if(i)throw e;console.error(e)}(e,0,0,i,o)}const Rn=[];let Dn=-1;const Ln=[];let Bn=null,Fn=0;const Vn=Promise.resolve();let Xn=null;function jn(e){const t=Xn||Vn;return e?t.then(this?e.bind(this):e):t}function Un(e){if(!(1&e.flags)){const t=Gn(e),n=Rn[Rn.length-1];!n||!(2&e.flags)&&t>=Gn(n)?Rn.push(e):Rn.splice(function(e){let t=Dn+1,n=Rn.length;for(;t<n;){const a=t+n>>>1,i=Rn[a],r=Gn(i);r<e||r===e&&2&i.flags?t=a+1:n=a}return t}(t),0,e),e.flags|=1,Hn()}}function Hn(){Xn||(Xn=Vn.then(qn))}function zn(e){p(e)?Ln.push(...e):Bn&&-1===e.id?Bn.splice(Fn+1,0,e):1&e.flags||(Ln.push(e),e.flags|=1),Hn()}function Kn(e,t,n=Dn+1){for(;n<Rn.length;n++){const t=Rn[n];if(t&&2&t.flags){if(e&&t.id!==e.uid)continue;Rn.splice(n,1),n--,4&t.flags&&(t.flags&=-2),t(),4&t.flags||(t.flags&=-2)}}}function Wn(e){if(Ln.length){const e=[...new Set(Ln)].sort((e,t)=>Gn(e)-Gn(t));if(Ln.length=0,Bn)return void Bn.push(...e);for(Bn=e,Fn=0;Fn<Bn.length;Fn++){const e=Bn[Fn];4&e.flags&&(e.flags&=-2),8&e.flags||e(),e.flags&=-2}Bn=null,Fn=0}}const Gn=e=>null==e.id?2&e.flags?-1:1/0:e.id;function qn(e){try{for(Dn=0;Dn<Rn.length;Dn++){const e=Rn[Dn];!e||8&e.flags||(4&e.flags&&(e.flags&=-2),Pn(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2))}}finally{for(;Dn<Rn.length;Dn++){const e=Rn[Dn];e&&(e.flags&=-2)}Dn=-1,Rn.length=0,Wn(),Xn=null,(Rn.length||Ln.length)&&qn()}}let $n,Yn=[];let Jn=null,Qn=null;function Zn(e){const t=Jn;return Jn=e,Qn=e&&e.type.__scopeId||null,t}function ea(e,t=Jn,n){if(!t)return e;if(e._n)return e;const a=(...n)=>{a._d&&uo(-1);const i=Zn(t);let r;try{r=e(...n)}finally{Zn(i),a._d&&uo(1)}return r};return a._n=!0,a._c=!0,a._d=!0,a}function ta(e,t){if(null===Jn)return e;const n=qo(Jn),i=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[e,o,s,l=a]=t[r];e&&(y(e)&&(e={mounted:e,updated:e}),e.deep&&Sn(o),i.push({dir:e,instance:n,value:o,oldValue:void 0,arg:s,modifiers:l}))}return e}function na(e,t,n,a){const i=e.dirs,r=t&&t.dirs;for(let o=0;o<i.length;o++){const s=i[o];r&&(s.oldValue=r[o].value);let l=s.dir[a];l&&(Qe(),Mn(l,n,8,[e.el,s,e,t]),Ze())}}const aa=Symbol("_vte"),ia=e=>e.__isTeleport,ra=e=>e&&(e.disabled||""===e.disabled),oa=e=>e&&(e.defer||""===e.defer),sa=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,la=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,ua=(e,t)=>{const n=e&&e.to;
18if(b(n)){if(t){return t(n)}return null}return n},ca={name:"Teleport",__isTeleport:!0,process(e,t,n,a,i,r,o,s,l,u){const{mc:c,pc:d,pbc:h,o:{insert:p,querySelector:f,createText:m,createComment:v}}=u,g=ra(t.props);let{shapeFlag:y,children:b,dynamicChildren:_}=t;if(null==e){const e=t.el=m(""),u=t.anchor=m("");p(e,n,a),p(u,n,a);const d=(e,t)=>{16&y&&c(b,e,t,i,r,o,s,l)},h=()=>{const e=t.target=ua(t.props,f),n=fa(e,t,m,p);e&&("svg"!==o&&sa(e)?o="svg":"mathml"!==o&&la(e)&&(o="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(e),g||(d(e,n),pa(t,!1)))};g&&(d(n,u),pa(t,!0)),oa(t.props)?(t.el.__isMounted=!1,yr(()=>{h(),delete t.el.__isMounted},r)):h()}else{if(oa(t.props)&&!1===e.el.__isMounted)return void yr(()=>{ca.process(e,t,n,a,i,r,o,s,l,u)},r);t.el=e.el,t.targetStart=e.targetStart;const c=t.anchor=e.anchor,p=t.target=e.target,m=t.targetAnchor=e.targetAnchor,v=ra(e.props),y=v?n:p,b=v?c:m;if("svg"===o||sa(p)?o="svg":("mathml"===o||la(p))&&(o="mathml"),_?(h(e.dynamicChildren,_,y,i,r,o,s),Tr(e,t,!0)):l||d(e,t,y,b,i,r,o,s,!1),g)v?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):da(t,n,c,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=ua(t.props,f);e&&da(t,e,null,u,0)}else v&&da(t,p,m,u,1);pa(t,g)}},remove(e,t,n,{um:a,o:{remove:i}},r){const{shapeFlag:o,children:s,anchor:l,targetStart:u,targetAnchor:c,target:d,props:h}=e;if(d&&(i(u),i(c)),r&&i(l),16&o){const e=r||!ra(h);for(let i=0;i<s.length;i++){const r=s[i];a(r,t,n,e,!!r.dynamicChildren)}}},move:da,hydrate:function(e,t,n,a,i,r,{o:{nextSibling:o,parentNode:s,querySelector:l,insert:u,createText:c}},d){function h(e,t,l,u){t.anchor=d(o(e),t,s(e),n,a,i,r),t.targetStart=l,t.targetAnchor=u}const p=t.target=ua(t.props,l),f=ra(t.props);if(p){const s=p._lpa||p.firstChild;if(16&t.shapeFlag)if(f)h(e,t,s,s&&o(s));else{t.anchor=o(e);let l=s;for(;l;){if(l&&8===l.nodeType)if("teleport start anchor"===l.data)t.targetStart=l;else if("teleport anchor"===l.data){t.targetAnchor=l,p._lpa=t.targetAnchor&&o(t.targetAnchor);break}l=o(l)}t.targetAnchor||fa(p,t,c,u),d(s&&o(s),t,p,n,a,i,r)}pa(t,f)}else f&&16&t.shapeFlag&&h(e,t,e,o(e));return t.anchor&&o(t.anchor)}};function da(e,t,n,{o:{insert:a},m:i},r=2){0===r&&a(e.targetAnchor,t,n);const{el:o,anchor:s,shapeFlag:l,children:u,props:c}=e,d=2===r;if(d&&a(o,t,n),(!d||ra(c))&&16&l)for(let h=0;h<u.length;h++)i(u[h],t,n,2);d&&a(s,t,n)}const ha=ca;function pa(e,t){const n=e.ctx;if(n&&n.ut){let a,i;for(t?(a=e.el,i=e.anchor):(a=e.targetStart,i=e.targetAnchor);a&&a!==i;)1===a.nodeType&&a.setAttribute("data-v-owner",n.uid),a=a.nextSibling;n.ut()}}function fa(e,t,n,a){const i=t.targetStart=n(""),r=t.targetAnchor=n("");return i[aa]=r,e&&(a(i,e),a(r,e)),r}const ma=Symbol("_leaveCb"),va=Symbol("_enterCb");function ga(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return hi(()=>{e.isMounted=!0}),mi(()=>{e.isUnmounting=!0}),e}const ya=[Function,Array],ba={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ya,onEnter:ya,onAfterEnter:ya,onEnterCancelled:ya,onBeforeLeave:ya,onLeave:ya,onAfterLeave:ya,onLeaveCancelled:ya,onBeforeAppear:ya,onAppear:ya,onAfterAppear:ya,onAppearCancelled:ya},_a=e=>{const t=e.subTree;return t.component?_a(t.component):t},wa={name:"BaseTransition",props:ba,setup(e,{slots:t}){const n=Ro(),a=ga();return()=>{const i=t.default&&xa(t.default(),!0);if(!i||!i.length)return;const r=ka(i),o=Qt(e),{mode:s}=o;if(a.isLeaving)return Aa(r);const l=Ea(r);if(!l)return Aa(r);let u=Ta(l,o,a,n,e=>u=e);l.type!==no&&Ia(l,u);let c=n.subTree&&Ea(n.subTree);if(c&&c.type!==no&&!mo(c,l)&&_a(n).type!==no){let e=Ta(c,o,a,n);if(Ia(c,e),"out-in"===s&&l.type!==no)return a.isLeaving=!0,e.afterLeave=()=>{a.isLeaving=!1,8&n.job.flags||n.update(),delete e.afterLeave,c=void 0},Aa(r);"in-out"===s&&l.type!==no?e.delayLeave=(e,t,n)=>{Sa(a,c)[String(c.key)]=c,e[ma]=()=>{t(),e[ma]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{n(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return r}}};function ka(e){let t=e[0];if(e.length>1)for(const n of e)if(n.type!==no){t=n;break}return t}const Ca=wa;
18function Sa(e,t){const{leavingVNodes:n}=e;let a=n.get(t.type);return a||(a=Object.create(null),n.set(t.type,a)),a}function Ta(e,t,n,a,i){const{appear:r,mode:o,persisted:s=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:h,onLeave:f,onAfterLeave:m,onLeaveCancelled:v,onBeforeAppear:g,onAppear:y,onAfterAppear:b,onAppearCancelled:_}=t,w=String(e.key),k=Sa(n,e),C=(e,t)=>{e&&Mn(e,a,9,t)},S=(e,t)=>{const n=t[1];C(e,t),p(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},T={mode:o,persisted:s,beforeEnter(t){let a=l;if(!n.isMounted){if(!r)return;a=g||l}t[ma]&&t[ma](!0);const i=k[w];i&&mo(e,i)&&i.el[ma]&&i.el[ma](),C(a,[t])},enter(e){let t=u,a=c,i=d;if(!n.isMounted){if(!r)return;t=y||u,a=b||c,i=_||d}let o=!1;const s=e[va]=t=>{o||(o=!0,C(t?i:a,[e]),T.delayedLeave&&T.delayedLeave(),e[va]=void 0)};t?S(t,[e,s]):s()},leave(t,a){const i=String(e.key);if(t[va]&&t[va](!0),n.isUnmounting)return a();C(h,[t]);let r=!1;const o=t[ma]=n=>{r||(r=!0,a(),C(n?v:m,[t]),t[ma]=void 0,k[i]===e&&delete k[i])};k[i]=e,f?S(f,[t,o]):o()},clone(e){const r=Ta(e,t,n,a,i);return i&&i(r),r}};return T}function Aa(e){if(Za(e))return(e=wo(e)).children=null,e}function Ea(e){if(!Za(e))return ia(e.type)&&e.children?ka(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&y(n.default))return n.default()}}function Ia(e,t){6&e.shapeFlag&&e.component?(e.transition=t,Ia(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function xa(e,t=!1,n){let a=[],i=0;for(let r=0;r<e.length;r++){let o=e[r];const s=null==n?o.key:String(n)+String(null!=o.key?o.key:r);o.type===eo?(128&o.patchFlag&&i++,a=a.concat(xa(o.children,t,s))):(t||o.type!==no)&&a.push(null!=s?wo(o,{key:s}):o)}if(i>1)for(let r=0;r<a.length;r++)a[r].patchFlag=-2;return a}function Na(e,t){return y(e)?(()=>u({name:e.name},t,{setup:e}))():e}function Pa(){const e=Ro();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Ma(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Oa=new WeakMap;function Ra(e,t,n,i,r=!1){if(p(e))return void e.forEach((e,a)=>Ra(e,t&&(p(t)?t[a]:t),n,i,r));if(Ya(i)&&!r)return void(512&i.shapeFlag&&i.type.__asyncResolved&&i.component.subTree.component&&Ra(e,t,n,i.component.subTree));const s=4&i.shapeFlag?qo(i.component):i.el,l=r?null:s,{i:u,r:d}=e,f=t&&t.r,m=u.refs===a?u.refs={}:u.refs,v=u.setupState,g=Qt(v),_=v===a?o:e=>h(g,e);if(null!=f&&f!==d)if(Da(t),b(f))m[f]=null,_(f)&&(v[f]=null);else if(nn(f)){f.value=null;const e=t;e.k&&(m[e.k]=null)}if(y(d))Pn(d,u,12,[l,m]);else{const t=b(d),a=nn(d);if(t||a){const i=()=>{if(e.f){const n=t?_(d)?v[d]:m[d]:d.value;if(r)p(n)&&c(n,s);else if(p(n))n.includes(s)||n.push(s);else if(t)m[d]=[s],_(d)&&(v[d]=m[d]);else{const t=[s];d.value=t,e.k&&(m[e.k]=t)}}else t?(m[d]=l,_(d)&&(v[d]=l)):a&&(d.value=l,e.k&&(m[e.k]=l))};if(l){const t=()=>{i(),Oa.delete(e)};t.id=-1,Oa.set(e,t),yr(t,n)}else Da(e),i()}}}function Da(e){const t=Oa.get(e);t&&(t.flags|=8,Oa.delete(e))}let La=!1;const Ba=()=>{La||(console.error("Hydration completed but contains mismatches."),La=!0)},Fa=e=>{if(1===e.nodeType)return(e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName)(e)?"svg":(e=>e.namespaceURI.includes("MathML"))(e)?"mathml":void 0},Va=e=>8===e.nodeType;function Xa(e){const{mt:t,p:n,o:{patchProp:a,createText:i,nextSibling:r,parentNode:o,remove:l,insert:u,createComment:c}}=e,d=(n,a,s,l,c,b=!1)=>{b=b||!!a.dynamicChildren;
18const _=Va(n)&&"["===n.data,w=()=>m(n,a,s,l,c,_),{type:k,ref:C,shapeFlag:S,patchFlag:T}=a;let A=n.nodeType;a.el=n,-2===T&&(b=!1,a.dynamicChildren=null);let E=null;switch(k){case to:3!==A?""===a.children?(u(a.el=i(""),o(n),n),E=n):E=w():(n.data!==a.children&&(En("Hydration text mismatch in",n.parentNode,"\n  - rendered on server: ".concat(JSON.stringify(n.data),"\n  - expected on client: ").concat(JSON.stringify(a.children))),Ba(),n.data=a.children),E=r(n));break;case no:y(n)?(E=r(n),g(a.el=n.content.firstChild,n,s)):E=8!==A||_?w():r(n);break;case ao:if(_&&(A=(n=r(n)).nodeType),1===A||3===A){E=n;const e=!a.children.length;for(let t=0;t<a.staticCount;t++)e&&(a.children+=1===E.nodeType?E.outerHTML:E.data),t===a.staticCount-1&&(a.anchor=E),E=r(E);return _?r(E):E}w();break;case eo:E=_?f(n,a,s,l,c,b):w();break;default:if(1&S)E=1===A&&a.type.toLowerCase()===n.tagName.toLowerCase()||y(n)?h(n,a,s,l,c,b):w();else if(6&S){a.slotScopeIds=c;const e=o(n);if(E=_?v(n):Va(n)&&"teleport start"===n.data?v(n,n.data,"teleport end"):r(n),t(a,e,null,s,l,Fa(e),b),Ya(a)&&!a.type.__asyncResolved){let t;_?(t=bo(eo),t.anchor=E?E.previousSibling:e.lastChild):t=3===n.nodeType?ko(""):bo("div"),t.el=n,a.component.subTree=t}}else 64&S?E=8!==A?w():a.type.hydrate(n,a,s,l,c,b,e,p):128&S?E=a.type.hydrate(n,a,s,l,Fa(o(n)),c,b,e,d):En("Invalid HostVNode type:",k,"(".concat(typeof k,")"))}return null!=C&&Ra(C,null,l,a),E},h=(e,t,n,i,r,o)=>{o=o||!!t.dynamicChildren;const{type:u,props:c,patchFlag:d,shapeFlag:h,dirs:f,transition:m}=t,v="input"===u||"option"===u;if(v||-1!==d){f&&na(t,null,n,"created");let u,d=!1;if(y(e)){d=Sr(null,m)&&n&&n.vnode.props&&n.vnode.props.appear;const a=e.content.firstChild;if(d){const e=a.getAttribute("class");e&&(a.$cls=e),m.beforeEnter(a)}g(a,e,n),t.el=e=a}if(16&h&&(!c||!c.innerHTML&&!c.textContent)){let a=p(e.firstChild,t,e,n,i,r,o),s=!1;for(;a;){Ga(e,1)||(s||(En("Hydration children mismatch on",e,"\nServer rendered element contains more child nodes than client vdom."),s=!0),Ba());const t=a;a=a.nextSibling,l(t)}}else if(8&h){let n=t.children;"\n"!==n[0]||"PRE"!==e.tagName&&"TEXTAREA"!==e.tagName||(n=n.slice(1)),e.textContent!==n&&(Ga(e,0)||(En("Hydration text content mismatch on",e,"\n  - rendered on server: ".concat(e.textContent,"\n  - expected on client: ").concat(t.children)),Ba()),e.textContent=t.children)}if(c){const i=e.tagName.includes("-");for(const r in c)f&&f.some(e=>e.dir.created)||!ja(e,r,c[r],t,n)||Ba(),(v&&(r.endsWith("value")||"indeterminate"===r)||s(r)&&!I(r)||"."===r[0]||i)&&a(e,r,null,c[r],void 0,n)}(u=c&&c.onVnodeBeforeMount)&&xo(u,n,t),f&&na(t,null,n,"beforeMount"),((u=c&&c.onVnodeMounted)||f||d)&&Qr(()=>{u&&xo(u,n,t),d&&m.enter(e),f&&na(t,null,n,"mounted")},i)}return e.nextSibling},p=(e,t,a,o,s,l,c)=>{c=c||!!t.dynamicChildren;const h=t.children,p=h.length;let f=!1;for(let m=0;m<p;m++){const t=c?h[m]:h[m]=To(h[m]),v=t.type===to;e?(v&&!c&&m+1<p&&To(h[m+1]).type===to&&(u(i(e.data.slice(t.children.length)),a,r(e)),e.data=t.children),e=d(e,t,o,s,l,c)):v&&!t.children?u(t.el=i(""),a):(Ga(a,1)||(f||(En("Hydration children mismatch on",a,"\nServer rendered element contains fewer child nodes than client vdom."),f=!0),Ba()),n(null,t,a,null,o,s,Fa(a),l))}return e},f=(e,t,n,a,i,s)=>{const{slotScopeIds:l}=t;l&&(i=i?i.concat(l):l);const d=o(e),h=p(r(e),t,d,n,a,i,s);return h&&Va(h)&&"]"===h.data?r(t.anchor=h):(Ba(),u(t.anchor=c("]"),d,h),h)},m=(e,t,a,i,s,u)=>{if(Ga(e.parentElement,1)||(En("Hydration node mismatch:\n- rendered on server:",e,3===e.nodeType?"(text)":Va(e)&&"["===e.data?"(start of fragment)":"","\n- expected on client:",t.type),Ba()),t.el=null,u){const t=v(e);for(;;){const n=r(e);if(!n||n===t)break;l(n)}}const c=r(e),d=o(e);return l(e),n(null,t,d,c,a,i,Fa(d),s),a&&(a.vnode.el=t.el,Kr(a,t.el)),c},v=(e,t="[",n="]")=>{let a=0;for(;e;)if((e=r(e))&&Va(e)&&(e.data===t&&a++,e.data===n)){if(0===a)return r(e);a--}return e},g=(e,t,n)=>{const a=t.parentNode;a&&a.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},y=e=>1===e.nodeType&&"TEMPLATE"===e.tagName;return[(e,t)=>{if(!t.hasChildNodes())return En("Attempting to hydrate existing markup but container is empty. Performing full mount instead."),n(null,e,t),Wn(),void(t._vnode=e);d(t.firstChild,e,null,null,null),Wn(),t._vnode=e},d]}function ja(e,t,n,a,i){let r,o,s,l;if("class"===t)e.$cls?(s=e.$cls,delete e.$cls):s=e.getAttribute("class"),l=ne(n),function(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}(Ua(s||""),Ua(l))||(r=2,o="class");else if("style"===t){s=e.getAttribute("style")||"",l=b(n)?n:te(Y(n));const t=Ha(s),u=Ha(l);if(a.dirs)for(const{dir:e,value:n}of a.dirs)"show"!==e.name||n||u.set("display","none");i&&za(i,a,u),function(e,t){if(e.size!==t.size)return!1;for(const[n,a]of e)if(a!==t.get(n))return!1;return!0}(t,u)||(r=3,o="style")}else(e instanceof SVGElement&&me(t)||e instanceof HTMLElement&&(ce(t)||fe(t)))&&(ce(t)?(s=e.hasAttribute(t),l=de(n)):null==n?(s=e.hasAttribute(t),l=!1):(s=e.hasAttribute(t)?e.getAttribute(t):"value"===t&&"TEXTAREA"===e.tagName&&e.value,l=!!ge(n)&&String(n)),s!==l&&(r=4,o=t));if(null!=r&&!Ga(e,r)){const t=e=>!1===e?"(not rendered)":"".concat(o,'="').concat(e,'"');return En("Hydration ".concat(Wa[r]," mismatch on"),e,"\n  - rendered on server: ".concat(t(s),"\n  - expected on client: ").concat(t(l),"\n  Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead.\n  You should fix the source of the mismatch.")),!0}return!1}function Ua(e){return new Set(e.trim().split(/\s+/))}function Ha(e){const t=new Map;for(const n of e.split(";")){let[e,a]=n.split(":");e=e.trim(),a=a&&a.trim(),e&&a&&t.set(e,a)}return t}function za(e,t,n){const a=e.subTree;if(e.getCssVars&&(t===a||a&&a.type===eo&&a.children.includes(t))){const t=e.getCssVars();for(const e in t){const a=Ie(t[e]);n.set("--".concat(we(e,!1)),a)}}t===a&&e.parent&&za(e.parent,e.vnode,n)}const Ka="data-allow-mismatch",Wa={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Ga(e,t){if(0===t||1===t)for(;e&&!e.hasAttribute(Ka);)e=e.parentElement;const n=e&&e.getAttribute(Ka);if(null==n)return!1;if(""===n)return!0;{const e=n.split(",");return!(0!==t||!e.includes("children"))||e.includes(Wa[t])}}const qa=H().requestIdleCallback||(e=>setTimeout(e,1)),$a=H().cancelIdleCallback||(e=>clearTimeout(e));const Ya=e=>!!e.type.__asyncLoader;function Ja(e){y(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:a,delay:i=200,hydrate:r,timeout:o,suspensible:s=!0,onError:l}=e;let u,c=null,d=0;const h=()=>{let e;return c||(e=c=t().catch(e=>{if(e=e instanceof Error?e:new Error(String(e)),l)return new Promise((t,n)=>{l(e,()=>
18t((d++,c=null,h())),()=>n(e),d+1)});throw e}).then(t=>e!==c&&c?c:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),u=t,t)))};return Na({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(e,t,n){let a=!1;(t.bu||(t.bu=[])).push(()=>a=!0);const i=()=>{a||n()},o=r?()=>{const n=r(i,t=>function(e,t){if(Va(e)&&"["===e.data){let n=1,a=e.nextSibling;for(;a;){if(1===a.nodeType){if(!1===t(a))break}else if(Va(a))if("]"===a.data){if(0===--n)break}else"["===a.data&&n++;a=a.nextSibling}}else t(e)}(e,t));n&&(t.bum||(t.bum=[])).push(n)}:i;u?o():h().then(()=>!t.isUnmounted&&o())},get __asyncResolved(){return u},setup(){const e=Oo;if(Ma(e),u)return()=>Qa(u,e);const t=t=>{c=null,On(t,e,13,!a)};if(s&&e.suspense||Uo)return h().then(t=>()=>Qa(t,e)).catch(e=>(t(e),()=>a?bo(a,{error:e}):null));const r=an(!1),l=an(),d=an(!!i);return i&&setTimeout(()=>{d.value=!1},i),null!=o&&setTimeout(()=>{if(!r.value&&!l.value){const e=new Error("Async component timed out after ".concat(o,"ms."));t(e),l.value=e}},o),h().then(()=>{r.value=!0,e.parent&&Za(e.parent.vnode)&&e.parent.update()}).catch(e=>{t(e),l.value=e}),()=>r.value&&u?Qa(u,e):l.value&&a?bo(a,{error:l.value}):n&&!d.value?bo(n):void 0}})}function Qa(e,t){const{ref:n,props:a,children:i,ce:r}=t.vnode,o=bo(e,a,i);return o.ref=n,o.ce=r,delete t.vnode.ce,o}const Za=e=>e.type.__isKeepAlive,ei={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Ro(),a=n.ctx;if(!a.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const i=new Map,r=new Set;let o=null;const s=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:d}}}=a,h=d("div");function p(e){si(e),c(e,n,s,!0)}function f(e){i.forEach((t,n)=>{const a=Jo(t.type);a&&!e(a)&&m(n)})}function m(e){const t=i.get(e);!t||o&&mo(t,o)?o&&si(o):p(t),i.delete(e),r.delete(e)}a.activate=(e,t,n,a,i)=>{const r=e.component;u(e,t,n,0,s),l(r.vnode,e,t,n,r,s,a,e.slotScopeIds,i),yr(()=>{r.isDeactivated=!1,r.a&&F(r.a);const t=e.props&&e.props.onVnodeMounted;t&&xo(t,r.parent,e)},s)},a.deactivate=e=>{const t=e.component;Er(t.m),Er(t.a),u(e,h,null,1,s),yr(()=>{t.da&&F(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&xo(n,t.parent,e),t.isDeactivated=!0},s)},Mr(()=>[e.include,e.exclude],([e,t])=>{e&&f(t=>ni(e,t)),t&&f(e=>!ni(t,e))},{flush:"post",deep:!0});let v=null;const g=()=>{null!=v&&(Wr(n.subTree.type)?yr(()=>{i.set(v,li(n.subTree))},n.subTree.suspense):i.set(v,li(n.subTree)))};return hi(g),fi(g),mi(()=>{i.forEach(e=>{const{subTree:t,suspense:a}=n,i=li(t);if(e.type===i.type&&e.key===i.key){si(i);const e=i.component.da;return void(e&&yr(e,a))}p(e)})}),()=>{if(v=null,!t.default)return o=null;const n=t.default(),a=n[0];if(n.length>1)return o=null,n;if(!(fo(a)&&(4&a.shapeFlag||128&a.shapeFlag)))return o=null,a;let s=li(a);if(s.type===no)return o=null,s;const l=s.type,u=Jo(Ya(s)?s.type.__asyncResolved||{}:l),{include:c,exclude:d,max:h}=e;if(c&&(!u||!ni(c,u))||d&&u&&ni(d,u))return s.shapeFlag&=-257,o=s,a;const p=null==s.key?l:s.key,f=i.get(p);return s.el&&(s=wo(s),128&a.shapeFlag&&(a.ssContent=s)),v=p,f?(s.el=f.el,s.component=f.component,s.transition&&Ia(s,s.transition),s.shapeFlag|=512,r.delete(p),r.add(p)):(r.add(p),h&&r.size>parseInt(h,10)&&m(r.values().next().value)),s.shapeFlag|=256,o=s,Wr(a.type)?a:s}}},ti=ei;function ni(e,t){return p(e)?e.some(e=>ni(e,t)):b(e)?e.split(",").includes(t):!!g(e)&&(e.lastIndex=0,e.test(t))}function ai(e,t){ri(e,"a",t)}function ii(e,t){ri(e,"da",t)}function ri(e,t,n=Oo){const a=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(ui(t,a,n),n){let e=n.parent;for(;e&&e.parent;)Za(e.parent.vnode)&&oi(a,t,n,e),e=e.parent}}function oi(e,t,n,a){const i=ui(t,e,a,!0);vi(()=>{c(a[t],i)},n)}function si(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function li(e){return 128&e.shapeFlag?e.ssContent:e}function ui(e,t,n=Oo,a=!1){if(n){const i=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...a)=>{Qe();const i=Bo(n),r=Mn(t,n,e,a);return i(),Ze(),r});return a?i.unshift(r):i.push(r),r}}const ci=e=>(t,n=Oo)=>{Uo&&"sp"!==e||ui(e,(...e)=>t(...e),n)},di=ci("bm"),hi=ci("m"),pi=ci("bu"),fi=ci("u"),mi=ci("bum"),vi=ci("um"),gi=ci("sp"),yi=ci("rtg"),bi=ci("rtc");function _i(e,t=Oo){ui("ec",e,t)}const wi="components";function ki(e,t){return Ai(wi,e,!0,t)||e}const Ci=Symbol.for("v-ndc");function Si(e){return b(e)?Ai(wi,e,!1)||e:e||Ci}function Ti(e){return Ai("directives",e)}function Ai(e,t,n=!0,a=!1){const i=Jn||Oo;if(i){const n=i.type;if(e===wi){const e=Jo(n,!1);if(e&&(e===t||e===M(t)||e===D(M(t))))return n}const r=Ei(i[e]||n[e],t)||Ei(i.appContext[e],t);return!r&&a?n:r}}function Ei(e,t){return e&&(e[t]||e[M(t)]||e[D(M(t))])}function Ii(e,t,n,a){let i;const r=n&&n[a],o=p(e);if(o||b(e)){let n=!1,a=!1;o&&qt(e)&&(n=!Yt(e),a=$t(e),e=ht(e)),i=new Array(e.length);for(let o=0,s=e.length;o<s;o++)i[o]=t(n?a?tn(en(e[o])):en(e[o]):e[o],o,void 0,r&&r[o])}else if("number"==typeof e){i=new Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,r&&r[n])}else if(w(e))if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,r&&r[n]));else{const n=Object.keys(e);i=new Array(n.length);for(let a=0,o=n.length;a<o;a++){const o=n[a];i[a]=t(e[o],o,a,r&&r[a])}}else i=[];return n&&(n[a]=i),i}function xi(e,t,n={},a,i){if(Jn.ce||Jn.parent&&Ya(Jn.parent)&&Jn.parent.ce){const e=Object.keys(n).length>0;return"default"!==t&&(n.name=t),oo(),po(eo,null,[bo("slot",n,a&&a())],e?-2:64)}let r=e[t];r&&r._c&&(r._d=!1),oo();const o=r&&Ni(r(n)),s=n.key||o&&o.key,l=po(eo,{key:(s&&!_(s)?s:"_".concat(t))+(!o&&a?"_fb":"")},o||(a?a():[]),o&&1===e._?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),r&&r._c&&(r._d=!0),l}function Ni(e){return e.some(e=>!fo(e)||e.type!==no&&!(e.type===eo&&!Ni(e.children)))?e:null}const Pi=e=>e?Vo(e)?qo(e):Pi(e.parent):null,Mi=u(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Pi(e.parent),$root:e=>Pi(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Hi(e),$forceUpdate:e=>e.f||(e.f=()=>{Un(e.update)}),$nextTick:e=>e.n||(e.n=jn.bind(e.proxy)),$watch:e=>Rr.bind(e)}),Oi=(e,t)=>e!==a&&!e.__isScriptSetup&&h(e,t),Ri={get({_:e},t){if("__v_skip"===t)return!0;
18const{ctx:n,setupState:i,data:r,props:o,accessCache:s,type:l,appContext:u}=e;let c;if("$"!==t[0]){const l=s[t];if(void 0!==l)switch(l){case 1:return i[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(Oi(i,t))return s[t]=1,i[t];if(r!==a&&h(r,t))return s[t]=2,r[t];if((c=e.propsOptions[0])&&h(c,t))return s[t]=3,o[t];if(n!==a&&h(n,t))return s[t]=4,n[t];Vi&&(s[t]=0)}}const d=Mi[t];let p,f;return d?("$attrs"===t&&ut(e.attrs,0,""),d(e)):(p=l.__cssModules)&&(p=p[t])?p:n!==a&&h(n,t)?(s[t]=4,n[t]):(f=u.config.globalProperties,h(f,t)?f[t]:void 0)},set({_:e},t,n){const{data:i,setupState:r,ctx:o}=e;return Oi(r,t)?(r[t]=n,!0):i!==a&&h(i,t)?(i[t]=n,!0):!h(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(o[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:r,propsOptions:o,type:s}},l){let u,c;return!!(n[l]||e!==a&&"$"!==l[0]&&h(e,l)||Oi(t,l)||(u=o[0])&&h(u,l)||h(i,l)||h(Mi,l)||h(r.config.globalProperties,l)||(c=s.__cssModules)&&c[l])},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:h(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},Di=u({},Ri,{get(e,t){if(t!==Symbol.unscopables)return Ri.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!G(t)});function Li(){return Bi().attrs}function Bi(e){const t=Ro();return t.setupContext||(t.setupContext=Go(t))}function Fi(e){return p(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}let Vi=!0;function Xi(e){const t=Hi(e),n=e.proxy,a=e.ctx;Vi=!1,t.beforeCreate&&ji(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:s,watch:l,provide:u,inject:c,created:d,beforeMount:h,mounted:f,beforeUpdate:m,updated:v,activated:g,deactivated:b,beforeDestroy:_,beforeUnmount:k,destroyed:C,unmounted:S,render:T,renderTracked:A,renderTriggered:E,errorCaptured:I,serverPrefetch:x,expose:N,inheritAttrs:P,components:M,directives:O,filters:R}=t;if(c&&function(e,t){p(e)&&(e=Gi(e));for(const n in e){const a=e[n];let i;i=w(a)?"default"in a?nr(a.from||n,a.default,!0):nr(a.from||n):nr(a),nn(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}(c,a,null),s)for(const r in s){const e=s[r];y(e)&&(a[r]=e.bind(n))}if(i){const t=i.call(n,n);w(t)&&(e.data=Ht(t))}if(Vi=!0,o)for(const p in o){const e=o[p],t=y(e)?e.bind(n,n):y(e.get)?e.get.bind(n,n):r,i=!y(e)&&y(e.set)?e.set.bind(n):r,s=Zo({get:t,set:i});Object.defineProperty(a,p,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e})}if(l)for(const r in l)Ui(l[r],a,n,r);if(u){const e=y(u)?u.call(n):u;Reflect.ownKeys(e).forEach(t=>{tr(t,e[t])})}function D(e,t){p(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(d&&ji(d,e,"c"),D(di,h),D(hi,f),D(pi,m),D(fi,v),D(ai,g),D(ii,b),D(_i,I),D(bi,A),D(yi,E),D(mi,k),D(vi,S),D(gi,x),p(N))if(N.length){const t=e.exposed||(e.exposed={});N.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||(e.exposed={});T&&e.render===r&&(e.render=T),null!=P&&(e.inheritAttrs=P),M&&(e.components=M),O&&(e.directives=O),x&&Ma(e)}function ji(e,t,n){Mn(p(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ui(e,t,n,a){let i=a.includes(".")?Dr(n,a):()=>n[a];if(b(e)){const n=t[e];y(n)&&Mr(i,n)}else if(y(e))Mr(i,e.bind(n));else if(w(e))if(p(e))e.forEach(e=>Ui(e,t,n,a));else{const a=y(e.handler)?e.handler.bind(n):t[e.handler];y(a)&&Mr(i,a,e)}}function Hi(e){const t=e.type,{mixins:n,extends:a}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:o}}=e.appContext,s=r.get(t);let l;return s?l=s:i.length||n||a?(l={},i.length&&i.forEach(e=>zi(l,e,o,!0)),zi(l,t,o)):l=t,w(t)&&r.set(t,l),l}function zi(e,t,n,a=!1){const{mixins:i,extends:r}=t;r&&zi(e,r,n,!0),i&&i.forEach(t=>zi(e,t,n,!0));for(const o in t)if(a&&"expose"===o);else{const a=Ki[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const Ki={data:Wi,props:Yi,emits:Yi,methods:$i,computed:$i,beforeCreate:qi,created:qi,beforeMount:qi,mounted:qi,beforeUpdate:qi,updated:qi,beforeDestroy:qi,beforeUnmount:qi,destroyed:qi,unmounted:qi,activated:qi,deactivated:qi,errorCaptured:qi,serverPrefetch:qi,components:$i,directives:$i,watch:function(e,t){if(!e)return t;if(!t)return e;const n=u(Object.create(null),e);for(const a in t)n[a]=qi(e[a],t[a]);return n},provide:Wi,inject:function(e,t){return $i(Gi(e),Gi(t))}};function Wi(e,t){return t?e?function(){return u(y(e)?e.call(this,this):e,y(t)?t.call(this,this):t)}:t:e}function Gi(e){if(p(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function qi(e,t){return e?[...new Set([].concat(e,t))]:t}function $i(e,t){return e?u(Object.create(null),e,t):t}function Yi(e,t){return e?p(e)&&p(t)?[...new Set([...e,...t])]:u(Object.create(null),Fi(e),Fi(null!=t?t:{})):t}function Ji(){return{app:null,config:{isNativeTag:o,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 Qi=0;function Zi(e,t){return function(n,a=null){y(n)||(n=u({},n)),null==a||w(a)||(a=null);const i=Ji(),r=new WeakSet,o=[];let s=!1;const l=i.app={_uid:Qi++,_component:n,_props:a,_container:null,_context:i,_instance:null,version:ns,get config(){return i.config},set config(e){},use:(e,...t)=>(r.has(e)||(e&&y(e.install)?(r.add(e),e.install(l,...t)):y(e)&&(r.add(e),e(l,...t))),l),mixin:e=>(i.mixins.includes(e)||i.mixins.push(e),l),component:(e,t)=>
vendor: 16,497 bytes, line 18
18t?(i.components[e]=t,l):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,l):i.directives[e],mount(r,o,u){if(!s){const c=l._ceVNode||bo(n,a);return c.appContext=i,!0===u?u="svg":!1===u&&(u=void 0),o&&t?t(c,r):e(c,r,u),s=!0,l._container=r,r.__vue_app__=l,qo(c.component)}},onUnmount(e){o.push(e)},unmount(){s&&(Mn(o,l._instance,16),e(null,l._container),delete l._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,l),runWithContext(e){const t=er;er=l;try{return e()}finally{er=t}}};return l}}let er=null;function tr(e,t){if(Oo){let n=Oo.provides;const a=Oo.parent&&Oo.parent.provides;a===n&&(n=Oo.provides=Object.create(a)),n[e]=t}else;}function nr(e,t,n=!1){const a=Ro();if(a||er){let i=er?er._context.provides:a?null==a.parent||a.ce?a.vnode.appContext&&a.vnode.appContext.provides:a.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&y(t)?t.call(a&&a.proxy):t}}function ar(){return!(!Ro()&&!er)}const ir={},rr=()=>Object.create(ir),or=e=>Object.getPrototypeOf(e)===ir;function sr(e,t,n,i){const[r,o]=e.propsOptions;let s,l=!1;if(t)for(let a in t){if(I(a))continue;const u=t[a];let c;r&&h(r,c=M(a))?o&&o.includes(c)?(s||(s={}))[c]=u:n[c]=u:Xr(e.emitsOptions,a)||a in i&&u===i[a]||(i[a]=u,l=!0)}if(o){const t=Qt(n),i=s||a;for(let a=0;a<o.length;a++){const s=o[a];n[s]=lr(r,t,s,i[s],e,!h(i,s))}}return l}function lr(e,t,n,a,i,r){const o=e[n];if(null!=o){const e=h(o,"default");if(e&&void 0===a){const e=o.default;if(o.type!==Function&&!o.skipFactory&&y(e)){const{propsDefaults:r}=i;if(n in r)a=r[n];else{const o=Bo(i);a=r[n]=e.call(null,t),o()}}else a=e;i.ce&&i.ce._setProp(n,a)}o[0]&&(r&&!e?a=!1:!o[1]||""!==a&&a!==R(n)||(a=!0))}return a}const ur=new WeakMap;function cr(e,t,n=!1){const r=n?ur:t.propsCache,o=r.get(e);if(o)return o;const s=e.props,l={},c=[];let d=!1;if(!y(e)){const a=e=>{d=!0;const[n,a]=cr(e,t,!0);u(l,n),a&&c.push(...a)};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!s&&!d)return w(e)&&r.set(e,i),i;if(p(s))for(let i=0;i<s.length;i++){const e=M(s[i]);dr(e)&&(l[e]=a)}else if(s)for(const a in s){const e=M(a);if(dr(e)){const t=s[a],n=l[e]=p(t)||y(t)?{type:t}:u({},t),i=n.type;let r=!1,o=!0;if(p(i))for(let e=0;e<i.length;++e){const t=i[e],n=y(t)&&t.name;if("Boolean"===n){r=!0;break}"String"===n&&(o=!1)}else r=y(i)&&"Boolean"===i.name;n[0]=r,n[1]=o,(r||h(n,"default"))&&c.push(e)}}const f=[l,c];return w(e)&&r.set(e,f),f}function dr(e){return"$"!==e[0]&&!I(e)}const hr=e=>"_"===e||"_ctx"===e||"$stable"===e,pr=e=>p(e)?e.map(To):[To(e)],fr=(e,t,n)=>{if(t._n)return t;const a=ea((...e)=>pr(t(...e)),n);return a._c=!1,a},mr=(e,t,n)=>{const a=e._ctx;for(const i in e){if(hr(i))continue;const n=e[i];if(y(n))t[i]=fr(0,n,a);else if(null!=n){const e=pr(n);t[i]=()=>e}}},vr=(e,t)=>{const n=pr(t);e.slots.default=()=>n},gr=(e,t,n)=>{for(const a in t)!n&&hr(a)||(e[a]=t[a])},yr=Qr;function br(e){return wr(e)}function _r(e){return wr(e,Xa)}function wr(e,t){H().__VUE__=!0;const{insert:n,remove:o,patchProp:s,createElement:l,createText:u,createComment:c,setText:d,setElementText:p,parentNode:f,nextSibling:m,setScopeId:v=r,insertStaticContent:g}=e,y=(e,t,n,a=null,i=null,r=null,o=void 0,s=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!mo(e,t)&&(a=$(e),z(e,i,r,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:u,ref:c,shapeFlag:d}=t;switch(u){case to:b(e,t,n,a);break;case no:_(e,t,n,a);break;case ao:null==e&&w(t,n,a,o);break;case eo:N(e,t,n,a,i,r,o,s,l);break;default:1&d?k(e,t,n,a,i,r,o,s,l):6&d?P(e,t,n,a,i,r,o,s,l):(64&d||128&d)&&u.process(e,t,n,a,i,r,o,s,l,Q)}null!=c&&i?Ra(c,e&&e.ref,r,t||e,!t):null==c&&e&&null!=e.ref&&Ra(e.ref,null,r,e,!0)},b=(e,t,a,i)=>{if(null==e)n(t.el=u(t.children),a,i);else{const n=t.el=e.el;t.children!==e.children&&d(n,t.children)}},_=(e,t,a,i)=>{null==e?n(t.el=c(t.children||""),a,i):t.el=e.el},w=(e,t,n,a)=>{[e.el,e.anchor]=g(e.children,t,n,a,e.el,e.anchor)},k=(e,t,n,a,i,r,o,s,l)=>{"svg"===t.type?o="svg":"math"===t.type&&(o="mathml"),null==e?C(t,n,a,i,r,o,s,l):A(e,t,i,r,o,s,l)},C=(e,t,a,i,r,o,u,c)=>{let d,h;const{props:f,shapeFlag:m,transition:v,dirs:g}=e;if(d=e.el=l(e.type,o,f&&f.is,f),8&m?p(d,e.children):16&m&&T(e.children,d,null,i,r,kr(e,o),u,c),g&&na(e,null,i,"created"),S(d,e,e.scopeId,u,i),f){for(const e in f)"value"===e||I(e)||s(d,e,null,f[e],o,i);"value"in f&&s(d,"value",null,f.value,o),(h=f.onVnodeBeforeMount)&&xo(h,i,e)}g&&na(e,null,i,"beforeMount");const y=Sr(r,v);y&&v.beforeEnter(d),n(d,t,a),((h=f&&f.onVnodeMounted)||y||g)&&yr(()=>{h&&xo(h,i,e),y&&v.enter(d),g&&na(e,null,i,"mounted")},r)},S=(e,t,n,a,i)=>{if(n&&v(e,n),a)for(let r=0;r<a.length;r++)v(e,a[r]);if(i){let n=i.subTree;if(t===n||Wr(n.type)&&(n.ssContent===t||n.ssFallback===t)){const t=i.vnode;S(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},T=(e,t,n,a,i,r,o,s,l=0)=>{for(let u=l;u<e.length;u++){const l=e[u]=s?Ao(e[u]):To(e[u]);y(null,l,t,n,a,i,r,o,s)}},A=(e,t,n,i,r,o,l)=>{const u=t.el=e.el;let{patchFlag:c,dynamicChildren:d,dirs:h}=t;c|=16&e.patchFlag;const f=e.props||a,m=t.props||a;let v;if(n&&Cr(n,!1),(v=m.onVnodeBeforeUpdate)&&xo(v,n,t,e),h&&na(t,e,n,"beforeUpdate"),n&&Cr(n,!0),(f.innerHTML&&null==m.innerHTML||f.textContent&&null==m.textContent)&&p(u,""),d?E(e.dynamicChildren,d,u,n,i,kr(t,r),o):l||V(e,t,u,null,n,i,kr(t,r),o,!1),c>0){if(16&c)x(u,f,m,n,r);else if(2&c&&f.class!==m.class&&s(u,"class",null,m.class,r),4&c&&s(u,"style",f.style,m.style,r),8&c){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const a=e[t],i=f[a],o=m[a];o===i&&"value"!==a||s(u,a,i,o,r,n)}}1&c&&e.children!==t.children&&p(u,t.children)}else l||null!=d||x(u,f,m,n,r);((v=m.onVnodeUpdated)||h)&&yr(()=>{v&&xo(v,n,t,e),h&&na(t,e,n,"updated")},i)},E=(e,t,n,a,i,r,o)=>{for(let s=0;s<t.length;s++){const l=e[s],u=t[s],c=l.el&&(l.type===eo||!mo(l,u)||198&l.shapeFlag)?f(l.el):n;y(l,u,c,null,a,i,r,o,!0)}},x=(e,t,n,i,r)=>{if(t!==n){if(t!==a)for(const a in t)I(a)||a in n||s(e,a,t[a],null,r,i);for(const a in n){if(I(a))continue;const o=n[a],l=t[a];o!==l&&"value"!==a&&s(e,a,l,o,r,i)}"value"in n&&s(e,"value",t.value,n.value,r)}},N=(e,t,a,i,r,o,s,l,c)=>{const d=t.el=e?e.el:u(""),h=t.anchor=e?e.anchor:u("");let{patchFlag:p,dynamicChildren:f,slotScopeIds:m}=t;m&&(l=l?l.concat(m):m),null==e?(n(d,a,i),n(h,a,i),T(t.children||[],a,h,r,o,s,l,c)):p>0&&64&p&&f&&e.dynamicChildren?(E(e.dynamicChildren,f,a,r,o,s,l),(null!=t.key||r&&t===r.subTree)&&Tr(e,t,!0)):V(e,t,a,h,r,o,s,l,c)},P=(e,t,n,a,i,r,o,s,l)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?i.ctx.activate(t,n,a,o,l):O(t,n,a,i,r,o,l):D(e,t,l)},O=(e,t,n,a,i,r,o)=>{const s=e.component=Mo(e,a,i);if(Za(e)&&(s.ctx.renderer=Q),Ho(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,L,o),!e.el){const a=s.subTree=bo(no);_(null,a,t,n),e.placeholder=a.el}}else L(s,e,t,n,i,r,o)},D=(e,t,n)=>{const a=t.component=e.component;if(function(e,t,n){const{props:a,children:i,component:r}=e,{props:o,children:s,patchFlag:l}=t,u=r.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!i&&!s||s&&s.$stable)||a!==o&&(a?!o||zr(a,o,u):!!o);if(1024&l)return!0;if(16&l)return a?zr(a,o,u):!!o;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(o[n]!==a[n]&&!Xr(u,n))return!0}}return!1}(e,t,n)){if(a.asyncDep&&!a.asyncResolved)return void B(a,t,n);a.next=t,a.update()}else t.el=e.el,a.vnode=t},L=(e,t,n,a,i,r,o)=>{const s=()=>{if(e.isMounted){let{next:t,bu:n,u:a,parent:l,vnode:u}=e;{const n=Ar(e);if(n)return t&&(t.el=u.el,B(e,t,o)),void n.asyncDep.then(()=>{e.isUnmounted||s()})}let c,d=t;Cr(e,!1),t?(t.el=u.el,B(e,t,o)):t=u,n&&F(n),(c=t.props&&t.props.onVnodeBeforeUpdate)&&xo(c,l,t,u),Cr(e,!0);const h=jr(e),p=e.subTree;e.subTree=h,y(p,h,f(p.el),$(p),e,i,r),t.el=h.el,null===d&&Kr(e,h.el),a&&yr(a,i),(c=t.props&&t.props.onVnodeUpdated)&&yr(()=>xo(c,l,t,u),i)}else{let o;const{el:s,props:l}=t,{bm:u,m:c,parent:d,root:h,type:p}=e,f=Ya(t);if(Cr(e,!1),u&&F(u),!f&&(o=l&&l.onVnodeBeforeMount)&&xo(o,d,t),Cr(e,!0),s&&ee){const t=()=>{e.subTree=jr(e),ee(s,e.subTree,e,i,null)};f&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{h.ce&&!1!==h.ce._def.shadowRoot&&h.ce._injectChildStyle(p);const o=e.subTree=jr(e);y(null,o,n,a,e,i,r),t.el=o.el}if(c&&yr(c,i),!f&&(o=l&&l.onVnodeMounted)){const e=t;yr(()=>xo(o,d,e),i)}(256&t.shapeFlag||d&&Ya(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&yr(e.a,i),e.isMounted=!0,t=n=a=null}};e.scope.on();const l=e.effect=new Be(s);e.scope.off();const u=e.update=l.run.bind(l),c=e.job=l.runIfDirty.bind(l);c.i=e,c.id=e.uid,l.scheduler=()=>Un(c),Cr(e,!0),u()},B=(e,t,n)=>{t.component=e;const i=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,a){const{props:i,attrs:r,vnode:{patchFlag:o}}=e,s=Qt(i),[l]=e.propsOptions;let u=!1;if(!(a||o>0)||16&o){let a;sr(e,t,i,r)&&(u=!0);for(const r in s)t&&(h(t,r)||(a=R(r))!==r&&h(t,a))||(l?!n||void 0===n[r]&&void 0===n[a]||(i[r]=lr(l,s,r,void 0,e,!0)):delete i[r]);if(r!==s)for(const e in r)t&&h(t,e)||(delete r[e],u=!0)}else if(8&o){const n=e.vnode.dynamicProps;for(let a=0;a<n.length;a++){let o=n[a];if(Xr(e.emitsOptions,o))continue;const c=t[o];if(l)if(h(r,o))c!==r[o]&&(r[o]=c,u=!0);else{const t=M(o);i[t]=lr(l,s,t,c,e,!1)}else c!==r[o]&&(r[o]=c,u=!0)}}u&&ct(e.attrs,"set","")}(e,t.props,i,n),((e,t,n)=>{const{vnode:i,slots:r}=e;let o=!0,s=a;if(32&i.shapeFlag){const e=t._;e?n&&1===e?o=!1:gr(r,t,n):(o=!t.$stable,mr(t,r)),s=t}else t&&(vr(e,t),s={default:1});if(o)for(const a in r)hr(a)||null!=s[a]||delete r[a]})(e,t.children,n),Qe(),Kn(e),Ze()},V=(e,t,n,a,i,r,o,s,l=!1)=>{const u=e&&e.children,c=e?e.shapeFlag:0,d=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void j(u,d,n,a,i,r,o,s,l);if(256&h)return void X(u,d,n,a,i,r,o,s,l)}8&f?(16&c&&q(u,i,r),d!==u&&p(n,d)):16&c?16&f?j(u,d,n,a,i,r,o,s,l):q(u,i,r,!0):(8&c&&p(n,""),16&f&&T(d,n,a,i,r,o,s,l))},X=(e,t,n,a,r,o,s,l,u)=>{t=t||i;const c=(e=e||i).length,d=t.length,h=Math.min(c,d);let p;for(p=0;p<h;p++){const a=t[p]=u?Ao(t[p]):To(t[p]);y(e[p],a,n,null,r,o,s,l,u)}c>d?q(e,r,o,!0,!1,h):T(t,n,a,r,o,s,l,u,h)},j=(e,t,n,a,r,o,s,l,u)=>{let c=0;const d=t.length;let h=e.length-1,p=d-1;for(;c<=h&&c<=p;){const a=e[c],i=t[c]=u?Ao(t[c]):To(t[c]);if(!mo(a,i))break;y(a,i,n,null,r,o,s,l,u),c++}for(;c<=h&&c<=p;){const a=e[h],i=t[p]=u?Ao(t[p]):To(t[p]);if(!mo(a,i))break;y(a,i,n,null,r,o,s,l,u),h--,p--}if(c>h){if(c<=p){const e=p+1,i=e<d?t[e].el:a;for(;c<=p;)y(null,t[c]=u?Ao(t[c]):To(t[c]),n,i,r,o,s,l,u),c++}}else if(c>p)for(;c<=h;)z(e[c],r,o,!0),c++;else{const f=c,m=c,v=new Map;for(c=m;c<=p;c++){const e=t[c]=u?Ao(t[c]):To(t[c]);null!=e.key&&v.set(e.key,c)}let g,b=0;const _=p-m+1;let w=!1,k=0;const C=new Array(_);for(c=0;c<_;c++)C[c]=0;for(c=f;c<=h;c++){const a=e[c];if(b>=_){z(a,r,o,!0);continue}let i;if(null!=a.key)i=v.get(a.key);else for(g=m;g<=p;g++)if(0===C[g-m]&&mo(a,t[g])){i=g;break}void 0===i?z(a,r,o,!0):(C[i-m]=c+1,i>=k?k=i:w=!0,y(a,t[i],n,null,r,o,s,l,u),b++)}const S=w?function(e){const t=e.slice(),n=[0];let a,i,r,o,s;const l=e.length;for(a=0;a<l;a++){const l=e[a];if(0!==l){if(i=n[n.length-1],e[i]<l){t[a]=i,n.push(a);continue}for(r=0,o=n.length-1;r<o;)s=r+o>>1,e[n[s]]<l?r=s+1:o=s;l<e[n[r]]&&(r>0&&(t[a]=n[r-1]),n[r]=a)}}r=n.length,o=n[r-1];for(;r-- >0;)n[r]=o,o=t[o];return n}(C):i;for(g=S.length-1,c=_-1;c>=0;c--){const e=m+c,i=t[e],h=t[e+1],p=e+1<d?h.el||h.placeholder:a;0===C[c]?y(null,i,n,p,r,o,s,l,u):w&&(g<0||c!==S[g]?U(i,n,p,2):g--)}}},U=(e,t,a,i,r=null)=>{const{el:s,type:l,transition:u,children:c,shapeFlag:d}=e;if(6&d)return void U(e.component.subTree,t,a,i);if(128&d)return void e.suspense.move(t,a,i);if(64&d)return void l.move(e,t,a,Q);if(l===eo){n(s,t,a);for(let e=0;e<c.length;e++)U(c[e],t,a,i);return void n(e.anchor,t,a)}if(l===ao)return void(({el:e,anchor:t},a,i)=>{let r;for(;e&&e!==t;)r=m(e),n(e,a,i),e=r;n(t,a,i)})(e,t,a);if(2!==i&&1&d&&u)if(0===i)u.beforeEnter(s),n(s,t,a),yr(()=>u.enter(s),r);else{const{leave:i,delayLeave:r,afterLeave:l}=u,c=()=>{e.ctx.isUnmounted?o(s):n(s,t,a)},d=()=>{s._isLeaving&&s[ma](!0),i(s,()=>{c(),l&&l()})};r?r(s,c,d):d()}else n(s,t,a)},z=(e,t,n,a=!1,i=!1)=>{const{type:r,props:o,ref:s,children:l,dynamicChildren:u,shapeFlag:c,patchFlag:d,dirs:h,cacheIndex:p}=e;if(-2===d&&(i=!1),null!=s&&(Qe(),Ra(s,null,n,e,!0),Ze()),null!=p&&(t.renderCache[p]=void 0),256&c)return void t.ctx.deactivate(e);const f=1&c&&h,m=!Ya(e);let v;if(m&&(v=o&&o.onVnodeBeforeUnmount)&&xo(v,t,e),6&c)G(e.component,n,a);else{if(128&c)return void e.suspense.unmount(n,a);f&&na(e,null,t,"beforeUnmount"),64&c?e.type.remove(e,t,n,Q,a):u&&!u.hasOnce&&(r!==eo||d>0&&64&d)?q(u,t,n,!1,!0):(r===eo&&384&d||!i&&16&c)&&q(l,t,n),a&&K(e)}(m&&(v=o&&o.onVnodeUnmounted)||f)&&yr(()=>{v&&xo(v,t,e),f&&na(e,null,t,"unmounted")},n)},K=e=>{const{type:t,el:n,anchor:a,transition:i}=e;if(t===eo)return void W(n,a);if(t===ao)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=m(e),o(e),e=n;o(t)})(e);const r=()=>{o(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){const{leave:t,delayLeave:a}=i,o=()=>t(n,r);a?a(e.el,r,o):o()}else r()},W=(e,t)=>{let n;for(;e!==t;)n=m(e),o(e),e=n;o(t)},G=(e,t,n)=>{const{bum:a,scope:i,job:r,subTree:o,um:s,m:l,a:u}=e;Er(l),Er(u),a&&F(a),i.stop(),r&&(r.flags|=8,z(o,e,t,n)),s&&yr(s,t),yr(()=>{e.isUnmounted=!0},t)},q=(e,t,n,a=!1,i=!1,r=0)=>{for(let o=r;o<e.length;o++)z(e[o],t,n,a,i)},$=e=>{if(6&e.shapeFlag)return $(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=m(e.anchor||e.el),n=t&&t[aa];return n?m(n):t};let Y=!1;const J=(e,t,n)=>{null==e?t._vnode&&z(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),t._vnode=e,Y||(Y=!0,Kn(),Wn(),Y=!1)},Q={p:y,um:z,m:U,r:K,mt:O,mc:T,pc:V,pbc:E,n:$,o:e};let Z,ee;return t&&([Z,ee]=t(Q)),{render:J,hydrate:Z,createApp:Zi(J,Z)}}function kr({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Cr({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Sr(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Tr(e,t,n=!1){const a=e.children,i=t.children;if(p(a)&&p(i))for(let r=0;r<a.length;r++){const e=a[r];let t=i[r];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=i[r]=Ao(i[r]),t.el=e.el),n||-2===t.patchFlag||Tr(e,t)),t.type===to&&-1!==t.patchFlag&&(t.el=e.el),t.type!==no||t.el||(t.el=e.el)}}function Ar(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ar(t)}function Er(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Ir=Symbol.for("v-scx"),xr=()=>nr(Ir);function Nr(e,t){return Or(e,null,t)}function Pr(e,t){return Or(e,null,{flush:"sync"})}function Mr(e,t,n){return Or(e,t,n)}function Or(e,t,n=a){const{immediate:i,deep:o,flush:s,once:l}=n,d=u({},n),h=t&&i||!t&&"post"!==s;let f;if(Uo)if("sync"===s){const e=xr();f=e.__watcherHandles||(e.__watcherHandles=[])}else if(!h){const e=()=>{};return e.stop=r,e.resume=r,e.pause=r,e}const m=Oo;d.call=(e,t,n)=>Mn(e,m,t,n);let v=!1;"post"===s?d.scheduler=e=>{yr(e,m&&m.suspense)}:"sync"!==s&&(v=!0,d.scheduler=(e,t)=>{t?e():Un(e)}),d.augmentJob=e=>{t&&(e.flags|=4),v&&(e.flags|=2,m&&(e.id=m.uid,e.i=m))};const g=function(e,t,n=a){const{immediate:i,deep:o,once:s,scheduler:l,augmentJob:u,call:d}=n,h=e=>o?e:Yt(e)||!1===o||0===o?Sn(e,1):Sn(e);let f,m,v,g,b=!1,_=!1;if(nn(e)?(m=()=>e.value,b=Yt(e)):qt(e)?(m=()=>h(e),b=!0):p(e)?(_=!0,b=e.some(e=>qt(e)||Yt(e)),m=()=>e.map(e=>nn(e)?e.value:qt(e)?h(e):y(e)?d?d(e,2):e():void 0)):m=y(e)?t?d?()=>d(e,2):e:()=>{if(v){Qe();try{v()}finally{Ze()}}const t=kn;kn=f;try{return d?d(e,3,[g]):e(g)}finally{kn=t}}:r,t&&o){const e=m,t=!0===o?1/0:o;m=()=>Sn(e(),t)}const w=Re(),k=()=>{f.stop(),w&&w.active&&c(w.effects,f)};if(s&&t){const e=t;t=(...t)=>{e(...t),k()}}let C=_?new Array(e.length).fill(_n):_n;const S=e=>{if(1&f.flags&&(f.dirty||e))if(t){const e=f.run();if(o||b||(_?e.some((e,t)=>B(e,C[t])):B(e,C))){v&&v();const n=kn;kn=f;try{const n=[e,C===_n?void 0:_&&C[0]===_n?[]:C,g];C=e,d?d(t,3,n):t(...n)}finally{kn=n}}}else f.run()};return u&&u(S),f=new Be(m),f.scheduler=l?()=>l(S,!1):S,g=e=>Cn(e,!1,f),v=f.onStop=()=>{const e=wn.get(f);if(e){if(d)d(e,4);else for(const t of e)t();wn.delete(f)}},t?i?S(!0):C=f.run():l?l(S.bind(null,!0),!0):f.run(),k.pause=f.pause.bind(f),k.resume=f.resume.bind(f),k.stop=k,k}(e,t,d);return Uo&&(f?f.push(g):h&&g()),g}function Rr(e,t,n){const a=this.proxy,i=b(e)?e.includes(".")?Dr(a,e):()=>a[e]:e.bind(a,a);let r;y(t)?r=t:(r=t.handler,n=t);const o=Bo(this),s=Or(i,r.bind(a),n);return o(),s}function Dr(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}const Lr=(e,t)=>
18"modelValue"===t||"model-value"===t?e.modelModifiers:e["".concat(t,"Modifiers")]||e["".concat(M(t),"Modifiers")]||e["".concat(R(t),"Modifiers")];function Br(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||a;let r=n;const o=t.startsWith("update:"),s=o&&Lr(i,t.slice(7));let l;s&&(s.trim&&(r=n.map(e=>b(e)?e.trim():e)),s.number&&(r=n.map(X)));let u=i[l=L(t)]||i[l=L(M(t))];!u&&o&&(u=i[l=L(R(t))]),u&&Mn(u,e,6,r);const c=i[l+"Once"];if(c){if(e.emitted){if(e.emitted[l])return}else e.emitted={};e.emitted[l]=!0,Mn(c,e,6,r)}}const Fr=new WeakMap;function Vr(e,t,n=!1){const a=n?Fr:t.emitsCache,i=a.get(e);if(void 0!==i)return i;const r=e.emits;let o={},s=!1;if(!y(e)){const a=e=>{const n=Vr(e,t,!0);n&&(s=!0,u(o,n))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return r||s?(p(r)?r.forEach(e=>o[e]=null):u(o,r),w(e)&&a.set(e,o),o):(w(e)&&a.set(e,null),null)}function Xr(e,t){return!(!e||!s(t))&&(t=t.slice(2).replace(/Once$/,""),h(e,t[0].toLowerCase()+t.slice(1))||h(e,R(t))||h(e,t))}function jr(e){const{type:t,vnode:n,proxy:a,withProxy:i,propsOptions:[r],slots:o,attrs:s,emit:u,render:c,renderCache:d,props:h,data:p,setupState:f,ctx:m,inheritAttrs:v}=e,g=Zn(e);let y,b;try{if(4&n.shapeFlag){const e=i||a,t=e;y=To(c.call(t,e,d,h,f,p,m)),b=s}else{const e=t;0,y=To(e.length>1?e(h,{attrs:s,slots:o,emit:u}):e(h,null)),b=t.props?s:Ur(s)}}catch(w){io.length=0,On(w,e,1),y=bo(no)}let _=y;if(b&&!1!==v){const e=Object.keys(b),{shapeFlag:t}=_;e.length&&7&t&&(r&&e.some(l)&&(b=Hr(b,r)),_=wo(_,b,!1,!0))}return n.dirs&&(_=wo(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&Ia(_,n.transition),y=_,Zn(g),y}const Ur=e=>{let t;for(const n in e)("class"===n||"style"===n||s(n))&&((t||(t={}))[n]=e[n]);return t},Hr=(e,t)=>{const n={};for(const a in e)l(a)&&a.slice(9)in t||(n[a]=e[a]);return n};function zr(e,t,n){const a=Object.keys(t);if(a.length!==Object.keys(e).length)return!0;for(let i=0;i<a.length;i++){const r=a[i];if(t[r]!==e[r]&&!Xr(n,r))return!0}return!1}function Kr({vnode:e,parent:t},n){for(;t;){const a=t.subTree;if(a.suspense&&a.suspense.activeBranch===e&&(a.el=e.el),a!==e)break;(e=t.vnode).el=n,t=t.parent}}const Wr=e=>e.__isSuspense;let Gr=0;const qr={name:"Suspense",__isSuspense:!0,process(e,t,n,a,i,r,o,s,l,u){if(null==e)!function(e,t,n,a,i,r,o,s,l){const{p:u,o:{createElement:c}}=l,d=c("div"),h=e.suspense=Yr(e,i,a,t,d,n,r,o,s,l);u(null,h.pendingBranch=e.ssContent,d,null,a,h,r,o),h.deps>0?($r(e,"onPending"),$r(e,"onFallback"),u(null,e.ssFallback,t,n,a,null,r,o),Zr(h,e.ssFallback)):h.resolve(!1,!0)}(t,n,a,i,r,o,s,l,u);else{if(r&&r.deps>0&&!e.suspense.isInFallback)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);!function(e,t,n,a,i,r,o,s,{p:l,um:u,o:{createElement:c}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const h=t.ssContent,p=t.ssFallback,{activeBranch:f,pendingBranch:m,isInFallback:v,isHydrating:g}=d;if(m)d.pendingBranch=h,mo(m,h)?(l(m,h,d.hiddenContainer,null,i,d,r,o,s),d.deps<=0?d.resolve():v&&(g||(l(f,p,n,a,i,null,r,o,s),Zr(d,p)))):(d.pendingId=Gr++,g?(d.isHydrating=!1,d.activeBranch=m):u(m,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=c("div"),v?(l(null,h,d.hiddenContainer,null,i,d,r,o,s),d.deps<=0?d.resolve():(l(f,p,n,a,i,null,r,o,s),Zr(d,p))):f&&mo(f,h)?(l(f,h,n,a,i,d,r,o,s),d.resolve(!0)):(l(null,h,d.hiddenContainer,null,i,d,r,o,s),d.deps<=0&&d.resolve()));else if(f&&mo(f,h))l(f,h,n,a,i,d,r,o,s),Zr(d,h);else if($r(t,"onPending"),d.pendingBranch=h,512&h.shapeFlag?d.pendingId=h.component.suspenseId:d.pendingId=Gr++,l(null,h,d.hiddenContainer,null,i,d,r,o,s),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(p)},e):0===e&&d.fallback(p)}}(e,t,n,a,i,o,s,l,u)}},hydrate:function(e,t,n,a,i,r,o,s,l){const u=t.suspense=Yr(t,a,n,e.parentNode,document.createElement("div"),null,i,r,o,s,!0),c=l(e,u.pendingBranch=t.ssContent,n,u,r,o);0===u.deps&&u.resolve(!1,!0);return c},normalize:function(e){const{shapeFlag:t,children:n}=e,a=32&t;e.ssContent=Jr(a?n.default:n),e.ssFallback=a?Jr(n.fallback):bo(no)}};function $r(e,t){const n=e.props&&e.props[t];y(n)&&n()}function Yr(e,t,n,a,i,r,o,s,l,u,c=!1){const{p:d,m:h,um:p,n:f,o:{parentNode:m,remove:v}}=u;let g;const y=function(e){const t=e.props&&e.props.suspensible;return null!=t&&!1!==t}(e);y&&t&&t.pendingBranch&&(g=t.pendingId,t.deps++);const b=e.props?j(e.props.timeout):void 0,_=r,w={vnode:e,parent:t,parentComponent:n,namespace:o,container:a,hiddenContainer:i,deps:0,pendingId:Gr++,timeout:"number"==typeof b?b:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:a,activeBranch:i,pendingBranch:o,pendingId:s,effects:l,parentComponent:u,container:c}=w;let d=!1;w.isHydrating?w.isHydrating=!1:e||(d=i&&o.transition&&"out-in"===o.transition.mode,d&&(i.transition.afterLeave=()=>{s===w.pendingId&&(h(o,c,r===_?f(i):r,0),zn(l))}),i&&(m(i.el)===c&&(r=f(i)),p(i,u,w,!0)),d||h(o,c,r,0)),Zr(w,o),w.pendingBranch=null,w.isInFallback=!1;let v=w.parent,b=!1;for(;v;){if(v.pendingBranch){v.effects.push(...l),b=!0;break}v=v.parent}b||d||zn(l),w.effects=[],y&&t&&t.pendingBranch&&g===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),$r(a,"onResolve")},fallback(e){if(!w.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:a,container:i,namespace:r}=w;$r(t,"onFallback");const o=f(n),u=()=>{w.isInFallback&&(d(null,e,i,o,a,null,r,s,l),Zr(w,e))},c=e.transition&&"out-in"===e.transition.mode;c&&(n.transition.afterLeave=u),w.isInFallback=!0,p(n,a,null,!0),c||u()},move(e,t,n){w.activeBranch&&h(w.activeBranch,e,t,n),w.container=e},next:()=>w.activeBranch&&f(w.activeBranch),registerDep(e,t,n){const a=!!w.pendingBranch;a&&w.deps++;const i=e.vnode.el;
18e.asyncDep.catch(t=>{On(t,e,0)}).then(r=>{if(e.isUnmounted||w.isUnmounted||w.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:s}=e;zo(e,r,!1),i&&(s.el=i);const l=!i&&e.subTree.el;t(e,s,m(i||e.subTree.el),i?null:f(e.subTree),w,o,n),l&&v(l),Kr(e,s.el),a&&0===--w.deps&&w.resolve()})},unmount(e,t){w.isUnmounted=!0,w.activeBranch&&p(w.activeBranch,n,e,t),w.pendingBranch&&p(w.pendingBranch,n,e,t)}};return w}function Jr(e){let t;if(y(e)){const n=lo&&e._c;n&&(e._d=!1,oo()),e=e(),n&&(e._d=!0,t=ro,so())}if(p(e)){const t=function(e){let t;for(let n=0;n<e.length;n++){const a=e[n];if(!fo(a))return;if(a.type!==no||"v-if"===a.children){if(t)return;t=a}}return t}(e);e=t}return e=To(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function Qr(e,t){t&&t.pendingBranch?p(e)?t.effects.push(...e):t.effects.push(e):zn(e)}function Zr(e,t){e.activeBranch=t;const{vnode:n,parentComponent:a}=e;let i=t.el;for(;!i&&t.component;)i=(t=t.component.subTree).el;n.el=i,a&&a.subTree===n&&(a.vnode.el=i,Kr(a,i))}const eo=Symbol.for("v-fgt"),to=Symbol.for("v-txt"),no=Symbol.for("v-cmt"),ao=Symbol.for("v-stc"),io=[];let ro=null;function oo(e=!1){io.push(ro=e?null:[])}function so(){io.pop(),ro=io[io.length-1]||null}let lo=1;function uo(e,t=!1){lo+=e,e<0&&ro&&t&&(ro.hasOnce=!0)}function co(e){return e.dynamicChildren=lo>0?ro||i:null,so(),lo>0&&ro&&ro.push(e),e}function ho(e,t,n,a,i,r){return co(yo(e,t,n,a,i,r,!0))}function po(e,t,n,a,i){return co(bo(e,t,n,a,i,!0))}function fo(e){return!!e&&!0===e.__v_isVNode}function mo(e,t){return e.type===t.type&&e.key===t.key}const vo=({key:e})=>null!=e?e:null,go=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?b(e)||nn(e)||y(e)?{i:Jn,r:e,k:t,f:!!n}:e:null);function yo(e,t=null,n=null,a=0,i=null,r=(e===eo?0:1),o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&vo(t),ref:t&&go(t),scopeId:Qn,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:r,patchFlag:a,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Jn};return s?(Eo(l,n),128&r&&e.normalize(l)):n&&(l.shapeFlag|=b(n)?8:16),lo>0&&!o&&ro&&(l.patchFlag>0||6&r)&&32!==l.patchFlag&&ro.push(l),l}const bo=function(e,t=null,n=null,a=0,i=null,r=!1){e&&e!==Ci||(e=no);if(fo(e)){const a=wo(e,t,!0);return n&&Eo(a,n),lo>0&&!r&&ro&&(6&a.shapeFlag?ro[ro.indexOf(e)]=a:ro.push(a)),a.patchFlag=-2,a}o=e,y(o)&&"__vccOpts"in o&&(e=e.__vccOpts);var o;if(t){t=_o(t);let{class:e,style:n}=t;e&&!b(e)&&(t.class=ne(e)),w(n)&&(Jt(n)&&!p(n)&&(n=u({},n)),t.style=Y(n))}const s=b(e)?1:Wr(e)?128:ia(e)?64:w(e)?4:y(e)?2:0;return yo(e,t,n,a,i,s,r,!0)};function _o(e){return e?Jt(e)||or(e)?u({},e):e:null}function wo(e,t,n=!1,a=!1){const{props:i,ref:r,patchFlag:o,children:s,transition:l}=e,u=t?Io(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&vo(u),ref:t&&t.ref?n&&r?p(r)?r.concat(go(t)):[r,go(t)]:go(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==eo?-1===o?16:16|o:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&wo(e.ssContent),ssFallback:e.ssFallback&&wo(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&a&&Ia(c,l.clone(c)),c}function ko(e=" ",t=0){return bo(to,null,e,t)}function Co(e,t){const n=bo(ao,null,e);return n.staticCount=t,n}function So(e="",t=!1){return t?(oo(),po(no,null,e)):bo(no,null,e)}function To(e){return null==e||"boolean"==typeof e?bo(no):p(e)?bo(eo,null,e.slice()):fo(e)?Ao(e):bo(to,null,String(e))}function Ao(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:wo(e)}function Eo(e,t){let n=0;const{shapeFlag:a}=e;if(null==t)t=null;else if(p(t))n=16;else if("object"==typeof t){if(65&a){const n=t.default;return void(n&&(n._c&&(n._d=!1),Eo(e,n()),n._c&&(n._d=!0)))}{n=32;const a=t._;a||or(t)?3===a&&Jn&&(1===Jn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Jn}}else y(t)?(t={default:t,_ctx:Jn},n=32):(t=String(t),64&a?(n=16,t=[ko(t)]):n=8);e.children=t,e.shapeFlag|=n}function Io(...e){const t={};for(let n=0;n<e.length;n++){const a=e[n];for(const e in a)if("class"===e)t.class!==a.class&&(t.class=ne([t.class,a.class]));else if("style"===e)t.style=Y([t.style,a.style]);else if(s(e)){const n=t[e],i=a[e];!i||n===i||p(n)&&n.includes(i)||(t[e]=n?[].concat(n,i):i)}else""!==e&&(t[e]=a[e])}return t}function xo(e,t,n,a=null){Mn(e,t,7,[n,a])}const No=Ji();let Po=0;
18function Mo(e,t,n){const i=e.type,r=(t?t.appContext:e.appContext)||No,o={uid:Po++,vnode:e,type:i,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Me(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:cr(i,r),emitsOptions:Vr(i,r),emit:null,emitted:null,propsDefaults:a,inheritAttrs:i.inheritAttrs,ctx:a,data:a,props:a,attrs:a,slots:a,refs:a,setupState:a,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 o.ctx={_:o},o.root=t?t.root:o,o.emit=Br.bind(null,o),e.ce&&e.ce(o),o}let Oo=null;const Ro=()=>Oo||Jn;let Do,Lo;{const e=H(),t=(t,n)=>{let a;return(a=e[t])||(a=e[t]=[]),a.push(n),e=>{a.length>1?a.forEach(t=>t(e)):a[0](e)}};Do=t("__VUE_INSTANCE_SETTERS__",e=>Oo=e),Lo=t("__VUE_SSR_SETTERS__",e=>Uo=e)}const Bo=e=>{const t=Oo;return Do(e),e.scope.on(),()=>{e.scope.off(),Do(t)}},Fo=()=>{Oo&&Oo.scope.off(),Do(null)};function Vo(e){return 4&e.vnode.shapeFlag}let Xo,jo,Uo=!1;function Ho(e,t=!1,n=!1){t&&Lo(t);const{props:a,children:i}=e.vnode,r=Vo(e);!function(e,t,n,a=!1){const i={},r=rr();e.propsDefaults=Object.create(null),sr(e,t,i,r);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);n?e.props=a?i:zt(i):e.type.props?e.props=i:e.props=r,e.attrs=r}(e,a,r,t),((e,t,n)=>{const a=e.slots=rr();if(32&e.vnode.shapeFlag){const e=t._;e?(gr(a,t,n),n&&V(a,"_",e,!0)):mr(t,a)}else t&&vr(e,t)})(e,i,n||t);const o=r?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ri);const{setup:a}=n;if(a){Qe();const n=e.setupContext=a.length>1?Go(e):null,i=Bo(e),r=Pn(a,e,0,[e.props,n]),o=k(r);if(Ze(),i(),!o&&!e.sp||Ya(e)||Ma(e),o){if(r.then(Fo,Fo),t)return r.then(n=>{zo(e,n,t)}).catch(t=>{On(t,e,0)});e.asyncDep=r}else zo(e,r,t)}else Ko(e,t)}(e,t):void 0;return t&&Lo(!1),o}function zo(e,t,n){y(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:w(t)&&(e.setupState=dn(t)),Ko(e,n)}function Ko(e,t,n){const a=e.type;if(!e.render){if(!t&&Xo&&!a.render){const t=a.template||Hi(e).template;if(t){const{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:r,compilerOptions:o}=a,s=u(u({isCustomElement:n,delimiters:r},i),o);a.render=Xo(t,s)}}e.render=a.render||r,jo&&jo(e)}{const t=Bo(e);Qe();try{Xi(e)}finally{Ze(),t()}}}const Wo={get:(e,t)=>(ut(e,0,""),e[t])};function Go(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,Wo),slots:e.slots,emit:e.emit,expose:t}}function qo(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(dn(Zt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Mi?Mi[n](e):void 0,has:(e,t)=>t in e||t in Mi})):e.proxy}const $o=/(?:^|[-_])\w/g,Yo=e=>e.replace($o,e=>e.toUpperCase()).replace(/[-_]/g,"");function Jo(e,t=!0){return y(e)?e.displayName||e.name:e.name||t&&e.__name}function Qo(e,t,n=!1){let a=Jo(t);if(!a&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(a=e[1])}if(!a&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};a=n(e.components||e.parent.type.components)||n(e.appContext.components)}return a?Yo(a):n?"App":"Anonymous"}const Zo=(e,t)=>{const n=function(e,t,n=!1){let a,i;return y(e)?a=e:(a=e.get,i=e.set),new bn(a,i,n)}(e,0,Uo);return n};
18function es(e,t,n){try{uo(-1);const a=arguments.length;return 2===a?w(t)&&!p(t)?fo(t)?bo(e,null,[t]):bo(e,t):bo(e,null,t):(a>3?n=Array.prototype.slice.call(arguments,2):3===a&&fo(n)&&(n=[n]),bo(e,t,n))}finally{uo(1)}}function ts(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let a=0;a<n.length;a++)if(B(n[a],t[a]))return!1;return lo>0&&ro&&ro.push(e),!0}const ns="3.5.22",as=r,is=Nn,rs=$n,os=function e(t,n){var a,i;if($n=t,$n)$n.enabled=!0,Yn.forEach(({event:e,args:t})=>$n.emit(e,...t)),Yn=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null==(i=null==(a=window.navigator)?void 0:a.userAgent)?void 0:i.includes("jsdom"))){(n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(t=>{e(t,n)}),setTimeout(()=>{$n||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Yn=[])},3e3)}else Yn=[]},ss={createComponentInstance:Mo,setupComponent:Ho,renderComponentRoot:jr,setCurrentRenderingInstance:Zn,isVNode:fo,normalizeVNode:To,getComponentPublicInstance:qo,ensureValidVNode:Ni,pushWarningContext:function(e){Tn.push(e)},popWarningContext:function(){Tn.pop()}};
19/**
20* @vue/runtime-dom v3.5.22
21* (c) 2018-present Yuxi (Evan) You and Vue contributors
22* @license MIT
23**/
24let ls;const us="undefined"!=typeof window&&window.trustedTypes;if(us)try{ls=us.createPolicy("vue",{createHTML:e=>e})}catch(w7){}const cs=ls?e=>ls.createHTML(e):e=>e,ds="undefined"!=typeof document?document:null,hs=ds&&ds.createElement("template"),ps={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,a)=>{const i="svg"===t?ds.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?ds.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?ds.createElement(e,{is:n}):ds.createElement(e);return"select"===e&&a&&null!=a.multiple&&i.setAttribute("multiple",a.multiple),i},createText:e=>ds.createTextNode(e),createComment:e=>ds.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ds.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,a,i,r){const o=n?n.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==r&&(i=i.nextSibling););else{hs.innerHTML=cs("svg"===a?"<svg>".concat(e,"</svg>"):"mathml"===a?"<math>".concat(e,"</math>"):e);const i=hs.content;if("svg"===a||"mathml"===a){const e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},fs="transition",ms="animation",vs=Symbol("_vtc"),gs={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},ys=u({},ba,gs),bs=e=>(e.displayName="Transition",e.props=ys,e),_s=bs((e,{slots:t})=>es(Ca,Cs(e),t)),ws=(e,t=[])=>{p(e)?e.forEach(e=>e(...t)):e&&e(...t)},ks=e=>!!e&&(p(e)?e.some(e=>e.length>1):e.length>1);function Cs(e){const t={};for(const u in e)u in gs||(t[u]=e[u]);if(!1===e.css)return t;const{name:n="v",type:a,duration:i,enterFromClass:r="".concat(n,"-enter-from"),enterActiveClass:o="".concat(n,"-enter-active"),enterToClass:s="".concat(n,"-enter-to"),appearFromClass:l=r,appearActiveClass:c=o,appearToClass:d=s,leaveFromClass:h="".concat(n,"-leave-from"),leaveActiveClass:p="".concat(n,"-leave-active"),leaveToClass:f="".concat(n,"-leave-to")}=e,m=function(e){if(null==e)return null;if(w(e))return[Ss(e.enter),Ss(e.leave)];{const t=Ss(e);return[t,t]}}(i),v=m&&m[0],g=m&&m[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:_,onLeave:k,onLeaveCancelled:C,onBeforeAppear:S=y,onAppear:T=b,onAppearCancelled:A=_}=t,E=(e,t,n,a)=>{e._enterCancelled=a,As(e,t?d:s),As(e,t?c:o),n&&n()},I=(e,t)=>{e._isLeaving=!1,As(e,h),As(e,f),As(e,p),t&&t()},x=e=>(t,n)=>{const i=e?T:b,o=()=>E(t,e,n);ws(i,[t,o]),Es(()=>{As(t,e?l:r),Ts(t,e?d:s),ks(i)||xs(t,a,v,o)})};return u(t,{onBeforeEnter(e){ws(y,[e]),Ts(e,r),Ts(e,o)},onBeforeAppear(e){ws(S,[e]),Ts(e,l),Ts(e,c)},onEnter:x(!1),onAppear:x(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>I(e,t);Ts(e,h),e._enterCancelled?(Ts(e,p),Os(e)):(Os(e),Ts(e,p)),Es(()=>{e._isLeaving&&(As(e,h),Ts(e,f),ks(k)||xs(e,a,g,n))}),ws(k,[e,n])},onEnterCancelled(e){E(e,!1,void 0,!0),ws(_,[e])},onAppearCancelled(e){E(e,!0,void 0,!0),ws(A,[e])},onLeaveCancelled(e){I(e),ws(C,[e])}})}function Ss(e){return j(e)}function Ts(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[vs]||(e[vs]=new Set)).add(t)}function As(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));const n=e[vs];n&&(n.delete(t),n.size||(e[vs]=void 0))}function Es(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Is=0;function xs(e,t,n,a){const i=e._endId=++Is,r=()=>{i===e._endId&&a()};if(null!=n)return setTimeout(r,n);const{type:o,timeout:s,propCount:l}=Ns(e,t);if(!o)return a();const u=o+"end";let c=0;const d=()=>{e.removeEventListener(u,h),r()},h=t=>{t.target===e&&++c>=l&&d()};setTimeout(()=>{c<l&&d()},s+1),e.addEventListener(u,h)}function Ns(e,t){const n=window.getComputedStyle(e),a=e=>(n[e]||"").split(", "),i=a("".concat(fs,"Delay")),r=a("".concat(fs,"Duration")),o=Ps(i,r),s=a("".concat(ms,"Delay")),l=a("".concat(ms,"Duration")),u=Ps(s,l);let c=null,d=0,h=0;t===fs?o>0&&(c=fs,d=o,h=r.length):t===ms?u>0&&(c=ms,d=u,h=l.length):(d=Math.max(o,u),c=d>0?o>u?fs:ms:null,h=c?c===fs?r.length:l.length:0);return{type:c,timeout:d,propCount:h,hasTransform:c===fs&&/\b(?:transform|all)(?:,|$)/.test(a("".concat(fs,"Property")).toString())}}function Ps(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>Ms(t)+Ms(e[n])))}function Ms(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function Os(e){return(e?e.ownerDocument:document).body.offsetHeight}const Rs=Symbol("_vod"),Ds=Symbol("_vsh"),Ls={name:"show",beforeMount(e,{value:t},{transition:n}){e[Rs]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Bs(e,t)}
24,mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:a}){!t!=!n&&(a?t?(a.beforeEnter(e),Bs(e,!0),a.enter(e)):a.leave(e,()=>{Bs(e,!1)}):Bs(e,t))},beforeUnmount(e,{value:t}){Bs(e,t)}};function Bs(e,t){e.style.display=t?e[Rs]:"none",e[Ds]=!t}const Fs=Symbol("");function Vs(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Vs(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)Xs(e.el,t);else if(e.type===eo)e.children.forEach(e=>Vs(e,t));else if(e.type===ao){let{el:n,anchor:a}=e;for(;n&&(Xs(n,t),n!==a);)n=n.nextSibling}}function Xs(e,t){if(1===e.nodeType){const n=e.style;let a="";for(const e in t){const i=Ie(t[e]);n.setProperty("--".concat(e),i),a+="--".concat(e,": ").concat(i,";")}n[Fs]=a}}const js=/(?:^|;)\s*display\s*:/;const Us=/\s*!important$/;function Hs(e,t,n){if(p(n))n.forEach(n=>Hs(e,t,n));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const a=function(e,t){const n=Ks[t];if(n)return n;let a=M(t);if("filter"!==a&&a in e)return Ks[t]=a;a=D(a);for(let i=0;i<zs.length;i++){const n=zs[i]+a;if(n in e)return Ks[t]=n}return t}(e,t);Us.test(n)?e.setProperty(R(a),n.replace(Us,""),"important"):e[a]=n}}const zs=["Webkit","Moz","ms"],Ks={};const Ws="http://www.w3.org/1999/xlink";function Gs(e,t,n,a,i,r=ue(t)){a&&t.startsWith("xlink:")?null==n?e.removeAttributeNS(Ws,t.slice(6,t.length)):e.setAttributeNS(Ws,t,n):null==n||r&&!de(n)?e.removeAttribute(t):e.setAttribute(t,r?"":_(n)?String(n):n)}function qs(e,t,n,a,i){if("innerHTML"===t||"textContent"===t)return void(null!=n&&(e[t]="innerHTML"===t?cs(n):n));const r=e.tagName;if("value"===t&&"PROGRESS"!==r&&!r.includes("-")){const a="OPTION"===r?e.getAttribute("value")||"":e.value,i=null==n?"checkbox"===e.type?"on":"":String(n);return a===i&&"_value"in e||(e.value=i),null==n&&e.removeAttribute(t),void(e._value=n)}let o=!1;if(""===n||null==n){const a=typeof e[t];"boolean"===a?n=de(n):null==n&&"string"===a?(n="",o=!0):"number"===a&&(n=0,o=!0)}try{e[t]=n}catch(w7){}o&&e.removeAttribute(i||t)}function $s(e,t,n,a){e.addEventListener(t,n,a)}const Ys=Symbol("_vei");function Js(e,t,n,a,i=null){const r=e[Ys]||(e[Ys]={}),o=r[t];if(a&&o)o.value=a;else{const[n,s]=function(e){let t;if(Qs.test(e)){let n;for(t={};n=e.match(Qs);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):R(e.slice(2));return[n,t]}(t);if(a){const o=r[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();Mn(function(e,t){if(p(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=tl(),n}(a,i);$s(e,n,o,s)}else o&&(!function(e,t,n,a){e.removeEventListener(t,n,a)}(e,n,o,s),r[t]=void 0)}}const Qs=/(?:Once|Passive|Capture)$/;let Zs=0;const el=Promise.resolve(),tl=()=>Zs||(el.then(()=>Zs=0),Zs=Date.now());const nl=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;const al={};function il(e,t,n){let a=Na(e,t);A(a)&&(a=u({},a,t));class i extends ol{constructor(e){super(a,e,n)}}return i.def=a,i}const rl="undefined"!=typeof HTMLElement?HTMLElement:class{};class ol extends rl{constructor(e,t={},n=zl){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&n!==zl?this._root=this.shadowRoot:!1!==e.shadowRoot?(this.attachShadow(u({},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 ol){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,jn(()=>{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 t of e)this._setAttr(t.attributeName)}
24_resolveDef(){if(this._pendingResolve)return;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:n,styles:a}=e;let i;if(n&&!p(n))for(const r in n){const e=n[r];(e===Number||e&&e.type===Number)&&(r in this._props&&(this._props[r]=j(this._props[r])),(i||(i=Object.create(null)))[M(r)]=!0)}this._numberProps=i,this._resolveProps(e),this.shadowRoot&&this._applyStyles(a),this._mount(e)},t=this._def.__asyncLoader;t?this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!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 t=this._instance&&this._instance.exposed;if(t)for(const n in t)h(this,n)||Object.defineProperty(this,n,{get:()=>ln(t[n])})}_resolveProps(e){const{props:t}=e,n=p(t)?t:Object.keys(t||{});for(const a of Object.keys(this))"_"!==a[0]&&n.includes(a)&&this._setProp(a,this[a]);for(const a of n.map(M))Object.defineProperty(this,a,{get(){return this._getProp(a)},set(e){this._setProp(a,e,!0,!0)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const t=this.hasAttribute(e);let n=t?this.getAttribute(e):al;const a=M(e);t&&this._numberProps&&this._numberProps[a]&&(n=j(n)),this._setProp(a,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,a=!1){if(t!==this._props[e]&&(t===al?delete this._props[e]:(this._props[e]=t,"key"===e&&this._app&&(this._app._ceVNode.key=t)),a&&this._instance&&this._update(),n)){const n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),!0===t?this.setAttribute(R(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(R(e),t+""):t||this.removeAttribute(R(e)),n&&n.observe(this,{attributes:!0})}}
24_update(){const e=this._createVNode();this._app&&(e.appContext=this._app._context),Hl(e,this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const t=bo(this._def,u(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,A(t[0])?u({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),R(e)!==e&&t(R(e),n)},this._setParent()}),t}_applyStyles(e,t){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}const n=this._nonce;for(let a=e.length-1;a>=0;a--){const t=document.createElement("style");n&&t.setAttribute("nonce",n),t.textContent=e[a],this.shadowRoot.prepend(t)}}_parseSlots(){const e=this._slots={};let t;for(;t=this.firstChild;){const n=1===t.nodeType&&t.getAttribute("slot")||"default";(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){const e=this._getSlots(),t=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){const a=e[n],i=a.getAttribute("name")||"default",r=this._slots[i],o=a.parentNode;if(r)for(const e of r){if(t&&1===e.nodeType){const n=t+"-s",a=document.createTreeWalker(e,1);let i;for(e.setAttribute(n,"");i=a.nextNode();)i.setAttribute(n,"")}o.insertBefore(e,a)}else for(;a.firstChild;)o.insertBefore(a.firstChild,a);o.removeChild(a)}}_getSlots(){const e=[this];return this._teleportTargets&&e.push(...this._teleportTargets),e.reduce((e,t)=>(e.push(...Array.from(t.querySelectorAll("slot"))),e),[])}_injectChildStyle(e){this._applyStyles(e.styles,e)}_removeChildStyle(e){}}function sl(e){const t=Ro(),n=t&&t.ce;return n||null}const ll=new WeakMap,ul=new WeakMap,cl=Symbol("_moveCb"),dl=Symbol("_enterCb"),hl=e=>(delete e.props.mode,e),pl=hl({name:"TransitionGroup",props:u({},ys,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ro(),a=ga();let i,r;return fi(()=>{if(!i.length)return;const t=e.moveClass||"".concat(e.name||"v","-move");if(!function(e,t,n){const a=e.cloneNode(),i=e[vs];i&&i.forEach(e=>{e.split(/\s+/).forEach(e=>e&&a.classList.remove(e))});n.split(/\s+/).forEach(e=>e&&a.classList.add(e)),a.style.display="none";const r=1===t.nodeType?t:t.parentNode;r.appendChild(a);const{hasTransform:o}=Ns(a);return r.removeChild(a),o}(i[0].el,n.vnode.el,t))return void(i=[]);i.forEach(ml),i.forEach(vl);const a=i.filter(gl);Os(n.vnode.el),a.forEach(e=>{const n=e.el,a=n.style;Ts(n,t),a.transform=a.webkitTransform=a.transitionDuration="";const i=n[cl]=e=>{e&&e.target!==n||e&&!e.propertyName.endsWith("transform")||(n.removeEventListener("transitionend",i),n[cl]=null,As(n,t))};n.addEventListener("transitionend",i)}),i=[]}
24),()=>{const o=Qt(e),s=Cs(o);let l=o.tag||eo;if(i=[],r)for(let e=0;e<r.length;e++){const t=r[e];t.el&&t.el instanceof Element&&(i.push(t),Ia(t,Ta(t,s,a,n)),ll.set(t,t.el.getBoundingClientRect()))}r=t.default?xa(t.default()):[];for(let e=0;e<r.length;e++){const t=r[e];null!=t.key&&Ia(t,Ta(t,s,a,n))}return bo(l,null,r)}}}),fl=pl;function ml(e){const t=e.el;t[cl]&&t[cl](),t[dl]&&t[dl]()}function vl(e){ul.set(e,e.el.getBoundingClientRect())}function gl(e){const t=ll.get(e),n=ul.get(e),a=t.left-n.left,i=t.top-n.top;if(a||i){const t=e.el.style;return t.transform=t.webkitTransform="translate(".concat(a,"px,").concat(i,"px)"),t.transitionDuration="0s",e}}const yl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return p(t)?e=>F(t,e):t};function bl(e){e.target.composing=!0}function _l(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const wl=Symbol("_assign"),kl={created(e,{modifiers:{lazy:t,trim:n,number:a}},i){e[wl]=yl(i);const r=a||i.props&&"number"===i.props.type;$s(e,t?"change":"input",t=>{if(t.target.composing)return;let a=e.value;n&&(a=a.trim()),r&&(a=X(a)),e[wl](a)}),n&&$s(e,"change",()=>{e.value=e.value.trim()}),t||($s(e,"compositionstart",bl),$s(e,"compositionend",_l),$s(e,"change",_l))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:a,trim:i,number:r}},o){if(e[wl]=yl(o),e.composing)return;const s=null==t?"":t;if((!r&&"number"!==e.type||/^0\d/.test(e.value)?e.value:X(e.value))!==s){if(document.activeElement===e&&"range"!==e.type){if(a&&t===n)return;if(i&&e.value.trim()===s)return}e.value=s}}},Cl={deep:!0,created(e,t,n){e[wl]=yl(n),$s(e,"change",()=>{const t=e._modelValue,n=Il(e),a=e.checked,i=e[wl];if(p(t)){const e=Ce(t,n),r=-1!==e;if(a&&!r)i(t.concat(n));else if(!a&&r){const n=[...t];n.splice(e,1),i(n)}}else if(m(t)){const e=new Set(t);a?e.add(n):e.delete(n),i(e)}else i(xl(e,a))})},mounted:Sl,beforeUpdate(e,t,n){e[wl]=yl(n),Sl(e,t,n)}};function Sl(e,{value:t,oldValue:n},a){let i;if(e._modelValue=t,p(t))i=Ce(t,a.props.value)>-1;else if(m(t))i=t.has(a.props.value);else{if(t===n)return;i=ke(t,xl(e,!0))}e.checked!==i&&(e.checked=i)}const Tl={created(e,{value:t},n){e.checked=ke(t,n.props.value),e[wl]=yl(n),$s(e,"change",()=>{e[wl](Il(e))})},beforeUpdate(e,{value:t,oldValue:n},a){e[wl]=yl(a),t!==n&&(e.checked=ke(t,a.props.value))}},Al={deep:!0,created(e,{value:t,modifiers:{number:n}},a){const i=m(t);$s(e,"change",()=>{const t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?X(Il(e)):Il(e));e[wl](e.multiple?i?new Set(t):t:t[0]),e._assigning=!0,jn(()=>{e._assigning=!1})}),e[wl]=yl(a)},mounted(e,{value:t}){El(e,t)},beforeUpdate(e,t,n){e[wl]=yl(n)},updated(e,{value:t}){e._assigning||El(e,t)}};function El(e,t){const n=e.multiple,a=p(t);if(!n||a||m(t)){for(let i=0,r=e.options.length;i<r;i++){const r=e.options[i],o=Il(r);if(n)if(a){const e=typeof o;r.selected="string"===e||"number"===e?t.some(e=>String(e)===String(o)):Ce(t,o)>-1}else r.selected=t.has(o);else if(ke(Il(r),t))return void(e.selectedIndex!==i&&(e.selectedIndex=i))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function Il(e){return"_value"in e?e._value:e.value}function xl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Nl={created(e,t,n){Ml(e,t,n,null,"created")},mounted(e,t,n){Ml(e,t,n,null,"mounted")},beforeUpdate(e,t,n,a){Ml(e,t,n,a,"beforeUpdate")},updated(e,t,n,a){Ml(e,t,n,a,"updated")}};function Pl(e,t){switch(e){case"SELECT":return Al;case"TEXTAREA":return kl;default:switch(t){case"checkbox":return Cl;case"radio":return Tl;default:return kl}}}function Ml(e,t,n,a,i){const r=Pl(e.tagName,n.props&&n.props.type)[i];r&&r(e,t,n,a)}const Ol=["ctrl","shift","alt","meta"],Rl={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>Ol.some(n=>e["".concat(n,"Key")]&&!t.includes(n))},Dl=(e,t)=>{const n=e._withMods||(e._withMods={}),a=t.join(".");
24return n[a]||(n[a]=(n,...a)=>{for(let e=0;e<t.length;e++){const a=Rl[t[e]];if(a&&a(n,t))return}return e(n,...a)})},Ll={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Bl=(e,t)=>{const n=e._withKeys||(e._withKeys={}),a=t.join(".");return n[a]||(n[a]=n=>{if(!("key"in n))return;const a=R(n.key);return t.some(e=>e===a||Ll[e]===a)?e(n):void 0})},Fl=u({patchProp:(e,t,n,a,i,r)=>{const o="svg"===i;"class"===t?function(e,t,n){const a=e[vs];a&&(t=(t?[t,...a]:[...a]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,a,o):"style"===t?function(e,t,n){const a=e.style,i=b(n);let r=!1;if(n&&!i){if(t)if(b(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Hs(a,t,"")}else for(const e in t)null==n[e]&&Hs(a,e,"");for(const e in n)"display"===e&&(r=!0),Hs(a,e,n[e])}else if(i){if(t!==n){const e=a[Fs];e&&(n+=";"+e),a.cssText=n,r=js.test(n)}}else t&&e.removeAttribute("style");Rs in e&&(e[Rs]=r?a.display:"",e[Ds]&&(a.display="none"))}(e,n,a):s(t)?l(t)||Js(e,t,0,a,r):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,a){if(a)return"innerHTML"===t||"textContent"===t||!!(t in e&&nl(t)&&y(n));if("spellcheck"===t||"draggable"===t||"translate"===t||"autocorrect"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}if(nl(t)&&b(n))return!1;return t in e}(e,t,a,o))?(qs(e,t,a),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||Gs(e,t,a,o,0,"value"!==t)):!e._isVueCE||!/[A-Z]/.test(t)&&b(a)?("true-value"===t?e._trueValue=a:"false-value"===t&&(e._falseValue=a),Gs(e,t,a,o)):qs(e,M(t),a,0,t)}},ps);let Vl,Xl=!1;function jl(){return Vl||(Vl=br(Fl))}function Ul(){return Vl=Xl?Vl:_r(Fl),Xl=!0,Vl}const Hl=(...e)=>{jl().render(...e)},zl=(...e)=>{const t=jl().createApp(...e),{mount:n}=t;return t.mount=e=>{const a=Gl(e);if(!a)return;const i=t._component;y(i)||i.render||i.template||(i.template=a.innerHTML),1===a.nodeType&&(a.textContent="");const r=n(a,!1,Wl(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),r},t},Kl=(...e)=>{const t=Ul().createApp(...e),{mount:n}=t;return t.mount=e=>{const t=Gl(e);if(t)return n(t,!0,Wl(t))},t};function Wl(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function Gl(e){if(b(e)){return document.querySelector(e)}return e}let ql=!1;const $l=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Ca,BaseTransitionPropsValidators:ba,Comment:no,DeprecationTypes:null,EffectScope:Me,ErrorCodes:{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"},ErrorTypeStrings:is,Fragment:eo,KeepAlive:ti,ReactiveEffect:Be,Static:ao,Suspense:qr,Teleport:ha,Text:to,TrackOpTypes:{GET:"get",HAS:"has",ITERATE:"iterate"},Transition:_s,TransitionGroup:fl,TriggerOpTypes:{SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},VueElement:ol,assertNumber:function(e,t){},callWithAsyncErrorHandling:Mn,callWithErrorHandling:Pn,camelize:M,capitalize:D,cloneVNode:wo,compatUtils:null,computed:Zo,createApp:zl,createBlock:po,createCommentVNode:So,createElementBlock:ho,createElementVNode:yo,createHydrationRenderer:_r,createPropsRestProxy:function(e,t){const n={};for(const a in e)t.includes(a)||Object.defineProperty(n,a,{enumerable:!0,get:()=>e[a]});return n},createRenderer:br,createSSRApp:Kl,createSlots:function(e,t){for(let n=0;n<t.length;n++){const a=t[n];if(p(a))for(let t=0;t<a.length;t++)e[a[t].name]=a[t].fn;else a&&(e[a.name]=a.key?(...e)=>{const t=a.fn(...e);return t&&(t.key=a.key),t}:a.fn)}return e},createStaticVNode:Co,createTextVNode:ko,createVNode:bo,customRef:pn,defineAsyncComponent:Ja,defineComponent:Na,defineCustomElement:il,defineEmits:function(){return null},defineExpose:function(e){},defineModel:function(){},defineOptions:function(e){},defineProps:function(){return null},defineSSRCustomElement:(e,t)=>
24il(e,t,Kl),defineSlots:function(){return null},devtools:rs,effect:function(e,t){e.effect instanceof Be&&(e=e.effect.fn);const n=new Be(e);t&&u(n,t);try{n.run()}catch(i){throw n.stop(),i}const a=n.run.bind(n);return a.effect=n,a},effectScope:Oe,getCurrentInstance:Ro,getCurrentScope:Re,getCurrentWatcher:function(){return kn},getTransitionRawChildren:xa,guardReactiveProps:_o,h:es,handleError:On,hasInjectionContext:ar,hydrate:(...e)=>{Ul().hydrate(...e)},hydrateOnIdle:(e=1e4)=>t=>{const n=qa(t,{timeout:e});return()=>$a(n)},hydrateOnInteraction:(e=[])=>(t,n)=>{b(e)&&(e=[e]);let a=!1;const i=e=>{a||(a=!0,r(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},r=()=>{n(t=>{for(const n of e)t.removeEventListener(n,i)})};return n(t=>{for(const n of e)t.addEventListener(n,i,{once:!0})}),r},hydrateOnMediaQuery:e=>t=>{if(e){const n=matchMedia(e);if(!n.matches)return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t);t()}},hydrateOnVisible:e=>(t,n)=>{const a=new IntersectionObserver(e=>{for(const n of e)if(n.isIntersecting){a.disconnect(),t();break}},e);return n(e=>{if(e instanceof Element)return function(e){const{top:t,left:n,bottom:a,right:i}=e.getBoundingClientRect(),{innerHeight:r,innerWidth:o}=window;return(t>0&&t<r||a>0&&a<r)&&(n>0&&n<o||i>0&&i<o)}(e)?(t(),a.disconnect(),!1):void a.observe(e)}),()=>a.disconnect()},initCustomFormatter:function(){},initDirectivesForSSR:()=>{ql||(ql=!0,kl.getSSRProps=({value:e})=>({value:e}),Tl.getSSRProps=({value:e},t)=>{if(t.props&&ke(t.props.value,e))return{checked:!0}},Cl.getSSRProps=({value:e},t)=>{if(p(e)){if(t.props&&Ce(e,t.props.value)>-1)return{checked:!0}}else if(m(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Nl.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=Pl(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},Ls.getSSRProps=({value:e})=>
24{if(!e)return{style:{display:"none"}}})},inject:nr,isMemoSame:ts,isProxy:Jt,isReactive:qt,isReadonly:$t,isRef:nn,isRuntimeOnly:()=>!Xo,isShallow:Yt,isVNode:fo,markRaw:Zt,mergeDefaults:function(e,t){const n=Fi(e);for(const a in t){if(a.startsWith("__skip"))continue;let e=n[a];e?p(e)||y(e)?e=n[a]={type:e,default:t[a]}:e.default=t[a]:null===e&&(e=n[a]={default:t[a]}),e&&t["__skip_".concat(a)]&&(e.skipFactory=!0)}return n},mergeModels:function(e,t){return e&&t?p(e)&&p(t)?e.concat(t):u({},Fi(e),Fi(t)):e||t},mergeProps:Io,nextTick:jn,normalizeClass:ne,normalizeProps:ae,normalizeStyle:Y,onActivated:ai,onBeforeMount:di,onBeforeUnmount:mi,onBeforeUpdate:pi,onDeactivated:ii,onErrorCaptured:_i,onMounted:hi,onRenderTracked:bi,onRenderTriggered:yi,onScopeDispose:De,onServerPrefetch:gi,onUnmounted:vi,onUpdated:fi,onWatcherCleanup:Cn,openBlock:oo,popScopeId:function(){Qn=null},provide:tr,proxyRefs:dn,pushScopeId:function(e){Qn=e},queuePostFlushCb:zn,reactive:Ht,readonly:Kt,ref:an,registerRuntimeCompiler:function(e){Xo=e,jo=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Di))}},render:Hl,renderList:Ii,renderSlot:xi,resolveComponent:ki,resolveDirective:Ti,resolveDynamicComponent:Si,resolveFilter:null,resolveTransitionHooks:Ta,setBlockTracking:uo,setDevtoolsHook:os,setTransitionHooks:Ia,shallowReactive:zt,shallowReadonly:Wt,shallowRef:rn,ssrContextKey:Ir,ssrUtils:ss,stop:function(e){e.effect.stop()},toDisplayString:Te,toHandlerKey:L,toHandlers:function(e,t){const n={};for(const a in e)n[t&&/[A-Z]/.test(a)?"on:".concat(a):L(a)]=e[a];return n},toRaw:Qt,toRef:gn,toRefs:fn,toValue:un,transformVNodeArgs:function(e){},triggerRef:function(e){e.dep&&e.dep.trigger()},unref:ln,useAttrs:Li,useCssModule:function(e="$style"){{const t=Ro();if(!t)return a;const n=t.type.__cssModules;if(!n)return a;const i=n[e];return i||a}},useCssVars:function(e){const t=Ro();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll('[data-v-owner="'.concat(t.uid,'"]'))).forEach(e=>Xs(e,n))},a=()=>{const a=e(t.proxy);t.ce?Xs(t.ce,a):Vs(t.subTree,a),n(a)};pi(()=>{zn(a)}),hi(()=>{Mr(a,r,{flush:"post"});const e=new MutationObserver(a);e.observe(t.subTree.el.parentNode,{childList:!0}),vi(()=>e.disconnect())})},useHost:sl,useId:Pa,useModel:function(e,t,n=a){const i=Ro(),r=M(t),o=R(t),s=Lr(e,r),l=pn((s,l)=>{let u,c,d=a;return Pr(()=>{const t=e[r];B(u,t)&&(u=t,l())}),{get:()=>(s(),n.get?n.get(u):u),set(e){const s=n.set?n.set(e):e;if(!(B(s,u)||d!==a&&B(e,d)))return;const h=i.vnode.props;h&&(t in h||r in h||o in h)&&("onUpdate:".concat(t)in h||"onUpdate:".concat(r)in h||"onUpdate:".concat(o)in h)||(u=e,l()),i.emit("update:".concat(t),s),B(e,s)&&B(e,d)&&!B(s,c)&&l(),d=e,c=s}}});return l[Symbol.iterator]=()=>{let e=0;return{next:()=>e<2?{value:e++?s||a:l,done:!1}:{done:!0}}},l},useSSRContext:xr,useShadowRoot:function(){const e=sl();return e&&e.shadowRoot},useSlots:function(){return Bi().slots},useTemplateRef:function(e){const t=Ro(),n=rn(null);if(t){const i=t.refs===a?t.refs={}:t.refs;Object.defineProperty(i,e,{enumerable:!0,get:()=>n.value,set:e=>n.value=e})}return n},useTransitionState:ga,vModelCheckbox:Cl,vModelDynamic:Nl,vModelRadio:Tl,vModelSelect:Al,vModelText:kl,vShow:Ls,version:ns,warn:as,watch:Mr,watchEffect:Nr,watchPostEffect:function(e,t){return Or(e,null,{flush:"post"})},watchSyncEffect:Pr,withAsyncContext:function(e){const t=Ro();let n=e();return Fo(),k(n)&&(n=n.catch(e=>{throw Bo(t),e})),[n,()=>Bo(t)]},withCtx:ea,withDefaults:function(e,t){return null},withDirectives:ta,withKeys:Bl,withMemo:function(e,t,n,a){const i=n[a];if(i&&ts(i,e))return i;const r=t();return r.memo=e.slice(),r.cacheIndex=a,n[a]=r},withModifiers:Dl,withScopeId:e=>ea},Symbol.toStringTag,{value:"Module"}));function Yl(e,t={},n){for(const a in e){const i=e[a],r=n?"".concat(n,":").concat(a):a;"object"==typeof i&&null!==i?Yl(i,t,r):"function"==typeof i&&(t[r]=i)}return t}const Jl={run:e=>e()},Ql=void 0!==console.createTask?console.createTask:()=>Jl;function Zl(e,t){const n=t.shift(),a=Ql(n);return e.reduce((e,n)=>e.then(()=>a.run(()=>n(...t))),Promise.resolve())}function eu(e,t){const n=t.shift(),a=Ql(n);return Promise.all(e.map(e=>a.run(()=>e(...t))))}function tu(e,t){for(const n of[...e])n(t)}class nu{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,t,n={}){if(!e||"function"!=typeof t)return()=>{};const a=e;let i;for(;this._deprecatedHooks[e];)i=this._deprecatedHooks[e],e=i.to;if(i&&!n.allowDeprecated){let e=i.message;e||(e="".concat(a," hook has been deprecated")+(i.to?", please use ".concat(i.to):"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(e)||(console.warn(e),this._deprecatedMessages.add(e))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch(w7){}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&(this.removeHook(e,t),t=void 0)}}hookOnce(e,t){let n,a=(...e)=>("function"==typeof n&&n(),n=void 0,a=void 0,t(...e));return n=this.hook(e,a),n}removeHook(e,t){if(this._hooks[e]){const n=this._hooks[e].indexOf(t);-1!==n&&this._hooks[e].splice(n,1),0===this._hooks[e].length&&delete this._hooks[e]}}deprecateHook(e,t){this._deprecatedHooks[e]="string"==typeof t?{to:t}:t;const n=this._hooks[e]||[];delete this._hooks[e];for(const a of n)this.hook(e,a)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(const t in e)this.deprecateHook(t,e[t])}addHooks(e){const t=Yl(e),n=Object.keys(t).map(e=>this.hook(e,t[e]));return()=>{for(const e of n.splice(0,n.length))e()}}removeHooks(e){const t=Yl(e);for(const n in t)this.removeHook(n,t[n])}removeAllHooks(){for(const e in this._hooks)delete this._hooks[e]}callHook(e,...t){return t.unshift(e),this.callHookWith(Zl,e,...t)}callHookParallel(e,...t){return t.unshift(e),this.callHookWith(eu,e,...t)}callHookWith(e,t,...n){const a=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&tu(this._before,a);const i=e(t in this._hooks?[...this._hooks[t]]:[],n);return i instanceof Promise?i.finally(()=>{this._after&&a&&tu(this._after,a)}):(this._after&&a&&tu(this._after,a),i)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(void 0!==this._before){const t=this._before.indexOf(e);-1!==t&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(void 0!==this._after){const t=this._after.indexOf(e);-1!==t&&this._after.splice(t,1)}}}}
25/*!
26 * pinia v3.0.3
27 * (c) 2025 Eduardo San Martin Morote
28 * @license MIT
29 */
30let au;const iu=e=>au=e,ru=Symbol();function ou(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var su,lu;(lu=su||(su={})).direct="direct",lu.patchObject="patch object",lu.patchFunction="patch function";const uu=()=>{};function cu(e,t,n,a=uu){e.push(t);const i=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),a())};return!n&&Re()&&De(i),i}
30function du(e,...t){e.slice().forEach(e=>{e(...t)})}const hu=e=>e(),pu=Symbol(),fu=Symbol();function mu(e,t){e instanceof Map&&t instanceof Map?t.forEach((t,n)=>e.set(n,t)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const a=t[n],i=e[n];ou(i)&&ou(a)&&e.hasOwnProperty(n)&&!nn(a)&&!qt(a)?e[n]=mu(i,a):e[n]=a}return e}const vu=Symbol();function gu(e){return!ou(e)||!Object.prototype.hasOwnProperty.call(e,vu)}const{assign:yu}=Object;function bu(e){return!(!nn(e)||!e.effect)}function _u(e,t,n={},a,i,r){let o;const s=yu({actions:{}},n),l={deep:!0};let u,c,d,h=[],p=[];const f=a.state.value[e];let m;function v(t){let n;u=c=!1,"function"==typeof t?(t(a.state.value[e]),n={type:su.patchFunction,storeId:e,events:d}):(mu(a.state.value[e],t),n={type:su.patchObject,payload:t,storeId:e,events:d});const i=m=Symbol();jn().then(()=>{m===i&&(u=!0)}),c=!0,du(h,n,a.state.value[e])}r||f||(a.state.value[e]={}),an({});const g=r?function(){const{state:e}=n,t=e?e():{};this.$patch(e=>{yu(e,t)})}:uu;const y=(t,n="")=>{if(pu in t)return t[fu]=n,t;const i=function(){iu(a);const n=Array.from(arguments),r=[],o=[];let s;du(p,{args:n,name:i[fu],store:b,after:function(e){r.push(e)},onError:function(e){o.push(e)}});try{s=t.apply(this&&this.$id===e?this:b,n)}catch(Sae){throw du(o,Sae),Sae}return s instanceof Promise?s.then(e=>(du(r,e),e)).catch(e=>(du(o,e),Promise.reject(e))):(du(r,s),s)};return i[pu]=!0,i[fu]=n,i},b=Ht({_p:a,$id:e,$onAction:cu.bind(null,p),$patch:v,$reset:g,$subscribe(t,n={}){const i=cu(h,t,n.detached,()=>r()),r=o.run(()=>Mr(()=>a.state.value[e],a=>{("sync"===n.flush?c:u)&&t({storeId:e,type:su.direct,events:d},a)},yu({},l,n)));return i},$dispose:function(){o.stop(),h=[],p=[],a._s.delete(e)}});a._s.set(e,b);const _=(a._a&&a._a.runWithContext||hu)(()=>a._e.run(()=>(o=Oe()).run(()=>t({action:y}))));for(const w in _){const t=_[w];if(nn(t)&&!bu(t)||qt(t))r||(f&&gu(t)&&(nn(t)?t.value=f[w]:mu(t,f[w])),a.state.value[e][w]=t);else if("function"==typeof t){const e=y(t,w);_[w]=e,s.actions[w]=t}}return yu(b,_),yu(Qt(b),_),Object.defineProperty(b,"$state",{get:()=>a.state.value[e],set:e=>{v(t=>{yu(t,e)})}}),a._p.forEach(e=>{yu(b,o.run(()=>e({store:b,app:a._a,pinia:a,options:s})))}),f&&r&&n.hydrate&&n.hydrate(b.$state,f),u=!0,c=!0,b}
31/*! #__NO_SIDE_EFFECTS__ */function wu(e,t,n){let a;const i="function"==typeof t;function r(n,r){const o=ar();(n=n||(o?nr(ru,null):null))&&iu(n),(n=au)._s.has(e)||(i?_u(e,t,a,n):function(e,t,n){const{state:a,actions:i,getters:r}=t,o=n.state.value[e];let s;s=_u(e,function(){o||(n.state.value[e]=a?a():{});const t=fn(n.state.value[e]);return yu(t,i,Object.keys(r||{}).reduce((t,a)=>(t[a]=Zt(Zo(()=>{iu(n);const t=n._s.get(e);return r[a].call(t,t)})),t),{}))},t,n,0,!0)}(e,a,n));return n._s.get(e)}return a=i?n:t,r.$id=e,r}var ku={};
32/**
33 * @license
34 * Copyright 2017 Google LLC
35 *
36 * Licensed under the Apache License, Version 2.0 (the "License");
37 * you may not use this file except in compliance with the License.
38 * You may obtain a copy of the License at
39 *
40 *   http://www.apache.org/licenses/LICENSE-2.0
41 *
42 * Unless required by applicable law or agreed to in writing, software
43 * distributed under the License is distributed on an "AS IS" BASIS,
44 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
45 * See the License for the specific language governing permissions and
46 * limitations under the License.
47 */const Cu="${JSCORE_VERSION}",Su=function(e,t){if(!e)throw Tu(t)},Tu=function(e){return new Error("Firebase Database ("+Cu+") INTERNAL ASSERT FAILED: "+e)},Au=function(e){const t=[];let n=0;for(let a=0;a<e.length;a++){let i=e.charCodeAt(a);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):55296==(64512&i)&&a+1<e.length&&56320==(64512&e.charCodeAt(a+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++a)),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},Eu={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,a=[];for(let i=0;i<e.length;i+=3){const t=e[i],r=i+1<e.length,o=r?e[i+1]:0,s=i+2<e.length,l=s?e[i+2]:0,u=t>>2,c=(3&t)<<4|o>>4;let d=(15&o)<<2|l>>6,h=63&l;s||(h=64,r||(d=64)),a.push(n[u],n[c],n[d],n[h])}return a.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(Au(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){const t=[];let n=0,a=0;for(;n<e.length;){const i=e[n++];if(i<128)t[a++]=String.fromCharCode(i);else if(i>191&&i<224){const r=e[n++];t[a++]=String.fromCharCode((31&i)<<6|63&r)}else if(i>239&&i<365){const r=((7&i)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[a++]=String.fromCharCode(55296+(r>>10)),t[a++]=String.fromCharCode(56320+(1023&r))}else{const r=e[n++],o=e[n++];
vendor: 4,666 bytes, lines 47-113
47t[a++]=String.fromCharCode((15&i)<<12|(63&r)<<6|63&o)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,a=[];for(let i=0;i<e.length;){const t=n[e.charAt(i++)],r=i<e.length?n[e.charAt(i)]:0;++i;const o=i<e.length?n[e.charAt(i)]:64;++i;const s=i<e.length?n[e.charAt(i)]:64;if(++i,null==t||null==r||null==o||null==s)throw new Iu;const l=t<<2|r>>4;if(a.push(l),64!==o){const e=r<<4&240|o>>2;if(a.push(e),64!==s){const e=o<<6&192|s;a.push(e)}}}return a},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};
48/**
49 * @license
50 * Copyright 2017 Google LLC
51 *
52 * Licensed under the Apache License, Version 2.0 (the "License");
53 * you may not use this file except in compliance with the License.
54 * You may obtain a copy of the License at
55 *
56 *   http://www.apache.org/licenses/LICENSE-2.0
57 *
58 * Unless required by applicable law or agreed to in writing, software
59 * distributed under the License is distributed on an "AS IS" BASIS,
60 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
61 * See the License for the specific language governing permissions and
62 * limitations under the License.
63 */class Iu extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const xu=function(e){const t=Au(e);return Eu.encodeByteArray(t,!0)},Nu=function(e){return xu(e).replace(/\./g,"")},Pu=function(e){try{return Eu.decodeString(e,!0)}catch(w7){console.error("base64Decode failed: ",w7)}return null};
64/**
65 * @license
66 * Copyright 2017 Google LLC
67 *
68 * Licensed under the Apache License, Version 2.0 (the "License");
69 * you may not use this file except in compliance with the License.
70 * You may obtain a copy of the License at
71 *
72 *   http://www.apache.org/licenses/LICENSE-2.0
73 *
74 * Unless required by applicable law or agreed to in writing, software
75 * distributed under the License is distributed on an "AS IS" BASIS,
76 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
77 * See the License for the specific language governing permissions and
78 * limitations under the License.
79 */
80function Mu(e){return Ou(void 0,e)}function Ou(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(const n in t)t.hasOwnProperty(n)&&Ru(n)&&(e[n]=Ou(e[n],t[n]));return e}function Ru(e){return"__proto__"!==e}
81/**
82 * @license
83 * Copyright 2022 Google LLC
84 *
85 * Licensed under the Apache License, Version 2.0 (the "License");
86 * you may not use this file except in compliance with the License.
87 * You may obtain a copy of the License at
88 *
89 *   http://www.apache.org/licenses/LICENSE-2.0
90 *
91 * Unless required by applicable law or agreed to in writing, software
92 * distributed under the License is distributed on an "AS IS" BASIS,
93 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
94 * See the License for the specific language governing permissions and
95 * limitations under the License.
96 */
97/**
98 * @license
99 * Copyright 2022 Google LLC
100 *
101 * Licensed under the Apache License, Version 2.0 (the "License");
102 * you may not use this file except in compliance with the License.
103 * You may obtain a copy of the License at
104 *
105 *   http://www.apache.org/licenses/LICENSE-2.0
106 *
107 * Unless required by applicable law or agreed to in writing, software
108 * distributed under the License is distributed on an "AS IS" BASIS,
109 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
110 * See the License for the specific language governing permissions and
111 * limitations under the License.
112 */
113const Du=()=>function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__,Lu=()=>{try{return Du()||(()=>{if("undefined"==typeof process)return;const e=ku.__FIREBASE_DEFAULTS__;return e?JSON.parse(e):void 0})()||(()=>{if("undefined"==typeof document)return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;
113]+)/)}catch(w7){return}const t=e&&Pu(e[1]);return t&&JSON.parse(t)})()}catch(w7){return void console.info("Unable to get __FIREBASE_DEFAULTS__ due to: ".concat(w7))}},Bu=e=>{var t,n;return null==(n=null==(t=Lu())?void 0:t.emulatorHosts)?void 0:n[e]},Fu=e=>{const t=Bu(e);if(!t)return;const n=t.lastIndexOf(":");if(n<=0||n+1===t.length)throw new Error("Invalid host ".concat(t," with no separate hostname and port!"));const a=parseInt(t.substring(n+1),10);return"["===t[0]?[t.substring(1,n-1),a]:[t.substring(0,n),a]},Vu=()=>{var e;return null==(e=Lu())?void 0:e.config},Xu=e=>{var t;return null==(t=Lu())?void 0:t["_".concat(e)]};
114/**
115 * @license
116 * Copyright 2017 Google LLC
117 *
118 * Licensed under the Apache License, Version 2.0 (the "License");
119 * you may not use this file except in compliance with the License.
120 * You may obtain a copy of the License at
121 *
122 *   http://www.apache.org/licenses/LICENSE-2.0
123 *
124 * Unless required by applicable law or agreed to in writing, software
125 * distributed under the License is distributed on an "AS IS" BASIS,
126 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
127 * See the License for the specific language governing permissions and
128 * limitations under the License.
129 */
130class ju{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}wrapCallback(e){return(t,n)=>{t?this.reject(t):this.resolve(n),"function"==typeof e&&(this.promise.catch(()=>{}),1===e.length?e(t):e(t,n))}}}
131/**
132 * @license
133 * Copyright 2025 Google LLC
134 *
135 * Licensed under the Apache License, Version 2.0 (the "License");
136 * you may not use this file except in compliance with the License.
137 * You may obtain a copy of the License at
138 *
139 *   http://www.apache.org/licenses/LICENSE-2.0
140 *
141 * Unless required by applicable law or agreed to in writing, software
142 * distributed under the License is distributed on an "AS IS" BASIS,
143 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
144 * See the License for the specific language governing permissions and
145 * limitations under the License.
146 */function Uu(e){try{return(e.startsWith("http://")||e.startsWith("https://")?new URL(e).hostname:e).endsWith(".cloudworkstations.dev")}catch(w7){return!1}}async function Hu(e){return(await fetch(e,{credentials:"include"})).ok}
147/**
148 * @license
149 * Copyright 2021 Google LLC
150 *
151 * Licensed under the Apache License, Version 2.0 (the "License");
152 * you may not use this file except in compliance with the License.
153 * You may obtain a copy of the License at
154 *
155 *   http://www.apache.org/licenses/LICENSE-2.0
156 *
157 * Unless required by applicable law or agreed to in writing, software
158 * distributed under the License is distributed on an "AS IS" BASIS,
159 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
160 * See the License for the specific language governing permissions and
161 * limitations under the License.
162 */function zu(e,t){if(e.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const n=t||"demo-project",a=e.iat||0,i=e.sub||e.user_id;if(!i)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const r={iss:"https://securetoken.google.com/".concat(n),aud:n,iat:a,exp:a+3600,auth_time:a,sub:i,user_id:i,firebase:{sign_in_provider:"custom",identities:{}},...e};return[Nu(JSON.stringify({alg:"none",type:"JWT"})),Nu(JSON.stringify(r)),""].join(".")}const Ku={};let Wu=!1;function Gu(e,t){if("undefined"==typeof window||"undefined"==typeof document||!Uu(window.location.host)||Ku[e]===t||Ku[e]||Wu)return;function n(e){return"__firebase__banner__".concat(e)}Ku[e]=t;const a="__firebase__banner",i=function(){const e={prod:[],emulator:[]};for(const t of Object.keys(Ku))Ku[t]?e.emulator.push(t):e.prod.push(t);return e}().prod.length>0;function r(){const e=document.createElement("span");return e.style.cursor="pointer",e.style.marginLeft="16px",e.style.fontSize="24px",e.innerHTML=" &times;",e.onclick=()=>{Wu=!0,function(){const e=document.getElementById(a);e&&e.remove()}()},e}function o(){const e=function(e){let t=document.getElementById(e),n=!1;return t||(t=document.createElement("div"),t.setAttribute("id",e),n=!0),{created:n,element:t}}(a),t=n("text"),o=document.getElementById(t)||document.createElement("span"),s=n("learnmore"),l=document.getElementById(s)||document.createElement("a"),u=n("preprendIcon"),
162c=document.getElementById(u)||document.createElementNS("http://www.w3.org/2000/svg","svg");if(e.created){const t=e.element;!function(e){e.style.display="flex",e.style.background="#7faaf0",e.style.position="fixed",e.style.bottom="5px",e.style.left="5px",e.style.padding=".5em",e.style.borderRadius="5px",e.style.alignItems="center"}(t),function(e,t){e.setAttribute("id",t),e.innerText="Learn more",e.href="https://firebase.google.com/docs/studio/preview-apps#preview-backend",e.setAttribute("target","__blank"),e.style.paddingLeft="5px",e.style.textDecoration="underline"}(l,s);const n=r();!function(e,t){e.setAttribute("width","24"),e.setAttribute("id",t),e.setAttribute("height","24"),e.setAttribute("viewBox","0 0 24 24"),e.setAttribute("fill","none"),e.style.marginLeft="-6px"}(c,u),t.append(c,o,l,n),document.body.appendChild(t)}i?(o.innerText="Preview backend disconnected.",c.innerHTML='<g clip-path="url(#clip0_6013_33858)">\n<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"/>\n</g>\n<defs>\n<clipPath id="clip0_6013_33858">\n<rect width="24" height="24" fill="white"/>\n</clipPath>\n</defs>'):(c.innerHTML='<g clip-path="url(#clip0_6083_34804)">\n<path d="M11.4 15.2H12.6V11.2H11.4V15.2ZM12 10C12.1667 10 12.3056 9.94444 12.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"/>\n</g>\n<defs>\n<clipPath id="clip0_6083_34804">\n<rect width="24" height="24" fill="white"/>\n</clipPath>\n</defs>',o.innerText="Preview backend running in this workspace."),o.setAttribute("id",t)}"loading"===document.readyState?window.addEventListener("DOMContentLoaded",o):o()}
163/**
164 * @license
165 * Copyright 2017 Google LLC
166 *
167 * Licensed under the Apache License, Version 2.0 (the "License");
168 * you may not use this file except in compliance with the License.
169 * You may obtain a copy of the License at
170 *
171 *   http://www.apache.org/licenses/LICENSE-2.0
172 *
173 * Unless required by applicable law or agreed to in writing, software
174 * distributed under the License is distributed on an "AS IS" BASIS,
175 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
176 * See the License for the specific language governing permissions and
177 * limitations under the License.
178 */function qu(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function $u(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(qu())}function Yu(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function Ju(){return!function(){var e;const t=null==(e=Lu())?void 0:e.forceEnvironment;if("node"===t)return!0;
178if("browser"===t)return!1;try{return"[object process]"===Object.prototype.toString.call(global.process)}catch(w7){return!1}}()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function Qu(){try{return"object"==typeof indexedDB}catch(w7){return!1}}class Zu extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name="FirebaseError",Object.setPrototypeOf(this,Zu.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,ec.prototype.create)}}class ec{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e,...t){const n=t[0]||{},a="".concat(this.service,"/").concat(e),i=this.errors[e],r=i?function(e,t){return e.replace(tc,(e,n)=>{const a=t[n];return null!=a?String(a):"<".concat(n,"?>")})}(i,n):"Error",o="".concat(this.serviceName,": ").concat(r," (").concat(a,").");return new Zu(a,o,n)}}const tc=/\{\$([^}]+)}/g;
179/**
180 * @license
181 * Copyright 2017 Google LLC
182 *
183 * Licensed under the Apache License, Version 2.0 (the "License");
184 * you may not use this file except in compliance with the License.
185 * You may obtain a copy of the License at
186 *
187 *   http://www.apache.org/licenses/LICENSE-2.0
188 *
189 * Unless required by applicable law or agreed to in writing, software
190 * distributed under the License is distributed on an "AS IS" BASIS,
191 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
192 * See the License for the specific language governing permissions and
193 * limitations under the License.
194 */function nc(e){return JSON.parse(e)}function ac(e){return JSON.stringify(e)}
195/**
196 * @license
197 * Copyright 2017 Google LLC
198 *
199 * Licensed under the Apache License, Version 2.0 (the "License");
200 * you may not use this file except in compliance with the License.
201 * You may obtain a copy of the License at
202 *
203 *   http://www.apache.org/licenses/LICENSE-2.0
204 *
205 * Unless required by applicable law or agreed to in writing, software
206 * distributed under the License is distributed on an "AS IS" BASIS,
207 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
208 * See the License for the specific language governing permissions and
209 * limitations under the License.
210 */const ic=function(e){let t={},n={},a={},i="";try{const r=e.split(".");t=nc(Pu(r[0])||""),n=nc(Pu(r[1])||""),i=r[2],a=n.d||{},delete n.d}catch(w7){}return{header:t,claims:n,data:a,signature:i}};
211/**
212 * @license
213 * Copyright 2017 Google LLC
214 *
215 * Licensed under the Apache License, Version 2.0 (the "License");
216 * you may not use this file except in compliance with the License.
217 * You may obtain a copy of the License at
218 *
219 *   http://www.apache.org/licenses/LICENSE-2.0
220 *
221 * Unless required by applicable law or agreed to in writing, software
222 * distributed under the License is distributed on an "AS IS" BASIS,
223 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
224 * See the License for the specific language governing permissions and
225 * limitations under the License.
226 */
227function rc(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function oc(e,t){return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0}function sc(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function lc(e,t,n){const a={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(a[i]=t.call(n,e[i],i,e));return a}function uc(e,t){if(e===t)return!0;const n=Object.keys(e),a=Object.keys(t);for(const i of n){if(!a.includes(i))return!1;const n=e[i],r=t[i];if(cc(n)&&cc(r)){if(!uc(n,r))return!1}else if(n!==r)return!1}for(const i of a)if(!n.includes(i))return!1;return!0}function cc(e){return null!==e&&"object"==typeof e}
228/**
229 * @license
230 * Copyright 2017 Google LLC
231 *
232 * Licensed under the Apache License, Version 2.0 (the "License");
233 * you may not use this file except in compliance with the License.
234 * You may obtain a copy of the License at
235 *
236 *   http://www.apache.org/licenses/LICENSE-2.0
237 *
238 * Unless required by applicable law or agreed to in writing, software
239 * distributed under the License is distributed on an "AS IS" BASIS,
240 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
241 * See the License for the specific language governing permissions and
242 * limitations under the License.
243 */function dc(e){const t=[];
243for(const[n,a]of Object.entries(e))Array.isArray(a)?a.forEach(e=>{t.push(encodeURIComponent(n)+"="+encodeURIComponent(e))}):t.push(encodeURIComponent(n)+"="+encodeURIComponent(a));return t.length?"&"+t.join("&"):""}function hc(e){const t={};return e.replace(/^\?/,"").split("&").forEach(e=>{if(e){const[n,a]=e.split("=");t[decodeURIComponent(n)]=decodeURIComponent(a)}}),t}function pc(e){const t=e.indexOf("?");if(!t)return"";const n=e.indexOf("#",t);return e.substring(t,n>0?n:void 0)}
244/**
245 * @license
246 * Copyright 2017 Google LLC
247 *
248 * Licensed under the Apache License, Version 2.0 (the "License");
249 * you may not use this file except in compliance with the License.
250 * You may obtain a copy of the License at
251 *
252 *   http://www.apache.org/licenses/LICENSE-2.0
253 *
254 * Unless required by applicable law or agreed to in writing, software
255 * distributed under the License is distributed on an "AS IS" BASIS,
256 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
257 * See the License for the specific language governing permissions and
258 * limitations under the License.
259 */class fc{constructor(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(let e=1;e<this.blockSize;++e)this.pad_[e]=0;this.reset()}reset(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0}compress_(e,t){t||(t=0);const n=this.W_;if("string"==typeof e)for(let c=0;c<16;c++)n[c]=e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|e.charCodeAt(t+3),t+=4;else for(let c=0;c<16;c++)n[c]=e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3],t+=4;for(let c=16;c<80;c++){const e=n[c-3]^n[c-8]^n[c-14]^n[c-16];n[c]=4294967295&(e<<1|e>>>31)}let a,i,r=this.chain_[0],o=this.chain_[1],s=this.chain_[2],l=this.chain_[3],u=this.chain_[4];for(let c=0;c<80;c++){c<40?c<20?(a=l^o&(s^l),i=1518500249):(a=o^s^l,i=1859775393):c<60?(a=o&s|l&(o|s),i=2400959708):(a=o^s^l,i=3395469782);const e=(r<<5|r>>>27)+a+u+i+n[c]&4294967295;u=l,l=s,s=4294967295&(o<<30|o>>>2),o=r,r=e}this.chain_[0]=this.chain_[0]+r&4294967295,this.chain_[1]=this.chain_[1]+o&4294967295,this.chain_[2]=this.chain_[2]+s&4294967295,this.chain_[3]=this.chain_[3]+l&4294967295,this.chain_[4]=this.chain_[4]+u&4294967295}update(e,t){if(null==e)return;void 0===t&&(t=e.length);const n=t-this.blockSize;let a=0;const i=this.buf_;let r=this.inbuf_;for(;a<t;){if(0===r)for(;a<=n;)this.compress_(e,a),a+=this.blockSize;if("string"==typeof e){for(;a<t;)if(i[r]=e.charCodeAt(a),++r,++a,r===this.blockSize){this.compress_(i),r=0;break}}else for(;a<t;)if(i[r]=e[a],++r,++a,r===this.blockSize){this.compress_(i),r=0;break}}this.inbuf_=r,this.total_+=t}digest(){const e=[];let t=8*this.total_;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(let a=this.blockSize-1;a>=56;a--)this.buf_[a]=255&t,t/=256;this.compress_(this.buf_);let n=0;for(let a=0;a<5;a++)for(let t=24;t>=0;t-=8)e[n]=this.chain_[a]>>t&255,++n;return e}}class mc{constructor(e,t){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then(()=>{e(this)}).catch(e=>{this.error(e)})}next(e){this.forEachObserver(t=>{t.next(e)})}error(e){this.forEachObserver(t=>{t.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,t,n){let a;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");a=function(e,t){if("object"!=typeof e||null===e)return!1;for(const n of t)if(n in e&&"function"==typeof e[n])return!0;return!1}(e,["next","error","complete"])?e:{next:e,error:t,complete:n},void 0===a.next&&(a.next=vc),void 0===a.error&&(a.error=vc),void 0===a.complete&&(a.complete=vc);const i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?a.error(this.finalError):a.complete()}catch(w7){}}),this.observers.push(a),i}unsubscribeOne(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let t=0;t<this.observers.length;t++)this.sendOne(t,e)}sendOne(e,t){this.task.then(()=>
259{if(void 0!==this.observers&&void 0!==this.observers[e])try{t(this.observers[e])}catch(w7){"undefined"!=typeof console&&console.error&&console.error(w7)}})}close(e){this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function vc(){}function gc(e,t){return"".concat(e," failed: ").concat(t," argument ")}
260/**
261 * @license
262 * Copyright 2017 Google LLC
263 *
264 * Licensed under the Apache License, Version 2.0 (the "License");
265 * you may not use this file except in compliance with the License.
266 * You may obtain a copy of the License at
267 *
268 *   http://www.apache.org/licenses/LICENSE-2.0
269 *
270 * Unless required by applicable law or agreed to in writing, software
271 * distributed under the License is distributed on an "AS IS" BASIS,
272 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
273 * See the License for the specific language governing permissions and
274 * limitations under the License.
275 */const yc=function(e){let t=0;for(let n=0;n<e.length;n++){const a=e.charCodeAt(n);a<128?t++:a<2048?t+=2:a>=55296&&a<=56319?(t+=4,n++):t+=3}return t};
276/**
277 * @license
278 * Copyright 2021 Google LLC
279 *
280 * Licensed under the Apache License, Version 2.0 (the "License");
281 * you may not use this file except in compliance with the License.
282 * You may obtain a copy of the License at
283 *
284 *   http://www.apache.org/licenses/LICENSE-2.0
285 *
286 * Unless required by applicable law or agreed to in writing, software
287 * distributed under the License is distributed on an "AS IS" BASIS,
288 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
289 * See the License for the specific language governing permissions and
290 * limitations under the License.
291 */
292function bc(e){return e&&e._delegate?e._delegate:e}class _c{constructor(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,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}}
293/**
294 * @license
295 * Copyright 2019 Google LLC
296 *
297 * Licensed under the Apache License, Version 2.0 (the "License");
298 * you may not use this file except in compliance with the License.
299 * You may obtain a copy of the License at
300 *
301 *   http://www.apache.org/licenses/LICENSE-2.0
302 *
303 * Unless required by applicable law or agreed to in writing, software
304 * distributed under the License is distributed on an "AS IS" BASIS,
305 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
306 * See the License for the specific language governing permissions and
307 * limitations under the License.
308 */const wc="[DEFAULT]";
309/**
310 * @license
311 * Copyright 2019 Google LLC
312 *
313 * Licensed under the Apache License, Version 2.0 (the "License");
314 * you may not use this file except in compliance with the License.
315 * You may obtain a copy of the License at
316 *
317 *   http://www.apache.org/licenses/LICENSE-2.0
318 *
319 * Unless required by applicable law or agreed to in writing, software
320 * distributed under the License is distributed on an "AS IS" BASIS,
321 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
322 * See the License for the specific language governing permissions and
323 * limitations under the License.
324 */class kc{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){const e=new ju;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{const n=this.getOrInitializeService({instanceIdentifier:t});n&&e.resolve(n)}catch(w7){}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;const n=this.normalizeInstanceIdentifier(null==e?void 0:e.identifier),a=null!=(t=null==e?void 0:e.optional)&&t;if(!this.isInitialized(n)&&!this.shouldAutoInitialize()){if(a)return null;throw Error("Service ".concat(this.name," is not available"))}try{return this.getOrInitializeService({instanceIdentifier:n})}catch(w7){if(a)return null;throw w7}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error("Mismatching Component ".concat(e.name," for Provider ").concat(this.name,"."));if(this.component)throw Error("Component for ".concat(this.name," has already been provided"));if(this.component=e,this.shouldAutoInitialize()){if(function(e){return"EAGER"===e.instantiationMode}
325/**
326 * @license
327 * Copyright 2019 Google LLC
328 *
329 * Licensed under the Apache License, Version 2.0 (the "License");
330 * you may not use this file except in compliance with the License.
331 * You may obtain a copy of the License at
332 *
333 *   http://www.apache.org/licenses/LICENSE-2.0
334 *
335 * Unless required by applicable law or agreed to in writing, software
336 * distributed under the License is distributed on an "AS IS" BASIS,
337 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
338 * See the License for the specific language governing permissions and
339 * limitations under the License.
340 */(e))try{this.getOrInitializeService({instanceIdentifier:wc})}catch(w7){}for(const[e,t]of this.instancesDeferred.entries()){const n=this.normalizeInstanceIdentifier(e);try{const e=this.getOrInitializeService({instanceIdentifier:n});t.resolve(e)}catch(w7){}}}}clearInstance(e=wc){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(e=>"INTERNAL"in e).map(e=>e.INTERNAL.delete()),...e.filter(e=>"_delete"in e).map(e=>e._delete())])}isComponentSet(){return null!=this.component}isInitialized(e=wc){return this.instances.has(e)}getOptions(e=wc){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:t={}}=e,n=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(n))throw Error("".concat(this.name,"(").concat(n,") has already been initialized"));if(!this.isComponentSet())throw Error("Component ".concat(this.name," has not been registered yet"));const a=this.getOrInitializeService({instanceIdentifier:n,options:t});for(const[i,r]of this.instancesDeferred.entries()){n===this.normalizeInstanceIdentifier(i)&&r.resolve(a)}return a}onInit(e,t){var n;const a=this.normalizeInstanceIdentifier(t),i=null!=(n=this.onInitCallbacks.get(a))?n:new Set;i.add(e),this.onInitCallbacks.set(a,i);const r=this.instances.get(a);return r&&e(r,a),()=>{i.delete(e)}}invokeOnInitCallbacks(e,t){const n=this.onInitCallbacks.get(t);if(n)for(const a of n)try{a(e,t)}catch(w7){}}getOrInitializeService({instanceIdentifier:e,options:t={}}){let n=this.instances.get(e);if(!n&&this.component&&(n=this.component.instanceFactory(this.container,{instanceIdentifier:(a=e,a===wc?void 0:a),options:t}),this.instances.set(e,n),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(n,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,n)}catch(w7){}var a;return n||null}normalizeInstanceIdentifier(e=wc){return this.component?this.component.multipleInstances?e:wc:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class Cc{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const t=this.getProvider(e.name);if(t.isComponentSet())throw new Error("Component ".concat(e.name," has already been registered with ").concat(this.name));t.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 t=new kc(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}
341/**
342 * @license
343 * Copyright 2017 Google LLC
344 *
345 * Licensed under the Apache License, Version 2.0 (the "License");
346 * you may not use this file except in compliance with the License.
347 * You may obtain a copy of the License at
348 *
349 *   http://www.apache.org/licenses/LICENSE-2.0
350 *
351 * Unless required by applicable law or agreed to in writing, software
352 * distributed under the License is distributed on an "AS IS" BASIS,
353 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
354 * See the License for the specific language governing permissions and
355 * limitations under the License.
356 */var Sc,Tc;(Tc=Sc||(Sc={}))[Tc.DEBUG=0]="DEBUG",Tc[Tc.VERBOSE=1]="VERBOSE",Tc[Tc.INFO=2]="INFO",Tc[Tc.WARN=3]="WARN",Tc[Tc.ERROR=4]="ERROR",Tc[Tc.SILENT=5]="SILENT";const Ac={debug:Sc.DEBUG,verbose:Sc.VERBOSE,info:Sc.INFO,warn:Sc.WARN,error:Sc.ERROR,silent:Sc.SILENT},Ec=Sc.INFO,Ic={[Sc.DEBUG]:"log",[Sc.VERBOSE]:"log",[Sc.INFO]:"info",[Sc.WARN]:"warn",[Sc.ERROR]:"error"},xc=(e,t,...n)=>{if(t<e.logLevel)return;const a=(new Date).toISOString(),i=Ic[t];if(!i)throw new Error("Attempted to log a message with an invali
356d logType (value: ".concat(t,")"));console[i]("[".concat(a,"]  ").concat(e.name,":"),...n)};class Nc{constructor(e){this.name=e,this._logLevel=Ec,this._logHandler=xc,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in Sc))throw new TypeError('Invalid value "'.concat(e,'" assigned to `logLevel`'));this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?Ac[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!=typeof e)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,Sc.DEBUG,...e),this._logHandler(this,Sc.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,Sc.VERBOSE,...e),this._logHandler(this,Sc.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,Sc.INFO,...e),this._logHandler(this,Sc.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,Sc.WARN,...e),this._logHandler(this,Sc.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,Sc.ERROR,...e),this._logHandler(this,Sc.ERROR,...e)}}let Pc,Mc;const Oc=new WeakMap,Rc=new WeakMap,Dc=new WeakMap,Lc=new WeakMap,Bc=new WeakMap;let Fc={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return Rc.get(e);if("objectStoreNames"===t)return e.objectStoreNames||Dc.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return jc(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function Vc(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(Mc||(Mc=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(Uc(this),t),jc(Oc.get(this))}:function(...t){return jc(e.apply(Uc(this),t))}:function(t,...n){const a=e.call(Uc(this),t,...n);return Dc.set(a,t.sort?t.sort():[t]),jc(a)}}function Xc(e){return"function"==typeof e?Vc(e):(e instanceof IDBTransaction&&function(e){if(Rc.has(e))return;const t=new Promise((t,n)=>{const a=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",r),e.removeEventListener("abort",r)},i=()=>{t(),a()},r=()=>{n(e.error||new DOMException("AbortError","AbortError")),a()};e.addEventListener("complete",i),e.addEventListener("error",r),e.addEventListener("abort",r)});Rc.set(e,t)}(e),t=e,(Pc||(Pc=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some(e=>t instanceof e)?new Proxy(e,Fc):e);var t}function jc(e){if(e instanceof IDBRequest)return function(e){const t=new Promise((t,n)=>{const a=()=>{e.removeEventListener("success",i),e.removeEventListener("error",r)},i=()=>{t(jc(e.result)),a()},r=()=>{n(e.error),a()};e.addEventListener("success",i),e.addEventListener("error",r)});return t.then(t=>{t instanceof IDBCursor&&Oc.set(t,e)}).catch(()=>{}),Bc.set(t,e),t}(e);if(Lc.has(e))return Lc.get(e);const t=Xc(e);return t!==e&&(Lc.set(e,t),Bc.set(t,e)),t}const Uc=e=>Bc.get(e);const Hc=["get","getKey","getAll","getAllKeys","count"],zc=["put","add","delete","clear"],Kc=new Map;function Wc(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(Kc.get(t))return Kc.get(t);const n=t.replace(/FromIndex$/,""),a=t!==n,i=zc.includes(n);if(!(n in(a?IDBIndex:IDBObjectStore).prototype)||!i&&!Hc.includes(n))return;const r=async function(e,...t){const r=this.transaction(e,i?"readwrite":"readonly");let o=r.store;return a&&(o=o.index(t.shift())),(await Promise.all([o[n](...t),i&&r.done]))[0]};return Kc.set(t,r),r}Fc=(e=>({...e,get:(t,n,a)=>Wc(t,n)||e.get(t,n,a),has:(t,n)=>!!Wc(t,n)||e.has(t,n)}))(Fc);
357/**
358 * @license
359 * Copyright 2019 Google LLC
360 *
361 * Licensed under the Apache License, Version 2.0 (the "License");
362 * you may not use this file except in compliance with the License.
363 * You may obtain a copy of the License at
364 *
365 *   http://www.apache.org/licenses/LICENSE-2.0
366 *
367 * Unless required by applicable law or agreed to in writing, softw
367are
368 * distributed under the License is distributed on an "AS IS" BASIS,
369 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
370 * See the License for the specific language governing permissions and
371 * limitations under the License.
372 */
373class Gc{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(e=>{if(function(e){const t=e.getComponent();return"VERSION"===(null==t?void 0:t.type)}(e)){const t=e.getImmediate();return"".concat(t.library,"/").concat(t.version)}return null}).filter(e=>e).join(" ")}}const qc="@firebase/app",$c="0.14.3",Yc=new Nc("@firebase/app"),Jc="@firebase/app-compat",Qc="@firebase/analytics-compat",Zc="@firebase/analytics",ed="@firebase/app-check-compat",td="@firebase/app-check",nd="@firebase/auth",ad="@firebase/auth-compat",id="@firebase/database",rd="@firebase/data-connect",od="@firebase/database-compat",sd="@firebase/functions",ld="@firebase/functions-compat",ud="@firebase/installations",cd="@firebase/installations-compat",dd="@firebase/messaging",hd="@firebase/messaging-compat",pd="@firebase/performance",fd="@firebase/performance-compat",md="@firebase/remote-config",vd="@firebase/remote-config-compat",gd="@firebase/storage",yd="@firebase/storage-compat",bd="@firebase/firestore",_d="@firebase/ai",wd="@firebase/firestore-compat",kd="firebase",Cd="[DEFAULT]",Sd={[qc]:"fire-core",[Jc]:"fire-core-compat",[Zc]:"fire-analytics",[Qc]:"fire-analytics-compat",[td]:"fire-app-check",[ed]:"fire-app-check-compat",[nd]:"fire-auth",[ad]:"fire-auth-compat",[id]:"fire-rtdb",[rd]:"fire-data-connect",[od]:"fire-rtdb-compat",[sd]:"fire-fn",[ld]:"fire-fn-compat",[ud]:"fire-iid",[cd]:"fire-iid-compat",[dd]:"fire-fcm",[hd]:"fire-fcm-compat",[pd]:"fire-perf",[fd]:"fire-perf-compat",[md]:"fire-rc",[vd]:"fire-rc-compat",[gd]:"fire-gcs",[yd]:"fire-gcs-compat",[bd]:"fire-fst",[wd]:"fire-fst-compat",[_d]:"fire-vertex","fire-js":"fire-js",[kd]:"fire-js-all"},Td=new Map,Ad=new Map,Ed=new Map;function Id(e,t){try{e.container.addComponent(t)}catch(w7){Yc.debug("Component ".concat(t.name," failed to register with FirebaseApp ").concat(e.name),w7)}}function xd(e){const t=e.name;if(Ed.has(t))return Yc.debug("There were multiple attempts to register component ".concat(t,".")),!1;Ed.set(t,e);for(const n of Td.values())Id(n,e);for(const n of Ad.values())Id(n,e);return!0}function Nd(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}function Pd(e){return null!=e&&void 0!==e.settings}
374/**
375 * @license
376 * Copyright 2019 Google LLC
377 *
378 * Licensed under the Apache License, Version 2.0 (the "License");
379 * you may not use this file except in compliance with the License.
380 * You may obtain a copy of the License at
381 *
382 *   http://www.apache.org/licenses/LICENSE-2.0
383 *
384 * Unless required by applicable law or agreed to in writing, software
385 * distributed under the License is distributed on an "AS IS" BASIS,
386 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
387 * See the License for the specific language governing permissions and
388 * limitations under the License.
389 */const Md=new ec("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
389d-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."});
390/**
391 * @license
392 * Copyright 2019 Google LLC
393 *
394 * Licensed under the Apache License, Version 2.0 (the "License");
395 * you may not use this file except in compliance with the License.
396 * You may obtain a copy of the License at
397 *
398 *   http://www.apache.org/licenses/LICENSE-2.0
399 *
400 * Unless required by applicable law or agreed to in writing, software
401 * distributed under the License is distributed on an "AS IS" BASIS,
402 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
403 * See the License for the specific language governing permissions and
404 * limitations under the License.
405 */
406class Od{constructor(e,t,n){this._isDeleted=!1,this._options={...e},this._config={...t},this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new _c("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 Md.create("app-deleted",{appName:this._name})}}
407/**
408 * @license
409 * Copyright 2019 Google LLC
410 *
411 * Licensed under the Apache License, Version 2.0 (the "License");
412 * you may not use this file except in compliance with the License.
413 * You may obtain a copy of the License at
414 *
415 *   http://www.apache.org/licenses/LICENSE-2.0
416 *
417 * Unless required by applicable law or agreed to in writing, software
418 * distributed under the License is distributed on an "AS IS" BASIS,
419 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
420 * See the License for the specific language governing permissions and
421 * limitations under the License.
422 */const Rd="12.3.0";function Dd(e,t={}){let n=e;if("object"!=typeof t){t={name:t}}const a={name:Cd,automaticDataCollectionEnabled:!0,...t},i=a.name;if("string"!=typeof i||!i)throw Md.create("bad-app-name",{appName:String(i)});if(n||(n=Vu()),!n)throw Md.create("no-options");const r=Td.get(i);if(r){if(uc(n,r.options)&&uc(a,r.config))return r;throw Md.create("duplicate-app",{appName:i})}const o=new Cc(i);for(const l of Ed.values())o.addComponent(l);const s=new Od(n,a,o);return Td.set(i,s),s}
422function Ld(e=Cd){const t=Td.get(e);if(!t&&e===Cd&&Vu())return Dd();if(!t)throw Md.create("no-app",{appName:e});return t}function Bd(e,t,n){var a;let i=null!=(a=Sd[e])?a:e;n&&(i+="-".concat(n));const r=i.match(/\s|\//),o=t.match(/\s|\//);if(r||o){const e=['Unable to register library "'.concat(i,'" with version "').concat(t,'":')];return r&&e.push('library name "'.concat(i,'" contains illegal characters (whitespace or "/")')),r&&o&&e.push("and"),o&&e.push('version name "'.concat(t,'" contains illegal characters (whitespace or "/")')),void Yc.warn(e.join(" "))}xd(new _c("".concat(i,"-version"),()=>({library:i,version:t}),"VERSION"))}
423/**
424 * @license
425 * Copyright 2021 Google LLC
426 *
427 * Licensed under the Apache License, Version 2.0 (the "License");
428 * you may not use this file except in compliance with the License.
429 * You may obtain a copy of the License at
430 *
431 *   http://www.apache.org/licenses/LICENSE-2.0
432 *
433 * Unless required by applicable law or agreed to in writing, software
434 * distributed under the License is distributed on an "AS IS" BASIS,
435 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
436 * See the License for the specific language governing permissions and
437 * limitations under the License.
438 */const Fd="firebase-heartbeat-store";let Vd=null;function Xd(){return Vd||(Vd=function(e,t,{blocked:n,upgrade:a,blocking:i,terminated:r}={}){const o=indexedDB.open(e,t),s=jc(o);return a&&o.addEventListener("upgradeneeded",e=>{a(jc(o.result),e.oldVersion,e.newVersion,jc(o.transaction),e)}),n&&o.addEventListener("blocked",e=>n(e.oldVersion,e.newVersion,e)),s.then(e=>{r&&e.addEventListener("close",()=>r()),i&&e.addEventListener("versionchange",e=>i(e.oldVersion,e.newVersion,e))}).catch(()=>{}),s}("firebase-heartbeat-database",1,{upgrade:(e,t)=>{if(0===t)try{e.createObjectStore(Fd)}catch(w7){console.warn(w7)}}}).catch(e=>{throw Md.create("idb-open",{originalErrorMessage:e.message})})),Vd}async function jd(e,t){try{const n=(await Xd()).transaction(Fd,"readwrite"),a=n.objectStore(Fd);await a.put(t,Ud(e)),await n.done}catch(w7){if(w7 instanceof Zu)Yc.warn(w7.message);else{const t=Md.create("idb-set",{originalErrorMessage:null==w7?void 0:w7.message});Yc.warn(t.message)}}}function Ud(e){return"".concat(e.name,"!").concat(e.options.appId)}
439/**
440 * @license
441 * Copyright 2021 Google LLC
442 *
443 * Licensed under the Apache License, Version 2.0 (the "License");
444 * you may not use this file except in compliance with the License.
445 * You may obtain a copy of the License at
446 *
447 *   http://www.apache.org/licenses/LICENSE-2.0
448 *
449 * Unless required by applicable law or agreed to in writing, software
450 * distributed under the License is distributed on an "AS IS" BASIS,
451 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
452 * See the License for the specific language governing permissions and
453 * limitations under the License.
454 */class Hd{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new Kd(t),this._heartbeatsCachePromise=this._storage.read().then(e=>(this._heartbeatsCache=e,e))}async triggerHeartbeat(){var e,t;try{const n=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),a=zd();if(null==(null==(e=this._heartbeatsCache)?void 0:e.heartbeats)&&(this._heartbeatsCache=await this._heartbeatsCachePromise,null==(null==(t=this._heartbeatsCache)?void 0:t.heartbeats)))return;if(this._heartbeatsCache.lastSentHeartbeatDate===a||this._heartbeatsCache.heartbeats.some(e=>e.date===a))return;if(this._heartbeatsCache.heartbeats.push({date:a,agent:n}),this._heartbeatsCache.heartbeats.length>30){const e=function(e){if(0===e.length)return-1;let t=0,n=e[0].date;for(let a=1;a<e.length;a++)e[a].date<n&&(n=e[a].date,t=a);return t}
455/**
456 * @license
457 * Copyright 2019 Google LLC
458 *
459 * Licensed under the Apache License, Version 2.0 (the "License");
460 * you may not use this file except in compliance with the License.
461 * You may obtain a copy of the License at
462 *
463 *   http://www.apache.org/licenses/LICENSE-2.0
464 *
465 * Unless required by applicable law or agreed to in writing, softw
465are
466 * distributed under the License is distributed on an "AS IS" BASIS,
467 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
468 * See the License for the specific language governing permissions and
469 * limitations under the License.
470 */(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(e,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(w7){Yc.warn(w7)}}async getHeartbeatsHeader(){var e;try{if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null==(null==(e=this._heartbeatsCache)?void 0:e.heartbeats)||0===this._heartbeatsCache.heartbeats.length)return"";const t=zd(),{heartbeatsToSend:n,unsentEntries:a}=function(e,t=1024){const n=[];let a=e.slice();for(const i of e){const e=n.find(e=>e.agent===i.agent);if(e){if(e.dates.push(i.date),Wd(n)>t){e.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),Wd(n)>t){n.pop();break}a=a.slice(1)}return{heartbeatsToSend:n,unsentEntries:a}}(this._heartbeatsCache.heartbeats),i=Nu(JSON.stringify({version:2,heartbeats:n}));return this._heartbeatsCache.lastSentHeartbeatDate=t,a.length>0?(this._heartbeatsCache.heartbeats=a,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}catch(w7){return Yc.warn(w7),""}}}function zd(){return(new Date).toISOString().substring(0,10)}class Kd{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!Qu()&&new Promise((e,t)=>{try{let n=!0;const a="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(a);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(a),e(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var e;t((null==(e=i.error)?void 0:e.message)||"")}}catch(Sae){t(Sae)}}).then(()=>!0).catch(()=>!1)}async read(){if(await this._canUseIndexedDBPromise){const e=await async function(e){try{const t=(await Xd()).transaction(Fd),n=await t.objectStore(Fd).get(Ud(e));return await t.done,n}catch(w7){if(w7 instanceof Zu)Yc.warn(w7.message);else{const t=Md.create("idb-get",{originalErrorMessage:null==w7?void 0:w7.message});Yc.warn(t.message)}}}(this.app);return(null==e?void 0:e.heartbeats)?e:{heartbeats:[]}}return{heartbeats:[]}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return jd(this.app,{lastSentHeartbeatDate:null!=(t=e.lastSentHeartbeatDate)?t:n.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return jd(this.app,{lastSentHeartbeatDate:null!=(t=e.lastSentHeartbeatDate)?t:n.lastSentHeartbeatDate,heartbeats:[...n.heartbeats,...e.heartbeats]})}}}function Wd(e){return Nu(JSON.stringify({version:2,heartbeats:e})).length}var Gd;Gd="",xd(new _c("platform-logger",e=>new Gc(e),"PRIVATE")),xd(new _c("heartbeat",e=>new Hd(e),"PRIVATE")),Bd(qc,$c,Gd),Bd(qc,$c,"esm2020"),Bd("fire-js","");var qd={};const $d="@firebase/database",Yd="1.1.0";
471/**
472 * @license
473 * Copyright 2019 Google LLC
474 *
475 * Licensed under the Apache License, Version 2.0 (the "License");
476 * you may not use this file except in compliance with the License.
477 * You may obtain a copy of the License at
478 *
479 *   http://www.apache.org/licenses/LICENSE-2.0
480 *
481 * Unless required by applicable law or agreed to in writing, software
482 * distributed under the License is distributed on an "AS IS" BASIS,
483 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
484 * See the License for the specific language governing permissions and
485 * limitations under the License.
486 */
487let Jd="";
488/**
489 * @license
490 * Copyright 2017 Google LLC
491 *
492 * Licensed under the Apache License, Version 2.0 (the "License");
493 * you may not use this file except in compliance with the License.
494 * You may obtain a copy of the License at
495 *
496 *   http://www.apache.org/licenses/LICENSE-2.0
497 *
498 * Unless required by applicable law or agreed to in writing, software
499 * distributed under the License is distributed on an "AS IS" BASIS,
500 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
501 * See the License for the specific language governing permissions and
502 * limitations under the License.
503 */
504class Qd{constructor(e){this.domStorage_=e,this.prefix_="firebase:"}set(e,t){null==t?this.domStorage_.removeItem(this.prefixedName_(e)):this.domStorage_.setItem(this.prefixedName_(e),ac(t))}get(e){const t=this.domStorage_.getItem(this.prefixedName_(e));return null==t?null:nc(t)}remove(e){this.domStorage_.removeItem(this.prefixedName_(e))}prefixedName_(e){return this.prefix_+e}toString(){return this.domStorage_.toString()}}
505/**
506 * @license
507 * Copyright 2017 Google LLC
508 *
509 * Licensed under the Apache License, Version 2.0 (the "License");
510 * you may not use this file except in compliance with the License.
511 * You may obtain a copy of the License at
512 *
513 *   http://www.apache.org/licenses/LICENSE-2.0
514 *
515 * Unless required by applicable law or agreed to in writing, software
516 * distributed under the License is distributed on an "AS IS" BASIS,
517 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
518 * See the License for the specific language governing permissions and
519 * limitations under the License.
520 */class Zd{constructor(){this.cache_={},this.isInMemoryStorage=!0}set(e,t){null==t?delete this.cache_[e]:this.cache_[e]=t}get(e){return rc(this.cache_,e)?this.cache_[e]:null}remove(e){delete this.cache_[e]}}
521/**
522 * @license
523 * Copyright 2017 Google LLC
524 *
525 * Licensed under the Apache License, Version 2.0 (the "License");
526 * you may not use this file except in compliance with the License.
527 * You may obtain a copy of the License at
528 *
529 *   http://www.apache.org/licenses/LICENSE-2.0
530 *
531 * Unless required by applicable law or agreed to in writing, software
532 * distributed under the License is distributed on an "AS IS" BASIS,
533 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
534 * See the License for the specific language governing permissions and
535 * limitations under the License.
536 */const eh=function(e){try{if("undefined"!=typeof window&&void 0!==window[e]){const t=window[e];return t.setItem("firebase:sentinel","cache"),t.removeItem("firebase:sentinel"),new Qd(t)}}catch(w7){}return new Zd},th=eh("localStorage"),nh=eh("sessionStorage"),ah=new Nc("@firebase/database"),ih=function(){let e=1;return function(){return e++}}(),rh=function(e){const t=function(e){const t=[];let n=0;for(let a=0;a<e.length;a++){let i=e.charCodeAt(a);if(i>=55296&&i<=56319){const t=i-55296;a++,Su(a<e.length,"Surrogate pair missing trail surrogate."),i=65536+(t<<10)+(e.charCodeAt(a)-56320)}i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):i<65536?(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t}(e),n=new fc;n.update(t);const a=n.digest();return Eu.encodeByteArray(a)},oh=function(...e){let t="";for(let n=0;n<e.length;n++){const a=e[n];Array.isArray(a)||a&&"object"==typeof a&&"number"==typeof a.length?t+=oh.apply(null,a):t+="object"==typeof a?ac(a):a,t+=" "}return t};let sh=null,lh=!0;const uh=function(...e){if(!0===lh&&(lh=!1,null===sh&&!0===nh.get("logging_enabled")&&(Su(!0,"Can't turn on custom loggers persistently."),ah.logLevel=Sc.VERBOSE,sh=ah.log.bind(ah))),sh){const t=oh.apply(null,e);sh(t)}},ch=function(e){return function(...t){uh(e,...t)}},dh=function(...e){const t="FIREBASE INTERNAL ERROR: "+oh(...e);ah.error(t)},hh=function(...e){const t="FIREBASE FATAL ERROR: ".concat(oh(...e));throw ah.error(t),new Error(t)},ph=function(...e){const t="FIREBASE WARNING: "+oh(...e);ah.warn(t)},fh=function(e){return"number"==typeof e&&(e!=e||e===Number.POSITIVE_INFINITY||e===Number.NEGATIVE_INFINITY)},mh="[MIN_NAME]",vh="[MAX_NAME]",gh=function(e,t){if(e===t)return 0;if(e===mh||t===vh)return-1;if(t===mh||e===vh)return 1;{const n=Th(e),a=Th(t);return null!==n?null!==a?n-a===0?e.length-t.length:n-a:-1:null!==a?1:e<t?-1:1}},yh=function(e,t){return e===t?0:e<t?-1:1},bh=function(e,t){if(t&&e in t)return t[e];throw new Error("Missing required key ("+e+") in object: "+ac(t))},_h=function(e){if("object"!=typeof e||null===e)return ac(e);const t=[];for(const a in e)t.push(a);t.sort();let n="{";for(let a=0;a<t.length;a++)0!==a&&(n+=","),n+=ac(t[a]),n+=":",n+=_h(e[t[a]]);return n+="}",n},wh=function(e,t){const n=e.length;if(n<=t)return[e];const a=[];for(let i=0;i<n;i+=t)i+t>n?a.push(e.substring(i,n)):a.push(e.substring(i,i+t));return a};function kh(e,t){for(const n in e)e.hasOwnProperty(n)&&t(n,e[n])}const Ch=function(e){Su(!fh(e),"Invalid JSON number");const t=1023;let n,a,i,r,o;0===e?(a=0,i=0,n=1/e==-1/0?1:0):(n=e<0,(e=Math.abs(e))>=Math.pow(2,-1022)?(r=Math.min(Math.floor(Math.log(e)/Math.LN2),t),a=r+t,i=Math.round(e*Math.pow(2,52-r)-Math.pow(2,52))):(a=0,i=Math.round(e/Math.pow(2,-1074))));const s=[];for(o=52;o;o-=1)s.push(i%2?1:0),i=Math.floor(i/2);for(o=11;o;o-=1)s.push(a%2?1:0),a=Math.floor(a/2);s.push(n?1:0),s.reverse();const l=s.join("");let u="";for(o=0;o<64;o+=8){let e=parseInt(l.substr(o,8),2).toString(16);1===e.length&&(e="0"+e),u+=e}return u.toLowerCase()};const Sh=new RegExp("^-?(0*)\\d{1,10}$"),Th=function(e){if(Sh.test(e)){const t=Number(e);if(t>=-2147483648&&t<=2147483647)return t}return null},Ah=function(e){try{e()}catch(w7){setTimeout(()=>{const t=w7.stack||"";throw ph("Exception was thrown by user callback.",t),w7},Math.floor(0))}},Eh=function(e,t){const n=setTimeout(e,t);return"number"==typeof n&&"undefined"!=typeof Deno&&Deno.unrefTimer?Deno.unrefTimer(n):"object"==typeof n&&n.unref&&n.unref(),n};
537/**
538 * @license
539 * Copyright 2021 Google LLC
540 *
541 * Licensed under the Apache License, Version 2.0 (the "License");
542 * you may not use this file except in compliance with the License.
543 * You may obtain a copy of the License at
544 *
545 *   http://www.apache.org/licenses/LICENSE-2.0
546 *
547 * Unless required by applicable law or agreed to in writing, software
548 * distributed under the License is distributed on an "AS IS" BASIS,
549 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
550 * See the License for the specific language governing permissions and
551 * limitations under the License.
552 */
553class Ih{constructor(e,t){this.appCheckProvider=t,this.appName=e.name,Pd(e)&&e.settings.appCheckToken&&(this.serverAppAppCheckToken=e.settings.appCheckToken),this.appCheck=null==t?void 0:t.getImmediate({optional:!0}),this.appCheck||null==t||t.get().then(e=>this.appCheck=e)}getToken(e){if(this.serverAppAppCheckToken){if(e)throw new Error("Attempted reuse of `FirebaseServerApp.appCheckToken` after previous usage failed.");return Promise.resolve({token:this.serverAppAppCheckToken})}return this.appCheck?this.appCheck.getToken(e):new Promise((t,n)=>{setTimeout(()=>{this.appCheck?this.getToken(e).then(t,n):t(null)},0)})}addTokenChangeListener(e){var t;null==(t=this.appCheckProvider)||t.get().then(t=>t.addTokenListener(e))}notifyForInvalidToken(){ph('Provided AppCheck credentials for the app named "'.concat(this.appName,'" are invalid. This usually indicates your app was not initialized correctly.'))}}
554/**
555 * @license
556 * Copyright 2017 Google LLC
557 *
558 * Licensed under the Apache License, Version 2.0 (the "License");
559 * you may not use this file except in compliance with the License.
560 * You may obtain a copy of the License at
561 *
562 *   http://www.apache.org/licenses/LICENSE-2.0
563 *
564 * Unless required by applicable law or agreed to in writing, software
565 * distributed under the License is distributed on an "AS IS" BASIS,
566 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
567 * See the License for the specific language governing permissions and
568 * limitations under the License.
569 */class xh{constructor(e,t,n){this.appName_=e,this.firebaseOptions_=t,this.authProvider_=n,this.auth_=null,this.auth_=n.getImmediate({optional:!0}),this.auth_||n.onInit(e=>this.auth_=e)}getToken(e){return this.auth_?this.auth_.getToken(e).catch(e=>e&&"auth/token-not-initialized"===e.code?(uh("Got auth/token-not-initialized error.  Treating as null token."),null):Promise.reject(e)):new Promise((t,n)=>{setTimeout(()=>{this.auth_?this.getToken(e).then(t,n):t(null)},0)})}addTokenChangeListener(e){this.auth_?this.auth_.addAuthTokenListener(e):this.authProvider_.get().then(t=>t.addAuthTokenListener(e))}removeTokenChangeListener(e){this.authProvider_.get().then(t=>t.removeAuthTokenListener(e))}notifyForInvalidToken(){let e='Provided authentication credentials for the app named "'+this.appName_+'" are invalid. This usually indicates your app was not initialized correctly. ';"credential"in this.firebaseOptions_?e+='Make sure the "credential" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':"serviceAccount"in this.firebaseOptions_?e+='Make sure the "serviceAccount" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':e+='Make sure the "apiKey" and "databaseURL" properties provided to initializeApp() match the values provided for your app at https://console.firebase.google.com/.',ph(e)}}class Nh{constructor(e){this.accessToken=e}getToken(e){return Promise.resolve({accessToken:this.accessToken})}addTokenChangeListener(e){e(this.accessToken)}removeTokenChangeListener(e){}notifyForInvalidToken(){}}Nh.OWNER="owner";
570/**
571 * @license
572 * Copyright 2017 Google LLC
573 *
574 * Licensed under the Apache License, Version 2.0 (the "License");
575 * you may not use this file except in compliance with the License.
576 * You may obtain a copy of the License at
577 *
578 *   http://www.apache.org/licenses/LICENSE-2.0
579 *
580 * Unless required by applicable law or agreed to in writing, software
581 * distributed under the License is distributed on an "AS IS" BASIS,
582 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
583 * See the License for the specific language governing permissions and
584 * limitations under the License.
585 */
586const Ph=/(console\.firebase|firebase-console-\w+\.corp|firebase\.corp)\.google\.com/,Mh="ac",Oh="websocket",Rh="long_polling";
587/**
588 * @license
589 * Copyright 2017 Google LLC
590 *
591 * Licensed under the Apache License, Version 2.0 (the "License");
592 * you may not use this file except in compliance with the License.
593 * You may obtain a copy of the License at
594 *
595 *   http://www.apache.org/licenses/LICENSE-2.0
596 *
597 * Unless required by applicable law or agreed to in writing, software
598 * distributed under the License is distributed on an "AS IS" BASIS,
599 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
600 * See the License for the specific language governing permissions and
601 * limitations under the License.
602 */
603class Dh{constructor(e,t,n,a,i=!1,r="",o=!1,s=!1,l=null){this.secure=t,this.namespace=n,this.webSocketOnly=a,this.nodeAdmin=i,this.persistenceKey=r,this.includeNamespaceInQueryParams=o,this.isUsingEmulator=s,this.emulatorOptions=l,this._host=e.toLowerCase(),this._domain=this._host.substr(this._host.indexOf(".")+1),this.internalHost=th.get("host:"+e)||this._host}isCacheableHost(){return"s-"===this.internalHost.substr(0,2)}isCustomHost(){return"firebaseio.com"!==this._domain&&"firebaseio-demo.com"!==this._domain}get host(){return this._host}set host(e){e!==this.internalHost&&(this.internalHost=e,this.isCacheableHost()&&th.set("host:"+this._host,this.internalHost))}toString(){let e=this.toURLString();return this.persistenceKey&&(e+="<"+this.persistenceKey+">"),e}toURLString(){const e=this.secure?"https://":"http://",t=this.includeNamespaceInQueryParams?"?ns=".concat(this.namespace):"";return"".concat(e).concat(this.host,"/").concat(t)}}function Lh(e,t,n){let a;if(Su("string"==typeof t,"typeof type must == string"),Su("object"==typeof n,"typeof params must == object"),t===Oh)a=(e.secure?"wss://":"ws://")+e.internalHost+"/.ws?";else{if(t!==Rh)throw new Error("Unknown connection type: "+t);a=(e.secure?"https://":"http://")+e.internalHost+"/.lp?"}(function(e){return e.host!==e.internalHost||e.isCustomHost()||e.includeNamespaceInQueryParams})(e)&&(n.ns=e.namespace);const i=[];return kh(n,(e,t)=>{i.push(e+"="+t)}),a+i.join("&")}
604/**
605 * @license
606 * Copyright 2017 Google LLC
607 *
608 * Licensed under the Apache License, Version 2.0 (the "License");
609 * you may not use this file except in compliance with the License.
610 * You may obtain a copy of the License at
611 *
612 *   http://www.apache.org/licenses/LICENSE-2.0
613 *
614 * Unless required by applicable law or agreed to in writing, software
615 * distributed under the License is distributed on an "AS IS" BASIS,
616 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
617 * See the License for the specific language governing permissions and
618 * limitations under the License.
619 */class Bh{constructor(){this.counters_={}}incrementCounter(e,t=1){rc(this.counters_,e)||(this.counters_[e]=0),this.counters_[e]+=t}get(){return Mu(this.counters_)}}
620/**
621 * @license
622 * Copyright 2017 Google LLC
623 *
624 * Licensed under the Apache License, Version 2.0 (the "License");
625 * you may not use this file except in compliance with the License.
626 * You may obtain a copy of the License at
627 *
628 *   http://www.apache.org/licenses/LICENSE-2.0
629 *
630 * Unless required by applicable law or agreed to in writing, software
631 * distributed under the License is distributed on an "AS IS" BASIS,
632 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
633 * See the License for the specific language governing permissions and
634 * limitations under the License.
635 */const Fh={},Vh={};function Xh(e){const t=e.toString();return Fh[t]||(Fh[t]=new Bh),Fh[t]}
636/**
637 * @license
638 * Copyright 2017 Google LLC
639 *
640 * Licensed under the Apache License, Version 2.0 (the "License");
641 * you may not use this file except in compliance with the License.
642 * You may obtain a copy of the License at
643 *
644 *   http://www.apache.org/licenses/LICENSE-2.0
645 *
646 * Unless required by applicable law or agreed to in writing, software
647 * distributed under the License is distributed on an "AS IS" BASIS,
648 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
649 * See the License for the specific language governing permissions and
650 * limitations under the License.
651 */
652class jh{constructor(e){this.onMessage_=e,this.pendingResponses=[],this.currentResponseNum=0,this.closeAfterResponse=-1,this.onClose=null}closeAfter(e,t){this.closeAfterResponse=e,this.onClose=t,this.closeAfterResponse<this.currentResponseNum&&(this.onClose(),this.onClose=null)}handleResponse(e,t){for(this.pendingResponses[e]=t;this.pendingResponses[this.currentResponseNum];){const e=this.pendingResponses[this.currentResponseNum];delete this.pendingResponses[this.currentResponseNum];for(let t=0;t<e.length;++t)e[t]&&Ah(()=>{this.onMessage_(e[t])});if(this.currentResponseNum===this.closeAfterResponse){this.onClose&&(this.onClose(),this.onClose=null);break}this.currentResponseNum++}}}
653/**
654 * @license
655 * Copyright 2017 Google LLC
656 *
657 * Licensed under the Apache License, Version 2.0 (the "License");
658 * you may not use this file except in compliance with the License.
659 * You may obtain a copy of the License at
660 *
661 *   http://www.apache.org/licenses/LICENSE-2.0
662 *
663 * Unless required by applicable law or agreed to in writing, software
664 * distributed under the License is distributed on an "AS IS" BASIS,
665 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
666 * See the License for the specific language governing permissions and
667 * limitations under the License.
668 */const Uh="start";class Hh{constructor(e,t,n,a,i,r,o){this.connId=e,this.repoInfo=t,this.applicationId=n,this.appCheckToken=a,this.authToken=i,this.transportSessionId=r,this.lastSessionId=o,this.bytesSent=0,this.bytesReceived=0,this.everConnected_=!1,this.log_=ch(e),this.stats_=Xh(t),this.urlFn=e=>(this.appCheckToken&&(e[Mh]=this.appCheckToken),Lh(t,Rh,e))}open(e,t){this.curSegmentNum=0,this.onDisconnect_=t,this.myPacketOrderer=new jh(e),this.isClosed_=!1,this.connectTimeoutTimer_=setTimeout(()=>{this.log_("Timed out trying to connect."),this.onClosed_(),this.connectTimeoutTimer_=null},Math.floor(3e4)),function(e){if("complete"===document.readyState)e();else{let t=!1;const n=function(){document.body?t||(t=!0,e()):setTimeout(n,Math.floor(10))};document.addEventListener?(document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1)):document.attachEvent&&(document.attachEvent("onreadystatechange",()=>{"complete"===document.readyState&&n()}),window.attachEvent("onload",n))}}(()=>{if(this.isClosed_)return;this.scriptTagHolder=new zh((...e)=>{const[t,n,a,i,r]=e;if(this.incrementIncomingBytes_(e),this.scriptTagHolder)if(this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null),this.everConnected_=!0,t===Uh)this.id=n,this.password=a;else{if("close"!==t)throw new Error("Unrecognized command received: "+t);n?(this.scriptTagHolder.sendNewPolls=!1,this.myPacketOrderer.closeAfter(n,()=>{this.onClosed_()})):this.onClosed_()}},(...e)=>{const[t,n]=e;this.incrementIncomingBytes_(e),this.myPacketOrderer.handleResponse(t,n)},()=>{this.onClosed_()},this.urlFn);const e={};e[Uh]="t",e.ser=Math.floor(1e8*Math.random()),this.scriptTagHolder.uniqueCallbackIdentifier&&(e.cb=this.scriptTagHolder.uniqueCallbackIdentifier),e.v="5",this.transportSessionId&&(e.s=this.transportSessionId),this.lastSessionId&&(e.ls=this.lastSessionId),this.applicationId&&(e.p=this.applicationId),this.appCheckToken&&(e[Mh]=this.appCheckToken),"undefined"!=typeof location&&location.hostname&&Ph.test(location.hostname)&&(e.r="f");const t=this.urlFn(e);this.log_("Connecting via long-poll to "+t),this.scriptTagHolder.addTag(t,()=>{})})}start(){this.scriptTagHolder.startLongPoll(this.id,this.password),this.addDisconnectPingFrame(this.id,this.password)}static forceAllow(){Hh.forceAllow_=!0}static forceDisallow(){Hh.forceDisallow_=!0}static isAvailable(){return!!Hh.forceAllow_||!(Hh.forceDisallow_||"undefined"==typeof document||null==document.createElement||"object"==typeof window&&window.chrome&&window.chrome.extension&&!/^chrome/.test(window.location.href)||"object"==typeof Windows&&"object"==typeof Windows.UI)}markConnectionHealthy(){}shutdown_(){this.isClosed_=!0,this.scriptTagHolder&&(this.scriptTagHolder.close(),this.scriptTagHolder=null),this.myDisconnFrame&&(document.body.removeChild(this.myDisconnFrame),this.myDisconnFrame=null),this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null)}onClosed_(){this.isClosed_||(this.log_("Longpoll is closing itself"),this.shutdown_(),this.onDisconnect_&&(this.onDisconnect_(this.everConnected_),this.onDisconnect_=null))}close(){this.isClosed_||(this.log_("Longpoll is being closed."),this.shutdown_())}send(e){const t=ac(e);this.bytesSent+=t.length,this.stats_.incrementCounter("bytes_sent",t.length);const n=xu(t),a=wh(n,1840);for(let i=0;i<a.length;i++)this.scriptTagHolder.enqueueSegment(this.curSegmentNum,a.length,a[i]),this.curSegmentNum++}addDisconnectPingFrame(e,t){this.myDisconnFrame=document.createElement("iframe");const n={dframe:"t"};n.id=e,n.pw=t,this.myDisconnFrame.src=this.urlFn(n),this.myDisconnFrame.style.display="none",document.body.appendChild(this.myDisconnFrame)}incrementIncomingBytes_(e){const t=ac(e).length;this.bytesReceived+=t,this.stats_.incrementCounter("bytes_received",t)}}class zh{constructor(e,t,n,a){this.onDisconnect=n,this.urlFn=a,this.outstandingRequests=new Set,this.pendingSegs=[],this.currentSerial=Math.floor(1e8*Math.random()),this.sendNewPolls=!0;{this.uniqueCallbackIdentifier=ih(),window["pLPCommand"+this.uniqueCallbackIdentifier]=e,window["pRTLPCB"+this.uniqueCallbackIdentifier]=t,this.myIFrame=zh.createIFrame_();let n="";if(this.myIFrame.src&&"javascript:"===this.myIFrame.src.substr(0,11)){n='<script>document.domain="'+document.domain+'";<\/script>'}const a="<html><body>"+n+"</body></html>";
vendor: 6,611 bytes, lines 668-689
668try{this.myIFrame.doc.open(),this.myIFrame.doc.write(a),this.myIFrame.doc.close()}catch(w7){uh("frame writing exception"),w7.stack&&uh(w7.stack),uh(w7)}}}static createIFrame_(){const e=document.createElement("iframe");if(e.style.display="none",!document.body)throw"Document body has not initialized. Wait to initialize Firebase until after the document is ready.";document.body.appendChild(e);try{e.contentWindow.document||uh("No IE domain setting required")}catch(w7){const n=document.domain;e.src="javascript:void((function(){document.open();document.domain='"+n+"';document.close();})())"}return e.contentDocument?e.doc=e.contentDocument:e.contentWindow?e.doc=e.contentWindow.document:e.document&&(e.doc=e.document),e}close(){this.alive=!1,this.myIFrame&&(this.myIFrame.doc.body.textContent="",setTimeout(()=>{null!==this.myIFrame&&(document.body.removeChild(this.myIFrame),this.myIFrame=null)},Math.floor(0)));const e=this.onDisconnect;e&&(this.onDisconnect=null,e())}startLongPoll(e,t){for(this.myID=e,this.myPW=t,this.alive=!0;this.newRequest_(););}newRequest_(){if(this.alive&&this.sendNewPolls&&this.outstandingRequests.size<(this.pendingSegs.length>0?2:1)){this.currentSerial++;const e={};e.id=this.myID,e.pw=this.myPW,e.ser=this.currentSerial;let t=this.urlFn(e),n="",a=0;for(;this.pendingSegs.length>0;){if(!(this.pendingSegs[0].d.length+30+n.length<=1870))break;{const e=this.pendingSegs.shift();n=n+"&seg"+a+"="+e.seg+"&ts"+a+"="+e.ts+"&d"+a+"="+e.d,a++}}return t+=n,this.addLongPollTag_(t,this.currentSerial),!0}return!1}enqueueSegment(e,t,n){this.pendingSegs.push({seg:e,ts:t,d:n}),this.alive&&this.newRequest_()}addLongPollTag_(e,t){this.outstandingRequests.add(t);const n=()=>{this.outstandingRequests.delete(t),this.newRequest_()},a=setTimeout(n,Math.floor(25e3));this.addTag(e,()=>{clearTimeout(a),n()})}addTag(e,t){setTimeout(()=>{try{if(!this.sendNewPolls)return;const n=this.myIFrame.doc.createElement("script");n.type="text/javascript",n.async=!0,n.src=e,n.onload=n.onreadystatechange=function(){const e=n.readyState;e&&"loaded"!==e&&"complete"!==e||(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),t())},n.onerror=()=>{uh("Long-poll script failed to load: "+e),this.sendNewPolls=!1,this.close()},this.myIFrame.doc.body.appendChild(n)}catch(w7){}},Math.floor(1))}}
669/**
670 * @license
671 * Copyright 2017 Google LLC
672 *
673 * Licensed under the Apache License, Version 2.0 (the "License");
674 * you may not use this file except in compliance with the License.
675 * You may obtain a copy of the License at
676 *
677 *   http://www.apache.org/licenses/LICENSE-2.0
678 *
679 * Unless required by applicable law or agreed to in writing, software
680 * distributed under the License is distributed on an "AS IS" BASIS,
681 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
682 * See the License for the specific language governing permissions and
683 * limitations under the License.
684 */let Kh=null;"undefined"!=typeof MozWebSocket?Kh=MozWebSocket:"undefined"!=typeof WebSocket&&(Kh=WebSocket);class Wh{constructor(e,t,n,a,i,r,o){this.connId=e,this.applicationId=n,this.appCheckToken=a,this.authToken=i,this.keepaliveTimer=null,this.frames=null,this.totalFrames=0,this.bytesSent=0,this.bytesReceived=0,this.log_=ch(this.connId),this.stats_=Xh(t),this.connURL=Wh.connectionURL_(t,r,o,a,n),this.nodeAdmin=t.nodeAdmin}static connectionURL_(e,t,n,a,i){const r={v:"5"};return"undefined"!=typeof location&&location.hostname&&Ph.test(location.hostname)&&(r.r="f"),t&&(r.s=t),n&&(r.ls=n),a&&(r[Mh]=a),i&&(r.p=i),Lh(e,Oh,r)}open(e,t){this.onDisconnect=t,this.onMessage=e,this.log_("Websocket connecting to "+this.connURL),this.everConnected_=!1,th.set("previous_websocket_failure",!0);try{let e;this.mySock=new Kh(this.connURL,[],e)}catch(w7){this.log_("Error instantiating WebSocket.");const t=w7.message||w7.data;return t&&this.log_(t),void this.onClosed_()}this.mySock.onopen=()=>{this.log_("Websocket connected."),this.everConnected_=!0},this.mySock.onclose=()=>{this.log_("Websocket connection was disconnected."),this.mySock=null,this.onClosed_()},this.mySock.onmessage=e=>{this.handleIncomingFrame(e)},this.mySock.onerror=e=>{this.log_("WebSocket error.  Closing connection.");const t=e.message||e.data;t&&this.log_(t),this.onClosed_()}}start(){}static forceDisallow(){Wh.forceDisallow_=!0}static isAvailable(){let e=!1;if("undefined"!=typeof navigator&&navigator.userAgent){const t=/Android ([0-9]{0,}\.[0-9]{0,})/,n=navigator.userAgent.match(t);n&&n.length>1&&parseFloat(n[1])<4.4&&(e=!0)}return!e&&null!==Kh&&!Wh.forceDisallow_}static previouslyFailed(){return th.isInMemoryStorage||!0===th.get("previous_websocket_failure")}markConnectionHealthy(){th.remove("previous_websocket_failure")}appendFrame_(e){if(this.frames.push(e),this.frames.length===this.totalFrames){const e=this.frames.join("");this.frames=null;const t=nc(e);this.onMessage(t)}}handleNewFrameCount_(e){this.totalFrames=e,this.frames=[]}extractFrameCount_(e){if(Su(null===this.frames,"We already have a frame buffer"),e.length<=6){const t=Number(e);if(!isNaN(t))return this.handleNewFrameCount_(t),null}return this.handleNewFrameCount_(1),e}handleIncomingFrame(e){if(null===this.mySock)return;const t=e.data;if(this.bytesReceived+=t.length,this.stats_.incrementCounter("bytes_received",t.length),this.resetKeepAlive(),null!==this.frames)this.appendFrame_(t);else{const e=this.extractFrameCount_(t);null!==e&&this.appendFrame_(e)}}send(e){this.resetKeepAlive();const t=ac(e);this.bytesSent+=t.length,this.stats_.incrementCounter("bytes_sent",t.length);const n=wh(t,16384);n.length>1&&this.sendString_(String(n.length));for(let a=0;a<n.length;a++)this.sendString_(n[a])}shutdown_(){this.isClosed_=!0,this.keepaliveTimer&&(clearInterval(this.keepaliveTimer),this.keepaliveTimer=null),this.mySock&&(this.mySock.close(),this.mySock=null)}onClosed_(){this.isClosed_||(this.log_("WebSocket is closing itself"),this.shutdown_(),this.onDisconnect&&(this.onDisconnect(this.everConnected_),this.onDisconnect=null))}close(){this.isClosed_||(this.log_("WebSocket is being closed"),this.shutdown_())}resetKeepAlive(){clearInterval(this.keepaliveTimer),this.keepaliveTimer=setInterval(()=>{this.mySock&&this.sendString_("0"),this.resetKeepAlive()},Math.floor(45e3))}sendString_(e){try{this.mySock.send(e)}catch(w7){this.log_("Exception thrown from WebSocket.send():",w7.message||w7.data,"Closing connection."),setTimeout(this.onClosed_.bind(this),0)}}}Wh.responsesRequiredToBeHealthy=2,Wh.healthyTimeout=3e4;
685/**
686 * @license
687 * Copyright 2017 Google LLC
688 *
689 * Licensed under the Apache License, Version 2.0 (the "License");
690 * you may not use this file except in compliance with the License.
691 * You may obtain a copy of the License at
692 *
693 *   http://www.apache.org/licenses/LICENSE-2.0
694 *
695 * Unless required by applicable law or agreed to in writing, software
696 * distributed under the License is distributed on an "AS IS" BASIS,
697 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
698 * See the License for the specific language governing permissions and
699 * limitations under the License.
700 */
701class Gh{static get ALL_TRANSPORTS(){return[Hh,Wh]}static get IS_TRANSPORT_INITIALIZED(){return this.globalTransportInitialized_}constructor(e){this.initTransports_(e)}initTransports_(e){const t=Wh&&Wh.isAvailable();let n=t&&!Wh.previouslyFailed();if(e.webSocketOnly&&(t||ph("wss:// URL used, but browser isn't known to support websockets.  Trying anyway."),n=!0),n)this.transports_=[Wh];else{const e=this.transports_=[];for(const t of Gh.ALL_TRANSPORTS)t&&t.isAvailable()&&e.push(t);Gh.globalTransportInitialized_=!0}}initialTransport(){if(this.transports_.length>0)return this.transports_[0];throw new Error("No transports available")}upgradeTransport(){return this.transports_.length>1?this.transports_[1]:null}}Gh.globalTransportInitialized_=!1;class qh{constructor(e,t,n,a,i,r,o,s,l,u){this.id=e,this.repoInfo_=t,this.applicationId_=n,this.appCheckToken_=a,this.authToken_=i,this.onMessage_=r,this.onReady_=o,this.onDisconnect_=s,this.onKill_=l,this.lastSessionId=u,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=ch("c:"+this.id+":"),this.transportManager_=new Gh(t),this.log_("Connection created"),this.start_()}start_(){const e=this.transportManager_.initialTransport();this.conn_=new e(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,null,this.lastSessionId),this.primaryResponsesRequired_=e.responsesRequiredToBeHealthy||0;const t=this.connReceiver_(this.conn_),n=this.disconnReceiver_(this.conn_);this.tx_=this.conn_,this.rx_=this.conn_,this.secondaryConn_=null,this.isHealthy_=!1,setTimeout(()=>{this.conn_&&this.conn_.open(t,n)},Math.floor(0));const a=e.healthyTimeout||0;a>0&&(this.healthyTimeout_=Eh(()=>{this.healthyTimeout_=null,this.isHealthy_||(this.conn_&&this.conn_.bytesReceived>102400?(this.log_("Connection exceeded healthy timeout but has received "+this.conn_.bytesReceived+" bytes.  Marking connection healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()):this.conn_&&this.conn_.bytesSent>10240?this.log_("Connection exceeded healthy timeout but has sent "+this.conn_.bytesSent+" bytes.  Leaving connection alive."):(this.log_("Closing unhealthy connection after timeout."),this.close()))},Math.floor(a)))}nextTransportId_(){return"c:"+this.id+":"+this.connectionCount++}disconnReceiver_(e){return t=>{e===this.conn_?this.onConnectionLost_(t):e===this.secondaryConn_?(this.log_("Secondary connection lost."),this.onSecondaryConnectionLost_()):this.log_("closing an old connection")}}connReceiver_(e){return t=>{2!==this.state_&&(e===this.rx_?this.onPrimaryMessageReceived_(t):e===this.secondaryConn_?this.onSecondaryMessageReceived_(t):this.log_("message on old connection"))}}sendRequest(e){const t={t:"d",d:e};this.sendData_(t)}tryCleanupConnection(){this.tx_===this.secondaryConn_&&this.rx_===this.secondaryConn_&&(this.log_("cleaning up and promoting a connection: "+this.secondaryConn_.connId),this.conn_=this.secondaryConn_,this.secondaryConn_=null)}onSecondaryControl_(e){if("t"in e){const t=e.t;"a"===t?this.upgradeIfSecondaryHealthy_():"r"===t?(this.log_("Got a reset on secondary, closing it"),this.secondaryConn_.close(),this.tx_!==this.secondaryConn_&&this.rx_!==this.secondaryConn_||this.close()):"o"===t&&(this.log_("got pong on secondary."),this.secondaryResponsesRequired_--,this.upgradeIfSecondaryHealthy_())}}onSecondaryMessageReceived_(e){const t=bh("t",e),n=bh("d",e);if("c"===t)this.onSecondaryControl_(n);else{if("d"!==t)throw new Error("Unknown protocol layer: "+t);this.pendingDataMessages.push(n)}}upgradeIfSecondaryHealthy_(){this.secondaryResponsesRequired_<=0?(this.log_("Secondary connection is healthy."),this.isHealthy_=!0,this.secondaryConn_.markConnectionHealthy(),this.proceedWithUpgrade_()):(this.log_("sending ping on secondary."),this.secondaryConn_.send({t
vendor: 4,257 bytes, lines 701-712
701:"c",d:{t:"p",d:{}}}))}proceedWithUpgrade_(){this.secondaryConn_.start(),this.log_("sending client ack on secondary"),this.secondaryConn_.send({t:"c",d:{t:"a",d:{}}}),this.log_("Ending transmission on primary"),this.conn_.send({t:"c",d:{t:"n",d:{}}}),this.tx_=this.secondaryConn_,this.tryCleanupConnection()}onPrimaryMessageReceived_(e){const t=bh("t",e),n=bh("d",e);"c"===t?this.onControl_(n):"d"===t&&this.onDataMessage_(n)}onDataMessage_(e){this.onPrimaryResponse_(),this.onMessage_(e)}onPrimaryResponse_(){this.isHealthy_||(this.primaryResponsesRequired_--,this.primaryResponsesRequired_<=0&&(this.log_("Primary connection is healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()))}onControl_(e){const t=bh("t",e);if("d"in e){const n=e.d;if("h"===t){const e={...n};this.repoInfo_.isUsingEmulator&&(e.h=this.repoInfo_.host),this.onHandshake_(e)}else if("n"===t){this.log_("recvd end transmission on primary"),this.rx_=this.secondaryConn_;for(let e=0;e<this.pendingDataMessages.length;++e)this.onDataMessage_(this.pendingDataMessages[e]);this.pendingDataMessages=[],this.tryCleanupConnection()}else"s"===t?this.onConnectionShutdown_(n):"r"===t?this.onReset_(n):"e"===t?dh("Server Error: "+n):"o"===t?(this.log_("got pong on primary."),this.onPrimaryResponse_(),this.sendPingOnPrimaryIfNecessary_()):dh("Unknown control packet command: "+t)}}onHandshake_(e){const t=e.ts,n=e.v,a=e.h;this.sessionId=e.s,this.repoInfo_.host=a,0===this.state_&&(this.conn_.start(),this.onConnectionEstablished_(this.conn_,t),"5"!==n&&ph("Protocol version mismatch detected"),this.tryStartUpgrade_())}tryStartUpgrade_(){const e=this.transportManager_.upgradeTransport();e&&this.startUpgrade_(e)}startUpgrade_(e){this.secondaryConn_=new e(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,this.sessionId),this.secondaryResponsesRequired_=e.responsesRequiredToBeHealthy||0;const t=this.connReceiver_(this.secondaryConn_),n=this.disconnReceiver_(this.secondaryConn_);this.secondaryConn_.open(t,n),Eh(()=>{this.secondaryConn_&&(this.log_("Timed out trying to upgrade."),this.secondaryConn_.close())},Math.floor(6e4))}onReset_(e){this.log_("Reset packet received.  New host: "+e),this.repoInfo_.host=e,1===this.state_?this.close():(this.closeConnections_(),this.start_())}onConnectionEstablished_(e,t){this.log_("Realtime connection established."),this.conn_=e,this.state_=1,this.onReady_&&(this.onReady_(t,this.sessionId),this.onReady_=null),0===this.primaryResponsesRequired_?(this.log_("Primary connection is healthy."),this.isHealthy_=!0):Eh(()=>{this.sendPingOnPrimaryIfNecessary_()},Math.floor(5e3))}sendPingOnPrimaryIfNecessary_(){this.isHealthy_||1!==this.state_||(this.log_("sending ping on primary."),this.sendData_({t:"c",d:{t:"p",d:{}}}))}onSecondaryConnectionLost_(){const e=this.secondaryConn_;this.secondaryConn_=null,this.tx_!==e&&this.rx_!==e||this.close()}onConnectionLost_(e){this.conn_=null,e||0!==this.state_?1===this.state_&&this.log_("Realtime connection lost."):(this.log_("Realtime connection failed."),this.repoInfo_.isCacheableHost()&&(th.remove("host:"+this.repoInfo_.host),this.repoInfo_.internalHost=this.repoInfo_.host)),this.close()}onConnectionShutdown_(e){this.log_("Connection shutdown command received. Shutting down..."),this.onKill_&&(this.onKill_(e),this.onKill_=null),this.onDisconnect_=null,this.close()}sendData_(e){if(1!==this.state_)throw"Connection is not connected";this.tx_.send(e)}close(){2!==this.state_&&(this.log_("Closing realtime connection."),this.state_=2,this.closeConnections_(),this.onDisconnect_&&(this.onDisconnect_(),this.onDisconnect_=null))}closeConnections_(){this.log_("Shutting down all connections"),this.conn_&&(this.conn_.close(),this.conn_=null),this.secondaryConn_&&(this.secondaryConn_.close(),this.secondaryConn_=null),this.healthyTimeout_&&(clearTimeout(this.healthyTimeout_),this.healthyTimeout_=null)}}
702/**
703 * @license
704 * Copyright 2017 Google LLC
705 *
706 * Licensed under the Apache License, Version 2.0 (the "License");
707 * you may not use this file except in compliance with the License.
708 * You may obtain a copy of the License at
709 *
710 *   http://www.apache.org/licenses/LICENSE-2.0
711 *
712 * Unless required by applicable law or agreed to in writing, softw
712are
713 * distributed under the License is distributed on an "AS IS" BASIS,
714 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
715 * See the License for the specific language governing permissions and
716 * limitations under the License.
717 */class $h{put(e,t,n,a){}merge(e,t,n,a){}refreshAuthToken(e){}refreshAppCheckToken(e){}onDisconnectPut(e,t,n){}onDisconnectMerge(e,t,n){}onDisconnectCancel(e,t){}reportStats(e){}}
718/**
719 * @license
720 * Copyright 2017 Google LLC
721 *
722 * Licensed under the Apache License, Version 2.0 (the "License");
723 * you may not use this file except in compliance with the License.
724 * You may obtain a copy of the License at
725 *
726 *   http://www.apache.org/licenses/LICENSE-2.0
727 *
728 * Unless required by applicable law or agreed to in writing, software
729 * distributed under the License is distributed on an "AS IS" BASIS,
730 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
731 * See the License for the specific language governing permissions and
732 * limitations under the License.
733 */class Yh{constructor(e){this.allowedEvents_=e,this.listeners_={},Su(Array.isArray(e)&&e.length>0,"Requires a non-empty array")}trigger(e,...t){if(Array.isArray(this.listeners_[e])){const n=[...this.listeners_[e]];for(let e=0;e<n.length;e++)n[e].callback.apply(n[e].context,t)}}on(e,t,n){this.validateEventType_(e),this.listeners_[e]=this.listeners_[e]||[],this.listeners_[e].push({callback:t,context:n});const a=this.getInitialEvent(e);a&&t.apply(n,a)}off(e,t,n){this.validateEventType_(e);const a=this.listeners_[e]||[];for(let i=0;i<a.length;i++)if(a[i].callback===t&&(!n||n===a[i].context))return void a.splice(i,1)}validateEventType_(e){Su(this.allowedEvents_.find(t=>t===e),"Unknown event: "+e)}}
734/**
735 * @license
736 * Copyright 2017 Google LLC
737 *
738 * Licensed under the Apache License, Version 2.0 (the "License");
739 * you may not use this file except in compliance with the License.
740 * You may obtain a copy of the License at
741 *
742 *   http://www.apache.org/licenses/LICENSE-2.0
743 *
744 * Unless required by applicable law or agreed to in writing, software
745 * distributed under the License is distributed on an "AS IS" BASIS,
746 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
747 * See the License for the specific language governing permissions and
748 * limitations under the License.
749 */class Jh extends Yh{static getInstance(){return new Jh}constructor(){super(["online"]),this.online_=!0,"undefined"==typeof window||void 0===window.addEventListener||$u()||(window.addEventListener("online",()=>{this.online_||(this.online_=!0,this.trigger("online",!0))},!1),window.addEventListener("offline",()=>{this.online_&&(this.online_=!1,this.trigger("online",!1))},!1))}getInitialEvent(e){return Su("online"===e,"Unknown event type: "+e),[this.online_]}currentlyOnline(){return this.online_}}
750/**
751 * @license
752 * Copyright 2017 Google LLC
753 *
754 * Licensed under the Apache License, Version 2.0 (the "License");
755 * you may not use this file except in compliance with the License.
756 * You may obtain a copy of the License at
757 *
758 *   http://www.apache.org/licenses/LICENSE-2.0
759 *
760 * Unless required by applicable law or agreed to in writing, software
761 * distributed under the License is distributed on an "AS IS" BASIS,
762 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
763 * See the License for the specific language governing permissions and
764 * limitations under the License.
765 */class Qh{constructor(e,t){if(void 0===t){this.pieces_=e.split("/");let t=0;for(let e=0;e<this.pieces_.length;e++)this.pieces_[e].length>0&&(this.pieces_[t]=this.pieces_[e],t++);this.pieces_.length=t,this.pieceNum_=0}else this.pieces_=e,this.pieceNum_=t}toString(){let e="";for(let t=this.pieceNum_;t<this.pieces_.length;t++)""!==this.pieces_[t]&&(e+="/"+this.pieces_[t]);return e||"/"}}function Zh(){return new Qh("")}function ep(e){return e.pieceNum_>=e.pieces_.length?null:e.pieces_[e.pieceNum_]}function tp(e){return e.pieces_.length-e.pieceNum_}function np(e){let t=e.pieceNum_;return t<e.pieces_.length&&t++,new Qh(e.pieces_,t)}function ap(e){return e.pieceNum_<e.pieces_.length?e.pieces_[e.pieces_.length-1]:null}function ip(e,t=0){return e.pieces_.slice(e.pieceNum_+t)}function rp(e){if(e.pieceNum_>=e.pieces_.length)return null;const t=[];for(let n=e.pieceNum_;n<e.pieces_.length-1;n++)t.push(e.pieces_[n]);return new Qh(t,0)}function op(e,t){const n=[];for(let a=e.pieceNum_;a<e.pieces_.length;a++)n.push(e.pieces_[a]);if(t instanceof Qh)for(let a=t.pieceNum_;a<t.pieces_.length;a++)n.push(t.pieces_[a]);else{const e=t.split("/");for(let t=0;t<e.length;t++)e[t].length>0&&n.push(e[t])}return new Qh(n,0)}function sp(e){return e.pieceNum_>=e.pieces_.length}function lp(e,t){const n=ep(e),a=ep(t);if(null===n)return t;if(n===a)return lp(np(e),np(t));
vendor: 12,009 bytes, lines 765-797
765throw new Error("INTERNAL ERROR: innerPath ("+t+") is not within outerPath ("+e+")")}function up(e,t){const n=ip(e,0),a=ip(t,0);for(let i=0;i<n.length&&i<a.length;i++){const e=gh(n[i],a[i]);if(0!==e)return e}return n.length===a.length?0:n.length<a.length?-1:1}function cp(e,t){if(tp(e)!==tp(t))return!1;for(let n=e.pieceNum_,a=t.pieceNum_;n<=e.pieces_.length;n++,a++)if(e.pieces_[n]!==t.pieces_[a])return!1;return!0}function dp(e,t){let n=e.pieceNum_,a=t.pieceNum_;if(tp(e)>tp(t))return!1;for(;n<e.pieces_.length;){if(e.pieces_[n]!==t.pieces_[a])return!1;++n,++a}return!0}class hp{constructor(e,t){this.errorPrefix_=t,this.parts_=ip(e,0),this.byteLength_=Math.max(1,this.parts_.length);for(let n=0;n<this.parts_.length;n++)this.byteLength_+=yc(this.parts_[n]);pp(this)}}function pp(e){if(e.byteLength_>768)throw new Error(e.errorPrefix_+"has a key path longer than 768 bytes ("+e.byteLength_+").");if(e.parts_.length>32)throw new Error(e.errorPrefix_+"path specified exceeds the maximum depth that can be written (32) or object contains a cycle "+fp(e))}function fp(e){return 0===e.parts_.length?"":"in property '"+e.parts_.join(".")+"'"}
766/**
767 * @license
768 * Copyright 2017 Google LLC
769 *
770 * Licensed under the Apache License, Version 2.0 (the "License");
771 * you may not use this file except in compliance with the License.
772 * You may obtain a copy of the License at
773 *
774 *   http://www.apache.org/licenses/LICENSE-2.0
775 *
776 * Unless required by applicable law or agreed to in writing, software
777 * distributed under the License is distributed on an "AS IS" BASIS,
778 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
779 * See the License for the specific language governing permissions and
780 * limitations under the License.
781 */class mp extends Yh{static getInstance(){return new mp}constructor(){let e,t;super(["visible"]),"undefined"!=typeof document&&void 0!==document.addEventListener&&(void 0!==document.hidden?(t="visibilitychange",e="hidden"):void 0!==document.mozHidden?(t="mozvisibilitychange",e="mozHidden"):void 0!==document.msHidden?(t="msvisibilitychange",e="msHidden"):void 0!==document.webkitHidden&&(t="webkitvisibilitychange",e="webkitHidden")),this.visible_=!0,t&&document.addEventListener(t,()=>{const t=!document[e];t!==this.visible_&&(this.visible_=t,this.trigger("visible",t))},!1)}getInitialEvent(e){return Su("visible"===e,"Unknown event type: "+e),[this.visible_]}}
782/**
783 * @license
784 * Copyright 2017 Google LLC
785 *
786 * Licensed under the Apache License, Version 2.0 (the "License");
787 * you may not use this file except in compliance with the License.
788 * You may obtain a copy of the License at
789 *
790 *   http://www.apache.org/licenses/LICENSE-2.0
791 *
792 * Unless required by applicable law or agreed to in writing, software
793 * distributed under the License is distributed on an "AS IS" BASIS,
794 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
795 * See the License for the specific language governing permissions and
796 * limitations under the License.
797 */const vp=1e3;class gp extends $h{constructor(e,t,n,a,i,r,o,s){if(super(),this.repoInfo_=e,this.applicationId_=t,this.onDataUpdate_=n,this.onConnectStatus_=a,this.onServerInfoUpdate_=i,this.authTokenProvider_=r,this.appCheckTokenProvider_=o,this.authOverride_=s,this.id=gp.nextPersistentConnectionId_++,this.log_=ch("p:"+this.id+":"),this.interruptReasons_={},this.listens=new Map,this.outstandingPuts_=[],this.outstandingGets_=[],this.outstandingPutCount_=0,this.outstandingGetCount_=0,this.onDisconnectRequestQueue_=[],this.connected_=!1,this.reconnectDelay_=vp,this.maxReconnectDelay_=3e5,this.securityDebugCallback_=null,this.lastSessionId=null,this.establishConnectionTimer_=null,this.visible_=!1,this.requestCBHash_={},this.requestNumber_=0,this.realtime_=null,this.authToken_=null,this.appCheckToken_=null,this.forceTokenRefresh_=!1,this.invalidAuthTokenCount_=0,this.invalidAppCheckTokenCount_=0,this.firstConnection_=!0,this.lastConnectionAttemptTime_=null,this.lastConnectionEstablishedTime_=null,s)throw new Error("Auth override specified in options, but not supported on non Node.js platforms");mp.getInstance().on("visible",this.onVisible_,this),-1===e.host.indexOf("fblocal")&&Jh.getInstance().on("online",this.onOnline_,this)}sendRequest(e,t,n){const a=++this.requestNumber_,i={r:a,a:e,b:t};this.log_(ac(i)),Su(this.connected_,"sendRequest call when we're not connected not allowed."),this.realtime_.sendRequest(i),n&&(this.requestCBHash_[a]=n)}get(e){this.initConnection_();const t=new ju,n={action:"g",request:{p:e._path.toString(),q:e._queryObject},onComplete:e=>{const n=e.d;"ok"===e.s?t.resolve(n):t.reject(n)}};this.outstandingGets_.push(n),this.outstandingGetCount_++;const a=this.outstandingGets_.length-1;return this.connected_&&this.sendGet_(a),t.promise}listen(e,t,n,a){this.initConnection_();const i=e._queryIdentifier,r=e._path.toString();this.log_("Listen called for "+r+" "+i),this.listens.has(r)||this.listens.set(r,new Map),Su(e._queryParams.isDefault()||!e._queryParams.loadsAllData(),"listen() called for non-default but complete query"),Su(!this.listens.get(r).has(i),"listen() called twice for same path/queryId.");const o={onComplete:a,hashFn:t,query:e,tag:n};this.listens.get(r).set(i,o),this.connected_&&this.sendListen_(o)}sendGet_(e){const t=this.outstandingGets_[e];this.sendRequest("g",t.request,n=>{delete this.outstandingGets_[e],this.outstandingGetCount_--,0===this.outstandingGetCount_&&(this.outstandingGets_=[]),t.onComplete&&t.onComplete(n)})}sendListen_(e){const t=e.query,n=t._path.toString(),a=t._queryIdentifier;this.log_("Listen on "+n+" for "+a);const i={p:n};e.tag&&(i.q=t._queryObject,i.t=e.tag),i.h=e.hashFn(),this.sendRequest("q",i,i=>{const r=i.d,o=i.s;gp.warnOnListenWarnings_(r,t);(this.listens.get(n)&&this.listens.get(n).get(a))===e&&(this.log_("listen response",i),"ok"!==o&&this.removeListen_(n,a),e.onComplete&&e.onComplete(o,r))})}static warnOnListenWarnings_(e,t){if(e&&"object"==typeof e&&rc(e,"w")){const n=oc(e,"w");if(Array.isArray(n)&&~n.indexOf("no_index")){const e='".indexOn": "'+t._queryParams.getIndex().toString()+'"',n=t._path.toString();ph("Using an unspecified index. Your data will be downloaded and filtered on the client. Consider adding ".concat(e," at ").concat(n," to your security rules for better performance."))}}}refreshAuthToken(e){this.authToken_=e,this.log_("Auth token refreshed"),this.authToken_?this.tryAuth():this.connected_&&this.sendRequest("unauth",{},()=>{}),this.reduceReconnectDelayIfAdminCredential_(e)}reduceReconnectDelayIfAdminCredential_(e){(e&&40===e.length||function(e){const t=ic(e).claims;return"object"==typeof t&&!0===t.admin}(e))&&(this.log_("Admin auth credential detected.  Reducing max reconnect time."),this.maxReconnectDelay_=3e4)}refreshAppCheckToken(e){this.appCheckToken_=e,this.log_("App check token refreshed"),this.appCheckToken_?this.tryAppCheck():this.connected_&&this.sendRequest("unappeck",{},()=>{})}tryAuth(){if(this.connected_&&this.authToken_){const e=this.authToken_,t=function(e){const t=ic(e).claims;return!!t&&"object"==typeof t&&t.hasOwnProperty("iat")}(e)?"auth":"gauth",n={cred:e};null===this.authOverride_?n.noauth=!0:"object"==typeof this.authOverride_&&(n.authvar=this.authOverride_),this.sendRequest(t,n,t=>{const n=t.s,a=t.d||"error";this.authToken_===e&&("ok"===n?this.invalidAuthTokenCount_=0:this.onAuthRevoked_(n,a))})}}tryAppCheck(){this.connected_&&this.appCheckToken_&&this.sendRequest("appcheck",{token:this.appCheckToken_},e=>{const t=e.s,n=e.d||"error";"ok"===t?this.invalidAppCheckTokenCount_=0:this.onAppCheckRevoked_(t,n)})}unlisten(e,t){const n=e._path.toString(),a=e._queryIdentifier;this.log_("Unlisten called for "+n+" "+a),Su(e._queryParams.isDefault()||!e._queryParams.loadsAllData(),"unlisten() called for non-default but complete query");this.removeListen_(n,a)&&this.connected_&&this.sendUnlisten_(n,a,e._queryObject,t)}sendUnlisten_(e,t,n,a){this.log_("Unlisten on "+e+" for "+t);const i={p:e};a&&(i.q=n,i.t=a),this.sendRequest("n",i)}onDisconnectPut(e,t,n){this.initConnection_(),this.connected_?this.sendOnDisconnect_("o",e,t,n):this.onDisconnectRequestQueue_.push({pathString:e,action:"o",data:t,onComplete:n})}onDisconnectMerge(e,t,n){this.initConnection_(),this.connected_?this.sendOnDisconnect_("om",e,t,n):this.onDisconnectRequestQueue_.push({pathString:e,action:"om",data:t,onComplete:n})}onDisconnectCancel(e,t){this.initConnection_(),this.connected_?this.sendOnDisconnect_("oc",e,null,t):this.onDisconnectRequestQueue_.push({pathString:e,action:"oc",data:null,onComplete:t})}sendOnDisconnect_(e,t,n,a){const i={p:t,d:n};this.log_("onDisconnect "+e,i),this.sendRequest(e,i,e=>{a&&setTimeout(()=>{a(e.s,e.d)},Math.floor(0))})}put(e,t,n,a){this.putInternal("p",e,t,n,a)}merge(e,t,n,a){this.putInternal("m",e,t,n,a)}putInternal(e,t,n,a,i){this.initConnection_();const r={p:t,d:n};void 0!==i&&(r.h=i),this.outstandingPuts_.push({action:e,request:r,onComplete:a}),this.outstandingPutCount_++;const o=this.outstandingPuts_.length-1;this.connected_?this.sendPut_(o):this.log_("Buffering put: "+t)}sendPut_(e){const t=this.outstandingPuts_[e].action,n=this.outstandingPuts_[e].request,a=this.outstandingPuts_[e].onComplete;this.outstandingPuts_[e].queued=this.connected_,this.sendRequest(t,n,n=>{this.log_(t+" response",n),delete this.outstandingPuts_[e],this.outstandingPutCount_--,0===this.outstandingPutCount_&&(this.outstandingPuts_=[]),a&&a(n.s,n.d)})}reportStats(e){if(this.connected_){const t={c:e};this.log_("reportStats",t),this.sendRequest("s",t,e=>{if("ok"!==e.s){const t=e.d;this.log_("reportStats","Error sending stats: "+t)}})}}onDataMessage_(e){if("r"in e){this.log_("from server: "+ac(e));const t=e.r,n=this.requestCBHash_[t];n&&(delete this.requestCBHash_[t],n(e.b))}else{if("error"in e)throw"A server-side error has occurred: "+e.error;"a"in e&&this.onDataPush_(e.a,e.b)}}onDataPush_(e,t){this.log_("handleServerMessage",e,t),"d"===e?this.onDataUpdate_(t.p,t.d,!1,t.t):"m"===e?this.onDataUpdate_(t.p,t.d,!0,t.t):"c"===e?this.onListenRevoked_(t.p,t.q):"ac"===e?this.onAuthRevoked_(t.s,t.d):"apc"===e?this.onAppCheckRevoked_(t.s,t.d):"sd"===e?this.onSecurityDebugPacket_(t):dh("Unrecognized action received from server: "+ac(e)+"\nAre you using the latest client?")}onReady_(e,t){this.log_("connection ready"),this.connected_=!0,this.lastConnectionEstablishedTime_=(new Date).getTime(),this.handleTimestamp_(e),this.lastSessionId=t,this.firstConnection_&&this.sendConnectStats_(),this.restoreState_(),this.firstConnection_=!1,this.onConnectStatus_(!0)}scheduleConnect_(e){Su(!this.realtime_,"Scheduling a connect when we're already connected/ing?"),this.establishConnectionTimer_&&clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=setTimeout(()=>{this.establishConnectionTimer_=null,this.establishConnection_()},Math.floor(e))}initConnection_(){!this.realtime_&&this.firstConnection_&&this.scheduleConnect_(0)}onVisible_(e){e&&!this.visible_&&this.reconnectDelay_===this.maxReconnectDelay_&&(this.log_("Window became visible.  Reducing delay."),this.reconnectDelay_=vp,this.realtime_||this.scheduleConnect_(0)),this.visible_=e}onOnline_(e){e?(this.log_("Browser went online."),this.reconnectDelay_=vp,this.realtime_||this.scheduleConnect_(0)):(this.log_("Browser went offline.  Killing connection."),this.realtime_&&this.realtime_.close())}onRealtimeDisconnect_(){if(this.log_("data client disconnected"),this.connected_=!1,this.realtime_=null,this.cancelSentTransactions_(),this.requestCBHash_={},this.shouldReconnect_()){if(this.visible_){if(this.lastConnectionEstablishedTime_){(new Date).getTime()-this.lastConnectionEstablishedTime_>3e4&&(this.reconnectDelay_=vp),this.lastConnectionEstablishedTime_=null}}else this.log_("Window isn't visible.  Delaying reconnect."),this.reconnectDelay_=this.maxReconnectDelay_,this.lastConnectionAttemptTime_=(new Date).getTime();const e=Math.max(0,(new Date).getTime()-this.lastConnectionAttemptTime_);let t=Math.max(0,this.reconnectDelay_-e);
vendor: 4,189 bytes, lines 797-802
797t=Math.random()*t,this.log_("Trying to reconnect in "+t+"ms"),this.scheduleConnect_(t),this.reconnectDelay_=Math.min(this.maxReconnectDelay_,1.3*this.reconnectDelay_)}this.onConnectStatus_(!1)}async establishConnection_(){if(this.shouldReconnect_()){this.log_("Making a connection attempt"),this.lastConnectionAttemptTime_=(new Date).getTime(),this.lastConnectionEstablishedTime_=null;const e=this.onDataMessage_.bind(this),t=this.onReady_.bind(this),n=this.onRealtimeDisconnect_.bind(this),a=this.id+":"+gp.nextConnectionId_++,i=this.lastSessionId;let r=!1,o=null;const s=function(){o?o.close():(r=!0,n())},l=function(e){Su(o,"sendRequest call when we're not connected not allowed."),o.sendRequest(e)};this.realtime_={close:s,sendRequest:l};const u=this.forceTokenRefresh_;this.forceTokenRefresh_=!1;try{const[s,l]=await Promise.all([this.authTokenProvider_.getToken(u),this.appCheckTokenProvider_.getToken(u)]);r?uh("getToken() completed but was canceled"):(uh("getToken() completed. Creating connection."),this.authToken_=s&&s.accessToken,this.appCheckToken_=l&&l.token,o=new qh(a,this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,e,t,n,e=>{ph(e+" ("+this.repoInfo_.toString()+")"),this.interrupt("server_kill")},i))}catch(Sae){this.log_("Failed to get token: "+Sae),r||(this.repoInfo_.nodeAdmin&&ph(Sae),s())}}}interrupt(e){uh("Interrupting connection for reason: "+e),this.interruptReasons_[e]=!0,this.realtime_?this.realtime_.close():(this.establishConnectionTimer_&&(clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=null),this.connected_&&this.onRealtimeDisconnect_())}resume(e){uh("Resuming connection for reason: "+e),delete this.interruptReasons_[e],sc(this.interruptReasons_)&&(this.reconnectDelay_=vp,this.realtime_||this.scheduleConnect_(0))}handleTimestamp_(e){const t=e-(new Date).getTime();this.onServerInfoUpdate_({serverTimeOffset:t})}cancelSentTransactions_(){for(let e=0;e<this.outstandingPuts_.length;e++){const t=this.outstandingPuts_[e];t&&"h"in t.request&&t.queued&&(t.onComplete&&t.onComplete("disconnect"),delete this.outstandingPuts_[e],this.outstandingPutCount_--)}0===this.outstandingPutCount_&&(this.outstandingPuts_=[])}onListenRevoked_(e,t){let n;n=t?t.map(e=>_h(e)).join("$"):"default";const a=this.removeListen_(e,n);a&&a.onComplete&&a.onComplete("permission_denied")}removeListen_(e,t){const n=new Qh(e).toString();let a;if(this.listens.has(n)){const e=this.listens.get(n);a=e.get(t),e.delete(t),0===e.size&&this.listens.delete(n)}else a=void 0;return a}onAuthRevoked_(e,t){uh("Auth token revoked: "+e+"/"+t),this.authToken_=null,this.forceTokenRefresh_=!0,this.realtime_.close(),"invalid_token"!==e&&"permission_denied"!==e||(this.invalidAuthTokenCount_++,this.invalidAuthTokenCount_>=3&&(this.reconnectDelay_=3e4,this.authTokenProvider_.notifyForInvalidToken()))}onAppCheckRevoked_(e,t){uh("App check token revoked: "+e+"/"+t),this.appCheckToken_=null,this.forceTokenRefresh_=!0,"invalid_token"!==e&&"permission_denied"!==e||(this.invalidAppCheckTokenCount_++,this.invalidAppCheckTokenCount_>=3&&this.appCheckTokenProvider_.notifyForInvalidToken())}onSecurityDebugPacket_(e){this.securityDebugCallback_?this.securityDebugCallback_(e):"msg"in e&&console.log("FIREBASE: "+e.msg.replace("\n","\nFIREBASE: "))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const e of this.listens.values())for(const t of e.values())this.sendListen_(t);for(let e=0;e<this.outstandingPuts_.length;e++)this.outstandingPuts_[e]&&this.sendPut_(e);for(;this.onDisconnectRequestQueue_.length;){const e=this.onDisconnectRequestQueue_.shift();this.sendOnDisconnect_(e.action,e.pathString,e.data,e.onComplete)}for(let e=0;e<this.outstandingGets_.length;e++)this.outstandingGets_[e]&&this.sendGet_(e)}sendConnectStats_(){const e={};e["sdk.js."+Jd.replace(/\./g,"-")]=1,$u()?e["framework.cordova"]=1:Yu()&&(e["framework.reactnative"]=1),this.reportStats(e)}shouldReconnect_(){const e=Jh.getInstance().currentlyOnline();return sc(this.interruptReasons_)&&e}}gp.nextPersistentConnectionId_=0,gp.nextConnectionId_=0;
798/**
799 * @license
800 * Copyright 2017 Google LLC
801 *
802 * Licensed under the Apache License, Version 2.0 (the "License");
803 * you may not use this file except in compliance with the License.
804 * You may obtain a copy of the License at
805 *
806 *   http://www.apache.org/licenses/LICENSE-2.0
807 *
808 * Unless required by applicable law or agreed to in writing, software
809 * distributed under the License is distributed on an "AS IS" BASIS,
810 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
811 * See the License for the specific language governing permissions and
812 * limitations under the License.
813 */
814class yp{constructor(e,t){this.name=e,this.node=t}static Wrap(e,t){return new yp(e,t)}}
815/**
816 * @license
817 * Copyright 2017 Google LLC
818 *
819 * Licensed under the Apache License, Version 2.0 (the "License");
820 * you may not use this file except in compliance with the License.
821 * You may obtain a copy of the License at
822 *
823 *   http://www.apache.org/licenses/LICENSE-2.0
824 *
825 * Unless required by applicable law or agreed to in writing, software
826 * distributed under the License is distributed on an "AS IS" BASIS,
827 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
828 * See the License for the specific language governing permissions and
829 * limitations under the License.
830 */class bp{getCompare(){return this.compare.bind(this)}indexedValueChanged(e,t){const n=new yp(mh,e),a=new yp(mh,t);return 0!==this.compare(n,a)}minPost(){return yp.MIN}}
831/**
832 * @license
833 * Copyright 2017 Google LLC
834 *
835 * Licensed under the Apache License, Version 2.0 (the "License");
836 * you may not use this file except in compliance with the License.
837 * You may obtain a copy of the License at
838 *
839 *   http://www.apache.org/licenses/LICENSE-2.0
840 *
841 * Unless required by applicable law or agreed to in writing, software
842 * distributed under the License is distributed on an "AS IS" BASIS,
843 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
844 * See the License for the specific language governing permissions and
845 * limitations under the License.
846 */let _p;class wp extends bp{static get __EMPTY_NODE(){return _p}static set __EMPTY_NODE(e){_p=e}compare(e,t){return gh(e.name,t.name)}isDefinedOn(e){throw Tu("KeyIndex.isDefinedOn not expected to be called.")}indexedValueChanged(e,t){return!1}minPost(){return yp.MIN}maxPost(){return new yp(vh,_p)}makePost(e,t){return Su("string"==typeof e,"KeyIndex indexValue must always be a string."),new yp(e,_p)}toString(){return".key"}}const kp=new wp;
847/**
848 * @license
849 * Copyright 2017 Google LLC
850 *
851 * Licensed under the Apache License, Version 2.0 (the "License");
852 * you may not use this file except in compliance with the License.
853 * You may obtain a copy of the License at
854 *
855 *   http://www.apache.org/licenses/LICENSE-2.0
856 *
857 * Unless required by applicable law or agreed to in writing, software
858 * distributed under the License is distributed on an "AS IS" BASIS,
859 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
860 * See the License for the specific language governing permissions and
861 * limitations under the License.
862 */let Cp=class{constructor(e,t,n,a,i=null){this.isReverse_=a,this.resultGenerator_=i,this.nodeStack_=[];let r=1;for(;!e.isEmpty();)if(r=t?n(e.key,t):1,a&&(r*=-1),r<0)e=this.isReverse_?e.left:e.right;else{if(0===r){this.nodeStack_.push(e);break}this.nodeStack_.push(e),e=this.isReverse_?e.right:e.left}}getNext(){if(0===this.nodeStack_.length)return null;let e,t=this.nodeStack_.pop();if(e=this.resultGenerator_?this.resultGenerator_(t.key,t.value):{key:t.key,value:t.value},this.isReverse_)for(t=t.left;!t.isEmpty();)this.nodeStack_.push(t),t=t.right;else for(t=t.right;!t.isEmpty();)this.nodeStack_.push(t),t=t.left;return e}hasNext(){return this.nodeStack_.length>0}peek(){if(0===this.nodeStack_.length)return null;const e=this.nodeStack_[this.nodeStack_.length-1];return this.resultGenerator_?this.resultGenerator_(e.key,e.value):{key:e.key,value:e.value}}},Sp=class e{constructor(t,n,a,i,r){this.key=t,this.value=n,this.color=null!=a?a:e.RED,this.left=null!=i?i:Ap.EMPTY_NODE,this.right=null!=r?r:Ap.EMPTY_NODE}copy(t,n,a,i,r){return new e(null!=t?t:this.key,null!=n?n:this.value,null!=a?a:this.color,null!=i?i:this.left,null!=r?r:this.right)}count(){return this.left.count()+1+this.right.count()}isEmpty(){return!1}inorderTraversal(e){return this.left.inorderTraversal(e)||!!e(this.key,this.value)||this.right.inorderTraversal(e)}reverseTraversal(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}min_(){return this.left.isEmpty()?this:this.left.min_()}minKey(){return this.min_().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(e,t,n){let a=this;const i=n(e,a.key);return a=i<0?a.copy(null,null,null,a.left.insert(e,t,n),null):0===i?a.copy(null,t,null,null,null):a.copy(null,null,null,null,a.right.insert(e,t,n)),a.fixUp_()}removeMin_(){if(this.left.isEmpty())return Ap.EMPTY_NODE;let e=this;return e.left.isRed_()||e.left.left.isRed_()||(e=e.moveRedLeft_()),e=e.copy(null,null,null,e.left.removeMin_(),null),e.fixUp_()}remove(e,t){let n,a;if(n=this,t(e,n.key)<0)n.left.isEmpty()||n.left.isRed_()||n.left.left.isRed_()||(n=n.moveRedLeft_()),n=n.copy(null,null,null,n.left.remove(e,t),null);else{if(n.left.isRed_()&&(n=n.rotateRight_()),n.right.isEmpty()||n.right.isRed_()||n.right.left.isRed_()||(n=n.moveRedRight_()),0===t(e,n.key)){if(n.right.isEmpty())return Ap.EMPTY_NODE;
vendor: 16,011 bytes, lines 862-960
862a=n.right.min_(),n=n.copy(a.key,a.value,null,null,n.right.removeMin_())}n=n.copy(null,null,null,null,n.right.remove(e,t))}return n.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 t=this.copy(null,null,e.RED,null,this.right.left);return this.right.copy(null,null,this.color,t,null)}rotateRight_(){const t=this.copy(null,null,e.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,t)}colorFlip_(){const e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)}checkMaxDepth_(){const e=this.check_();return Math.pow(2,e)<=this.count()+1}check_(){if(this.isRed_()&&this.left.isRed_())throw new Error("Red node has red child("+this.key+","+this.value+")");if(this.right.isRed_())throw new Error("Right child of ("+this.key+","+this.value+") is red");const e=this.left.check_();if(e!==this.right.check_())throw new Error("Black depths differ");return e+(this.isRed_()?0:1)}};Sp.RED=!0,Sp.BLACK=!1;let Tp,Ap=class e{constructor(t,n=e.EMPTY_NODE){this.comparator_=t,this.root_=n}insert(t,n){return new e(this.comparator_,this.root_.insert(t,n,this.comparator_).copy(null,null,Sp.BLACK,null,null))}remove(t){return new e(this.comparator_,this.root_.remove(t,this.comparator_).copy(null,null,Sp.BLACK,null,null))}get(e){let t,n=this.root_;for(;!n.isEmpty();){if(t=this.comparator_(e,n.key),0===t)return n.value;t<0?n=n.left:t>0&&(n=n.right)}return null}getPredecessorKey(e){let t,n=this.root_,a=null;for(;!n.isEmpty();){if(t=this.comparator_(e,n.key),0===t){if(n.left.isEmpty())return a?a.key:null;for(n=n.left;!n.right.isEmpty();)n=n.right;return n.key}t<0?n=n.left:t>0&&(a=n,n=n.right)}throw new Error("Attempted to find predecessor key for a nonexistent key.  What gives?")}isEmpty(){return this.root_.isEmpty()}count(){return this.root_.count()}minKey(){return this.root_.minKey()}maxKey(){return this.root_.maxKey()}inorderTraversal(e){return this.root_.inorderTraversal(e)}reverseTraversal(e){return this.root_.reverseTraversal(e)}getIterator(e){return new Cp(this.root_,null,this.comparator_,!1,e)}getIteratorFrom(e,t){return new Cp(this.root_,e,this.comparator_,!1,t)}getReverseIteratorFrom(e,t){return new Cp(this.root_,e,this.comparator_,!0,t)}getReverseIterator(e){return new Cp(this.root_,null,this.comparator_,!0,e)}};
863/**
864 * @license
865 * Copyright 2017 Google LLC
866 *
867 * Licensed under the Apache License, Version 2.0 (the "License");
868 * you may not use this file except in compliance with the License.
869 * You may obtain a copy of the License at
870 *
871 *   http://www.apache.org/licenses/LICENSE-2.0
872 *
873 * Unless required by applicable law or agreed to in writing, software
874 * distributed under the License is distributed on an "AS IS" BASIS,
875 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
876 * See the License for the specific language governing permissions and
877 * limitations under the License.
878 */
879function Ep(e,t){return gh(e.name,t.name)}function Ip(e,t){return gh(e,t)}
880/**
881 * @license
882 * Copyright 2017 Google LLC
883 *
884 * Licensed under the Apache License, Version 2.0 (the "License");
885 * you may not use this file except in compliance with the License.
886 * You may obtain a copy of the License at
887 *
888 *   http://www.apache.org/licenses/LICENSE-2.0
889 *
890 * Unless required by applicable law or agreed to in writing, software
891 * distributed under the License is distributed on an "AS IS" BASIS,
892 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
893 * See the License for the specific language governing permissions and
894 * limitations under the License.
895 */Ap.EMPTY_NODE=new class{copy(e,t,n,a,i){return this}insert(e,t,n){return new Sp(e,t,null)}remove(e,t){return this}count(){return 0}isEmpty(){return!0}inorderTraversal(e){return!1}reverseTraversal(e){return!1}minKey(){return null}maxKey(){return null}check_(){return 0}isRed_(){return!1}};const xp=function(e){return"number"==typeof e?"number:"+Ch(e):"string:"+e},Np=function(e){if(e.isLeafNode()){const t=e.val();Su("string"==typeof t||"number"==typeof t||"object"==typeof t&&rc(t,".sv"),"Priority must be a string or number.")}else Su(e===Tp||e.isEmpty(),"priority of unexpected type.");Su(e===Tp||e.getPriority().isEmpty(),"Priority nodes can't have a priority of their own.")};
896/**
897 * @license
898 * Copyright 2017 Google LLC
899 *
900 * Licensed under the Apache License, Version 2.0 (the "License");
901 * you may not use this file except in compliance with the License.
902 * You may obtain a copy of the License at
903 *
904 *   http://www.apache.org/licenses/LICENSE-2.0
905 *
906 * Unless required by applicable law or agreed to in writing, software
907 * distributed under the License is distributed on an "AS IS" BASIS,
908 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
909 * See the License for the specific language governing permissions and
910 * limitations under the License.
911 */
912let Pp,Mp,Op;class Rp{static set __childrenNodeConstructor(e){Pp=e}static get __childrenNodeConstructor(){return Pp}constructor(e,t=Rp.__childrenNodeConstructor.EMPTY_NODE){this.value_=e,this.priorityNode_=t,this.lazyHash_=null,Su(void 0!==this.value_&&null!==this.value_,"LeafNode shouldn't be created with null/undefined value."),Np(this.priorityNode_)}isLeafNode(){return!0}getPriority(){return this.priorityNode_}updatePriority(e){return new Rp(this.value_,e)}getImmediateChild(e){return".priority"===e?this.priorityNode_:Rp.__childrenNodeConstructor.EMPTY_NODE}getChild(e){return sp(e)?this:".priority"===ep(e)?this.priorityNode_:Rp.__childrenNodeConstructor.EMPTY_NODE}hasChild(){return!1}getPredecessorChildName(e,t){return null}updateImmediateChild(e,t){return".priority"===e?this.updatePriority(t):t.isEmpty()&&".priority"!==e?this:Rp.__childrenNodeConstructor.EMPTY_NODE.updateImmediateChild(e,t).updatePriority(this.priorityNode_)}updateChild(e,t){const n=ep(e);return null===n?t:t.isEmpty()&&".priority"!==n?this:(Su(".priority"!==n||1===tp(e),".priority must be the last token in a path"),this.updateImmediateChild(n,Rp.__childrenNodeConstructor.EMPTY_NODE.updateChild(np(e),t)))}isEmpty(){return!1}numChildren(){return 0}forEachChild(e,t){return!1}val(e){return e&&!this.getPriority().isEmpty()?{".value":this.getValue(),".priority":this.getPriority().val()}:this.getValue()}hash(){if(null===this.lazyHash_){let e="";this.priorityNode_.isEmpty()||(e+="priority:"+xp(this.priorityNode_.val())+":");const t=typeof this.value_;e+=t+":",e+="number"===t?Ch(this.value_):this.value_,this.lazyHash_=rh(e)}return this.lazyHash_}getValue(){return this.value_}compareTo(e){return e===Rp.__childrenNodeConstructor.EMPTY_NODE?1:e instanceof Rp.__childrenNodeConstructor?-1:(Su(e.isLeafNode(),"Unknown node type"),this.compareToLeafNode_(e))}compareToLeafNode_(e){const t=typeof e.value_,n=typeof this.value_,a=Rp.VALUE_TYPE_ORDER.indexOf(t),i=Rp.VALUE_TYPE_ORDER.indexOf(n);return Su(a>=0,"Unknown leaf type: "+t),Su(i>=0,"Unknown leaf type: "+n),a===i?"object"===n?0:this.value_<e.value_?-1:this.value_===e.value_?0:1:i-a}withIndex(){return this}isIndexed(){return!0}equals(e){if(e===this)return!0;if(e.isLeafNode()){const t=e;return this.value_===t.value_&&this.priorityNode_.equals(t.priorityNode_)}return!1}}Rp.VALUE_TYPE_ORDER=["object","boolean","number","string"];const Dp=new class extends bp{compare(e,t){const n=e.node.getPriority(),a=t.node.getPriority(),i=n.compareTo(a);return 0===i?gh(e.name,t.name):i}isDefinedOn(e){return!e.getPriority().isEmpty()}indexedValueChanged(e,t){return!e.getPriority().equals(t.getPriority())}minPost(){return yp.MIN}maxPost(){return new yp(vh,new Rp("[PRIORITY-POST]",Op))}makePost(e,t){const n=Mp(e);return new yp(t,new Rp("[PRIORITY-POST]",n))}toString(){return".priority"}},Lp=Math.log(2);
913/**
914 * @license
915 * Copyright 2017 Google LLC
916 *
917 * Licensed under the Apache License, Version 2.0 (the "License");
918 * you may not use this file except in compliance with the License.
919 * You may obtain a copy of the License at
920 *
921 *   http://www.apache.org/licenses/LICENSE-2.0
922 *
923 * Unless required by applicable law or agreed to in writing, software
924 * distributed under the License is distributed on an "AS IS" BASIS,
925 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
926 * See the License for the specific language governing permissions and
927 * limitations under the License.
928 */class Bp{constructor(e){var t;this.count=(t=e+1,parseInt(Math.log(t)/Lp,10)),this.current_=this.count-1;const n=(a=this.count,parseInt(Array(a+1).join("1"),2));var a;this.bits_=e+1&n}nextBitIsOne(){const e=!(this.bits_&1<<this.current_);return this.current_--,e}}const Fp=function(e,t,n,a){e.sort(t);const i=function(t,a){const r=a-t;let o,s;if(0===r)return null;if(1===r)return o=e[t],s=n?n(o):o,new Sp(s,o.node,Sp.BLACK,null,null);{const l=parseInt(r/2,10)+t,u=i(t,l),c=i(l+1,a);return o=e[l],s=n?n(o):o,new Sp(s,o.node,Sp.BLACK,u,c)}},r=function(t){let a=null,r=null,o=e.length;const s=function(t,a){const r=o-t,s=o;o-=t;const u=i(r+1,s),c=e[r],d=n?n(c):c;l(new Sp(d,c.node,a,null,u))},l=function(e){a?(a.left=e,a=e):(r=e,a=e)};for(let e=0;e<t.count;++e){const n=t.nextBitIsOne(),a=Math.pow(2,t.count-(e+1));n?s(a,Sp.BLACK):(s(a,Sp.BLACK),s(a,Sp.RED))}return r}(new Bp(e.length));return new Ap(a||t,r)};
929/**
930 * @license
931 * Copyright 2017 Google LLC
932 *
933 * Licensed under the Apache License, Version 2.0 (the "License");
934 * you may not use this file except in compliance with the License.
935 * You may obtain a copy of the License at
936 *
937 *   http://www.apache.org/licenses/LICENSE-2.0
938 *
939 * Unless required by applicable law or agreed to in writing, software
940 * distributed under the License is distributed on an "AS IS" BASIS,
941 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
942 * See the License for the specific language governing permissions and
943 * limitations under the License.
944 */let Vp;const Xp={};class jp{static get Default(){return Su(Xp&&Dp,"ChildrenNode.ts has not been loaded"),Vp=Vp||new jp({".priority":Xp},{".priority":Dp}),Vp}constructor(e,t){this.indexes_=e,this.indexSet_=t}get(e){const t=oc(this.indexes_,e);if(!t)throw new Error("No index defined for "+e);return t instanceof Ap?t:null}hasIndex(e){return rc(this.indexSet_,e.toString())}addIndex(e,t){Su(e!==kp,"KeyIndex always exists and isn't meant to be added to the IndexMap.");const n=[];let a=!1;const i=t.getIterator(yp.Wrap);let r,o=i.getNext();for(;o;)a=a||e.isDefinedOn(o.node),n.push(o),o=i.getNext();r=a?Fp(n,e.getCompare()):Xp;const s=e.toString(),l={...this.indexSet_};l[s]=e;const u={...this.indexes_};return u[s]=r,new jp(u,l)}addToIndexes(e,t){const n=lc(this.indexes_,(n,a)=>{const i=oc(this.indexSet_,a);if(Su(i,"Missing index implementation for "+a),n===Xp){if(i.isDefinedOn(e.node)){const n=[],a=t.getIterator(yp.Wrap);let r=a.getNext();for(;r;)r.name!==e.name&&n.push(r),r=a.getNext();return n.push(e),Fp(n,i.getCompare())}return Xp}{const a=t.get(e.name);let i=n;return a&&(i=i.remove(new yp(e.name,a))),i.insert(e,e.node)}});return new jp(n,this.indexSet_)}removeFromIndexes(e,t){const n=lc(this.indexes_,n=>{if(n===Xp)return n;{const a=t.get(e.name);return a?n.remove(new yp(e.name,a)):n}});return new jp(n,this.indexSet_)}}
945/**
946 * @license
947 * Copyright 2017 Google LLC
948 *
949 * Licensed under the Apache License, Version 2.0 (the "License");
950 * you may not use this file except in compliance with the License.
951 * You may obtain a copy of the License at
952 *
953 *   http://www.apache.org/licenses/LICENSE-2.0
954 *
955 * Unless required by applicable law or agreed to in writing, software
956 * distributed under the License is distributed on an "AS IS" BASIS,
957 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
958 * See the License for the specific language governing permissions and
959 * limitations under the License.
960 */let Up;class Hp{static get EMPTY_NODE(){return Up||(Up=new Hp(new Ap(Ip),null,jp.Default))}constructor(e,t,n){this.children_=e,this.priorityNode_=t,this.indexMap_=n,this.lazyHash_=null,this.priorityNode_&&Np(this.priorityNode_),this.children_.isEmpty()&&Su(!this.priorityNode_||this.priorityNode_.isEmpty(),"An empty node cannot have a priority")}isLeafNode(){return!1}getPriority(){return this.priorityNode_||Up}updatePriority(e){return this.children_.isEmpty()?this:new Hp(this.children_,e,this.indexMap_)}getImmediateChild(e){if(".priority"===e)return this.getPriority();{const t=this.children_.get(e);return null===t?Up:t}}getChild(e){const t=ep(e);return null===t?this:this.getImmediateChild(t).getChild(np(e))}hasChild(e){return null!==this.children_.get(e)}updateImmediateChild(e,t){if(Su(t,"We should always be passing snapshot nodes"),".priority"===e)return this.updatePriority(t);{const n=new yp(e,t);let a,i;t.isEmpty()?(a=this.children_.remove(e),i=this.indexMap_.removeFromIndexes(n,this.children_)):(a=this.children_.insert(e,t),i=this.indexMap_.addToIndexes(n,this.children_));const r=a.isEmpty()?Up:this.priorityNode_;return new Hp(a,r,i)}}updateChild(e,t){const n=ep(e);if(null===n)return t;{Su(".priority"!==ep(e)||1===tp(e),".priority must be the last token in a path");const a=this.getImmediateChild(n).updateChild(np(e),t);return this.updateImmediateChild(n,a)}}isEmpty(){return this.children_.isEmpty()}numChildren(){return this.children_.count()}val(e){if(this.isEmpty())return null;const t={};let n=0,a=0,i=!0;if(this.forEachChild(Dp,(r,o)=>{t[r]=o.val(e),n++,i&&Hp.INTEGER_REGEXP_.test(r)?a=Math.max(a,Number(r)):i=!1}),!e&&i&&a<2*n){const e=[];for(const n in t)e[n]=t[n];return e}return e&&!this.getPriority().isEmpty()&&(t[".priority"]=this.getPriority().val()),t}hash(){if(null===this.lazyHash_){let e="";this.getPriority().isEmpty()||(e+="priority:"+xp(this.getPriority().val())+":"),this.forEachChild(Dp,(t,n)=>{const a=n.hash();""!==a&&(e+=":"+t+":"+a)}),this.lazyHash_=""===e?"":rh(e)}return this.lazyHash_}getPredecessorChildName(e,t,n){const a=this.resolveIndex_(n);if(a){const n=a.getPredecessorKey(new yp(e,t));return n?n.name:null}return this.children_.getPredecessorKey(e)}getFirstChildName(e){const t=this.resolveIndex_(e);if(t){const e=t.minKey();return e&&e.name}return this.children_.minKey()}getFirstChild(e){const t=this.getFirstChildName(e);return t?new yp(t,this.children_.get(t)):null}getLastChildName(e){const t=this.resolveIndex_(e);if(t){const e=t.maxKey();return e&&e.name}return this.children_.maxKey()}getLastChild(e){const t=this.getLastChildName(e);return t?new yp(t,this.children_.get(t)):null}forEachChild(e,t){const n=this.resolveIndex_(e);return n?n.inorderTraversal(e=>t(e.name,e.node)):this.children_.inorderTraversal(t)}getIterator(e){return this.getIteratorFrom(e.minPost(),e)}getIteratorFrom(e,t){const n=this.resolveIndex_(t);if(n)return n.getIteratorFrom(e,e=>e);{const n=this.children_.getIteratorFrom(e.name,yp.Wrap);let a=n.peek();for(;null!=a&&t.compare(a,e)<0;)n.getNext(),a=n.peek();return n}}getReverseIterator(e){return this.getReverseIteratorFrom(e.maxPost(),e)}getReverseIteratorFrom(e,t){const n=this.resolveIndex_(t);if(n)return n.getReverseIteratorFrom(e,e=>e);{const n=this.children_.getReverseIteratorFrom(e.name,yp.Wrap);let a=n.peek();for(;null!=a&&t.compare(a,e)>0;)n.getNext(),a=n.peek();return n}}compareTo(e){return this.isEmpty()?e.isEmpty()?0:-1:e.isLeafNode()||e.isEmpty()?1:e===zp?-1:0}withIndex(e){if(e===kp||this.indexMap_.hasIndex(e))return this;{const t=this.indexMap_.addIndex(e,this.children_);return new Hp(this.children_,this.priorityNode_,t)}}isIndexed(e){return e===kp||this.indexMap_.hasIndex(e)}equals(e){if(e===this)return!0;
vendor: 4,286 bytes, lines 960-1004
960if(e.isLeafNode())return!1;{const t=e;if(this.getPriority().equals(t.getPriority())){if(this.children_.count()===t.children_.count()){const e=this.getIterator(Dp),n=t.getIterator(Dp);let a=e.getNext(),i=n.getNext();for(;a&&i;){if(a.name!==i.name||!a.node.equals(i.node))return!1;a=e.getNext(),i=n.getNext()}return null===a&&null===i}return!1}return!1}}resolveIndex_(e){return e===kp?null:this.indexMap_.get(e.toString())}}Hp.INTEGER_REGEXP_=/^(0|[1-9]\d*)$/;const zp=new class extends Hp{constructor(){super(new Ap(Ip),Hp.EMPTY_NODE,jp.Default)}compareTo(e){return e===this?0:1}equals(e){return e===this}getPriority(){return this}getImmediateChild(e){return Hp.EMPTY_NODE}isEmpty(){return!1}};Object.defineProperties(yp,{MIN:{value:new yp(mh,Hp.EMPTY_NODE)},MAX:{value:new yp(vh,zp)}}),wp.__EMPTY_NODE=Hp.EMPTY_NODE,Rp.__childrenNodeConstructor=Hp,Tp=zp,function(e){Op=e}(zp);function Kp(e,t=null){if(null===e)return Hp.EMPTY_NODE;if("object"==typeof e&&".priority"in e&&(t=e[".priority"]),Su(null===t||"string"==typeof t||"number"==typeof t||"object"==typeof t&&".sv"in t,"Invalid priority type found: "+typeof t),"object"==typeof e&&".value"in e&&null!==e[".value"]&&(e=e[".value"]),"object"!=typeof e||".sv"in e){return new Rp(e,Kp(t))}if(e instanceof Array){let n=Hp.EMPTY_NODE;return kh(e,(t,a)=>{if(rc(e,t)&&"."!==t.substring(0,1)){const e=Kp(a);!e.isLeafNode()&&e.isEmpty()||(n=n.updateImmediateChild(t,e))}}),n.updatePriority(Kp(t))}{const n=[];let a=!1;if(kh(e,(e,t)=>{if("."!==e.substring(0,1)){const i=Kp(t);i.isEmpty()||(a=a||!i.getPriority().isEmpty(),n.push(new yp(e,i)))}}),0===n.length)return Hp.EMPTY_NODE;const i=Fp(n,Ep,e=>e.name,Ip);if(a){const e=Fp(n,Dp.getCompare());return new Hp(i,Kp(t),new jp({".priority":e},{".priority":Dp}))}return new Hp(i,Kp(t),jp.Default)}}!function(e){Mp=e}(Kp);
961/**
962 * @license
963 * Copyright 2017 Google LLC
964 *
965 * Licensed under the Apache License, Version 2.0 (the "License");
966 * you may not use this file except in compliance with the License.
967 * You may obtain a copy of the License at
968 *
969 *   http://www.apache.org/licenses/LICENSE-2.0
970 *
971 * Unless required by applicable law or agreed to in writing, software
972 * distributed under the License is distributed on an "AS IS" BASIS,
973 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
974 * See the License for the specific language governing permissions and
975 * limitations under the License.
976 */
977class Wp extends bp{constructor(e){super(),this.indexPath_=e,Su(!sp(e)&&".priority"!==ep(e),"Can't create PathIndex with empty path or .priority key")}extractChild(e){return e.getChild(this.indexPath_)}isDefinedOn(e){return!e.getChild(this.indexPath_).isEmpty()}compare(e,t){const n=this.extractChild(e.node),a=this.extractChild(t.node),i=n.compareTo(a);return 0===i?gh(e.name,t.name):i}makePost(e,t){const n=Kp(e),a=Hp.EMPTY_NODE.updateChild(this.indexPath_,n);return new yp(t,a)}maxPost(){const e=Hp.EMPTY_NODE.updateChild(this.indexPath_,zp);return new yp(vh,e)}toString(){return ip(this.indexPath_,0).join("/")}}
978/**
979 * @license
980 * Copyright 2017 Google LLC
981 *
982 * Licensed under the Apache License, Version 2.0 (the "License");
983 * you may not use this file except in compliance with the License.
984 * You may obtain a copy of the License at
985 *
986 *   http://www.apache.org/licenses/LICENSE-2.0
987 *
988 * Unless required by applicable law or agreed to in writing, software
989 * distributed under the License is distributed on an "AS IS" BASIS,
990 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
991 * See the License for the specific language governing permissions and
992 * limitations under the License.
993 */const Gp=new class extends bp{compare(e,t){const n=e.node.compareTo(t.node);return 0===n?gh(e.name,t.name):n}isDefinedOn(e){return!0}indexedValueChanged(e,t){return!e.equals(t)}minPost(){return yp.MIN}maxPost(){return yp.MAX}makePost(e,t){const n=Kp(e);return new yp(t,n)}toString(){return".value"}};
994/**
995 * @license
996 * Copyright 2017 Google LLC
997 *
998 * Licensed under the Apache License, Version 2.0 (the "License");
999 * you may not use this file except in compliance with the License.
1000 * You may obtain a copy of the License at
1001 *
1002 *   http://www.apache.org/licenses/LICENSE-2.0
1003 *
1004 * Unless required by applicable law or agreed to in writing, softw
1004are
1005 * distributed under the License is distributed on an "AS IS" BASIS,
1006 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1007 * See the License for the specific language governing permissions and
1008 * limitations under the License.
1009 */function qp(e){return{type:"value",snapshotNode:e}}function $p(e,t){return{type:"child_added",snapshotNode:t,childName:e}}function Yp(e,t){return{type:"child_removed",snapshotNode:t,childName:e}}function Jp(e,t,n){return{type:"child_changed",snapshotNode:t,childName:e,oldSnap:n}}
1010/**
1011 * @license
1012 * Copyright 2017 Google LLC
1013 *
1014 * Licensed under the Apache License, Version 2.0 (the "License");
1015 * you may not use this file except in compliance with the License.
1016 * You may obtain a copy of the License at
1017 *
1018 *   http://www.apache.org/licenses/LICENSE-2.0
1019 *
1020 * Unless required by applicable law or agreed to in writing, software
1021 * distributed under the License is distributed on an "AS IS" BASIS,
1022 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1023 * See the License for the specific language governing permissions and
1024 * limitations under the License.
1025 */
1026class Qp{constructor(e){this.index_=e}updateChild(e,t,n,a,i,r){Su(e.isIndexed(this.index_),"A node must be indexed if only a child is updated");const o=e.getImmediateChild(t);return o.getChild(a).equals(n.getChild(a))&&o.isEmpty()===n.isEmpty()?e:(null!=r&&(n.isEmpty()?e.hasChild(t)?r.trackChildChange(Yp(t,o)):Su(e.isLeafNode(),"A child remove without an old child only makes sense on a leaf node"):o.isEmpty()?r.trackChildChange($p(t,n)):r.trackChildChange(Jp(t,n,o))),e.isLeafNode()&&n.isEmpty()?e:e.updateImmediateChild(t,n).withIndex(this.index_))}updateFullNode(e,t,n){return null!=n&&(e.isLeafNode()||e.forEachChild(Dp,(e,a)=>{t.hasChild(e)||n.trackChildChange(Yp(e,a))}),t.isLeafNode()||t.forEachChild(Dp,(t,a)=>{if(e.hasChild(t)){const i=e.getImmediateChild(t);i.equals(a)||n.trackChildChange(Jp(t,a,i))}else n.trackChildChange($p(t,a))})),t.withIndex(this.index_)}updatePriority(e,t){return e.isEmpty()?Hp.EMPTY_NODE:e.updatePriority(t)}filtersNodes(){return!1}getIndexedFilter(){return this}getIndex(){return this.index_}}
1027/**
1028 * @license
1029 * Copyright 2017 Google LLC
1030 *
1031 * Licensed under the Apache License, Version 2.0 (the "License");
1032 * you may not use this file except in compliance with the License.
1033 * You may obtain a copy of the License at
1034 *
1035 *   http://www.apache.org/licenses/LICENSE-2.0
1036 *
1037 * Unless required by applicable law or agreed to in writing, software
1038 * distributed under the License is distributed on an "AS IS" BASIS,
1039 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1040 * See the License for the specific language governing permissions and
1041 * limitations under the License.
1042 */class Zp{constructor(e){this.indexedFilter_=new Qp(e.getIndex()),this.index_=e.getIndex(),this.startPost_=Zp.getStartPost_(e),this.endPost_=Zp.getEndPost_(e),this.startIsInclusive_=!e.startAfterSet_,this.endIsInclusive_=!e.endBeforeSet_}getStartPost(){return this.startPost_}getEndPost(){return this.endPost_}matches(e){const t=this.startIsInclusive_?this.index_.compare(this.getStartPost(),e)<=0:this.index_.compare(this.getStartPost(),e)<0,n=this.endIsInclusive_?this.index_.compare(e,this.getEndPost())<=0:this.index_.compare(e,this.getEndPost())<0;return t&&n}updateChild(e,t,n,a,i,r){return this.matches(new yp(t,n))||(n=Hp.EMPTY_NODE),this.indexedFilter_.updateChild(e,t,n,a,i,r)}updateFullNode(e,t,n){t.isLeafNode()&&(t=Hp.EMPTY_NODE);let a=t.withIndex(this.index_);a=a.updatePriority(Hp.EMPTY_NODE);const i=this;return t.forEachChild(Dp,(e,t)=>{i.matches(new yp(e,t))||(a=a.updateImmediateChild(e,Hp.EMPTY_NODE))}),this.indexedFilter_.updateFullNode(e,a,n)}updatePriority(e,t){return e}filtersNodes(){return!0}getIndexedFilter(){return this.indexedFilter_}getIndex(){return this.index_}static getStartPost_(e){if(e.hasStart()){const t=e.getIndexStartName();return e.getIndex().makePost(e.getIndexStartValue(),t)}return e.getIndex().minPost()}static getEndPost_(e){if(e.hasEnd()){const t=e.getIndexEndName();return e.getIndex().makePost(e.getIndexEndValue(),t)}return e.getIndex().maxPost()}}
1043/**
1044 * @license
1045 * Copyright 2017 Google LLC
1046 *
1047 * Licensed under the Apache License, Version 2.0 (the "License");
vendor: 6,958 bytes, lines 1048-1080
1048 * you may not use this file except in compliance with the License.
1049 * You may obtain a copy of the License at
1050 *
1051 *   http://www.apache.org/licenses/LICENSE-2.0
1052 *
1053 * Unless required by applicable law or agreed to in writing, software
1054 * distributed under the License is distributed on an "AS IS" BASIS,
1055 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1056 * See the License for the specific language governing permissions and
1057 * limitations under the License.
1058 */class ef{constructor(e){this.withinDirectionalStart=e=>this.reverse_?this.withinEndPost(e):this.withinStartPost(e),this.withinDirectionalEnd=e=>this.reverse_?this.withinStartPost(e):this.withinEndPost(e),this.withinStartPost=e=>{const t=this.index_.compare(this.rangedFilter_.getStartPost(),e);return this.startIsInclusive_?t<=0:t<0},this.withinEndPost=e=>{const t=this.index_.compare(e,this.rangedFilter_.getEndPost());return this.endIsInclusive_?t<=0:t<0},this.rangedFilter_=new Zp(e),this.index_=e.getIndex(),this.limit_=e.getLimit(),this.reverse_=!e.isViewFromLeft(),this.startIsInclusive_=!e.startAfterSet_,this.endIsInclusive_=!e.endBeforeSet_}updateChild(e,t,n,a,i,r){return this.rangedFilter_.matches(new yp(t,n))||(n=Hp.EMPTY_NODE),e.getImmediateChild(t).equals(n)?e:e.numChildren()<this.limit_?this.rangedFilter_.getIndexedFilter().updateChild(e,t,n,a,i,r):this.fullLimitUpdateChild_(e,t,n,i,r)}updateFullNode(e,t,n){let a;if(t.isLeafNode()||t.isEmpty())a=Hp.EMPTY_NODE.withIndex(this.index_);else if(2*this.limit_<t.numChildren()&&t.isIndexed(this.index_)){let e;a=Hp.EMPTY_NODE.withIndex(this.index_),e=this.reverse_?t.getReverseIteratorFrom(this.rangedFilter_.getEndPost(),this.index_):t.getIteratorFrom(this.rangedFilter_.getStartPost(),this.index_);let n=0;for(;e.hasNext()&&n<this.limit_;){const t=e.getNext();if(this.withinDirectionalStart(t)){if(!this.withinDirectionalEnd(t))break;a=a.updateImmediateChild(t.name,t.node),n++}}}else{let e;a=t.withIndex(this.index_),a=a.updatePriority(Hp.EMPTY_NODE),e=this.reverse_?a.getReverseIterator(this.index_):a.getIterator(this.index_);let n=0;for(;e.hasNext();){const t=e.getNext();n<this.limit_&&this.withinDirectionalStart(t)&&this.withinDirectionalEnd(t)?n++:a=a.updateImmediateChild(t.name,Hp.EMPTY_NODE)}}return this.rangedFilter_.getIndexedFilter().updateFullNode(e,a,n)}updatePriority(e,t){return e}filtersNodes(){return!0}getIndexedFilter(){return this.rangedFilter_.getIndexedFilter()}getIndex(){return this.index_}fullLimitUpdateChild_(e,t,n,a,i){let r;if(this.reverse_){const e=this.index_.getCompare();r=(t,n)=>e(n,t)}else r=this.index_.getCompare();const o=e;Su(o.numChildren()===this.limit_,"");const s=new yp(t,n),l=this.reverse_?o.getFirstChild(this.index_):o.getLastChild(this.index_),u=this.rangedFilter_.matches(s);if(o.hasChild(t)){const e=o.getImmediateChild(t);let c=a.getChildAfterChild(this.index_,l,this.reverse_);for(;null!=c&&(c.name===t||o.hasChild(c.name));)c=a.getChildAfterChild(this.index_,c,this.reverse_);const d=null==c?1:r(c,s);if(u&&!n.isEmpty()&&d>=0)return null!=i&&i.trackChildChange(Jp(t,n,e)),o.updateImmediateChild(t,n);{null!=i&&i.trackChildChange(Yp(t,e));const n=o.updateImmediateChild(t,Hp.EMPTY_NODE);return null!=c&&this.rangedFilter_.matches(c)?(null!=i&&i.trackChildChange($p(c.name,c.node)),n.updateImmediateChild(c.name,c.node)):n}}return n.isEmpty()?e:u&&r(l,s)>=0?(null!=i&&(i.trackChildChange(Yp(l.name,l.node)),i.trackChildChange($p(t,n))),o.updateImmediateChild(t,n).updateImmediateChild(l.name,Hp.EMPTY_NODE)):e}}
1059/**
1060 * @license
1061 * Copyright 2017 Google LLC
1062 *
1063 * Licensed under the Apache License, Version 2.0 (the "License");
1064 * you may not use this file except in compliance with the License.
1065 * You may obtain a copy of the License at
1066 *
1067 *   http://www.apache.org/licenses/LICENSE-2.0
1068 *
1069 * Unless required by applicable law or agreed to in writing, software
1070 * distributed under the License is distributed on an "AS IS" BASIS,
1071 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1072 * See the License for the specific language governing permissions and
1073 * limitations under the License.
1074 */class tf{constructor(){this.limitSet_=!1,this.startSet_=!1,this.startNameSet_=!1,this.startAfterSet_=!1,this.endSet_=!1,this.endNameSet_=!1,this.endBeforeSet_=!1,this.limit_=0,this.viewFrom_="",this.indexStartValue_=null,this.indexStartName_="",this.indexEndValue_=null,this.indexEndName_="",this.index_=Dp}hasStart(){return this.startSet_}isViewFromLeft(){return""===this.viewFrom_?this.startSet_:"l"===this.viewFrom_}getIndexStartValue(){return Su(this.startSet_,"Only valid if start has been set"),this.indexStartValue_}getIndexStartName(){return Su(this.startSet_,"Only valid if start has been set"),this.startNameSet_?this.indexStartName_:mh}hasEnd(){return this.endSet_}getIndexEndValue(){return Su(this.endSet_,"Only valid if end has been set"),this.indexEndValue_}getIndexEndName(){return Su(this.endSet_,"Only valid if end has been set"),this.endNameSet_?this.indexEndName_:vh}hasLimit(){return this.limitSet_}hasAnchoredLimit(){return this.limitSet_&&""!==this.viewFrom_}getLimit(){return Su(this.limitSet_,"Only valid if limit has been set"),this.limit_}getIndex(){return this.index_}loadsAllData(){return!(this.startSet_||this.endSet_||this.limitSet_)}isDefault(){return this.loadsAllData()&&this.index_===Dp}copy(){const e=new tf;return e.limitSet_=this.limitSet_,e.limit_=this.limit_,e.startSet_=this.startSet_,e.startAfterSet_=this.startAfterSet_,e.indexStartValue_=this.indexStartValue_,e.startNameSet_=this.startNameSet_,e.indexStartName_=this.indexStartName_,e.endSet_=this.endSet_,e.endBeforeSet_=this.endBeforeSet_,e.indexEndValue_=this.indexEndValue_,e.endNameSet_=this.endNameSet_,e.indexEndName_=this.indexEndName_,e.index_=this.index_,e.viewFrom_=this.viewFrom_,e}}function nf(e,t){const n=e.copy();return n.index_=t,n}function af(e){const t={};if(e.isDefault())return t;let n;if(e.index_===Dp?n="$priority":e.index_===Gp?n="$value":e.index_===kp?n="$key":(Su(e.index_ instanceof Wp,"Unrecognized index type!"),n=e.index_.toString()),t.orderBy=ac(n),e.startSet_){const n=e.startAfterSet_?"startAfter":"startAt";t[n]=ac(e.indexStartValue_),e.startNameSet_&&(t[n]+=","+ac(e.indexStartName_))}if(e.endSet_){const n=e.endBeforeSet_?"endBefore":"endAt";t[n]=ac(e.indexEndValue_),e.endNameSet_&&(t[n]+=","+ac(e.indexEndName_))}return e.limitSet_&&(e.isViewFromLeft()?t.limitToFirst=e.limit_:t.limitToLast=e.limit_),t}function rf(e){const t={};if(e.startSet_&&(t.sp=e.indexStartValue_,e.startNameSet_&&(t.sn=e.indexStartName_),t.sin=!e.startAfterSet_),e.endSet_&&(t.ep=e.indexEndValue_,e.endNameSet_&&(t.en=e.indexEndName_),t.ein=!e.endBeforeSet_),e.limitSet_){t.l=e.limit_;let n=e.viewFrom_;""===n&&(n=e.isViewFromLeft()?"l":"r"),t.vf=n}return e.index_!==Dp&&(t.i=e.index_.toString()),t}
1075/**
1076 * @license
1077 * Copyright 2017 Google LLC
1078 *
1079 * Licensed under the Apache License, Version 2.0 (the "License");
1080 * you may 
1080not use this file except in compliance with the License.
1081 * You may obtain a copy of the License at
1082 *
1083 *   http://www.apache.org/licenses/LICENSE-2.0
1084 *
1085 * Unless required by applicable law or agreed to in writing, software
1086 * distributed under the License is distributed on an "AS IS" BASIS,
1087 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1088 * See the License for the specific language governing permissions and
1089 * limitations under the License.
1090 */class of extends $h{reportStats(e){throw new Error("Method not implemented.")}static getListenId_(e,t){return void 0!==t?"tag$"+t:(Su(e._queryParams.isDefault(),"should have a tag if it's not a default query."),e._path.toString())}constructor(e,t,n,a){super(),this.repoInfo_=e,this.onDataUpdate_=t,this.authTokenProvider_=n,this.appCheckTokenProvider_=a,this.log_=ch("p:rest:"),this.listens_={}}listen(e,t,n,a){const i=e._path.toString();this.log_("Listen called for "+i+" "+e._queryIdentifier);const r=of.getListenId_(e,n),o={};this.listens_[r]=o;const s=af(e._queryParams);this.restRequest_(i+".json",s,(e,t)=>{let s=t;if(404===e&&(s=null,e=null),null===e&&this.onDataUpdate_(i,s,!1,n),oc(this.listens_,r)===o){let t;t=e?401===e?"permission_denied":"rest_error:"+e:"ok",a(t,null)}})}unlisten(e,t){const n=of.getListenId_(e,t);delete this.listens_[n]}get(e){const t=af(e._queryParams),n=e._path.toString(),a=new ju;return this.restRequest_(n+".json",t,(e,t)=>{let i=t;404===e&&(i=null,e=null),null===e?(this.onDataUpdate_(n,i,!1,null),a.resolve(i)):a.reject(new Error(i))}),a.promise}refreshAuthToken(e){}restRequest_(e,t={},n){return t.format="export",Promise.all([this.authTokenProvider_.getToken(!1),this.appCheckTokenProvider_.getToken(!1)]).then(([a,i])=>{a&&a.accessToken&&(t.auth=a.accessToken),i&&i.token&&(t.ac=i.token);const r=(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host+e+"?ns="+this.repoInfo_.namespace+dc(t);this.log_("Sending REST request for "+r);const o=new XMLHttpRequest;o.onreadystatechange=()=>{if(n&&4===o.readyState){this.log_("REST Response for "+r+" received. status:",o.status,"response:",o.responseText);let e=null;if(o.status>=200&&o.status<300){try{e=nc(o.responseText)}catch(w7){ph("Failed to parse JSON response for "+r+": "+o.responseText)}n(null,e)}else 401!==o.status&&404!==o.status&&ph("Got unsuccessful REST response for "+r+" Status: "+o.status),n(o.status);n=null}},o.open("GET",r,!0),o.send()})}}
1091/**
1092 * @license
1093 * Copyright 2017 Google LLC
1094 *
1095 * Licensed under the Apache License, Version 2.0 (the "License");
1096 * you may not use this file except in compliance with the License.
1097 * You may obtain a copy of the License at
1098 *
1099 *   http://www.apache.org/licenses/LICENSE-2.0
1100 *
1101 * Unless required by applicable law or agreed to in writing, software
1102 * distributed under the License is distributed on an "AS IS" BASIS,
1103 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1104 * See the License for the specific language governing permissions and
1105 * limitations under the License.
1106 */class sf{constructor(){this.rootNode_=Hp.EMPTY_NODE}getNode(e){return this.rootNode_.getChild(e)}updateSnapshot(e,t){this.rootNode_=this.rootNode_.updateChild(e,t)}}
1107/**
1108 * @license
1109 * Copyright 2017 Google LLC
1110 *
1111 * Licensed under the Apache License, Version 2.0 (the "License");
1112 * you may not use this file except in compliance with the License.
1113 * You may obtain a copy of the License at
1114 *
1115 *   http://www.apache.org/licenses/LICENSE-2.0
1116 *
1117 * Unless required by applicable law or agreed to in writing, software
1118 * distributed under the License is distributed on an "AS IS" BASIS,
1119 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1120 * See the License for the specific language governing permissions and
1121 * limitations under the License.
1122 */function lf(){return{value:null,children:new Map}}function uf(e,t,n){if(sp(t))e.value=n,e.children.clear();else if(null!==e.value)e.value=e.value.updateChild(t,n);else{const a=ep(t);e.children.has(a)||e.children.set(a,lf());uf(e.children.get(a),t=np(t),n)}}function cf(e,t){if(sp(t))return e.value=null,e.children.clear(),!0;if(null!==e.value){if(e.value.isLeafNode())return!1;{const n=e.value;
1122return e.value=null,n.forEachChild(Dp,(t,n)=>{uf(e,new Qh(t),n)}),cf(e,t)}}if(e.children.size>0){const n=ep(t);if(t=np(t),e.children.has(n)){cf(e.children.get(n),t)&&e.children.delete(n)}return 0===e.children.size}return!0}function df(e,t,n){null!==e.value?n(t,e.value):function(e,t){e.children.forEach((e,n)=>{t(n,e)})}
1123/**
1124 * @license
1125 * Copyright 2017 Google LLC
1126 *
1127 * Licensed under the Apache License, Version 2.0 (the "License");
1128 * you may not use this file except in compliance with the License.
1129 * You may obtain a copy of the License at
1130 *
1131 *   http://www.apache.org/licenses/LICENSE-2.0
1132 *
1133 * Unless required by applicable law or agreed to in writing, software
1134 * distributed under the License is distributed on an "AS IS" BASIS,
1135 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1136 * See the License for the specific language governing permissions and
1137 * limitations under the License.
1138 */(e,(e,a)=>{df(a,new Qh(t.toString()+"/"+e),n)})}class hf{constructor(e){this.collection_=e,this.last_=null}get(){const e=this.collection_.get(),t={...e};return this.last_&&kh(this.last_,(e,n)=>{t[e]=t[e]-n}),this.last_=e,t}}
1139/**
1140 * @license
1141 * Copyright 2017 Google LLC
1142 *
1143 * Licensed under the Apache License, Version 2.0 (the "License");
1144 * you may not use this file except in compliance with the License.
1145 * You may obtain a copy of the License at
1146 *
1147 *   http://www.apache.org/licenses/LICENSE-2.0
1148 *
1149 * Unless required by applicable law or agreed to in writing, software
1150 * distributed under the License is distributed on an "AS IS" BASIS,
1151 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1152 * See the License for the specific language governing permissions and
1153 * limitations under the License.
1154 */class pf{constructor(e,t){this.server_=t,this.statsToReport_={},this.statsListener_=new hf(e);const n=1e4+2e4*Math.random();Eh(this.reportStats_.bind(this),Math.floor(n))}reportStats_(){const e=this.statsListener_.get(),t={};let n=!1;kh(e,(e,a)=>{a>0&&rc(this.statsToReport_,e)&&(t[e]=a,n=!0)}),n&&this.server_.reportStats(t),Eh(this.reportStats_.bind(this),Math.floor(2*Math.random()*3e5))}}
1155/**
1156 * @license
1157 * Copyright 2017 Google LLC
1158 *
1159 * Licensed under the Apache License, Version 2.0 (the "License");
1160 * you may not use this file except in compliance with the License.
1161 * You may obtain a copy of the License at
1162 *
1163 *   http://www.apache.org/licenses/LICENSE-2.0
1164 *
1165 * Unless required by applicable law or agreed to in writing, software
1166 * distributed under the License is distributed on an "AS IS" BASIS,
1167 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1168 * See the License for the specific language governing permissions and
1169 * limitations under the License.
1170 */var ff,mf;function vf(e){return{fromUser:!1,fromServer:!0,queryId:e,tagged:!0}}
1171/**
1172 * @license
1173 * Copyright 2017 Google LLC
1174 *
1175 * Licensed under the Apache License, Version 2.0 (the "License");
1176 * you may not use this file except in compliance with the License.
1177 * You may obtain a copy of the License at
1178 *
1179 *   http://www.apache.org/licenses/LICENSE-2.0
1180 *
1181 * Unless required by applicable law or agreed to in writing, software
1182 * distributed under the License is distributed on an "AS IS" BASIS,
1183 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1184 * See the License for the specific language governing permissions and
1185 * limitations under the License.
1186 */(mf=ff||(ff={}))[mf.OVERWRITE=0]="OVERWRITE",mf[mf.MERGE=1]="MERGE",mf[mf.ACK_USER_WRITE=2]="ACK_USER_WRITE",mf[mf.LISTEN_COMPLETE=3]="LISTEN_COMPLETE";class gf{constructor(e,t,n){this.path=e,this.affectedTree=t,this.revert=n,this.type=ff.ACK_USER_WRITE,this.source={fromUser:!0,fromServer:!1,queryId:null,tagged:!1}}operationForChild(e){if(sp(this.path)){if(null!=this.affectedTree.value)return Su(this.affectedTree.children.isEmpty(),"affectedTree should not have overlapping affected paths."),this;{const t=this.affectedTree.subtree(new Qh(e));return new gf(Zh(),t,this.revert)}}return Su(ep(this.path)===e,"operationForChild called for unrelated child."),new gf(np(this.path),this.affectedTree,this.revert)}}
1187/**
1188 * @license
1189 * Copyright 2017 Google LLC
1190 *
1191 * Licensed under the Apache License, Version 2.0 (the "License");
1192 * you may not use this file except in compliance with the License.
1193 * You may obtain a copy of the License at
1194 *
1195 *   http://www.apache.org/licenses/LICENSE-2.0
1196 *
1197 * Unless required by applicable law or agreed to in writing, software
1198 * distributed under the License is distributed on an "AS IS" BASIS,
1199 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1200 * See the License for the specific language governing permissions and
1201 * limitations under the License.
1202 */class yf{constructor(e,t){this.source=e,this.path=t,this.type=ff.LISTEN_COMPLETE}operationForChild(e){return sp(this.path)?new yf(this.source,Zh()):new yf(this.source,np(this.path))}}
1203/**
1204 * @license
1205 * Copyright 2017 Google LLC
1206 *
1207 * Licensed under the Apache License, Version 2.0 (the "License");
1208 * you may not use this file except in compliance with the License.
1209 * You may obtain a copy of the License at
1210 *
1211 *   http://www.apache.org/licenses/LICENSE-2.0
1212 *
1213 * Unless required by applicable law or agreed to in writing, software
1214 * distributed under the License is distributed on an "AS IS" BASIS,
1215 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1216 * See the License for the specific language governing permissions and
1217 * limitations under the License.
1218 */class bf{constructor(e,t,n){this.source=e,this.path=t,this.snap=n,this.type=ff.OVERWRITE}operationForChild(e){return sp(this.path)?new bf(this.source,Zh(),this.snap.getImmediateChild(e)):new bf(this.source,np(this.path),this.snap)}}
1219/**
1220 * @license
1221 * Copyright 2017 Google LLC
1222 *
1223 * Licensed under the Apache License, Version 2.0 (the "License");
1224 * you may not use this file except in compliance with the License.
1225 * You may obtain a copy of the License at
1226 *
1227 *   http://www.apache.org/licenses/LICENSE-2.0
1228 *
1229 * Unless required by applicable law or agreed to in writing, software
1230 * distributed under the License is distributed on an "AS IS" BASIS,
1231 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1232 * See the License for the specific language governing permissions and
1233 * limitations under the License.
1234 */class _f{constructor(e,t,n){this.source=e,this.path=t,this.children=n,this.type=ff.MERGE}operationForChild(e){if(sp(this.path)){const t=this.children.subtree(new Qh(e));return t.isEmpty()?null:t.value?new bf(this.source,Zh(),t.value):new _f(this.source,Zh(),t)}return Su(ep(this.path)===e,"Can't get a merge for a child not on the path of the operation"),new _f(this.source,np(this.path),this.children)}toString(){return"Operation("+this.path+": "+this.source.toString()+" merge: "+this.children.toString()+")"}}
1235/**
1236 * @license
1237 * Copyright 2017 Google LLC
1238 *
1239 * Licensed under the Apache License, Version 2.0 (the "License");
1240 * you may not use this file except in compliance with the License.
1241 * You may obtain a copy of the License at
1242 *
1243 *   http://www.apache.org/licenses/LICENSE-2.0
1244 *
1245 * Unless required by applicable law or agreed to in writing, software
1246 * distributed under the License is distributed on an "AS IS" BASIS,
1247 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1248 * See the License for the specific language governing permissions and
1249 * limitations under the License.
1250 */class wf{constructor(e,t,n){this.node_=e,this.fullyInitialized_=t,this.filtered_=n}isFullyInitialized(){return this.fullyInitialized_}isFiltered(){return this.filtered_}isCompleteForPath(e){if(sp(e))return this.isFullyInitialized()&&!this.filtered_;const t=ep(e);return this.isCompleteForChild(t)}isCompleteForChild(e){return this.isFullyInitialized()&&!this.filtered_||this.node_.hasChild(e)}getNode(){return this.node_}}
1251/**
1252 * @license
1253 * Copyright 2017 Google LLC
1254 *
1255 * Licensed under the Apache License, Version 2.0 (the "License");
1256 * you may not use this file except in compliance with the License.
1257 * You may obtain a copy of the License at
1258 *
1259 *   http://www.apache.org/licenses/LICENSE-2.0
1260 *
1261 * Unless required by applicable law or agreed to in writing, software
1262 * distributed under the License is distributed on an "AS IS" BASIS,
1263 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1264 * See the License for the specific language governing permissions and
1265 * limitations under the License.
1266 */class kf{constructor(e){this.query_=e,this.index_=this.query_._queryParams.getIndex()}}function Cf(e,t,n,a,i,r){const o=a.filter(e=>e.type===n);o.sort((t,n)=>function(e,t,n){if(null==t.childName||null==n.childName)throw Tu("Should only compare child_ events.");const a=new yp(t.childName,t.snapshotNode),i=new yp(n.childName,n.snapshotNode);return e.index_.compare(a,i)}
1267/**
1268 * @license
1269 * Copyright 2017 Google LLC
1270 *
1271 * Licensed under the Apache License, Version 2.0 (the "License");
1272 * you may not use this file except in compliance with the License.
1273 * You may obtain a copy of the License at
1274 *
1275 *   http://www.apache.org/licenses/LICENSE-2.0
1276 *
1277 * Unless required by applicable law or agreed to in writing, software
1278 * distributed under the License is distributed on an "AS IS" BASIS,
1279 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1280 * See the License for the specific language governing permissions and
1281 * limitations under the License.
1282 */(e,t,n)),o.forEach(n=>{const a=function(e,t,n){return"value"===t.type||"child_removed"===t.type||(t.prevName=n.getPredecessorChildName(t.childName,t.snapshotNode,e.index_)),t}(e,n,r);i.forEach(i=>{i.respondsTo(n.type)&&t.push(i.createEvent(a,e.query_))})})}function Sf(e,t){return{eventCache:e,serverCache:t}}function Tf(e,t,n,a){return Sf(new wf(t,n,a),e.serverCache)}function Af(e,t,n,a){return Sf(e.eventCache,new wf(t,n,a))}function Ef(e){return e.eventCache.isFullyInitialized()?e.eventCache.getNode():null}function If(e){return e.serverCache.isFullyInitialized()?e.serverCache.getNode():null}
1283/**
1284 * @license
1285 * Copyright 2017 Google LLC
1286 *
1287 * Licensed under the Apache License, Version 2.0 (the "License");
1288 * you may not use this file except in compliance with the License.
1289 * You may obtain a copy of the License at
1290 *
1291 *   http://www.apache.org/licenses/LICENSE-2.0
1292 *
1293 * Unless required by applicable law or agreed to in writing, software
1294 * distributed under the License is distributed on an "AS IS" BASIS,
1295 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1296 * See the License for the specific language governing permissions and
1297 * limitations under the License.
1298 */let xf;class Nf{static fromObject(e){let t=new Nf(null);return kh(e,(e,n)=>{t=t.set(new Qh(e),n)}),t}constructor(e,t=(()=>(xf||(xf=new Ap(yh)),xf))()){this.value=e,this.children=t}isEmpty(){return null===this.value&&this.children.isEmpty()}findRootMostMatchingPathAndValue(e,t){if(null!=this.value&&t(this.value))return{path:Zh(),value:this.value};if(sp(e))return null;{const n=ep(e),a=this.children.get(n);if(null!==a){const i=a.findRootMostMatchingPathAndValue(np(e),t);if(null!=i){return{path:op(new Qh(n),i.path),value:i.value}}return null}return null}}findRootMostValueAndPath(e){return this.findRootMostMatchingPathAndValue(e,()=>!0)}subtree(e){if(sp(e))return this;{const t=ep(e),n=this.children.get(t);return null!==n?n.subtree(np(e)):new Nf(null)}}set(e,t){if(sp(e))return new Nf(t,this.children);{const n=ep(e),a=(this.children.get(n)||new Nf(null)).set(np(e),t),i=this.children.insert(n,a);return new Nf(this.value,i)}}remove(e){if(sp(e))return this.children.isEmpty()?new Nf(null):new Nf(null,this.children);{const t=ep(e),n=this.children.get(t);if(n){const a=n.remove(np(e));let i;return i=a.isEmpty()?this.children.remove(t):this.children.insert(t,a),null===this.value&&i.isEmpty()?new Nf(null):new Nf(this.value,i)}return this}}get(e){if(sp(e))return this.value;{const t=ep(e),n=this.children.get(t);return n?n.get(np(e)):null}}setTree(e,t){if(sp(e))return t;{const n=ep(e),a=(this.children.get(n)||new Nf(null)).setTree(np(e),t);let i;return i=a.isEmpty()?this.children.remove(n):this.children.insert(n,a),new Nf(this.value,i)}}fold(e){return this.fold_(Zh(),e)}fold_(e,t){const n={};return this.children.inorderTraversal((a,i)=>{n[a]=i.fold_(op(e,a),t)}),t(e,this.value,n)}findOnPath(e,t){return this.findOnPath_(e,Zh(),t)}findOnPath_(e,t,n){const a=!!this.value&&n(t,this.value);if(a)return a;if(sp(e))return null;{const a=ep(e),i=this.children.get(a);return i?i.findOnPath_(np(e),op(t,a),n):null}}foreachOnPath(e,t){return this.foreachOnPath_(e,Zh(),t)}foreachOnPath_(e,t,n){if(sp(e))return this;{this.value&&n(t,this.value);const a=ep(e),i=this.children.get(a);return i?i.foreachOnPath_(np(e),op(t,a),n):new Nf(null)}}foreach(e){this.foreach_(Zh(),e)}foreach_(e,t){this.children.inorderTraversal((n,a)=>{a.foreach_(op(e,n),t)}),this.value&&t(e,this.value)}foreachChild(e){this.children.inorderTraversal((t,n)=>{n.value&&e(t,n.value)})}}
1299/**
1300 * @license
1301 * Copyright 2017 Google LLC
1302 *
1303 * Licensed under the Apache License, Version 2.0 (the "License");
1304 * you may not use this file except in compliance with the License.
1305 * You may obtain a copy of the License at
1306 *
1307 *   http://www.apache.org/licenses/LICENSE-2.0
1308 *
1309 * Unless required by applicable law or agreed to in writing, software
1310 * distributed under the License is distributed on an "AS IS" BASIS,
1311 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1312 * See the License for the specific language governing permissions and
1313 * limitations under the License.
1314 */class Pf{constructor(e){this.writeTree_=e}static empty(){return new Pf(new Nf(null))}}function Mf(e,t,n){if(sp(t))return new Pf(new Nf(n));{const a=e.writeTree_.findRootMostValueAndPath(t);if(null!=a){const i=a.path;let r=a.value;const o=lp(i,t);return r=r.updateChild(o,n),new Pf(e.writeTree_.set(i,r))}{const a=new Nf(n),i=e.writeTree_.setTree(t,a);return new Pf(i)}}}function Of(e,t,n){let a=e;return kh(n,(e,n)=>{a=Mf(a,op(t,e),n)}),a}function Rf(e,t){if(sp(t))return Pf.empty();{const n=e.writeTree_.setTree(t,new Nf(null));return new Pf(n)}}function Df(e,t){return null!=Lf(e,t)}function Lf(e,t){const n=e.writeTree_.findRootMostValueAndPath(t);return null!=n?e.writeTree_.get(n.path).getChild(lp(n.path,t)):null}function Bf(e){const t=[],n=e.writeTree_.value;return null!=n?n.isLeafNode()||n.forEachChild(Dp,(e,n)=>{t.push(new yp(e,n))}):e.writeTree_.children.inorderTraversal((e,n)=>{null!=n.value&&t.push(new yp(e,n.value))}),t}function Ff(e,t){if(sp(t))return e;{const n=Lf(e,t);return new Pf(null!=n?new Nf(n):e.writeTree_.subtree(t))}}function Vf(e){return e.writeTree_.isEmpty()}function Xf(e,t){return jf(Zh(),e.writeTree_,t)}function jf(e,t,n){if(null!=t.value)return n.updateChild(e,t.value);{let a=null;return t.children.inorderTraversal((t,i)=>{".priority"===t?(Su(null!==i.value,"Priority writes must always be leaf nodes"),a=i.value):n=jf(op(e,t),i,n)}),n.getChild(e).isEmpty()||null===a||(n=n.updateChild(op(e,".priority"),a)),n}}
1315/**
1316 * @license
1317 * Copyright 2017 Google LLC
1318 *
1319 * Licensed under the Apache License, Version 2.0 (the "License");
1320 * you may not use this file except in compliance with the License.
1321 * You may obtain a copy of the License at
1322 *
1323 *   http://www.apache.org/licenses/LICENSE-2.0
1324 *
1325 * Unless required by applicable law or agreed to in writing, software
1326 * distributed under the License is distributed on an "AS IS" BASIS,
1327 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1328 * See the License for the specific language governing permissions and
1329 * limitations under the License.
1330 */function Uf(e,t){return tm(t,e)}function Hf(e,t){const n=e.allWrites.findIndex(e=>e.writeId===t);Su(n>=0,"removeWrite called with nonexistent writeId.");const a=e.allWrites[n];e.allWrites.splice(n,1);let i=a.visible,r=!1,o=e.allWrites.length-1;for(;i&&o>=0;){const t=e.allWrites[o];t.visible&&(o>=n&&zf(t,a.path)?i=!1:dp(a.path,t.path)&&(r=!0)),o--}if(i){if(r)return function(e){e.visibleWrites=Wf(e.allWrites,Kf,Zh()),e.allWrites.length>0?e.lastWriteId=e.allWrites[e.allWrites.length-1].writeId:e.lastWriteId=-1}(e),!0;if(a.snap)e.visibleWrites=Rf(e.visibleWrites,a.path);else{kh(a.children,t=>{e.visibleWrites=Rf(e.visibleWrites,op(a.path,t))})}return!0}return!1}function zf(e,t){if(e.snap)return dp(e.path,t);for(const n in e.children)if(e.children.hasOwnProperty(n)&&dp(op(e.path,n),t))return!0;return!1}function Kf(e){return e.visible}function Wf(e,t,n){let a=Pf.empty();for(let i=0;i<e.length;++i){const r=e[i];if(t(r)){const e=r.path;let t;if(r.snap)dp(n,e)?(t=lp(n,e),a=Mf(a,t,r.snap)):dp(e,n)&&(t=lp(e,n),a=Mf(a,Zh(),r.snap.getChild(t)));else{if(!r.children)throw Tu("WriteRecord should have .snap or .children");if(dp(n,e))t=lp(n,e),a=Of(a,t,r.children);else if(dp(e,n))if(t=lp(e,n),sp(t))a=Of(a,Zh(),r.children);else{const e=oc(r.children,ep(t));if(e){const n=e.getChild(np(t));a=Mf(a,Zh(),n)}}}}}return a}function Gf(e,t,n,a,i){if(a||i){const r=Ff(e.visibleWrites,t);if(!i&&Vf(r))return n;if(i||null!=n||Df(r,Zh())){const r=function(e){return(e.visible||i)&&(!a||!~a.indexOf(e.writeId))&&(dp(e.path,t)||dp(t,e.path))};return Xf(Wf(e.allWrites,r,t),n||Hp.EMPTY_NODE)}return null}{const a=Lf(e.visibleWrites,t);
vendor: 15,178 bytes, lines 1330-1410
1330if(null!=a)return a;{const a=Ff(e.visibleWrites,t);if(Vf(a))return n;if(null!=n||Df(a,Zh())){return Xf(a,n||Hp.EMPTY_NODE)}return null}}}function qf(e,t,n,a){return Gf(e.writeTree,e.treePath,t,n,a)}function $f(e,t){return function(e,t,n){let a=Hp.EMPTY_NODE;const i=Lf(e.visibleWrites,t);if(i)return i.isLeafNode()||i.forEachChild(Dp,(e,t)=>{a=a.updateImmediateChild(e,t)}),a;if(n){const i=Ff(e.visibleWrites,t);return n.forEachChild(Dp,(e,t)=>{const n=Xf(Ff(i,new Qh(e)),t);a=a.updateImmediateChild(e,n)}),Bf(i).forEach(e=>{a=a.updateImmediateChild(e.name,e.node)}),a}return Bf(Ff(e.visibleWrites,t)).forEach(e=>{a=a.updateImmediateChild(e.name,e.node)}),a}(e.writeTree,e.treePath,t)}function Yf(e,t,n,a){return function(e,t,n,a,i){Su(a||i,"Either existingEventSnap or existingServerSnap must exist");const r=op(t,n);if(Df(e.visibleWrites,r))return null;{const t=Ff(e.visibleWrites,r);return Vf(t)?i.getChild(n):Xf(t,i.getChild(n))}}(e.writeTree,e.treePath,t,n,a)}function Jf(e,t){return function(e,t){return Lf(e.visibleWrites,t)}(e.writeTree,op(e.treePath,t))}function Qf(e,t,n,a,i,r){return function(e,t,n,a,i,r,o){let s;const l=Ff(e.visibleWrites,t),u=Lf(l,Zh());if(null!=u)s=u;else{if(null==n)return[];s=Xf(l,n)}if(s=s.withIndex(o),s.isEmpty()||s.isLeafNode())return[];{const e=[],t=o.getCompare(),n=r?s.getReverseIteratorFrom(a,o):s.getIteratorFrom(a,o);let l=n.getNext();for(;l&&e.length<i;)0!==t(l,a)&&e.push(l),l=n.getNext();return e}}(e.writeTree,e.treePath,t,n,a,i,r)}function Zf(e,t,n){return function(e,t,n,a){const i=op(t,n),r=Lf(e.visibleWrites,i);if(null!=r)return r;if(a.isCompleteForChild(n))return Xf(Ff(e.visibleWrites,i),a.getNode().getImmediateChild(n));return null}(e.writeTree,e.treePath,t,n)}function em(e,t){return tm(op(e.treePath,t),e.writeTree)}function tm(e,t){return{treePath:e,writeTree:t}}
1331/**
1332 * @license
1333 * Copyright 2017 Google LLC
1334 *
1335 * Licensed under the Apache License, Version 2.0 (the "License");
1336 * you may not use this file except in compliance with the License.
1337 * You may obtain a copy of the License at
1338 *
1339 *   http://www.apache.org/licenses/LICENSE-2.0
1340 *
1341 * Unless required by applicable law or agreed to in writing, software
1342 * distributed under the License is distributed on an "AS IS" BASIS,
1343 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1344 * See the License for the specific language governing permissions and
1345 * limitations under the License.
1346 */class nm{constructor(){this.changeMap=new Map}trackChildChange(e){const t=e.type,n=e.childName;Su("child_added"===t||"child_changed"===t||"child_removed"===t,"Only child changes supported for tracking"),Su(".priority"!==n,"Only non-priority child changes can be tracked.");const a=this.changeMap.get(n);if(a){const i=a.type;if("child_added"===t&&"child_removed"===i)this.changeMap.set(n,Jp(n,e.snapshotNode,a.snapshotNode));else if("child_removed"===t&&"child_added"===i)this.changeMap.delete(n);else if("child_removed"===t&&"child_changed"===i)this.changeMap.set(n,Yp(n,a.oldSnap));else if("child_changed"===t&&"child_added"===i)this.changeMap.set(n,$p(n,e.snapshotNode));else{if("child_changed"!==t||"child_changed"!==i)throw Tu("Illegal combination of changes: "+e+" occurred after "+a);this.changeMap.set(n,Jp(n,e.snapshotNode,a.oldSnap))}}else this.changeMap.set(n,e)}getChanges(){return Array.from(this.changeMap.values())}}
1347/**
1348 * @license
1349 * Copyright 2017 Google LLC
1350 *
1351 * Licensed under the Apache License, Version 2.0 (the "License");
1352 * you may not use this file except in compliance with the License.
1353 * You may obtain a copy of the License at
1354 *
1355 *   http://www.apache.org/licenses/LICENSE-2.0
1356 *
1357 * Unless required by applicable law or agreed to in writing, software
1358 * distributed under the License is distributed on an "AS IS" BASIS,
1359 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1360 * See the License for the specific language governing permissions and
1361 * limitations under the License.
1362 */const am=new class{getCompleteChild(e){return null}getChildAfterChild(e,t,n){return null}};class im{constructor(e,t,n=null){this.writes_=e,this.viewCache_=t,this.optCompleteServerCache_=n}getCompleteChild(e){const t=this.viewCache_.eventCache;if(t.isCompleteForChild(e))return t.getNode().getImmediateChild(e);{const t=null!=this.optCompleteServerCache_?new wf(this.optCompleteServerCache_,!0,!1):this.viewCache_.serverCache;return Zf(this.writes_,e,t)}}getChildAfterChild(e,t,n){const a=null!=this.optCompleteServerCache_?this.optCompleteServerCache_:If(this.viewCache_),i=Qf(this.writes_,a,t,1,n,e);return 0===i.length?null:i[0]}}
1363/**
1364 * @license
1365 * Copyright 2017 Google LLC
1366 *
1367 * Licensed under the Apache License, Version 2.0 (the "License");
1368 * you may not use this file except in compliance with the License.
1369 * You may obtain a copy of the License at
1370 *
1371 *   http://www.apache.org/licenses/LICENSE-2.0
1372 *
1373 * Unless required by applicable law or agreed to in writing, software
1374 * distributed under the License is distributed on an "AS IS" BASIS,
1375 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1376 * See the License for the specific language governing permissions and
1377 * limitations under the License.
1378 */function rm(e,t,n,a,i){const r=new nm;let o,s;if(n.type===ff.OVERWRITE){const l=n;l.source.fromUser?o=lm(e,t,l.path,l.snap,a,i,r):(Su(l.source.fromServer,"Unknown source."),s=l.source.tagged||t.serverCache.isFiltered()&&!sp(l.path),o=sm(e,t,l.path,l.snap,a,i,s,r))}else if(n.type===ff.MERGE){const l=n;l.source.fromUser?o=function(e,t,n,a,i,r,o){let s=t;return a.foreach((a,l)=>{const u=op(n,a);um(t,ep(u))&&(s=lm(e,s,u,l,i,r,o))}),a.foreach((a,l)=>{const u=op(n,a);um(t,ep(u))||(s=lm(e,s,u,l,i,r,o))}),s}(e,t,l.path,l.children,a,i,r):(Su(l.source.fromServer,"Unknown source."),s=l.source.tagged||t.serverCache.isFiltered(),o=dm(e,t,l.path,l.children,a,i,s,r))}else if(n.type===ff.ACK_USER_WRITE){const s=n;o=s.revert?function(e,t,n,a,i,r){let o;if(null!=Jf(a,n))return t;{const s=new im(a,t,i),l=t.eventCache.getNode();let u;if(sp(n)||".priority"===ep(n)){let n;if(t.serverCache.isFullyInitialized())n=qf(a,If(t));else{const e=t.serverCache.getNode();Su(e instanceof Hp,"serverChildren would be complete if leaf node"),n=$f(a,e)}u=e.filter.updateFullNode(l,n,r)}else{const i=ep(n);let c=Zf(a,i,t.serverCache);null==c&&t.serverCache.isCompleteForChild(i)&&(c=l.getImmediateChild(i)),u=null!=c?e.filter.updateChild(l,i,c,np(n),s,r):t.eventCache.getNode().hasChild(i)?e.filter.updateChild(l,i,Hp.EMPTY_NODE,np(n),s,r):l,u.isEmpty()&&t.serverCache.isFullyInitialized()&&(o=qf(a,If(t)),o.isLeafNode()&&(u=e.filter.updateFullNode(u,o,r)))}return o=t.serverCache.isFullyInitialized()||null!=Jf(a,Zh()),Tf(t,u,o,e.filter.filtersNodes())}}
1379/**
1380 * @license
1381 * Copyright 2017 Google LLC
1382 *
1383 * Licensed under the Apache License, Version 2.0 (the "License");
1384 * you may not use this file except in compliance with the License.
1385 * You may obtain a copy of the License at
1386 *
1387 *   http://www.apache.org/licenses/LICENSE-2.0
1388 *
1389 * Unless required by applicable law or agreed to in writing, software
1390 * distributed under the License is distributed on an "AS IS" BASIS,
1391 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1392 * See the License for the specific language governing permissions and
1393 * limitations under the License.
1394 */(e,t,s.path,a,i,r):function(e,t,n,a,i,r,o){if(null!=Jf(i,n))return t;const s=t.serverCache.isFiltered(),l=t.serverCache;if(null!=a.value){if(sp(n)&&l.isFullyInitialized()||l.isCompleteForPath(n))return sm(e,t,n,l.getNode().getChild(n),i,r,s,o);if(sp(n)){let a=new Nf(null);return l.getNode().forEachChild(kp,(e,t)=>{a=a.set(new Qh(e),t)}),dm(e,t,n,a,i,r,s,o)}return t}{let u=new Nf(null);return a.foreach((e,t)=>{const a=op(n,e);l.isCompleteForPath(a)&&(u=u.set(e,l.getNode().getChild(a)))}),dm(e,t,n,u,i,r,s,o)}}(e,t,s.path,s.affectedTree,a,i,r)}else{if(n.type!==ff.LISTEN_COMPLETE)throw Tu("Unknown operation type: "+n.type);o=function(e,t,n,a,i){const r=t.serverCache,o=Af(t,r.getNode(),r.isFullyInitialized()||sp(n),r.isFiltered());return om(e,o,n,a,am,i)}(e,t,n.path,a,r)}const l=r.getChanges();return function(e,t,n){const a=t.eventCache;if(a.isFullyInitialized()){const i=a.getNode().isLeafNode()||a.getNode().isEmpty(),r=Ef(e);(n.length>0||!e.eventCache.isFullyInitialized()||i&&!a.getNode().equals(r)||!a.getNode().getPriority().equals(r.getPriority()))&&n.push(qp(Ef(t)))}}(t,o,l),{viewCache:o,changes:l}}function om(e,t,n,a,i,r){const o=t.eventCache;if(null!=Jf(a,n))return t;{let s,l;if(sp(n))if(Su(t.serverCache.isFullyInitialized(),"If change path is empty, we must have complete server data"),t.serverCache.isFiltered()){const n=If(t),i=$f(a,n instanceof Hp?n:Hp.EMPTY_NODE);s=e.filter.updateFullNode(t.eventCache.getNode(),i,r)}else{const n=qf(a,If(t));s=e.filter.updateFullNode(t.eventCache.getNode(),n,r)}else{const u=ep(n);if(".priority"===u){Su(1===tp(n),"Can't have a priority with additional path components");const i=o.getNode();l=t.serverCache.getNode();const r=Yf(a,n,i,l);s=null!=r?e.filter.updatePriority(i,r):o.getNode()}else{const c=np(n);let d;if(o.isCompleteForChild(u)){l=t.serverCache.getNode();const e=Yf(a,n,o.getNode(),l);d=null!=e?o.getNode().getImmediateChild(u).updateChild(c,e):o.getNode().getImmediateChild(u)}else d=Zf(a,u,t.serverCache);s=null!=d?e.filter.updateChild(o.getNode(),u,d,c,i,r):o.getNode()}}return Tf(t,s,o.isFullyInitialized()||sp(n),e.filter.filtersNodes())}}function sm(e,t,n,a,i,r,o,s){const l=t.serverCache;let u;const c=o?e.filter:e.filter.getIndexedFilter();if(sp(n))u=c.updateFullNode(l.getNode(),a,null);else if(c.filtersNodes()&&!l.isFiltered()){const e=l.getNode().updateChild(n,a);u=c.updateFullNode(l.getNode(),e,null)}else{const e=ep(n);if(!l.isCompleteForPath(n)&&tp(n)>1)return t;const i=np(n),r=l.getNode().getImmediateChild(e).updateChild(i,a);u=".priority"===e?c.updatePriority(l.getNode(),r):c.updateChild(l.getNode(),e,r,i,am,null)}const d=Af(t,u,l.isFullyInitialized()||sp(n),c.filtersNodes());return om(e,d,n,i,new im(i,d,r),s)}function lm(e,t,n,a,i,r,o){const s=t.eventCache;let l,u;const c=new im(i,t,r);if(sp(n))u=e.filter.updateFullNode(t.eventCache.getNode(),a,o),l=Tf(t,u,!0,e.filter.filtersNodes());else{const i=ep(n);if(".priority"===i)u=e.filter.updatePriority(t.eventCache.getNode(),a),l=Tf(t,u,s.isFullyInitialized(),s.isFiltered());else{const r=np(n),u=s.getNode().getImmediateChild(i);let d;if(sp(r))d=a;else{const e=c.getCompleteChild(i);d=null!=e?".priority"===ap(r)&&e.getChild(rp(r)).isEmpty()?e:e.updateChild(r,a):Hp.EMPTY_NODE}if(u.equals(d))l=t;else{l=Tf(t,e.filter.updateChild(s.getNode(),i,d,r,c,o),s.isFullyInitialized(),e.filter.filtersNodes())}}}return l}function um(e,t){return e.eventCache.isCompleteForChild(t)}function cm(e,t,n){return n.foreach((e,n)=>{t=t.updateChild(e,n)}),t}function dm(e,t,n,a,i,r,o,s){if(t.serverCache.getNode().isEmpty()&&!t.serverCache.isFullyInitialized())return t;let l,u=t;l=sp(n)?a:new Nf(null).setTree(n,a);const c=t.serverCache.getNode();return l.children.inorderTraversal((n,a)=>{if(c.hasChild(n)){const l=cm(0,t.serverCache.getNode().getImmediateChild(n),a);u=sm(e,u,new Qh(n),l,i,r,o,s)}}),l.children.inorderTraversal((n,a)=>{const l=!t.serverCache.isCompleteForChild(n)&&null===a.value;if(!c.hasChild(n)&&!l){const l=cm(0,t.serverCache.getNode().getImmediateChild(n),a);u=sm(e,u,new Qh(n),l,i,r,o,s)}}),u}class hm{constructor(e,t){this.query_=e,this.eventRegistrations_=[];const n=this.query_._queryParams,a=new Qp(n.getIndex()),i=(r=n).loadsAllData()?new Qp(r.getIndex()):r.hasLimit()?new ef(r):new Zp(r);var r;this.processor_=function(e){return{filter:e}}(i);const o=t.serverCache,s=t.eventCache,l=a.updateFullNode(Hp.EMPTY_NODE,o.getNode(),null),u=i.updateFullNode(Hp.EMPTY_NODE,s.getNode(),null),c=new wf(l,o.isFullyInitialized(),a.filtersNodes()),d=new wf(u,s.isFullyInitialized(),i.filtersNodes());this.viewCache_=Sf(d,c),this.eventGenerator_=new kf(this.query_)}get query(){return this.query_}}function pm(e,t){const n=If(e.viewCache_);return n&&(e.query._queryParams.loadsAllData()||!sp(t)&&!n.getImmediateChild(ep(t)).isEmpty())?n.getChild(t):null}function fm(e){return 0===e.eventRegistrations_.length}function mm(e,t,n){const a=[];if(n){Su(null==t,"A cancel should cancel all event registrations.");const i=e.query._path;e.eventRegistrations_.forEach(e=>{const t=e.createCancelEvent(n,i);t&&a.push(t)})}if(t){let n=[];for(let a=0;a<e.eventRegistrations_.length;++a){const i=e.eventRegistrations_[a];if(i.matches(t)){if(t.hasAnyCallback()){n=n.concat(e.eventRegistrations_.slice(a+1));break}}else n.push(i)}e.eventRegistrations_=n}else e.eventRegistrations_=[];return a}function vm(e,t,n,a){t.type===ff.MERGE&&null!==t.source.queryId&&(Su(If(e.viewCache_),"We should always have a full cache before handling merges"),Su(Ef(e.viewCache_),"Missing event cache, even though we have a server cache"));const i=e.viewCache_,r=rm(e.processor_,i,t,n,a);var o,s;return o=e.processor_,s=r.viewCache,Su(s.eventCache.getNode().isIndexed(o.filter.getIndex()),"Event snap not indexed"),Su(s.serverCache.getNode().isIndexed(o.filter.getIndex()),"Server snap not indexed"),Su(r.viewCache.serverCache.isFullyInitialized()||!i.serverCache.isFullyInitialized(),"Once a server snap is complete, it should never go back"),e.viewCache_=r.viewCache,gm(e,r.changes,r.viewCache.eventCache.getNode(),null)}function gm(e,t,n,a){const i=a?[a]:e.eventRegistrations_;return function(e,t,n,a){const i=[],r=[];return t.forEach(t=>{var n;"child_changed"===t.type&&e.index_.indexedValueChanged(t.oldSnap,t.snapshotNode)&&r.push((n=t.childName,{type:"child_moved",snapshotNode:t.snapshotNode,childName:n}))}),Cf(e,i,"child_removed",t,a,n),Cf(e,i,"child_added",t,a,n),Cf(e,i,"child_moved",r,a,n),Cf(e,i,"child_changed",t,a,n),Cf(e,i,"value",t,a,n),i}(e.eventGenerator_,t,n,i)}
1395/**
1396 * @license
1397 * Copyright 2017 Google LLC
1398 *
1399 * Licensed under the Apache License, Version 2.0 (the "License");
1400 * you may not use this file except in compliance with the License.
1401 * You may obtain a copy of the License at
1402 *
1403 *   http://www.apache.org/licenses/LICENSE-2.0
1404 *
1405 * Unless required by applicable law or agreed to in writing, software
1406 * distributed under the License is distributed on an "AS IS" BASIS,
1407 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1408 * See the License for the specific language governing permissions and
1409 * limitations under the License.
1410 */let ym,bm;class _m{constructor(){this.views=new Map}}function wm(e,t,n,a){const i=t.source.queryId;if(null!==i){const r=e.views.get(i);return Su(null!=r,"SyncTree gave us an op for an invalid query."),vm(r,t,n,a)}{let i=[];for(const r of e.views.values())i=i.concat(vm(r,t,n,a));return i}}function km(e,t,n,a,i){const r=t._queryIdentifier,o=e.views.get(r);if(!o){let e=qf(n,i?a:null),r=!1;e?r=!0:a instanceof Hp?(e=$f(n,a),r=!1):(e=Hp.EMPTY_NODE,r=!1);const o=Sf(new wf(e,r,!1),new wf(a,i,!1));return new hm(t,o)}return o}function Cm(e,t,n,a,i,r){const o=km(e,t,a,i,r);return e.views.has(t._queryIdentifier)||e.views.set(t._queryIdentifier,o),function(e,t){e.eventRegistrations_.push(t)}(o,n),function(e,t){const n=e.viewCache_.eventCache,a=[];
1410n.getNode().isLeafNode()||n.getNode().forEachChild(Dp,(e,t)=>{a.push($p(e,t))});return n.isFullyInitialized()&&a.push(qp(n.getNode())),gm(e,a,n.getNode(),t)}(o,n)}function Sm(e,t,n,a){const i=t._queryIdentifier,r=[];let o=[];const s=xm(e);if("default"===i)for(const[l,u]of e.views.entries())o=o.concat(mm(u,n,a)),fm(u)&&(e.views.delete(l),u.query._queryParams.loadsAllData()||r.push(u.query));else{const t=e.views.get(i);t&&(o=o.concat(mm(t,n,a)),fm(t)&&(e.views.delete(i),t.query._queryParams.loadsAllData()||r.push(t.query)))}return s&&!xm(e)&&r.push(new(Su(ym,"Reference.ts has not been loaded"),ym)(t._repo,t._path)),{removed:r,events:o}}function Tm(e){const t=[];for(const n of e.views.values())n.query._queryParams.loadsAllData()||t.push(n);return t}function Am(e,t){let n=null;for(const a of e.views.values())n=n||pm(a,t);return n}function Em(e,t){if(t._queryParams.loadsAllData())return Nm(e);{const n=t._queryIdentifier;return e.views.get(n)}}function Im(e,t){return null!=Em(e,t)}function xm(e){return null!=Nm(e)}function Nm(e){for(const t of e.views.values())if(t.query._queryParams.loadsAllData())return t;return null}
1411/**
1412 * @license
1413 * Copyright 2017 Google LLC
1414 *
1415 * Licensed under the Apache License, Version 2.0 (the "License");
1416 * you may not use this file except in compliance with the License.
1417 * You may obtain a copy of the License at
1418 *
1419 *   http://www.apache.org/licenses/LICENSE-2.0
1420 *
1421 * Unless required by applicable law or agreed to in writing, software
1422 * distributed under the License is distributed on an "AS IS" BASIS,
1423 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1424 * See the License for the specific language governing permissions and
1425 * limitations under the License.
1426 */let Pm=1;class Mm{constructor(e){this.listenProvider_=e,this.syncPointTree_=new Nf(null),this.pendingWriteTree_={visibleWrites:Pf.empty(),allWrites:[],lastWriteId:-1},this.tagToQueryMap=new Map,this.queryToTagMap=new Map}}function Om(e,t,n,a,i){return function(e,t,n,a,i){Su(a>e.lastWriteId,"Stacking an older write on top of newer ones"),void 0===i&&(i=!0),e.allWrites.push({path:t,snap:n,writeId:a,visible:i}),i&&(e.visibleWrites=Mf(e.visibleWrites,t,n)),e.lastWriteId=a}(e.pendingWriteTree_,t,n,a,i),i?Um(e,new bf({fromUser:!0,fromServer:!1,queryId:null,tagged:!1},t,n)):[]}function Rm(e,t,n,a){!function(e,t,n,a){Su(a>e.lastWriteId,"Stacking an older merge on top of newer ones"),e.allWrites.push({path:t,children:n,writeId:a,visible:!0}),e.visibleWrites=Of(e.visibleWrites,t,n),e.lastWriteId=a}(e.pendingWriteTree_,t,n,a);const i=Nf.fromObject(n);return Um(e,new _f({fromUser:!0,fromServer:!1,queryId:null,tagged:!1},t,i))}function Dm(e,t,n=!1){const a=function(e,t){for(let n=0;n<e.allWrites.length;n++){const a=e.allWrites[n];if(a.writeId===t)return a}return null}(e.pendingWriteTree_,t);if(Hf(e.pendingWriteTree_,t)){let t=new Nf(null);return null!=a.snap?t=t.set(Zh(),!0):kh(a.children,e=>{t=t.set(new Qh(e),!0)}),Um(e,new gf(a.path,t,n))}return[]}function Lm(e,t,n){return Um(e,new bf({fromUser:!1,fromServer:!0,queryId:null,tagged:!1},t,n))}function Bm(e,t,n,a,i=!1){const r=t._path,o=e.syncPointTree_.get(r);let s=[];if(o&&("default"===t._queryIdentifier||Im(o,t))){const l=Sm(o,t,n,a);0===o.views.size&&(e.syncPointTree_=e.syncPointTree_.remove(r));const u=l.removed;if(s=l.events,!i){const n=-1!==u.findIndex(e=>e._queryParams.loadsAllData()),i=e.syncPointTree_.findOnPath(r,(e,t)=>xm(t));if(n&&!i){const t=e.syncPointTree_.subtree(r);if(!t.isEmpty()){const n=function(e){return e.fold((e,t,n)=>{if(t&&xm(t)){return[Nm(t)]}{let e=[];return t&&(e=Tm(t)),kh(n,(t,n)=>{e=e.concat(n)}),e}})}(t);for(let t=0;t<n.length;++t){const a=n[t],i=a.query,r=Km(e,a);e.listenProvider_.startListening(Jm(i),Wm(e,i),r.hashFn,r.onComplete)}}}if(!i&&u.length>0&&!a)if(n){const n=null;e.listenProvider_.stopListening(Jm(t),n)}else u.forEach(t=>{const n=e.queryToTagMap.get(Gm(t));e.listenProvider_.stopListening(Jm(t),n)})}!function(e,t){for(let n=0;n<t.length;++n){const a=t[n];if(!a._queryParams.loadsAllData()){const t=Gm(a),n=e.queryToTagMap.get(t);e.queryToTagMap.delete(t),e.tagToQueryMap.delete(n)}}}(e,u)}return s}function Fm(e,t,n,a){const i=qm(e,a);if(null!=i){const a=$m(i),r=a.path,o=a.queryId,s=lp(r,t);
1426return Ym(e,r,new bf(vf(o),s,n))}return[]}function Vm(e,t,n,a=!1){const i=t._path;let r=null,o=!1;e.syncPointTree_.foreachOnPath(i,(e,t)=>{const n=lp(e,i);r=r||Am(t,n),o=o||xm(t)});let s,l=e.syncPointTree_.get(i);if(l?(o=o||xm(l),r=r||Am(l,Zh())):(l=new _m,e.syncPointTree_=e.syncPointTree_.set(i,l)),null!=r)s=!0;else{s=!1,r=Hp.EMPTY_NODE;e.syncPointTree_.subtree(i).foreachChild((e,t)=>{const n=Am(t,Zh());n&&(r=r.updateImmediateChild(e,n))})}const u=Im(l,t);if(!u&&!t._queryParams.loadsAllData()){const n=Gm(t);Su(!e.queryToTagMap.has(n),"View does not exist, but we have a tag");const a=Pm++;e.queryToTagMap.set(n,a),e.tagToQueryMap.set(a,n)}let c=Cm(l,t,n,Uf(e.pendingWriteTree_,i),r,s);if(!u&&!o&&!a){const n=Em(l,t);c=c.concat(function(e,t,n){const a=t._path,i=Wm(e,t),r=Km(e,n),o=e.listenProvider_.startListening(Jm(t),i,r.hashFn,r.onComplete),s=e.syncPointTree_.subtree(a);if(i)Su(!xm(s.value),"If we're adding a query, it shouldn't be shadowed");else{const t=s.fold((e,t,n)=>{if(!sp(e)&&t&&xm(t))return[Nm(t).query];{let e=[];return t&&(e=e.concat(Tm(t).map(e=>e.query))),kh(n,(t,n)=>{e=e.concat(n)}),e}});for(let n=0;n<t.length;++n){const a=t[n];e.listenProvider_.stopListening(Jm(a),Wm(e,a))}}return o}
1427/**
1428 * @license
1429 * Copyright 2017 Google LLC
1430 *
1431 * Licensed under the Apache License, Version 2.0 (the "License");
1432 * you may not use this file except in compliance with the License.
1433 * You may obtain a copy of the License at
1434 *
1435 *   http://www.apache.org/licenses/LICENSE-2.0
1436 *
1437 * Unless required by applicable law or agreed to in writing, software
1438 * distributed under the License is distributed on an "AS IS" BASIS,
1439 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1440 * See the License for the specific language governing permissions and
1441 * limitations under the License.
1442 */(e,t,n))}return c}function Xm(e,t,n){const a=e.pendingWriteTree_,i=e.syncPointTree_.findOnPath(t,(e,n)=>{const a=Am(n,lp(e,t));if(a)return a});return Gf(a,t,i,n,!0)}function jm(e,t){const n=t._path;let a=null;e.syncPointTree_.foreachOnPath(n,(e,t)=>{const i=lp(e,n);a=a||Am(t,i)});let i=e.syncPointTree_.get(n);i?a=a||Am(i,Zh()):(i=new _m,e.syncPointTree_=e.syncPointTree_.set(n,i));const r=null!=a,o=r?new wf(a,!0,!1):null;return function(e){return Ef(e.viewCache_)}(km(i,t,Uf(e.pendingWriteTree_,t._path),r?o.getNode():Hp.EMPTY_NODE,r))}function Um(e,t){return Hm(t,e.syncPointTree_,null,Uf(e.pendingWriteTree_,Zh()))}function Hm(e,t,n,a){if(sp(e.path))return zm(e,t,n,a);{const i=t.get(Zh());null==n&&null!=i&&(n=Am(i,Zh()));let r=[];const o=ep(e.path),s=e.operationForChild(o),l=t.children.get(o);if(l&&s){const e=n?n.getImmediateChild(o):null,t=em(a,o);r=r.concat(Hm(s,l,e,t))}return i&&(r=r.concat(wm(i,e,a,n))),r}}function zm(e,t,n,a){const i=t.get(Zh());null==n&&null!=i&&(n=Am(i,Zh()));let r=[];return t.children.inorderTraversal((t,i)=>{const o=n?n.getImmediateChild(t):null,s=em(a,t),l=e.operationForChild(t);l&&(r=r.concat(zm(l,i,o,s)))}),i&&(r=r.concat(wm(i,e,a,n))),r}function Km(e,t){const n=t.query,a=Wm(e,n);return{hashFn:()=>{const e=function(e){return e.viewCache_.serverCache.getNode()}(t)||Hp.EMPTY_NODE;return e.hash()},onComplete:t=>{if("ok"===t)return a?function(e,t,n){const a=qm(e,n);if(a){const n=$m(a),i=n.path,r=n.queryId,o=lp(i,t);return Ym(e,i,new yf(vf(r),o))}return[]}(e,n._path,a):function(e,t){return Um(e,new yf({fromUser:!1,fromServer:!0,queryId:null,tagged:!1},t))}(e,n._path);{const a=function(e,t){let n="Unknown Error";"too_big"===e?n="The data requested exceeds the maximum size that can be accessed with a single request.":"permission_denied"===e?n="Client doesn't have permission to access the desired data.":"unavailable"===e&&(n="The service is unavailable");const a=new Error(e+" at "+t._path.toString()+": "+n);return a.code=e.toUpperCase(),a}(t,n);return Bm(e,n,null,a)}}}}function Wm(e,t){const n=Gm(t);return e.queryToTagMap.get(n)}function Gm(e){return e._path.toString()+"$"+e._queryIdentifier}function qm(e,t){return e.tagToQueryMap.get(t)}function $m(e){const t=e.indexOf("$");return Su(-1!==t&&t<e.length-1,"Bad queryKey."),{queryId:e.substr(t+1),path:new Qh(e.substr(0,t))}}function Ym(e,t,n){const a=e.syncPointTree_.get(t);Su(a,"Missing sync point for query tag that we're tracking");return wm(a,n,Uf(e.pendingWriteTree_,t),null)}
vendor: 4,746 bytes, lines 1442-1474
1442function Jm(e){return e._queryParams.loadsAllData()&&!e._queryParams.isDefault()?new(Su(bm,"Reference.ts has not been loaded"),bm)(e._repo,e._path):e}class Qm{constructor(e){this.node_=e}getImmediateChild(e){const t=this.node_.getImmediateChild(e);return new Qm(t)}node(){return this.node_}}class Zm{constructor(e,t){this.syncTree_=e,this.path_=t}getImmediateChild(e){const t=op(this.path_,e);return new Zm(this.syncTree_,t)}node(){return Xm(this.syncTree_,this.path_)}}const ev=function(e,t,n){return e&&"object"==typeof e?(Su(".sv"in e,"Unexpected leaf node or priority contents"),"string"==typeof e[".sv"]?tv(e[".sv"],t,n):"object"==typeof e[".sv"]?nv(e[".sv"],t):void Su(!1,"Unexpected server value: "+JSON.stringify(e,null,2))):e},tv=function(e,t,n){if("timestamp"===e)return n.timestamp;Su(!1,"Unexpected server value: "+e)},nv=function(e,t,n){e.hasOwnProperty("increment")||Su(!1,"Unexpected server value: "+JSON.stringify(e,null,2));const a=e.increment;"number"!=typeof a&&Su(!1,"Unexpected increment value: "+a);const i=t.node();if(Su(null!=i,"Expected ChildrenNode.EMPTY_NODE for nulls"),!i.isLeafNode())return a;const r=i.getValue();return"number"!=typeof r?a:r+a},av=function(e,t,n,a){return rv(t,new Zm(n,e),a)},iv=function(e,t,n){return rv(e,new Qm(t),n)};function rv(e,t,n){const a=e.getPriority().val(),i=ev(a,t.getImmediateChild(".priority"),n);let r;if(e.isLeafNode()){const a=e,r=ev(a.getValue(),t,n);return r!==a.getValue()||i!==a.getPriority().val()?new Rp(r,Kp(i)):e}{const a=e;return r=a,i!==a.getPriority().val()&&(r=r.updatePriority(new Rp(i))),a.forEachChild(Dp,(e,a)=>{const i=rv(a,t.getImmediateChild(e),n);i!==a&&(r=r.updateImmediateChild(e,i))}),r}}
1443/**
1444 * @license
1445 * Copyright 2017 Google LLC
1446 *
1447 * Licensed under the Apache License, Version 2.0 (the "License");
1448 * you may not use this file except in compliance with the License.
1449 * You may obtain a copy of the License at
1450 *
1451 *   http://www.apache.org/licenses/LICENSE-2.0
1452 *
1453 * Unless required by applicable law or agreed to in writing, software
1454 * distributed under the License is distributed on an "AS IS" BASIS,
1455 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1456 * See the License for the specific language governing permissions and
1457 * limitations under the License.
1458 */class ov{constructor(e="",t=null,n={children:{},childCount:0}){this.name=e,this.parent=t,this.node=n}}function sv(e,t){let n=t instanceof Qh?t:new Qh(t),a=e,i=ep(n);for(;null!==i;){const e=oc(a.node.children,i)||{children:{},childCount:0};a=new ov(i,a,e),n=np(n),i=ep(n)}return a}function lv(e){return e.node.value}function uv(e,t){e.node.value=t,fv(e)}function cv(e){return e.node.childCount>0}function dv(e,t){kh(e.node.children,(n,a)=>{t(new ov(n,e,a))})}function hv(e,t,n,a){n&&t(e),dv(e,e=>{hv(e,t,!0)})}function pv(e){return new Qh(null===e.parent?e.name:pv(e.parent)+"/"+e.name)}function fv(e){null!==e.parent&&function(e,t,n){const a=function(e){return void 0===lv(e)&&!cv(e)}(n),i=rc(e.node.children,t);a&&i?(delete e.node.children[t],e.node.childCount--,fv(e)):a||i||(e.node.children[t]=n.node,e.node.childCount++,fv(e))}
1459/**
1460 * @license
1461 * Copyright 2017 Google LLC
1462 *
1463 * Licensed under the Apache License, Version 2.0 (the "License");
1464 * you may not use this file except in compliance with the License.
1465 * You may obtain a copy of the License at
1466 *
1467 *   http://www.apache.org/licenses/LICENSE-2.0
1468 *
1469 * Unless required by applicable law or agreed to in writing, software
1470 * distributed under the License is distributed on an "AS IS" BASIS,
1471 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1472 * See the License for the specific language governing permissions and
1473 * limitations under the License.
1474 */(e.parent,e.name,e)}const mv=/[\[\].#$\/\u0000-\u001F\u007F]/,vv=/[\[\].#$\u0000-\u001F\u007F]/,gv=10485760,yv=function(e){return"string"==typeof e&&0!==e.length&&!mv.test(e)},bv=function(e){return"string"==typeof e&&0!==e.length&&!vv.test(e)},_v=function(e){return null===e||"string"==typeof e||"number"==typeof e&&!fh(e)||e&&"object"==typeof e&&rc(e,".sv")},wv=function(e,t,n,a){a&&void 0===t||kv(gc(e,"value"),t,n)},kv=function(e,t,n){const a=n instanceof Qh?new hp(n,e):n;if(void 0===t)throw new Error(e+"contains undefined "+fp(a));if("function"==typeof t)throw new Error(e+"contains a function "+fp(a)+" with contents = "+t.toString());if(fh(t))throw new Error(e+"contains "+t.toString()+" "+fp(a));if("string"==typeof t&&t.length>gv/3&&yc(t)>gv)throw new Error(e+"contains a string greater than "+gv+" utf8 bytes "+fp(a)+" ('"+t.substring(0,50)+"...')");if(t&&"object"==typeof t){let n=!1,i=!1;if(kh(t,(t,r)=>{if(".value"===t)n=!0;else if(".priority"!==t&&".sv"!==t&&(i=!0,!yv(t)))throw new Error(e+" contains an invali
1474d key ("+t+") "+fp(a)+'.  Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');var o,s;s=t,(o=a).parts_.length>0&&(o.byteLength_+=1),o.parts_.push(s),o.byteLength_+=yc(s),pp(o),kv(e,r,a),function(e){const t=e.parts_.pop();e.byteLength_-=yc(t),e.parts_.length>0&&(e.byteLength_-=1)}(a)}),n&&i)throw new Error(e+' contains ".value" child '+fp(a)+" in addition to actual children.")}},Cv=function(e,t,n,a){const i=gc(e,"values");if(!t||"object"!=typeof t||Array.isArray(t))throw new Error(i+" must be an object containing the children to replace.");const r=[];kh(t,(e,t)=>{const a=new Qh(e);if(kv(i,t,op(n,a)),".priority"===ap(a)&&!_v(t))throw new Error(i+"contains an invalid value for '"+a.toString()+"', which must be a valid Firebase priority (a string, finite number, server value, or null).");r.push(a)}),function(e,t){let n,a;for(n=0;n<t.length;n++){a=t[n];const i=ip(a);for(let t=0;t<i.length;t++)if(".priority"===i[t]&&t===i.length-1);else if(!yv(i[t]))throw new Error(e+"contains an invalid key ("+i[t]+") in path "+a.toString()+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"')}t.sort(up);let i=null;for(n=0;n<t.length;n++){if(a=t[n],null!==i&&dp(i,a))throw new Error(e+"contains a path "+i.toString()+" that is ancestor of another path "+a.toString());i=a}}(i,r)},Sv=function(e,t,n,a){if(!bv(n))throw new Error(gc(e,t)+'was an invalid path = "'+n+'". Paths must be non-empty strings and can\'t contain ".", "#", "$", "[", or "]"')},Tv=function(e,t){if(".info"===ep(t))throw new Error(e+" failed = Can't modify data under /.info/")},Av=function(e,t){const n=t.path.toString();if("string"!=typeof t.repoInfo.host||0===t.repoInfo.host.length||!yv(t.repoInfo.namespace)&&"localhost"!==t.repoInfo.host.split(":")[0]||0!==n.length&&!function(e){return e&&(e=e.replace(/^\/*\.info(\/|$)/,"/")),bv(e)}(n))throw new Error(gc(e,"url")+'must be a valid firebase URL and the path can\'t contain ".", "#", "$", "[", or "]".')};
1475/**
1476 * @license
1477 * Copyright 2017 Google LLC
1478 *
1479 * Licensed under the Apache License, Version 2.0 (the "License");
1480 * you may not use this file except in compliance with the License.
1481 * You may obtain a copy of the License at
1482 *
1483 *   http://www.apache.org/licenses/LICENSE-2.0
1484 *
1485 * Unless required by applicable law or agreed to in writing, software
1486 * distributed under the License is distributed on an "AS IS" BASIS,
1487 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1488 * See the License for the specific language governing permissions and
1489 * limitations under the License.
1490 */
1491class Ev{constructor(){this.eventLists_=[],this.recursionDepth_=0}}function Iv(e,t){let n=null;for(let a=0;a<t.length;a++){const i=t[a],r=i.getPath();null===n||cp(r,n.path)||(e.eventLists_.push(n),n=null),null===n&&(n={events:[],path:r}),n.events.push(i)}n&&e.eventLists_.push(n)}function xv(e,t,n){Iv(e,n),Pv(e,e=>cp(e,t))}function Nv(e,t,n){Iv(e,n),Pv(e,e=>dp(e,t)||dp(t,e))}function Pv(e,t){e.recursionDepth_++;let n=!0;for(let a=0;a<e.eventLists_.length;a++){const i=e.eventLists_[a];if(i){t(i.path)?(Mv(e.eventLists_[a]),e.eventLists_[a]=null):n=!1}}n&&(e.eventLists_=[]),e.recursionDepth_--}function Mv(e){for(let t=0;t<e.events.length;t++){const n=e.events[t];if(null!==n){e.events[t]=null;const a=n.getEventRunner();sh&&uh("event: "+n.toString()),Ah(a)}}}
1492/**
1493 * @license
1494 * Copyright 2017 Google LLC
1495 *
1496 * Licensed under the Apache License, Version 2.0 (the "License");
1497 * you may not use this file except in compliance with the License.
1498 * You may obtain a copy of the License at
1499 *
1500 *   http://www.apache.org/licenses/LICENSE-2.0
1501 *
1502 * Unless required by applicable law or agreed to in writing, software
1503 * distributed under the License is distributed on an "AS IS" BASIS,
1504 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1505 * See the License for the specific language governing permissions and
1506 * limitations under the License.
1507 */class Ov{constructor(e,t,n,a){this.repoInfo_=e,this.forceRestClient_=t,this.authTokenProvider_=n,this.appCheckProvider_=a,this.dataUpdateCount=0,this.statsListener_=null,this.eventQueue_=new Ev,this.nextWriteId_=1,this.interceptServerDataCallback_=null,this.onDisconnect_=lf(),this.transactionQueueTree_=new ov,this.persistentConnection_=null,this.key=this.repoInfo_.toURLString()}toString(){return(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host}}function Rv(e,t,n){if(e.stats_=Xh(e.repoInfo_),e.forceRestClient_||("object"==typeof window&&window.navigator&&window.navigator.userAgent||"").search(/googlebot|google webmaster tools|bingbot|yahoo! slurp|baiduspider|yandexbot|duckduckbot/i)>=0)e.server_=new of(e.repoInfo_,(t,n,a,i)=>{Bv(e,t,n,a,i)},e.authTokenProvider_,e.appCheckProvider_),setTimeout(()=>Fv(e,!0),0);else{if(null!=n){if("object"!=typeof n)throw new Error("Only objects are supported for option databaseAuthVariableOverride");try{ac(n)}catch(w7){throw new Error("Invalid authOverride provided: "+w7)}}e.persistentConnection_=new gp(e.repoInfo_,t,(t,n,a,i)=>{Bv(e,t,n,a,i)},t=>{Fv(e,t)},t=>{!function(e,t){kh(t,(t,n)=>{Vv(e,t,n)})}(e,t)},e.authTokenProvider_,e.appCheckProvider_,n),e.server_=e.persistentConnection_}e.authTokenProvider_.addTokenChangeListener(t=>{e.server_.refreshAuthToken(t)}),e.appCheckProvider_.addTokenChangeListener(t=>{e.server_.refreshAppCheckToken(t.token)}),e.statsReporter_=function(e,t){const n=e.toString();return Vh[n]||(Vh[n]=t()),Vh[n]}(e.repoInfo_,()=>new pf(e.stats_,e.server_)),e.infoData_=new sf,e.infoSyncTree_=new Mm({startListening:(t,n,a,i)=>{let r=[];const o=e.infoData_.getNode(t._path);return o.isEmpty()||(r=Lm(e.infoSyncTree_,t._path,o),setTimeout(()=>{i("ok")},0)),r},stopListening:()=>{}}),Vv(e,"connected",!1),e.serverSyncTree_=new Mm({startListening:(t,n,a,i)=>(e.server_.listen(t,a,n,(n,a)=>{const r=i(n,a);Nv(e.eventQueue_,t._path,r)}),[]),stopListening:(t,n)=>{e.server_.unlisten(t,n)}})}function Dv(e){const t=e.infoData_.getNode(new Qh(".info/serverTimeOffset")).val()||0;return(new Date).getTime()+t}function Lv(e){return(t=(t={timestamp:Dv(e)})||{}).timestamp=t.timestamp||(new Date).getTime(),t;var t}function Bv(e,t,n,a,i){e.dataUpdateCount++;const r=new Qh(t);n=e.interceptServerDataCallback_?e.interceptServerDataCallback_(t,n):n;let o=[];
1507if(i)if(a){const t=lc(n,e=>Kp(e));o=function(e,t,n,a){const i=qm(e,a);if(i){const a=$m(i),r=a.path,o=a.queryId,s=lp(r,t),l=Nf.fromObject(n);return Ym(e,r,new _f(vf(o),s,l))}return[]}(e.serverSyncTree_,r,t,i)}else{const t=Kp(n);o=Fm(e.serverSyncTree_,r,t,i)}else if(a){const t=lc(n,e=>Kp(e));o=function(e,t,n){const a=Nf.fromObject(n);return Um(e,new _f({fromUser:!1,fromServer:!0,queryId:null,tagged:!1},t,a))}(e.serverSyncTree_,r,t)}else{const t=Kp(n);o=Lm(e.serverSyncTree_,r,t)}let s=r;o.length>0&&(s=qv(e,r)),Nv(e.eventQueue_,s,o)}function Fv(e,t){Vv(e,"connected",t),!1===t&&function(e){zv(e,"onDisconnectEvents");const t=Lv(e),n=lf();df(e.onDisconnect_,Zh(),(a,i)=>{const r=av(a,i,e.serverSyncTree_,t);uf(n,a,r)});let a=[];df(n,Zh(),(t,n)=>{a=a.concat(Lm(e.serverSyncTree_,t,n));const i=Zv(e,t);qv(e,i)}),e.onDisconnect_=lf(),Nv(e.eventQueue_,Zh(),a)}(e)}function Vv(e,t,n){const a=new Qh("/.info/"+t),i=Kp(n);e.infoData_.updateSnapshot(a,i);const r=Lm(e.infoSyncTree_,a,i);Nv(e.eventQueue_,a,r)}function Xv(e){return e.nextWriteId_++}function jv(e,t,n){e.server_.onDisconnectCancel(t.toString(),(a,i)=>{"ok"===a&&cf(e.onDisconnect_,t),Kv(e,n,a,i)})}function Uv(e,t,n,a){const i=Kp(n);e.server_.onDisconnectPut(t.toString(),i.val(!0),(n,r)=>{"ok"===n&&uf(e.onDisconnect_,t,i),Kv(e,a,n,r)})}function Hv(e,t,n){let a;a=".info"===ep(t._path)?Bm(e.infoSyncTree_,t,n):Bm(e.serverSyncTree_,t,n),xv(e.eventQueue_,t._path,a)}function zv(e,...t){let n="";e.persistentConnection_&&(n=e.persistentConnection_.id+":"),uh(n,...t)}function Kv(e,t,n,a){t&&Ah(()=>{if("ok"===n)t(null);else{const e=(n||"error").toUpperCase();let i=e;a&&(i+=": "+a);const r=new Error(i);r.code=e,t(r)}})}function Wv(e,t,n){return Xm(e.serverSyncTree_,t,n)||Hp.EMPTY_NODE}function Gv(e,t=e.transactionQueueTree_){if(t||Qv(e,t),lv(t)){const n=Yv(e,t);Su(n.length>0,"Sending zero length transaction queue");n.every(e=>0===e.status)&&function(e,t,n){const a=n.map(e=>e.currentWriteId),i=Wv(e,t,a);let r=i;const o=i.hash();for(let u=0;u<n.length;u++){const e=n[u];Su(0===e.status,"tryToSendTransactionQueue_: items in queue should all be run."),e.status=1,e.retryCount++;const a=lp(t,e.path);r=r.updateChild(a,e.currentOutputSnapshotRaw)}const s=r.val(!0),l=t;e.server_.put(l.toString(),s,a=>{zv(e,"transaction put response",{path:l.toString(),status:a});let i=[];if("ok"===a){const a=[];for(let t=0;t<n.length;t++)n[t].status=2,i=i.concat(Dm(e.serverSyncTree_,n[t].currentWriteId)),n[t].onComplete&&a.push(()=>n[t].onComplete(null,!0,n[t].currentOutputSnapshotResolved)),n[t].unwatcher();Qv(e,sv(e.transactionQueueTree_,t)),Gv(e,e.transactionQueueTree_),Nv(e.eventQueue_,t,i);for(let e=0;e<a.length;e++)Ah(a[e])}else{if("datastale"===a)for(let e=0;e<n.length;e++)3===n[e].status?n[e].status=4:n[e].status=0;else{ph("transaction at "+l.toString()+" failed: "+a);for(let e=0;e<n.length;e++)n[e].status=4,n[e].abortReason=a}qv(e,t)}},o)}(e,pv(t),n)}else cv(t)&&dv(t,t=>{Gv(e,t)})}function qv(e,t){const n=$v(e,t),a=pv(n);return function(e,t,n){if(0===t.length)return;const a=[];let i=[];const r=t.filter(e=>0===e.status),o=r.map(e=>e.currentWriteId);for(let s=0;s<t.length;s++){const r=t[s],l=lp(n,r.path);let u,c=!1;if(Su(null!==l,"rerunTransactionsUnderNode_: relativePath should not be null."),4===r.status)c=!0,u=r.abortReason,i=i.concat(Dm(e.serverSyncTree_,r.currentWriteId,!0));else if(0===r.status)if(r.retryCount>=25)c=!0,u="maxretry",i=i.concat(Dm(e.serverSyncTree_,r.currentWriteId,!0));else{const n=Wv(e,r.path,o);r.currentInputSnapshot=n;const a=t[s].update(n.val());if(void 0!==a){kv("transaction failed: Data returned ",a,r.path);let t=Kp(a);"object"==typeof a&&null!=a&&rc(a,".priority")||(t=t.updatePriority(n.getPriority()));const s=r.currentWriteId,l=Lv(e),u=iv(t,n,l);r.currentOutputSnapshotRaw=t,r.currentOutputSnapshotResolved=u,r.currentWriteId=Xv(e),o.splice(o.indexOf(s),1),i=i.concat(Om(e.serverSyncTree_,r.path,u,r.currentWriteId,r.applyLocally)),i=i.concat(Dm(e.serverSyncTree_,s,!0))}else c=!0,u="nodata",i=i.concat(Dm(e.serverSyncTree_,r.currentWriteId,!0))}Nv(e.eventQueue_,n,i),i=[],c&&(t[s].status=2,function(e){setTimeout(e,Math.floor(0))}(t[s].unwatcher),t[s].onComplete&&("nodata"===u?a.push(()=>t[s].onComplete(null,!1,t[s].currentInputSnapshot)):a.push(()=>t[s].onComplete(new Error(u),!1,null))))}Qv(e,e.transactionQueueTree_);for(let s=0;s<a.length;s++)Ah(a[s]);Gv(e,e.transactionQueueTree_)}(e,Yv(e,n),a),a}function $v(e,t){let n,a=e.transactionQueueTree_;
1507for(n=ep(t);null!==n&&void 0===lv(a);)a=sv(a,n),n=ep(t=np(t));return a}function Yv(e,t){const n=[];return Jv(e,t,n),n.sort((e,t)=>e.order-t.order),n}function Jv(e,t,n){const a=lv(t);if(a)for(let i=0;i<a.length;i++)n.push(a[i]);dv(t,t=>{Jv(e,t,n)})}function Qv(e,t){const n=lv(t);if(n){let e=0;for(let t=0;t<n.length;t++)2!==n[t].status&&(n[e]=n[t],e++);n.length=e,uv(t,n.length>0?n:void 0)}dv(t,t=>{Qv(e,t)})}function Zv(e,t){const n=pv($v(e,t)),a=sv(e.transactionQueueTree_,t);return function(e,t){let n=e.parent;for(;null!==n;){if(t(n))return!0;n=n.parent}}(a,t=>{eg(e,t)}),eg(e,a),hv(a,t=>{eg(e,t)}),n}function eg(e,t){const n=lv(t);if(n){const a=[];let i=[],r=-1;for(let t=0;t<n.length;t++)3===n[t].status||(1===n[t].status?(Su(r===t-1,"All SENT items should be at beginning of queue."),r=t,n[t].status=3,n[t].abortReason="set"):(Su(0===n[t].status,"Unexpected transaction status in abort"),n[t].unwatcher(),i=i.concat(Dm(e.serverSyncTree_,n[t].currentWriteId,!0)),n[t].onComplete&&a.push(n[t].onComplete.bind(null,new Error("set"),!1,null))));-1===r?uv(t,void 0):n.length=r+1,Nv(e.eventQueue_,pv(t),i);for(let e=0;e<a.length;e++)Ah(a[e])}}
1508/**
1509 * @license
1510 * Copyright 2017 Google LLC
1511 *
1512 * Licensed under the Apache License, Version 2.0 (the "License");
1513 * you may not use this file except in compliance with the License.
1514 * You may obtain a copy of the License at
1515 *
1516 *   http://www.apache.org/licenses/LICENSE-2.0
1517 *
1518 * Unless required by applicable law or agreed to in writing, software
1519 * distributed under the License is distributed on an "AS IS" BASIS,
1520 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1521 * See the License for the specific language governing permissions and
1522 * limitations under the License.
1523 */const tg=function(e,t){const n=ng(e),a=n.namespace;"firebase.com"===n.domain&&hh(n.host+" is no longer supported. Please use <YOUR FIREBASE>.firebaseio.com instead"),a&&"undefined"!==a||"localhost"===n.domain||hh("Cannot parse Firebase url. Please use https://<YOUR FIREBASE>.firebaseio.com"),n.secure||"undefined"!=typeof window&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&ph("Insecure Firebase access from a secure page. Please use https in calls to new Firebase().");const i="ws"===n.scheme||"wss"===n.scheme;return{repoInfo:new Dh(n.host,n.secure,a,i,t,"",a!==n.subdomain),path:new Qh(n.pathString)}},ng=function(e){let t="",n="",a="",i="",r="",o=!0,s="https",l=443;if("string"==typeof e){let u=e.indexOf("//");u>=0&&(s=e.substring(0,u-1),e=e.substring(u+2));let c=e.indexOf("/");-1===c&&(c=e.length);let d=e.indexOf("?");-1===d&&(d=e.length),t=e.substring(0,Math.min(c,d)),c<d&&(i=function(e){let t="";const n=e.split("/");for(let a=0;a<n.length;a++)if(n[a].length>0){let e=n[a];try{e=decodeURIComponent(e.replace(/\+/g," "))}catch(w7){}t+="/"+e}return t}(e.substring(c,d)));const h=function(e){const t={};"?"===e.charAt(0)&&(e=e.substring(1));for(const n of e.split("&")){if(0===n.length)continue;const a=n.split("=");2===a.length?t[decodeURIComponent(a[0])]=decodeURIComponent(a[1]):ph("Invalid query segment '".concat(n,"' in query '").concat(e,"'"))}return t}(e.substring(Math.min(e.length,d)));u=t.indexOf(":"),u>=0?(o="https"===s||"wss"===s,l=parseInt(t.substring(u+1),10)):u=t.length;const p=t.slice(0,u);if("localhost"===p.toLowerCase())n="localhost";else if(p.split(".").length<=2)n=p;else{const e=t.indexOf(".");a=t.substring(0,e).toLowerCase(),n=t.substring(e+1),r=a}"ns"in h&&(r=h.ns)}return{host:t,port:l,domain:n,subdomain:a,secure:o,scheme:s,pathString:i,namespace:r}},ag="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",ig=function(){let e=0;const t=[];return function(n){const a=n===e;let i;e=n;const r=new Array(8);for(i=7;i>=0;i--)r[i]=ag.charAt(n%64),n=Math.floor(n/64);Su(0===n,"Cannot push at time == 0");let o=r.join("");if(a){for(i=11;i>=0&&63===t[i];i--)t[i]=0;t[i]++}else for(i=0;i<12;i++)t[i]=Math.floor(64*Math.random());for(i=0;i<12;i++)o+=ag.charAt(t[i]);return Su(20===o.length,"nextPushId: Length should be 20."),o}}();
1524/**
1525 * @license
1526 * Copyright 2017 Google LLC
1527 *
1528 * Licensed under the Apache License, Version 2.0 (the "License");
1529 * you may not use this file except in compliance with the License.
1530 * You may obtain a copy of the License at
1531 *
1532 *   http://www.apache.org/licenses/LICENSE-2.0
1533 *
1534 * Unless required by applicable law or agreed to in writing, software
1535 * distributed under the License is distributed on an "AS IS" BASIS,
1536 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1537 * See the License for the specific language governing permissions and
1538 * limitations under the License.
1539 */
1540class rg{constructor(e,t,n,a){this.eventType=e,this.eventRegistration=t,this.snapshot=n,this.prevName=a}getPath(){const e=this.snapshot.ref;return"value"===this.eventType?e._path:e.parent._path}getEventType(){return this.eventType}getEventRunner(){return this.eventRegistration.getEventRunner(this)}toString(){return this.getPath().toString()+":"+this.eventType+":"+ac(this.snapshot.exportVal())}}class og{constructor(e,t,n){this.eventRegistration=e,this.error=t,this.path=n}getPath(){return this.path}getEventType(){return"cancel"}getEventRunner(){return this.eventRegistration.getEventRunner(this)}toString(){return this.path.toString()+":cancel"}}
1541/**
1542 * @license
1543 * Copyright 2017 Google LLC
1544 *
1545 * Licensed under the Apache License, Version 2.0 (the "License");
1546 * you may not use this file except in compliance with the License.
1547 * You may obtain a copy of the License at
1548 *
1549 *   http://www.apache.org/licenses/LICENSE-2.0
1550 *
1551 * Unless required by applicable law or agreed to in writing, software
1552 * distributed under the License is distributed on an "AS IS" BASIS,
1553 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1554 * See the License for the specific language governing permissions and
1555 * limitations under the License.
1556 */class sg{constructor(e,t){this.snapshotCallback=e,this.cancelCallback=t}onValue(e,t){this.snapshotCallback.call(null,e,t)}onCancel(e){return Su(this.hasCancelCallback,"Raising a cancel event on a listener with no cancel callback"),this.cancelCallback.call(null,e)}get hasCancelCallback(){return!!this.cancelCallback}matches(e){return this.snapshotCallback===e.snapshotCallback||void 0!==this.snapshotCallback.userCallback&&this.snapshotCallback.userCallback===e.snapshotCallback.userCallback&&this.snapshotCallback.context===e.snapshotCallback.context}}
1557/**
1558 * @license
1559 * Copyright 2021 Google LLC
1560 *
1561 * Licensed under the Apache License, Version 2.0 (the "License");
1562 * you may not use this file except in compliance with the License.
1563 * You may obtain a copy of the License at
1564 *
1565 *   http://www.apache.org/licenses/LICENSE-2.0
1566 *
1567 * Unless required by applicable law or agreed to in writing, software
1568 * distributed under the License is distributed on an "AS IS" BASIS,
1569 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1570 * See the License for the specific language governing permissions and
1571 * limitations under the License.
1572 */class lg{constructor(e,t){this._repo=e,this._path=t}cancel(){const e=new ju;return jv(this._repo,this._path,e.wrapCallback(()=>{})),e.promise}remove(){Tv("OnDisconnect.remove",this._path);const e=new ju;return Uv(this._repo,this._path,null,e.wrapCallback(()=>{})),e.promise}set(e){Tv("OnDisconnect.set",this._path),wv("OnDisconnect.set",e,this._path,!1);const t=new ju;return Uv(this._repo,this._path,e,t.wrapCallback(()=>{})),t.promise}setWithPriority(e,t){Tv("OnDisconnect.setWithPriority",this._path),wv("OnDisconnect.setWithPriority",e,this._path,!1),function(e,t){if(fh(t))throw new Error(gc(e,"priority")+"is "+t.toString()+", but must be a valid Firebase priority (a string, finite number, server value, or null).");if(!_v(t))throw new Error(gc(e,"priority")+"must be a valid Firebase priority (a string, finite number, server value, or null).")}("OnDisconnect.setWithPriority",t);const n=new ju;return function(e,t,n,a,i){const r=Kp(n,a);e.server_.onDisconnectPut(t.toString(),r.val(!0),(n,a)=>{"ok"===n&&uf(e.onDisconnect_,t,r),Kv(0,i,n,a)})}(this._repo,this._path,e,t,n.wrapCallback(()=>{})),n.promise}update(e){Tv("OnDisconnect.update",this._path),Cv("OnDisconnect.update",e,this._path);const t=new ju;return function(e,t,n,a){if(sc(n))return uh("onDisconnect().update() called with empty data.  Don't do anything."),void Kv(0,a,"ok",void 0);e.server_.onDisconnectMerge(t.toString(),n,(i,r)=>{"ok"===i&&kh(n,(n,a)=>{const i=Kp(a);uf(e.onDisconnect_,op(t,n),i)}),Kv(0,a,i,r)})}(this._repo,this._path,e,t.wrapCallback(()=>{})),t.promise}}
1573/**
1574 * @license
1575 * Copyright 2020 Google LLC
1576 *
1577 * Licensed under the Apache License, Version 2.0 (the "License");
1578 * you may not use this file except in compliance with the License.
1579 * You may obtain a copy of the License at
1580 *
1581 *   http://www.apache.org/licenses/LICENSE-2.0
1582 *
1583 * Unless required by applicable law or agreed to in writing, software
1584 * distributed under the License is distributed on an "AS IS" BASIS,
1585 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1586 * See the License for the specific language governing permissions and
1587 * limitations under the License.
1588 */class ug{constructor(e,t,n,a){this._repo=e,this._path=t,this._queryParams=n,this._orderByCalled=a}get key(){return sp(this._path)?null:ap(this._path)}get ref(){return new pg(this._repo,this._path)}get _queryIdentifier(){const e=rf(this._queryParams),t=_h(e);return"{}"===t?"default":t}get _queryObject(){return rf(this._queryParams)}isEqual(e){if(!((e=bc(e))instanceof ug))return!1;const t=this._repo===e._repo,n=cp(this._path,e._path),a=this._queryIdentifier===e._queryIdentifier;return t&&n&&a}toJSON(){return this.toString()}toString(){return this._repo.toString()+function(e){let t="";for(let n=e.pieceNum_;n<e.pieces_.length;n++)""!==e.pieces_[n]&&(t+="/"+encodeURIComponent(String(e.pieces_[n])));return t||"/"}(this._path)}}function cg(e,t){if(!0===e._orderByCalled)throw new Error(t+": You can't combine multiple orderBy calls.")}function dg(e){let t=null,n=null;if(e.hasStart()&&(t=e.getIndexStartValue()),e.hasEnd()&&(n=e.getIndexEndValue()),e.getIndex()===kp){const a="Query: When ordering by key, you may only pass one argument to startAt(), endAt(), or equalTo().",i="Query: When ordering by key, the argument passed to startAt(), startAfter(), endAt(), endBefore(), or equalTo() must be a string.";if(e.hasStart()){if(e.getIndexStartName()!==mh)throw new Error(a);if("string"!=typeof t)throw new Error(i)}if(e.hasEnd()){if(e.getIndexEndName()!==vh)throw new Error(a);if("string"!=typeof n)throw new Error(i)}}else if(e.getIndex()===Dp){if(null!=t&&!_v(t)||null!=n&&!_v(n))throw new Error("Query: When ordering by priority, the first argument passed to startAt(), startAfter() endAt(), endBefore(), or equalTo() must be a valid priority value (null, a number, or a string).")}else if(Su(e.getIndex()instanceof Wp||e.getIndex()===Gp,"unknown index type."),null!=t&&"object"==typeof t||null!=n&&"object"==typeof n)throw new Error("Query: First argument passed to startAt(), startAfter(), endAt(), endBefore(), or equalTo() cannot be an object.")}function hg(e){if(e.hasStart()&&e.hasEnd()&&e.hasLimit()&&!e.hasAnchoredLimit())throw new Error("Query: Can't combine startAt(), startAfter(), endAt(), endBefore(), and limit(). Use limitToFirst() or limitToLast() instead.")}class pg extends ug{constructor(e,t){super(e,t,new tf,!1)}get parent(){const e=rp(this._path);return null===e?null:new pg(this._repo,e)}get root(){let e=this;for(;null!==e.parent;)e=e.parent;return e}}class fg{constructor(e,t,n){this._node=e,this.ref=t,this._index=n}get priority(){return this._node.getPriority().val()}get key(){return this.ref.key}get size(){return this._node.numChildren()}child(e){const t=new Qh(e),n=vg(this.ref,e);return new fg(this._node.getChild(t),n,Dp)}exists(){return!this._node.isEmpty()}exportVal(){return this._node.val(!0)}forEach(e){if(this._node.isLeafNode())return!1;return!!this._node.forEachChild(this._index,(t,n)=>e(new fg(n,vg(this.ref,t),Dp)))}hasChild(e){const t=new Qh(e);return!this._node.getChild(t).isEmpty()}hasChildren(){return!this._node.isLeafNode()&&!this._node.isEmpty()}toJSON(){return this.exportVal()}val(){return this._node.val()}}function mg(e,t){return(e=bc(e))._checkNotDeleted("ref"),void 0!==t?vg(e._root,t):e._root}function vg(e,t){var n,a,i;return null===ep((e=bc(e))._path)?(n="child",a="path",(i=t)&&(i=i.replace(/^\/*\.info(\/|$)/,"/")),Sv(n,a,i)):Sv("child","path",t),new pg(e._repo,op(e._path,t))}function gg(e){return e=bc(e),new lg(e._repo,e._path)}function yg(e,t){e=bc(e),Tv("push",e._path),wv("push",t,e._path,!0);const n=Dv(e._repo),a=ig(n),i=vg(e,a),r=vg(e,a);let o;return o=null!=t?_g(r,t).then(()=>r):Promise.resolve(r),i.then=o.then.bind(o),i.catch=o.then.bind(o,void 0),i}function bg(e){return Tv("remove",e._path),_g(e,null)}function _g(e,t){e=bc(e),Tv("set",e._path),wv("set",t,e._path,!1);const n=new ju;return function(e,t,n,a,i){zv(e,"set",{path:t.toString(),value:n,priority:a});const r=Lv(e),o=Kp(n,a),s=Xm(e.serverSyncTree_,t),l=iv(o,s,r),u=Xv(e),c=Om(e.serverSyncTree_,t,l,u,!0);Iv(e.eventQueue_,c),e.server_.put(t.toString(),o.val(!0),(n,a)=>{const r="ok"===n;
1588r||ph("set at "+t+" failed: "+n);const o=Dm(e.serverSyncTree_,u,!r);Nv(e.eventQueue_,t,o),Kv(0,i,n,a)});const d=Zv(e,t);qv(e,d),Nv(e.eventQueue_,d,[])}(e._repo,e._path,t,null,n.wrapCallback(()=>{})),n.promise}function wg(e,t){Cv("update",t,e._path);const n=new ju;return function(e,t,n,a){zv(e,"update",{path:t.toString(),value:n});let i=!0;const r=Lv(e),o={};if(kh(n,(n,a)=>{i=!1,o[n]=av(op(t,n),Kp(a),e.serverSyncTree_,r)}),i)uh("update() called with empty data.  Don't do anything."),Kv(0,a,"ok",void 0);else{const i=Xv(e),r=Rm(e.serverSyncTree_,t,o,i);Iv(e.eventQueue_,r),e.server_.merge(t.toString(),n,(n,r)=>{const o="ok"===n;o||ph("update at "+t+" failed: "+n);const s=Dm(e.serverSyncTree_,i,!o),l=s.length>0?qv(e,t):t;Nv(e.eventQueue_,l,s),Kv(0,a,n,r)}),kh(n,n=>{const a=Zv(e,op(t,n));qv(e,a)}),Nv(e.eventQueue_,t,[])}}(e._repo,e._path,t,n.wrapCallback(()=>{})),n.promise}function kg(e){e=bc(e);const t=new sg(()=>{}),n=new Cg(t);return function(e,t,n){const a=jm(e.serverSyncTree_,t);return null!=a?Promise.resolve(a):e.server_.get(t).then(a=>{const i=Kp(a).withIndex(t._queryParams.getIndex());let r;if(Vm(e.serverSyncTree_,t,n,!0),t._queryParams.loadsAllData())r=Lm(e.serverSyncTree_,t._path,i);else{const n=Wm(e.serverSyncTree_,t);r=Fm(e.serverSyncTree_,t._path,i,n)}return Nv(e.eventQueue_,t._path,r),Bm(e.serverSyncTree_,t,n,null,!0),i},n=>(zv(e,"get for query "+ac(t)+" failed: "+n),Promise.reject(new Error(n))))}(e._repo,e,n).then(t=>new fg(t,new pg(e._repo,e._path),e._queryParams.getIndex()))}class Cg{constructor(e){this.callbackContext=e}respondsTo(e){return"value"===e}createEvent(e,t){const n=t._queryParams.getIndex();return new rg("value",this,new fg(e.snapshotNode,new pg(t._repo,t._path),n))}getEventRunner(e){return"cancel"===e.getEventType()?()=>this.callbackContext.onCancel(e.error):()=>this.callbackContext.onValue(e.snapshot,null)}createCancelEvent(e,t){return this.callbackContext.hasCancelCallback?new og(this,e,t):null}matches(e){return e instanceof Cg&&(!e.callbackContext||!this.callbackContext||e.callbackContext.matches(this.callbackContext))}hasAnyCallback(){return null!==this.callbackContext}}class Sg{constructor(e,t){this.eventType=e,this.callbackContext=t}respondsTo(e){let t="children_added"===e?"child_added":e;return t="children_removed"===t?"child_removed":t,this.eventType===t}createCancelEvent(e,t){return this.callbackContext.hasCancelCallback?new og(this,e,t):null}createEvent(e,t){Su(null!=e.childName,"Child events should have a childName.");const n=vg(new pg(t._repo,t._path),e.childName),a=t._queryParams.getIndex();return new rg(e.type,this,new fg(e.snapshotNode,n,a),e.prevName)}getEventRunner(e){return"cancel"===e.getEventType()?()=>this.callbackContext.onCancel(e.error):()=>this.callbackContext.onValue(e.snapshot,e.prevName)}matches(e){return e instanceof Sg&&(this.eventType===e.eventType&&(!this.callbackContext||!e.callbackContext||this.callbackContext.matches(e.callbackContext)))}hasAnyCallback(){return!!this.callbackContext}}function Tg(e,t,n,a,i){let r;if("object"==typeof a&&(r=void 0,i=a),"function"==typeof a&&(r=a),i&&i.onlyOnce){const t=n,a=(n,a)=>{Hv(e._repo,e,s),t(n,a)};a.userCallback=n.userCallback,a.context=n.context,n=a}const o=new sg(n,r||void 0),s="value"===t?new Cg(o):new Sg(t,o);return function(e,t,n){let a;a=".info"===ep(t._path)?Vm(e.infoSyncTree_,t,n):Vm(e.serverSyncTree_,t,n),xv(e.eventQueue_,t._path,a)}(e._repo,e,s),()=>Hv(e._repo,e,s)}function Ag(e,t,n,a){return Tg(e,"value",t,n,a)}function Eg(e,t,n){Hv(e._repo,e,null)}class Ig{}class xg extends Ig{constructor(e,t){super(),this._value=e,this._key=t,this.type="endAt"}_apply(e){wv("endAt",this._value,e._path,!0);const t=function(e,t,n){const a=e.copy();return a.endSet_=!0,void 0===t&&(t=null),a.indexEndValue_=t,void 0!==n?(a.endNameSet_=!0,a.indexEndName_=n):(a.endNameSet_=!1,a.indexEndName_=""),a}(e._queryParams,this._value,this._key);if(hg(t),dg(t),e._queryParams.hasEnd())throw new Error("endAt: Starting point was already set (by another call to endAt, endBefore or equalTo).");return new ug(e._repo,e._path,t,e._orderByCalled)}}function Ng(e,t){return new xg(e,t)}class Pg extends Ig{constructor(e,t){super(),this._value=e,this._key=t,this.type="startAt"}_apply(e){wv("startAt",this._value,e._path,!0);const t=function(e,t,n){const a=e.copy();return a.startSet_=!0,void 0===t&&(t=null),a.indexStartValue_=t,null!=n?(a.startNameSet_=!0,a.indexStartName_=n):(a.startNameSet_=!1,a.indexStartName_=""),a}(e._queryParams,this._value,this._key);if(hg(t),dg(t),e._queryParams.hasStart())throw new Error("startAt: Starting point was already set 
1588(by another call to startAt, startBefore or equalTo).");return new ug(e._repo,e._path,t,e._orderByCalled)}}function Mg(e=null,t){return new Pg(e,t)}class Og extends Ig{constructor(e){super(),this._limit=e,this.type="limitToFirst"}_apply(e){if(e._queryParams.hasLimit())throw new Error("limitToFirst: Limit was already set (by another call to limitToFirst or limitToLast).");return new ug(e._repo,e._path,function(e,t){const n=e.copy();return n.limitSet_=!0,n.limit_=t,n.viewFrom_="l",n}(e._queryParams,this._limit),e._orderByCalled)}}function Rg(e){if("number"!=typeof e||Math.floor(e)!==e||e<=0)throw new Error("limitToFirst: First argument must be a positive integer.");return new Og(e)}class Dg extends Ig{constructor(e){super(),this._limit=e,this.type="limitToLast"}_apply(e){if(e._queryParams.hasLimit())throw new Error("limitToLast: Limit was already set (by another call to limitToFirst or limitToLast).");return new ug(e._repo,e._path,function(e,t){const n=e.copy();return n.limitSet_=!0,n.limit_=t,n.viewFrom_="r",n}(e._queryParams,this._limit),e._orderByCalled)}}function Lg(e){if(Math.floor(e)!==e||e<=0)throw new Error("limitToLast: First argument must be a positive integer.");return new Dg(e)}class Bg extends Ig{constructor(e){super(),this._path=e,this.type="orderByChild"}_apply(e){cg(e,"orderByChild");const t=new Qh(this._path);if(sp(t))throw new Error("orderByChild: cannot pass in empty path. Use orderByValue() instead.");const n=new Wp(t),a=nf(e._queryParams,n);return dg(a),new ug(e._repo,e._path,a,!0)}}function Fg(e){if("$key"===e)throw new Error('orderByChild: "$key" is invalid.  Use orderByKey() instead.');if("$priority"===e)throw new Error('orderByChild: "$priority" is invalid.  Use orderByPriority() instead.');if("$value"===e)throw new Error('orderByChild: "$value" is invalid.  Use orderByValue() instead.');return Sv("orderByChild","path",e),new Bg(e)}class Vg extends Ig{constructor(){super(...arguments),this.type="orderByKey"}_apply(e){cg(e,"orderByKey");const t=nf(e._queryParams,kp);return dg(t),new ug(e._repo,e._path,t,!0)}}function Xg(){return new Vg}class jg extends Ig{constructor(e,t){super(),this._value=e,this._key=t,this.type="equalTo"}_apply(e){if(wv("equalTo",this._value,e._path,!1),e._queryParams.hasStart())throw new Error("equalTo: Starting point was already set (by another call to startAt/startAfter or equalTo).");if(e._queryParams.hasEnd())throw new Error("equalTo: Ending point was already set (by another call to endAt/endBefore or equalTo).");return new xg(this._value,this._key)._apply(new Pg(this._value,this._key)._apply(e))}}function Ug(e,t){return new jg(e,t)}function Hg(e,...t){let n=bc(e);for(const a of t)n=a._apply(n);return n}!function(e){Su(!ym,"__referenceConstructor has already been defined"),ym=e}(pg),function(e){Su(!bm,"__referenceConstructor has already been defined"),bm=e}(pg);
1589/**
1590 * @license
1591 * Copyright 2020 Google LLC
1592 *
1593 * Licensed under the Apache License, Version 2.0 (the "License");
1594 * you may not use this file except in compliance with the License.
1595 * You may obtain a copy of the License at
1596 *
1597 *   http://www.apache.org/licenses/LICENSE-2.0
1598 *
1599 * Unless required by applicable law or agreed to in writing, software
1600 * distributed under the License is distributed on an "AS IS" BASIS,
1601 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1602 * See the License for the specific language governing permissions and
1603 * limitations under the License.
1604 */
1605const zg={};let Kg=!1;function Wg(e,t,n,a,i){let r=a||e.options.databaseURL;void 0===r&&(e.options.projectId||hh("Can't determine Firebase Database URL. Be sure to include  a Project ID when calling firebase.initializeApp()."),uh("Using default host for project ",e.options.projectId),r="".concat(e.options.projectId,"-default-rtdb.firebaseio.com"));let o,s=tg(r,i),l=s.repoInfo;"undefined"!=typeof process&&qd&&(o=qd.FIREBASE_DATABASE_EMULATOR_HOST),o?(r="http://".concat(o,"?ns=").concat(l.namespace),s=tg(r,i),l=s.repoInfo):s.repoInfo.secure;const u=new xh(e.name,e.options,t);Av("Invalid Firebase Database URL",s),sp(s.path)||hh("Database URL must point to the root of a Firebase Database (not including a child path).");const c=function(e,t,n,a){let i=zg[t.name];i||(i={},zg[t.name]=i);let r=i[e.toURLString()];r&&hh("Database initialized multiple times. Please make sure the format of the database URL matches with each database() call.");return r=new Ov(e,Kg,n,a),i[e.toURLString()]=r,r}(l,e,u,new Ih(e,n));return new Gg(c,e)}class Gg{constructor(e,t){this._repoInternal=e,this.app=t,this.type="database",this._instanceStarted=!1}get _repo(){return this._instanceStarted||(Rv(this._repoInternal,this.app.options.appId,this.app.options.databaseAuthVariableOverride),this._instanceStarted=!0),this._repoInternal}get _root(){return this._rootInternal||(this._rootInternal=new pg(this._repo,Zh())),this._rootInternal}_delete(){return null!==this._rootInternal&&(!function(e,t){const n=zg[t];n&&n[e.key]===e||hh("Database ".concat(t,"(").concat(e.repoInfo_,") has already been deleted.")),function(e){e.persistentConnection_&&e.persistentConnection_.interrupt("repo_interrupt")}(e),delete n[e.key]}(this._repo,this.app.name),this._repoInternal=null,this._rootInternal=null),Promise.resolve()}_checkNotDeleted(e){null===this._rootInternal&&hh("Cannot call "+e+" on a deleted database.")}}function qg(e=Ld(),t){const n=Nd(e,"database").getImmediate({identifier:t});if(!n._instanceStarted){const e=Fu("database");e&&function(e,t,n,a={}){e=bc(e),e._checkNotDeleted("useEmulator");const i="".concat(t,":").concat(n),r=e._repoInternal;if(e._instanceStarted){if(i===e._repoInternal.repoInfo_.host&&uc(a,r.repoInfo_.emulatorOptions))return;hh("connectDatabaseEmulator() cannot initialize or alter the emulator configuration after the database instance has started.")}let o;if(r.repoInfo_.nodeAdmin)a.mockUserToken&&hh('mockUserToken is not supported by the Admin SDK. For client access with mock users, please use the "firebase" package instead of "firebase-admin".'),o=new Nh(Nh.OWNER);else if(a.mockUserToken){const t="string"==typeof a.mockUserToken?a.mockUserToken:zu(a.mockUserToken,e.app.options.projectId);o=new Nh(t)}Uu(t)&&(Hu(t),Gu("Database",!0));!function(e,t,n,a){const i=t.lastIndexOf(":"),r=Uu(t.substring(0,i));e.repoInfo_=new Dh(t,r,e.repoInfo_.namespace,e.repoInfo_.webSocketOnly,e.repoInfo_.nodeAdmin,e.repoInfo_.persistenceKey,e.repoInfo_.includeNamespaceInQueryParams,!0,n),a&&(e.authTokenProvider_=a)}(r,i,a,o)}
1606/**
1607 * @license
1608 * Copyright 2021 Google LLC
1609 *
1610 * Licensed under the Apache License, Version 2.0 (the "License");
1611 * you may not use this file except in compliance with the License.
1612 * You may obtain a copy of the License at
1613 *
1614 *   http://www.apache.org/licenses/LICENSE-2.0
1615 *
1616 * Unless required by applicable law or agreed to in writing, software
1617 * distributed under the License is distributed on an "AS IS" BASIS,
1618 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1619 * See the License for the specific language governing permissions and
1620 * limitations under the License.
1621 */(n,...e)}return n}
1622/**
1623 * @license
1624 * Copyright 2020 Google LLC
1625 *
1626 * Licensed under the Apache License, Version 2.0 (the "License");
1627 * you may not use this file except in compliance with the License.
1628 * You may obtain a copy of the License at
1629 *
1630 *   http://www.apache.org/licenses/LICENSE-2.0
1631 *
1632 * Unless required by applicable law or agreed to in writing, software
1633 * distributed under the License is distributed on an "AS IS" BASIS,
1634 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1635 * See the License for the specific language governing permissions and
1636 * limitations under the License.
1637 */
1638const $g={".sv":"timestamp"};function Yg(){return $g}gp.prototype.simpleListen=function(e,t){this.sendRequest("q",{p:e},t)},gp.prototype.echo=function(e,t){this.sendRequest("echo",{d:e},t)},function(e){Jd=Rd,xd(new _c("database",(e,{instanceIdentifier:t})=>Wg(e.getProvider("app").getImmediate(),e.getProvider("auth-internal"),e.getProvider("app-check-internal"),t),"PUBLIC").setMultipleInstances(!0)),Bd($d,Yd,e),Bd($d,Yd,"esm2020")}();
1639/**
1640 * @license
1641 * Copyright 2020 Google LLC
1642 *
1643 * Licensed under the Apache License, Version 2.0 (the "License");
1644 * you may not use this file except in compliance with the License.
1645 * You may obtain a copy of the License at
1646 *
1647 *   http://www.apache.org/licenses/LICENSE-2.0
1648 *
1649 * Unless required by applicable law or agreed to in writing, software
1650 * distributed under the License is distributed on an "AS IS" BASIS,
1651 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1652 * See the License for the specific language governing permissions and
1653 * limitations under the License.
1654 */
1655Bd("firebase","12.3.0","app");var Jg,Qg,Zg="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};
1656/** @license
1657Copyright The Closure Library Authors.
1658SPDX-License-Identifier: Apache-2.0
1659*/(function(){var e;
1660/** @license
1661  
1662   Copyright The Closure Library Authors.
1663   SPDX-License-Identifier: Apache-2.0
1664  */function t(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.C=Array(this.blockSize),this.o=this.h=0,this.u()}function n(e,t,n){n||(n=0);const a=Array(16);if("string"==typeof t)for(var i=0;i<16;++i)a[i]=t.charCodeAt(n++)|t.charCodeAt(n++)<<8|t.charCodeAt(n++)<<16|t.charCodeAt(n++)<<24;else for(i=0;i<16;++i)a[i]=t[n++]|t[n++]<<8|t[n++]<<16|t[n++]<<24;t=e.g[0],n=e.g[1],i=e.g[2];let r,o=e.g[3];r=t+(o^n&(i^o))+a[0]+3614090360&4294967295,r=o+(i^(t=n+(r<<7&4294967295|r>>>25))&(n^i))+a[1]+3905402710&4294967295,o=t+(r<<12&4294967295|r>>>20),r=i+(n^o&(t^n))+a[2]+606105819&4294967295,r=n+(t^(i=o+(r<<17&4294967295|r>>>15))&(o^t))+a[3]+3250441966&4294967295,r=t+(o^(n=i+(r<<22&4294967295|r>>>10))&(i^o))+a[4]+4118548399&4294967295,r=o+(i^(t=n+(r<<7&4294967295|r>>>25))&(n^i))+a[5]+1200080426&4294967295,o=t+(r<<12&4294967295|r>>>20),r=i+(n^o&(t^n))+a[6]+2821735955&4294967295,r=n+(t^(i=o+(r<<17&4294967295|r>>>15))&(o^t))+a[7]+4249261313&4294967295,r=t+(o^(n=i+(r<<22&4294967295|r>>>10))&(i^o))+a[8]+1770035416&4294967295,r=o+(i^(t=n+(r<<7&4294967295|r>>>25))&(n^i))+a[9]+2336552879&4294967295,o=t+(r<<12&4294967295|r>>>20),r=i+(n^o&(t^n))+a[10]+4294925233&4294967295,r=n+(t^(i=o+(r<<17&4294967295|r>>>15))&(o^t))+a[11]+2304563134&4294967295,r=t+(o^(n=i+(r<<22&4294967295|r>>>10))&(i^o))+a[12]+1804603682&4294967295,r=o+(i^(t=n+(r<<7&4294967295|r>>>25))&(n^i))+a[13]+4254626195&4294967295,o=t+(r<<12&4294967295|r>>>20),r=i+(n^o&(t^n))+a[14]+2792965006&4294967295,r=n+(t^(i=o+(r<<17&4294967295|r>>>15))&(o^t))+a[15]+1236535329&4294967295,r=t+(i^o&((n=i+(r<<22&4294967295|r>>>10))^i))+a[1]+4129170786&4294967295,r=o+(n^i&((t=n+(r<<5&4294967295|r>>>27))^n))+a[6]+3225465664&4294967295,o=t+(r<<9&4294967295|r>>>23),r=i+(t^n&(o^t))+a[11]+643717713&4294967295,r=n+(o^t&((i=o+(r<<14&4294967295|r>>>18))^o))+a[0]+3921069994&4294967295,r=t+(i^o&((n=i+(r<<20&4294967295|r>>>12))^i))+a[5]+3593408605&4294967295,r=o+(n^i&((t=n+(r<<5&4294967295|r>>>27))^n))+a[10]+38016083&4294967295,o=t+(r<<9&4294967295|r>>>23),r=i+(t^n&(o^t))+a[15]+3634488961&4294967295,r=n+(o^t&((i=o+(r<<14&4294967295|r>>>18))^o))+a[4]+3889429448&4294967295,r=t+(i^o&((n=i+(r<<20&4294967295|r>>>12))^i))+a[9]+568446438&4294967295,r=o+(n^i&((t=n+(r<<5&4294967295|r>>>27))^n))+a[14]+3275163606&4294967295,o=t+(r<<9&4294967295|r>>>23),r=i+(t^n&(o^t))+a[3]+4107603335&4294967295,r=n+(o^t&((i=o+(r<<14&4294967295|r>>>18))^o))+a[8]+1163531501&4294967295,r=t+(i^o&((n=i+(r<<20&4294967295|r>>>12))^i))+a[13]+2850285829&4294967295,r=o+(n^i&((t=n+(r<<5&4294967295|r>>>27))^n))+a[2]+4243563512&4294967295,o=t+(r<<9&4294967295|r>>>23),r=i+(t^n&(o^t))+a[7]+1735328473&4294967295,r=n+(o^t&((i=o+(r<<14&4294967295|r>>>18))^o))+a[12]+2368359562&4294967295,r=t+((n=i+(r<<20&4294967295|r>>>12))^i^o)+a[5]+4294588738&4294967295,r=o+((t=n+(r<<4&4294967295|r>>>28))^n^i)+a[8]+2272392833&4294967295,o=t+(r<<11&4294967295|r>>>21),r=i+(o^t^n)+a[11]+1839030562&4294967295,r=n+((i=o+(r<<16&4294967295|r>>>16))^o^t)+a[14]+4259657740&4294967295,r=t+((n=i+(r<<23&4294967295|r>>>9))^i^o)+a[1]+2763975236&4294967295,r=o+((t=n+(r<<4&4294967295|r>>>28))^n^i)+a[4]+1272893353&4294967295,o=t+(r<<11&4294967295|r>>>21),r=i+(o^t^n)+a[7]+4139469664&4294967295,r=n+((i=o+(r<<16&4294967295|r>>>16))^o^t)+a[10]+3200236656&4294967295,r=t+((n=i+(r<<23&4294967295|r>>>9))^i^o)+a[13]+681279174&4294967295,r=o+((t=n+(r<<4&4294967295|r>>>28))^n^i)+a[0]+3936430074&4294967295,o=t+(r<<11&4294967295|r>>>21),r=i+(o^t^n)+a[3]+3572445317&4294967295,r=n+((i=o+(r<<16&4294967295|r>>>16))^o^t)+a[6]+76029189&4294967295,r=t+((n=i+(r<<23&4294967295|r>>>9))^i^o)+a[9]+3654602809&4294967295,r=o+((t=n+(r<<4&4294967295|r>>>28))^n^i)+a[12]+3873151461&4294967295,o=t+(r<<11&4294967295|r>>>21),r=i+(o^t^n)+a[15]+530742520&4294967295,r=n+((i=o+(r<<16&4294967295|r>>>16))^o^t)+a[2]+3299628645&4294967295,r=t+(i^((n=i+(r<<23&4294967295|r>>>9))|~o))+a[0]+4096336452&4294967295,r=o+(n^((t=n+(r<<6&4294967295|r>>>26))|~i))+a[7]+1126891415&4294967295,o=t+(r<<10&4294967295|r>>>22),r=i+(t^(o|~n))+a[14]+2878612391&4294967295,r=n+(o^((i=o+(r<<15&4294967295|r>>>17))|~t))+a[5]+4237533241&4294967295,r=t+(i^((n=i+(r<<21&4294967295|r>>>11))|~o))+a[12]+1700485571&4294967295,r=o+(n^((t=n+(r<<6&4294967295|r>>>26))|~i))+a[3]+2399980690&4294967295,o=t+(r<<10&4294967295|r>>>22),r=i+(t^(o|~n))+a[10]+4293915773&4294967295,r=n+(o^((i=o+(r<<15&4294967295|r>>>17))|~t))+a[1]+2240044497&4294967295,r=t+(i^((n=i+(r<<21&4294967295|r>>>11))|~o))+a[8]+1873313359&4294967295,r=o+(n^((t=n+(r<<6&4294967295|r>>>26))|~i))+a[15]+4264355552&4294967295,o=t+(r<<10&4294967295|r>>>22),r=i+(t^(o|~n))+a[6]+2734768916&4294967295,r=n+(o^((i=o+(r<<15&4294967295|r>>>17))|~t))+a[13]+1309151649&4294967295,r=t+(i^((n=i+(r<<21&4294967295|r>>>11))|~o))+a[4]+4149444226&4294967295,r=o+(n^((t=n+(r<<6&4294967295|r>>>26))|~i))+a[11]+3174756917&4294967295,o=t+(r<<10&4294967295|r>>>22),r=i+(t^(o|~n))+a[2]+718787259&4294967295,r=n+(o^((i=o+(r<<15&4294967295|r>>>17))|~t))+a[9]+3951481745&4294967295,e.g[0]=e.g[0]+t&4294967295,e.g[1]=e.g[1]+(i+(r<<21&4294967295|r>>>11))&4294967295,e.g[2]=e.g[2]+i&4294967295,e.g[3]=e.g[3]+o&4294967295}function a(e,t){this.h=t;const n=[];let a=!0;for(let i=e.length-1;i>=0;i--){const r=0|e[i];a&&r==t||(n[i]=r,a=!1)}this.g=n}!function(e,t){function n(){}n.prototype=t.prototype,e.F=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.D=function(e,n,a){for(var i=Array(arguments.length-2),r=2;r<arguments.length;r++)i[r-2]=arguments[r];return t.prototype[n].apply(e,i)}}(t,function(){this.blockSize=-1}),t.prototype.u=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.o=this.h=0},t.prototype.v=function(e,t){void 0===t&&(t=e.length);const a=t-this.blockSize,i=this.C;let r=this.h,o=0;for(;o<t;){if(0==r)for(;o<=a;)n(this,e,o),o+=this.blockSize;if("string"==typeof e){for(;o<t;)if(i[r++]=e.charCodeAt(o++),r==this.blockSize){n(this,i),r=0;break}}else for(;o<t;)if(i[r++]=e[o++],r==this.blockSize){n(this,i),r=0;break}}this.h=r,this.o+=t},t.prototype.A=function(){var e=Array((this.h<56?this.blockSize:2*this.blockSize)-this.h);e[0]=128;for(var t=1;t<e.length-8;++t)e[t]=0;t=8*this.o;for(var n=e.length-8;n<e.length;++n)e[n]=255&t,t/=256;for(this.v(e),e=Array(16),t=0,n=0;n<4;++n)for(let a=0;a<32;a+=8)e[t++]=this.g[n]>>>a&255;return e};var i={};function r(e){return-128<=e&&e<128?function(e,t){var n=i;return Object.prototype.hasOwnProperty.call(n,e)?n[e]:n[e]=t(e)}(e,function(e){return new a([0|e],e<0?-1:0)}):new a([0|e],e<0?-1:0)}function o(e){if(isNaN(e)||!isFinite(e))return s;if(e<0)return h(o(-e));const t=[];let n=1;for(let a=0;e>=n;a++)t[a]=e/n|0,n*=4294967296;return new a(t,0)}var s=r(0),l=r(1),u=r(16777216);function c(e){if(0!=e.h)return!1;for(let t=0;t<e.g.length;t++)if(0!=e.g[t])return!1;return!0}function d(e){return-1==e.h}function h(e){const t=e.g.length,n=[];for(let a=0;a<t;a++)n[a]=~e.g[a];return new a(n,~e.h).add(l)}function p(e,t){return e.add(h(t))}function f(e,t){for(;(65535&e[t])!=e[t];)e[t+1]+=e[t]>>>16,e[t]&=65535,t++}function m(e,t){this.g=e,this.h=t}function v(e,t){if(c(t))throw Error("division by zero");if(c(e))return new m(s,s);if(d(e))return t=v(h(e),t),new m(h(t.g),h(t.h));if(d(t))return t=v(e,h(t)),new m(h(t.g),t.h);if(e.g.length>
vendor: 44,414 bytes, lines 1664-1695
166430){if(d(e)||d(t))throw Error("slowDivide_ only works with positive integers.");for(var n=l,a=t;a.l(e)<=0;)n=g(n),a=g(a);var i=y(n,1),r=y(a,1);for(a=y(a,2),n=y(n,2);!c(a);){var u=r.add(a);u.l(e)<=0&&(i=i.add(n),r=u),a=y(a,1),n=y(n,1)}return t=p(e,i.j(t)),new m(i,t)}for(i=s;e.l(t)>=0;){for(n=Math.max(1,Math.floor(e.m()/t.m())),a=(a=Math.ceil(Math.log(n)/Math.LN2))<=48?1:Math.pow(2,a-48),u=(r=o(n)).j(t);d(u)||u.l(e)>0;)u=(r=o(n-=a)).j(t);c(r)&&(r=l),i=i.add(r),e=p(e,u)}return new m(i,e)}function g(e){const t=e.g.length+1,n=[];for(let a=0;a<t;a++)n[a]=e.i(a)<<1|e.i(a-1)>>>31;return new a(n,e.h)}function y(e,t){const n=t>>5;t%=32;const i=e.g.length-n,r=[];for(let a=0;a<i;a++)r[a]=t>0?e.i(a+n)>>>t|e.i(a+n+1)<<32-t:e.i(a+n);return new a(r,e.h)}(e=a.prototype).m=function(){if(d(this))return-h(this).m();let e=0,t=1;for(let n=0;n<this.g.length;n++){const a=this.i(n);e+=(a>=0?a:4294967296+a)*t,t*=4294967296}return e},e.toString=function(e){if((e=e||10)<2||36<e)throw Error("radix out of range: "+e);if(c(this))return"0";if(d(this))return"-"+h(this).toString(e);const t=o(Math.pow(e,6));var n=this;let a="";for(;;){const i=v(n,t).g;let r=(((n=p(n,i.j(t))).g.length>0?n.g[0]:n.h)>>>0).toString(e);if(c(n=i))return r+a;for(;r.length<6;)r="0"+r;a=r+a}},e.i=function(e){return e<0?0:e<this.g.length?this.g[e]:this.h},e.l=function(e){return d(e=p(this,e))?-1:c(e)?0:1},e.abs=function(){return d(this)?h(this):this},e.add=function(e){const t=Math.max(this.g.length,e.g.length),n=[];let i=0;for(let a=0;a<=t;a++){let t=i+(65535&this.i(a))+(65535&e.i(a)),r=(t>>>16)+(this.i(a)>>>16)+(e.i(a)>>>16);i=r>>>16,t&=65535,r&=65535,n[a]=r<<16|t}return new a(n,-2147483648&n[n.length-1]?-1:0)},e.j=function(e){if(c(this)||c(e))return s;if(d(this))return d(e)?h(this).j(h(e)):h(h(this).j(e));if(d(e))return h(this.j(h(e)));if(this.l(u)<0&&e.l(u)<0)return o(this.m()*e.m());const t=this.g.length+e.g.length,n=[];for(var i=0;i<2*t;i++)n[i]=0;for(i=0;i<this.g.length;i++)for(let t=0;t<e.g.length;t++){const a=this.i(i)>>>16,r=65535&this.i(i),o=e.i(t)>>>16,s=65535&e.i(t);n[2*i+2*t]+=r*s,f(n,2*i+2*t),n[2*i+2*t+1]+=a*s,f(n,2*i+2*t+1),n[2*i+2*t+1]+=r*o,f(n,2*i+2*t+1),n[2*i+2*t+2]+=a*o,f(n,2*i+2*t+2)}for(e=0;e<t;e++)n[e]=n[2*e+1]<<16|n[2*e];for(e=t;e<2*t;e++)n[e]=0;return new a(n,0)},e.B=function(e){return v(this,e).h},e.and=function(e){const t=Math.max(this.g.length,e.g.length),n=[];for(let a=0;a<t;a++)n[a]=this.i(a)&e.i(a);return new a(n,this.h&e.h)},e.or=function(e){const t=Math.max(this.g.length,e.g.length),n=[];for(let a=0;a<t;a++)n[a]=this.i(a)|e.i(a);return new a(n,this.h|e.h)},e.xor=function(e){const t=Math.max(this.g.length,e.g.length),n=[];for(let a=0;a<t;a++)n[a]=this.i(a)^e.i(a);return new a(n,this.h^e.h)},t.prototype.digest=t.prototype.A,t.prototype.reset=t.prototype.u,t.prototype.update=t.prototype.v,Qg=t,a.prototype.add=a.prototype.add,a.prototype.multiply=a.prototype.j,a.prototype.modulo=a.prototype.B,a.prototype.compare=a.prototype.l,a.prototype.toNumber=a.prototype.m,a.prototype.toString=a.prototype.toString,a.prototype.getBits=a.prototype.i,a.fromNumber=o,a.fromString=function e(t,n){if(0==t.length)throw Error("number format error: empty string");if((n=n||10)<2||36<n)throw Error("radix out of range: "+n);if("-"==t.charAt(0))return h(e(t.substring(1),n));if(t.indexOf("-")>=0)throw Error('number format error: interior "-" character');const a=o(Math.pow(n,8));let i=s;for(let s=0;s<t.length;s+=8){var r=Math.min(8,t.length-s);const e=parseInt(t.substring(s,s+r),n);r<8?(r=o(Math.pow(n,r)),i=i.j(r).add(o(e))):(i=i.j(a),i=i.add(o(e)))}return i},Jg=a}).apply(void 0!==Zg?Zg:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});var ey,ty,ny,ay,iy,ry,oy,sy,ly="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};
1665/** @license
1666Copyright The Closure Library Authors.
1667SPDX-License-Identifier: Apache-2.0
1668*/(function(){var e,t=Object.defineProperty;var n=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof ly&&ly];for(var t=0;t<e.length;++t){var n=e[t];if(n&&n.Math==Math)return n}throw Error("Cannot find global object")}(this);function a(e,a){if(a)e:{var i=n;e=e.split(".");for(var r=0;r<e.length-1;r++){var o=e[r];if(!(o in i))break e;i=i[o]}(a=a(r=i[e=e[e.length-1]]))!=r&&null!=a&&t(i,e,{configurable:!0,writable:!0,value:a})}}a("Symbol.dispose",function(e){return e||Symbol("Symbol.dispose")}),a("Array.prototype.values",function(e){return e||function(){return this[Symbol.iterator]()}}),a("Object.entries",function(e){return e||function(e){var t,n=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.push([t,e[t]]);return n}});
1669/** @license
1670  
1671   Copyright The Closure Library Authors.
1672   SPDX-License-Identifier: Apache-2.0
1673  */
1674var i=i||{},r=this||self;function o(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}function s(e,t,n){return e.call.apply(e.bind,arguments)}function l(e,t,n){return(l=s).apply(null,arguments)}function u(e,t){var n=Array.prototype.slice.call(arguments,1);return function(){var t=n.slice();return t.push.apply(t,arguments),e.apply(this,t)}}function c(e,t){function n(){}n.prototype=t.prototype,e.Z=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.Ob=function(e,n,a){for(var i=Array(arguments.length-2),r=2;r<arguments.length;r++)i[r-2]=arguments[r];return t.prototype[n].apply(e,i)}}var d="undefined"!=typeof AsyncContext&&"function"==typeof AsyncContext.Snapshot?e=>e&&AsyncContext.Snapshot.wrap(e):e=>e;function h(e){const t=e.length;if(t>0){const n=Array(t);for(let a=0;a<t;a++)n[a]=e[a];return n}return[]}function p(e,t){for(let a=1;a<arguments.length;a++){const t=arguments[a];var n=typeof t;if("array"==(n="object"!=n?n:t?Array.isArray(t)?"array":n:"null")||"object"==n&&"number"==typeof t.length){n=e.length||0;const a=t.length||0;e.length=n+a;for(let i=0;i<a;i++)e[n+i]=t[i]}else e.push(t)}}function f(e){r.setTimeout(()=>{throw e},0)}function m(){var e=_;let t=null;return e.g&&(t=e.g,e.g=e.g.next,e.g||(e.h=null),t.next=null),t}var v=new class{constructor(e,t){this.i=e,this.j=t,this.h=0,this.g=null}get(){let e;return this.h>0?(this.h--,e=this.g,this.g=e.next,e.next=null):e=this.i(),e}}(()=>new g,e=>e.reset());class g{constructor(){this.next=this.g=this.h=null}set(e,t){this.h=e,this.g=t,this.next=null}reset(){this.next=this.g=this.h=null}}let y,b=!1,_=new class{constructor(){this.h=this.g=null}add(e,t){const n=v.get();n.set(e,t),this.h?this.h.next=n:this.g=n,this.h=n}},w=()=>{const e=Promise.resolve(void 0);y=()=>{e.then(k)}};function k(){for(var e;e=m();){try{e.h.call(e.g)}catch(n){f(n)}var t=v;t.j(e),t.h<100&&(t.h++,e.next=t.g,t.g=e)}b=!1}function C(){this.u=this.u,this.C=this.C}function S(e,t){this.type=e,this.g=this.target=t,this.defaultPrevented=!1}C.prototype.u=!1,C.prototype.dispose=function(){this.u||(this.u=!0,this.N())},C.prototype[Symbol.dispose]=function(){this.dispose()},C.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()},S.prototype.h=function(){this.defaultPrevented=!0};var T=function(){if(!r.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{const e=()=>{};r.addEventListener("test",e,t),r.removeEventListener("test",e,t)}catch(n){}return e}();function A(e){return/^[\s\xa0]*$/.test(e)}function E(e,t){S.call(this,e?e.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,e&&this.init(e,t)}c(E,S),E.prototype.init=function(e,t){const n=this.type=e.type,a=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;this.target=e.target||e.srcElement,this.g=t,(t=e.relatedTarget)||("mouseover"==n?t=e.fromElement:"mouseout"==n&&(t=e.toElement)),this.relatedTarget=t,a?(this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType=e.pointerType,this.state=e.state,this.i=e,e.defaultPrevented&&E.Z.h.call(this)},E.prototype.h=function(){E.Z.h.call(this);const e=this.i;e.preventDefault?e.preventDefault():e.returnValue=!1};var I="closure_listenable_"+(1e6*Math.random()|0),x=0;function N(e,t,n,a,i){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!a,this.ha=i,this.key=++x,this.da=this.fa=!1}function P(e){e.da=!0,e.listener=null,e.proxy=null,e.src=null,e.ha=null}function M(e,t,n){for(const a in e)t.call(n,e[a],a,e)}function O(e){const t={};for(const n in e)t[n]=e[n];return t}const R="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function D(e,t){let n,a;for(let i=1;i<arguments.length;i++){for(n in a=arguments[i],a)e[n]=a[n];for(let t=0;t<R.length;t++)n=R[t],Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}}function L(e){this.src=e,this.g={},this.h=0}function B(e,t){const n=t.type;if(n in e.g){var a,i=e.g[n],r=Array.prototype.indexOf.call(i,t,void 0);(a=r>=0)&&Array.prototype.splice.call(i,r,1),a&&(P(t),0==e.g[n].length&&(delete e.g[n],e.h--))}}function F(e,t,n,a){for(let i=0;i<e.length;++i){const r=e[i];if(!r.da&&r.listener==t&&r.capture==!!n&&r.ha==a)return i}return-1}L.prototype.add=function(e,t,n,a,i){const r=e.toString();(e=this.g[r])||(e=this.g[r]=[],this.h++);const o=F(e,t,a,i);return o>-1?(t=e[o],n||(t.fa=!1)):((t=new N(t,this.src,r,!!a,i)).fa=n,e.push(t)),t};var V="closure_lm_"+(1e6*Math.random()|0),X={};function j(e,t,n,a,i){if(Array.isArray(t)){for(let r=0;r<t.length;r++)j(e,t[r],n,a,i);return null}return n=q(n),e&&e[I]?e.J(t,n,!!o(a)&&!!a.capture,i):function(e,t,n,a,i,r){if(!t)throw Error("Invalid event type");const s=o(i)?!!i.capture:!!i;let l=W(e);if(l||(e[V]=l=new L(e)),n=l.add(t,n,a,s,r),n.proxy)return n;if(a=function(){function e(n){return t.call(e.src,e.listener,n)}const t=K;return e}(),n.proxy=a,a.src=e,a.listener=n,e.addEventListener)T||(i=s),void 0===i&&(i=!1),e.addEventListener(t.toString(),a,i);else if(e.attachEvent)e.attachEvent(z(t.toString()),a);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(a)}return n}(e,t,n,!1,a,i)}function U(e,t,n,a,i){if(Array.isArray(t))for(var r=0;r<t.length;r++)U(e,t[r],n,a,i);else a=o(a)?!!a.capture:!!a,n=q(n),e&&e[I]?(e=e.i,(r=String(t).toString())in e.g&&((n=F(t=e.g[r],n,a,i))>-1&&(P(t[n]),Array.prototype.splice.call(t,n,1),0==t.length&&(delete e.g[r],e.h--)))):e&&(e=W(e))&&(t=e.g[t.toString()],e=-1,t&&(e=F(t,n,a,i)),(n=e>-1?t[e]:null)&&H(n))}function H(e){if("number"!=typeof e&&e&&!e.da){var t=e.src;if(t&&t[I])B(t.i,e);else{var n=e.type,a=e.proxy;t.removeEventListener?t.removeEventListener(n,a,e.capture):t.detachEvent?t.detachEvent(z(n),a):t.addListener&&t.removeListener&&t.removeListener(a),(n=W(t))?(B(n,e),0==n.h&&(n.src=null,t[V]=null)):P(e)}}}function z(e){return e in X?X[e]:X[e]="on"+e}function K(e,t){if(e.da)e=!0;else{t=new E(t,this);const n=e.listener,a=e.ha||e.src;e.fa&&H(e),e=n.call(a,t)}return e}function W(e){return(e=e[V])instanceof L?e:null}var G="__closure_events_fn_"+(1e9*Math.random()>>>0);function q(e){return"function"==typeof e?e:(e[G]||(e[G]=function(t){return e.handleEvent(t)}),e[G])}function $(){C.call(this),this.i=new L(this),this.M=this,this.G=null}function Y(e,t){var n,a=e.G;if(a)for(n=[];a;a=a.G)n.push(a);if(e=e.M,a=t.type||t,"string"==typeof t)t=new S(t,e);else if(t instanceof S)t.target=t.target||e;else{var i=t;D(t=new S(a,e),i)}let r,o;if(i=!0,n)for(o=n.length-1;o>=0;o--)r=t.g=n[o],i=J(r,a,!0,t)&&i;if(r=t.g=e,i=J(r,a,!0,t)&&i,i=J(r,a,!1,t)&&i,n)for(o=0;o<n.length;o++)r=t.g=n[o],i=J(r,a,!1,t)&&i}function J(e,t,n,a){if(!(t=e.i.g[String(t)]))return!0;t=t.concat();let i=!0;for(let r=0;r<t.length;++r){const o=t[r];if(o&&!o.da&&o.capture==n){const t=o.listener,n=o.ha||o.src;o.fa&&B(e.i,o),i=!1!==t.call(n,a)&&i}}return i&&!a.defaultPrevented}function Q(e){e.g=function(e,t){if("function"!=typeof e){if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=l(e.handleEvent,e)}return Number(t)>2147483647?-1:r.setTimeout(e,t||0)}(()=>{e.g=null,e.i&&(e.i=!1,Q(e))},e.l);const t=e.h;e.h=null,e.m.apply(null,t)}c($,C),$.prototype[I]=!0,$.prototype.removeEventListener=function(e,t,n,a){U(this,e,t,n,a)},$.prototype.N=function(){if($.Z.N.call(this),this.i){var e=this.i;for(const t in e.g){const n=e.g[t];for(let e=0;e<n.length;e++)P(n[e]);delete e.g[t],e.h--}}this.G=null},$.prototype.J=function(e,t,n,a){return this.i.add(String(e),t,!1,n,a)},$.prototype.K=function(e,t,n,a){return this.i.add(String(e),t,!0,n,a)};class Z extends C{constructor(e,t){super(),this.m=e,this.l=t,this.h=null,this.i=!1,this.g=null}j(e){this.h=arguments,this.g?this.i=!0:Q(this)}N(){super.N(),this.g&&(r.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function ee(e){C.call(this),this.h=e,this.g={}}c(ee,C);var te=[];function ne(e){M(e.g,function(e,t){this.g.hasOwnProperty(t)&&H(e)},e),e.g={}}ee.prototype.N=function(){ee.Z.N.call(this),ne(this)},ee.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var ae=r.JSON.stringify,ie=r.JSON.parse,re=class{stringify(e){return r.JSON.stringify(e,void 0)}parse(e){return r.JSON.parse(e,void 0)}};function oe(){}function se(){}var le={OPEN:"a",hb:"b",ERROR:"c",tb:"d"};function ue(){S.call(this,"d")}function ce(){S.call(this,"c")}c(ue,S),c(ce,S);var de={},he=null;function pe(){return he=he||new $}function fe(e){S.call(this,de.Ia,e)}function me(e){const t=pe();Y(t,new fe(t))}function ve(e,t){S.call(this,de.STAT_EVENT,e),this.stat=t}function ge(e){const t=pe();Y(t,new ve(t,e))}function ye(e,t){S.call(this,de.Ja,e),this.size=t}function be(e,t){if("function"!=typeof e)throw Error("Fn must not be null and must be a function");return r.setTimeout(function(){e()},t)}function _e(){this.g=!0}function we(e,t,n,a){e.info(function(){return"XMLHTTP TEXT ("+t+"): "+function(e,t){if(!e.g)return t;if(!t)return null;try{const r=JSON.parse(t);if(r)for(e=0;e<r.length;e++)if(Array.isArray(r[e])){var n=r[e];if(!(n.length<2)){var a=n[1];if(Array.isArray(a)&&!(a.length<1)){var i=a[0];if("noop"!=i&&"stop"!=i&&"close"!=i)for(let e=1;e<a.length;e++)a[e]=""}}}return ae(r)}catch(r){return t}}(e,n)+(a?" "+a:"")})}de.Ia="serverreachability",c(fe,S),de.STAT_EVENT="statevent",c(ve,S),de.Ja="timingevent",c(ye,S),_e.prototype.ua=function(){this.g=!1},_e.prototype.info=function(){};var ke,Ce={NO_ERROR:0,cb:1,qb:2,pb:3,kb:4,ob:5,rb:6,Ga:7,TIMEOUT:8,ub:9},Se={ib:"complete",Fb:"success",ERROR:"error",Ga:"abort",xb:"ready",yb:"readystatechange",TIMEOUT:"timeout",sb:"incrementaldata",wb:"progress",lb:"downloadprogress",Nb:"uploadprogress"};function Te(){}function Ae(e){return encodeURIComponent(String(e))}function Ee(e){var t=1;e=e.split(":");const n=[];for(;t>0&&e.length;)n.push(e.shift()),t--;return e.length&&n.push(e.join(":")),n}function Ie(e,t,n,a){this.j=e,this.i=t,this.l=n,this.S=a||1,this.V=new ee(this),this.H=45e3,this.J=null,this.o=!1,this.u=this.B=this.A=this.M=this.F=this.T=this.D=null,this.G=[],this.g=null,this.C=0,this.m=this.v=null,this.X=-1,this.K=!1,this.P=0,this.O=null,this.W=this.L=this.U=this.R=!1,this.h=new xe}function xe(){this.i=null,this.g="",this.h=!1}c(Te,oe),Te.prototype.g=function(){return new XMLHttpRequest},ke=new Te;var Ne={},Pe={};function Me(e,t,n){e.M=1,e.A=at(Qe(t)),e.u=n,e.R=!0,Oe(e,null)}function Oe(e,t){e.F=Date.now(),Le(e),e.B=Qe(e.A);var n=e.B,a=e.S;Array.isArray(a)||(a=[String(a)]),gt(n.i,"t",a),e.C=0,n=e.j.L,e.h=new xe,e.g=an(e.j,n?t:null,!e.u),e.P>0&&(e.O=new Z(l(e.Y,e,e.g),e.P)),t=e.V,n=e.g,a=e.ba;var i="readystatechange";Array.isArray(i)||(i&&(te[0]=i.toString()),i=te);for(let r=0;r<i.length;r++){const e=j(n,i[r],a||t.handleEvent,!1,t.h||t);if(!e)break;t.g[e.key]=e}t=e.J?O(e.J):{},e.u?(e.v||(e.v="POST"),t["Content-Type"]="application/x-www-form-urlencoded",e.g.ea(e.B,e.v,e.u,t)):(e.v="GET",e.g.ea(e.B,e.v,null,t)),me(),function(e,t,n,a,i,r){e.info(function(){if(e.g)if(r){var o="",s=r.split("&");for(let e=0;e<s.length;e++){var l=s[e].split("=");if(l.length>1){const e=l[0];l=l[1];const t=e.split("_");o=t.length>=2&&"type"==t[1]?o+(e+"=")+l+"&":o+(e+"=redacted&")}}}else o=null;else o=r;return"XMLHTTP REQ ("+a+") [attempt "+i+"]: "+t+"\n"+n+"\n"+o})}(e.i,e.v,e.B,e.l,e.S,e.u)}function Re(e){return!!e.g&&("GET"==e.v&&2!=e.M&&e.j.Aa)}function De(e,t){var n=e.C,a=t.indexOf("\n",n);return-1==a?Pe:(n=Number(t.substring(n,a)),isNaN(n)?Ne:(a+=1)+n>t.length?Pe:(t=t.slice(a,a+n),e.C=a+n,t))}function Le(e){e.T=Date.now()+e.H,Be(e,e.H)}function Be(e,t){if(null!=e.D)throw Error("WatchDog timer not null");e.D=be(l(e.aa,e),t)}function Fe(e){e.D&&(r.clearTimeout(e.D),e.D=null)}function Ve(e){0==e.j.I||e.K||Qt(e.j,e)}function Xe(e){Fe(e);var t=e.O;t&&"function"==typeof t.dispose&&t.dispose(),e.O=null,ne(e.V),e.g&&(t=e.g,e.g=null,t.abort(),t.dispose())}function je(e,t){try{var n=e.j;if(0!=n.I&&(n.g==e||We(n.h,e)))if(!e.L&&We(n.h,e)&&3==n.I){try{var a=n.Ba.g.parse(t)}catch(c){a=null}if(Array.isArray(a)&&3==a.length){var i=a;if(0==i[0]){e:if(!n.v){if(n.g){if(!(n.g.F+3e3<e.F))break e;Jt(n),jt(n)}qt(n),ge(18)}}else n.xa=i[1],0<n.xa-n.K&&i[2]<37500&&n.F&&0==n.A&&!n.C&&(n.C=be(l(n.Va,n),6e3));Ke(n.h)<=1&&n.ta&&(n.ta=void 0)}else en(n,11)}else if((e.L||n.g==e)&&Jt(n),!A(t))for(i=n.Ba.g.parse(t),t=0;t<i.length;t++){let l=i[t];const c=l[0];if(!(c<=n.K))if(n.K=c,l=l[1],2==n.I)if("c"==l[0]){n.M=l[1],n.ba=l[2];const t=l[3];null!=t&&(n.ka=t,n.j.info("VER="+n.ka));const i=l[4];null!=i&&(n.za=i,n.j.info("SVER="+n.za));const c=l[5];null!=c&&"number"==typeof c&&c>0&&(a=1.5*c,n.O=a,n.j.info("backChannelRequestTimeoutMs_="+a)),a=n;const d=e.g;if(d){const e=d.g?d.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(e){var r=a.h;r.g||-1==e.indexOf("spdy")&&-1==e.indexOf("quic")&&-1==e.indexOf("h2")||(r.j=r.l,r.g=new Set,r.h&&(Ge(r,r.h),r.h=null))}if(a.G){const e=d.g?d.g.getResponseHeader("X-HTTP-Session-Id"):null;e&&(a.wa=e,nt(a.J,a.G,e))}}n.I=3,n.l&&n.l.ra(),n.aa&&(n.T=Date.now()-e.F,n.j.info("Handshake RTT: "+n.T+"ms"));var o=e;if((a=n).na=nn(a,a.L?a.ba:null,a.W),o.L){qe(a.h,o);var s=o,u=a.O;u&&(s.H=u),s.D&&(Fe(s),Le(s)),a.g=o}else Gt(a);n.i.length>0&&Ht(n)}else"stop"!=l[0]&&"close"!=l[0]||en(n,7);else 3==n.I&&("stop"==l[0]||"close"==l[0]?"stop"==l[0]?en(n,7):Xt(n):"noop"!=l[0]&&n.l&&n.l.qa(l),n.A=0)}me()}catch(c){}}Ie.prototype.ba=function(e){e=e.target;const t=this.O;t&&3==Lt(e)?t.j():this.Y(e)},Ie.prototype.Y=function(e){try{if(e==this.g)e:{const l=Lt(this.g),u=this.g.ya();this.g.ca();if(!(l<3)&&(3!=l||this.g&&(this.h.h||this.g.la()||Bt(this.g)))){this.K||4!=l||7==u||me(),Fe(this);var t=this.g.ca();this.X=t;var n=function(e){if(!Re(e))return e.g.la();const t=Bt(e.g);if(""===t)return"";let n="";const a=t.length,i=4==Lt(e.g);if(!e.h.i){if("undefined"==typeof TextDecoder)return Xe(e),Ve(e),"";e.h.i=new r.TextDecoder}for(let r=0;r<a;r++)e.h.h=!0,n+=e.h.i.decode(t[r],{stream:!(i&&r==a-1)});return t.length=0,e.h.g+=n,e.C=0,e.h.g}(this);if(this.o=200==t,function(e,t,n,a,i,r,o){e.info(function(){return"XMLHTTP RESP ("+a+") [ attempt "+i+"]: "+t+"\n"+n+"\n"+r+" "+o})}(this.i,this.v,this.B,this.l,this.S,l,t),this.o){if(this.U&&!this.L){t:{if(this.g){var a,i=this.g;if((a=i.g?i.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!A(a)){var o=a;break t}}o=null}if(!(e=o)){this.o=!1,this.m=3,ge(12),Xe(this),Ve(this);break e}we(this.i,this.l,e,"Initial handshake response via X-HTTP-Initial-Response"),this.L=!0,je(this,e)}if(this.R){let t;for(e=!0;!this.K&&this.C<n.length;){if(t=De(this,n),t==Pe){4==l&&(this.m=4,ge(14),e=!1),we(this.i,this.l,null,"[Incomplete Response]");break}if(t==Ne){this.m=4,ge(15),we(this.i,this.l,n,"[Invalid Chunk]"),e=!1;break}we(this.i,this.l,t,null),je(this,t)}if(Re(this)&&0!=this.C&&(this.h.g=this.h.g.slice(this.C),this.C=0),4!=l||0!=n.length||this.h.h||(this.m=1,ge(16),e=!1),this.o=this.o&&e,e){if(n.length>0&&!this.W){this.W=!0;var s=this.j;s.g==this&&s.aa&&!s.P&&(s.j.info("Great, no buffering proxy detected. Bytes received: "+n.length),$t(s),s.P=!0,ge(11))}}else we(this.i,this.l,n,"[Invalid Chunked Response]"),Xe(this),Ve(this)}else we(this.i,this.l,n,null),je(this,n);4==l&&Xe(this),this.o&&!this.K&&(4==l?Qt(this.j,this):(this.o=!1,Le(this)))}else(function(e){const t={};e=(e.g&&Lt(e)>=2&&e.g.getAllResponseHeaders()||"").split("\r\n");for(let a=0;a<e.length;a++){if(A(e[a]))continue;var n=Ee(e[a]);const i=n[0];if("string"!=typeof(n=n[1]))continue;n=n.trim();const r=t[i]||[];t[i]=r,r.push(n)}!function(e,t){for(const n in e)t.call(void 0,e[n],n,e)}(t,function(e){return e.join(", ")})})(this.g),400==t&&n.indexOf("Unknown SID")>0?(this.m=3,ge(12)):(this.m=0,ge(13)),Xe(this),Ve(this)}}}catch(l){}},Ie.prototype.cancel=function(){this.K=!0,Xe(this)},Ie.prototype.aa=function(){this.D=null;const e=Date.now();e-this.T>=0?(function(e,t){e.info(function(){return"TIMEOUT: "+t})}(this.i,this.B),2!=this.M&&(me(),ge(17)),Xe(this),this.m=2,Ve(this)):Be(this,this.T-e)};var Ue=class{constructor(e,t){this.g=e,this.map=t}};function He(e){this.l=e||10,r.PerformanceNavigationTiming?e=(e=r.performance.getEntriesByType("navigation")).length>0&&("hq"==e[0].nextHopProtocol||"h2"==e[0].nextHopProtocol):e=!!(r.chrome&&r.chrome.loadTimes&&r.chrome.loadTimes()&&r.chrome.loadTimes().wasFetchedViaSpdy),this.j=e?this.l:1,this.g=null,this.j>1&&(this.g=new Set),this.h=null,this.i=[]}function ze(e){return!!e.h||!!e.g&&e.g.size>=e.j}function Ke(e){return e.h?1:e.g?e.g.size:0}function We(e,t){return e.h?e.h==t:!!e.g&&e.g.has(t)}function Ge(e,t){e.g?e.g.add(t):e.h=t}function qe(e,t){e.h&&e.h==t?e.h=null:e.g&&e.g.has(t)&&e.g.delete(t)}function $e(e){if(null!=e.h)return e.i.concat(e.h.G);if(null!=e.g&&0!==e.g.size){let t=e.i;for(const n of e.g.values())t=t.concat(n.G);return t}return h(e.i)}He.prototype.cancel=function(){if(this.i=$e(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){for(const e of this.g.values())e.cancel();this.g.clear()}};var Ye=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function Je(e){let t;this.g=this.o=this.j="",this.u=null,this.m=this.h="",this.l=!1,e instanceof Je?(this.l=e.l,Ze(this,e.j),this.o=e.o,this.g=e.g,et(this,e.u),this.h=e.h,tt(this,yt(e.i)),this.m=e.m):e&&(t=String(e).match(Ye))?(this.l=!1,Ze(this,t[1]||"",!0),this.o=it(t[2]||""),this.g=it(t[3]||"",!0),et(this,t[4]),this.h=it(t[5]||"",!0),tt(this,t[6]||"",!0),this.m=it(t[7]||"")):(this.l=!1,this.i=new ht(null,this.l))}function Qe(e){return new Je(e)}function Ze(e,t,n){e.j=n?it(t,!0):t,e.j&&(e.j=e.j.replace(/:$/,""))}function et(e,t){if(t){if(t=Number(t),isNaN(t)||t<0)throw Error("Bad port number "+t);e.u=t}else e.u=null}function tt(e,t,n){t instanceof ht?(e.i=t,function(e,t){t&&!e.j&&(pt(e),e.i=null,e.g.forEach(function(e,t){const n=t.toLowerCase();t!=n&&(ft(this,t),gt(this,n,e))},e)),e.j=t}(e.i,e.l)):(n||(t=rt(t,ct)),e.i=new ht(t,e.l))}function nt(e,t,n){e.i.set(t,n)}function at(e){return nt(e,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),e}function it(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function rt(e,t,n){return"string"==typeof e?(e=encodeURI(e).replace(t,ot),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function ot(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}Je.prototype.toString=function(){const e=[];var t=this.j;t&&e.push(rt(t,st,!0),":");var n=this.g;return(n||"file"==t)&&(e.push("//"),(t=this.o)&&e.push(rt(t,st,!0),"@"),e.push(Ae(n).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.u)&&e.push(":",String(n))),(n=this.h)&&(this.g&&"/"!=n.charAt(0)&&e.push("/"),e.push(rt(n,"/"==n.charAt(0)?ut:lt,!0))),(n=this.i.toString())&&e.push("?",n),(n=this.m)&&e.push("#",rt(n,dt)),e.join("")},Je.prototype.resolve=function(e){const t=Qe(this);let n=!!e.j;n?Ze(t,e.j):n=!!e.o,n?t.o=e.o:n=!!e.g,n?t.g=e.g:n=null!=e.u;var a=e.h;if(n)et(t,e.u);else if(n=!!e.h){if("/"!=a.charAt(0))if(this.g&&!this.h)a="/"+a;else{var i=t.h.lastIndexOf("/");-1!=i&&(a=t.h.slice(0,i+1)+a)}if(".."==(i=a)||"."==i)a="";else if(-1!=i.indexOf("./")||-1!=i.indexOf("/.")){a=0==i.lastIndexOf("/",0),i=i.split("/");const e=[];for(let t=0;t<i.length;){const n=i[t++];"."==n?a&&t==i.length&&e.push(""):".."==n?((e.length>1||1==e.length&&""!=e[0])&&e.pop(),a&&t==i.length&&e.push("")):(e.push(n),a=!0)}a=e.join("/")}else a=i}return n?t.h=a:n=""!==e.i.toString(),n?tt(t,yt(e.i)):n=!!e.m,n&&(t.m=e.m),t};var st=/[#\/\?@]/g,lt=/[#\?:]/g,ut=/[#\?]/g,ct=/[#\?@]/g,dt=/#/g;function ht(e,t){this.h=this.g=null,this.i=e||null,this.j=!!t}function pt(e){e.g||(e.g=new Map,e.h=0,e.i&&function(e,t){if(e){e=e.split("&");for(let n=0;n<e.length;n++){const a=e[n].indexOf("=");let i,r=null;a>=0?(i=e[n].substring(0,a),r=e[n].substring(a+1)):i=e[n],t(i,r?decodeURIComponent(r.replace(/\+/g," ")):"")}}}(e.i,function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)}))}function ft(e,t){pt(e),t=bt(e,t),e.g.has(t)&&(e.i=null,e.h-=e.g.get(t).length,e.g.delete(t))}function mt(e,t){return pt(e),t=bt(e,t),e.g.has(t)}function vt(e,t){pt(e);let n=[];if("string"==typeof t)mt(e,t)&&(n=n.concat(e.g.get(bt(e,t))));else for(e=Array.from(e.g.values()),t=0;t<e.length;t++)n=n.concat(e[t]);return n}function gt(e,t,n){ft(e,t),n.length>0&&(e.i=null,e.g.set(bt(e,t),h(n)),e.h+=n.length)}function yt(e){const t=new ht;return t.i=e.i,e.g&&(t.g=new Map(e.g),t.h=e.h),t}function bt(e,t){return t=String(t),e.j&&(t=t.toLowerCase()),t}function _t(e,t,n,a,i){try{i&&(i.onload=null,i.onerror=null,i.onabort=null,i.ontimeout=null),a(n)}catch(r){}}function wt(){this.g=new re}function kt(e){this.i=e.Sb||null,this.h=e.ab||!1}function Ct(e,t){$.call(this),this.H=e,this.o=t,this.m=void 0,this.status=this.readyState=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.A=new Headers,this.h=null,this.F="GET",this.D="",this.g=!1,this.B=this.j=this.l=null,this.v=new AbortController}function St(e){e.j.read().then(e.Ma.bind(e)).catch(e.ga.bind(e))}function Tt(e){e.readyState=4,e.l=null,e.j=null,e.B=null,At(e)}function At(e){e.onreadystatechange&&e.onreadystatechange.call(e)}function Et(e){let t="";return M(e,function(e,n){t+=n,t+=":",t+=e,t+="\r\n"}),t}function It(e,t,n){e:{for(a in n){var a=!1;break e}a=!0}a||(n=Et(n),"string"==typeof e?null!=n&&Ae(n):nt(e,t,n))}function xt(e){$.call(this),this.headers=new Map,this.L=e||null,this.h=!1,this.g=null,this.D="",this.o=0,this.l="",this.j=this.B=this.v=this.A=!1,this.m=null,this.F="",this.H=!1}(e=ht.prototype).add=function(e,t){pt(this),this.i=null,e=bt(this,e);let n=this.g.get(e);return n||this.g.set(e,n=[]),n.push(t),this.h+=1,this},e.forEach=function(e,t){pt(this),this.g.forEach(function(n,a){n.forEach(function(n){e.call(t,n,a,this)},this)},this)},e.set=function(e,t){return pt(this),this.i=null,mt(this,e=bt(this,e))&&(this.h-=this.g.get(e).length),this.g.set(e,[t]),this.h+=1,this},e.get=function(e,t){return e&&(e=vt(this,e)).length>0?String(e[0]):t},e.toString=function(){if(this.i)return this.i;if(!this.g)return"";const e=[],t=Array.from(this.g.keys());for(let a=0;a<t.length;a++){var n=t[a];const i=Ae(n);n=vt(this,n);for(let t=0;t<n.length;t++){let a=i;""!==n[t]&&(a+="="+Ae(n[t])),e.push(a)}}return this.i=e.join("&")},c(kt,oe),kt.prototype.g=function(){return new Ct(this.i,this.h)},c(Ct,$),(e=Ct.prototype).open=function(e,t){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.F=e,this.D=t,this.readyState=1,At(this)},e.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");if(this.v.signal.aborted)throw this.abort(),Error("Request was aborted.");this.g=!0;const t={headers:this.A,method:this.F,credentials:this.m,cache:void 0,signal:this.v.signal};e&&(t.body=e),(this.H||r).fetch(new Request(this.D,t)).then(this.Pa.bind(this),this.ga.bind(this))},e.abort=function(){this.response=this.responseText="",this.A=new Headers,this.status=0,this.v.abort(),this.j&&this.j.cancel("Request was aborted.").catch(()=>{}),this.readyState>=1&&this.g&&4!=this.readyState&&(this.g=!1,Tt(this)),this.readyState=0},e.Pa=function(e){if(this.g&&(this.l=e,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=e.headers,this.readyState=2,At(this)),this.g&&(this.readyState=3,At(this),this.g)))if("arraybuffer"===this.responseType)e.arrayBuffer().then(this.Na.bind(this),this.ga.bind(this));else if(void 0!==r.ReadableStream&&"body"in e){if(this.j=e.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.B=new TextDecoder;St(this)}else e.text().then(this.Oa.bind(this),this.ga.bind(this))},e.Ma=function(e){if(this.g){if(this.o&&e.value)this.response.push(e.value);else if(!this.o){var t=e.value?e.value:new Uint8Array(0);(t=this.B.decode(t,{stream:!e.done}))&&(this.response=this.responseText+=t)}e.done?Tt(this):At(this),3==this.readyState&&St(this)}},e.Oa=function(e){this.g&&(this.response=this.responseText=e,Tt(this))},e.Na=function(e){this.g&&(this.response=e,Tt(this))},e.ga=function(){this.g&&Tt(this)},e.setRequestHeader=function(e,t){this.A.append(e,t)},e.getResponseHeader=function(e){return this.h&&this.h.get(e.toLowerCase())||""},e.getAllResponseHeaders=function(){if(!this.h)return"";const e=[],t=this.h.entries();for(var n=t.next();!n.done;)n=n.value,e.push(n[0]+": "+n[1]),n=t.next();return e.join("\r\n")},Object.defineProperty(Ct.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(e){this.m=e?"include":"same-origin"}}),c(xt,$);var Nt=/^https?$/i,Pt=["POST","PUT"];function Mt(e,t){e.h=!1,e.g&&(e.j=!0,e.g.abort(),e.j=!1),e.l=t,e.o=5,Ot(e),Dt(e)}function Ot(e){e.A||(e.A=!0,Y(e,"complete"),Y(e,"error"))}function Rt(e){if(e.h&&void 0!==i)if(e.v&&4==Lt(e))setTimeout(e.Ca.bind(e),0);else if(Y(e,"readystatechange"),4==Lt(e)){e.h=!1;try{const i=e.ca();e:switch(i){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var t=!0;break e;default:t=!1}var n;if(!(n=t)){var a;if(a=0===i){let t=String(e.D).match(Ye)[1]||null;!t&&r.self&&r.self.location&&(t=r.self.location.protocol.slice(0,-1)),a=!Nt.test(t?t.toLowerCase():"")}n=a}if(n)Y(e,"complete"),Y(e,"success");else{e.o=6;try{var o=Lt(e)>2?e.g.statusText:""}catch(s){o=""}e.l=o+" ["+e.ca()+"]",Ot(e)}}finally{Dt(e)}}}function Dt(e,t){if(e.g){e.m&&(clearTimeout(e.m),e.m=null);const a=e.g;e.g=null,t||Y(e,"ready");try{a.onreadystatechange=null}catch(n){}}}function Lt(e){return e.g?e.g.readyState:0}function Bt(e){try{if(!e.g)return null;if("response"in e.g)return e.g.response;switch(e.F){case"":case"text":return e.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in e.g)return e.g.mozResponseArrayBuffer}return null}catch(t){return null}}function Ft(e,t,n){return n&&n.internalChannelParams&&n.internalChannelParams[e]||t}function Vt(e){this.za=0,this.i=[],this.j=new _e,this.ba=this.na=this.J=this.W=this.g=this.wa=this.G=this.H=this.u=this.U=this.o=null,this.Ya=this.V=0,this.Sa=Ft("failFast",!1,e),this.F=this.C=this.v=this.m=this.l=null,this.X=!0,this.xa=this.K=-1,this.Y=this.A=this.D=0,this.Qa=Ft("baseRetryDelayMs",5e3,e),this.Za=Ft("retryDelaySeedMs",1e4,e),this.Ta=Ft("forwardChannelMaxRetries",2,e),this.va=Ft("forwardChannelRequestTimeoutMs",2e4,e),this.ma=e&&e.xmlHttpFactory||void 0,this.Ua=e&&e.Rb||void 0,this.Aa=e&&e.useFetchStreams||!1,this.O=void 0,this.L=e&&e.supportsCrossDomainXhr||!1,this.M="",this.h=new He(e&&e.concurrentRequestLimit),this.Ba=new wt,this.S=e&&e.fastHandshake||!1,this.R=e&&e.encodeInitMessageHeaders||!1,this.S&&this.R&&(this.R=!1),this.Ra=e&&e.Pb||!1,e&&e.ua&&this.j.ua(),e&&e.forceLongPolling&&(this.X=!1),this.aa=!this.S&&this.X&&e&&e.detectBufferingProxy||!1,this.ia=void 0,e&&e.longPollingTimeout&&e.longPollingTimeout>0&&(this.ia=e.longPollingTimeout),this.ta=void 0,this.T=0,this.P=!1,this.ja=this.B=null}function Xt(e){if(Ut(e),3==e.I){var t=e.V++,n=Qe(e.J);if(nt(n,"SID",e.M),nt(n,"RID",t),nt(n,"TYPE","terminate"),Kt(e,n),(t=new Ie(e,e.j,t)).M=2,t.A=at(Qe(n)),n=!1,r.navigator&&r.navigator.sendBeacon)try{n=r.navigator.sendBeacon(t.A.toString(),"")}catch(a){}!n&&r.Image&&((new Image).src=t.A,n=!0),n||(t.g=an(t.j,null),t.g.ea(t.A)),t.F=Date.now(),Le(t)}tn(e)}function jt(e){e.g&&($t(e),e.g.cancel(),e.g=null)}function Ut(e){jt(e),e.v&&(r.clearTimeout(e.v),e.v=null),Jt(e),e.h.cancel(),e.m&&("number"==typeof e.m&&r.clearTimeout(e.m),e.m=null)}function Ht(e){if(!ze(e.h)&&!e.m){e.m=!0;var t=e.Ea;y||w(),b||(y(),b=!0),_.add(t,e),e.D=0}}function zt(e,t){var n;n=t?t.l:e.V++;const a=Qe(e.J);nt(a,"SID",e.M),nt(a,"RID",n),nt(a,"AID",e.K),Kt(e,a),e.u&&e.o&&It(a,e.u,e.o),n=new Ie(e,e.j,n,e.D+1),null===e.u&&(n.J=e.o),t&&(e.i=t.G.concat(e.i)),t=Wt(e,n,1e3),n.H=Math.round(.5*e.va)+Math.round(.5*e.va*Math.random()),Ge(e.h,n),Me(n,a,t)}function Kt(e,t){e.H&&M(e.H,function(e,n){nt(t,n,e)}),e.l&&M({},function(e,n){nt(t,n,e)})}function Wt(e,t,n){n=Math.min(e.i.length,n);const a=e.l?l(e.l.Ka,e.l,e):null;e:{var i=e.i;let t=-1;for(;;){const e=["count="+n];-1==t?n>0?(t=i[0].g,e.push("ofs="+t)):t=0:e.push("ofs="+t);let l=!0;for(let c=0;c<n;c++){var r=i[c].g;const n=i[c].map;if((r-=t)<0)t=Math.max(0,i[c].g-100),l=!1;else try{r="req"+r+"_"||"";try{var s=n instanceof Map?n:Object.entries(n);for(const[t,n]of s){let a=n;o(n)&&(a=ae(n)),e.push(r+t+"="+encodeURIComponent(a))}}catch(u){throw e.push(r+"type="+encodeURIComponent("_badmap")),u}}catch(u){a&&a(n)}}if(l){s=e.join("&");break e}}s=void 0}return e=e.i.splice(0,n),t.G=e,s}function Gt(e){if(!e.g&&!e.v){e.Y=1;var t=e.Da;y||w(),b||(y(),b=!0),_.add(t,e),e.A=0}}function qt(e){return!(e.g||e.v||e.A>=3)&&(e.Y++,e.v=be(l(e.Da,e),Zt(e,e.A)),e.A++,!0)}function $t(e){null!=e.B&&(r.clearTimeout(e.B),e.B=null)}function Yt(e){e.g=new Ie(e,e.j,"rpc",e.Y),null===e.u&&(e.g.J=e.o),e.g.P=0;var t=Qe(e.na);nt(t,"RID","rpc"),nt(t,"SID",e.M),nt(t,"AID",e.K),nt(t,"CI",e.F?"0":"1"),!e.F&&e.ia&&nt(t,"TO",e.ia),nt(t,"TYPE","xmlhttp"),Kt(e,t),e.u&&e.o&&It(t,e.u,e.o),e.O&&(e.g.H=e.O);var n=e.g;e=e.ba,n.M=1,n.A=at(Qe(t)),n.u=null,n.R=!0,Oe(n,e)}function Jt(e){null!=e.C&&(r.clearTimeout(e.C),e.C=null)}function Qt(e,t){var n=null;if(e.g==t){Jt(e),$t(e),e.g=null;var a=2}else{if(!We(e.h,t))return;n=t.G,qe(e.h,t),a=1}if(0!=e.I)if(t.o)if(1==a){n=t.u?t.u.length:0,t=Date.now()-t.F;var i=e.D;Y(a=pe(),new ye(a,n)),Ht(e)}else Gt(e);else if(3==(i=t.m)||0==i&&t.X>0||!(1==a&&function(e,t){return!(Ke(e.h)>=e.h.j-(e.m?1:0)||(e.m?(e.i=t.G.concat(e.i),0):1==e.I||2==e.I||e.D>=(e.Sa?0:e.Ta)||(e.m=be(l(e.Ea,e,t),Zt(e,e.D)),e.D++,0)))}(e,t)||2==a&&qt(e)))switch(n&&n.length>0&&(t=e.h,t.i=t.i.concat(n)),i){case 1:en(e,5);break;case 4:en(e,10);break;case 3:en(e,6);break;default:en(e,2)}}function Zt(e,t){let n=e.Qa+Math.floor(Math.random()*e.Za);return e.isActive()||(n*=2),n*t}function en(e,t){if(e.j.info("Error code "+t),2==t){var n=l(e.bb,e),a=e.Ua;const t=!a;a=new Je(a||"//www.google.com/images/cleardot.gif"),r.location&&"http"==r.location.protocol||Ze(a,"https"),at(a),t?function(e,t){const n=new _e;if(r.Image){const a=new Image;a.onload=u(_t,n,"TestLoadImage: loaded",!0,t,a),a.onerror=u(_t,n,"TestLoadImage: error",!1,t,a),a.onabort=u(_t,n,"TestLoadImage: abort",!1,t,a),a.ontimeout=u(_t,n,"TestLoadImage: timeout",!1,t,a),r.setTimeout(function(){a.ontimeout&&a.ontimeout()},1e4),a.src=e}else t(!1)}(a.toString(),n):function(e,t){new _e;const n=new AbortController,a=setTimeout(()=>{n.abort(),_t(0,0,!1,t)},1e4);fetch(e,{signal:n.signal}).then(e=>{clearTimeout(a),e.ok?_t(0,0,!0,t):_t(0,0,!1,t)}).catch(()=>{clearTimeout(a),_t(0,0,!1,t)})}(a.toString(),n)}else ge(2);e.I=0,e.l&&e.l.pa(t),tn(e),Ut(e)}function tn(e){if(e.I=0,e.ja=[],e.l){const t=$e(e.h);0==t.length&&0==e.i.length||(p(e.ja,t),p(e.ja,e.i),e.h.i.length=0,h(e.i),e.i.length=0),e.l.oa()}}function nn(e,t,n){var a=n instanceof Je?Qe(n):new Je(n);if(""!=a.g)t&&(a.g=t+"."+a.g),et(a,a.u);else{var i=r.location;a=i.protocol,t=t?t+"."+i.hostname:i.hostname,i=+i.port;const e=new Je(null);a&&Ze(e,a),t&&(e.g=t),i&&et(e,i),n&&(e.h=n),a=e}return n=e.G,t=e.wa,n&&t&&nt(a,n,t),nt(a,"VER",e.ka),Kt(e,a),a}function an(e,t,n){if(t&&!e.L)throw Error("Can't create secondary domain capable XhrIo object.");return(t=e.Aa&&!e.ma?new xt(new kt({ab:n})):new xt(e.ma)).Fa(e.L),t}function rn(){}function on(){}function sn(e,t){$.call(this),this.g=new Vt(t),this.l=e,this.h=t&&t.messageUrlParams||null,e=t&&t.messageHeaders||null,t&&t.clientProtocolHeaderRequired&&(e?e["X-Client-Protocol"]="webchannel":e={"X-Client-Protocol":"webchannel"}),this.g.o=e,e=t&&t.initMessageHeaders||null,t&&t.messageContentType&&(e?e["X-WebChannel-Content-Type"]=t.messageContentType:e={"X-WebChannel-Content-Type":t.messageContentType}),t&&t.sa&&(e?e["X-WebChannel-Client-Profile"]=t.sa:e={"X-WebChannel-Client-Profile":t.sa}),this.g.U=e,(e=t&&t.Qb)&&!A(e)&&(this.g.u=e),this.A=t&&t.supportsCrossDomainXhr||!1,this.v=t&&t.sendRawJson||!1,(t=t&&t.httpSessionIdParam)&&!A(t)&&(this.g.G=t,null!==(e=this.h)&&t in e&&(t in(e=this.h)&&delete e[t])),this.j=new cn(this)}function ln(e){ue.call(this),e.__headers__&&(this.headers=e.__headers__,this.statusCode=e.__status__,delete e.__headers__,delete e.__status__);var t=e.__sm__;if(t){e:{for(const n in t){e=n;break e}e=void 0}(this.i=e)&&(e=this.i,t=null!==t&&e in t?t[e]:void 0),this.data=t}else this.data=e}function un(){ce.call(this),this.status=1}function cn(e){this.g=e}(e=xt.prototype).Fa=function(e){this.H=e},e.ea=function(e,t,n,a){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+e);t=t?t.toUpperCase():"GET",this.D=e,this.l="",this.o=0,this.A=!1,this.h=!0,this.g=this.L?this.L.g():ke.g(),this.g.onreadystatechange=d(l(this.Ca,this));try{this.B=!0,this.g.open(t,String(e),!0),this.B=!1}catch(o){return void Mt(this,o)}if(e=n||"",n=new Map(this.headers),a)if(Object.getPrototypeOf(a)===Object.prototype)for(var i in a)n.set(i,a[i]);else{if("function"!=typeof a.keys||"function"!=typeof a.get)throw Error("Unknown input type for opt_headers: "+String(a));for(const e of a.keys())n.set(e,a.get(e))}a=Array.from(n.keys()).find(e=>"content-type"==e.toLowerCase()),i=r.FormData&&e instanceof r.FormData,!(Array.prototype.indexOf.call(Pt,t,void 0)>=0)||a||i||n.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[r,s]of n)this.g.setRequestHeader(r,s);this.F&&(this.g.responseType=this.F),"withCredentials"in this.g&&this.g.withCredentials!==this.H&&(this.g.withCredentials=this.H);try{this.m&&(clearTimeout(this.m),this.m=null),this.v=!0,this.g.send(e),this.v=!1}catch(o){Mt(this,o)}},e.abort=function(e){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.o=e||7,Y(this,"complete"),Y(this,"abort"),Dt(this))},e.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),Dt(this,!0)),xt.Z.N.call(this)},e.Ca=function(){this.u||(this.B||this.v||this.j?Rt(this):this.Xa())},e.Xa=function(){Rt(this)},e.isActive=function(){return!!this.g},e.ca=function(){try{return Lt(this)>2?this.g.status:-1}catch(e){return-1}},e.la=function(){try{return this.g?this.g.responseText:""}catch(e){return""}},e.La=function(e){if(this.g){var t=this.g.responseText;return e&&0==t.indexOf(e)&&(t=t.substring(e.length)),ie(t)}},e.ya=function(){return this.o},e.Ha=function(){return"string"==typeof this.l?this.l:String(this.l)},(e=Vt.prototype).ka=8,e.I=1,e.connect=function(e,t,n,a){ge(0),this.W=e,this.H=t||{},n&&void 0!==a&&(this.H.OSID=n,this.H.OAID=a),this.F=this.X,this.J=nn(this,null,this.W),Ht(this)},e.Ea=function(e){if(this.m)if(this.m=null,1==this.I){if(!e){this.V=Math.floor(1e5*Math.random()),e=this.V++;const i=new Ie(this,this.j,e);let r=this.o;if(this.U&&(r?(r=O(r),D(r,this.U)):r=this.U),null!==this.u||this.R||(i.J=r,r=null),this.S)e:{for(var t=0,n=0;n<this.i.length;n++){var a=this.i[n];if(void 0===(a="__data__"in a.map&&"string"==typeof(a=a.map.__data__)?a.length:void 0))break;if((t+=a)>4096){t=n;break e}if(4096===t||n===this.i.length-1){t=n+1;break e}}t=1e3}else t=1e3;t=Wt(this,i,t),nt(n=Qe(this.J),"RID",e),nt(n,"CVER",22),this.G&&nt(n,"X-HTTP-Session-Id",this.G),Kt(this,n),r&&(this.R?t="headers="+Ae(Et(r))+"&"+t:this.u&&It(n,this.u,r)),Ge(this.h,i),this.Ra&&nt(n,"TYPE","init"),this.S?(nt(n,"$req",t),nt(n,"SID","null"),i.U=!0,Me(i,n,null)):Me(i,n,t),this.I=2}}else 3==this.I&&(e?zt(this,e):0==this.i.length||ze(this.h)||zt(this))},e.Da=function(){if(this.v=null,Yt(this),this.aa&&!(this.P||null==this.g||this.T<=0)){var e=4*this.T;this.j.info("BP detection timer enabled: "+e),this.B=be(l(this.Wa,this),e)}},e.Wa=function(){this.B&&(this.B=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.P=!0,ge(10),jt(this),Yt(this))},e.Va=function(){null!=this.C&&(this.C=null,jt(this),qt(this),ge(19))},e.bb=function(e){e?(this.j.info("Successfully pinged google.com"),ge(2)):(this.j.info("Failed to ping google.com"),ge(1))},e.isActive=function(){return!!this.l&&this.l.isActive(this)},(e=rn.prototype).ra=function(){},e.qa=function(){},e.pa=function(){},e.oa=function(){},e.isActive=function(){return!0},e.Ka=function(){},on.prototype.g=function(e,t){return new sn(e,t)},c(sn,$),sn.prototype.m=function(){this.g.l=this.j,this.A&&(this.g.L=!0),this.g.connect(this.l,this.h||void 0)},sn.prototype.close=function(){Xt(this.g)},sn.prototype.o=function(e){var t=this.g;if("string"==typeof e){var n={};n.__data__=e,e=n}else this.v&&((n={}).__data__=ae(e),e=n);t.i.push(new Ue(t.Ya++,e)),3==t.I&&Ht(t)},sn.prototype.N=function(){this.g.l=null,delete this.j,Xt(this.g),delete this.g,sn.Z.N.call(this)},c(ln,ue),c(un,ce),c(cn,rn),cn.prototype.ra=function(){Y(this.g,"a")},cn.prototype.qa=function(e){Y(this.g,new ln(e))},cn.prototype.pa=function(e){Y(this.g,new un)},cn.prototype.oa=function(){Y(this.g,"b")},on.prototype.createWebChannel=on.prototype.g,sn.prototype.send=sn.prototype.o,sn.prototype.open=sn.prototype.m,sn.prototype.close=sn.prototype.close,sy=function(){return new on},oy=function(){return pe()},ry=de,iy={jb:0,mb:1,nb:2,Hb:3,Mb:4,Jb:5,Kb:6,Ib:7,Gb:8,Lb:9,PROXY:10,NOPROXY:11,Eb:12,Ab:13,Bb:14,zb:15,Cb:16,Db:17,fb:18,eb:19,gb:20},Ce.NO_ERROR=0,Ce.TIMEOUT=8,Ce.HTTP_ERROR=6,ay=Ce,Se.COMPLETE="complete",ny=Se,se.EventType=le,le.OPEN="a",le.CLOSE="b",le.ERROR="c",le.MESSAGE="d",$.prototype.listen=$.prototype.J,ty=se,xt.prototype.listenOnce=xt.prototype.K,xt.prototype.getLastError=xt.prototype.Ha,xt.prototype.getLastErrorCode=xt.prototype.ya,xt.prototype.getStatus=xt.prototype.ca,xt.prototype.getResponseJson=xt.prototype.La,xt.prototype.getResponseText=xt.prototype.la,xt.prototype.send=xt.prototype.ea,xt.prototype.setWithCredentials=xt.prototype.Fa,ey=xt}).apply(void 0!==ly?ly:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});const uy="@firebase/firestore",cy="4.9.2";
1675/**
1676 * @license
1677 * Copyright 2017 Google LLC
1678 *
1679 * Licensed under the Apache License, Version 2.0 (the "License");
1680 * you may not use this file except in compliance with the License.
1681 * You may obtain a copy of the License at
1682 *
1683 *   http://www.apache.org/licenses/LICENSE-2.0
1684 *
1685 * Unless required by applicable law or agreed to in writing, software
1686 * distributed under the License is distributed on an "AS IS" BASIS,
1687 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1688 * See the License for the specific language governing permissions and
1689 * limitations under the License.
1690 */class dy{constructor(e){this.uid=e}isAuthenticated(){return null!=this.uid}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(e){return e.uid===this.uid}}dy.UNAUTHENTICATED=new dy(null),dy.GOOGLE_CREDENTIALS=new dy("google-credentials-uid"),dy.FIRST_PARTY=new dy("first-party-uid"),dy.MOCK_USER=new dy("mock-user");
1691/**
1692 * @license
1693 * Copyright 2017 Google LLC
1694 *
1695 * Licensed under the Apache License, Version 2.0 (the "License");
1696 * you may not use this file except in compliance with the License.
1697 * You may obtain a copy of the License at
1698 *
1699 *   http://www.apache.org/licenses/LICENSE-2.0
1700 *
1701 * Unless required by applicable law or agreed to in writing, software
1702 * distributed under the License is distributed on an "AS IS" BASIS,
1703 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1704 * See the License for the specific language governing permissions and
1705 * limitations under the License.
1706 */
1707let hy="12.3.0";
1708/**
1709 * @license
1710 * Copyright 2017 Google LLC
1711 *
1712 * Licensed under the Apache License, Version 2.0 (the "License");
1713 * you may not use this file except in compliance with the License.
1714 * You may obtain a copy of the License at
1715 *
1716 *   http://www.apache.org/licenses/LICENSE-2.0
1717 *
1718 * Unless required by applicable law or agreed to in writing, software
1719 * distributed under the License is distributed on an "AS IS" BASIS,
1720 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1721 * See the License for the specific language governing permissions and
1722 * limitations under the License.
1723 */const py=new Nc("@firebase/firestore");function fy(){return py.logLevel}function my(e,...t){if(py.logLevel<=Sc.DEBUG){const n=t.map(yy);py.debug("Firestore (".concat(hy,"): ").concat(e),...n)}}function vy(e,...t){if(py.logLevel<=Sc.ERROR){const n=t.map(yy);py.error("Firestore (".concat(hy,"): ").concat(e),...n)}}function gy(e,...t){if(py.logLevel<=Sc.WARN){const n=t.map(yy);py.warn("Firestore (".concat(hy,"): ").concat(e),...n)}}function yy(e){if("string"==typeof e)return e;try{
1724/**
1725    * @license
1726    * Copyright 2020 Google LLC
1727    *
1728    * Licensed under the Apache License, Version 2.0 (the "License");
1729    * you may not use this file except in compliance with the License.
1730    * You may obtain a copy of the License at
1731    *
1732    *   http://www.apache.org/licenses/LICENSE-2.0
1733    *
1734    * Unless required by applicable law or agreed to in writing, software
1735    * distributed under the License is distributed on an "AS IS" BASIS,
1736    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1737    * See the License for the specific language governing permissions and
1738    * limitations under the License.
1739    */
1740return t=e,JSON.stringify(t)}catch(ZH){return e}var t}
1741/**
1742 * @license
1743 * Copyright 2017 Google LLC
1744 *
1745 * Licensed under the Apache License, Version 2.0 (the "License");
1746 * you may not use this file except in compliance with the License.
1747 * You may obtain a copy of the License at
1748 *
1749 *   http://www.apache.org/licenses/LICENSE-2.0
1750 *
1751 * Unless required by applicable law or agreed to in writing, software
1752 * distributed under the License is distributed on an "AS IS" BASIS,
1753 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1754 * See the License for the specific language governing permissions and
1755 * limitations under the License.
1756 */function by(e,t,n){let a="Unexpected state";"string"==typeof t?a=t:n=t,_y(e,a,n)}function _y(e,t,n){let a="FIRESTORE (".concat(hy,") INTERNAL ASSERTION FAILED: ").concat(t," (ID: ").concat(e.toString(16),")");if(void 0!==n)try{a+=" CONTEXT: "+JSON.stringify(n)}catch(i){a+=" CONTEXT: "+n}throw vy(a),new Error(a)}function wy(e,t,n,a){let i="Unexpected state";"string"==typeof n?i=n:a=n,e||_y(t,i,a)}function ky(e,t){return e}
1757/**
1758 * @license
1759 * Copyright 2017 Google LLC
1760 *
1761 * Licensed under the Apache License, Version 2.0 (the "License");
1762 * you may not use this file except in compliance with the License.
1763 * You may obtain a copy of the License at
1764 *
1765 *   http://www.apache.org/licenses/LICENSE-2.0
1766 *
1767 * Unless required by applicable law or agreed to in writing, software
1768 * distributed under the License is distributed on an "AS IS" BASIS,
1769 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1770 * See the License for the specific language governing permissions and
1771 * limitations under the License.
1772 */const Cy={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",UNIMPLEMENT
1772ED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class Sy extends Zu{constructor(e,t){super(e,t),this.code=e,this.message=t,this.toString=()=>"".concat(this.name,": [code=").concat(this.code,"]: ").concat(this.message)}}
1773/**
1774 * @license
1775 * Copyright 2017 Google LLC
1776 *
1777 * Licensed under the Apache License, Version 2.0 (the "License");
1778 * you may not use this file except in compliance with the License.
1779 * You may obtain a copy of the License at
1780 *
1781 *   http://www.apache.org/licenses/LICENSE-2.0
1782 *
1783 * Unless required by applicable law or agreed to in writing, software
1784 * distributed under the License is distributed on an "AS IS" BASIS,
1785 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1786 * See the License for the specific language governing permissions and
1787 * limitations under the License.
1788 */class Ty{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}
1789/**
1790 * @license
1791 * Copyright 2017 Google LLC
1792 *
1793 * Licensed under the Apache License, Version 2.0 (the "License");
1794 * you may not use this file except in compliance with the License.
1795 * You may obtain a copy of the License at
1796 *
1797 *   http://www.apache.org/licenses/LICENSE-2.0
1798 *
1799 * Unless required by applicable law or agreed to in writing, software
1800 * distributed under the License is distributed on an "AS IS" BASIS,
1801 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1802 * See the License for the specific language governing permissions and
1803 * limitations under the License.
1804 */class Ay{constructor(e,t){this.user=t,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization","Bearer ".concat(e))}}class Ey{getToken(){return Promise.resolve(null)}invalidateToken(){}start(e,t){e.enqueueRetryable(()=>t(dy.UNAUTHENTICATED))}shutdown(){}}class Iy{constructor(e){this.token=e,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(e,t){this.changeListener=t,e.enqueueRetryable(()=>t(this.token.user))}shutdown(){this.changeListener=null}}class xy{constructor(e){this.t=e,this.currentUser=dy.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(e,t){wy(void 0===this.o,42304);let n=this.i;const a=e=>this.i!==n?(n=this.i,t(e)):Promise.resolve();let i=new Ty;this.o=()=>{this.i++,this.currentUser=this.u(),i.resolve(),i=new Ty,e.enqueueRetryable(()=>a(this.currentUser))};const r=()=>{const t=i;e.enqueueRetryable(async()=>{await t.promise,await a(this.currentUser)})},o=e=>{my("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=e,this.o&&(this.auth.addAuthTokenListener(this.o),r())};this.t.onInit(e=>o(e)),setTimeout(()=>{if(!this.auth){const e=this.t.getImmediate({optional:!0});e?o(e):(my("FirebaseAuthCredentialsProvider","Auth not yet detected"),i.resolve(),i=new Ty)}},0),r()}getToken(){const e=this.i,t=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(t).then(t=>this.i!==e?(my("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):t?(wy("string"==typeof t.accessToken,31837,{l:t}),new Ay(t.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 wy(null===e||"string"==typeof e,2055,{h:e}),new dy(e)}}class Ny{constructor(e,t,n){this.P=e,this.T=t,this.I=n,this.type="FirstParty",this.user=dy.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 Py{constructor(e,t,n){this.P=e,this.T=t,this.I=n}getToken(){return Promise.resolve(new Ny(this.P,this.T,this.I))}start(e,t){e.enqueueRetryable(()=>t(dy.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class My{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 Oy{constructor(e,t){this.V=t,this.forceRefresh=!1,this.appCheck=null,this.m=null,this.p=null,Pd(e)&&e.settings.appCheckToken&&(this.p=e.settings.appCheckToken)}start(e,t){wy(void 0===this.o,3512);const n=e=>{null!=e.error&&my("FirebaseAppCheckTokenProvider","Error getting App Check token; using placeholder token instead. Error: ".concat(e.error.message));const n=e.token!==this.m;return this.m=e.token,my("FirebaseAppCheckTokenProvider","Received ".concat(n?"new":"existing"," token.")),n?t(e.token):Promise.resolve()};this.o=t=>{e.enqueueRetryable(()=>n(t))};const a=e=>{my("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=e,this.o&&this.appCheck.addTokenListener(this.o)};this.V.onInit(e=>a(e)),setTimeout(()=>{if(!this.appCheck){const e=this.V.getImmediate({optional:!0});e?a(e):my("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){if(this.p)return Promise.resolve(new My(this.p));const e=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(e).then(e=>e?(wy("string"==typeof e.token,44558,{tokenResult:e}),this.m=e.token,new My(e.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.o&&this.appCheck.removeTokenListener(this.o),this.o=void 0}}
1805/**
1806 * @license
1807 * Copyright 2020 Google LLC
1808 *
1809 * Licensed under the Apache License, Version 2.0 (the "License");
1810 * you may not use this file except in compliance with the License.
1811 * You may obtain a copy of the License at
1812 *
1813 *   http://www.apache.org/licenses/LICENSE-2.0
1814 *
1815 * Unless required by applicable law or agreed to in writing, software
1816 * distributed under the License is distributed on an "AS IS" BASIS,
1817 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1818 * See the License for the specific language governing permissions and
1819 * limitations under the License.
1820 */function Ry(e){const t="undefined"!=typeof self&&(self.crypto||self.msCrypto),n=new Uint8Array(e);if(t&&"function"==typeof t.getRandomValues)t.getRandomValues(n);else for(let a=0;a<e;a++)n[a]=Math.floor(256*Math.random());return n}
1821/**
1822 * @license
1823 * Copyright 2017 Google LLC
1824 *
1825 * Licensed under the Apache License, Version 2.0 (the "License");
1826 * you may not use this file except in compliance with the License.
1827 * You may obtain a copy of the License at
1828 *
1829 *   http://www.apache.org/licenses/LICENSE-2.0
1830 *
1831 * Unless required by applicable law or agreed to in writing, software
1832 * distributed under the License is distributed on an "AS IS" BASIS,
1833 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1834 * See the License for the specific language governing permissions and
1835 * limitations under the License.
1836 */class Dy{static newId(){const e=62*Math.floor(256/62);let t="";for(;t.length<20;){const n=Ry(40);for(let a=0;a<n.length;++a)t.length<20&&n[a]<e&&(t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(n[a]%62))}return t}}function Ly(e,t){return e<t?-1:e>t?1:0}function By(e,t){const n=Math.min(e.length,t.length);for(let a=0;a<n;a++){const n=e.charAt(a),i=t.charAt(a);if(n!==i)return Xy(n)===Xy(i)?Ly(n,i):Xy(n)?1:-1}return Ly(e.length,t.length)}const Fy=55296,Vy=57343;function Xy(e){const t=e.charCodeAt(0);return t>=Fy&&t<=Vy}function jy(e,t,n){return e.length===t.length&&e.every((e,a)=>n(e,t[a]))}
1837/**
1838 * @license
1839 * Copyright 2017 Google LLC
1840 *
1841 * Licensed under the Apache License, Version 2.0 (the "License");
1842 * you may not use this file except in compliance with the License.
1843 * You may obtain a copy of the License at
1844 *
1845 *   http://www.apache.org/licenses/LICENSE-2.0
1846 *
1847 * Unless required by applicable law or agreed to in writing, software
1848 * distributed under the License is distributed on an "AS IS" BASIS,
1849 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1850 * See the License for the specific language governing permissions and
1851 * limitations under the License.
1852 */const Uy="__name__";class Hy{constructor(e,t,n){void 0===t?t=0:t>e.length&&by(637,{offset:t,range:e.length}),void 0===n?n=e.length-t:n>e.length-t&&by(1746,{length:n,range:e.length-t}),this.segments=e,this.offset=t,this.len=n}get length(){return this.len}isEqual(e){return 0===Hy.comparator(this,e)}child(e){const t=this.segments.slice(this.offset,this.limit());return e instanceof Hy?e.forEach(e=>{t.push(e)}):t.push(e),this.construct(t)}limit(){return this.offset+this.length}popFirst(e){return e=void 0===e?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 0===this.length}isPrefixOf(e){if(e.length<this.length)return!1;for(let t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}isImmediateParentOf(e){if(this.length+1!==e.length)return!1;for(let t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}forEach(e){for(let t=this.offset,n=this.limit();t<n;t++)e(this.segments[t])}toArray(){return this.segments.slice(this.offset,this.limit())}static comparator(e,t){const n=Math.min(e.length,t.length);for(let a=0;a<n;a++){const n=Hy.compareSegments(e.get(a),t.get(a));if(0!==n)return n}return Ly(e.length,t.length)}static compareSegments(e,t){const n=Hy.isNumericId(e),a=Hy.isNumericId(t);return n&&!a?-1:!n&&a?1:n&&a?Hy.extractNumericId(e).compare(Hy.extractNumericId(t)):By(e,t)}static isNumericId(e){return e.startsWith("__id")&&e.endsWith("__")}static extractNumericId(e){return Jg.fromString(e.substring(4,e.length-2))}}class zy extends Hy{construct(e,t,n){return new zy(e,t,n)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}
1852toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(...e){const t=[];for(const n of e){if(n.indexOf("//")>=0)throw new Sy(Cy.INVALID_ARGUMENT,"Invalid segment (".concat(n,"). Paths must not contain // in them."));t.push(...n.split("/").filter(e=>e.length>0))}return new zy(t)}static emptyPath(){return new zy([])}}const Ky=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class Wy extends Hy{construct(e,t,n){return new Wy(e,t,n)}static isValidIdentifier(e){return Ky.test(e)}canonicalString(){return this.toArray().map(e=>(e=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),Wy.isValidIdentifier(e)||(e="`"+e+"`"),e)).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&this.get(0)===Uy}static keyField(){return new Wy([Uy])}static fromServerFormat(e){const t=[];let n="",a=0;const i=()=>{if(0===n.length)throw new Sy(Cy.INVALID_ARGUMENT,"Invalid field path (".concat(e,"). Paths must not be empty, begin with '.', end with '.', or contain '..'"));t.push(n),n=""};let r=!1;for(;a<e.length;){const t=e[a];if("\\"===t){if(a+1===e.length)throw new Sy(Cy.INVALID_ARGUMENT,"Path has trailing escape character: "+e);const t=e[a+1];if("\\"!==t&&"."!==t&&"`"!==t)throw new Sy(Cy.INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);n+=t,a+=2}else"`"===t?(r=!r,a++):"."!==t||r?(n+=t,a++):(i(),a++)}if(i(),r)throw new Sy(Cy.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new Wy(t)}static emptyPath(){return new Wy([])}}
1853/**
1854 * @license
1855 * Copyright 2017 Google LLC
1856 *
1857 * Licensed under the Apache License, Version 2.0 (the "License");
1858 * you may not use this file except in compliance with the License.
1859 * You may obtain a copy of the License at
1860 *
1861 *   http://www.apache.org/licenses/LICENSE-2.0
1862 *
1863 * Unless required by applicable law or agreed to in writing, software
1864 * distributed under the License is distributed on an "AS IS" BASIS,
1865 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1866 * See the License for the specific language governing permissions and
1867 * limitations under the License.
1868 */class Gy{constructor(e){this.path=e}static fromPath(e){return new Gy(zy.fromString(e))}static fromName(e){return new Gy(zy.fromString(e).popFirst(5))}static empty(){return new Gy(zy.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 null!==e&&0===zy.comparator(this.path,e.path)}toString(){return this.path.toString()}static comparator(e,t){return zy.comparator(e.path,t.path)}static isDocumentKey(e){return e.length%2==0}static fromSegments(e){return new Gy(new zy(e.slice()))}}
1869/**
1870 * @license
1871 * Copyright 2017 Google LLC
1872 *
1873 * Licensed under the Apache License, Version 2.0 (the "License");
1874 * you may not use this file except in compliance with the License.
1875 * You may obtain a copy of the License at
1876 *
1877 *   http://www.apache.org/licenses/LICENSE-2.0
1878 *
1879 * Unless required by applicable law or agreed to in writing, software
1880 * distributed under the License is distributed on an "AS IS" BASIS,
1881 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1882 * See the License for the specific language governing permissions and
1883 * limitations under the License.
1884 */function qy(e,t,n){if(!n)throw new Sy(Cy.INVALID_ARGUMENT,"Function ".concat(e,"() cannot be called with an empty ").concat(t,"."))}function $y(e){if(!Gy.isDocumentKey(e))throw new Sy(Cy.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but ".concat(e," has ").concat(e.length,"."))}function Yy(e){if(Gy.isDocumentKey(e))throw new Sy(Cy.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but ".concat(e," has ").concat(e.length,"."))}function Jy(e){return"object"==typeof e&&null!==e&&(Object.getPrototypeOf(e)===Object.prototype||null===Object.getPrototypeOf(e))}function Qy(e){if(void 0===e)return"undefined";if(null===e)return"null";if("string"==typeof e)return e.length>20&&(e="".concat(e.substring(0,20),"...")),JSON.stringify(e);if("number"==typeof e||"boolean"==typeof e)return""+e;if("object"==typeof e){if(e instanceof Array)return"an array";{const n=(t=e).constructor?t.constructor.name:null;return n?"a custom ".concat(n," object"):"an object"}}var t;return"function"==typeof e?"a function":by(12329,{type:typeof e})}function Zy(e,t){if("_delegate"in e&&(e=e._delegate),!(e instanceof t)){if(t.name===e.constructor.name)throw new Sy(Cy.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const n=Qy(e);throw new Sy(Cy.INVALID_ARGUMENT,"Expected type '".concat(t.name,"', but it was: ").concat(n))}}return e}
1885/**
1886 * @license
1887 * Copyright 2025 Google LLC
1888 *
1889 * Licensed under the Apache License, Version 2.0 (the "License");
1890 * you may not use this file except in compliance with the License.
1891 * You may obtain a copy of the License at
1892 *
1893 *   http://www.apache.org/licenses/LICENSE-2.0
1894 *
1895 * Unless required by applicable law or agreed to in writing, software
1896 * distributed under the License is distributed on an "AS IS" BASIS,
1897 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1898 * See the License for the specific language governing permissions and
1899 * limitations under the License.
1900 */function eb(e,t){const n={typeString:e};return t&&(n.value=t),n}function tb(e,t){if(!Jy(e))throw new Sy(Cy.INVALID_ARGUMENT,"JSON must be an object");let n;for(const a in t)if(t[a]){const i=t[a].typeString,r="value"in t[a]?{value:t[a].value}:void 0;if(!(a in e)){n="JSON missing required field: '".concat(a,"'");break}const o=e[a];if(i&&typeof o!==i){n="JSON field '".concat(a,"' must be a ").concat(i,".");break}if(void 0!==r&&o!==r.value){n="Expected '".concat(a,"' field to equal '").concat(r.value,"'");break}}if(n)throw new Sy(Cy.INVALID_ARGUMENT,n);return!0}
1901/**
1902 * @license
1903 * Copyright 2017 Google LLC
1904 *
1905 * Licensed under the Apache License, Version 2.0 (the "License");
1906 * you may not use this file except in compliance with the License.
1907 * You may obtain a copy of the License at
1908 *
1909 *   http://www.apache.org/licenses/LICENSE-2.0
1910 *
1911 * Unless required by applicable law or agreed to in writing, software
1912 * distributed under the License is distributed on an "AS IS" BASIS,
1913 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1914 * See the License for the specific language governing permissions and
1915 * limitations under the License.
1916 */const nb=-62135596800,ab=1e6;class ib{static now(){return ib.fromMillis(Date.now())}static fromDate(e){return ib.fromMillis(e.getTime())}static fromMillis(e){const t=Math.floor(e/1e3),n=Math.floor((e-1e3*t)*ab);return new ib(t,n)}constructor(e,t){if(this.seconds=e,this.nanoseconds=t,t<0)throw new Sy(Cy.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(t>=1e9)throw new Sy(Cy.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(e<nb)throw new Sy(Cy.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new Sy(Cy.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/ab}_compareTo(e){return this.seconds===e.seconds?Ly(this.nanoseconds,e.nanoseconds):Ly(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{type:ib._jsonSchemaVersion,seconds:this.seconds,nanoseconds:this.nanoseconds}}static fromJSON(e){if(tb(e,ib._jsonSchema))return new ib(e.seconds,e.nanoseconds)}valueOf(){const e=this.seconds-nb;return String(e).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}
1916}ib._jsonSchemaVersion="firestore/timestamp/1.0",ib._jsonSchema={type:eb("string",ib._jsonSchemaVersion),seconds:eb("number"),nanoseconds:eb("number")};
1917/**
1918 * @license
1919 * Copyright 2017 Google LLC
1920 *
1921 * Licensed under the Apache License, Version 2.0 (the "License");
1922 * you may not use this file except in compliance with the License.
1923 * You may obtain a copy of the License at
1924 *
1925 *   http://www.apache.org/licenses/LICENSE-2.0
1926 *
1927 * Unless required by applicable law or agreed to in writing, software
1928 * distributed under the License is distributed on an "AS IS" BASIS,
1929 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1930 * See the License for the specific language governing permissions and
1931 * limitations under the License.
1932 */
1933class rb{static fromTimestamp(e){return new rb(e)}static min(){return new rb(new ib(0,0))}static max(){return new rb(new ib(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}}
1934/**
1935 * @license
1936 * Copyright 2021 Google LLC
1937 *
1938 * Licensed under the Apache License, Version 2.0 (the "License");
1939 * you may not use this file except in compliance with the License.
1940 * You may obtain a copy of the License at
1941 *
1942 *   http://www.apache.org/licenses/LICENSE-2.0
1943 *
1944 * Unless required by applicable law or agreed to in writing, software
1945 * distributed under the License is distributed on an "AS IS" BASIS,
1946 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1947 * See the License for the specific language governing permissions and
1948 * limitations under the License.
1949 */function ob(e){return new sb(e.readTime,e.key,-1)}class sb{constructor(e,t,n){this.readTime=e,this.documentKey=t,this.largestBatchId=n}static min(){return new sb(rb.min(),Gy.empty(),-1)}static max(){return new sb(rb.max(),Gy.empty(),-1)}}function lb(e,t){let n=e.readTime.compareTo(t.readTime);return 0!==n?n:(n=Gy.comparator(e.documentKey,t.documentKey),0!==n?n:Ly(e.largestBatchId,t.largestBatchId)
1950/**
1951 * @license
1952 * Copyright 2020 Google LLC
1953 *
1954 * Licensed under the Apache License, Version 2.0 (the "License");
1955 * you may not use this file except in compliance with the License.
1956 * You may obtain a copy of the License at
1957 *
1958 *   http://www.apache.org/licenses/LICENSE-2.0
1959 *
1960 * Unless required by applicable law or agreed to in writing, software
1961 * distributed under the License is distributed on an "AS IS" BASIS,
1962 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1963 * See the License for the specific language governing permissions and
1964 * limitations under the License.
1965 */)}class ub{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(e){this.onCommittedListeners.push(e)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(e=>e())}}
1966/**
1967 * @license
1968 * Copyright 2017 Google LLC
1969 *
1970 * Licensed under the Apache License, Version 2.0 (the "License");
1971 * you may not use this file except in compliance with the License.
1972 * You may obtain a copy of the License at
1973 *
1974 *   http://www.apache.org/licenses/LICENSE-2.0
1975 *
1976 * Unless required by applicable law or agreed to in writing, software
1977 * distributed under the License is distributed on an "AS IS" BASIS,
1978 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1979 * See the License for the specific language governing permissions and
1980 * limitations under the License.
1981 */async function cb(e){if(e.code!==Cy.FAILED_PRECONDITION||"The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab."!==e.message)throw e;my("LocalStore","Unexpectedly lost primary lease")}
1982/**
1983 * @license
1984 * Copyright 2017 Google LLC
1985 *
1986 * Licensed under the Apache License, Version 2.0 (the "License");
1987 * you may not use this file except in compliance with the License.
1988 * You may obtain a copy of the License at
1989 *
1990 *   http://www.apache.org/licenses/LICENSE-2.0
1991 *
1992 * Unless required by applicable law or agreed to in writing, softw
1992are
1993 * distributed under the License is distributed on an "AS IS" BASIS,
1994 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1995 * See the License for the specific language governing permissions and
1996 * limitations under the License.
1997 */class db{constructor(e){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,e(e=>{this.isDone=!0,this.result=e,this.nextCallback&&this.nextCallback(e)},e=>{this.isDone=!0,this.error=e,this.catchCallback&&this.catchCallback(e)})}catch(e){return this.next(void 0,e)}next(e,t){return this.callbackAttached&&by(59440),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(t,this.error):this.wrapSuccess(e,this.result):new db((n,a)=>{this.nextCallback=t=>{this.wrapSuccess(e,t).next(n,a)},this.catchCallback=e=>{this.wrapFailure(t,e).next(n,a)}})}toPromise(){return new Promise((e,t)=>{this.next(e,t)})}wrapUserFunction(e){try{const t=e();return t instanceof db?t:db.resolve(t)}catch(t){return db.reject(t)}}wrapSuccess(e,t){return e?this.wrapUserFunction(()=>e(t)):db.resolve(t)}wrapFailure(e,t){return e?this.wrapUserFunction(()=>e(t)):db.reject(t)}static resolve(e){return new db((t,n)=>{t(e)})}static reject(e){return new db((t,n)=>{n(e)})}static waitFor(e){return new db((t,n)=>{let a=0,i=0,r=!1;e.forEach(e=>{++a,e.next(()=>{++i,r&&i===a&&t()},e=>n(e))}),r=!0,i===a&&t()})}static or(e){let t=db.resolve(!1);for(const n of e)t=t.next(e=>e?db.resolve(e):n());return t}static forEach(e,t){const n=[];return e.forEach((e,a)=>{n.push(t.call(this,e,a))}),this.waitFor(n)}static mapArray(e,t){return new db((n,a)=>{const i=e.length,r=new Array(i);let o=0;for(let s=0;s<i;s++){const l=s;t(e[l]).next(e=>{r[l]=e,++o,o===i&&n(r)},e=>a(e))}})}static doWhile(e,t){return new db((n,a)=>{const i=()=>{!0===e()?t().next(()=>{i()},a):n()};i()})}}function hb(e){return"IndexedDbTransactionError"===e.name}
1998/**
1999 * @license
2000 * Copyright 2018 Google LLC
2001 *
2002 * Licensed under the Apache License, Version 2.0 (the "License");
2003 * you may not use this file except in compliance with the License.
2004 * You may obtain a copy of the License at
2005 *
2006 *   http://www.apache.org/licenses/LICENSE-2.0
2007 *
2008 * Unless required by applicable law or agreed to in writing, software
2009 * distributed under the License is distributed on an "AS IS" BASIS,
2010 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2011 * See the License for the specific language governing permissions and
2012 * limitations under the License.
2013 */class pb{constructor(e,t){this.previousValue=e,t&&(t.sequenceNumberHandler=e=>this.ae(e),this.ue=e=>t.writeSequenceNumber(e))}ae(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue}next(){const e=++this.previousValue;return this.ue&&this.ue(e),e}}pb.ce=-1;function fb(e){return null==e}function mb(e){return 0===e&&1/e==-1/0}function vb(e,t){let n=t;const a=e.length;for(let i=0;i<a;i++){const t=e.charAt(i);switch(t){case"\0":n+="��";break;case"�":n+="��";break;default:n+=t}}return n}function gb(e){return e+"��"}
2014/**
2015 * @license
2016 * Copyright 2017 Google LLC
2017 *
2018 * Licensed under the Apache License, Version 2.0 (the "License");
2019 * you may not use this file except in compliance with the License.
2020 * You may obtain a copy of the License at
2021 *
2022 *   http://www.apache.org/licenses/LICENSE-2.0
2023 *
2024 * Unless required by applicable law or agreed to in writing, software
2025 * distributed under the License is distributed on an "AS IS" BASIS,
2026 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2027 * See the License for the specific language governing permissions and
2028 * limitations under the License.
2029 */function yb(e){let t=0;for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}function bb(e,t){for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(n,e[n])}function _b(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}
2030/**
2031 * @license
2032 * Copyright 2017 Google LLC
2033 *
2034 * Licensed under the Apache License, Version 2.0 (the "License");
2035 * you may not use this file except in compliance with the License.
2036 * You may obtain a copy of the License at
2037 *
2038 *   http://www.apache.org/licenses/LICENSE-2.0
2039 *
2040 * Unless required by applicable law or agreed to in writing, softw
vendor: 5,020 bytes, lines 2040-2045
2040are
2041 * distributed under the License is distributed on an "AS IS" BASIS,
2042 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2043 * See the License for the specific language governing permissions and
2044 * limitations under the License.
2045 */class wb{constructor(e,t){this.comparator=e,this.root=t||Cb.EMPTY}insert(e,t){return new wb(this.comparator,this.root.insert(e,t,this.comparator).copy(null,null,Cb.BLACK,null,null))}remove(e){return new wb(this.comparator,this.root.remove(e,this.comparator).copy(null,null,Cb.BLACK,null,null))}get(e){let t=this.root;for(;!t.isEmpty();){const n=this.comparator(e,t.key);if(0===n)return t.value;n<0?t=t.left:n>0&&(t=t.right)}return null}indexOf(e){let t=0,n=this.root;for(;!n.isEmpty();){const a=this.comparator(e,n.key);if(0===a)return t+n.left.size;a<0?n=n.left:(t+=n.left.size+1,n=n.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((t,n)=>(e(t,n),!1))}toString(){const e=[];return this.inorderTraversal((t,n)=>(e.push("".concat(t,":").concat(n)),!1)),"{".concat(e.join(", "),"}")}reverseTraversal(e){return this.root.reverseTraversal(e)}getIterator(){return new kb(this.root,null,this.comparator,!1)}getIteratorFrom(e){return new kb(this.root,e,this.comparator,!1)}getReverseIterator(){return new kb(this.root,null,this.comparator,!0)}getReverseIteratorFrom(e){return new kb(this.root,e,this.comparator,!0)}}class kb{constructor(e,t,n,a){this.isReverse=a,this.nodeStack=[];let i=1;for(;!e.isEmpty();)if(i=t?n(e.key,t):1,t&&a&&(i*=-1),i<0)e=this.isReverse?e.left:e.right;else{if(0===i){this.nodeStack.push(e);break}this.nodeStack.push(e),e=this.isReverse?e.right:e.left}}getNext(){let e=this.nodeStack.pop();const t={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 t}hasNext(){return this.nodeStack.length>0}peek(){if(0===this.nodeStack.length)return null;const e=this.nodeStack[this.nodeStack.length-1];return{key:e.key,value:e.value}}}class Cb{constructor(e,t,n,a,i){this.key=e,this.value=t,this.color=null!=n?n:Cb.RED,this.left=null!=a?a:Cb.EMPTY,this.right=null!=i?i:Cb.EMPTY,this.size=this.left.size+1+this.right.size}copy(e,t,n,a,i){return new Cb(null!=e?e:this.key,null!=t?t:this.value,null!=n?n:this.color,null!=a?a:this.left,null!=i?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,t,n){let a=this;const i=n(e,a.key);return a=i<0?a.copy(null,null,null,a.left.insert(e,t,n),null):0===i?a.copy(null,t,null,null,null):a.copy(null,null,null,null,a.right.insert(e,t,n)),a.fixUp()}removeMin(){if(this.left.isEmpty())return Cb.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,t){let n,a=this;if(t(e,a.key)<0)a.left.isEmpty()||a.left.isRed()||a.left.left.isRed()||(a=a.moveRedLeft()),a=a.copy(null,null,null,a.left.remove(e,t),null);else{if(a.left.isRed()&&(a=a.rotateRight()),a.right.isEmpty()||a.right.isRed()||a.right.left.isRed()||(a=a.moveRedRight()),0===t(e,a.key)){if(a.right.isEmpty())return Cb.EMPTY;n=a.right.min(),a=a.copy(n.key,n.value,null,null,a.right.removeMin())}a=a.copy(null,null,null,null,a.right.remove(e,t))}return a.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,Cb.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight(){const e=this.copy(null,null,Cb.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),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)}checkMaxDepth(){const e=this.check();return Math.pow(2,e)<=this.size+1}check(){if(this.isRed()&&this.left.isRed())throw by(43730,{key:this.key,value:this.value});if(this.right.isRed())throw by(14113,{key:this.key,value:this.value});const e=this.left.check();if(e!==this.right.check())throw by(27949);return e+(this.isRed()?0:1)}}
2045Cb.EMPTY=null,Cb.RED=!0,Cb.BLACK=!1,Cb.EMPTY=new class{constructor(){this.size=0}get key(){throw by(57766)}get value(){throw by(16141)}get color(){throw by(16727)}get left(){throw by(29726)}get right(){throw by(36894)}copy(e,t,n,a,i){return this}insert(e,t,n){return new Cb(e,t)}remove(e,t){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}};
2046/**
2047 * @license
2048 * Copyright 2017 Google LLC
2049 *
2050 * Licensed under the Apache License, Version 2.0 (the "License");
2051 * you may not use this file except in compliance with the License.
2052 * You may obtain a copy of the License at
2053 *
2054 *   http://www.apache.org/licenses/LICENSE-2.0
2055 *
2056 * Unless required by applicable law or agreed to in writing, software
2057 * distributed under the License is distributed on an "AS IS" BASIS,
2058 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2059 * See the License for the specific language governing permissions and
2060 * limitations under the License.
2061 */
2062class Sb{constructor(e){this.comparator=e,this.data=new wb(this.comparator)}has(e){return null!==this.data.get(e)}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((t,n)=>(e(t),!1))}forEachInRange(e,t){const n=this.data.getIteratorFrom(e[0]);for(;n.hasNext();){const a=n.getNext();if(this.comparator(a.key,e[1])>=0)return;t(a.key)}}forEachWhile(e,t){let n;for(n=void 0!==t?this.data.getIteratorFrom(t):this.data.getIterator();n.hasNext();)if(!e(n.getNext().key))return}firstAfterOrEqual(e){const t=this.data.getIteratorFrom(e);return t.hasNext()?t.getNext().key:null}getIterator(){return new Tb(this.data.getIterator())}getIteratorFrom(e){return new Tb(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 t=this;return t.size<e.size&&(t=e,e=this),e.forEach(e=>{t=t.add(e)}),t}isEqual(e){if(!(e instanceof Sb))return!1;if(this.size!==e.size)return!1;const t=this.data.getIterator(),n=e.data.getIterator();for(;t.hasNext();){const e=t.getNext().key,a=n.getNext().key;if(0!==this.comparator(e,a))return!1}return!0}toArray(){const e=[];return this.forEach(t=>{e.push(t)}),e}toString(){const e=[];return this.forEach(t=>e.push(t)),"SortedSet("+e.toString()+")"}copy(e){const t=new Sb(this.comparator);return t.data=e,t}}class Tb{constructor(e){this.iter=e}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}
2063/**
2064 * @license
2065 * Copyright 2020 Google LLC
2066 *
2067 * Licensed under the Apache License, Version 2.0 (the "License");
2068 * you may not use this file except in compliance with the License.
2069 * You may obtain a copy of the License at
2070 *
2071 *   http://www.apache.org/licenses/LICENSE-2.0
2072 *
2073 * Unless required by applicable law or agreed to in writing, software
2074 * distributed under the License is distributed on an "AS IS" BASIS,
2075 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2076 * See the License for the specific language governing permissions and
2077 * limitations under the License.
2078 */class Ab{constructor(e){this.fields=e,e.sort(Wy.comparator)}static empty(){return new Ab([])}unionWith(e){let t=new Sb(Wy.comparator);for(const n of this.fields)t=t.add(n);for(const n of e)t=t.add(n);return new Ab(t.toArray())}covers(e){for(const t of this.fields)if(t.isPrefixOf(e))return!0;return!1}isEqual(e){return jy(this.fields,e.fields,(e,t)=>e.isEqual(t))}}
2079/**
2080 * @license
2081 * Copyright 2023 Google LLC
2082 *
2083 * Licensed under the Apache License, Version 2.0 (the "License");
2084 * you may not use this file except in compliance with the License.
2085 * You may obtain a copy of the License at
2086 *
2087 *   http://www.apache.org/licenses/LICENSE-2.0
2088 *
2089 * Unless required by applicable law or agreed to in writing, software
2090 * distributed under the License is distributed on an "AS IS" BASIS,
2091 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2092 * See the License for the specific language governing permissions and
2093 * limitations under the License.
2094 */class Eb extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}
2095/**
2096 * @license
2097 * Copyright 2020 Google LLC
2098 *
2099 * Licensed under the Apache License, Version 2.0 (the "License");
2100 * you may not use this file except in compliance with the License.
2101 * You may obtain a copy of the License at
2102 *
2103 *   http://www.apache.org/licenses/LICENSE-2.0
2104 *
2105 * Unless required by applicable law or agreed to in writing, software
2106 * distributed under the License is distributed on an "AS IS" BASIS,
2107 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2108 * See the License for the specific language governing permissions and
2109 * limitations under the License.
2110 */class Ib{constructor(e){this.binaryString=e}static fromBase64String(e){const t=function(e){try{return atob(e)}catch(t){throw"undefined"!=typeof DOMException&&t instanceof DOMException?new Eb("Invalid base64 string: "+t):t}}(e);return new Ib(t)}static fromUint8Array(e){const t=function(e){let t="";for(let n=0;n<e.length;++n)t+=String.fromCharCode(e[n]);return t}(e);return new Ib(t)}[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 e=this.binaryString,btoa(e);var e}toUint8Array(){return function(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}(this.binaryString)}approximateByteSize(){return 2*this.binaryString.length}compareTo(e){return Ly(this.binaryString,e.binaryString)}isEqual(e){return this.binaryString===e.binaryString}}Ib.EMPTY_BYTE_STRING=new Ib("");const xb=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function Nb(e){if(wy(!!e,39018),"string"==typeof e){let t=0;const n=xb.exec(e);if(wy(!!n,46558,{timestamp:e}),n[1]){let e=n[1];e=(e+"000000000").substr(0,9),t=Number(e)}const a=new Date(e);return{seconds:Math.floor(a.getTime()/1e3),nanos:t}}return{seconds:Pb(e.seconds),nanos:Pb(e.nanos)}}function Pb(e){return"number"==typeof e?e:"string"==typeof e?Number(e):0}function Mb(e){return"string"==typeof e?Ib.fromBase64String(e):Ib.fromUint8Array(e)}
2111/**
2112 * @license
2113 * Copyright 2020 Google LLC
2114 *
2115 * Licensed under the Apache License, Version 2.0 (the "License");
2116 * you may not use this file except in compliance with the License.
2117 * You may obtain a copy of the License at
2118 *
2119 *   http://www.apache.org/licenses/LICENSE-2.0
2120 *
2121 * Unless required by applicable law or agreed to in writing, software
2122 * distributed under the License is distributed on an "AS IS" BASIS,
2123 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2124 * See the License for the specific language governing permissions and
2125 * limitations under the License.
2126 */const Ob="server_timestamp",Rb="__type__",Db="__previous_value__",Lb="__local_write_time__";function Bb(e){var t,n;return(null==(n=((null==(t=null==e?void 0:e.mapValue)?void 0:t.fields)||{})[Rb])?void 0:n.stringValue)===Ob}function Fb(e){const t=e.mapValue.fields[Db];return Bb(t)?Fb(t):t}function Vb(e){const t=Nb(e.mapValue.fields[Lb].timestampValue);return new ib(t.seconds,t.nanos)}
2127/**
2128 * @license
2129 * Copyright 2017 Google LLC
2130 *
2131 * Licensed under the Apache License, Version 2.0 (the "License");
2132 * you may not use this file except in compliance with the License.
2133 * You may obtain a copy of the License at
2134 *
2135 *   http://www.apache.org/licenses/LICENSE-2.0
2136 *
2137 * Unless required by applicable law or agreed to in writing, software
2138 * distributed under the License is distributed on an "AS IS" BASIS,
2139 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2140 * See the License for the specific language governing permissions and
2141 * limitations under the License.
2142 */class Xb{constructor(e,t,n,a,i,r,o,s,l,u){this.databaseId=e,this.appId=t,this.persistenceKey=n,this.host=a,this.ssl=i,this.forceLongPolling=r,this.autoDetectLongPolling=o,this.longPollingOptions=s,this.useFetchStreams=l,this.isUsingEmulator=u}}const jb="(default)";class Ub{constructor(e,t){this.projectId=e,this.database=t||jb}static empty(){return new Ub("","")}get isDefaultDatabase(){return this.database===jb}isEqual(e){return e instanceof Ub&&e.projectId===this.projectId&&e.database===this.database}}
2143/**
2144 * @license
2145 * Copyright 2020 Google LLC
2146 *
2147 * Licensed under the Apache License, Version 2.0 (the "License");
2148 * you may not use this file except in compliance with the License.
2149 * You may obtain a copy of the License at
2150 *
2151 *   http://www.apache.org/licenses/LICENSE-2.0
2152 *
2153 * Unless required by applicable law or agreed to in writing, software
2154 * distributed under the License is distributed on an "AS IS" BASIS,
2155 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2156 * See the License for the specific language governing permissions and
2157 * limitations under the License.
2158 */const Hb="__type__",zb="__max__",Kb={},Wb="__vector__",Gb="value";function qb(e){return"nullValue"in e?0:"booleanValue"in e?1:"integerValue"in e||"doubleValue"in e?2:"timestampValue"in e?3:"stringValue"in e?5:"bytesValue"in e?6:"referenceValue"in e?7:"geoPointValue"in e?8:"arrayValue"in e?9:"mapValue"in e?Bb(e)?4:function(e){return(((e.mapValue||{}).fields||{}).__type__||{}).stringValue===zb}
2159/**
2160 * @license
2161 * Copyright 2017 Google LLC
2162 *
2163 * Licensed under the Apache License, Version 2.0 (the "License");
2164 * you may not use this file except in compliance with the License.
2165 * You may obtain a copy of the License at
2166 *
2167 *   http://www.apache.org/licenses/LICENSE-2.0
2168 *
2169 * Unless required by applicable law or agreed to in writing, software
2170 * distributed under the License is distributed on an "AS IS" BASIS,
2171 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2172 * See the License for the specific language governing permissions and
2173 * limitations under the License.
2174 */(e)?9007199254740991:function(e){var t,n;const a=null==(n=((null==(t=null==e?void 0:e.mapValue)?void 0:t.fields)||{})[Hb])?void 0:n.stringValue;return a===Wb}(e)?10:11:by(28295,{value:e})}function $b(e,t){if(e===t)return!0;const n=qb(e);if(n!==qb(t))return!1;switch(n){case 0:case 9007199254740991:return!0;case 1:return e.booleanValue===t.booleanValue;case 4:return Vb(e).isEqual(Vb(t));case 3:return function(e,t){if("string"==typeof e.timestampValue&&"string"==typeof t.timestampValue&&e.timestampValue.length===t.timestampValue.length)return e.timestampValue===t.timestampValue;const n=Nb(e.timestampValue),a=Nb(t.timestampValue);return n.seconds===a.seconds&&n.nanos===a.nanos}(e,t);case 5:return e.stringValue===t.stringValue;case 6:return a=t,Mb(e.bytesValue).isEqual(Mb(a.bytesValue));case 7:return e.referenceValue===t.referenceValue;case 8:return function(e,t){return Pb(e.geoPointValue.latitude)===Pb(t.geoPointValue.latitude)&&Pb(e.geoPointValue.longitude)===Pb(t.geoPointValue.longitude)}(e,t);case 2:return function(e,t){if("integerValue"in e&&"integerValue"in t)return Pb(e.integerValue)===Pb(t.integerValue);if("doubleValue"in e&&"doubleValue"in t){const n=Pb(e.doubleValue),a=Pb(t.doubleValue);return n===a?mb(n)===mb(a):isNaN(n)&&isNaN(a)}return!1}(e,t);case 9:return jy(e.arrayValue.values||[],t.arrayValue.values||[],$b);case 10:case 11:return function(e,t){const n=e.mapValue.fields||{},a=t.mapValue.fields||{};if(yb(n)!==yb(a))return!1;for(const i in n)if(n.hasOwnProperty(i)&&(void 0===a[i]||!$b(n[i],a[i])))return!1;return!0}(e,t);default:return by(52216,{left:e})}var a}function Yb(e,t){return void 0!==(e.values||[]).find(e=>$b(e,t))}function Jb(e,t){if(e===t)return 0;const n=qb(e),a=qb(t);if(n!==a)return Ly(n,a);switch(n){case 0:case 9007199254740991:return 0;case 1:return Ly(e.booleanValue,t.booleanValue);case 2:return function(e,t){const n=Pb(e.integerValue||e.doubleValue),a=Pb(t.integerValue||t.doubleValue);return n<a?-1:n>a?1:n===a?0:isNaN(n)?isNaN(a)?0:-1:1}(e,t);case 3:return Qb(e.timestampValue,t.timestampValue);case 4:return Qb(Vb(e),Vb(t));case 5:return By(e.stringValue,t.stringValue);case 6:return function(e,t){const n=Mb(e),a=Mb(t);return n.compareTo(a)}(e.bytesValue,t.bytesValue);case 7:return function(e,t){const n=e.split("/"),a=t.split("/");for(let i=0;i<n.length&&i<a.length;i++){const e=Ly(n[i],a[i]);if(0!==e)return e}return Ly(n.length,a.length)}(e.referenceValue,t.referenceValue);case 8:return function(e,t){const n=Ly(Pb(e.latitude),Pb(t.latitude));return 0!==n?n:Ly(Pb(e.longitude),Pb(t.longitude))}(e.geoPointValue,t.geoPointValue);case 9:return Zb(e.arrayValue,t.arrayValue);case 10:return function(e,t){var n,a,i,r;const o=e.fields||{},s=t.fields||{},l=null==(n=o[Gb])?void 0:n.arrayValue,u=null==(a=s[Gb])?void 0:a.arrayValue,c=Ly((null==(i=null==l?void 0:l.values)?void 0:i.length)||0,(null==(r=null==u?void 0:u.values)?void 0:r.length)||0);return 0!==c?c:Zb(l,u)}(e.mapValue,t.mapValue);case 11:return function(e,t){if(e===Kb&&t===Kb)return 0;if(e===Kb)return 1;if(t===Kb)return-1;const n=e.fields||{},a=Object.keys(n),i=t.fields||{},r=Object.keys(i);
2174a.sort(),r.sort();for(let o=0;o<a.length&&o<r.length;++o){const e=By(a[o],r[o]);if(0!==e)return e;const t=Jb(n[a[o]],i[r[o]]);if(0!==t)return t}return Ly(a.length,r.length)}(e.mapValue,t.mapValue);default:throw by(23264,{he:n})}}function Qb(e,t){if("string"==typeof e&&"string"==typeof t&&e.length===t.length)return Ly(e,t);const n=Nb(e),a=Nb(t),i=Ly(n.seconds,a.seconds);return 0!==i?i:Ly(n.nanos,a.nanos)}function Zb(e,t){const n=e.values||[],a=t.values||[];for(let i=0;i<n.length&&i<a.length;++i){const e=Jb(n[i],a[i]);if(e)return e}return Ly(n.length,a.length)}function e_(e){return t_(e)}function t_(e){return"nullValue"in e?"null":"booleanValue"in e?""+e.booleanValue:"integerValue"in e?""+e.integerValue:"doubleValue"in e?""+e.doubleValue:"timestampValue"in e?function(e){const t=Nb(e);return"time(".concat(t.seconds,",").concat(t.nanos,")")}(e.timestampValue):"stringValue"in e?e.stringValue:"bytesValue"in e?Mb(e.bytesValue).toBase64():"referenceValue"in e?function(e){return Gy.fromName(e).toString()}(e.referenceValue):"geoPointValue"in e?function(e){return"geo(".concat(e.latitude,",").concat(e.longitude,")")}(e.geoPointValue):"arrayValue"in e?function(e){let t="[",n=!0;for(const a of e.values||[])n?n=!1:t+=",",t+=t_(a);return t+"]"}(e.arrayValue):"mapValue"in e?function(e){const t=Object.keys(e.fields||{}).sort();let n="{",a=!0;for(const i of t)a?a=!1:n+=",",n+="".concat(i,":").concat(t_(e.fields[i]));return n+"}"}(e.mapValue):by(61005,{value:e})}function n_(e){switch(qb(e)){case 0:case 1:return 4;case 2:return 8;case 3:case 8:return 16;case 4:const t=Fb(e);return t?16+n_(t):16;case 5:return 2*e.stringValue.length;case 6:return Mb(e.bytesValue).approximateByteSize();case 7:return e.referenceValue.length;case 9:return(e.arrayValue.values||[]).reduce((e,t)=>e+n_(t),0);case 10:case 11:return function(e){let t=0;return bb(e.fields,(e,n)=>{t+=e.length+n_(n)}),t}(e.mapValue);default:throw by(13486,{value:e})}}function a_(e){return!!e&&"integerValue"in e}function i_(e){return!!e&&"arrayValue"in e}function r_(e){return!!e&&"nullValue"in e}function o_(e){return!!e&&"doubleValue"in e&&isNaN(Number(e.doubleValue))}function s_(e){return!!e&&"mapValue"in e}function l_(e){if(e.geoPointValue)return{geoPointValue:{...e.geoPointValue}};if(e.timestampValue&&"object"==typeof e.timestampValue)return{timestampValue:{...e.timestampValue}};if(e.mapValue){const t={mapValue:{fields:{}}};return bb(e.mapValue.fields,(e,n)=>t.mapValue.fields[e]=l_(n)),t}if(e.arrayValue){const t={arrayValue:{values:[]}};for(let n=0;n<(e.arrayValue.values||[]).length;++n)t.arrayValue.values[n]=l_(e.arrayValue.values[n]);return t}return{...e}}class u_{constructor(e){this.value=e}static empty(){return new u_({mapValue:{}})}field(e){if(e.isEmpty())return this.value;{let t=this.value;for(let n=0;n<e.length-1;++n)if(t=(t.mapValue.fields||{})[e.get(n)],!s_(t))return null;return t=(t.mapValue.fields||{})[e.lastSegment()],t||null}}set(e,t){this.getFieldsMap(e.popLast())[e.lastSegment()]=l_(t)}setAll(e){let t=Wy.emptyPath(),n={},a=[];e.forEach((e,i)=>{if(!t.isImmediateParentOf(i)){const e=this.getFieldsMap(t);this.applyChanges(e,n,a),n={},a=[],t=i.popLast()}e?n[i.lastSegment()]=l_(e):a.push(i.lastSegment())});const i=this.getFieldsMap(t);this.applyChanges(i,n,a)}delete(e){const t=this.field(e.popLast());s_(t)&&t.mapValue.fields&&delete t.mapValue.fields[e.lastSegment()]}isEqual(e){return $b(this.value,e.value)}getFieldsMap(e){let t=this.value;t.mapValue.fields||(t.mapValue={fields:{}});for(let n=0;n<e.length;++n){let a=t.mapValue.fields[e.get(n)];s_(a)&&a.mapValue.fields||(a={mapValue:{fields:{}}},t.mapValue.fields[e.get(n)]=a),t=a}return t.mapValue.fields}applyChanges(e,t,n){bb(t,(t,n)=>e[t]=n);for(const a of n)delete e[a]}clone(){return new u_(l_(this.value))}}function c_(e){const t=[];return bb(e.fields,(e,n)=>{const a=new Wy([e]);if(s_(n)){const e=c_(n.mapValue).fields;if(0===e.length)t.push(a);else for(const n of e)t.push(a.child(n))}else t.push(a)}),new Ab(t)
2175/**
2176 * @license
2177 * Copyright 2017 Google LLC
2178 *
2179 * Licensed under the Apache License, Version 2.0 (the "License");
2180 * you may not use this file except in compliance with the License.
2181 * You may obtain a copy of the License at
2182 *
2183 *   http://www.apache.org/licenses/LICENSE-2.0
2184 *
2185 * Unless required by applicable law or agreed to in writing, software
2186 * distributed under the License is distributed on an "AS IS" BASIS,
2187 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2188 * See the License for the specific language governing permissions and
2189 * limitations under the License.
2190 */}class d_{constructor(e,t,n,a,i,r,o){this.key=e,this.documentType=t,this.version=n,this.readTime=a,this.createTime=i,this.data=r,this.documentState=o}static newInvalidDocument(e){return new d_(e,0,rb.min(),rb.min(),rb.min(),u_.empty(),0)}static newFoundDocument(e,t,n,a){return new d_(e,1,t,rb.min(),n,a,0)}static newNoDocument(e,t){return new d_(e,2,t,rb.min(),rb.min(),u_.empty(),0)}static newUnknownDocument(e,t){return new d_(e,3,t,rb.min(),rb.min(),u_.empty(),2)}convertToFoundDocument(e,t){return!this.createTime.isEqual(rb.min())||2!==this.documentType&&0!==this.documentType||(this.createTime=e),this.version=e,this.documentType=1,this.data=t,this.documentState=0,this}convertToNoDocument(e){return this.version=e,this.documentType=2,this.data=u_.empty(),this.documentState=0,this}convertToUnknownDocument(e){return this.version=e,this.documentType=3,this.data=u_.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=rb.min(),this}setReadTime(e){return this.readTime=e,this}get hasLocalMutations(){return 1===this.documentState}get hasCommittedMutations(){return 2===this.documentState}get hasPendingWrites(){return this.hasLocalMutations||this.hasCommittedMutations}isValidDocument(){return 0!==this.documentType}isFoundDocument(){return 1===this.documentType}isNoDocument(){return 2===this.documentType}isUnknownDocument(){return 3===this.documentType}isEqual(e){return e instanceof d_&&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 d_(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}toString(){return"Document(".concat(this.key,", ").concat(this.version,", ").concat(JSON.stringify(this.data.value),", {createTime: ").concat(this.createTime,"}), {documentType: ").concat(this.documentType,"}), {documentState: ").concat(this.documentState,"})")}}
2191/**
2192 * @license
2193 * Copyright 2022 Google LLC
2194 *
2195 * Licensed under the Apache License, Version 2.0 (the "License");
2196 * you may not use this file except in compliance with the License.
2197 * You may obtain a copy of the License at
2198 *
2199 *   http://www.apache.org/licenses/LICENSE-2.0
2200 *
2201 * Unless required by applicable law or agreed to in writing, software
2202 * distributed under the License is distributed on an "AS IS" BASIS,
2203 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2204 * See the License for the specific language governing permissions and
2205 * limitations under the License.
2206 */class h_{constructor(e,t){this.position=e,this.inclusive=t}}function p_(e,t,n){let a=0;for(let i=0;i<e.position.length;i++){const r=t[i],o=e.position[i];if(a=r.field.isKeyField()?Gy.comparator(Gy.fromName(o.referenceValue),n.key):Jb(o,n.data.field(r.field)),"desc"===r.dir&&(a*=-1),0!==a)break}return a}function f_(e,t){if(null===e)return null===t;if(null===t)return!1;if(e.inclusive!==t.inclusive||e.position.length!==t.position.length)return!1;for(let n=0;n<e.position.length;n++)if(!$b(e.position[n],t.position[n]))return!1;return!0}
2207/**
2208 * @license
2209 * Copyright 2022 Google LLC
2210 *
2211 * Licensed under the Apache License, Version 2.0 (the "License");
2212 * you may not use this file except in compliance with the License.
2213 * You may obtain a copy of the License at
2214 *
2215 *   http://www.apache.org/licenses/LICENSE-2.0
2216 *
2217 * Unless required by applicable law or agreed to in writing, software
2218 * distributed under the License is distributed on an "AS IS" BASIS,
2219 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2220 * See the License for the specific language governing permissions and
2221 * limitations under the License.
2222 */class m_{constructor(e,t="asc"){this.field=e,this.dir=t}}function v_(e,t){return e.dir===t.dir&&e.field.isEqual(t.field)}
2223/**
2224 * @license
2225 * Copyright 2022 Google LLC
2226 *
2227 * Licensed under the Apache License, Version 2.0 (the "License");
2228 * you may not use this file except in compliance with the License.
2229 * You may obtain a copy of the License at
2230 *
2231 *   http://www.apache.org/licenses/LICENSE-2.0
2232 *
2233 * Unless required by applicable law or agreed to in writing, software
2234 * distributed under the License is distributed on an "AS IS" BASIS,
2235 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2236 * See the License for the specific language governing permissions and
2237 * limitations under the License.
2238 */class g_{}class y_ extends g_{constructor(e,t,n){super(),this.field=e,this.op=t,this.value=n}static create(e,t,n){return e.isKeyField()?"in"===t||"not-in"===t?this.createKeyFieldInFilter(e,t,n):new T_(e,t,n):"array-contains"===t?new x_(e,n):"in"===t?new N_(e,n):"not-in"===t?new P_(e,n):"array-contains-any"===t?new M_(e,n):new y_(e,t,n)}static createKeyFieldInFilter(e,t,n){return"in"===t?new A_(e,n):new E_(e,n)}matches(e){const t=e.data.field(this.field);return"!="===this.op?null!==t&&void 0===t.nullValue&&this.matchesComparison(Jb(t,this.value)):null!==t&&qb(this.value)===qb(t)&&this.matchesComparison(Jb(t,this.value))}matchesComparison(e){switch(this.op){case"<":return e<0;case"<=":return e<=0;case"==":return 0===e;case"!=":return 0!==e;case">":return e>0;case">=":return e>=0;default:return by(47266,{operator:this.op})}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class b_ extends g_{constructor(e,t){super(),this.filters=e,this.op=t,this.Pe=null}static create(e,t){return new b_(e,t)}matches(e){return __(this)?void 0===this.filters.find(t=>!t.matches(e)):void 0!==this.filters.find(t=>t.matches(e))}getFlattenedFilters(){return null!==this.Pe||(this.Pe=this.filters.reduce((e,t)=>e.concat(t.getFlattenedFilters()),[])),this.Pe}getFilters(){return Object.assign([],this.filters)}}function __(e){return"and"===e.op}function w_(e){return function(e){for(const t of e.filters)if(t instanceof b_)return!1;return!0}(e)&&__(e)}function k_(e){if(e instanceof y_)return e.field.canonicalString()+e.op.toString()+e_(e.value);if(w_(e))return e.filters.map(e=>k_(e)).join(",");{const t=e.filters.map(e=>k_(e)).join(",");return"".concat(e.op,"(").concat(t,")")}}function C_(e,t){return e instanceof y_?(n=e,(a=t)instanceof y_&&n.op===a.op&&n.field.isEqual(a.field)&&$b(n.value,a.value)):e instanceof b_?function(e,t){return t instanceof b_&&e.op===t.op&&e.filters.length===t.filters.length&&e.filters.reduce((e,n,a)=>e&&C_(n,t.filters[a]),!0)}(e,t):void by(19439);var n,a}function S_(e){return e instanceof y_?"".concat((t=e).field.canonicalString()," ").concat(t.op," ").concat(e_(t.value)):e instanceof b_?function(e){return e.op.toString()+" {"+e.getFilters().map(S_).join(" ,")+"}"}(e):"Filter";var t}class T_ extends y_{constructor(e,t,n){super(e,t,n),this.key=Gy.fromName(n.referenceValue)}matches(e){const t=Gy.comparator(e.key,this.key);return this.matchesComparison(t)}}class A_ extends y_{constructor(e,t){super(e,"in",t),this.keys=I_("in",t)}matches(e){return this.keys.some(t=>t.isEqual(e.key))}}class E_ extends y_{constructor(e,t){super(e,"not-in",t),this.keys=I_("not-in",t)}matches(e){return!this.keys.some(t=>t.isEqual(e.key))}}function I_(e,t){var n;return((null==(n=t.arrayValue)?void 0:n.values)||[]).map(e=>Gy.fromName(e.referenceValue))}class x_ extends y_{constructor(e,t){super(e,"array-contains",t)}matches(e){const t=e.data.field(this.field);return i_(t)&&Yb(t.arrayValue,this.value)}}class N_ extends y_{constructor(e,t){super(e,"in",t)}matches(e){const t=e.data.field(this.field);return null!==t&&Yb(this.value.arrayValue,t)}}class P_ extends y_{constructor(e,t){super(e,"not-in",t)}matches(e){if(Yb(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const t=e.data.field(this.field);return null!==t&&void 0===t.nullValue&&!Yb(this.value.arrayValue,t)}}class M_ extends y_{constructor(e,t){super(e,"array-contains-any",t)}matches(e){const t=e.data.field(this.field);return!(!i_(t)||!t.arrayValue.values)&&t.arrayValue.values.some(e=>Yb(this.value.arrayValue,e))}}
2239/**
2240 * @license
2241 * Copyright 2019 Google LLC
2242 *
2243 * Licensed under the Apache License, Version 2.0 (the "License");
2244 * you may not use this file except in compliance with the License.
2245 * You may obtain a copy of the License at
2246 *
2247 *   http://www.apache.org/licenses/LICENSE-2.0
2248 *
2249 * Unless required by applicable law or agreed to in writing, software
2250 * distributed under the License is distributed on an "AS IS" BASIS,
2251 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2252 * See the License for the specific language governing permissions and
2253 * limitations under the License.
2254 */class O_{constructor(e,t=null,n=[],a=[],i=null,r=null,o=null){this.path=e,this.collectionGroup=t,this.orderBy=n,this.filters=a,this.limit=i,this.startAt=r,this.endAt=o,this.Te=null}}function R_(e,t=null,n=[],a=[],i=null,r=null,o=null){return new O_(e,t,n,a,i,r,o)}function D_(e){const t=ky(e);if(null===t.Te){let e=t.path.canonicalString();null!==t.collectionGroup&&(e+="|cg:"+t.collectionGroup),e+="|f:",e+=t.filters.map(e=>k_(e)).join(","),e+="|ob:",e+=t.orderBy.map(e=>{return(t=e).field.canonicalString()+t.dir;var t}).join(","),fb(t.limit)||(e+="|l:",e+=t.limit),t.startAt&&(e+="|lb:",e+=t.startAt.inclusive?"b:":"a:",e+=t.startAt.position.map(e=>e_(e)).join(",")),t.endAt&&(e+="|ub:",e+=t.endAt.inclusive?"a:":"b:",e+=t.endAt.position.map(e=>e_(e)).join(",")),t.Te=e}return t.Te}function L_(e,t){if(e.limit!==t.limit)return!1;if(e.orderBy.length!==t.orderBy.length)return!1;for(let n=0;n<e.orderBy.length;n++)if(!v_(e.orderBy[n],t.orderBy[n]))return!1;if(e.filters.length!==t.filters.length)return!1;for(let n=0;n<e.filters.length;n++)if(!C_(e.filters[n],t.filters[n]))return!1;return e.collectionGroup===t.collectionGroup&&!!e.path.isEqual(t.path)&&!!f_(e.startAt,t.startAt)&&f_(e.endAt,t.endAt)}function B_(e){return Gy.isDocumentKey(e.path)&&null===e.collectionGroup&&0===e.filters.length}
2255/**
2256 * @license
2257 * Copyright 2017 Google LLC
2258 *
2259 * Licensed under the Apache License, Version 2.0 (the "License");
2260 * you may not use this file except in compliance with the License.
2261 * You may obtain a copy of the License at
2262 *
2263 *   http://www.apache.org/licenses/LICENSE-2.0
2264 *
2265 * Unless required by applicable law or agreed to in writing, software
2266 * distributed under the License is distributed on an "AS IS" BASIS,
2267 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2268 * See the License for the specific language governing permissions and
2269 * limitations under the License.
2270 */class F_{constructor(e,t=null,n=[],a=[],i=null,r="F",o=null,s=null){this.path=e,this.collectionGroup=t,this.explicitOrderBy=n,this.filters=a,this.limit=i,this.limitType=r,this.startAt=o,this.endAt=s,this.Ie=null,this.Ee=null,this.de=null,this.startAt,this.endAt}}function V_(e){return new F_(e)}function X_(e){return 0===e.filters.length&&null===e.limit&&null==e.startAt&&null==e.endAt&&(0===e.explicitOrderBy.length||1===e.explicitOrderBy.length&&e.explicitOrderBy[0].field.isKeyField())}function j_(e){const t=ky(e);if(null===t.Ie){t.Ie=[];const e=new Set;for(const a of t.explicitOrderBy)t.Ie.push(a),e.add(a.field.canonicalString());const n=t.explicitOrderBy.length>0?t.explicitOrderBy[t.explicitOrderBy.length-1].dir:"asc";(function(e){let t=new Sb(Wy.comparator);return e.filters.forEach(e=>{e.getFlattenedFilters().forEach(e=>{e.isInequality()&&(t=t.add(e.field))})}),t})(t).forEach(a=>{e.has(a.canonicalString())||a.isKeyField()||t.Ie.push(new m_(a,n))}),e.has(Wy.keyField().canonicalString())||t.Ie.push(new m_(Wy.keyField(),n))}return t.Ie}function U_(e){const t=ky(e);return t.Ee||(t.Ee=function(e,t){if("F"===e.limitType)return R_(e.path,e.collectionGroup,t,e.filters,e.limit,e.startAt,e.endAt);{t=t.map(e=>{const t="desc"===e.dir?"asc":"desc";return new m_(e.field,t)});const n=e.endAt?new h_(e.endAt.position,e.endAt.inclusive):null,a=e.startAt?new h_(e.startAt.position,e.startAt.inclusive):null;return R_(e.path,e.collectionGroup,t,e.filters,e.limit,n,a)}}(t,j_(e))),t.Ee}function H_(e,t,n){return new F_(e.path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),t,n,e.startAt,e.endAt)}function z_(e,t){return L_(U_(e),U_(t))&&e.limitType===t.limitType}function K_(e){return"".concat(D_(U_(e)),"|lt:").concat(e.limitType)}function W_(e){return"Query(target=".concat(function(e){let t=e.path.canonicalString();return null!==e.collectionGroup&&(t+=" collectionGroup="+e.collectionGroup),e.filters.length>0&&(t+=", filters: [".concat(e.filters.map(e=>S_(e)).join(", "),"]")),fb(e.limit)||(t+=", limit: "+e.limit),e.orderBy.length>0&&(t+=", orderBy: [".concat(e.orderBy.map(e=>{return"".concat((t=e).field.canonicalString()," (").concat(t.dir,")");var t}).join(", "),"]")),e.startAt&&(t+=", startAt: ",t+=e.startAt.inclusive?"b:":"a:",t+=e.startAt.position.map(e=>e_(e)).join(",")),e.endAt&&(t+=", endAt: ",t+=e.endAt.inclusive?"a:":"b:",t+=e.endAt.position.map(e=>e_(e)).join(",")),"Target(".concat(t,")")}(U_(e)),"; limitType=").concat(e.limitType,")")}function G_(e,t){return t.isFoundDocument()&&function(e,t){const n=t.key.path;return null!==e.collectionGroup?t.key.hasCollectionId(e.collectionGroup)&&e.path.isPrefixOf(n):Gy.isDocumentKey(e.path)?e.path.isEqual(n):e.path.isImmediateParentOf(n)}(e,t)&&function(e,t){for(const n of j_(e))if(!n.field.isKeyField()&&null===t.data.field(n.field))return!1;return!0}(e,t)&&function(e,t){for(const n of e.filters)if(!n.matches(t))return!1;return!0}(e,t)&&(a=t,!((n=e).startAt&&!function(e,t,n){const a=p_(e,t,n);return e.inclusive?a<=0:a<0}(n.startAt,j_(n),a)||n.endAt&&!function(e,t,n){const a=p_(e,t,n);return e.inclusive?a>=0:a>0}(n.endAt,j_(n),a)));var n,a}function q_(e){return(t,n)=>{let a=!1;for(const i of j_(e)){const e=$_(i,t,n);if(0!==e)return e;a=a||i.field.isKeyField()}return 0}}function $_(e,t,n){const a=e.field.isKeyField()?Gy.comparator(t.key,n.key):function(e,t,n){const a=t.data.field(e),i=n.data.field(e);return null!==a&&null!==i?Jb(a,i):by(42886)}(e.field,t,n);switch(e.dir){case"asc":return a;
2270case"desc":return-1*a;default:return by(19790,{direction:e.dir})}}
2271/**
2272 * @license
2273 * Copyright 2017 Google LLC
2274 *
2275 * Licensed under the Apache License, Version 2.0 (the "License");
2276 * you may not use this file except in compliance with the License.
2277 * You may obtain a copy of the License at
2278 *
2279 *   http://www.apache.org/licenses/LICENSE-2.0
2280 *
2281 * Unless required by applicable law or agreed to in writing, software
2282 * distributed under the License is distributed on an "AS IS" BASIS,
2283 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2284 * See the License for the specific language governing permissions and
2285 * limitations under the License.
2286 */class Y_{constructor(e,t){this.mapKeyFn=e,this.equalsFn=t,this.inner={},this.innerSize=0}get(e){const t=this.mapKeyFn(e),n=this.inner[t];if(void 0!==n)for(const[a,i]of n)if(this.equalsFn(a,e))return i}has(e){return void 0!==this.get(e)}set(e,t){const n=this.mapKeyFn(e),a=this.inner[n];if(void 0===a)return this.inner[n]=[[e,t]],void this.innerSize++;for(let i=0;i<a.length;i++)if(this.equalsFn(a[i][0],e))return void(a[i]=[e,t]);a.push([e,t]),this.innerSize++}delete(e){const t=this.mapKeyFn(e),n=this.inner[t];if(void 0===n)return!1;for(let a=0;a<n.length;a++)if(this.equalsFn(n[a][0],e))return 1===n.length?delete this.inner[t]:n.splice(a,1),this.innerSize--,!0;return!1}forEach(e){bb(this.inner,(t,n)=>{for(const[a,i]of n)e(a,i)})}isEmpty(){return _b(this.inner)}size(){return this.innerSize}}
2287/**
2288 * @license
2289 * Copyright 2017 Google LLC
2290 *
2291 * Licensed under the Apache License, Version 2.0 (the "License");
2292 * you may not use this file except in compliance with the License.
2293 * You may obtain a copy of the License at
2294 *
2295 *   http://www.apache.org/licenses/LICENSE-2.0
2296 *
2297 * Unless required by applicable law or agreed to in writing, software
2298 * distributed under the License is distributed on an "AS IS" BASIS,
2299 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2300 * See the License for the specific language governing permissions and
2301 * limitations under the License.
2302 */const J_=new wb(Gy.comparator);function Q_(){return J_}const Z_=new wb(Gy.comparator);function ew(...e){let t=Z_;for(const n of e)t=t.insert(n.key,n);return t}function tw(e){let t=Z_;return e.forEach((e,n)=>t=t.insert(e,n.overlayedDocument)),t}function nw(){return iw()}function aw(){return iw()}function iw(){return new Y_(e=>e.toString(),(e,t)=>e.isEqual(t))}const rw=new wb(Gy.comparator),ow=new Sb(Gy.comparator);function sw(...e){let t=ow;for(const n of e)t=t.add(n);return t}const lw=new Sb(Ly);
2303/**
2304 * @license
2305 * Copyright 2020 Google LLC
2306 *
2307 * Licensed under the Apache License, Version 2.0 (the "License");
2308 * you may not use this file except in compliance with the License.
2309 * You may obtain a copy of the License at
2310 *
2311 *   http://www.apache.org/licenses/LICENSE-2.0
2312 *
2313 * Unless required by applicable law or agreed to in writing, software
2314 * distributed under the License is distributed on an "AS IS" BASIS,
2315 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2316 * See the License for the specific language governing permissions and
2317 * limitations under the License.
2318 */
2319function uw(e,t){if(e.useProto3Json){if(isNaN(t))return{doubleValue:"NaN"};if(t===1/0)return{doubleValue:"Infinity"};if(t===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:mb(t)?"-0":t}}function cw(e){return{integerValue:""+e}}function dw(e,t){return function(e){return"number"==typeof e&&Number.isInteger(e)&&!mb(e)&&e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER}
2320/**
2321 * @license
2322 * Copyright 2017 Google LLC
2323 *
2324 * Licensed under the Apache License, Version 2.0 (the "License");
2325 * you may not use this file except in compliance with the License.
2326 * You may obtain a copy of the License at
2327 *
2328 *   http://www.apache.org/licenses/LICENSE-2.0
2329 *
2330 * Unless required by applicable law or agreed to in writing, software
2331 * distributed under the License is distributed on an "AS IS" BASIS,
2332 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2333 * See the License for the specific language governing permissions and
2334 * limitations under the License.
2335 */(t)?cw(t):uw(e,t)}
2336/**
2337 * @license
2338 * Copyright 2018 Google LLC
2339 *
2340 * Licensed under the Apache License, Version 2.0 (the "License");
2341 * you may not use this file except in compliance with the License.
2342 * You may obtain a copy of the License at
2343 *
2344 *   http://www.apache.org/licenses/LICENSE-2.0
2345 *
2346 * Unless required by applicable law or agreed to in writing, software
2347 * distributed under the License is distributed on an "AS IS" BASIS,
2348 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2349 * See the License for the specific language governing permissions and
2350 * limitations under the License.
2351 */class hw{constructor(){this._=void 0}}function pw(e,t,n){return e instanceof vw?function(e,t){const n={fields:{[Rb]:{stringValue:Ob},[Lb]:{timestampValue:{seconds:e.seconds,nanos:e.nanoseconds}}}};return t&&Bb(t)&&(t=Fb(t)),t&&(n.fields[Db]=t),{mapValue:n}}(n,t):e instanceof gw?yw(e,t):e instanceof bw?_w(e,t):function(e,t){const n=mw(e,t),a=kw(n)+kw(e.Ae);return a_(n)&&a_(e.Ae)?cw(a):uw(e.serializer,a)}(e,t)}function fw(e,t,n){return e instanceof gw?yw(e,t):e instanceof bw?_w(e,t):n}function mw(e,t){return e instanceof ww?a_(n=t)||(a=n)&&"doubleValue"in a?t:{integerValue:0}:null;var n,a}class vw extends hw{}class gw extends hw{constructor(e){super(),this.elements=e}}function yw(e,t){const n=Cw(t);for(const a of e.elements)n.some(e=>$b(e,a))||n.push(a);return{arrayValue:{values:n}}}class bw extends hw{constructor(e){super(),this.elements=e}}function _w(e,t){let n=Cw(t);for(const a of e.elements)n=n.filter(e=>!$b(e,a));return{arrayValue:{values:n}}}class ww extends hw{constructor(e,t){super(),this.serializer=e,this.Ae=t}}function kw(e){return Pb(e.integerValue||e.doubleValue)}function Cw(e){return i_(e)&&e.arrayValue.values?e.arrayValue.values.slice():[]}class Sw{constructor(e,t){this.version=e,this.transformResults=t}}class Tw{constructor(e,t){this.updateTime=e,this.exists=t}static none(){return new Tw}static exists(e){return new Tw(void 0,e)}static updateTime(e){return new Tw(e)}get isNone(){return void 0===this.updateTime&&void 0===this.exists}isEqual(e){return this.exists===e.exists&&(this.updateTime?!!e.updateTime&&this.updateTime.isEqual(e.updateTime):!e.updateTime)}}function Aw(e,t){return void 0!==e.updateTime?t.isFoundDocument()&&t.version.isEqual(e.updateTime):void 0===e.exists||e.exists===t.isFoundDocument()}class Ew{}function Iw(e,t){if(!e.hasLocalMutations||t&&0===t.fields.length)return null;if(null===t)return e.isNoDocument()?new Fw(e.key,Tw.none()):new Ow(e.key,e.data,Tw.none());{const n=e.data,a=u_.empty();let i=new Sb(Wy.comparator);for(let e of t.fields)if(!i.has(e)){let t=n.field(e);null===t&&e.length>1&&(e=e.popLast(),t=n.field(e)),null===t?a.delete(e):a.set(e,t),i=i.add(e)}return new Rw(e.key,a,new Ab(i.toArray()),Tw.none())}}function xw(e,t,n){var a;e instanceof Ow?function(e,t,n){const a=e.value.clone(),i=Lw(e.fieldTransforms,t,n.transformResults);a.setAll(i),t.convertToFoundDocument(n.version,a).setHasCommittedMutations()}(e,t,n):e instanceof Rw?function(e,t,n){if(!Aw(e.precondition,t))return void t.convertToUnknownDocument(n.version);const a=Lw(e.fieldTransforms,t,n.transformResults),i=t.data;i.setAll(Dw(e)),i.setAll(a),t.convertToFoundDocument(n.version,i).setHasCommittedMutations()}(e,t,n):(a=n,t.convertToNoDocument(a.version).setHasCommittedMutations())}function Nw(e,t,n,a){return e instanceof Ow?function(e,t,n,a){if(!Aw(e.precondition,t))return n;const i=e.value.clone(),r=Bw(e.fieldTransforms,a,t);return i.setAll(r),t.convertToFoundDocument(t.version,i).setHasLocalMutations(),null}(e,t,n,a):e instanceof Rw?function(e,t,n,a){if(!Aw(e.precondition,t))return n;const i=Bw(e.fieldTransforms,a,t),r=t.data;return r.setAll(Dw(e)),r.setAll(i),t.convertToFoundDocument(t.version,r).setHasLocalMutations(),null===n?null:n.unionWith(e.fieldMask.fields).unionWith(e.fieldTransforms.map(e=>e.field))}(e,t,n,a):(i=t,r=n,Aw(e.precondition,i)?(i.convertToNoDocument(i.version).setHasLocalMutations(),null):r);var i,r}function Pw(e,t){let n=null;for(const a of e.fieldTransforms){const e=t.data.field(a.field),i=mw(a.transform,e||null);null!=i&&(null===n&&(n=u_.empty()),n.set(a.field,i))}return n||null}function Mw(e,t){return e.type===t.type&&!!e.key.isEqual(t.key)&&!!e.precondition.isEqual(t.precondition)&&(n=e.fieldTransforms,a=t.fieldTransforms,!!(void 0===n&&void 0===a||n&&a&&jy(n,a,(e,t)=>function(e,t){return e.field.isEqual(t.field)&&(n=e.transform,a=t.transform,n instanceof gw&&a instanceof gw||n instanceof bw&&a instanceof bw?jy(n.elements,a.elements,$b):n instanceof ww&&a instanceof ww?$b(n.Ae,a.Ae):n instanceof vw&&a instanceof vw);var n,a}(e,t)))&&(0===e.type?e.value.isEqual(t.value):1!==e.type||e.data.isEqual(t.data)&&e.fieldMask.isEqual(t.fieldMask)));var n,a}
2351class Ow extends Ew{constructor(e,t,n,a=[]){super(),this.key=e,this.value=t,this.precondition=n,this.fieldTransforms=a,this.type=0}getFieldMask(){return null}}class Rw extends Ew{constructor(e,t,n,a,i=[]){super(),this.key=e,this.data=t,this.fieldMask=n,this.precondition=a,this.fieldTransforms=i,this.type=1}getFieldMask(){return this.fieldMask}}function Dw(e){const t=new Map;return e.fieldMask.fields.forEach(n=>{if(!n.isEmpty()){const a=e.data.field(n);t.set(n,a)}}),t}function Lw(e,t,n){const a=new Map;wy(e.length===n.length,32656,{Re:n.length,Ve:e.length});for(let i=0;i<n.length;i++){const r=e[i],o=r.transform,s=t.data.field(r.field);a.set(r.field,fw(o,s,n[i]))}return a}function Bw(e,t,n){const a=new Map;for(const i of e){const e=i.transform,r=n.data.field(i.field);a.set(i.field,pw(e,r,t))}return a}class Fw extends Ew{constructor(e,t){super(),this.key=e,this.precondition=t,this.type=2,this.fieldTransforms=[]}getFieldMask(){return null}}class Vw extends Ew{constructor(e,t){super(),this.key=e,this.precondition=t,this.type=3,this.fieldTransforms=[]}getFieldMask(){return null}}
2352/**
2353 * @license
2354 * Copyright 2017 Google LLC
2355 *
2356 * Licensed under the Apache License, Version 2.0 (the "License");
2357 * you may not use this file except in compliance with the License.
2358 * You may obtain a copy of the License at
2359 *
2360 *   http://www.apache.org/licenses/LICENSE-2.0
2361 *
2362 * Unless required by applicable law or agreed to in writing, software
2363 * distributed under the License is distributed on an "AS IS" BASIS,
2364 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2365 * See the License for the specific language governing permissions and
2366 * limitations under the License.
2367 */class Xw{constructor(e,t,n,a){this.batchId=e,this.localWriteTime=t,this.baseMutations=n,this.mutations=a}applyToRemoteDocument(e,t){const n=t.mutationResults;for(let a=0;a<this.mutations.length;a++){const t=this.mutations[a];t.key.isEqual(e.key)&&xw(t,e,n[a])}}applyToLocalView(e,t){for(const n of this.baseMutations)n.key.isEqual(e.key)&&(t=Nw(n,e,t,this.localWriteTime));for(const n of this.mutations)n.key.isEqual(e.key)&&(t=Nw(n,e,t,this.localWriteTime));return t}applyToLocalDocumentSet(e,t){const n=aw();return this.mutations.forEach(a=>{const i=e.get(a.key),r=i.overlayedDocument;let o=this.applyToLocalView(r,i.mutatedFields);o=t.has(a.key)?null:o;const s=Iw(r,o);null!==s&&n.set(a.key,s),r.isValidDocument()||r.convertToNoDocument(rb.min())}),n}keys(){return this.mutations.reduce((e,t)=>e.add(t.key),sw())}isEqual(e){return this.batchId===e.batchId&&jy(this.mutations,e.mutations,(e,t)=>Mw(e,t))&&jy(this.baseMutations,e.baseMutations,(e,t)=>Mw(e,t))}}class jw{constructor(e,t,n,a){this.batch=e,this.commitVersion=t,this.mutationResults=n,this.docVersions=a}static from(e,t,n){wy(e.mutations.length===n.length,58842,{me:e.mutations.length,fe:n.length});let a=function(){return rw}();const i=e.mutations;for(let r=0;r<i.length;r++)a=a.insert(i[r].key,n[r].version);return new jw(e,t,n,a)}}
2368/**
2369 * @license
2370 * Copyright 2022 Google LLC
2371 *
2372 * Licensed under the Apache License, Version 2.0 (the "License");
2373 * you may not use this file except in compliance with the License.
2374 * You may obtain a copy of the License at
2375 *
2376 *   http://www.apache.org/licenses/LICENSE-2.0
2377 *
2378 * Unless required by applicable law or agreed to in writing, software
2379 * distributed under the License is distributed on an "AS IS" BASIS,
2380 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2381 * See the License for the specific language governing permissions and
2382 * limitations under the License.
2383 */class Uw{constructor(e,t){this.largestBatchId=e,this.mutation=t}getKey(){return this.mutation.key}isEqual(e){return null!==e&&this.mutation===e.mutation}toString(){return"Overlay{\n      largestBatchId: ".concat(this.largestBatchId,",\n      mutation: ").concat(this.mutation.toString(),"\n    }")}}
2384/**
2385 * @license
2386 * Copyright 2017 Google LLC
2387 *
2388 * Licensed under the Apache License, Version 2.0 (the "License");
2389 * you may not use this file except in compliance with the License.
2390 * You may obtain a copy of the License at
2391 *
2392 *   http://www.apache.org/licenses/LICENSE-2.0
2393 *
2394 * Unless required by applicable law or agreed to in writing, softw
2394are
2395 * distributed under the License is distributed on an "AS IS" BASIS,
2396 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2397 * See the License for the specific language governing permissions and
2398 * limitations under the License.
2399 */class Hw{constructor(e,t){this.count=e,this.unchangedNames=t}}
2400/**
2401 * @license
2402 * Copyright 2017 Google LLC
2403 *
2404 * Licensed under the Apache License, Version 2.0 (the "License");
2405 * you may not use this file except in compliance with the License.
2406 * You may obtain a copy of the License at
2407 *
2408 *   http://www.apache.org/licenses/LICENSE-2.0
2409 *
2410 * Unless required by applicable law or agreed to in writing, software
2411 * distributed under the License is distributed on an "AS IS" BASIS,
2412 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2413 * See the License for the specific language governing permissions and
2414 * limitations under the License.
2415 */var zw,Kw;function Ww(e){if(void 0===e)return vy("GRPC error has no .code"),Cy.UNKNOWN;switch(e){case zw.OK:return Cy.OK;case zw.CANCELLED:return Cy.CANCELLED;case zw.UNKNOWN:return Cy.UNKNOWN;case zw.DEADLINE_EXCEEDED:return Cy.DEADLINE_EXCEEDED;case zw.RESOURCE_EXHAUSTED:return Cy.RESOURCE_EXHAUSTED;case zw.INTERNAL:return Cy.INTERNAL;case zw.UNAVAILABLE:return Cy.UNAVAILABLE;case zw.UNAUTHENTICATED:return Cy.UNAUTHENTICATED;case zw.INVALID_ARGUMENT:return Cy.INVALID_ARGUMENT;case zw.NOT_FOUND:return Cy.NOT_FOUND;case zw.ALREADY_EXISTS:return Cy.ALREADY_EXISTS;case zw.PERMISSION_DENIED:return Cy.PERMISSION_DENIED;case zw.FAILED_PRECONDITION:return Cy.FAILED_PRECONDITION;case zw.ABORTED:return Cy.ABORTED;case zw.OUT_OF_RANGE:return Cy.OUT_OF_RANGE;case zw.UNIMPLEMENTED:return Cy.UNIMPLEMENTED;case zw.DATA_LOSS:return Cy.DATA_LOSS;default:return by(39323,{code:e})}}(Kw=zw||(zw={}))[Kw.OK=0]="OK",Kw[Kw.CANCELLED=1]="CANCELLED",Kw[Kw.UNKNOWN=2]="UNKNOWN",Kw[Kw.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",Kw[Kw.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",Kw[Kw.NOT_FOUND=5]="NOT_FOUND",Kw[Kw.ALREADY_EXISTS=6]="ALREADY_EXISTS",Kw[Kw.PERMISSION_DENIED=7]="PERMISSION_DENIED",Kw[Kw.UNAUTHENTICATED=16]="UNAUTHENTICATED",Kw[Kw.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",Kw[Kw.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",Kw[Kw.ABORTED=10]="ABORTED",Kw[Kw.OUT_OF_RANGE=11]="OUT_OF_RANGE",Kw[Kw.UNIMPLEMENTED=12]="UNIMPLEMENTED",Kw[Kw.INTERNAL=13]="INTERNAL",Kw[Kw.UNAVAILABLE=14]="UNAVAILABLE",Kw[Kw.DATA_LOSS=15]="DATA_LOSS";
2416/**
2417 * @license
2418 * Copyright 2022 Google LLC
2419 *
2420 * Licensed under the Apache License, Version 2.0 (the "License");
2421 * you may not use this file except in compliance with the License.
2422 * You may obtain a copy of the License at
2423 *
2424 *   http://www.apache.org/licenses/LICENSE-2.0
2425 *
2426 * Unless required by applicable law or agreed to in writing, software
2427 * distributed under the License is distributed on an "AS IS" BASIS,
2428 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2429 * See the License for the specific language governing permissions and
2430 * limitations under the License.
2431 */
2432const Gw=new Jg([4294967295,4294967295],0);function qw(e){const t=(new TextEncoder).encode(e),n=new Qg;return n.update(t),new Uint8Array(n.digest())}function $w(e){const t=new DataView(e.buffer),n=t.getUint32(0,!0),a=t.getUint32(4,!0),i=t.getUint32(8,!0),r=t.getUint32(12,!0);return[new Jg([n,a],0),new Jg([i,r],0)]}class Yw{constructor(e,t,n){if(this.bitmap=e,this.padding=t,this.hashCount=n,t<0||t>=8)throw new Jw("Invalid padding: ".concat(t));if(n<0)throw new Jw("Invalid hash count: ".concat(n));if(e.length>0&&0===this.hashCount)throw new Jw("Invalid hash count: ".concat(n));if(0===e.length&&0!==t)throw new Jw("Invalid padding when bitmap length is 0: ".concat(t));this.ge=8*e.length-t,this.pe=Jg.fromNumber(this.ge)}ye(e,t,n){let a=e.add(t.multiply(Jg.fromNumber(n)));return 1===a.compare(Gw)&&(a=new Jg([a.getBits(0),a.getBits(1)],0)),a.modulo(this.pe).toNumber()}we(e){return!!(this.bitmap[Math.floor(e/8)]&1<<e%8)}mightContain(e){if(0===this.ge)return!1;const t=qw(e),[n,a]=$w(t);for(let i=0;i<this.hashCount;i++){const e=this.ye(n,a,i);if(!this.we(e))return!1}return!0}static create(e,t,n){const a=e%8==0?0:8-e%8,i=new Uint8Array(Math.ceil(e/8)),r=new Yw(i,a,t);
2432return n.forEach(e=>r.insert(e)),r}insert(e){if(0===this.ge)return;const t=qw(e),[n,a]=$w(t);for(let i=0;i<this.hashCount;i++){const e=this.ye(n,a,i);this.Se(e)}}Se(e){const t=Math.floor(e/8),n=e%8;this.bitmap[t]|=1<<n}}class Jw extends Error{constructor(){super(...arguments),this.name="BloomFilterError"}}
2433/**
2434 * @license
2435 * Copyright 2017 Google LLC
2436 *
2437 * Licensed under the Apache License, Version 2.0 (the "License");
2438 * you may not use this file except in compliance with the License.
2439 * You may obtain a copy of the License at
2440 *
2441 *   http://www.apache.org/licenses/LICENSE-2.0
2442 *
2443 * Unless required by applicable law or agreed to in writing, software
2444 * distributed under the License is distributed on an "AS IS" BASIS,
2445 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2446 * See the License for the specific language governing permissions and
2447 * limitations under the License.
2448 */class Qw{constructor(e,t,n,a,i){this.snapshotVersion=e,this.targetChanges=t,this.targetMismatches=n,this.documentUpdates=a,this.resolvedLimboDocuments=i}static createSynthesizedRemoteEventForCurrentChange(e,t,n){const a=new Map;return a.set(e,Zw.createSynthesizedTargetChangeForCurrentChange(e,t,n)),new Qw(rb.min(),a,new wb(Ly),Q_(),sw())}}class Zw{constructor(e,t,n,a,i){this.resumeToken=e,this.current=t,this.addedDocuments=n,this.modifiedDocuments=a,this.removedDocuments=i}static createSynthesizedTargetChangeForCurrentChange(e,t,n){return new Zw(n,t,sw(),sw(),sw())}}
2449/**
2450 * @license
2451 * Copyright 2017 Google LLC
2452 *
2453 * Licensed under the Apache License, Version 2.0 (the "License");
2454 * you may not use this file except in compliance with the License.
2455 * You may obtain a copy of the License at
2456 *
2457 *   http://www.apache.org/licenses/LICENSE-2.0
2458 *
2459 * Unless required by applicable law or agreed to in writing, software
2460 * distributed under the License is distributed on an "AS IS" BASIS,
2461 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2462 * See the License for the specific language governing permissions and
2463 * limitations under the License.
2464 */class ek{constructor(e,t,n,a){this.be=e,this.removedTargetIds=t,this.key=n,this.De=a}}class tk{constructor(e,t){this.targetId=e,this.Ce=t}}class nk{constructor(e,t,n=Ib.EMPTY_BYTE_STRING,a=null){this.state=e,this.targetIds=t,this.resumeToken=n,this.cause=a}}class ak{constructor(){this.ve=0,this.Fe=ok(),this.Me=Ib.EMPTY_BYTE_STRING,this.xe=!1,this.Oe=!0}get current(){return this.xe}get resumeToken(){return this.Me}get Ne(){return 0!==this.ve}get Be(){return this.Oe}Le(e){e.approximateByteSize()>0&&(this.Oe=!0,this.Me=e)}ke(){let e=sw(),t=sw(),n=sw();return this.Fe.forEach((a,i)=>{switch(i){case 0:e=e.add(a);break;case 2:t=t.add(a);break;case 1:n=n.add(a);break;default:by(38017,{changeType:i})}}),new Zw(this.Me,this.xe,e,t,n)}qe(){this.Oe=!1,this.Fe=ok()}Qe(e,t){this.Oe=!0,this.Fe=this.Fe.insert(e,t)}$e(e){this.Oe=!0,this.Fe=this.Fe.remove(e)}Ue(){this.ve+=1}Ke(){this.ve-=1,wy(this.ve>=0,3241,{ve:this.ve})}We(){this.Oe=!0,this.xe=!0}}class ik{constructor(e){this.Ge=e,this.ze=new Map,this.je=Q_(),this.Je=rk(),this.He=rk(),this.Ye=new wb(Ly)}Ze(e){for(const t of e.be)e.De&&e.De.isFoundDocument()?this.Xe(t,e.De):this.et(t,e.key,e.De);for(const t of e.removedTargetIds)this.et(t,e.key,e.De)}tt(e){this.forEachTarget(e,t=>{const n=this.nt(t);switch(e.state){case 0:this.rt(t)&&n.Le(e.resumeToken);break;case 1:n.Ke(),n.Ne||n.qe(),n.Le(e.resumeToken);break;case 2:n.Ke(),n.Ne||this.removeTarget(t);break;case 3:this.rt(t)&&(n.We(),n.Le(e.resumeToken));break;case 4:this.rt(t)&&(this.it(t),n.Le(e.resumeToken));break;default:by(56790,{state:e.state})}})}forEachTarget(e,t){e.targetIds.length>0?e.targetIds.forEach(t):this.ze.forEach((e,n)=>{this.rt(n)&&t(n)})}st(e){const t=e.targetId,n=e.Ce.count,a=this.ot(t);if(a){const i=a.target;if(B_(i))if(0===n){const e=new Gy(i.path);this.et(t,e,d_.newNoDocument(e,rb.min()))}else wy(1===n,20013,{expectedCount:n});else{const a=this._t(t);if(a!==n){const n=this.ut(e),i=n?this.ct(n,e,a):1;if(0!==i){this.it(t);const e=2===i?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch";this.Ye=this.Ye.insert(t,e)}}}}}ut(e){const t=e.Ce.unchangedNames;if(!t||!t.bits)return null;const{bits:{bitmap:n="",padding:a=0},hashCount:i=0}=t;let r,o;try{r=Mb(n).toUint8Array()}catch(s){if(s instanceof Eb)return gy("Decoding the base64 bloom filter in existence filter failed ("+s.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw s}try{o=new Yw(r,a,i)}catch(s){return gy(s instanceof Jw?"BloomFilter error: ":"Applying bloom filter failed: ",s),null}return 0===o.ge?null:o}ct(e,t,n){return t.Ce.count===n-this.Pt(e,t.targetId)?0:2}Pt(e,t){const n=this.Ge.getRemoteKeysForTarget(t);let a=0;
2464return n.forEach(n=>{const i=this.Ge.ht(),r="projects/".concat(i.projectId,"/databases/").concat(i.database,"/documents/").concat(n.path.canonicalString());e.mightContain(r)||(this.et(t,n,null),a++)}),a}Tt(e){const t=new Map;this.ze.forEach((n,a)=>{const i=this.ot(a);if(i){if(n.current&&B_(i.target)){const t=new Gy(i.target.path);this.It(t).has(a)||this.Et(a,t)||this.et(a,t,d_.newNoDocument(t,e))}n.Be&&(t.set(a,n.ke()),n.qe())}});let n=sw();this.He.forEach((e,t)=>{let a=!0;t.forEachWhile(e=>{const t=this.ot(e);return!t||"TargetPurposeLimboResolution"===t.purpose||(a=!1,!1)}),a&&(n=n.add(e))}),this.je.forEach((t,n)=>n.setReadTime(e));const a=new Qw(e,t,this.Ye,this.je,n);return this.je=Q_(),this.Je=rk(),this.He=rk(),this.Ye=new wb(Ly),a}Xe(e,t){if(!this.rt(e))return;const n=this.Et(e,t.key)?2:0;this.nt(e).Qe(t.key,n),this.je=this.je.insert(t.key,t),this.Je=this.Je.insert(t.key,this.It(t.key).add(e)),this.He=this.He.insert(t.key,this.dt(t.key).add(e))}et(e,t,n){if(!this.rt(e))return;const a=this.nt(e);this.Et(e,t)?a.Qe(t,1):a.$e(t),this.He=this.He.insert(t,this.dt(t).delete(e)),this.He=this.He.insert(t,this.dt(t).add(e)),n&&(this.je=this.je.insert(t,n))}removeTarget(e){this.ze.delete(e)}_t(e){const t=this.nt(e).ke();return this.Ge.getRemoteKeysForTarget(e).size+t.addedDocuments.size-t.removedDocuments.size}Ue(e){this.nt(e).Ue()}nt(e){let t=this.ze.get(e);return t||(t=new ak,this.ze.set(e,t)),t}dt(e){let t=this.He.get(e);return t||(t=new Sb(Ly),this.He=this.He.insert(e,t)),t}It(e){let t=this.Je.get(e);return t||(t=new Sb(Ly),this.Je=this.Je.insert(e,t)),t}rt(e){const t=null!==this.ot(e);return t||my("WatchChangeAggregator","Detected inactive target",e),t}ot(e){const t=this.ze.get(e);return t&&t.Ne?null:this.Ge.At(e)}it(e){this.ze.set(e,new ak),this.Ge.getRemoteKeysForTarget(e).forEach(t=>{this.et(e,t,null)})}Et(e,t){return this.Ge.getRemoteKeysForTarget(e).has(t)}}function rk(){return new wb(Gy.comparator)}function ok(){return new wb(Gy.comparator)}const sk=(()=>({asc:"ASCENDING",desc:"DESCENDING"}))(),lk=(()=>({"<":"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"}))(),uk=(()=>({and:"AND",or:"OR"}))();class ck{constructor(e,t){this.databaseId=e,this.useProto3Json=t}}function dk(e,t){return e.useProto3Json||fb(t)?t:{value:t}}function hk(e,t){return e.useProto3Json?"".concat(new Date(1e3*t.seconds).toISOString().replace(/\.\d*/,"").replace("Z",""),".").concat(("000000000"+t.nanoseconds).slice(-9),"Z"):{seconds:""+t.seconds,nanos:t.nanoseconds}}function pk(e,t){return e.useProto3Json?t.toBase64():t.toUint8Array()}function fk(e,t){return hk(e,t.toTimestamp())}function mk(e){return wy(!!e,49232),rb.fromTimestamp(function(e){const t=Nb(e);return new ib(t.seconds,t.nanos)}(e))}function vk(e,t){return gk(e,t).canonicalString()}function gk(e,t){const n=(a=e,new zy(["projects",a.projectId,"databases",a.database])).child("documents");var a;return void 0===t?n:n.child(t)}function yk(e){const t=zy.fromString(e);return wy(Lk(t),10190,{key:t.toString()}),t}function bk(e,t){return vk(e.databaseId,t.path)}function _k(e,t){const n=yk(t);if(n.get(1)!==e.databaseId.projectId)throw new Sy(Cy.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+n.get(1)+" vs "+e.databaseId.projectId);if(n.get(3)!==e.databaseId.database)throw new Sy(Cy.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+e.databaseId.database);return new Gy(Ck(n))}function wk(e,t){return vk(e.databaseId,t)}function kk(e){return new zy(["projects",e.databaseId.projectId,"databases",e.databaseId.database]).canonicalString()}function Ck(e){return wy(e.length>4&&"documents"===e.get(4),29091,{key:e.toString()}),e.popFirst(5)}function Sk(e,t,n){return{name:bk(e,t),fields:n.value.mapValue.fields}}function Tk(e,t){return{documents:[wk(e,t.path)]}}function Ak(e,t){const n={structuredQuery:{}},a=t.path;let i;null!==t.collectionGroup?(i=a,n.structuredQuery.from=[{collectionId:t.collectionGroup,allDescendants:!0}]):(i=a.popLast(),n.structuredQuery.from=[{collectionId:a.lastSegment()}]),n.parent=wk(e,i);const r=function(e){if(0!==e.length)return Rk(b_.create(e,"and"))}(t.filters);r&&(n.structuredQuery.where=r);const o=function(e){if(0!==e.length)return e.map(e=>{return{field:Mk((t=e).field),direction:xk(t.dir)};var t})}(t.orderBy);o&&(n.structuredQuery.orderBy=o);const s=dk(e,t.limit);return null!==s&&(n.structuredQuery.limit=s),t.startAt&&(n.structuredQuery.startAt={before:(l=t.startAt).inclusive,values:l.position}),t.endAt&&(n.structuredQuery.endAt=function(e){return{before:!e.inclusive,values:e.position}}(t.endAt)),{ft:n,parent:i};var l}function Ek(e){let t=function(e){const t=yk(e);return 4===t.length?zy.emptyPath():Ck(t)}(e.parent);const n=e.structuredQuery,a=n.from?n.from.length:0;let i=null;if(a>
24640){wy(1===a,65062);const e=n.from[0];e.allDescendants?i=e.collectionId:t=t.child(e.collectionId)}let r=[];n.where&&(r=function(e){const t=Ik(e);return t instanceof b_&&w_(t)?t.getFilters():[t]}(n.where));let o=[];n.orderBy&&(o=n.orderBy.map(e=>{return new m_(Ok((t=e).field),function(e){switch(e){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(t.direction));var t}));let s=null;n.limit&&(s=function(e){let t;return t="object"==typeof e?e.value:e,fb(t)?null:t}(n.limit));let l=null;n.startAt&&(l=function(e){const t=!!e.before,n=e.values||[];return new h_(n,t)}(n.startAt));let u=null;return n.endAt&&(u=function(e){const t=!e.before,n=e.values||[];return new h_(n,t)}(n.endAt)),function(e,t,n,a,i,r,o,s){return new F_(e,t,n,a,i,r,o,s)}(t,i,o,r,s,"F",l,u)}function Ik(e){return void 0!==e.unaryFilter?function(e){switch(e.unaryFilter.op){case"IS_NAN":const t=Ok(e.unaryFilter.field);return y_.create(t,"==",{doubleValue:NaN});case"IS_NULL":const n=Ok(e.unaryFilter.field);return y_.create(n,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const a=Ok(e.unaryFilter.field);return y_.create(a,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const i=Ok(e.unaryFilter.field);return y_.create(i,"!=",{nullValue:"NULL_VALUE"});case"OPERATOR_UNSPECIFIED":return by(61313);default:return by(60726)}}(e):void 0!==e.fieldFilter?(t=e,y_.create(Ok(t.fieldFilter.field),function(e){switch(e){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 by(58110);default:return by(50506)}}(t.fieldFilter.op),t.fieldFilter.value)):void 0!==e.compositeFilter?function(e){return b_.create(e.compositeFilter.filters.map(e=>Ik(e)),function(e){switch(e){case"AND":return"and";case"OR":return"or";default:return by(1026)}}(e.compositeFilter.op))}(e):by(30097,{filter:e});var t}function xk(e){return sk[e]}function Nk(e){return lk[e]}function Pk(e){return uk[e]}function Mk(e){return{fieldPath:e.canonicalString()}}function Ok(e){return Wy.fromServerFormat(e.fieldPath)}function Rk(e){return e instanceof y_?function(e){if("=="===e.op){if(o_(e.value))return{unaryFilter:{field:Mk(e.field),op:"IS_NAN"}};if(r_(e.value))return{unaryFilter:{field:Mk(e.field),op:"IS_NULL"}}}else if("!="===e.op){if(o_(e.value))return{unaryFilter:{field:Mk(e.field),op:"IS_NOT_NAN"}};if(r_(e.value))return{unaryFilter:{field:Mk(e.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Mk(e.field),op:Nk(e.op),value:e.value}}}(e):e instanceof b_?function(e){const t=e.getFilters().map(e=>Rk(e));return 1===t.length?t[0]:{compositeFilter:{op:Pk(e.op),filters:t}}}(e):by(54877,{filter:e})}function Dk(e){const t=[];return e.fields.forEach(e=>t.push(e.canonicalString())),{fieldPaths:t}}function Lk(e){return e.length>=4&&"projects"===e.get(0)&&"databases"===e.get(2)}
2465/**
2466 * @license
2467 * Copyright 2017 Google LLC
2468 *
2469 * Licensed under the Apache License, Version 2.0 (the "License");
2470 * you may not use this file except in compliance with the License.
2471 * You may obtain a copy of the License at
2472 *
2473 *   http://www.apache.org/licenses/LICENSE-2.0
2474 *
2475 * Unless required by applicable law or agreed to in writing, software
2476 * distributed under the License is distributed on an "AS IS" BASIS,
2477 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2478 * See the License for the specific language governing permissions and
2479 * limitations under the License.
2480 */class Bk{constructor(e,t,n,a,i=rb.min(),r=rb.min(),o=Ib.EMPTY_BYTE_STRING,s=null){this.target=e,this.targetId=t,this.purpose=n,this.sequenceNumber=a,this.snapshotVersion=i,this.lastLimboFreeSnapshotVersion=r,this.resumeToken=o,this.expectedCount=s}withSequenceNumber(e){return new Bk(this.target,this.targetId,this.purpose,e,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(e,t){return new Bk(this.target,this.targetId,this.purpose,this.sequenceNumber,t,this.lastLimboFreeSnapshotVersion,e,null)}withExpectedCount(e){return new Bk(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,e)}withLastLimboFreeSnapshotVersion(e){return new Bk(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,e,this.resumeToken,this.expectedCount)}}
2481/**
2482 * @license
2483 * Copyright 2017 Google LLC
2484 *
2485 * Licensed under the Apache License, Version 2.0 (the "License");
2486 * you may not use this file except in compliance with the License.
2487 * You may obtain a copy of the License at
2488 *
2489 *   http://www.apache.org/licenses/LICENSE-2.0
2490 *
2491 * Unless required by applicable law or agreed to in writing, software
2492 * distributed under the License is distributed on an "AS IS" BASIS,
2493 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2494 * See the License for the specific language governing permissions and
2495 * limitations under the License.
2496 */class Fk{constructor(e){this.yt=e}}function Vk(e){const t=Ek({parent:e.parent,structuredQuery:e.structuredQuery});return"LAST"===e.limitType?H_(t,t.limit,"L"):t}
2497/**
2498 * @license
2499 * Copyright 2019 Google LLC
2500 *
2501 * Licensed under the Apache License, Version 2.0 (the "License");
2502 * you may not use this file except in compliance with the License.
2503 * You may obtain a copy of the License at
2504 *
2505 *   http://www.apache.org/licenses/LICENSE-2.0
2506 *
2507 * Unless required by applicable law or agreed to in writing, software
2508 * distributed under the License is distributed on an "AS IS" BASIS,
2509 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2510 * See the License for the specific language governing permissions and
2511 * limitations under the License.
2512 */class Xk{constructor(){this.Cn=new jk}addToCollectionParentIndex(e,t){return this.Cn.add(t),db.resolve()}getCollectionParents(e,t){return db.resolve(this.Cn.getEntries(t))}addFieldIndex(e,t){return db.resolve()}deleteFieldIndex(e,t){return db.resolve()}deleteAllFieldIndexes(e){return db.resolve()}createTargetIndexes(e,t){return db.resolve()}getDocumentsMatchingTarget(e,t){return db.resolve(null)}getIndexType(e,t){return db.resolve(0)}getFieldIndexes(e,t){return db.resolve([])}getNextCollectionGroupToUpdate(e){return db.resolve(null)}getMinOffset(e,t){return db.resolve(sb.min())}getMinOffsetFromCollectionGroup(e,t){return db.resolve(sb.min())}updateCollectionGroup(e,t,n){return db.resolve()}updateIndexEntries(e,t){return db.resolve()}}class jk{constructor(){this.index={}}add(e){const t=e.lastSegment(),n=e.popLast(),a=this.index[t]||new Sb(zy.comparator),i=!a.has(n);return this.index[t]=a.add(n),i}has(e){const t=e.lastSegment(),n=e.popLast(),a=this.index[t];return a&&a.has(n)}getEntries(e){return(this.index[e]||new Sb(zy.comparator)).toArray()}}
2513/**
2514 * @license
2515 * Copyright 2018 Google LLC
2516 *
2517 * Licensed under the Apache License, Version 2.0 (the "License");
2518 * you may not use this file except in compliance with the License.
2519 * You may obtain a copy of the License at
2520 *
2521 *   http://www.apache.org/licenses/LICENSE-2.0
2522 *
2523 * Unless required by applicable law or agreed to in writing, software
2524 * distributed under the License is distributed on an "AS IS" BASIS,
2525 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2526 * See the License for the specific language governing permissions and
2527 * limitations under the License.
2528 */const Uk={didRun:!1,sequenceNumbersCollected:0,targetsRemoved:0,documentsRemoved:0},Hk=41943040;class zk{static withCacheSize(e){return new zk(e,zk.DEFAULT_COLLECTION_PERCENTILE,zk.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}constructor(e,t,n){this.cacheSizeCollectionThreshold=e,this.percentileToCollect=t,this.maximumSequenceNumbersToCollect=n}}
2529/**
2530 * @license
2531 * Copyright 2017 Google LLC
2532 *
2533 * Licensed under the Apache License, Version 2.0 (the "License");
2534 * you may not use this file except in compliance with the License.
2535 * You may obtain a copy of the License at
2536 *
2537 *   http://www.apache.org/licenses/LICENSE-2.0
2538 *
2539 * Unless required by applicable law or agreed to in writing, software
2540 * distributed under the License is distributed on an "AS IS" BASIS,
2541 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2542 * See the License for the specific language governing permissions and
2543 * limitations under the License.
2544 */zk.DEFAULT_COLLECTION_PERCENTILE=10,zk.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,zk.DEFAULT=new zk(Hk,zk.DEFAULT_COLLECTION_PERCENTILE,zk.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),zk.DISABLED=new zk(-1,0,0);
2545/**
2546 * @license
2547 * Copyright 2017 Google LLC
2548 *
2549 * Licensed under the Apache License, Version 2.0 (the "License");
2550 * you may not use this file except in compliance with the License.
2551 * You may obtain a copy of the License at
2552 *
2553 *   http://www.apache.org/licenses/LICENSE-2.0
2554 *
2555 * Unless required by applicable law or agreed to in writing, software
2556 * distributed under the License is distributed on an "AS IS" BASIS,
2557 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2558 * See the License for the specific language governing permissions and
2559 * limitations under the License.
2560 */
2561class Kk{constructor(e){this.ar=e}next(){return this.ar+=2,this.ar}static ur(){return new Kk(0)}static cr(){return new Kk(-1)}}
2562/**
2563 * @license
2564 * Copyright 2020 Google LLC
2565 *
2566 * Licensed under the Apache License, Version 2.0 (the "License");
2567 * you may not use this file except in compliance with the License.
2568 * You may obtain a copy of the License at
2569 *
2570 *   http://www.apache.org/licenses/LICENSE-2.0
2571 *
2572 * Unless required by applicable law or agreed to in writing, software
2573 * distributed under the License is distributed on an "AS IS" BASIS,
2574 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2575 * See the License for the specific language governing permissions and
2576 * limitations under the License.
2577 */const Wk="LruGarbageCollector";function Gk([e,t],[n,a]){const i=Ly(e,n);return 0===i?Ly(t,a):i}class qk{constructor(e){this.Ir=e,this.buffer=new Sb(Gk),this.Er=0}dr(){return++this.Er}Ar(e){const t=[e,this.dr()];if(this.buffer.size<this.Ir)this.buffer=this.buffer.add(t);else{const e=this.buffer.last();Gk(t,e)<0&&(this.buffer=this.buffer.delete(e).add(t))}}get maxValue(){return this.buffer.last()[0]}}class $k{constructor(e,t,n){this.garbageCollector=e,this.asyncQueue=t,this.localStore=n,this.Rr=null}start(){-1!==this.garbageCollector.params.cacheSizeCollectionThreshold&&this.Vr(6e4)}stop(){this.Rr&&(this.Rr.cancel(),this.Rr=null)}get started(){return null!==this.Rr}Vr(e){my(Wk,"Garbage collection scheduled in ".concat(e,"ms")),this.Rr=this.asyncQueue.enqueueAfterDelay("lru_garbage_collection",e,async()=>{this.Rr=null;try{await this.localStore.collectGarbage(this.garbageCollector)}catch(e){hb(e)?my(Wk,"Ignoring IndexedDB error during garbage collection: ",e):await cb(e)}await this.Vr(3e5)})}}class Yk{constructor(e,t){this.mr=e,this.params=t}calculateTargetCount(e,t){return this.mr.gr(e).next(e=>Math.floor(t/100*e))}nthSequenceNumber(e,t){if(0===t)return db.resolve(pb.ce);const n=new qk(t);return this.mr.forEachTarget(e,e=>n.Ar(e.sequenceNumber)).next(()=>this.mr.pr(e,e=>n.Ar(e))).next(()=>n.maxValue)}removeTargets(e,t,n){return this.mr.removeTargets(e,t,n)}removeOrphanedDocuments(e,t){return this.mr.removeOrphanedDocuments(e,t)}collect(e,t){return-1===this.params.cacheSizeCollectionThreshold?(my("LruGarbageCollector","Garbage collection skipped; disabled"),db.resolve(Uk)):this.getCacheSize(e).next(n=>n<this.params.cacheSizeCollectionThreshold?(my("LruGarbageCollector","Garbage collection skipped; Cache size ".concat(n," is lower than threshold ").concat(this.params.cacheSizeCollectionThreshold)),Uk):this.yr(e,t))}getCacheSize(e){return this.mr.getCacheSize(e)}yr(e,t){let n,a,i,r,o,s,l;const u=Date.now();return this.calculateTargetCount(e,this.params.percentileToCollect).next(t=>(t>this.params.maximumSequenceNumbersToCollect?(my("LruGarbageCollector","Capping sequence numbers to collect down to the maximum of ".concat(this.params.maximumSequenceNumbersToCollect," from ").concat(t)),a=this.params.maximumSequenceNumbersToCollect):a=t,r=Date.now(),this.nthSequenceNumber(e,a))).next(a=>(n=a,o=Date.now(),this.removeTargets(e,n,t))).next(t=>(i=t,s=Date.now(),this.removeOrphanedDocuments(e,n))).next(e=>(l=Date.now(),fy()<=Sc.DEBUG&&my("LruGarbageCollector","LRU Garbage Collection\n\tCounted targets in ".concat(r-u,"ms\n\tDetermined least recently used ").concat(a," in ")+(o-r)+"ms\n"+"\tRemoved ".concat(i," targets in ")+(s-o)+"ms\n"+"\tRemoved ".concat(e," documents in ")+(l-s)+"ms\n"+"Total Duration: ".concat(l-u,"ms")),db.resolve({didRun:!0,sequenceNumbersCollected:a,targetsRemoved:i,documentsRemoved:e})))}}
2578/**
2579 * @license
2580 * Copyright 2017 Google LLC
2581 *
2582 * Licensed under the Apache License, Version 2.0 (the "License");
2583 * you may not use this file except in compliance with the License.
2584 * You may obtain a copy of the License at
2585 *
2586 *   http://www.apache.org/licenses/LICENSE-2.0
2587 *
2588 * Unless required by applicable law or agreed to in writing, software
2589 * distributed under the License is distributed on an "AS IS" BASIS,
2590 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2591 * See the License for the specific language governing permissions and
2592 * limitations under the License.
2593 */
2594class Jk{constructor(){this.changes=new Y_(e=>e.toString(),(e,t)=>e.isEqual(t)),this.changesApplied=!1}addEntry(e){this.assertNotApplied(),this.changes.set(e.key,e)}removeEntry(e,t){this.assertNotApplied(),this.changes.set(e,d_.newInvalidDocument(e).setReadTime(t))}getEntry(e,t){this.assertNotApplied();const n=this.changes.get(t);return void 0!==n?db.resolve(n):this.getFromCache(e,t)}getEntries(e,t){return this.getAllFromCache(e,t)}apply(e){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(e)}assertNotApplied(){}}
2595/**
2596 * @license
2597 * Copyright 2017 Google LLC
2598 *
2599 * Licensed under the Apache License, Version 2.0 (the "License");
2600 * you may not use this file except in compliance with the License.
2601 * You may obtain a copy of the License at
2602 *
2603 *   http://www.apache.org/licenses/LICENSE-2.0
2604 *
2605 * Unless required by applicable law or agreed to in writing, software
2606 * distributed under the License is distributed on an "AS IS" BASIS,
2607 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2608 * See the License for the specific language governing permissions and
2609 * limitations under the License.
2610 */
2611/**
2612 * @license
2613 * Copyright 2022 Google LLC
2614 *
2615 * Licensed under the Apache License, Version 2.0 (the "License");
2616 * you may not use this file except in compliance with the License.
2617 * You may obtain a copy of the License at
2618 *
2619 *   http://www.apache.org/licenses/LICENSE-2.0
2620 *
2621 * Unless required by applicable law or agreed to in writing, software
2622 * distributed under the License is distributed on an "AS IS" BASIS,
2623 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2624 * See the License for the specific language governing permissions and
2625 * limitations under the License.
2626 */class Qk{constructor(e,t){this.overlayedDocument=e,this.mutatedFields=t}}
2627/**
2628 * @license
2629 * Copyright 2017 Google LLC
2630 *
2631 * Licensed under the Apache License, Version 2.0 (the "License");
2632 * you may not use this file except in compliance with the License.
2633 * You may obtain a copy of the License at
2634 *
2635 *   http://www.apache.org/licenses/LICENSE-2.0
2636 *
2637 * Unless required by applicable law or agreed to in writing, software
2638 * distributed under the License is distributed on an "AS IS" BASIS,
2639 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2640 * See the License for the specific language governing permissions and
2641 * limitations under the License.
2642 */class Zk{constructor(e,t,n,a){this.remoteDocumentCache=e,this.mutationQueue=t,this.documentOverlayCache=n,this.indexManager=a}getDocument(e,t){let n=null;return this.documentOverlayCache.getOverlay(e,t).next(a=>(n=a,this.remoteDocumentCache.getEntry(e,t))).next(e=>(null!==n&&Nw(n.mutation,e,Ab.empty(),ib.now()),e))}getDocuments(e,t){return this.remoteDocumentCache.getEntries(e,t).next(t=>this.getLocalViewOfDocuments(e,t,sw()).next(()=>t))}getLocalViewOfDocuments(e,t,n=sw()){const a=nw();return this.populateOverlays(e,a,t).next(()=>this.computeViews(e,t,a,n).next(e=>{let t=ew();return e.forEach((e,n)=>{t=t.insert(e,n.overlayedDocument)}),t}))}getOverlayedDocuments(e,t){const n=nw();return this.populateOverlays(e,n,t).next(()=>this.computeViews(e,t,n,sw()))}populateOverlays(e,t,n){const a=[];return n.forEach(e=>{t.has(e)||a.push(e)}),this.documentOverlayCache.getOverlays(e,a).next(e=>{e.forEach((e,n)=>{t.set(e,n)})})}computeViews(e,t,n,a){let i=Q_();const r=iw(),o=iw();return t.forEach((e,t)=>{const o=n.get(t.key);a.has(t.key)&&(void 0===o||o.mutation instanceof Rw)?i=i.insert(t.key,t):void 0!==o?(r.set(t.key,o.mutation.getFieldMask()),Nw(o.mutation,t,o.mutation.getFieldMask(),ib.now())):r.set(t.key,Ab.empty())}),this.recalculateAndSaveOverlays(e,i).next(e=>(e.forEach((e,t)=>r.set(e,t)),t.forEach((e,t)=>{var n;return o.set(e,new Qk(t,null!=(n=r.get(e))?n:null))}),o))}recalculateAndSaveOverlays(e,t){const n=iw();let a=new wb((e,t)=>e-t),i=sw();
2642return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(e,t).next(e=>{for(const i of e)i.keys().forEach(e=>{const r=t.get(e);if(null===r)return;let o=n.get(e)||Ab.empty();o=i.applyToLocalView(r,o),n.set(e,o);const s=(a.get(i.batchId)||sw()).add(e);a=a.insert(i.batchId,s)})}).next(()=>{const r=[],o=a.getReverseIterator();for(;o.hasNext();){const a=o.getNext(),s=a.key,l=a.value,u=aw();l.forEach(e=>{if(!i.has(e)){const a=Iw(t.get(e),n.get(e));null!==a&&u.set(e,a),i=i.add(e)}}),r.push(this.documentOverlayCache.saveOverlays(e,s,u))}return db.waitFor(r)}).next(()=>n)}recalculateAndSaveOverlaysForDocumentKeys(e,t){return this.remoteDocumentCache.getEntries(e,t).next(t=>this.recalculateAndSaveOverlays(e,t))}getDocumentsMatchingQuery(e,t,n,a){return i=t,Gy.isDocumentKey(i.path)&&null===i.collectionGroup&&0===i.filters.length?this.getDocumentsMatchingDocumentQuery(e,t.path):function(e){return null!==e.collectionGroup}(t)?this.getDocumentsMatchingCollectionGroupQuery(e,t,n,a):this.getDocumentsMatchingCollectionQuery(e,t,n,a);var i}getNextDocuments(e,t,n,a){return this.remoteDocumentCache.getAllFromCollectionGroup(e,t,n,a).next(i=>{const r=a-i.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(e,t,n.largestBatchId,a-i.size):db.resolve(nw());let o=-1,s=i;return r.next(t=>db.forEach(t,(t,n)=>(o<n.largestBatchId&&(o=n.largestBatchId),i.get(t)?db.resolve():this.remoteDocumentCache.getEntry(e,t).next(e=>{s=s.insert(t,e)}))).next(()=>this.populateOverlays(e,t,i)).next(()=>this.computeViews(e,s,t,sw())).next(e=>({batchId:o,changes:tw(e)})))})}getDocumentsMatchingDocumentQuery(e,t){return this.getDocument(e,new Gy(t)).next(e=>{let t=ew();return e.isFoundDocument()&&(t=t.insert(e.key,e)),t})}getDocumentsMatchingCollectionGroupQuery(e,t,n,a){const i=t.collectionGroup;let r=ew();return this.indexManager.getCollectionParents(e,i).next(o=>db.forEach(o,o=>{const s=(l=t,u=o.child(i),new F_(u,null,l.explicitOrderBy.slice(),l.filters.slice(),l.limit,l.limitType,l.startAt,l.endAt));var l,u;return this.getDocumentsMatchingCollectionQuery(e,s,n,a).next(e=>{e.forEach((e,t)=>{r=r.insert(e,t)})})}).next(()=>r))}getDocumentsMatchingCollectionQuery(e,t,n,a){let i;return this.documentOverlayCache.getOverlaysForCollection(e,t.path,n.largestBatchId).next(r=>(i=r,this.remoteDocumentCache.getDocumentsMatchingQuery(e,t,n,i,a))).next(e=>{i.forEach((t,n)=>{const a=n.getKey();null===e.get(a)&&(e=e.insert(a,d_.newInvalidDocument(a)))});let n=ew();return e.forEach((e,a)=>{const r=i.get(e);void 0!==r&&Nw(r.mutation,a,Ab.empty(),ib.now()),G_(t,a)&&(n=n.insert(e,a))}),n})}}
2643/**
2644 * @license
2645 * Copyright 2020 Google LLC
2646 *
2647 * Licensed under the Apache License, Version 2.0 (the "License");
2648 * you may not use this file except in compliance with the License.
2649 * You may obtain a copy of the License at
2650 *
2651 *   http://www.apache.org/licenses/LICENSE-2.0
2652 *
2653 * Unless required by applicable law or agreed to in writing, software
2654 * distributed under the License is distributed on an "AS IS" BASIS,
2655 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2656 * See the License for the specific language governing permissions and
2657 * limitations under the License.
2658 */class eC{constructor(e){this.serializer=e,this.Lr=new Map,this.kr=new Map}getBundleMetadata(e,t){return db.resolve(this.Lr.get(t))}saveBundleMetadata(e,t){return this.Lr.set(t.id,{id:(n=t).id,version:n.version,createTime:mk(n.createTime)}),db.resolve();var n}getNamedQuery(e,t){return db.resolve(this.kr.get(t))}saveNamedQuery(e,t){return this.kr.set(t.name,{name:(n=t).name,query:Vk(n.bundledQuery),readTime:mk(n.readTime)}),db.resolve();var n}}
2659/**
2660 * @license
2661 * Copyright 2022 Google LLC
2662 *
2663 * Licensed under the Apache License, Version 2.0 (the "License");
2664 * you may not use this file except in compliance with the License.
2665 * You may obtain a copy of the License at
2666 *
2667 *   http://www.apache.org/licenses/LICENSE-2.0
2668 *
2669 * Unless required by applicable law or agreed to in writing, software
2670 * distributed under the License is distributed on an "AS IS" BASIS,
2671 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2672 * See the License for the specific language governing permissions and
2673 * limitations under the License.
2674 */class tC{constructor(){this.overlays=new wb(Gy.comparator),this.qr=new Map}getOverlay(e,t){return db.resolve(this.overlays.get(t))}getOverlays(e,t){const n=nw();return db.forEach(t,t=>this.getOverlay(e,t).next(e=>{null!==e&&n.set(t,e)})).next(()=>n)}
2674saveOverlays(e,t,n){return n.forEach((n,a)=>{this.St(e,t,a)}),db.resolve()}removeOverlaysForBatchId(e,t,n){const a=this.qr.get(n);return void 0!==a&&(a.forEach(e=>this.overlays=this.overlays.remove(e)),this.qr.delete(n)),db.resolve()}getOverlaysForCollection(e,t,n){const a=nw(),i=t.length+1,r=new Gy(t.child("")),o=this.overlays.getIteratorFrom(r);for(;o.hasNext();){const e=o.getNext().value,r=e.getKey();if(!t.isPrefixOf(r.path))break;r.path.length===i&&e.largestBatchId>n&&a.set(e.getKey(),e)}return db.resolve(a)}getOverlaysForCollectionGroup(e,t,n,a){let i=new wb((e,t)=>e-t);const r=this.overlays.getIterator();for(;r.hasNext();){const e=r.getNext().value;if(e.getKey().getCollectionGroup()===t&&e.largestBatchId>n){let t=i.get(e.largestBatchId);null===t&&(t=nw(),i=i.insert(e.largestBatchId,t)),t.set(e.getKey(),e)}}const o=nw(),s=i.getIterator();for(;s.hasNext()&&(s.getNext().value.forEach((e,t)=>o.set(e,t)),!(o.size()>=a)););return db.resolve(o)}St(e,t,n){const a=this.overlays.get(n.key);if(null!==a){const e=this.qr.get(a.largestBatchId).delete(n.key);this.qr.set(a.largestBatchId,e)}this.overlays=this.overlays.insert(n.key,new Uw(t,n));let i=this.qr.get(t);void 0===i&&(i=sw(),this.qr.set(t,i)),this.qr.set(t,i.add(n.key))}}
2675/**
2676 * @license
2677 * Copyright 2024 Google LLC
2678 *
2679 * Licensed under the Apache License, Version 2.0 (the "License");
2680 * you may not use this file except in compliance with the License.
2681 * You may obtain a copy of the License at
2682 *
2683 *   http://www.apache.org/licenses/LICENSE-2.0
2684 *
2685 * Unless required by applicable law or agreed to in writing, software
2686 * distributed under the License is distributed on an "AS IS" BASIS,
2687 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2688 * See the License for the specific language governing permissions and
2689 * limitations under the License.
2690 */class nC{constructor(){this.sessionToken=Ib.EMPTY_BYTE_STRING}getSessionToken(e){return db.resolve(this.sessionToken)}setSessionToken(e,t){return this.sessionToken=t,db.resolve()}}
2691/**
2692 * @license
2693 * Copyright 2017 Google LLC
2694 *
2695 * Licensed under the Apache License, Version 2.0 (the "License");
2696 * you may not use this file except in compliance with the License.
2697 * You may obtain a copy of the License at
2698 *
2699 *   http://www.apache.org/licenses/LICENSE-2.0
2700 *
2701 * Unless required by applicable law or agreed to in writing, software
2702 * distributed under the License is distributed on an "AS IS" BASIS,
2703 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2704 * See the License for the specific language governing permissions and
2705 * limitations under the License.
2706 */class aC{constructor(){this.Qr=new Sb(iC.$r),this.Ur=new Sb(iC.Kr)}isEmpty(){return this.Qr.isEmpty()}addReference(e,t){const n=new iC(e,t);this.Qr=this.Qr.add(n),this.Ur=this.Ur.add(n)}Wr(e,t){e.forEach(e=>this.addReference(e,t))}removeReference(e,t){this.Gr(new iC(e,t))}zr(e,t){e.forEach(e=>this.removeReference(e,t))}jr(e){const t=new Gy(new zy([])),n=new iC(t,e),a=new iC(t,e+1),i=[];return this.Ur.forEachInRange([n,a],e=>{this.Gr(e),i.push(e.key)}),i}Jr(){this.Qr.forEach(e=>this.Gr(e))}Gr(e){this.Qr=this.Qr.delete(e),this.Ur=this.Ur.delete(e)}Hr(e){const t=new Gy(new zy([])),n=new iC(t,e),a=new iC(t,e+1);let i=sw();return this.Ur.forEachInRange([n,a],e=>{i=i.add(e.key)}),i}containsKey(e){const t=new iC(e,0),n=this.Qr.firstAfterOrEqual(t);return null!==n&&e.isEqual(n.key)}}class iC{constructor(e,t){this.key=e,this.Yr=t}static $r(e,t){return Gy.comparator(e.key,t.key)||Ly(e.Yr,t.Yr)}static Kr(e,t){return Ly(e.Yr,t.Yr)||Gy.comparator(e.key,t.key)}}
2707/**
2708 * @license
2709 * Copyright 2017 Google LLC
2710 *
2711 * Licensed under the Apache License, Version 2.0 (the "License");
2712 * you may not use this file except in compliance with the License.
2713 * You may obtain a copy of the License at
2714 *
2715 *   http://www.apache.org/licenses/LICENSE-2.0
2716 *
2717 * Unless required by applicable law or agreed to in writing, software
2718 * distributed under the License is distributed on an "AS IS" BASIS,
2719 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2720 * See the License for the specific language governing permissions and
2721 * limitations under the License.
2722 */class rC{constructor(e,t){this.indexManager=e,this.referenceDelegate=t,this.mutation
2722Queue=[],this.tr=1,this.Zr=new Sb(iC.$r)}checkEmpty(e){return db.resolve(0===this.mutationQueue.length)}addMutationBatch(e,t,n,a){const i=this.tr;this.tr++,this.mutationQueue.length>0&&this.mutationQueue[this.mutationQueue.length-1];const r=new Xw(i,t,n,a);this.mutationQueue.push(r);for(const o of a)this.Zr=this.Zr.add(new iC(o.key,i)),this.indexManager.addToCollectionParentIndex(e,o.key.path.popLast());return db.resolve(r)}lookupMutationBatch(e,t){return db.resolve(this.Xr(t))}getNextMutationBatchAfterBatchId(e,t){const n=t+1,a=this.ei(n),i=a<0?0:a;return db.resolve(this.mutationQueue.length>i?this.mutationQueue[i]:null)}getHighestUnacknowledgedBatchId(){return db.resolve(0===this.mutationQueue.length?-1:this.tr-1)}getAllMutationBatches(e){return db.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(e,t){const n=new iC(t,0),a=new iC(t,Number.POSITIVE_INFINITY),i=[];return this.Zr.forEachInRange([n,a],e=>{const t=this.Xr(e.Yr);i.push(t)}),db.resolve(i)}getAllMutationBatchesAffectingDocumentKeys(e,t){let n=new Sb(Ly);return t.forEach(e=>{const t=new iC(e,0),a=new iC(e,Number.POSITIVE_INFINITY);this.Zr.forEachInRange([t,a],e=>{n=n.add(e.Yr)})}),db.resolve(this.ti(n))}getAllMutationBatchesAffectingQuery(e,t){const n=t.path,a=n.length+1;let i=n;Gy.isDocumentKey(i)||(i=i.child(""));const r=new iC(new Gy(i),0);let o=new Sb(Ly);return this.Zr.forEachWhile(e=>{const t=e.key.path;return!!n.isPrefixOf(t)&&(t.length===a&&(o=o.add(e.Yr)),!0)},r),db.resolve(this.ti(o))}ti(e){const t=[];return e.forEach(e=>{const n=this.Xr(e);null!==n&&t.push(n)}),t}removeMutationBatch(e,t){wy(0===this.ni(t.batchId,"removed"),55003),this.mutationQueue.shift();let n=this.Zr;return db.forEach(t.mutations,a=>{const i=new iC(a.key,t.batchId);return n=n.delete(i),this.referenceDelegate.markPotentiallyOrphaned(e,a.key)}).next(()=>{this.Zr=n})}ir(e){}containsKey(e,t){const n=new iC(t,0),a=this.Zr.firstAfterOrEqual(n);return db.resolve(t.isEqual(a&&a.key))}performConsistencyCheck(e){return this.mutationQueue.length,db.resolve()}ni(e,t){return this.ei(e)}ei(e){return 0===this.mutationQueue.length?0:e-this.mutationQueue[0].batchId}Xr(e){const t=this.ei(e);return t<0||t>=this.mutationQueue.length?null:this.mutationQueue[t]}}
2723/**
2724 * @license
2725 * Copyright 2017 Google LLC
2726 *
2727 * Licensed under the Apache License, Version 2.0 (the "License");
2728 * you may not use this file except in compliance with the License.
2729 * You may obtain a copy of the License at
2730 *
2731 *   http://www.apache.org/licenses/LICENSE-2.0
2732 *
2733 * Unless required by applicable law or agreed to in writing, software
2734 * distributed under the License is distributed on an "AS IS" BASIS,
2735 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2736 * See the License for the specific language governing permissions and
2737 * limitations under the License.
2738 */class oC{constructor(e){this.ri=e,this.docs=new wb(Gy.comparator),this.size=0}setIndexManager(e){this.indexManager=e}addEntry(e,t){const n=t.key,a=this.docs.get(n),i=a?a.size:0,r=this.ri(t);return this.docs=this.docs.insert(n,{document:t.mutableCopy(),size:r}),this.size+=r-i,this.indexManager.addToCollectionParentIndex(e,n.path.popLast())}removeEntry(e){const t=this.docs.get(e);t&&(this.docs=this.docs.remove(e),this.size-=t.size)}getEntry(e,t){const n=this.docs.get(t);return db.resolve(n?n.document.mutableCopy():d_.newInvalidDocument(t))}getEntries(e,t){let n=Q_();return t.forEach(e=>{const t=this.docs.get(e);n=n.insert(e,t?t.document.mutableCopy():d_.newInvalidDocument(e))}),db.resolve(n)}getDocumentsMatchingQuery(e,t,n,a){let i=Q_();const r=t.path,o=new Gy(r.child("__id-9223372036854775808__")),s=this.docs.getIteratorFrom(o);for(;s.hasNext();){const{key:e,value:{document:o}}=s.getNext();if(!r.isPrefixOf(e.path))break;e.path.length>r.length+1||lb(ob(o),n)<=0||(a.has(o.key)||G_(t,o))&&(i=i.insert(o.key,o.mutableCopy()))}return db.resolve(i)}getAllFromCollectionGroup(e,t,n,a){by(9500)}ii(e,t){return db.forEach(this.docs,e=>t(e))}newChangeBuffer(e){return new sC(this)}getSize(e){return db.resolve(this.size)}}class sC extends Jk{constructor(e){super(),this.Nr=e}applyChanges(e){const t=[];
vendor: 4,927 bytes, lines 2738-2770
2738return this.changes.forEach((n,a)=>{a.isValidDocument()?t.push(this.Nr.addEntry(e,a)):this.Nr.removeEntry(n)}),db.waitFor(t)}getFromCache(e,t){return this.Nr.getEntry(e,t)}getAllFromCache(e,t){return this.Nr.getEntries(e,t)}}
2739/**
2740 * @license
2741 * Copyright 2017 Google LLC
2742 *
2743 * Licensed under the Apache License, Version 2.0 (the "License");
2744 * you may not use this file except in compliance with the License.
2745 * You may obtain a copy of the License at
2746 *
2747 *   http://www.apache.org/licenses/LICENSE-2.0
2748 *
2749 * Unless required by applicable law or agreed to in writing, software
2750 * distributed under the License is distributed on an "AS IS" BASIS,
2751 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2752 * See the License for the specific language governing permissions and
2753 * limitations under the License.
2754 */class lC{constructor(e){this.persistence=e,this.si=new Y_(e=>D_(e),L_),this.lastRemoteSnapshotVersion=rb.min(),this.highestTargetId=0,this.oi=0,this._i=new aC,this.targetCount=0,this.ai=Kk.ur()}forEachTarget(e,t){return this.si.forEach((e,n)=>t(n)),db.resolve()}getLastRemoteSnapshotVersion(e){return db.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(e){return db.resolve(this.oi)}allocateTargetId(e){return this.highestTargetId=this.ai.next(),db.resolve(this.highestTargetId)}setTargetsMetadata(e,t,n){return n&&(this.lastRemoteSnapshotVersion=n),t>this.oi&&(this.oi=t),db.resolve()}Pr(e){this.si.set(e.target,e);const t=e.targetId;t>this.highestTargetId&&(this.ai=new Kk(t),this.highestTargetId=t),e.sequenceNumber>this.oi&&(this.oi=e.sequenceNumber)}addTargetData(e,t){return this.Pr(t),this.targetCount+=1,db.resolve()}updateTargetData(e,t){return this.Pr(t),db.resolve()}removeTargetData(e,t){return this.si.delete(t.target),this._i.jr(t.targetId),this.targetCount-=1,db.resolve()}removeTargets(e,t,n){let a=0;const i=[];return this.si.forEach((r,o)=>{o.sequenceNumber<=t&&null===n.get(o.targetId)&&(this.si.delete(r),i.push(this.removeMatchingKeysForTargetId(e,o.targetId)),a++)}),db.waitFor(i).next(()=>a)}getTargetCount(e){return db.resolve(this.targetCount)}getTargetData(e,t){const n=this.si.get(t)||null;return db.resolve(n)}addMatchingKeys(e,t,n){return this._i.Wr(t,n),db.resolve()}removeMatchingKeys(e,t,n){this._i.zr(t,n);const a=this.persistence.referenceDelegate,i=[];return a&&t.forEach(t=>{i.push(a.markPotentiallyOrphaned(e,t))}),db.waitFor(i)}removeMatchingKeysForTargetId(e,t){return this._i.jr(t),db.resolve()}getMatchingKeysForTargetId(e,t){const n=this._i.Hr(t);return db.resolve(n)}containsKey(e,t){return db.resolve(this._i.containsKey(t))}}
2755/**
2756 * @license
2757 * Copyright 2017 Google LLC
2758 *
2759 * Licensed under the Apache License, Version 2.0 (the "License");
2760 * you may not use this file except in compliance with the License.
2761 * You may obtain a copy of the License at
2762 *
2763 *   http://www.apache.org/licenses/LICENSE-2.0
2764 *
2765 * Unless required by applicable law or agreed to in writing, software
2766 * distributed under the License is distributed on an "AS IS" BASIS,
2767 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2768 * See the License for the specific language governing permissions and
2769 * limitations under the License.
2770 */class uC{constructor(e,t){this.ui={},this.overlays={},this.ci=new pb(0),this.li=!1,this.li=!0,this.hi=new nC,this.referenceDelegate=e(this),this.Pi=new lC(this),this.indexManager=new Xk,this.remoteDocumentCache=new oC(e=>this.referenceDelegate.Ti(e)),this.serializer=new Fk(t),this.Ii=new eC(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.li=!1,Promise.resolve()}get started(){return this.li}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(e){return this.indexManager}getDocumentOverlayCache(e){let t=this.overlays[e.toKey()];return t||(t=new tC,this.overlays[e.toKey()]=t),t}getMutationQueue(e,t){let n=this.ui[e.toKey()];return n||(n=new rC(t,this.referenceDelegate),this.ui[e.toKey()]=n),n}getGlobalsCache(){return this.hi}getTargetCache(){return this.Pi}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.Ii}runTransaction(e,t,n){my("MemoryPersistence","Starting transaction:",e);const a=new cC(this.ci.next());return this.referenceDelegate.Ei(),n(a).next(e=>this.referenceDelegate.di(a).next(()=>e)).toPromise().then(e=>(a.raiseOnCommittedEvent(),e))}Ai(e,t){return db.or(Object.values(this.ui).map(n=>()=>n.containsKey(e,t)))}}class cC extends ub{constructor(e){super(),this.currentSequenceNumber=e}}class dC{constructor(e){this.persistence=e,this.Ri=new aC,this.Vi=null}static mi(e){return new dC(e)}get fi(){if(this.Vi)return this.Vi;throw by(60996)}addReference(e,t,n){return this.Ri.addReference(n,t),this.fi.delete(n.toString()),db.resolve()}removeReference(e,t,n){return this.Ri.removeReference(n,t),this.fi.add(n.toString()),db.resolve()}markPotentiallyOrphaned(e,t){return this.fi.add(t.toString()),db.resolve()}
2770removeTarget(e,t){this.Ri.jr(t.targetId).forEach(e=>this.fi.add(e.toString()));const n=this.persistence.getTargetCache();return n.getMatchingKeysForTargetId(e,t.targetId).next(e=>{e.forEach(e=>this.fi.add(e.toString()))}).next(()=>n.removeTargetData(e,t))}Ei(){this.Vi=new Set}di(e){const t=this.persistence.getRemoteDocumentCache().newChangeBuffer();return db.forEach(this.fi,n=>{const a=Gy.fromPath(n);return this.gi(e,a).next(e=>{e||t.removeEntry(a,rb.min())})}).next(()=>(this.Vi=null,t.apply(e)))}updateLimboDocument(e,t){return this.gi(e,t).next(e=>{e?this.fi.delete(t.toString()):this.fi.add(t.toString())})}Ti(e){return 0}gi(e,t){return db.or([()=>db.resolve(this.Ri.containsKey(t)),()=>this.persistence.getTargetCache().containsKey(e,t),()=>this.persistence.Ai(e,t)])}}class hC{constructor(e,t){this.persistence=e,this.pi=new Y_(e=>function(e){let t="";for(let n=0;n<e.length;n++)t.length>0&&(t=gb(t)),t=vb(e.get(n),t);return gb(t)}(e.path),(e,t)=>e.isEqual(t)),this.garbageCollector=function(e,t){return new Yk(e,t)}(this,t)}static mi(e,t){return new hC(e,t)}Ei(){}di(e){return db.resolve()}forEachTarget(e,t){return this.persistence.getTargetCache().forEachTarget(e,t)}gr(e){const t=this.wr(e);return this.persistence.getTargetCache().getTargetCount(e).next(e=>t.next(t=>e+t))}wr(e){let t=0;return this.pr(e,e=>{t++}).next(()=>t)}pr(e,t){return db.forEach(this.pi,(n,a)=>this.br(e,n,a).next(e=>e?db.resolve():t(a)))}removeTargets(e,t,n){return this.persistence.getTargetCache().removeTargets(e,t,n)}removeOrphanedDocuments(e,t){let n=0;const a=this.persistence.getRemoteDocumentCache(),i=a.newChangeBuffer();return a.ii(e,a=>this.br(e,a,t).next(e=>{e||(n++,i.removeEntry(a,rb.min()))})).next(()=>i.apply(e)).next(()=>n)}markPotentiallyOrphaned(e,t){return this.pi.set(t,e.currentSequenceNumber),db.resolve()}removeTarget(e,t){const n=t.withSequenceNumber(e.currentSequenceNumber);return this.persistence.getTargetCache().updateTargetData(e,n)}addReference(e,t,n){return this.pi.set(n,e.currentSequenceNumber),db.resolve()}removeReference(e,t,n){return this.pi.set(n,e.currentSequenceNumber),db.resolve()}updateLimboDocument(e,t){return this.pi.set(t,e.currentSequenceNumber),db.resolve()}Ti(e){let t=e.key.toString().length;return e.isFoundDocument()&&(t+=n_(e.data.value)),t}br(e,t,n){return db.or([()=>this.persistence.Ai(e,t),()=>this.persistence.getTargetCache().containsKey(e,t),()=>{const e=this.pi.get(t);return db.resolve(void 0!==e&&e>n)}])}getCacheSize(e){return this.persistence.getRemoteDocumentCache().getSize(e)}}
2771/**
2772 * @license
2773 * Copyright 2017 Google LLC
2774 *
2775 * Licensed under the Apache License, Version 2.0 (the "License");
2776 * you may not use this file except in compliance with the License.
2777 * You may obtain a copy of the License at
2778 *
2779 *   http://www.apache.org/licenses/LICENSE-2.0
2780 *
2781 * Unless required by applicable law or agreed to in writing, software
2782 * distributed under the License is distributed on an "AS IS" BASIS,
2783 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2784 * See the License for the specific language governing permissions and
2785 * limitations under the License.
2786 */class pC{constructor(e,t,n,a){this.targetId=e,this.fromCache=t,this.Es=n,this.ds=a}static As(e,t){let n=sw(),a=sw();for(const i of t.docChanges)switch(i.type){case 0:n=n.add(i.doc.key);break;case 1:a=a.add(i.doc.key)}return new pC(e,t.fromCache,n,a)}}
2787/**
2788 * @license
2789 * Copyright 2023 Google LLC
2790 *
2791 * Licensed under the Apache License, Version 2.0 (the "License");
2792 * you may not use this file except in compliance with the License.
2793 * You may obtain a copy of the License at
2794 *
2795 *   http://www.apache.org/licenses/LICENSE-2.0
2796 *
2797 * Unless required by applicable law or agreed to in writing, software
2798 * distributed under the License is distributed on an "AS IS" BASIS,
2799 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2800 * See the License for the specific language governing permissions and
2801 * limitations under the License.
2802 */class fC{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(e){this._documentReadCount+=e}}
2803/**
2804 * @license
2805 * Copyright 2019 Google LLC
2806 *
2807 * Licensed under the Apache License, Version 2.0 (the "License");
2808 * you may not use this file except in compliance with the License.
2809 * You may obtain a copy of the License at
2810 *
2811 *   http://www.apache.org/licenses/LICENSE-2.0
2812 *
2813 * Unless required by applicable law or agreed to in writing, software
2814 * distributed under the License is distributed on an "AS IS" BASIS,
2815 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2816 * See the License for the specific language governing permissions and
2817 * limitations under the License.
2818 */class mC{constructor(){this.Rs=!1,this.Vs=!1,this.fs=100,this.gs=Ju()?8:function(e){const t=e.match(/Android ([\d.]+)/i),n=t?t[1].split(".").slice(0,2).join("."):"-1";return Number(n)}(qu())>0?6:4}initialize(e,t){this.ps=e,this.indexManager=t,this.Rs=!0}getDocumentsMatchingQuery(e,t,n,a){const i={result:null};return this.ys(e,t).next(e=>{i.result=e}).next(()=>{if(!i.result)return this.ws(e,t,a,n).next(e=>{i.result=e})}).next(()=>{if(i.result)return;const n=new fC;return this.Ss(e,t,n).next(a=>{if(i.result=a,this.Vs)return this.bs(e,t,n,a.size)})}).next(()=>i.result)}bs(e,t,n,a){return n.documentReadCount<this.fs?(fy()<=Sc.DEBUG&&my("QueryEngine","SDK will not create cache indexes for query:",W_(t),"since it only creates cache indexes for collection contains","more than or equal to",this.fs,"documents"),db.resolve()):(fy()<=Sc.DEBUG&&my("QueryEngine","Query:",W_(t),"scans",n.documentReadCount,"local documents and returns",a,"documents as results."),n.documentReadCount>this.gs*a?(fy()<=Sc.DEBUG&&my("QueryEngine","The SDK decides to create cache indexes for query:",W_(t),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(e,U_(t))):db.resolve())}ys(e,t){if(X_(t))return db.resolve(null);let n=U_(t);return this.indexManager.getIndexType(e,n).next(a=>0===a?null:(null!==t.limit&&1===a&&(t=H_(t,null,"F"),n=U_(t)),this.indexManager.getDocumentsMatchingTarget(e,n).next(a=>{const i=sw(...a);return this.ps.getDocuments(e,i).next(a=>this.indexManager.getMinOffset(e,n).next(n=>{const r=this.Ds(t,a);return this.Cs(t,r,i,n.readTime)?this.ys(e,H_(t,null,"F")):this.vs(e,r,t,n)}))})))}ws(e,t,n,a){return X_(t)||a.isEqual(rb.min())?db.resolve(null):this.ps.getDocuments(e,n).next(i=>{const r=this.Ds(t,i);return this.Cs(t,r,n,a)?db.resolve(null):(fy()<=Sc.DEBUG&&my("QueryEngine","Re-using previous result from %s to execute query: %s",a.toString(),W_(t)),this.vs(e,r,t,function(e,t){const n=e.toTimestamp().seconds,a=e.toTimestamp().nanoseconds+1,i=rb.fromTimestamp(1e9===a?new ib(n+1,0):new ib(n,a));return new sb(i,Gy.empty(),t)}(a,-1)).next(e=>e))})}Ds(e,t){let n=new Sb(q_(e));return t.forEach((t,a)=>{G_(e,a)&&(n=n.add(a))}),n}Cs(e,t,n,a){if(null===e.limit)return!1;if(n.size!==t.size)return!0;const i="F"===e.limitType?t.last():t.first();return!!i&&(i.hasPendingWrites||i.version.compareTo(a)>0)}Ss(e,t,n){return fy()<=Sc.DEBUG&&my("QueryEngine","Using full collection scan to execute query:",W_(t)),this.ps.getDocumentsMatchingQuery(e,t,sb.min(),n)}vs(e,t,n,a){return this.ps.getDocumentsMatchingQuery(e,n,a).next(e=>(t.forEach(t=>{e=e.insert(t.key,t)}),e))}}
2819/**
2820 * @license
2821 * Copyright 2020 Google LLC
2822 *
2823 * Licensed under the Apache License, Version 2.0 (the "License");
2824 * you may not use this file except in compliance with the License.
2825 * You may obtain a copy of the License at
2826 *
2827 *   http://www.apache.org/licenses/LICENSE-2.0
2828 *
2829 * Unless required by applicable law or agreed to in writing, software
2830 * distributed under the License is distributed on an "AS IS" BASIS,
2831 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2832 * See the License for the specific language governing permissions and
2833 * limitations under the License.
2834 */const vC="LocalStore";class gC{constructor(e,t,n,a){this.persistence=e,this.Fs=t,this.serializer=a,this.Ms=new wb(Ly),this.xs=new Y_(e=>D_(e),L_),this.Os=new Map,this.Ns=e.getRemoteDocumentCache(),this.Pi=e.getTargetCache(),this.Ii=e.getBundleCache(),this.Bs(n)}Bs(e){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(e),this.indexManager=this.persistence.getIndexManager(e),this.mutation
2834Queue=this.persistence.getMutationQueue(e,this.indexManager),this.localDocuments=new Zk(this.Ns,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.Ns.setIndexManager(this.indexManager),this.Fs.initialize(this.localDocuments,this.indexManager)}collectGarbage(e){return this.persistence.runTransaction("Collect garbage","readwrite-primary",t=>e.collect(t,this.Ms))}}async function yC(e,t){const n=ky(e);return await n.persistence.runTransaction("Handle user change","readonly",e=>{let a;return n.mutationQueue.getAllMutationBatches(e).next(i=>(a=i,n.Bs(t),n.mutationQueue.getAllMutationBatches(e))).next(t=>{const i=[],r=[];let o=sw();for(const e of a){i.push(e.batchId);for(const t of e.mutations)o=o.add(t.key)}for(const e of t){r.push(e.batchId);for(const t of e.mutations)o=o.add(t.key)}return n.localDocuments.getDocuments(e,o).next(e=>({Ls:e,removedBatchIds:i,addedBatchIds:r}))})})}function bC(e){const t=ky(e);return t.persistence.runTransaction("Get last remote snapshot version","readonly",e=>t.Pi.getLastRemoteSnapshotVersion(e))}function _C(e,t){const n=ky(e),a=t.snapshotVersion;let i=n.Ms;return n.persistence.runTransaction("Apply remote event","readwrite-primary",e=>{const r=n.Ns.newChangeBuffer({trackRemovals:!0});i=n.Ms;const o=[];
2834t.targetChanges.forEach((r,s)=>{const l=i.get(s);if(!l)return;o.push(n.Pi.removeMatchingKeys(e,r.removedDocuments,s).next(()=>n.Pi.addMatchingKeys(e,r.addedDocuments,s)));let u=l.withSequenceNumber(e.currentSequenceNumber);null!==t.targetMismatches.get(s)?u=u.withResumeToken(Ib.EMPTY_BYTE_STRING,rb.min()).withLastLimboFreeSnapshotVersion(rb.min()):r.resumeToken.approximateByteSize()>0&&(u=u.withResumeToken(r.resumeToken,a)),i=i.insert(s,u),function(e,t,n){if(0===e.resumeToken.approximateByteSize())return!0;if(t.snapshotVersion.toMicroseconds()-e.snapshotVersion.toMicroseconds()>=3e8)return!0;return n.addedDocuments.size+n.modifiedDocuments.size+n.removedDocuments.size>0}(l,u,r)&&o.push(n.Pi.updateTargetData(e,u))});let s=Q_(),l=sw();if(t.documentUpdates.forEach(a=>{t.resolvedLimboDocuments.has(a)&&o.push(n.persistence.referenceDelegate.updateLimboDocument(e,a))}),o.push(function(e,t,n){let a=sw(),i=sw();return n.forEach(e=>a=a.add(e)),t.getEntries(e,a).next(e=>{let a=Q_();return n.forEach((n,r)=>{const o=e.get(n);r.isFoundDocument()!==o.isFoundDocument()&&(i=i.add(n)),r.isNoDocument()&&r.version.isEqual(rb.min())?(t.removeEntry(n,r.readTime),a=a.insert(n,r)):!o.isValidDocument()||r.version.compareTo(o.version)>0||0===r.version.compareTo(o.version)&&o.hasPendingWrites?(t.addEntry(r),a=a.insert(n,r)):my(vC,"Ignoring outdated watch update for ",n,". Current version:",o.version," Watch version:",r.version)}),{ks:a,qs:i}})}(e,r,t.documentUpdates).next(e=>{s=e.ks,l=e.qs})),!a.isEqual(rb.min())){const t=n.Pi.getLastRemoteSnapshotVersion(e).next(t=>n.Pi.setTargetsMetadata(e,e.currentSequenceNumber,a));o.push(t)}return db.waitFor(o).next(()=>r.apply(e)).next(()=>n.localDocuments.getLocalViewOfDocuments(e,s,l)).next(()=>s)}).then(e=>(n.Ms=i,e))}function wC(e,t){const n=ky(e);return n.persistence.runTransaction("Get next mutation batch","readonly",e=>(void 0===t&&(t=-1),n.mutationQueue.getNextMutationBatchAfterBatchId(e,t)))}async function kC(e,t,n){const a=ky(e),i=a.Ms.get(t),r=n?"readwrite":"readwrite-primary";try{n||await a.persistence.runTransaction("Release target",r,e=>a.persistence.referenceDelegate.removeTarget(e,i))}catch(o){if(!hb(o))throw o;my(vC,"Failed to update sequence numbers for target ".concat(t,": ").concat(o))}a.Ms=a.Ms.remove(t),a.xs.delete(i.target)}function CC(e,t,n){const a=ky(e);let i=rb.min(),r=sw();return a.persistence.runTransaction("Execute query","readwrite",e=>function(e,t,n){const a=ky(e),i=a.xs.get(n);return void 0!==i?db.resolve(a.Ms.get(i)):a.Pi.getTargetData(t,n)}(a,e,U_(t)).next(t=>{if(t)return i=t.lastLimboFreeSnapshotVersion,a.Pi.getMatchingKeysForTargetId(e,t.targetId).next(e=>{r=e})}).next(()=>a.Fs.getDocumentsMatchingQuery(e,t,n?i:rb.min(),n?r:sw())).next(e=>(function(e,t,n){let a=e.Os.get(t)||rb.min();n.forEach((e,t)=>{t.readTime.compareTo(a)>0&&(a=t.readTime)}),e.Os.set(t,a)}(a,function(e){return e.collectionGroup||(e.path.length%2==1?e.path.lastSegment():e.path.get(e.path.length-2))}(t),e),{documents:e,Qs:r})))}class SC{constructor(){this.activeTargetIds=lw}zs(e){this.activeTargetIds=this.activeTargetIds.add(e)}js(e){this.activeTargetIds=this.activeTargetIds.delete(e)}Gs(){const e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)}}class TC{constructor(){this.Mo=new SC,this.xo={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(e){}updateMutationState(e,t,n){}addLocalQueryTarget(e,t=!0){return t&&this.Mo.zs(e),this.xo[e]||"not-current"}updateQueryState(e,t,n){this.xo[e]=t}removeLocalQueryTarget(e){this.Mo.js(e)}isLocalQueryTarget(e){return this.Mo.activeTargetIds.has(e)}clearQueryState(e){delete this.xo[e]}getAllActiveQueryTargets(){return this.Mo.activeTargetIds}isActiveQueryTarget(e){return this.Mo.activeTargetIds.has(e)}start(){return this.Mo=new SC,Promise.resolve()}handleUserChange(e,t,n){}setOnlineState(e){}shutdown(){}writeSequenceNumber(e){}notifyBundleLoaded(e){}}
2835/**
2836 * @license
2837 * Copyright 2019 Google LLC
2838 *
2839 * Licensed under the Apache License, Version 2.0 (the "License");
2840 * you may not use this file except in compliance with the License.
2841 * You may obtain a copy of the License at
2842 *
2843 *   http://www.apache.org/licenses/LICENSE-2.0
2844 *
2845 * Unless required by applicable law or agreed to in writing, softw
2845are
2846 * distributed under the License is distributed on an "AS IS" BASIS,
2847 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2848 * See the License for the specific language governing permissions and
2849 * limitations under the License.
2850 */class AC{Oo(e){}shutdown(){}}
2851/**
2852 * @license
2853 * Copyright 2019 Google LLC
2854 *
2855 * Licensed under the Apache License, Version 2.0 (the "License");
2856 * you may not use this file except in compliance with the License.
2857 * You may obtain a copy of the License at
2858 *
2859 *   http://www.apache.org/licenses/LICENSE-2.0
2860 *
2861 * Unless required by applicable law or agreed to in writing, software
2862 * distributed under the License is distributed on an "AS IS" BASIS,
2863 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2864 * See the License for the specific language governing permissions and
2865 * limitations under the License.
2866 */const EC="ConnectivityMonitor";class IC{constructor(){this.No=()=>this.Bo(),this.Lo=()=>this.ko(),this.qo=[],this.Qo()}Oo(e){this.qo.push(e)}shutdown(){window.removeEventListener("online",this.No),window.removeEventListener("offline",this.Lo)}Qo(){window.addEventListener("online",this.No),window.addEventListener("offline",this.Lo)}Bo(){my(EC,"Network connectivity changed: AVAILABLE");for(const e of this.qo)e(0)}ko(){my(EC,"Network connectivity changed: UNAVAILABLE");for(const e of this.qo)e(1)}static v(){return"undefined"!=typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener}}
2867/**
2868 * @license
2869 * Copyright 2023 Google LLC
2870 *
2871 * Licensed under the Apache License, Version 2.0 (the "License");
2872 * you may not use this file except in compliance with the License.
2873 * You may obtain a copy of the License at
2874 *
2875 *   http://www.apache.org/licenses/LICENSE-2.0
2876 *
2877 * Unless required by applicable law or agreed to in writing, software
2878 * distributed under the License is distributed on an "AS IS" BASIS,
2879 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2880 * See the License for the specific language governing permissions and
2881 * limitations under the License.
2882 */let xC=null;function NC(){return null===xC?xC=268435456+Math.round(2147483648*Math.random()):xC++,"0x"+xC.toString(16)
2883/**
2884 * @license
2885 * Copyright 2020 Google LLC
2886 *
2887 * Licensed under the Apache License, Version 2.0 (the "License");
2888 * you may not use this file except in compliance with the License.
2889 * You may obtain a copy of the License at
2890 *
2891 *   http://www.apache.org/licenses/LICENSE-2.0
2892 *
2893 * Unless required by applicable law or agreed to in writing, software
2894 * distributed under the License is distributed on an "AS IS" BASIS,
2895 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2896 * See the License for the specific language governing permissions and
2897 * limitations under the License.
2898 */}const PC="RestConnection",MC={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery"};class OC{get $o(){return!1}constructor(e){this.databaseInfo=e,this.databaseId=e.databaseId;const t=e.ssl?"https":"http",n=encodeURIComponent(this.databaseId.projectId),a=encodeURIComponent(this.databaseId.database);this.Uo=t+"://"+e.host,this.Ko="projects/".concat(n,"/databases/").concat(a),this.Wo=this.databaseId.database===jb?"project_id=".concat(n):"project_id=".concat(n,"&database_id=").concat(a)}Go(e,t,n,a,i){const r=NC(),o=this.zo(e,t.toUriEncodedString());my(PC,"Sending RPC '".concat(e,"' ").concat(r,":"),o,n);const s={"google-cloud-resource-prefix":this.Ko,"x-goog-request-params":this.Wo};this.jo(s,a,i);const{host:l}=new URL(o),u=Uu(l);return this.Jo(e,o,s,n,u).then(t=>(my(PC,"Received RPC '".concat(e,"' ").concat(r,": "),t),t),t=>{throw gy(PC,"RPC '".concat(e,"' ").concat(r," failed with error: "),t,"url: ",o,"request:",n),t})}Ho(e,t,n,a,i,r){return this.Go(e,t,n,a,i)}jo(e,t,n){e["X-Goog-Api-Client"]="gl-js/ fire/"+hy,e["Content-Type"]="text/plain",this.databaseInfo.appId&&(e["X-Firebase-GMPID"]=this.databaseInfo.appId),t&&t.headers.forEach((t,n)=>e[n]=t),n&&n.headers.forEach((t,n)=>e[n]=t)}zo(e,t){const n=MC[e];return"".concat(this.Uo,"/v1/").concat(t,":").concat(n)}terminate(){}}
2899/**
2900 * @license
2901 * Copyright 2017 Google LLC
2902 *
2903 * Licensed under the Apache License, Version 2.0 (the "License");
2904 * you may not use this file except in compliance with the License.
2905 * You may obtain a copy of the License at
2906 *
2907 *   http://www.apache.org/licenses/LICENSE-2.0
2908 *
2909 * Unless required by applicable law or agreed to in writing, software
2910 * distributed under the License is distributed on an "AS IS" BASIS,
2911 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2912 * See the License for the specific language governing permissions and
2913 * limitations under the License.
2914 */class RC{constructor(e){this.Yo=e.Yo,this.Zo=e.Zo}Xo(e){this.e_=e}t_(e){this.n_=e}r_(e){this.i_=e}onMessage(e){this.s_=e}close(){this.Zo()}send(e){this.Yo(e)}o_(){this.e_()}__(){this.n_()}a_(e){this.i_(e)}u_(e){this.s_(e)}}
2915/**
2916 * @license
2917 * Copyright 2017 Google LLC
2918 *
2919 * Licensed under the Apache License, Version 2.0 (the "License");
2920 * you may not use this file except in compliance with the License.
2921 * You may obtain a copy of the License at
2922 *
2923 *   http://www.apache.org/licenses/LICENSE-2.0
2924 *
2925 * Unless required by applicable law or agreed to in writing, software
2926 * distributed under the License is distributed on an "AS IS" BASIS,
2927 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2928 * See the License for the specific language governing permissions and
2929 * limitations under the License.
2930 */const DC="WebChannelConnection";class LC extends OC{constructor(e){super(e),this.c_=[],this.forceLongPolling=e.forceLongPolling,this.autoDetectLongPolling=e.autoDetectLongPolling,this.useFetchStreams=e.useFetchStreams,this.longPollingOptions=e.longPollingOptions}Jo(e,t,n,a,i){const r=NC();return new Promise((i,o)=>{const s=new ey;s.setWithCredentials(!0),s.listenOnce(ny.COMPLETE,()=>{try{switch(s.getLastErrorCode()){case ay.NO_ERROR:const t=s.getResponseJson();my(DC,"XHR for RPC '".concat(e,"' ").concat(r," received:"),JSON.stringify(t)),i(t);break;case ay.TIMEOUT:my(DC,"RPC '".concat(e,"' ").concat(r," timed out")),o(new Sy(Cy.DEADLINE_EXCEEDED,"Request time out"));break;case ay.HTTP_ERROR:const n=s.getStatus();if(my(DC,"RPC '".concat(e,"' ").concat(r," failed with status:"),n,"response text:",s.getResponseText()),n>0){let e=s.getResponseJson();Array.isArray(e)&&(e=e[0]);const t=null==e?void 0:e.error;if(t&&t.status&&t.message){const e=function(e){const t=e.toLowerCase().replace(/_/g,"-");return Object.values(Cy).indexOf(t)>=0?t:Cy.UNKNOWN}(t.status);o(new Sy(e,t.message))}else o(new Sy(Cy.UNKNOWN,"Server responded with status "+s.getStatus()))}else o(new Sy(Cy.UNAVAILABLE,"Connection failed."));break;default:by(9055,{l_:e,streamId:r,h_:s.getLastErrorCode(),P_:s.getLastError()})}}finally{my(DC,"RPC '".concat(e,"' ").concat(r," completed."))}});const l=JSON.stringify(a);my(DC,"RPC '".concat(e,"' ").concat(r," sending request:"),a),s.send(t,"POST",l,n,15)})}T_(e,t,n){const a=NC(),i=[this.Uo,"/","google.firestore.v1.Firestore","/",e,"/channel"],r=sy(),o=oy(),s={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/".concat(this.databaseId.projectId,"/databases/").concat(this.databaseId.database)},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling},l=this.longPollingOptions.timeoutSeconds;void 0!==l&&(s.longPollingTimeout=Math.round(1e3*l)),this.useFetchStreams&&(s.useFetchStreams=!0),this.jo(s.initMessageHeaders,t,n),s.encodeInitMessageHeaders=!0;const u=i.join("");my(DC,"Creating RPC '".concat(e,"' stream ").concat(a,": ").concat(u),s);const c=r.createWebChannel(u,s);this.I_(c);let d=!1,h=!1;const p=new RC({Yo:t=>{h?my(DC,"Not sending because RPC '".concat(e,"' stream ").concat(a," is closed:"),t):(d||(my(DC,"Opening RPC '".concat(e,"' stream ").concat(a," transport.")),c.open(),d=!0),my(DC,"RPC '".concat(e,"' stream ").concat(a," sending:"),t),c.send(t))},Zo:()=>c.close()}),f=(e,t,n)=>{e.listen(t,e=>{try{n(e)}catch(t){setTimeout(()=>{throw t},0)}})};return f(c,ty.EventType.OPEN,()=>{h||(my(DC,"RPC '".concat(e,"' stream ").concat(a," transport opened.")),p.o_())}),f(c,ty.EventType.CLOSE,()=>{h||(h=!0,my(DC,"RPC '".concat(e,"' stream ").concat(a," transport closed")),p.a_(),this.E_(c))}
2930),f(c,ty.EventType.ERROR,t=>{h||(h=!0,gy(DC,"RPC '".concat(e,"' stream ").concat(a," transport errored. Name:"),t.name,"Message:",t.message),p.a_(new Sy(Cy.UNAVAILABLE,"The operation could not be completed")))}),f(c,ty.EventType.MESSAGE,t=>{var n;if(!h){const i=t.data[0];wy(!!i,16349);const r=i,o=(null==r?void 0:r.error)||(null==(n=r[0])?void 0:n.error);if(o){my(DC,"RPC '".concat(e,"' stream ").concat(a," received error:"),o);const t=o.status;let n=function(e){const t=zw[e];if(void 0!==t)return Ww(t)}(t),i=o.message;void 0===n&&(n=Cy.INTERNAL,i="Unknown error status: "+t+" with message "+o.message),h=!0,p.a_(new Sy(n,i)),c.close()}else my(DC,"RPC '".concat(e,"' stream ").concat(a," received:"),i),p.u_(i)}}),f(o,ry.STAT_EVENT,t=>{t.stat===iy.PROXY?my(DC,"RPC '".concat(e,"' stream ").concat(a," detected buffering proxy")):t.stat===iy.NOPROXY&&my(DC,"RPC '".concat(e,"' stream ").concat(a," detected no buffering proxy"))}),setTimeout(()=>{p.__()},0),p}terminate(){this.c_.forEach(e=>e.close()),this.c_=[]}I_(e){this.c_.push(e)}E_(e){this.c_=this.c_.filter(t=>t===e)}}function BC(){return"undefined"!=typeof document?document:null}
2931/**
2932 * @license
2933 * Copyright 2020 Google LLC
2934 *
2935 * Licensed under the Apache License, Version 2.0 (the "License");
2936 * you may not use this file except in compliance with the License.
2937 * You may obtain a copy of the License at
2938 *
2939 *   http://www.apache.org/licenses/LICENSE-2.0
2940 *
2941 * Unless required by applicable law or agreed to in writing, software
2942 * distributed under the License is distributed on an "AS IS" BASIS,
2943 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2944 * See the License for the specific language governing permissions and
2945 * limitations under the License.
2946 */function FC(e){return new ck(e,!0)}
2947/**
2948 * @license
2949 * Copyright 2017 Google LLC
2950 *
2951 * Licensed under the Apache License, Version 2.0 (the "License");
2952 * you may not use this file except in compliance with the License.
2953 * You may obtain a copy of the License at
2954 *
2955 *   http://www.apache.org/licenses/LICENSE-2.0
2956 *
2957 * Unless required by applicable law or agreed to in writing, software
2958 * distributed under the License is distributed on an "AS IS" BASIS,
2959 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2960 * See the License for the specific language governing permissions and
2961 * limitations under the License.
2962 */class VC{constructor(e,t,n=1e3,a=1.5,i=6e4){this.Mi=e,this.timerId=t,this.d_=n,this.A_=a,this.R_=i,this.V_=0,this.m_=null,this.f_=Date.now(),this.reset()}reset(){this.V_=0}g_(){this.V_=this.R_}p_(e){this.cancel();const t=Math.floor(this.V_+this.y_()),n=Math.max(0,Date.now()-this.f_),a=Math.max(0,t-n);a>0&&my("ExponentialBackoff","Backing off for ".concat(a," ms (base delay: ").concat(this.V_," ms, delay with jitter: ").concat(t," ms, last attempt: ").concat(n," ms ago)")),this.m_=this.Mi.enqueueAfterDelay(this.timerId,a,()=>(this.f_=Date.now(),e())),this.V_*=this.A_,this.V_<this.d_&&(this.V_=this.d_),this.V_>this.R_&&(this.V_=this.R_)}w_(){null!==this.m_&&(this.m_.skipDelay(),this.m_=null)}cancel(){null!==this.m_&&(this.m_.cancel(),this.m_=null)}y_(){return(Math.random()-.5)*this.V_}}
2963/**
2964 * @license
2965 * Copyright 2017 Google LLC
2966 *
2967 * Licensed under the Apache License, Version 2.0 (the "License");
2968 * you may not use this file except in compliance with the License.
2969 * You may obtain a copy of the License at
2970 *
2971 *   http://www.apache.org/licenses/LICENSE-2.0
2972 *
2973 * Unless required by applicable law or agreed to in writing, software
2974 * distributed under the License is distributed on an "AS IS" BASIS,
2975 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2976 * See the License for the specific language governing permissions and
2977 * limitations under the License.
2978 */const XC="PersistentStream";class jC{constructor(e,t,n,a,i,r,o,s){this.Mi=e,this.S_=n,this.b_=a,this.connection=i,this.authCredentialsProvider=r,this.appCheckCredentialsProvider=o,this.listener=s,this.state=0,this.D_=0,this.C_=null,this.v_=null,this.stream=null,this.F_=0,this.M_=new VC(e,t)}x_(){return 1===this.state||5===this.state||this.O_()}O_(){return 2===this.state||3===this.state}start(){this.F_=0,4!==this.state?this.auth():this.N_()}async stop(){this.x_()&&await this.close(0)}B_(){this.state=0,this.M_.reset()}L_(){this.O_()&&null===this.C_&&(this.C_=this.Mi.enqueueAfterDelay(this.S_,6e4,()=>this.k_()))}q_(e){this.Q_(),this.stream.send(e)}
2978async k_(){if(this.O_())return this.close(0)}Q_(){this.C_&&(this.C_.cancel(),this.C_=null)}U_(){this.v_&&(this.v_.cancel(),this.v_=null)}async close(e,t){this.Q_(),this.U_(),this.M_.cancel(),this.D_++,4!==e?this.M_.reset():t&&t.code===Cy.RESOURCE_EXHAUSTED?(vy(t.toString()),vy("Using maximum backoff delay to prevent overloading the backend."),this.M_.g_()):t&&t.code===Cy.UNAUTHENTICATED&&3!==this.state&&(this.authCredentialsProvider.invalidateToken(),this.appCheckCredentialsProvider.invalidateToken()),null!==this.stream&&(this.K_(),this.stream.close(),this.stream=null),this.state=e,await this.listener.r_(t)}K_(){}auth(){this.state=1;const e=this.W_(this.D_),t=this.D_;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then(([e,n])=>{this.D_===t&&this.G_(e,n)},t=>{e(()=>{const e=new Sy(Cy.UNKNOWN,"Fetching auth token failed: "+t.message);return this.z_(e)})})}G_(e,t){const n=this.W_(this.D_);this.stream=this.j_(e,t),this.stream.Xo(()=>{n(()=>this.listener.Xo())}),this.stream.t_(()=>{n(()=>(this.state=2,this.v_=this.Mi.enqueueAfterDelay(this.b_,1e4,()=>(this.O_()&&(this.state=3),Promise.resolve())),this.listener.t_()))}),this.stream.r_(e=>{n(()=>this.z_(e))}),this.stream.onMessage(e=>{n(()=>1==++this.F_?this.J_(e):this.onNext(e))})}N_(){this.state=5,this.M_.p_(async()=>{this.state=0,this.start()})}z_(e){return my(XC,"close with error: ".concat(e)),this.stream=null,this.close(4,e)}W_(e){return t=>{this.Mi.enqueueAndForget(()=>this.D_===e?t():(my(XC,"stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}}class UC extends jC{constructor(e,t,n,a,i,r){super(e,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",t,n,a,r),this.serializer=i}j_(e,t){return this.connection.T_("Listen",e,t)}J_(e){return this.onNext(e)}onNext(e){this.M_.reset();const t=function(e,t){let n;if("targetChange"in t){t.targetChange;const i="NO_CHANGE"===(a=t.targetChange.targetChangeType||"NO_CHANGE")?0:"ADD"===a?1:"REMOVE"===a?2:"CURRENT"===a?3:"RESET"===a?4:by(39313,{state:a}),r=t.targetChange.targetIds||[],o=function(e,t){return e.useProto3Json?(wy(void 0===t||"string"==typeof t,58123),Ib.fromBase64String(t||"")):(wy(void 0===t||t instanceof Buffer||t instanceof Uint8Array,16193),Ib.fromUint8Array(t||new Uint8Array))}(e,t.targetChange.resumeToken),s=t.targetChange.cause,l=s&&function(e){const t=void 0===e.code?Cy.UNKNOWN:Ww(e.code);return new Sy(t,e.message||"")}(s);n=new nk(i,r,o,l||null)}else if("documentChange"in t){t.documentChange;const a=t.documentChange;a.document,a.document.name,a.document.updateTime;const i=_k(e,a.document.name),r=mk(a.document.updateTime),o=a.document.createTime?mk(a.document.createTime):rb.min(),s=new u_({mapValue:{fields:a.document.fields}}),l=d_.newFoundDocument(i,r,o,s),u=a.targetIds||[],c=a.removedTargetIds||[];n=new ek(u,c,l.key,l)}else if("documentDelete"in t){t.documentDelete;const a=t.documentDelete;a.document;const i=_k(e,a.document),r=a.readTime?mk(a.readTime):rb.min(),o=d_.newNoDocument(i,r),s=a.removedTargetIds||[];n=new ek([],s,o.key,o)}else if("documentRemove"in t){t.documentRemove;const a=t.documentRemove;a.document;const i=_k(e,a.document),r=a.removedTargetIds||[];n=new ek([],r,i,null)}else{if(!("filter"in t))return by(11601,{Rt:t});{t.filter;const e=t.filter;e.targetId;const{count:a=0,unchangedNames:i}=e,r=new Hw(a,i),o=e.targetId;n=new tk(o,r)}}var a;return n}(this.serializer,e),n=function(e){if(!("targetChange"in e))return rb.min();const t=e.targetChange;return t.targetIds&&t.targetIds.length?rb.min():t.readTime?mk(t.readTime):rb.min()}(e);return this.listener.H_(t,n)}Y_(e){const t={};t.database=kk(this.serializer),t.addTarget=function(e,t){let n;const a=t.target;if(n=B_(a)?{documents:Tk(e,a)}:{query:Ak(e,a).ft},n.targetId=t.targetId,t.resumeToken.approximateByteSize()>0){n.resumeToken=pk(e,t.resumeToken);const a=dk(e,t.expectedCount);null!==a&&(n.expectedCount=a)}else if(t.snapshotVersion.compareTo(rb.min())>0){n.readTime=hk(e,t.snapshotVersion.toTimestamp());const a=dk(e,t.expectedCount);null!==a&&(n.expectedCount=a)}return n}(this.serializer,e);const n=function(e,t){const n=function(e){switch(e){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return by(28987,{purpose:e})}}(t.purpose);return null==n?null:{"goog-listen-tags":n}}(this.serializer,e);n&&(t.labels=n),this.q_(t)}Z_(e){const t={};t.database=kk(this.serializer),t.removeTarget=e,this.q_(t)}}class HC extends jC{constructor(e,t,n,a,i,r){super(e,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",t,n,a,r),this.serializer
2978=i}get X_(){return this.F_>0}start(){this.lastStreamToken=void 0,super.start()}K_(){this.X_&&this.ea([])}j_(e,t){return this.connection.T_("Write",e,t)}J_(e){return wy(!!e.streamToken,31322),this.lastStreamToken=e.streamToken,wy(!e.writeResults||0===e.writeResults.length,55816),this.listener.ta()}onNext(e){wy(!!e.streamToken,12678),this.lastStreamToken=e.streamToken,this.M_.reset();const t=function(e,t){return e&&e.length>0?(wy(void 0!==t,14353),e.map(e=>function(e,t){let n=e.updateTime?mk(e.updateTime):mk(t);return n.isEqual(rb.min())&&(n=mk(t)),new Sw(n,e.transformResults||[])}(e,t))):[]}(e.writeResults,e.commitTime),n=mk(e.commitTime);return this.listener.na(n,t)}ra(){const e={};e.database=kk(this.serializer),this.q_(e)}ea(e){const t={streamToken:this.lastStreamToken,writes:e.map(e=>function(e,t){let n;if(t instanceof Ow)n={update:Sk(e,t.key,t.value)};else if(t instanceof Fw)n={delete:bk(e,t.key)};else if(t instanceof Rw)n={update:Sk(e,t.key,t.data),updateMask:Dk(t.fieldMask)};else{if(!(t instanceof Vw))return by(16599,{Vt:t.type});n={verify:bk(e,t.key)}}return t.fieldTransforms.length>0&&(n.updateTransforms=t.fieldTransforms.map(e=>function(e,t){const n=t.transform;if(n instanceof vw)return{fieldPath:t.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(n instanceof gw)return{fieldPath:t.field.canonicalString(),appendMissingElements:{values:n.elements}};if(n instanceof bw)return{fieldPath:t.field.canonicalString(),removeAllFromArray:{values:n.elements}};if(n instanceof ww)return{fieldPath:t.field.canonicalString(),increment:n.Ae};throw by(20930,{transform:t.transform})}(0,e))),t.precondition.isNone||(n.currentDocument=(a=e,void 0!==(i=t.precondition).updateTime?{updateTime:fk(a,i.updateTime)}:void 0!==i.exists?{exists:i.exists}:by(27497))),n;var a,i}(this.serializer,e))};this.q_(t)}}
2979/**
2980 * @license
2981 * Copyright 2017 Google LLC
2982 *
2983 * Licensed under the Apache License, Version 2.0 (the "License");
2984 * you may not use this file except in compliance with the License.
2985 * You may obtain a copy of the License at
2986 *
2987 *   http://www.apache.org/licenses/LICENSE-2.0
2988 *
2989 * Unless required by applicable law or agreed to in writing, software
2990 * distributed under the License is distributed on an "AS IS" BASIS,
2991 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2992 * See the License for the specific language governing permissions and
2993 * limitations under the License.
2994 */class zC{}class KC extends zC{constructor(e,t,n,a){super(),this.authCredentials=e,this.appCheckCredentials=t,this.connection=n,this.serializer=a,this.ia=!1}sa(){if(this.ia)throw new Sy(Cy.FAILED_PRECONDITION,"The client has already been terminated.")}Go(e,t,n,a){return this.sa(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([i,r])=>this.connection.Go(e,gk(t,n),a,i,r)).catch(e=>{throw"FirebaseError"===e.name?(e.code===Cy.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),e):new Sy(Cy.UNKNOWN,e.toString())})}Ho(e,t,n,a,i){return this.sa(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([r,o])=>this.connection.Ho(e,gk(t,n),a,r,o,i)).catch(e=>{throw"FirebaseError"===e.name?(e.code===Cy.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),e):new Sy(Cy.UNKNOWN,e.toString())})}terminate(){this.ia=!0,this.connection.terminate()}}class WC{constructor(e,t){this.asyncQueue=e,this.onlineStateHandler=t,this.state="Unknown",this.oa=0,this._a=null,this.aa=!0}ua(){0===this.oa&&(this.ca("Unknown"),this._a=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,()=>(this._a=null,this.la("Backend didn't respond within 10 seconds."),this.ca("Offline"),Promise.resolve())))}ha(e){"Online"===this.state?this.ca("Unknown"):(this.oa++,this.oa>=1&&(this.Pa(),this.la("Connection failed 1 times. Most recent error: ".concat(e.toString())),this.ca("Offline")))}set(e){this.Pa(),this.oa=0,"Online"===e&&(this.aa=!1),this.ca(e)}ca(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))}la(e){const t="Could not reach Cloud Firestore backend. ".concat(e,"\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.");this.aa?(vy(t),this.aa=!1):my("OnlineStateTracker",t)}Pa(){null!==this._a&&(this._a.cancel(),this._a=null)}}
2995/**
2996 * @license
2997 * Copyright 2017 Google LLC
2998 *
2999 * Licensed under the Apache License, Version 2.0 (the "License");
3000 * you may not use this file except in compliance with the License.
3001 * You may obtain a copy of the License at
3002 *
3003 *   http://www.apache.org/licenses/LICENSE-2.0
3004 *
3005 * Unless required by applicable law or agreed to in writing, software
3006 * distributed under the License is distributed on an "AS IS" BASIS,
3007 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3008 * See the License for the specific language governing permissions and
3009 * limitations under the License.
3010 */const GC="RemoteStore";class qC{constructor(e,t,n,a,i){this.localStore=e,this.datastore=t,this.asyncQueue=n,this.remoteSyncer={},this.Ta=[],this.Ia=new Map,this.Ea=new Set,this.da=[],this.Aa=i,this.Aa.Oo(e=>{n.enqueueAndForget(async()=>{aS(this)&&(my(GC,"Restarting streams for network reachability change."),await async function(e){const t=ky(e);t.Ea.add(4),await YC(t),t.Ra.set("Unknown"),t.Ea.delete(4),await $C(t)}(this))})}),this.Ra=new WC(n,a)}}async function $C(e){if(aS(e))for(const t of e.da)await t(!0)}async function YC(e){for(const t of e.da)await t(!1)}function JC(e,t){const n=ky(e);n.Ia.has(t.targetId)||(n.Ia.set(t.targetId,t),nS(n)?tS(n):wS(n).O_()&&ZC(n,t))}function QC(e,t){const n=ky(e),a=wS(n);n.Ia.delete(t),a.O_()&&eS(n,t),0===n.Ia.size&&(a.O_()?a.L_():aS(n)&&n.Ra.set("Unknown"))}function ZC(e,t){if(e.Va.Ue(t.targetId),t.resumeToken.approximateByteSize()>0||t.snapshotVersion.compareTo(rb.min())>0){const n=e.remoteSyncer.getRemoteKeysForTarget(t.targetId).size;t=t.withExpectedCount(n)}wS(e).Y_(t)}function eS(e,t){e.Va.Ue(t),wS(e).Z_(t)}function tS(e){e.Va=new ik({getRemoteKeysForTarget:t=>e.remoteSyncer.getRemoteKeysForTarget(t),At:t=>e.Ia.get(t)||null,ht:()=>e.datastore.serializer.databaseId}),wS(e).start(),e.Ra.ua()}function nS(e){return aS(e)&&!wS(e).x_()&&e.Ia.size>0}function aS(e){return 0===ky(e).Ea.size}function iS(e){e.Va=void 0}async function rS(e){e.Ra.set("Online")}async function oS(e){e.Ia.forEach((t,n)=>{ZC(e,t)})}async function sS(e,t){iS(e),nS(e)?(e.Ra.ha(t),tS(e)):e.Ra.set("Unknown")}async function lS(e,t,n){if(e.Ra.set("Online"),t instanceof nk&&2===t.state&&t.cause)try{await async function(e,t){const n=t.cause;for(const a of t.targetIds)e.Ia.has(a)&&(await e.remoteSyncer.rejectListen(a,n),e.Ia.delete(a),e.Va.removeTarget(a))}(e,t)}catch(a){my(GC,"Failed to remove targets %s: %s ",t.targetIds.join(","),a),await uS(e,a)}else if(t instanceof ek?e.Va.Ze(t):t instanceof tk?e.Va.st(t):e.Va.tt(t),!n.isEqual(rb.min()))try{const t=await bC(e.localStore);n.compareTo(t)>=0&&await function(e,t){const n=e.Va.Tt(t);
3010return n.targetChanges.forEach((n,a)=>{if(n.resumeToken.approximateByteSize()>0){const i=e.Ia.get(a);i&&e.Ia.set(a,i.withResumeToken(n.resumeToken,t))}}),n.targetMismatches.forEach((t,n)=>{const a=e.Ia.get(t);if(!a)return;e.Ia.set(t,a.withResumeToken(Ib.EMPTY_BYTE_STRING,a.snapshotVersion)),eS(e,t);const i=new Bk(a.target,t,n,a.sequenceNumber);ZC(e,i)}),e.remoteSyncer.applyRemoteEvent(n)}(e,n)}catch(i){my(GC,"Failed to raise snapshot:",i),await uS(e,i)}}async function uS(e,t,n){if(!hb(t))throw t;e.Ea.add(1),await YC(e),e.Ra.set("Offline"),n||(n=()=>bC(e.localStore)),e.asyncQueue.enqueueRetryable(async()=>{my(GC,"Retrying IndexedDB access"),await n(),e.Ea.delete(1),await $C(e)})}function cS(e,t){return t().catch(n=>uS(e,n,t))}async function dS(e){const t=ky(e),n=kS(t);let a=t.Ta.length>0?t.Ta[t.Ta.length-1].batchId:-1;for(;hS(t);)try{const e=await wC(t.localStore,a);if(null===e){0===t.Ta.length&&n.L_();break}a=e.batchId,pS(t,e)}catch(i){await uS(t,i)}fS(t)&&mS(t)}function hS(e){return aS(e)&&e.Ta.length<10}function pS(e,t){e.Ta.push(t);const n=kS(e);n.O_()&&n.X_&&n.ea(t.mutations)}function fS(e){return aS(e)&&!kS(e).x_()&&e.Ta.length>0}function mS(e){kS(e).start()}async function vS(e){kS(e).ra()}async function gS(e){const t=kS(e);for(const n of e.Ta)t.ea(n.mutations)}async function yS(e,t,n){const a=e.Ta.shift(),i=jw.from(a,t,n);await cS(e,()=>e.remoteSyncer.applySuccessfulWrite(i)),await dS(e)}async function bS(e,t){t&&kS(e).X_&&await async function(e,t){if(function(e){switch(e){case Cy.OK:return by(64938);case Cy.CANCELLED:case Cy.UNKNOWN:case Cy.DEADLINE_EXCEEDED:case Cy.RESOURCE_EXHAUSTED:case Cy.INTERNAL:case Cy.UNAVAILABLE:case Cy.UNAUTHENTICATED:return!1;case Cy.INVALID_ARGUMENT:case Cy.NOT_FOUND:case Cy.ALREADY_EXISTS:case Cy.PERMISSION_DENIED:case Cy.FAILED_PRECONDITION:case Cy.ABORTED:case Cy.OUT_OF_RANGE:case Cy.UNIMPLEMENTED:case Cy.DATA_LOSS:return!0;default:return by(15467,{code:e})}}(n=t.code)&&n!==Cy.ABORTED){const n=e.Ta.shift();kS(e).B_(),await cS(e,()=>e.remoteSyncer.rejectFailedWrite(n.batchId,t)),await dS(e)}var n}(e,t),fS(e)&&mS(e)}async function _S(e,t){const n=ky(e);n.asyncQueue.verifyOperationInProgress(),my(GC,"RemoteStore received new credentials");const a=aS(n);n.Ea.add(3),await YC(n),a&&n.Ra.set("Unknown"),await n.remoteSyncer.handleCredentialChange(t),n.Ea.delete(3),await $C(n)}function wS(e){return e.ma||(e.ma=function(e,t,n){const a=ky(e);return a.sa(),new UC(t,a.connection,a.authCredentials,a.appCheckCredentials,a.serializer,n)}(e.datastore,e.asyncQueue,{Xo:rS.bind(null,e),t_:oS.bind(null,e),r_:sS.bind(null,e),H_:lS.bind(null,e)}),e.da.push(async t=>{t?(e.ma.B_(),nS(e)?tS(e):e.Ra.set("Unknown")):(await e.ma.stop(),iS(e))})),e.ma}function kS(e){return e.fa||(e.fa=function(e,t,n){const a=ky(e);return a.sa(),new HC(t,a.connection,a.authCredentials,a.appCheckCredentials,a.serializer,n)}(e.datastore,e.asyncQueue,{Xo:()=>Promise.resolve(),t_:vS.bind(null,e),r_:bS.bind(null,e),ta:gS.bind(null,e),na:yS.bind(null,e)}),e.da.push(async t=>{t?(e.fa.B_(),await dS(e)):(await e.fa.stop(),e.Ta.length>0&&(my(GC,"Stopping write stream with ".concat(e.Ta.length," pending writes")),e.Ta=[]))})),e.fa
3011/**
3012 * @license
3013 * Copyright 2017 Google LLC
3014 *
3015 * Licensed under the Apache License, Version 2.0 (the "License");
3016 * you may not use this file except in compliance with the License.
3017 * You may obtain a copy of the License at
3018 *
3019 *   http://www.apache.org/licenses/LICENSE-2.0
3020 *
3021 * Unless required by applicable law or agreed to in writing, software
3022 * distributed under the License is distributed on an "AS IS" BASIS,
3023 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3024 * See the License for the specific language governing permissions and
3025 * limitations under the License.
3026 */}class CS{constructor(e,t,n,a,i){this.asyncQueue=e,this.timerId=t,this.targetTimeMs=n,this.op=a,this.removalCallback=i,this.deferred=new Ty,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(e=>{})}get promise(){return this.deferred.promise}static createAndSchedule(e,t,n,a,i){const r=Date.now()+n,o=new CS(e,t,r,a,i);return o.start(n),o}start(e){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),e)}skipDelay(){return this.handleDelayElapsed()}cancel(e){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new Sy(Cy.CANCELLED,"Operation cancelled"+(e?": "+e:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget(()=>null!==this.timerHandle?(this.clearTimeout(),this.op().then(e=>this.deferred.resolve(e))):Promise.resolve())}clearTimeout(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function SS(e,t){if(vy("AsyncQueue","".concat(t,": ").concat(e)),hb(e))return new Sy(Cy.UNAVAILABLE,"".concat(t,": ").concat(e));throw e}
3027/**
3028 * @license
3029 * Copyright 2017 Google LLC
3030 *
3031 * Licensed under the Apache License, Version 2.0 (the "License");
3032 * you may not use this file except in compliance with the License.
3033 * You may obtain a copy of the License at
3034 *
3035 *   http://www.apache.org/licenses/LICENSE-2.0
3036 *
3037 * Unless required by applicable law or agreed to in writing, software
3038 * distributed under the License is distributed on an "AS IS" BASIS,
3039 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3040 * See the License for the specific language governing permissions and
3041 * limitations under the License.
3042 */class TS{static emptySet(e){return new TS(e.comparator)}constructor(e){this.comparator=e?(t,n)=>e(t,n)||Gy.comparator(t.key,n.key):(e,t)=>Gy.comparator(e.key,t.key),this.keyedMap=ew(),this.sortedSet=new wb(this.comparator)}has(e){return null!=this.keyedMap.get(e)}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 t=this.keyedMap.get(e);return t?this.sortedSet.indexOf(t):-1}get size(){return this.sortedSet.size}forEach(e){this.sortedSet.inorderTraversal((t,n)=>(e(t),!1))}add(e){const t=this.delete(e.key);return t.copy(t.keyedMap.insert(e.key,e),t.sortedSet.insert(e,null))}delete(e){const t=this.get(e);return t?this.copy(this.keyedMap.remove(e),this.sortedSet.remove(t)):this}isEqual(e){if(!(e instanceof TS))return!1;if(this.size!==e.size)return!1;const t=this.sortedSet.getIterator(),n=e.sortedSet.getIterator();for(;t.hasNext();){const e=t.getNext().key,a=n.getNext().key;if(!e.isEqual(a))return!1}return!0}toString(){const e=[];return this.forEach(t=>{e.push(t.toString())}),0===e.length?"DocumentSet ()":"DocumentSet (\n  "+e.join("  \n")+"\n)"}copy(e,t){const n=new TS;return n.comparator=this.comparator,n.keyedMap=e,n.sortedSet=t,n}}
3043/**
3044 * @license
3045 * Copyright 2017 Google LLC
3046 *
3047 * Licensed under the Apache License, Version 2.0 (the "License");
3048 * you may not use this file except in compliance with the License.
3049 * You may obtain a copy of the License at
3050 *
3051 *   http://www.apache.org/licenses/LICENSE-2.0
3052 *
3053 * Unless required by applicable law or agreed to in writing, software
3054 * distributed under the License is distributed on an "AS IS" BASIS,
3055 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3056 * See the License for the specific language governing permissions and
3057 * limitations under the License.
3058 */class AS{constructor(){this.ga=new wb(Gy.comparator)}track(e){const t=e.doc.key,n=this.ga.get(t);n?0!==e.type&&3===n.type?this.ga=this.ga.insert(t,e):3===e.type&&1!==n.type?this.ga=this.ga.insert(t,{type:n.type,doc:e.doc}):2===e.type&&2===n.type?this.ga=this.ga.insert(t,{type:2,doc:e.doc}):2===e.type&&0===n.type?this.ga=this.ga.insert(t,{type:0,doc:e.doc}):1===e.type&&0===n.type?this.ga=this.ga.remove(t):1===e.type&&2===n.type?this.ga=this.ga.insert(t,{type:1,doc:n.doc}):0===e.type&&1===n.type?this.ga=this.ga.insert(t,{type:2,doc:e.doc}):by(63341,{Rt:e,pa:n}):this.ga=this.ga.insert(t,e)}ya(){const e=[];return this.ga.inorderTraversal((t,n)=>{e.push(n)}),e}}class ES{constructor(e,t,n,a,i,r,o,s,l){this.query=e,this.docs=t,this.oldDocs=n,this.docChanges=a,this.mutatedKeys=i,this.fromCache=r,this.syncStateChanged=o,this.excludesMetadataChanges=s,this.hasCachedResults=l}static fromInitialDocuments(e,t,n,a,i){const r=[];return t.forEach(e=>{r.push({type:0,doc:e})}),new ES(e,t,TS.emptySet(t),r,n,a,!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)&&z_(this.query,e.query)&&this.docs.isEqual(e.docs)&&this.oldDocs.isEqual(e.oldDocs)))return!1;const t=this.docChanges,n=e.docChanges;if(t.length!==n.length)return!1;for(let a=0;a<t.length;a++)if(t[a].type!==n[a].type||!t[a].doc.isEqual(n[a].doc))return!1;return!0}}
3059/**
3060 * @license
3061 * Copyright 2017 Google LLC
3062 *
3063 * Licensed under the Apache License, Version 2.0 (the "License");
3064 * you may not use this file except in compliance with the License.
3065 * You may obtain a copy of the License at
3066 *
3067 *   http://www.apache.org/licenses/LICENSE-2.0
3068 *
3069 * Unless required by applicable law or agreed to in writing, softw
3069are
3070 * distributed under the License is distributed on an "AS IS" BASIS,
3071 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3072 * See the License for the specific language governing permissions and
3073 * limitations under the License.
3074 */class IS{constructor(){this.wa=void 0,this.Sa=[]}ba(){return this.Sa.some(e=>e.Da())}}class xS{constructor(){this.queries=NS(),this.onlineState="Unknown",this.Ca=new Set}terminate(){!function(e,t){const n=ky(e),a=n.queries;n.queries=NS(),a.forEach((e,n)=>{for(const a of n.Sa)a.onError(t)})}(this,new Sy(Cy.ABORTED,"Firestore shutting down"))}}function NS(){return new Y_(e=>K_(e),z_)}async function PS(e,t){const n=ky(e);let a=3;const i=t.query;let r=n.queries.get(i);r?!r.ba()&&t.Da()&&(a=2):(r=new IS,a=t.Da()?0:1);try{switch(a){case 0:r.wa=await n.onListen(i,!0);break;case 1:r.wa=await n.onListen(i,!1);break;case 2:await n.onFirstRemoteStoreListen(i)}}catch(o){const e=SS(o,"Initialization of query '".concat(W_(t.query),"' failed"));return void t.onError(e)}n.queries.set(i,r),r.Sa.push(t),t.va(n.onlineState),r.wa&&t.Fa(r.wa)&&DS(n)}async function MS(e,t){const n=ky(e),a=t.query;let i=3;const r=n.queries.get(a);if(r){const e=r.Sa.indexOf(t);e>=0&&(r.Sa.splice(e,1),0===r.Sa.length?i=t.Da()?0:1:!r.ba()&&t.Da()&&(i=2))}switch(i){case 0:return n.queries.delete(a),n.onUnlisten(a,!0);case 1:return n.queries.delete(a),n.onUnlisten(a,!1);case 2:return n.onLastRemoteStoreUnlisten(a);default:return}}function OS(e,t){const n=ky(e);let a=!1;for(const i of t){const e=i.query,t=n.queries.get(e);if(t){for(const e of t.Sa)e.Fa(i)&&(a=!0);t.wa=i}}a&&DS(n)}function RS(e,t,n){const a=ky(e),i=a.queries.get(t);if(i)for(const r of i.Sa)r.onError(n);a.queries.delete(t)}function DS(e){e.Ca.forEach(e=>{e.next()})}var LS,BS;(BS=LS||(LS={})).Ma="default",BS.Cache="cache";class FS{constructor(e,t,n){this.query=e,this.xa=t,this.Oa=!1,this.Na=null,this.onlineState="Unknown",this.options=n||{}}Fa(e){if(!this.options.includeMetadataChanges){const t=[];for(const n of e.docChanges)3!==n.type&&t.push(n);e=new ES(e.query,e.docs,e.oldDocs,t,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0,e.hasCachedResults)}let t=!1;return this.Oa?this.Ba(e)&&(this.xa.next(e),t=!0):this.La(e,this.onlineState)&&(this.ka(e),t=!0),this.Na=e,t}onError(e){this.xa.error(e)}va(e){this.onlineState=e;let t=!1;return this.Na&&!this.Oa&&this.La(this.Na,e)&&(this.ka(this.Na),t=!0),t}La(e,t){if(!e.fromCache)return!0;if(!this.Da())return!0;const n="Offline"!==t;return(!this.options.qa||!n)&&(!e.docs.isEmpty()||e.hasCachedResults||"Offline"===t)}Ba(e){if(e.docChanges.length>0)return!0;const t=this.Na&&this.Na.hasPendingWrites!==e.hasPendingWrites;return!(!e.syncStateChanged&&!t)&&!0===this.options.includeMetadataChanges}ka(e){e=ES.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache,e.hasCachedResults),this.Oa=!0,this.xa.next(e)}Da(){return this.options.source!==LS.Cache}}
3075/**
3076 * @license
3077 * Copyright 2017 Google LLC
3078 *
3079 * Licensed under the Apache License, Version 2.0 (the "License");
3080 * you may not use this file except in compliance with the License.
3081 * You may obtain a copy of the License at
3082 *
3083 *   http://www.apache.org/licenses/LICENSE-2.0
3084 *
3085 * Unless required by applicable law or agreed to in writing, software
3086 * distributed under the License is distributed on an "AS IS" BASIS,
3087 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3088 * See the License for the specific language governing permissions and
3089 * limitations under the License.
3090 */class VS{constructor(e){this.key=e}}class XS{constructor(e){this.key=e}}class jS{constructor(e,t){this.query=e,this.Ya=t,this.Za=null,this.hasCachedResults=!1,this.current=!1,this.Xa=sw(),this.mutatedKeys=sw(),this.eu=q_(e),this.tu=new TS(this.eu)}get nu(){return this.Ya}ru(e,t){const n=t?t.iu:new AS,a=t?t.tu:this.tu;let i=t?t.mutatedKeys:this.mutatedKeys,r=a,o=!1;const s="F"===this.query.limitType&&a.size===this.query.limit?a.last():null,l="L"===this.query.limitType&&a.size===this.query.limit?a.first():null;if(e.inorderTraversal((e,t)=>{const u=a.get(e),c=G_(this.query,t)?t:null,d=!!u&&this.mutatedKeys.has(u.key),h=!!c&&(c.hasLocalMutations||this.mutatedKeys.has(c.key)&&c.hasCommittedMutations);let p=!1;u&&c?u.data.isEqual(c.data)?d!==h&&(n.track({type:3,doc:c}),p=!0):this.su(u,c)||(n.track({type:2,doc:c}),p=!0,(s&&this.eu(c,s)>0||l&&this.eu(c,l)<0)&&(o=!0)):!u&&c?(n.track({type:0,doc:c}),p=!0):u&&!c&&(n.track({type:1,doc:u}),p=!0,(s||l)&&(o=!0)),p&&(c?(r=r.add(c),i=h?i.add(e):i.delete(e)):(r=r.delete(e),i=i.delete(e)))}),null!==this.query.limit)for(;r.size>this.query.limit;){const e="F"===this.query.limitType?r.last():r.first();r=r.delete(e.key),i=i.delete(e.key),n.track({type:1,doc:e})}return{tu:r,iu:n,Cs:o,mutatedKeys:i}}su(e,t){return e.hasLocalMutations&&t.hasCommittedMutations&&!t.hasLocalMutations}
3090applyChanges(e,t,n,a){const i=this.tu;this.tu=e.tu,this.mutatedKeys=e.mutatedKeys;const r=e.iu.ya();r.sort((e,t)=>function(e,t){const n=e=>{switch(e){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return by(20277,{Rt:e})}};return n(e)-n(t)}(e.type,t.type)||this.eu(e.doc,t.doc)),this.ou(n),a=null!=a&&a;const o=t&&!a?this._u():[],s=0===this.Xa.size&&this.current&&!a?1:0,l=s!==this.Za;return this.Za=s,0!==r.length||l?{snapshot:new ES(this.query,e.tu,i,r,e.mutatedKeys,0===s,l,!1,!!n&&n.resumeToken.approximateByteSize()>0),au:o}:{au:o}}va(e){return this.current&&"Offline"===e?(this.current=!1,this.applyChanges({tu:this.tu,iu:new AS,mutatedKeys:this.mutatedKeys,Cs:!1},!1)):{au:[]}}uu(e){return!this.Ya.has(e)&&!!this.tu.has(e)&&!this.tu.get(e).hasLocalMutations}ou(e){e&&(e.addedDocuments.forEach(e=>this.Ya=this.Ya.add(e)),e.modifiedDocuments.forEach(e=>{}),e.removedDocuments.forEach(e=>this.Ya=this.Ya.delete(e)),this.current=e.current)}_u(){if(!this.current)return[];const e=this.Xa;this.Xa=sw(),this.tu.forEach(e=>{this.uu(e.key)&&(this.Xa=this.Xa.add(e.key))});const t=[];return e.forEach(e=>{this.Xa.has(e)||t.push(new XS(e))}),this.Xa.forEach(n=>{e.has(n)||t.push(new VS(n))}),t}cu(e){this.Ya=e.Qs,this.Xa=sw();const t=this.ru(e.documents);return this.applyChanges(t,!0)}lu(){return ES.fromInitialDocuments(this.query,this.tu,this.mutatedKeys,0===this.Za,this.hasCachedResults)}}const US="SyncEngine";class HS{constructor(e,t,n){this.query=e,this.targetId=t,this.view=n}}class zS{constructor(e){this.key=e,this.hu=!1}}class KS{constructor(e,t,n,a,i,r){this.localStore=e,this.remoteStore=t,this.eventManager=n,this.sharedClientState=a,this.currentUser=i,this.maxConcurrentLimboResolutions=r,this.Pu={},this.Tu=new Y_(e=>K_(e),z_),this.Iu=new Map,this.Eu=new Set,this.du=new wb(Gy.comparator),this.Au=new Map,this.Ru=new aC,this.Vu={},this.mu=new Map,this.fu=Kk.cr(),this.onlineState="Unknown",this.gu=void 0}get isPrimaryClient(){return!0===this.gu}}async function WS(e,t,n=!0){const a=pT(e);let i;const r=a.Tu.get(t);return r?(a.sharedClientState.addLocalQueryTarget(r.targetId),i=r.view.lu()):i=await qS(a,t,n,!0),i}async function GS(e,t){const n=pT(e);await qS(n,t,!0,!1)}async function qS(e,t,n,a){const i=await function(e,t){const n=ky(e);return n.persistence.runTransaction("Allocate target","readwrite",e=>{let a;return n.Pi.getTargetData(e,t).next(i=>i?(a=i,db.resolve(a)):n.Pi.allocateTargetId(e).next(i=>(a=new Bk(t,i,"TargetPurposeListen",e.currentSequenceNumber),n.Pi.addTargetData(e,a).next(()=>a))))}).then(e=>{const a=n.Ms.get(e.targetId);return(null===a||e.snapshotVersion.compareTo(a.snapshotVersion)>0)&&(n.Ms=n.Ms.insert(e.targetId,e),n.xs.set(t,e.targetId)),e})}
3090(e.localStore,U_(t)),r=i.targetId,o=e.sharedClientState.addLocalQueryTarget(r,n);let s;return a&&(s=await async function(e,t,n,a,i){e.pu=(t,n,a)=>async function(e,t,n,a){let i=t.view.ru(n);i.Cs&&(i=await CC(e.localStore,t.query,!1).then(({documents:e})=>t.view.ru(e,i)));const r=a&&a.targetChanges.get(t.targetId),o=a&&null!=a.targetMismatches.get(t.targetId),s=t.view.applyChanges(i,e.isPrimaryClient,r,o);return sT(e,t.targetId,s.au),s.snapshot}(e,t,n,a);const r=await CC(e.localStore,t,!0),o=new jS(t,r.Qs),s=o.ru(r.documents),l=Zw.createSynthesizedTargetChangeForCurrentChange(n,a&&"Offline"!==e.onlineState,i),u=o.applyChanges(s,e.isPrimaryClient,l);sT(e,n,u.au);const c=new HS(t,n,o);return e.Tu.set(t,c),e.Iu.has(n)?e.Iu.get(n).push(t):e.Iu.set(n,[t]),u.snapshot}(e,t,r,"current"===o,i.resumeToken)),e.isPrimaryClient&&n&&JC(e.remoteStore,i),s}async function $S(e,t,n){const a=ky(e),i=a.Tu.get(t),r=a.Iu.get(i.targetId);if(r.length>1)return a.Iu.set(i.targetId,r.filter(e=>!z_(e,t))),void a.Tu.delete(t);a.isPrimaryClient?(a.sharedClientState.removeLocalQueryTarget(i.targetId),a.sharedClientState.isActiveQueryTarget(i.targetId)||await kC(a.localStore,i.targetId,!1).then(()=>{a.sharedClientState.clearQueryState(i.targetId),n&&QC(a.remoteStore,i.targetId),rT(a,i.targetId)}).catch(cb)):(rT(a,i.targetId),await kC(a.localStore,i.targetId,!0))}async function YS(e,t){const n=ky(e),a=n.Tu.get(t),i=n.Iu.get(a.targetId);n.isPrimaryClient&&1===i.length&&(n.sharedClientState.removeLocalQueryTarget(a.targetId),QC(n.remoteStore,a.targetId))}async function JS(e,t,n){const a=function(e){const t=ky(e);return t.remoteStore.remoteSyncer.applySuccessfulWrite=tT.bind(null,t),t.remoteStore.remoteSyncer.rejectFailedWrite=nT.bind(null,t),t}(e);try{const e=await function(e,t){const n=ky(e),a=ib.now(),i=t.reduce((e,t)=>e.add(t.key),sw());let r,o;return n.persistence.runTransaction("Locally write mutations","readwrite",e=>{let s=Q_(),l=sw();return n.Ns.getEntries(e,i).next(e=>{s=e,s.forEach((e,t)=>{t.isValidDocument()||(l=l.add(e))})}).next(()=>n.localDocuments.getOverlayedDocuments(e,s)).next(i=>{r=i;const o=[];for(const e of t){const t=Pw(e,r.get(e.key).overlayedDocument);null!=t&&o.push(new Rw(e.key,t,c_(t.value.mapValue),Tw.exists(!0)))}
3090return n.mutationQueue.addMutationBatch(e,a,o,t)}).next(t=>{o=t;const a=t.applyToLocalDocumentSet(r,l);return n.documentOverlayCache.saveOverlays(e,t.batchId,a)})}).then(()=>({batchId:o.batchId,changes:tw(r)}))}(a.localStore,t);a.sharedClientState.addPendingMutation(e.batchId),function(e,t,n){let a=e.Vu[e.currentUser.toKey()];a||(a=new wb(Ly)),a=a.insert(t,n),e.Vu[e.currentUser.toKey()]=a}(a,e.batchId,n),await cT(a,e.changes),await dS(a.remoteStore)}catch(i){const e=SS(i,"Failed to persist write");n.reject(e)}}async function QS(e,t){const n=ky(e);try{const e=await _C(n.localStore,t);t.targetChanges.forEach((e,t)=>{const a=n.Au.get(t);a&&(wy(e.addedDocuments.size+e.modifiedDocuments.size+e.removedDocuments.size<=1,22616),e.addedDocuments.size>0?a.hu=!0:e.modifiedDocuments.size>0?wy(a.hu,14607):e.removedDocuments.size>0&&(wy(a.hu,42227),a.hu=!1))}),await cT(n,e,t)}catch(a){await cb(a)}}function ZS(e,t,n){const a=ky(e);if(a.isPrimaryClient&&0===n||!a.isPrimaryClient&&1===n){const e=[];a.Tu.forEach((n,a)=>{const i=a.view.va(t);i.snapshot&&e.push(i.snapshot)}),function(e,t){const n=ky(e);n.onlineState=t;let a=!1;n.queries.forEach((e,n)=>{for(const i of n.Sa)i.va(t)&&(a=!0)}),a&&DS(n)}(a.eventManager,t),e.length&&a.Pu.H_(e),a.onlineState=t,a.isPrimaryClient&&a.sharedClientState.setOnlineState(t)}}async function eT(e,t,n){const a=ky(e);a.sharedClientState.updateQueryState(t,"rejected",n);const i=a.Au.get(t),r=i&&i.key;if(r){let e=new wb(Gy.comparator);e=e.insert(r,d_.newNoDocument(r,rb.min()));const n=sw().add(r),i=new Qw(rb.min(),new Map,new wb(Ly),e,n);await QS(a,i),a.du=a.du.remove(r),a.Au.delete(t),uT(a)}else await kC(a.localStore,t,!1).then(()=>rT(a,t,n)).catch(cb)}async function tT(e,t){const n=ky(e),a=t.batch.batchId;try{const e=await function(e,t){const n=ky(e);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",e=>{const a=t.batch.keys(),i=n.Ns.newChangeBuffer({trackRemovals:!0});return function(e,t,n,a){const i=n.batch,r=i.keys();let o=db.resolve();return r.forEach(e=>{o=o.next(()=>a.getEntry(t,e)).next(t=>{const r=n.docVersions.get(e);wy(null!==r,48541),t.version.compareTo(r)<0&&(i.applyToRemoteDocument(t,n),t.isValidDocument()&&(t.setReadTime(n.commitVersion),a.addEntry(t)))})}),o.next(()=>e.mutationQueue.removeMutationBatch(t,i))}(n,e,t,i).next(()=>i.apply(e)).next(()=>n.mutationQueue.performConsistencyCheck(e)).next(()=>n.documentOverlayCache.removeOverlaysForBatchId(e,a,t.batch.batchId)).next(()=>n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(e,function(e){let t=sw();for(let n=0;n<e.mutationResults.length;++n)e.mutationResults[n].transformResults.length>0&&(t=t.add(e.batch.mutations[n].key));return t}(t))).next(()=>n.localDocuments.getDocuments(e,a))})}(n.localStore,t);iT(n,a,null),aT(n,a),n.sharedClientState.updateMutationState(a,"acknowledged"),await cT(n,e)}catch(i){await cb(i)}}async function nT(e,t,n){const a=ky(e);try{const e=await function(e,t){const n=ky(e);return n.persistence.runTransaction("Reject batch","readwrite-primary",e=>{let a;
3090return n.mutationQueue.lookupMutationBatch(e,t).next(t=>(wy(null!==t,37113),a=t.keys(),n.mutationQueue.removeMutationBatch(e,t))).next(()=>n.mutationQueue.performConsistencyCheck(e)).next(()=>n.documentOverlayCache.removeOverlaysForBatchId(e,a,t)).next(()=>n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(e,a)).next(()=>n.localDocuments.getDocuments(e,a))})}(a.localStore,t);iT(a,t,n),aT(a,t),a.sharedClientState.updateMutationState(t,"rejected",n),await cT(a,e)}catch(i){await cb(i)}}function aT(e,t){(e.mu.get(t)||[]).forEach(e=>{e.resolve()}),e.mu.delete(t)}function iT(e,t,n){const a=ky(e);let i=a.Vu[a.currentUser.toKey()];if(i){const e=i.get(t);e&&(n?e.reject(n):e.resolve(),i=i.remove(t)),a.Vu[a.currentUser.toKey()]=i}}function rT(e,t,n=null){e.sharedClientState.removeLocalQueryTarget(t);for(const a of e.Iu.get(t))e.Tu.delete(a),n&&e.Pu.yu(a,n);e.Iu.delete(t),e.isPrimaryClient&&e.Ru.jr(t).forEach(t=>{e.Ru.containsKey(t)||oT(e,t)})}function oT(e,t){e.Eu.delete(t.path.canonicalString());const n=e.du.get(t);null!==n&&(QC(e.remoteStore,n),e.du=e.du.remove(t),e.Au.delete(n),uT(e))}function sT(e,t,n){for(const a of n)a instanceof VS?(e.Ru.addReference(a.key,t),lT(e,a)):a instanceof XS?(my(US,"Document no longer in limbo: "+a.key),e.Ru.removeReference(a.key,t),e.Ru.containsKey(a.key)||oT(e,a.key)):by(19791,{wu:a})}function lT(e,t){const n=t.key,a=n.path.canonicalString();e.du.get(n)||e.Eu.has(a)||(my(US,"New document in limbo: "+n),e.Eu.add(a),uT(e))}function uT(e){for(;e.Eu.size>0&&e.du.size<e.maxConcurrentLimboResolutions;){const t=e.Eu.values().next().value;e.Eu.delete(t);const n=new Gy(zy.fromString(t)),a=e.fu.next();e.Au.set(a,new zS(n)),e.du=e.du.insert(n,a),JC(e.remoteStore,new Bk(U_(V_(n.path)),a,"TargetPurposeLimboResolution",pb.ce))}}async function cT(e,t,n){const a=ky(e),i=[],r=[],o=[];a.Tu.isEmpty()||(a.Tu.forEach((e,s)=>{o.push(a.pu(s,t,n).then(e=>{var t;if((e||n)&&a.isPrimaryClient){const i=e?!e.fromCache:null==(t=null==n?void 0:n.targetChanges.get(s.targetId))?void 0:t.current;a.sharedClientState.updateQueryState(s.targetId,i?"current":"not-current")}if(e){i.push(e);const t=pC.As(s.targetId,e);r.push(t)}}))}),await Promise.all(o),a.Pu.H_(i),await async function(e,t){const n=ky(e);try{await n.persistence.runTransaction("notifyLocalViewChanges","readwrite",e=>db.forEach(t,t=>db.forEach(t.Es,a=>n.persistence.referenceDelegate.addReference(e,t.targetId,a)).next(()=>db.forEach(t.ds,a=>n.persistence.referenceDelegate.removeReference(e,t.targetId,a)))))}catch(a){if(!hb(a))throw a;my(vC,"Failed to update sequence numbers: "+a)}for(const i of t){const e=i.targetId;if(!i.fromCache){const t=n.Ms.get(e),a=t.snapshotVersion,i=t.withLastLimboFreeSnapshotVersion(a);n.Ms=n.Ms.insert(e,i)}}}(a.localStore,r))}async function dT(e,t){const n=ky(e);if(!n.currentUser.isEqual(t)){my(US,"User change. New user:",t.toKey());const e=await yC(n.localStore,t);n.currentUser=t,i="'waitForPendingWrites' promise is rejected due to a user change.",(a=n).mu.forEach(e=>{e.forEach(e=>{e.reject(new Sy(Cy.CANCELLED,i))})}),a.mu.clear(),n.sharedClientState.handleUserChange(t,e.removedBatchIds,e.addedBatchIds),await cT(n,e.Ls)}var a,i}function hT(e,t){const n=ky(e),a=n.Au.get(t);if(a&&a.hu)return sw().add(a.key);{let e=sw();const a=n.Iu.get(t);if(!a)return e;for(const t of a){const a=n.Tu.get(t);e=e.unionWith(a.view.nu)}return e}}function pT(e){const t=ky(e);return t.remoteStore.remoteSyncer.applyRemoteEvent=QS.bind(null,t),t.remoteStore.remoteSyncer.getRemoteKeysForTarget=hT.bind(null,t),t.remoteStore.remoteSyncer.rejectListen=eT.bind(null,t),t.Pu.H_=OS.bind(null,t.eventManager),t.Pu.yu=RS.bind(null,t.eventManager),t}class fT{constructor(){this.kind="memory",this.synchronizeTabs=!1}async initialize(e){this.serializer=FC(e.databaseInfo.databaseId),this.sharedClientState=this.Du(e),this.persistence=this.Cu(e),await this.persistence.start(),this.localStore=this.vu(e),this.gcScheduler=this.Fu(e,this.localStore),this.indexBackfillerScheduler=this.Mu(e,this.localStore)}Fu(e,t){return null}Mu(e,t){return null}vu(e){return function(e,t,n,a){return new gC(e,t,n,a)}(this.persistence,new mC,e.initialUser,this.serializer)}Cu(e){return new uC(dC.mi,this.serializer)}Du(e){return new TC}async terminate(){var e,t;null==(e=this.gcScheduler)||e.stop(),null==(t=this.indexBackfillerScheduler)||t.stop(),this.sharedCl
3090ientState.shutdown(),await this.persistence.shutdown()}}fT.provider={build:()=>new fT};class mT extends fT{constructor(e){super(),this.cacheSizeBytes=e}Fu(e,t){wy(this.persistence.referenceDelegate instanceof hC,46915);const n=this.persistence.referenceDelegate.garbageCollector;return new $k(n,e.asyncQueue,t)}Cu(e){const t=void 0!==this.cacheSizeBytes?zk.withCacheSize(this.cacheSizeBytes):zk.DEFAULT;return new uC(e=>hC.mi(e,t),this.serializer)}}class vT{async initialize(e,t){this.localStore||(this.localStore=e.localStore,this.sharedClientState=e.sharedClientState,this.datastore=this.createDatastore(t),this.remoteStore=this.createRemoteStore(t),this.eventManager=this.createEventManager(t),this.syncEngine=this.createSyncEngine(t,!e.synchronizeTabs),this.sharedClientState.onlineStateHandler=e=>ZS(this.syncEngine,e,1),this.remoteStore.remoteSyncer.handleCredentialChange=dT.bind(null,this.syncEngine),await async function(e,t){const n=ky(e);t?(n.Ea.delete(2),await $C(n)):t||(n.Ea.add(2),await YC(n),n.Ra.set("Unknown"))}(this.remoteStore,this.syncEngine.isPrimaryClient))}createEventManager(e){return new xS}createDatastore(e){const t=FC(e.databaseInfo.databaseId),n=(a=e.databaseInfo,new LC(a));var a;return function(e,t,n,a){return new KC(e,t,n,a)}(e.authCredentials,e.appCheckCredentials,n,t)}createRemoteStore(e){return t=this.localStore,n=this.datastore,a=e.asyncQueue,i=e=>ZS(this.syncEngine,e,0),r=IC.v()?new IC:new AC,new qC(t,n,a,i,r);var t,n,a,i,r}createSyncEngine(e,t){return function(e,t,n,a,i,r,o){const s=new KS(e,t,n,a,i,r);return o&&(s.gu=!0),s}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,e.initialUser,e.maxConcurrentLimboResolutions,t)}async terminate(){var e,t;await async function(e){const t=ky(e);my(GC,"RemoteStore shutting down."),t.Ea.add(5),await YC(t),t.Aa.shutdown(),t.Ra.set("Unknown")}(this.remoteStore),null==(e=this.datastore)||e.terminate(),null==(t=this.eventManager)||t.terminate()}}vT.provider={build:()=>new vT};
3091/**
3092 * @license
3093 * Copyright 2020 Google LLC
3094 *
3095 * Licensed under the Apache License, Version 2.0 (the "License");
3096 * you may not use this file except in compliance with the License.
3097 * You may obtain a copy of the License at
3098 *
3099 *   http://www.apache.org/licenses/LICENSE-2.0
3100 *
3101 * Unless required by applicable law or agreed to in writing, software
3102 * distributed under the License is distributed on an "AS IS" BASIS,
3103 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3104 * See the License for the specific language governing permissions and
3105 * limitations under the License.
3106 */
3107/**
3108 * @license
3109 * Copyright 2017 Google LLC
3110 *
3111 * Licensed under the Apache License, Version 2.0 (the "License");
3112 * you may not use this file except in compliance with the License.
3113 * You may obtain a copy of the License at
3114 *
3115 *   http://www.apache.org/licenses/LICENSE-2.0
3116 *
3117 * Unless required by applicable law or agreed to in writing, software
3118 * distributed under the License is distributed on an "AS IS" BASIS,
3119 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3120 * See the License for the specific language governing permissions and
3121 * limitations under the License.
3122 */
3123class gT{constructor(e){this.observer=e,this.muted=!1}next(e){this.muted||this.observer.next&&this.Ou(this.observer.next,e)}error(e){this.muted||(this.observer.error?this.Ou(this.observer.error,e):vy("Uncaught Error in snapshot listener:",e.toString()))}Nu(){this.muted=!0}Ou(e,t){setTimeout(()=>{this.muted||e(t)},0)}}
3124/**
3125 * @license
3126 * Copyright 2017 Google LLC
3127 *
3128 * Licensed under the Apache License, Version 2.0 (the "License");
3129 * you may not use this file except in compliance with the License.
3130 * You may obtain a copy of the License at
3131 *
3132 *   http://www.apache.org/licenses/LICENSE-2.0
3133 *
3134 * Unless required by applicable law or agreed to in writing, software
3135 * distributed under the License is distributed on an "AS IS" BASIS,
3136 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3137 * See the License for the specific language governing permissions and
3138 * limitations under the License.
3139 */const yT="FirestoreClient";class bT{constructor(e,t,n,a,i){this.authCredentials=e,this.appCheckCredentials=t,this.asyncQueue=n,this.databaseInfo=a,this.user=dy.UNAUTHENTICATED,this.clientId=Dy.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this._uninitializedComponentsProvider=i,this.authCredentials.start(n,async e=>{my(yT,"Received user=",e.uid),await this.authCredentialListener(e),this.user=e}),this.appCheckCredentials.start(n,e=>(my(yT,"Received new app check token=",e),this.appCheckCredentialListener(e,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 Ty;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(ZH){const n=SS(ZH,"Failed to shutdown persistence");e.reject(n)}}),e.promise}}async function _T(e,t){e.asyncQueue.verifyOperationInProgress(),my(yT,"Initializing OfflineComponentProvider");const n=e.configuration;await t.initialize(n);let a=n.initialUser;e.setCredentialChangeListener(async e=>{a.isEqual(e)||(await yC(t.localStore,e),a=e)}),t.persistence.setDatabaseDeletedListener(()=>e.terminate()),e._offlineComponents=t}async function wT(e,t){e.asyncQueue.verifyOperationInProgress();const n=await async function(e){if(!e._offlineComponents)if(e._uninitializedComponentsProvider){my(yT,"Using user provided OfflineComponentProvider");try{await _T(e,e._uninitializedComponentsProvider._offline)}catch(t){const i=t;if(!("FirebaseError"===(n=i).name?n.code===Cy.FAILED_PRECONDITION||n.code===Cy.UNIMPLEMENT
3139ED:!("undefined"!=typeof DOMException&&n instanceof DOMException)||22===n.code||20===n.code||11===n.code))throw i;gy("Error using user provided cache. Falling back to memory cache: "+i),await _T(e,new fT)}}else my(yT,"Using default OfflineComponentProvider"),await _T(e,new mT(void 0));var n;return e._offlineComponents}(e);my(yT,"Initializing OnlineComponentProvider"),await t.initialize(n,e.configuration),e.setCredentialChangeListener(e=>_S(t.remoteStore,e)),e.setAppCheckTokenChangeListener((e,n)=>_S(t.remoteStore,n)),e._onlineComponents=t}async function kT(e){return e._onlineComponents||(e._uninitializedComponentsProvider?(my(yT,"Using user provided OnlineComponentProvider"),await wT(e,e._uninitializedComponentsProvider._online)):(my(yT,"Using default OnlineComponentProvider"),await wT(e,new vT))),e._onlineComponents}async function CT(e){const t=await kT(e),n=t.eventManager;return n.onListen=WS.bind(null,t.syncEngine),n.onUnlisten=$S.bind(null,t.syncEngine),n.onFirstRemoteStoreListen=GS.bind(null,t.syncEngine),n.onLastRemoteStoreUnlisten=YS.bind(null,t.syncEngine),n}
3140/**
3141 * @license
3142 * Copyright 2023 Google LLC
3143 *
3144 * Licensed under the Apache License, Version 2.0 (the "License");
3145 * you may not use this file except in compliance with the License.
3146 * You may obtain a copy of the License at
3147 *
3148 *   http://www.apache.org/licenses/LICENSE-2.0
3149 *
3150 * Unless required by applicable law or agreed to in writing, software
3151 * distributed under the License is distributed on an "AS IS" BASIS,
3152 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3153 * See the License for the specific language governing permissions and
3154 * limitations under the License.
3155 */
3156function ST(e){const t={};return void 0!==e.timeoutSeconds&&(t.timeoutSeconds=e.timeoutSeconds),t
3157/**
3158 * @license
3159 * Copyright 2020 Google LLC
3160 *
3161 * Licensed under the Apache License, Version 2.0 (the "License");
3162 * you may not use this file except in compliance with the License.
3163 * You may obtain a copy of the License at
3164 *
3165 *   http://www.apache.org/licenses/LICENSE-2.0
3166 *
3167 * Unless required by applicable law or agreed to in writing, software
3168 * distributed under the License is distributed on an "AS IS" BASIS,
3169 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3170 * See the License for the specific language governing permissions and
3171 * limitations under the License.
3172 */}const TT=new Map,AT="firestore.googleapis.com",ET=!0;
3173/**
3174 * @license
3175 * Copyright 2020 Google LLC
3176 *
3177 * Licensed under the Apache License, Version 2.0 (the "License");
3178 * you may not use this file except in compliance with the License.
3179 * You may obtain a copy of the License at
3180 *
3181 *   http://www.apache.org/licenses/LICENSE-2.0
3182 *
3183 * Unless required by applicable law or agreed to in writing, software
3184 * distributed under the License is distributed on an "AS IS" BASIS,
3185 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3186 * See the License for the specific language governing permissions and
3187 * limitations under the License.
3188 */class IT{constructor(e){var t,n;if(void 0===e.host){if(void 0!==e.ssl)throw new Sy(Cy.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host=AT,this.ssl=ET}else this.host=e.host,this.ssl=null!=(t=e.ssl)?t:ET;if(this.isUsingEmulator=void 0!==e.emulatorOptions,this.credentials=e.credentials,this.ignoreUndefinedProperties=!!e.ignoreUndefinedProperties,this.localCache=e.localCache,void 0===e.cacheSizeBytes)this.cacheSizeBytes=Hk;else{if(-1!==e.cacheSizeBytes&&e.cacheSizeBytes<1048576)throw new Sy(Cy.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=e.cacheSizeBytes}(function(e,t,n,a){if(!0===t&&!0===a)throw new Sy(Cy.INVALID_ARGUMENT,"".concat(e," and ").concat(n," cannot be used together."))})("experimentalForceLongPolling",e.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",e.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!e.experimentalForceLongPolling,this.experimentalForceLongPolling?this.experimentalAutoDetectLongPolling=!1:void 0===e.experimentalAutoDetectLongPolling?this.experimentalAutoDetectLongPolling=!0:this.experimentalAutoDetectLongPolling=!!e.experimentalAutoDetectLongPolling,this.experimentalLongPollingOptions=ST(null!=(n=e.experimentalLongPollingOptions)?n:{}),function(e){if(void 0!==e.timeoutSeconds){if(isNaN(e.timeoutSeconds))throw new Sy(Cy.INVALID_ARGUMENT,"invali
3188d long polling timeout: ".concat(e.timeoutSeconds," (must not be NaN)"));if(e.timeoutSeconds<5)throw new Sy(Cy.INVALID_ARGUMENT,"invalid long polling timeout: ".concat(e.timeoutSeconds," (minimum allowed value is 5)"));if(e.timeoutSeconds>30)throw new Sy(Cy.INVALID_ARGUMENT,"invalid long polling timeout: ".concat(e.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&&(t=this.experimentalLongPollingOptions,n=e.experimentalLongPollingOptions,t.timeoutSeconds===n.timeoutSeconds)&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams;var t,n}}class xT{constructor(e,t,n,a){this._authCredentials=e,this._appCheckCredentials=t,this._databaseId=n,this._app=a,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new IT({}),this._settingsFrozen=!1,this._emulatorOptions={},this._terminateTask="notTerminated"}get app(){if(!this._app)throw new Sy(Cy.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"notTerminated"!==this._terminateTask}_setSettings(e){if(this._settingsFrozen)throw new Sy(Cy.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 IT(e),this._emulatorOptions=e.emulatorOptions||{},void 0!==e.credentials&&(this._authCredentials=function(e){if(!e)return new Ey;switch(e.type){case"firstParty":return new Py(e.sessionIndex||"0",e.iamToken||null,e.authTokenFactory||null);case"provider":return e.client;default:throw new Sy(Cy.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"notTerminated"===this._terminateTask&&(this._terminateTask=this._terminate()),this._terminateTask}async _restart(){"notTerminated"===this._terminateTask?await this._terminate():this._terminateTask="notTerminated"}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return function(e){const t=TT.get(e);t&&(my("ComponentProvider","Removing Datastore"),TT.delete(e),t.terminate())}(this),Promise.resolve()}}
3189/**
3190 * @license
3191 * Copyright 2020 Google LLC
3192 *
3193 * Licensed under the Apache License, Version 2.0 (the "License");
3194 * you may not use this file except in compliance with the License.
3195 * You may obtain a copy of the License at
3196 *
3197 *   http://www.apache.org/licenses/LICENSE-2.0
3198 *
3199 * Unless required by applicable law or agreed to in writing, software
3200 * distributed under the License is distributed on an "AS IS" BASIS,
3201 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3202 * See the License for the specific language governing permissions and
3203 * limitations under the License.
3204 */
3205class NT{constructor(e,t,n){this.converter=t,this._query=n,this.type="query",this.firestore=e}withConverter(e){return new NT(this.firestore,e,this._query)}}class PT{constructor(e,t,n){this.converter=t,this._key=n,this.type="document",this.firestore=e}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new MT(this.firestore,this.converter,this._key.path.popLast())}withConverter(e){return new PT(this.firestore,e,this._key)}toJSON(){return{type:PT._jsonSchemaVersion,referencePath:this._key.toString()}}static fromJSON(e,t,n){if(tb(t,PT._jsonSchema))return new PT(e,n||null,new Gy(zy.fromString(t.referencePath)))}}PT._jsonSchemaVersion="firestore/documentReference/1.0",PT._jsonSchema={type:eb("string",PT._jsonSchemaVersion),referencePath:eb("string")};class MT extends NT{constructor(e,t,n){super(e,t,V_(n)),this._path=n,this.type="collection"}get id(){return this._query.path.lastSegment()}
3205get path(){return this._query.path.canonicalString()}get parent(){const e=this._path.popLast();return e.isEmpty()?null:new PT(this.firestore,null,new Gy(e))}withConverter(e){return new MT(this.firestore,e,this._path)}}function OT(e,t,...n){if(e=bc(e),qy("collection","path",t),e instanceof xT){const a=zy.fromString(t,...n);return Yy(a),new MT(e,null,a)}{if(!(e instanceof PT||e instanceof MT))throw new Sy(Cy.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const a=e._path.child(zy.fromString(t,...n));return Yy(a),new MT(e.firestore,null,a)}}function RT(e,t,...n){if(e=bc(e),1===arguments.length&&(t=Dy.newId()),qy("doc","path",t),e instanceof xT){const a=zy.fromString(t,...n);return $y(a),new PT(e,null,new Gy(a))}{if(!(e instanceof PT||e instanceof MT))throw new Sy(Cy.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const a=e._path.child(zy.fromString(t,...n));return $y(a),new PT(e.firestore,e instanceof MT?e.converter:null,new Gy(a))}}
3206/**
3207 * @license
3208 * Copyright 2020 Google LLC
3209 *
3210 * Licensed under the Apache License, Version 2.0 (the "License");
3211 * you may not use this file except in compliance with the License.
3212 * You may obtain a copy of the License at
3213 *
3214 *   http://www.apache.org/licenses/LICENSE-2.0
3215 *
3216 * Unless required by applicable law or agreed to in writing, software
3217 * distributed under the License is distributed on an "AS IS" BASIS,
3218 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3219 * See the License for the specific language governing permissions and
3220 * limitations under the License.
3221 */const DT="AsyncQueue";class LT{constructor(e=Promise.resolve()){this.Xu=[],this.ec=!1,this.tc=[],this.nc=null,this.rc=!1,this.sc=!1,this.oc=[],this.M_=new VC(this,"async_queue_retry"),this._c=()=>{const e=BC();e&&my(DT,"Visibility state changed to "+e.visibilityState),this.M_.w_()},this.ac=e;const t=BC();t&&"function"==typeof t.addEventListener&&t.addEventListener("visibilitychange",this._c)}get isShuttingDown(){return this.ec}enqueueAndForget(e){this.enqueue(e)}enqueueAndForgetEvenWhileRestricted(e){this.uc(),this.cc(e)}enterRestrictedMode(e){if(!this.ec){this.ec=!0,this.sc=e||!1;const t=BC();t&&"function"==typeof t.removeEventListener&&t.removeEventListener("visibilitychange",this._c)}}enqueue(e){if(this.uc(),this.ec)return new Promise(()=>{});const t=new Ty;return this.cc(()=>this.ec&&this.sc?Promise.resolve():(e().then(t.resolve,t.reject),t.promise)).then(()=>t.promise)}enqueueRetryable(e){this.enqueueAndForget(()=>(this.Xu.push(e),this.lc()))}async lc(){if(0!==this.Xu.length){try{await this.Xu[0](),this.Xu.shift(),this.M_.reset()}catch(w7){if(!hb(w7))throw w7;my(DT,"Operation failed with retryable error: "+w7)}this.Xu.length>0&&this.M_.p_(()=>this.lc())}}cc(e){const t=this.ac.then(()=>(this.rc=!0,e().catch(e=>{throw this.nc=e,this.rc=!1,vy("INTERNAL UNHANDLED ERROR: ",BT(e)),e}).then(e=>(this.rc=!1,e))));return this.ac=t,t}enqueueAfterDelay(e,t,n){this.uc(),this.oc.indexOf(e)>-1&&(t=0);const a=CS.createAndSchedule(this,e,t,n,e=>this.hc(e));return this.tc.push(a),a}uc(){this.nc&&by(47125,{Pc:BT(this.nc)})}verifyOperationInProgress(){}async Tc(){let e;do{e=this.ac,await e}while(e!==this.ac)}Ic(e){for(const t of this.tc)if(t.timerId===e)return!0;return!1}Ec(e){return this.Tc().then(()=>{this.tc.sort((e,t)=>e.targetTimeMs-t.targetTimeMs);for(const t of this.tc)if(t.skipDelay(),"all"!==e&&t.timerId===e)break;return this.Tc()})}dc(e){this.oc.push(e)}hc(e){const t=this.tc.indexOf(e);this.tc.splice(t,1)}}function BT(e){let t=e.message||"";return e.stack&&(t=e.stack.includes(e.message)?e.stack:e.message+"\n"+e.stack),t
3222/**
3223 * @license
3224 * Copyright 2017 Google LLC
3225 *
3226 * Licensed under the Apache License, Version 2.0 (the "License");
3227 * you may not use this file except in compliance with the License.
3228 * You may obtain a copy of the License at
3229 *
3230 *   http://www.apache.org/licenses/LICENSE-2.0
3231 *
3232 * Unless required by applicable law or agreed to in writing, softw
3232are
3233 * distributed under the License is distributed on an "AS IS" BASIS,
3234 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3235 * See the License for the specific language governing permissions and
3236 * limitations under the License.
3237 */}function FT(e){return function(e,t){if("object"!=typeof e||null===e)return!1;const n=e;for(const a of t)if(a in n&&"function"==typeof n[a])return!0;return!1}(e,["next","error","complete"])}class VT extends xT{constructor(e,t,n,a){super(e,t,n,a),this.type="firestore",this._queue=new LT,this._persistenceKey=(null==a?void 0:a.name)||"[DEFAULT]"}async _terminate(){if(this._firestoreClient){const e=this._firestoreClient.terminate();this._queue=new LT(e),this._firestoreClient=void 0,await e}}}function XT(e){if(e._terminated)throw new Sy(Cy.FAILED_PRECONDITION,"The client has already been terminated.");return e._firestoreClient||function(e){var t,n,a;const i=e._freezeSettings(),r=(o=e._databaseId,s=(null==(t=e._app)?void 0:t.options.appId)||"",l=e._persistenceKey,u=i,new Xb(o,s,l,u.host,u.ssl,u.experimentalForceLongPolling,u.experimentalAutoDetectLongPolling,ST(u.experimentalLongPollingOptions),u.useFetchStreams,u.isUsingEmulator));var o,s,l,u;e._componentsProvider||(null==(n=i.localCache)?void 0:n._offlineComponentProvider)&&(null==(a=i.localCache)?void 0:a._onlineComponentProvider)&&(e._componentsProvider={_offline:i.localCache._offlineComponentProvider,_online:i.localCache._onlineComponentProvider}),e._firestoreClient=new bT(e._authCredentials,e._appCheckCredentials,e._queue,r,e._componentsProvider&&function(e){const t=null==e?void 0:e._online.build();return{_offline:null==e?void 0:e._offline.build(t),_online:t}}(e._componentsProvider))}
3238/**
3239 * @license
3240 * Copyright 2020 Google LLC
3241 *
3242 * Licensed under the Apache License, Version 2.0 (the "License");
3243 * you may not use this file except in compliance with the License.
3244 * You may obtain a copy of the License at
3245 *
3246 *   http://www.apache.org/licenses/LICENSE-2.0
3247 *
3248 * Unless required by applicable law or agreed to in writing, software
3249 * distributed under the License is distributed on an "AS IS" BASIS,
3250 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3251 * See the License for the specific language governing permissions and
3252 * limitations under the License.
3253 */(e),e._firestoreClient}class jT{constructor(e){this._byteString=e}static fromBase64String(e){try{return new jT(Ib.fromBase64String(e))}catch(t){throw new Sy(Cy.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+t)}}static fromUint8Array(e){return new jT(Ib.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)}toJSON(){return{type:jT._jsonSchemaVersion,bytes:this.toBase64()}}static fromJSON(e){if(tb(e,jT._jsonSchema))return jT.fromBase64String(e.bytes)}}jT._jsonSchemaVersion="firestore/bytes/1.0",jT._jsonSchema={type:eb("string",jT._jsonSchemaVersion),bytes:eb("string")};
3254/**
3255 * @license
3256 * Copyright 2020 Google LLC
3257 *
3258 * Licensed under the Apache License, Version 2.0 (the "License");
3259 * you may not use this file except in compliance with the License.
3260 * You may obtain a copy of the License at
3261 *
3262 *   http://www.apache.org/licenses/LICENSE-2.0
3263 *
3264 * Unless required by applicable law or agreed to in writing, software
3265 * distributed under the License is distributed on an "AS IS" BASIS,
3266 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3267 * See the License for the specific language governing permissions and
3268 * limitations under the License.
3269 */
3270class UT{constructor(...e){for(let t=0;t<e.length;++t)if(0===e[t].length)throw new Sy(Cy.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new Wy(e)}isEqual(e){return this._internalPath.isEqual(e._internalPath)}}
3271/**
3272 * @license
3273 * Copyright 2020 Google LLC
3274 *
3275 * Licensed under the Apache License, Version 2.0 (the "License");
3276 * you may not use this file except in compliance with the License.
3277 * You may obtain a copy of the License at
3278 *
3279 *   http://www.apache.org/licenses/LICENSE-2.0
3280 *
3281 * Unless required by applicable law or agreed to in writing, softw
3281are
3282 * distributed under the License is distributed on an "AS IS" BASIS,
3283 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3284 * See the License for the specific language governing permissions and
3285 * limitations under the License.
3286 */class HT{constructor(e){this._methodName=e}}
3287/**
3288 * @license
3289 * Copyright 2017 Google LLC
3290 *
3291 * Licensed under the Apache License, Version 2.0 (the "License");
3292 * you may not use this file except in compliance with the License.
3293 * You may obtain a copy of the License at
3294 *
3295 *   http://www.apache.org/licenses/LICENSE-2.0
3296 *
3297 * Unless required by applicable law or agreed to in writing, software
3298 * distributed under the License is distributed on an "AS IS" BASIS,
3299 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3300 * See the License for the specific language governing permissions and
3301 * limitations under the License.
3302 */class zT{constructor(e,t){if(!isFinite(e)||e<-90||e>90)throw new Sy(Cy.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(t)||t<-180||t>180)throw new Sy(Cy.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+t);this._lat=e,this._long=t}get latitude(){return this._lat}get longitude(){return this._long}isEqual(e){return this._lat===e._lat&&this._long===e._long}_compareTo(e){return Ly(this._lat,e._lat)||Ly(this._long,e._long)}toJSON(){return{latitude:this._lat,longitude:this._long,type:zT._jsonSchemaVersion}}static fromJSON(e){if(tb(e,zT._jsonSchema))return new zT(e.latitude,e.longitude)}}zT._jsonSchemaVersion="firestore/geoPoint/1.0",zT._jsonSchema={type:eb("string",zT._jsonSchemaVersion),latitude:eb("number"),longitude:eb("number")};
3303/**
3304 * @license
3305 * Copyright 2024 Google LLC
3306 *
3307 * Licensed under the Apache License, Version 2.0 (the "License");
3308 * you may not use this file except in compliance with the License.
3309 * You may obtain a copy of the License at
3310 *
3311 *   http://www.apache.org/licenses/LICENSE-2.0
3312 *
3313 * Unless required by applicable law or agreed to in writing, software
3314 * distributed under the License is distributed on an "AS IS" BASIS,
3315 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3316 * See the License for the specific language governing permissions and
3317 * limitations under the License.
3318 */
3319class KT{constructor(e){this._values=(e||[]).map(e=>e)}toArray(){return this._values.map(e=>e)}isEqual(e){return function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(e[n]!==t[n])return!1;return!0}(this._values,e._values)}toJSON(){return{type:KT._jsonSchemaVersion,vectorValues:this._values}}static fromJSON(e){if(tb(e,KT._jsonSchema)){if(Array.isArray(e.vectorValues)&&e.vectorValues.every(e=>"number"==typeof e))return new KT(e.vectorValues);throw new Sy(Cy.INVALID_ARGUMENT,"Expected 'vectorValues' field to be a number array")}}}KT._jsonSchemaVersion="firestore/vectorValue/1.0",KT._jsonSchema={type:eb("string",KT._jsonSchemaVersion),vectorValues:eb("object")};
3320/**
3321 * @license
3322 * Copyright 2017 Google LLC
3323 *
3324 * Licensed under the Apache License, Version 2.0 (the "License");
3325 * you may not use this file except in compliance with the License.
3326 * You may obtain a copy of the License at
3327 *
3328 *   http://www.apache.org/licenses/LICENSE-2.0
3329 *
3330 * Unless required by applicable law or agreed to in writing, software
3331 * distributed under the License is distributed on an "AS IS" BASIS,
3332 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3333 * See the License for the specific language governing permissions and
3334 * limitations under the License.
3335 */
3336const WT=/^__.*__$/;class GT{constructor(e,t,n){this.data=e,this.fieldMask=t,this.fieldTransforms=n}toMutation(e,t){return null!==this.fieldMask?new Rw(e,this.data,this.fieldMask,t,this.fieldTransforms):new Ow(e,this.data,t,this.fieldTransforms)}}function qT(e){switch(e){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw by(40011,{Ac:e})}}class $T{constructor(e,t,n,a,i,r){this.settings=e,this.databaseId=t,this.serializer=n,this.ignoreUndefinedProperties=a,void 0===i&&this.Rc(),this.fieldTransforms=i||[],this.fieldMask=r||[]}get path(){return this.settings.path}get Ac(){return this.settings.Ac}Vc(e){return new $T({...this.settings,...e},this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}mc(e){var t;const n=null==(t=this.path)?void 0:t.child(e),a=this.Vc({path:n,fc:!1});return a.gc(e),a}yc(e){var t;const n=null==(t=this.path)?void 0:t.child(e),a=this.Vc({path:n,fc:!1});return a.Rc(),a}wc(e){return this.Vc({path:void 0,fc:!0})}Sc(e){return oA(e,this.settings.methodName,this.settings.bc||!1,this.path,this.settings.Dc)}contains(e){return void 0!==this.fieldMask.find(t=>e.isPrefixOf(t))||void 0!==this.fieldTransforms.find(t=>e.isPrefixOf(t.field))}Rc(){if(this.path)for(let e=0;e<this.path.length;e++)this.gc(this.path.get(e))}gc(e){if(0===e.length)throw this.Sc("Document fields must not be empty");if(qT(this.Ac)&&WT.test(e))throw this.Sc('Document fields cannot begin and end with "__"')}}class YT{constructor(e,t,n){this.databaseId=e,this.ignoreUndefinedProperties=t,this.serializer
3336=n||FC(e)}Cc(e,t,n,a=!1){return new $T({Ac:e,methodName:t,Dc:n,path:Wy.emptyPath(),fc:!1,bc:a},this.databaseId,this.serializer,this.ignoreUndefinedProperties)}}function JT(e){const t=e._freezeSettings(),n=FC(e._databaseId);return new YT(e._databaseId,!!t.ignoreUndefinedProperties,n)}function QT(e,t,n,a,i,r={}){const o=e.Cc(r.merge||r.mergeFields?2:0,t,n,i);nA("Data must be an object, but it was:",o,a);const s=eA(a,o);let l,u;if(r.merge)l=new Ab(o.fieldMask),u=o.fieldTransforms;else if(r.mergeFields){const e=[];for(const a of r.mergeFields){const i=aA(t,a,n);if(!o.contains(i))throw new Sy(Cy.INVALID_ARGUMENT,"Field '".concat(i,"' is specified in your field mask but missing from your input data."));sA(e,i)||e.push(i)}l=new Ab(e),u=o.fieldTransforms.filter(e=>l.covers(e.field))}else l=null,u=o.fieldTransforms;return new GT(new u_(s),l,u)}function ZT(e,t){if(tA(e=bc(e)))return nA("Unsupported field value:",t,e),eA(e,t);if(e instanceof HT)return function(e,t){if(!qT(t.Ac))throw t.Sc("".concat(e._methodName,"() can only be used with update() and set()"));if(!t.path)throw t.Sc("".concat(e._methodName,"() is not currently supported inside arrays"));const n=e._toFieldTransform(t);n&&t.fieldTransforms.push(n)}(e,t),null;if(void 0===e&&t.ignoreUndefinedProperties)return null;if(t.path&&t.fieldMask.push(t.path),e instanceof Array){if(t.settings.fc&&4!==t.Ac)throw t.Sc("Nested arrays are not supported");return function(e,t){const n=[];let a=0;for(const i of e){let e=ZT(i,t.wc(a));null==e&&(e={nullValue:"NULL_VALUE"}),n.push(e),a++}return{arrayValue:{values:n}}}(e,t)}return function(e,t){if(null===(e=bc(e)))return{nullValue:"NULL_VALUE"};if("number"==typeof e)return dw(t.serializer,e);if("boolean"==typeof e)return{booleanValue:e};if("string"==typeof e)return{stringValue:e};if(e instanceof Date){const n=ib.fromDate(e);return{timestampValue:hk(t.serializer,n)}}if(e instanceof ib){const n=new ib(e.seconds,1e3*Math.floor(e.nanoseconds/1e3));return{timestampValue:hk(t.serializer,n)}}if(e instanceof zT)return{geoPointValue:{latitude:e.latitude,longitude:e.longitude}};if(e instanceof jT)return{bytesValue:pk(t.serializer,e._byteString)};if(e instanceof PT){const n=t.databaseId,a=e.firestore._databaseId;if(!a.isEqual(n))throw t.Sc("Document reference is for database ".concat(a.projectId,"/").concat(a.database," but should be for database ").concat(n.projectId,"/").concat(n.database));return{referenceValue:vk(e.firestore._databaseId||t.databaseId,e._key.path)}}if(e instanceof KT)return n=e,a=t,{mapValue:{fields:{[Hb]:{stringValue:Wb},[Gb]:{arrayValue:{values:n.toArray().map(e=>{if("number"!=typeof e)throw a.Sc("VectorValues must only contain numeric values.");return uw(a.serializer,e)})}}}}};var n,a;throw t.Sc("Unsupported field value: ".concat(Qy(e)))}(e,t)}function eA(e,t){const n={};return _b(e)?t.path&&t.path.length>0&&t.fieldMask.push(t.path):bb(e,(e,a)=>{const i=ZT(a,t.mc(e));null!=i&&(n[e]=i)}),{mapValue:{fields:n}}}function tA(e){return!("object"!=typeof e||null===e||e instanceof Array||e instanceof Date||e instanceof ib||e instanceof zT||e instanceof jT||e instanceof PT||e instanceof HT||e instanceof KT)}function nA(e,t,n){if(!tA(n)||!Jy(n)){const a=Qy(n);throw"an object"===a?t.Sc(e+" a custom object"):t.Sc(e+" "+a)}}function aA(e,t,n){if((t=bc(t))instanceof UT)return t._internalPath;if("string"==typeof t)return rA(e,t);throw oA("Field path arguments must be of type string or ",e,!1,void 0,n)}const iA=new RegExp("[~\\*/\\[\\]]");function rA(e,t,n){if(t.search(iA)>=0)throw oA("Invalid field path (".concat(t,"). Paths must not contain '~', '*', '/', '[', or ']'"),e,!1,void 0,n);try{return new UT(...t.split("."))._internalPath}catch(a){throw oA("Invalid field path (".concat(t,"). Paths must not be empty, begin with '.', end with '.', or contain '..'"),e,!1,void 0,n)}}function oA(e,t,n,a,i){const r=a&&!a.isEmpty(),o=void 0!==i;let s="Function ".concat(t,"() called with invalid data");n&&(s+=" (via `toFirestore()`)"),s+=". ";let l="";return(r||o)&&(l+=" (found",r&&(l+=" in field ".concat(a)),o&&(l+=" in document ".concat(i)),l+=")"),new Sy(Cy.INVALID_ARGUMENT,s+e+l)}function sA(e,t){return e.some(e=>e.isEqual(t))}
3337/**
3338 * @license
3339 * Copyright 2020 Google LLC
3340 *
3341 * Licensed under the Apache License, Version 2.0 (the "License");
3342 * you may not use this file except in compliance with the License.
3343 * You may obtain a copy of the License at
3344 *
3345 *   http://www.apache.org/licenses/LICENSE-2.0
3346 *
3347 * Unless required by applicable law or agreed to in writing, software
3348 * distributed under the License is distributed on an "AS IS" BASIS,
3349 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3350 * See the License for the specific language governing permissions and
3351 * limitations under the License.
3352 */class lA{constructor(e,t,n,a,i){this._firestore=e,this._userDataWriter=t,this._key=n,this._document=a,this._converter=i}get id(){return this._key.path.lastSegment()}get ref(){return new PT(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){const e=new uA(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 t=this._document.data.field(cA("DocumentSnapshot.get",e));if(null!==t)return this._userDataWriter.convertValue(t)}}}class uA extends lA{data(){return super.data()}}function cA(e,t){return"string"==typeof t?rA(e,t):t instanceof UT?t._internalPath:t._delegate._internalPath}
3353/**
3354 * @license
3355 * Copyright 2020 Google LLC
3356 *
3357 * Licensed under the Apache License, Version 2.0 (the "License");
3358 * you may not use this file except in compliance with the License.
3359 * You may obtain a copy of the License at
3360 *
3361 *   http://www.apache.org/licenses/LICENSE-2.0
3362 *
3363 * Unless required by applicable law or agreed to in writing, software
3364 * distributed under the License is distributed on an "AS IS" BASIS,
3365 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3366 * See the License for the specific language governing permissions and
3367 * limitations under the License.
3368 */function dA(e){if("L"===e.limitType&&0===e.explicitOrderBy.length)throw new Sy(Cy.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}class hA{convertValue(e,t="none"){switch(qb(e)){case 0:return null;case 1:return e.booleanValue;case 2:return Pb(e.integerValue||e.doubleValue);case 3:return this.convertTimestamp(e.timestampValue);case 4:return this.convertServerTimestamp(e,t);case 5:return e.stringValue;case 6:return this.convertBytes(Mb(e.bytesValue));case 7:return this.convertReference(e.referenceValue);case 8:return this.convertGeoPoint(e.geoPointValue);case 9:return this.convertArray(e.arrayValue,t);case 11:return this.convertObject(e.mapValue,t);case 10:return this.convertVectorValue(e.mapValue);default:throw by(62114,{value:e})}}convertObject(e,t){return this.convertObjectMap(e.fields,t)}convertObjectMap(e,t="none"){const n={};return bb(e,(e,a)=>{n[e]=this.convertValue(a,t)}),n}convertVectorValue(e){var t,n,a;const i=null==(a=null==(n=null==(t=e.fields)?void 0:t[Gb].arrayValue)?void 0:n.values)?void 0:a.map(e=>Pb(e.doubleValue));return new KT(i)}convertGeoPoint(e){return new zT(Pb(e.latitude),Pb(e.longitude))}convertArray(e,t){return(e.values||[]).map(e=>this.convertValue(e,t))}convertServerTimestamp(e,t){switch(t){case"previous":const n=Fb(e);return null==n?null:this.convertValue(n,t);case"estimate":return this.convertTimestamp(Vb(e));default:return null}}convertTimestamp(e){const t=Nb(e);return new ib(t.seconds,t.nanos)}convertDocumentKey(e,t){const n=zy.fromString(e);wy(Lk(n),9688,{name:e});const a=new Ub(n.get(1),n.get(3)),i=new Gy(n.popFirst(5));return a.isEqual(t)||vy("Document ".concat(i," contains a document reference within a different database (").concat(a.projectId,"/").concat(a.database,") which is not supported. It will be treated as a reference in the current database (").concat(t.projectId,"/").concat(t.database,") instead.")),i}}
3369/**
3370 * @license
3371 * Copyright 2020 Google LLC
3372 *
3373 * Licensed under the Apache License, Version 2.0 (the "License");
3374 * you may not use this file except in compliance with the License.
3375 * You may obtain a copy of the License at
3376 *
3377 *   http://www.apache.org/licenses/LICENSE-2.0
3378 *
3379 * Unless required by applicable law or agreed to in writing, softw
3379are
3380 * distributed under the License is distributed on an "AS IS" BASIS,
3381 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3382 * See the License for the specific language governing permissions and
3383 * limitations under the License.
3384 */class pA{constructor(e,t){this.hasPendingWrites=e,this.fromCache=t}isEqual(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}}class fA extends lA{constructor(e,t,n,a,i,r){super(e,t,n,a,r),this._firestore=e,this._firestoreImpl=e,this.metadata=i}exists(){return super.exists()}data(e={}){if(this._document){if(this._converter){const t=new mA(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(t,e)}return this._userDataWriter.convertValue(this._document.data.value,e.serverTimestamps)}}get(e,t={}){if(this._document){const n=this._document.data.field(cA("DocumentSnapshot.get",e));if(null!==n)return this._userDataWriter.convertValue(n,t.serverTimestamps)}}toJSON(){if(this.metadata.hasPendingWrites)throw new Sy(Cy.FAILED_PRECONDITION,"DocumentSnapshot.toJSON() attempted to serialize a document with pending writes. Await waitForPendingWrites() before invoking toJSON().");const e=this._document,t={};return t.type=fA._jsonSchemaVersion,t.bundle="",t.bundleSource="DocumentSnapshot",t.bundleName=this._key.toString(),e&&e.isValidDocument()&&e.isFoundDocument()?(this._userDataWriter.convertObjectMap(e.data.value.mapValue.fields,"previous"),t.bundle=(this._firestore,this.ref.path,"NOT SUPPORTED"),t):t}}fA._jsonSchemaVersion="firestore/documentSnapshot/1.0",fA._jsonSchema={type:eb("string",fA._jsonSchemaVersion),bundleSource:eb("string","DocumentSnapshot"),bundleName:eb("string"),bundle:eb("string")};class mA extends fA{data(e={}){return super.data(e)}}class vA{constructor(e,t,n,a){this._firestore=e,this._userDataWriter=t,this._snapshot=a,this.metadata=new pA(a.hasPendingWrites,a.fromCache),this.query=n}get docs(){const e=[];return this.forEach(t=>e.push(t)),e}get size(){return this._snapshot.docs.size}get empty(){return 0===this.size}forEach(e,t){this._snapshot.docs.forEach(n=>{e.call(t,new mA(this._firestore,this._userDataWriter,n.key,n,new pA(this._snapshot.mutatedKeys.has(n.key),this._snapshot.fromCache),this.query.converter))})}docChanges(e={}){const t=!!e.includeMetadataChanges;if(t&&this._snapshot.excludesMetadataChanges)throw new Sy(Cy.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===t||(this._cachedChanges=function(e,t){if(e._snapshot.oldDocs.isEmpty()){let t=0;return e._snapshot.docChanges.map(n=>{const a=new mA(e._firestore,e._userDataWriter,n.doc.key,n.doc,new pA(e._snapshot.mutatedKeys.has(n.doc.key),e._snapshot.fromCache),e.query.converter);return n.doc,{type:"added",doc:a,oldIndex:-1,newIndex:t++}})}{let n=e._snapshot.oldDocs;return e._snapshot.docChanges.filter(e=>t||3!==e.type).map(t=>{const a=new mA(e._firestore,e._userDataWriter,t.doc.key,t.doc,new pA(e._snapshot.mutatedKeys.has(t.doc.key),e._snapshot.fromCache),e.query.converter);let i=-1,r=-1;return 0!==t.type&&(i=n.indexOf(t.doc.key),n=n.delete(t.doc.key)),1!==t.type&&(n=n.add(t.doc),r=n.indexOf(t.doc.key)),{type:gA(t.type),doc:a,oldIndex:i,newIndex:r}})}}(this,t),this._cachedChangesIncludeMetadataChanges=t),this._cachedChanges}toJSON(){if(this.metadata.hasPendingWrites)throw new Sy(Cy.FAILED_PRECONDITION,"QuerySnapshot.toJSON() attempted to serialize a document with pending writes. Await waitForPendingWrites() before invoking toJSON().");const e={};e.type=vA._jsonSchemaVersion,e.bundleSource="QuerySnapshot",e.bundleName=Dy.newId(),this._firestore._databaseId.database,this._firestore._databaseId.projectId;const t=[],n=[],a=[];return this.docs.forEach(e=>{null!==e._document&&(t.push(e._document),n.push(this._userDataWriter.convertObjectMap(e._document.data.value.mapValue.fields,"previous")),a.push(e.ref.path))}),e.bundle=(this._firestore,this.query._query,e.bundleName,"NOT SUPPORTED"),e}}function gA(e){switch(e){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return by(61501,{type:e})}}
3384vA._jsonSchemaVersion="firestore/querySnapshot/1.0",vA._jsonSchema={type:eb("string",vA._jsonSchemaVersion),bundleSource:eb("string","QuerySnapshot"),bundleName:eb("string"),bundle:eb("string")};class yA extends hA{constructor(e){super(),this.firestore=e}convertBytes(e){return new jT(e)}convertReference(e){const t=this.convertDocumentKey(e,this.firestore._databaseId);return new PT(this.firestore,null,t)}}function bA(e){e=Zy(e,NT);const t=Zy(e.firestore,VT),n=XT(t),a=new yA(t);return dA(e._query),function(e,t,n={}){const a=new Ty;return e.asyncQueue.enqueueAndForget(async()=>function(e,t,n,a,i){const r=new gT({next:n=>{r.Nu(),t.enqueueAndForget(()=>MS(e,o)),n.fromCache&&"server"===a.source?i.reject(new Sy(Cy.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.)')):i.resolve(n)},error:e=>i.reject(e)}),o=new FS(n,r,{includeMetadataChanges:!0,qa:!0});return PS(e,o)}(await CT(e),e.asyncQueue,t,n,a)),a.promise}(n,e._query).then(n=>new vA(t,a,e,n))}function _A(e,t,n){e=Zy(e,PT);const a=Zy(e.firestore,VT),i=function(e,t){let n;return n=e?e.toFirestore(t):t,n}(e.converter,t);return function(e,t){return function(e,t){const n=new Ty;return e.asyncQueue.enqueueAndForget(async()=>JS(await function(e){return kT(e).then(e=>e.syncEngine)}(e),t,n)),n.promise}(XT(e),t)}(a,[QT(JT(a),"setDoc",e._key,i,null!==e.converter,n).toMutation(e._key,Tw.none())])}function wA(e,...t){var n,a,i;e=bc(e);let r={includeMetadataChanges:!1,source:"default"},o=0;"object"!=typeof t[o]||FT(t[o])||(r=t[o++]);const s={includeMetadataChanges:r.includeMetadataChanges,source:r.source};if(FT(t[o])){const e=t[o];t[o]=null==(n=e.next)?void 0:n.bind(e),t[o+1]=null==(a=e.error)?void 0:a.bind(e),t[o+2]=null==(i=e.complete)?void 0:i.bind(e)}let l,u,c;if(e instanceof PT)u=Zy(e.firestore,VT),c=V_(e._key.path),l={next:n=>{t[o]&&t[o](function(e,t,n){const a=n.docs.get(t._key),i=new yA(e);return new fA(e,i,t._key,a,new pA(n.hasPendingWrites,n.fromCache),t.converter)}(u,e,n))},error:t[o+1],complete:t[o+2]};else{const n=Zy(e,NT);u=Zy(n.firestore,VT),c=n._query;const a=new yA(u);l={next:e=>{t[o]&&t[o](new vA(u,a,n,e))},error:t[o+1],complete:t[o+2]},dA(e._query)}return function(e,t,n,a){const i=new gT(a),r=new FS(t,i,n);return e.asyncQueue.enqueueAndForget(async()=>PS(await CT(e),r)),()=>{i.Nu(),e.asyncQueue.enqueueAndForget(async()=>MS(await CT(e),r))}}(XT(u),c,s,l)}!function(e,t=!0){hy=Rd,xd(new _c("firestore",(e,{instanceIdentifier:n,options:a})=>
3384{const i=e.getProvider("app").getImmediate(),r=new VT(new xy(e.getProvider("auth-internal")),new Oy(i,e.getProvider("app-check-internal")),function(e,t){if(!Object.prototype.hasOwnProperty.apply(e.options,["projectId"]))throw new Sy(Cy.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new Ub(e.options.projectId,t)}(i,n),i);return a={useFetchStreams:t,...a},r._setSettings(a),r},"PUBLIC").setMultipleInstances(!0)),Bd(uy,cy,e),Bd(uy,cy,"esm2020")}();
3385/**
3386 * @license
3387 * Copyright 2017 Google LLC
3388 *
3389 * Licensed under the Apache License, Version 2.0 (the "License");
3390 * you may not use this file except in compliance with the License.
3391 * You may obtain a copy of the License at
3392 *
3393 *   http://www.apache.org/licenses/LICENSE-2.0
3394 *
3395 * Unless required by applicable law or agreed to in writing, software
3396 * distributed under the License is distributed on an "AS IS" BASIS,
3397 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3398 * See the License for the specific language governing permissions and
3399 * limitations under the License.
3400 */
3401const kA="firebasestorage.googleapis.com",CA="storageBucket";
3402/**
3403 * @license
3404 * Copyright 2017 Google LLC
3405 *
3406 * Licensed under the Apache License, Version 2.0 (the "License");
3407 * you may not use this file except in compliance with the License.
3408 * You may obtain a copy of the License at
3409 *
3410 *   http://www.apache.org/licenses/LICENSE-2.0
3411 *
3412 * Unless required by applicable law or agreed to in writing, software
3413 * distributed under the License is distributed on an "AS IS" BASIS,
3414 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3415 * See the License for the specific language governing permissions and
3416 * limitations under the License.
3417 */
3418class SA extends Zu{constructor(e,t,n=0){super(xA(e),"Firebase Storage: ".concat(t," (").concat(xA(e),")")),this.status_=n,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,SA.prototype)}get status(){return this.status_}set status(e){this.status_=e}_codeEquals(e){return xA(e)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(e){this.customData.serverResponse=e,this.customData.serverResponse?this.message="".concat(this._baseMessage,"\n").concat(this.customData.serverResponse):this.message=this._baseMessage}}var TA,AA,EA,IA;function xA(e){return"storage/"+e}function NA(){return new SA(TA.UNKNOWN,"An unknown error occurred, please check the error payload for server response.")}function PA(e){return new SA(TA.INVALID_ARGUMENT,e)}function MA(){return new SA(TA.APP_DELETED,"The Firebase app was deleted.")}function OA(e,t){return new SA(TA.INVALID_FORMAT,"String does not match format '"+e+"': "+t)}function RA(e){throw new SA(TA.INTERNAL_ERROR,"Internal error: "+e)}
3419/**
3420 * @license
3421 * Copyright 2017 Google LLC
3422 *
3423 * Licensed under the Apache License, Version 2.0 (the "License");
3424 * you may not use this file except in compliance with the License.
3425 * You may obtain a copy of the License at
3426 *
3427 *   http://www.apache.org/licenses/LICENSE-2.0
3428 *
3429 * Unless required by applicable law or agreed to in writing, software
3430 * distributed under the License is distributed on an "AS IS" BASIS,
3431 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3432 * See the License for the specific language governing permissions and
3433 * limitations under the License.
3434 */(AA=TA||(TA={})).UNKNOWN="unknown",AA.OBJECT_NOT_FOUND="object-not-found",AA.BUCKET_NOT_FOUND="bucket-not-found",AA.PROJECT_NOT_FOUND="project-not-found",AA.QUOTA_EXCEEDED="quota-exceeded",AA.UNAUTHENTICATED="unauthenticated",AA.UNAUTHORIZED="unauthorized",AA.UNAUTHORIZED_APP="unauthorized-app",AA.RETRY_LIMIT_EXCEEDED="retry-limit-exceeded",AA.INVALID_CHECKSUM="invalid-checksum",AA.CANCELED="canceled",AA.INVALID_EVENT_NAME="invalid-event-name",AA.INVALID_URL="invalid-url",AA.INVALID_DEFAULT_BUCKET="invalid-default-bucket",AA.NO_DEFAULT_BUCKET="no-default-bucket",AA.CANNOT_SLICE_BLOB="cannot-slice-blob",AA.SERVER_FILE_WRONG_SIZE="server-file-wrong-size",AA.NO_DOWNLOAD_URL="no-download-url",AA.INVALID_ARGUMENT="invalid-argument",AA.INVALID_ARGUMENT_COUNT="invalid-argument-count",AA.APP_DELETED="app-deleted",AA.INVALID_ROOT_OPERATION="invalid-root-operation",AA.INVALID_FORMAT="invalid-format",AA.INTERNAL_ERROR="internal-error",AA.UNSUPPORTED_ENVIRONMENT="unsupported-environment";class DA{constructor(e,t){this.bucket=e,this.path_=t}get path(){return this.path_}get isRoot(){return 0===this.path.length}fullServerUrl(){const e=encodeURIComponent;return"/b/"+e(this.bucket)+"/o/"+e(this.path)}bucketOnlyServerUrl(){return"/b/"+encodeURIComponent(this.bucket)+"/o"}static makeFromBucketSpec(e,t){let n;try{n=DA.makeFromUrl(e,t)}catch(w7){return new DA(e,"")}if(""===n.path)return n;throw a=e,new SA(TA.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+a+"'.");var a}static makeFromUrl(e,t){let n=null;const a="([A-Za-z0-9.\\-_]+)";const i=new RegExp("^gs://"+a+"(/(.*))?$","i");function r(e){e.path_=decodeURIComponent(e.path)}const o=t.replace(/[.]/g,"\\."),s=[{regex:i,indices:{bucket:1,path:3},postModify:function(e){"/"===e.path.charAt(e.path.length-1)&&(e.path_=e.path_.slice(0,-1))}},{regex:new RegExp("^https?://".concat(o,"/").concat("v[A-Za-z0-9_]+","/b/").concat(a,"/o").concat("(/([^?#]*).*)?$"),"i"),indices:{bucket:1,path:3},postModify:r},{regex:new RegExp("^https?://".concat(t===kA?"(?:storage.googleapis.com|storage.cloud.google.com)":t,"/").concat(a,"/").concat("([^?#]*)"),"i"),indices:{bucket:1,path:2},postModify:r}];for(let l=0;l<s.length;l++){const t=s[l],a=t.regex.exec(e);if(a){const e=a[t.indices.bucket];let i=a[t.indices.path];
3434i||(i=""),n=new DA(e,i),t.postModify(n);break}}if(null==n)throw function(e){return new SA(TA.INVALID_URL,"Invalid URL '"+e+"'.")}(e);return n}}class LA{constructor(e){this.promise_=Promise.reject(e)}getPromise(){return this.promise_}cancel(e=!1){}}
3435/**
3436 * @license
3437 * Copyright 2017 Google LLC
3438 *
3439 * Licensed under the Apache License, Version 2.0 (the "License");
3440 * you may not use this file except in compliance with the License.
3441 * You may obtain a copy of the License at
3442 *
3443 *   http://www.apache.org/licenses/LICENSE-2.0
3444 *
3445 * Unless required by applicable law or agreed to in writing, software
3446 * distributed under the License is distributed on an "AS IS" BASIS,
3447 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3448 * See the License for the specific language governing permissions and
3449 * limitations under the License.
3450 */function BA(e){return"string"==typeof e||e instanceof String}function FA(e){return VA()&&e instanceof Blob}function VA(){return"undefined"!=typeof Blob}function XA(e,t,n,a){if(a<t)throw PA("Invalid value for '".concat(e,"'. Expected ").concat(t," or greater."));if(a>n)throw PA("Invalid value for '".concat(e,"'. Expected ").concat(n," or less."))}
3451/**
3452 * @license
3453 * Copyright 2017 Google LLC
3454 *
3455 * Licensed under the Apache License, Version 2.0 (the "License");
3456 * you may not use this file except in compliance with the License.
3457 * You may obtain a copy of the License at
3458 *
3459 *   http://www.apache.org/licenses/LICENSE-2.0
3460 *
3461 * Unless required by applicable law or agreed to in writing, software
3462 * distributed under the License is distributed on an "AS IS" BASIS,
3463 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3464 * See the License for the specific language governing permissions and
3465 * limitations under the License.
3466 */function jA(e,t,n){let a=t;return null==n&&(a="https://".concat(t)),"".concat(n,"://").concat(a,"/v0").concat(e)}function UA(e){const t=encodeURIComponent;let n="?";for(const a in e)if(e.hasOwnProperty(a)){n=n+(t(a)+"="+t(e[a]))+"&"}return n=n.slice(0,-1),n}(IA=EA||(EA={}))[IA.NO_ERROR=0]="NO_ERROR",IA[IA.NETWORK_ERROR=1]="NETWORK_ERROR",IA[IA.ABORT=2]="ABORT";
3467/**
3468 * @license
3469 * Copyright 2017 Google LLC
3470 *
3471 * Licensed under the Apache License, Version 2.0 (the "License");
3472 * you may not use this file except in compliance with the License.
3473 * You may obtain a copy of the License at
3474 *
3475 *   http://www.apache.org/licenses/LICENSE-2.0
3476 *
3477 * Unless required by applicable law or agreed to in writing, software
3478 * distributed under the License is distributed on an "AS IS" BASIS,
3479 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3480 * See the License for the specific language governing permissions and
3481 * limitations under the License.
3482 */
3483class HA{constructor(e,t,n,a,i,r,o,s,l,u,c,d=!0,h=!1){this.url_=e,this.method_=t,this.headers_=n,this.body_=a,this.successCodes_=i,this.additionalRetryCodes_=r,this.callback_=o,this.errorCallback_=s,this.timeout_=l,this.progressCallback_=u,this.connectionFactory_=c,this.retry=d,this.isUsingEmulator=h,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise((e,t)=>{this.resolve_=e,this.reject_=t,this.start_()})}start_(){const e=(e,t)=>{if(t)return void e(!1,new zA(!1,null,!0));const n=this.connectionFactory_();this.pendingConnection_=n;const a=e=>{const t=e.loaded,n=e.lengthComputable?e.total:-1;null!==this.progressCallback_&&this.progressCallback_(t,n)};null!==this.progressCallback_&&n.addUploadProgressListener(a),n.send(this.url_,this.method_,this.isUsingEmulator,this.body_,this.headers_).then(()=>{null!==this.progressCallback_&&n.removeUploadProgressListener(a),this.pendingConnection_=null;const t=n.getErrorCode()===EA.NO_ERROR,i=n.getStatus();if(!t||
3484/**
3485 * @license
3486 * Copyright 2022 Google LLC
3487 *
3488 * Licensed under the Apache License, Version 2.0 (the "License");
3489 * you may not use this file except in compliance with the License.
3490 * You may obtain a copy of the License at
3491 *
3492 *   http://www.apache.org/licenses/LICENSE-2.0
3493 *
3494 * Unless required by applicable law or agreed to in writing, softw
3494are
3495 * distributed under the License is distributed on an "AS IS" BASIS,
3496 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3497 * See the License for the specific language governing permissions and
3498 * limitations under the License.
3499 */
3500function(e,t){const n=e>=500&&e<600,a=-1!==[408,429].indexOf(e),i=-1!==t.indexOf(e);return n||a||i}(i,this.additionalRetryCodes_)&&this.retry){const t=n.getErrorCode()===EA.ABORT;return void e(!1,new zA(!1,null,t))}const r=-1!==this.successCodes_.indexOf(i);e(!0,new zA(r,n))})},t=(e,t)=>{const n=this.resolve_,a=this.reject_,i=t.connection;if(t.wasSuccessCode)try{const e=this.callback_(i,i.getResponse());void 0!==e?n(e):n()}catch(w7){a(w7)}else if(null!==i){const e=NA();e.serverResponse=i.getErrorText(),this.errorCallback_?a(this.errorCallback_(i,e)):a(e)}else if(t.canceled){a(this.appDelete_?MA():new SA(TA.CANCELED,"User canceled the upload/download."))}else{a(new SA(TA.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again."))}};this.canceled_?t(0,new zA(!1,null,!0)):this.backoffId_=function(e,t,n){let a=1,i=null,r=null,o=!1,s=0;function l(){return 2===s}let u=!1;function c(...e){u||(u=!0,t.apply(null,e))}function d(t){i=setTimeout(()=>{i=null,e(p,l())},t)}function h(){r&&clearTimeout(r)}function p(e,...t){if(u)return void h();if(e)return h(),void c.call(null,e,...t);if(l()||o)return h(),void c.call(null,e,...t);let n;a<64&&(a*=2),1===s?(s=2,n=0):n=1e3*(a+Math.random()),d(n)}let f=!1;function m(e){f||(f=!0,h(),u||(null!==i?(e||(s=2),clearTimeout(i),d(0)):e||(s=1)))}return d(0),r=setTimeout(()=>{o=!0,m(!0)},n),m}(e,t,this.timeout_)}getPromise(){return this.promise_}cancel(e){this.canceled_=!0,this.appDelete_=e||!1,null!==this.backoffId_&&(0,this.backoffId_)(!1),null!==this.pendingConnection_&&this.pendingConnection_.abort()}}class zA{constructor(e,t,n){this.wasSuccessCode=e,this.connection=t,this.canceled=!!n}}function KA(...e){const t="undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:void 0;if(void 0!==t){const n=new t;for(let t=0;t<e.length;t++)n.append(e[t]);return n.getBlob()}if(VA())return new Blob(e);throw new SA(TA.UNSUPPORTED_ENVIRONMENT,"This browser doesn't seem to support creating Blobs")}
3501/**
3502 * @license
3503 * Copyright 2021 Google LLC
3504 *
3505 * Licensed under the Apache License, Version 2.0 (the "License");
3506 * you may not use this file except in compliance with the License.
3507 * You may obtain a copy of the License at
3508 *
3509 *   http://www.apache.org/licenses/LICENSE-2.0
3510 *
3511 * Unless required by applicable law or agreed to in writing, software
3512 * distributed under the License is distributed on an "AS IS" BASIS,
3513 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3514 * See the License for the specific language governing permissions and
3515 * limitations under the License.
3516 */
3517function WA(e){if("undefined"==typeof atob)throw t="base-64",new SA(TA.UNSUPPORTED_ENVIRONMENT,"".concat(t," is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information."));var t;return atob(e)}
3518/**
3519 * @license
3520 * Copyright 2017 Google LLC
3521 *
3522 * Licensed under the Apache License, Version 2.0 (the "License");
3523 * you may not use this file except in compliance with the License.
3524 * You may obtain a copy of the License at
3525 *
3526 *   http://www.apache.org/licenses/LICENSE-2.0
3527 *
3528 * Unless required by applicable law or agreed to in writing, software
3529 * distributed under the License is distributed on an "AS IS" BASIS,
3530 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3531 * See the License for the specific language governing permissions and
3532 * limitations under the License.
3533 */const GA="raw",qA="base64",$A="base64url",YA="data_url";class JA{constructor(e,t){this.data=e,this.contentType=t||null}}function QA(e,t){switch(e){case GA:return new JA(ZA(t));case qA:case $A:return new JA(eE(e,t));case YA:return new JA(function(e){const t=new tE(e);return t.base64?eE(qA,t.rest):function(e){let t;try{t=decodeURIComponent(e)}catch(w7){throw OA(YA,"Malformed data URL.")}return ZA(t)}(t.rest)}(t),new tE(t).contentType)}throw NA()}function ZA(e){const t=[];for(let n=0;n<e.length;n++){let a=e.charCodeAt(n);if(a<=127)t.push(a);else if(a<=2047)t.push(192|a>>6,128|63&a);else if(55296==(64512&a)){if(n<e.length-1&&56320==(64512&e.charCodeAt(n+1))){a=65536|(1023&a)<<10|1023&e.charCodeAt(++n),t.push(240|a>>18,128|a>>12&63,128|a>>6&63,128|63&a)}else t.push(239,191,189)}else 56320==(64512&a)?t.push(239,191,189):t.push(224|a>>12,128|a>>6&63,128|63&a)}return new Uint8Array(t)}function eE(e,t){switch(e){case qA:{const n=-1!==t.indexOf("-"),a=-1!==t.indexOf("_");if(n||a){throw OA(e,"Invalid character '"+(n?"-":"_")+"' found: is it base64url encoded?")}break}case $A:{const n=-1!==t.indexOf("+"),a=-1!==t.indexOf("/");if(n||a){throw OA(e,"Invalid character '"+(n?"+":"/")+"' found: is it base64 encoded?")}t=t.replace(/-/g,"+").replace(/_/g,"/");break}}let n;try{n=WA(t)}
3533catch(w7){if(w7.message.includes("polyfill"))throw w7;throw OA(e,"Invalid character found")}const a=new Uint8Array(n.length);for(let i=0;i<n.length;i++)a[i]=n.charCodeAt(i);return a}class tE{constructor(e){this.base64=!1,this.contentType=null;const t=e.match(/^data:([^,]+)?,/);if(null===t)throw OA(YA,"Must be formatted 'data:[<mediatype>][;base64],<data>");const n=t[1]||null;null!=n&&(this.base64=function(e,t){if(!(e.length>=t.length))return!1;return e.substring(e.length-t.length)===t}
3534/**
3535 * @license
3536 * Copyright 2017 Google LLC
3537 *
3538 * Licensed under the Apache License, Version 2.0 (the "License");
3539 * you may not use this file except in compliance with the License.
3540 * You may obtain a copy of the License at
3541 *
3542 *   http://www.apache.org/licenses/LICENSE-2.0
3543 *
3544 * Unless required by applicable law or agreed to in writing, software
3545 * distributed under the License is distributed on an "AS IS" BASIS,
3546 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3547 * See the License for the specific language governing permissions and
3548 * limitations under the License.
3549 */(n,";base64"),this.contentType=this.base64?n.substring(0,n.length-7):n),this.rest=e.substring(e.indexOf(",")+1)}}class nE{constructor(e,t){let n=0,a="";FA(e)?(this.data_=e,n=e.size,a=e.type):e instanceof ArrayBuffer?(t?this.data_=new Uint8Array(e):(this.data_=new Uint8Array(e.byteLength),this.data_.set(new Uint8Array(e))),n=this.data_.length):e instanceof Uint8Array&&(t?this.data_=e:(this.data_=new Uint8Array(e.length),this.data_.set(e)),n=e.length),this.size_=n,this.type_=a}size(){return this.size_}type(){return this.type_}slice(e,t){if(FA(this.data_)){const r=this.data_,o=(a=e,i=t,(n=r).webkitSlice?n.webkitSlice(a,i):n.mozSlice?n.mozSlice(a,i):n.slice?n.slice(a,i):null);return null===o?null:new nE(o)}{const n=new Uint8Array(this.data_.buffer,e,t-e);return new nE(n,!0)}var n,a,i}static getBlob(...e){if(VA()){const t=e.map(e=>e instanceof nE?e.data_:e);return new nE(KA.apply(null,t))}{const t=e.map(e=>BA(e)?QA(GA,e).data:e.data_);let n=0;t.forEach(e=>{n+=e.byteLength});const a=new Uint8Array(n);let i=0;return t.forEach(e=>{for(let t=0;t<e.length;t++)a[i++]=e[t]}),new nE(a,!0)}}uploadData(){return this.data_}}
3550/**
3551 * @license
3552 * Copyright 2017 Google LLC
3553 *
3554 * Licensed under the Apache License, Version 2.0 (the "License");
3555 * you may not use this file except in compliance with the License.
3556 * You may obtain a copy of the License at
3557 *
3558 *   http://www.apache.org/licenses/LICENSE-2.0
3559 *
3560 * Unless required by applicable law or agreed to in writing, software
3561 * distributed under the License is distributed on an "AS IS" BASIS,
3562 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3563 * See the License for the specific language governing permissions and
3564 * limitations under the License.
3565 */function aE(e){let t;try{t=JSON.parse(e)}catch(w7){return null}return"object"!=typeof(n=t)||Array.isArray(n)?null:t;var n}
3566/**
3567 * @license
3568 * Copyright 2017 Google LLC
3569 *
3570 * Licensed under the Apache License, Version 2.0 (the "License");
3571 * you may not use this file except in compliance with the License.
3572 * You may obtain a copy of the License at
3573 *
3574 *   http://www.apache.org/licenses/LICENSE-2.0
3575 *
3576 * Unless required by applicable law or agreed to in writing, software
3577 * distributed under the License is distributed on an "AS IS" BASIS,
3578 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3579 * See the License for the specific language governing permissions and
3580 * limitations under the License.
3581 */function iE(e){const t=e.lastIndexOf("/",e.length-2);return-1===t?e:e.slice(t+1)}
3582/**
3583 * @license
3584 * Copyright 2017 Google LLC
3585 *
3586 * Licensed under the Apache License, Version 2.0 (the "License");
3587 * you may not use this file except in compliance with the License.
3588 * You may obtain a copy of the License at
3589 *
3590 *   http://www.apache.org/licenses/LICENSE-2.0
3591 *
3592 * Unless required by applicable law or agreed to in writing, software
3593 * distributed under the License is distributed on an "AS IS" BASIS,
3594 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3595 * See the License for the specific language governing permissions and
3596 * limitations under the License.
3597 */function rE(e,t){return t}class oE{constructor(e,t,n,a){this.server=e,this.local=t||e,this.writable=!!n,this.xform=a||rE}}let sE=null;function lE(){if(sE)return sE;const e=[];e.push(new oE("bucket")),e.push(new oE("generation")),e.push(new oE("metageneration")),e.push(new oE("name","fullPath",!0));const t=new oE("name");t.xform=function(e,t){return function(e){return!BA(e)||e.length<2?e:iE(e)}(t)},e.push(t);const n=new oE("size");return n.xform=function(e,t){return void 0!==t?Number(t):t},e.push(n),e.push(new oE("timeCreated")),e.push(new oE("updated")),e.push(new oE("md5Hash",null,!0)),e.push(new oE("cacheControl",null,!0)),e.push(new oE("contentDisposition",null,!0)),e.push(new oE("contentEncoding",null,!0)),e.push(new oE("contentLanguage",null,!0)),e.push(new oE("contentType",null,!0)),e.push(new oE("metadata","customMetadata",!0)),sE=e,sE}
3597function uE(e,t,n){const a={type:"file"},i=n.length;for(let r=0;r<i;r++){const e=n[r];a[e.local]=e.xform(a,t[e.server])}return function(e,t){Object.defineProperty(e,"ref",{get:function(){const n=e.bucket,a=e.fullPath,i=new DA(n,a);return t._makeStorageReference(i)}})}(a,e),a}function cE(e,t,n){const a=aE(t);if(null===a)return null;return uE(e,a,n)}class dE{constructor(e,t,n,a){this.url=e,this.method=t,this.handler=n,this.timeout=a,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}}
3598/**
3599 * @license
3600 * Copyright 2017 Google LLC
3601 *
3602 * Licensed under the Apache License, Version 2.0 (the "License");
3603 * you may not use this file except in compliance with the License.
3604 * You may obtain a copy of the License at
3605 *
3606 *   http://www.apache.org/licenses/LICENSE-2.0
3607 *
3608 * Unless required by applicable law or agreed to in writing, software
3609 * distributed under the License is distributed on an "AS IS" BASIS,
3610 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3611 * See the License for the specific language governing permissions and
3612 * limitations under the License.
3613 */function hE(e){if(!e)throw NA()}function pE(e,t){return function(n,a){const i=cE(e,a,t);return hE(null!==i),function(e,t,n,a){const i=aE(t);if(null===i)return null;if(!BA(i.downloadTokens))return null;const r=i.downloadTokens;if(0===r.length)return null;const o=encodeURIComponent;return r.split(",").map(t=>{const i=e.bucket,r=e.fullPath;return jA("/b/"+o(i)+"/o/"+o(r),n,a)+UA({alt:"media",token:t})})[0]}(i,a,e.host,e._protocol)}}function fE(e){return function(t,n){let a;var i,r;return 401===t.getStatus()?a=t.getErrorText().includes("Firebase App Check token is invalid")?new SA(TA.UNAUTHORIZED_APP,"This app does not have permission to access Firebase Storage on this project."):new SA(TA.UNAUTHENTICATED,"User is not authenticated, please authenticate using Firebase Authentication and try again."):402===t.getStatus()?(r=e.bucket,a=new SA(TA.QUOTA_EXCEEDED,"Quota for bucket '"+r+"' exceeded, please view quota on https://firebase.google.com/pricing/.")):403===t.getStatus()?(i=e.path,a=new SA(TA.UNAUTHORIZED,"User does not have permission to access '"+i+"'.")):a=n,a.status=t.getStatus(),a.serverResponse=n.serverResponse,a}}function mE(e){const t=fE(e);return function(n,a){let i=t(n,a);var r;return 404===n.getStatus()&&(r=e.path,i=new SA(TA.OBJECT_NOT_FOUND,"Object '"+r+"' does not exist.")),i.serverResponse=a.serverResponse,i}}function vE(e,t,n,a,i){const r=t.bucketOnlyServerUrl(),o={"X-Goog-Upload-Protocol":"multipart"};const s=function(){let e="";for(let t=0;t<2;t++)e+=Math.random().toString().slice(2);return e}();o["Content-Type"]="multipart/related; boundary="+s;const l=function(e,t,n){const a=Object.assign({},n);return a.fullPath=e.path,a.size=t.size(),a.contentType||(a.contentType=function(e,t){return e&&e.contentType||t&&t.type()||"application/octet-stream"}(null,t)),a}(t,a,i),u=function(e,t){const n={},a=t.length;for(let i=0;i<a;i++){const a=t[i];a.writable&&(n[a.server]=e[a.local])}return JSON.stringify(n)}(l,n),c="--"+s+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+u+"\r\n--"+s+"\r\nContent-Type: "+l.contentType+"\r\n\r\n",d="\r\n--"+s+"--",h=nE.getBlob(c,a,d);if(null===h)throw new SA(TA.CANNOT_SLICE_BLOB,"Cannot slice blob for upload. Please retry the upload.");const p={name:l.fullPath},f=jA(r,e.host,e._protocol),m=e.maxUploadRetryTime,v=new dE(f,"POST",function(e,t){return function(n,a){const i=cE(e,a,t);return hE(null!==i),i}}(e,n),m);return v.urlParams=p,v.headers=o,v.body=h.uploadData(),v.errorHandler=fE(t),v}class gE{constructor(){this.sent_=!1,this.xhr_=new XMLHttpRequest,this.initXhr(),this.errorCode_=EA.NO_ERROR,this.sendPromise_=new Promise(e=>{this.xhr_.addEventListener("abort",()=>{this.errorCode_=EA.ABORT,e()}),this.xhr_.addEventListener("error",()=>{this.errorCode_=EA.NETWORK_ERROR,e()}),this.xhr_.addEventListener("load",()=>{e()})})}send(e,t,n,a,i){if(this.sent_)throw RA("cannot .send() more than once");if(Uu(e)&&n&&(this.xhr_.withCredentials=!0),this.sent_=!0,this.xhr_.open(t,e,!0),void 0!==i)for(const r in i)i.hasOwnProperty(r)&&this.xhr_.setRequestHeader(r,i[r].toString());return void 0!==a?this.xhr_.send(a):this.xhr_.send(),this.sendPromise_}getErrorCode(){if(!this.sent_)throw RA("cannot .getErrorCode() before sending");return this.errorCode_}getStatus(){if(!this.sent_)throw RA("cannot .getStatus() before sending");try{return this.xhr_.status}catch(w7){return-1}}getResponse(){if(!this.sent_)throw RA("cannot .getResponse() before sending");return this.xhr_.response}getErrorText(){if(!this.sent_)throw RA("cannot .getErrorText() before sending");return this.xhr_.statusText}abort(){this.xhr_.abort()}getResponseHeader(e){return this.xhr_.getResponseHeader(e)}addUploadProgressListener(e){null!=this.xhr_.upload&&this.xhr_.upload.addEventListener("progress",e)}removeUploadProgressListener(e){null!=this.xhr_.upload&&this.xhr_.upload.removeEventListener("progress",e)}}class yE extends gE{initXhr(){this.xhr_.responseType="text"}}function bE(){return new yE}
3614/**
3615 * @license
3616 * Copyright 2019 Google LLC
3617 *
3618 * Licensed under the Apache License, Version 2.0 (the "License");
3619 * you may not use this file except in compliance with the License.
3620 * You may obtain a copy of the License at
3621 *
3622 *   http://www.apache.org/licenses/LICENSE-2.0
3623 *
3624 * Unless required by applicable law or agreed to in writing, software
3625 * distributed under the License is distributed on an "AS IS" BASIS,
3626 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3627 * See the License for the specific language governing permissions and
3628 * limitations under the License.
3629 */class _E{constructor(e,t){this._service=e,this._location=t instanceof DA?t:DA.makeFromUrl(t,e.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(e,t){return new _E(e,t)}get root(){const e=new DA(this._location.bucket,"");return this._newRef(this._service,e)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return iE(this._location.path)}get storage(){return this._service}get parent(){const e=function(e){if(0===e.length)return null;const t=e.lastIndexOf("/");return-1===t?"":e.slice(0,t)}(this._location.path);if(null===e)return null;const t=new DA(this._location.bucket,e);return new _E(this._service,t)}_throwIfRoot(e){if(""===this._location.path)throw function(e){return new SA(TA.INVALID_ROOT_OPERATION,"The operation '"+e+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}(e)}}function wE(e){e._throwIfRoot("getDownloadURL");const t=function(e,t,n){const a=jA(t.fullServerUrl(),e.host,e._protocol),i=e.maxOperationRetryTime,r=new dE(a,"GET",pE(e,n),i);return r.errorHandler=mE(t),r}(e.storage,e._location,lE());return e.storage.makeRequestWithTokens(t,bE).then(e=>{if(null===e)throw new SA(TA.NO_DOWNLOAD_URL,"The given file does not have any download URLs.");return e})}function kE(e,t){if(e instanceof TE){const n=e;if(null==n._bucket)throw new SA(TA.NO_DEFAULT_BUCKET,"No default bucket found. Did you set the '"+CA+"' property when initializing the app?");const a=new _E(n,n._bucket);return null!=t?kE(a,t):a}return void 0!==t?function(e,t){const n=function(e,t){const n=t.split("/").filter(e=>e.length>0).join("/");return 0===e.length?n:e+"/"+n}(e._location.path,t),a=new DA(e._location.bucket,n);return new _E(e.storage,a)}
3630/**
3631 * @license
3632 * Copyright 2017 Google LLC
3633 *
3634 * Licensed under the Apache License, Version 2.0 (the "License");
3635 * you may not use this file except in compliance with the License.
3636 * You may obtain a copy of the License at
3637 *
3638 *   http://www.apache.org/licenses/LICENSE-2.0
3639 *
3640 * Unless required by applicable law or agreed to in writing, software
3641 * distributed under the License is distributed on an "AS IS" BASIS,
3642 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3643 * See the License for the specific language governing permissions and
3644 * limitations under the License.
3645 */(e,t):e}function CE(e,t){if(t&&/^[A-Za-z]+:\/\//.test(t)){if(e instanceof TE)return new _E(e,t);throw PA("To use ref(service, url), the first argument must be a Storage instance.")}return kE(e,t)}function SE(e,t){const n=null==t?void 0:t[CA];return null==n?null:DA.makeFromBucketSpec(n,e)}class TE{constructor(e,t,n,a,i,r=!1){this.app=e,this._authProvider=t,this._appCheckProvider=n,this._url=a,this._firebaseVersion=i,this._isUsingEmulator=r,this._bucket=null,this._host=kA,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=12e4,this._maxUploadRetryTime=6e5,this._requests=new Set,this._bucket=null!=a?DA.makeFromBucketSpec(a,this._host):SE(this._host,this.app.options)}get host(){return this._host}set host(e){this._host=e,null!=this._url?this._bucket=DA.makeFromBucketSpec(this._url,e):this._bucket=SE(e,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(e){XA("time",0,Number.POSITIVE_INFINITY,e),this._maxUploadRetryTime=e}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(e){XA("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 t=await e.getToken();if(null!==t)return t.accessToken}return null}async _getAppCheckToken(){if(Pd(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;const e=this._appCheckProvider.getImmediate({optional:!0});if(e){return(await e.getToken()).token}return null}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEac
3645h(e=>e.cancel()),this._requests.clear()),Promise.resolve()}_makeStorageReference(e){return new _E(this,e)}_makeRequest(e,t,n,a,i=!0){if(this._deleted)return new LA(MA());{const r=function(e,t,n,a,i,r,o=!0,s=!1){const l=UA(e.urlParams),u=e.url+l,c=Object.assign({},e.headers);return function(e,t){t&&(e["X-Firebase-GMPID"]=t)}(c,t),function(e,t){null!==t&&t.length>0&&(e.Authorization="Firebase "+t)}(c,n),function(e,t){e["X-Firebase-Storage-Version"]="webjs/"+(null!=t?t:"AppManager")}(c,r),function(e,t){null!==t&&(e["X-Firebase-AppCheck"]=t)}(c,a),new HA(u,e.method,c,e.body,e.successCodes,e.additionalRetryCodes,e.handler,e.errorHandler,e.timeout,e.progressCallback,i,o,s)}
3646/**
3647 * @license
3648 * Copyright 2017 Google LLC
3649 *
3650 * Licensed under the Apache License, Version 2.0 (the "License");
3651 * you may not use this file except in compliance with the License.
3652 * You may obtain a copy of the License at
3653 *
3654 *   http://www.apache.org/licenses/LICENSE-2.0
3655 *
3656 * Unless required by applicable law or agreed to in writing, software
3657 * distributed under the License is distributed on an "AS IS" BASIS,
3658 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3659 * See the License for the specific language governing permissions and
3660 * limitations under the License.
3661 */(e,this._appId,n,a,t,this._firebaseVersion,i,this._isUsingEmulator);return this._requests.add(r),r.getPromise().then(()=>this._requests.delete(r),()=>this._requests.delete(r)),r}}async makeRequestWithTokens(e,t){const[n,a]=await Promise.all([this._getAuthToken(),this._getAppCheckToken()]);return this._makeRequest(e,t,n,a).getPromise()}}const AE="@firebase/storage",EE="0.14.0",IE="storage";function xE(e,t,n){return function(e,t,n){e._throwIfRoot("uploadBytes");const a=vE(e.storage,e._location,lE(),new nE(t,!0),n);return e.storage.makeRequestWithTokens(a,bE).then(t=>({metadata:t,ref:e}))}(e=bc(e),t,n)}function NE(e){return wE(e=bc(e))}function PE(e,t){return CE(e=bc(e),t)}function ME(e,{instanceIdentifier:t}){const n=e.getProvider("app").getImmediate(),a=e.getProvider("auth-internal"),i=e.getProvider("app-check-internal");return new TE(n,a,i,t,Rd)}function OE(){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."}}xd(new _c(IE,ME,"PUBLIC").setMultipleInstances(!0)),Bd(AE,EE,""),Bd(AE,EE,"esm2020");const RE=OE,DE=new ec("auth","Firebase",{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}),LE=new Nc("@firebase/auth");function BE(e,...t){LE.logLevel<=Sc.ERROR&&LE.error("Auth (".concat(Rd,"): ").concat(e),...t)}
3662/**
3663 * @license
3664 * Copyright 2020 Google LLC
3665 *
3666 * Licensed under the Apache License, Version 2.0 (the "License");
3667 * you may not use this file except in compliance with the License.
3668 * You may obtain a copy of the License at
3669 *
3670 *   http://www.apache.org/licenses/LICENSE-2.0
3671 *
3672 * Unless required by applicable law or agreed to in writing, software
3673 * distributed under the License is distributed on an "AS IS" BASIS,
3674 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3675 * See the License for the specific language governing permissions and
3676 * limitations under the License.
3677 */function FE(e,...t){throw UE(e,...t)}function VE(e,...t){return UE(e,...t)}function XE(e,t,n){const a={...RE(),[t]:n};return new ec("auth","Firebase",a).create(t,{appName:e.name})}function jE(e){return XE(e,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function UE(e,...t){if("string"!=typeof e){const n=t[0],a=[...t.slice(1)];return a[0]&&(a[0].appName=e.name),e._errorFactory.create(n,...a)}return DE.create(e,...t)}function HE(e,t,...n){if(!e)throw UE(t,...n)}function zE(e){const t="INTERNAL ASSERTION FAILED: "+e;throw BE(t),new Error(t)}function KE(e,t){e||zE(t)}
3678/**
3679 * @license
3680 * Copyright 2020 Google LLC
3681 *
3682 * Licensed under the Apache License, Version 2.0 (the "License");
3683 * you may not use this file except in compliance with the License.
3684 * You may obtain a copy of the License at
3685 *
3686 *   http://www.apache.org/licenses/LICENSE-2.0
3687 *
3688 * Unless required by applicable law or agreed to in writing, software
3689 * distributed under the License is distributed on an "AS IS" BASIS,
3690 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3691 * See the License for the specific language governing permissions and
3692 * limitations under the License.
3693 */function WE(){var e;return"undefined"!=typeof self&&(null==(e=self.location)?void 0:e.href)||""}function GE(){return"http:"===qE()||"https:"===qE()}function qE(){var e;return"undefined"!=typeof self&&(null==(e=self.location)?void 0:e.protocol)||null}
3694/**
3695 * @license
3696 * Copyright 2020 Google LLC
3697 *
3698 * Licensed under the Apache License, Version 2.0 (the "License");
3699 * you may not use this file except in compliance with the License.
3700 * You may obtain a copy of the License at
3701 *
3702 *   http://www.apache.org/licenses/LICENSE-2.0
3703 *
3704 * Unless required by applicable law or agreed to in writing, software
3705 * distributed under the License is distributed on an "AS IS" BASIS,
3706 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3707 * See the License for the specific language governing permissions and
3708 * limitations under the License.
3709 */function $E(){return!("undefined"!=typeof navigator&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&(GE()||function(){const e="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof e&&void 0!==e.id}()||"connection"in navigator))||navigator.onLine}
3710/**
3711 * @license
3712 * Copyright 2020 Google LLC
3713 *
3714 * Licensed under the Apache License, Version 2.0 (the "License");
3715 * you may not use this file except in compliance with the License.
3716 * You may obtain a copy of the License at
3717 *
3718 *   http://www.apache.org/licenses/LICENSE-2.0
3719 *
3720 * Unless required by applicable law or agreed to in writing, software
3721 * distributed under the License is distributed on an "AS IS" BASIS,
3722 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3723 * See the License for the specific language governing permissions and
3724 * limitations under the License.
3725 */
3726class YE{constructor(e,t){this.shortDelay=e,this.longDelay=t,KE(t>e,"Short delay should be less than long delay!"),this.isMobile=$u()||Yu()}get(){return $E()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}
3727/**
3728 * @license
3729 * Copyright 2020 Google LLC
3730 *
3731 * Licensed under the Apache License, Version 2.0 (the "License");
3732 * you may not use this file except in compliance with the License.
3733 * You may obtain a copy of the License at
3734 *
3735 *   http://www.apache.org/licenses/LICENSE-2.0
3736 *
3737 * Unless required by applicable law or agreed to in writing, software
3738 * distributed under the License is distributed on an "AS IS" BASIS,
3739 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3740 * See the License for the specific language governing permissions and
3741 * limitations under the License.
3742 */function JE(e,t){KE(e.emulator,"Emulator should always be set here");const{url:n}=e.emulator;return t?"".concat(n).concat(t.startsWith("/")?t.slice(1):t):n}
3743/**
3744 * @license
3745 * Copyright 2020 Google LLC
3746 *
3747 * Licensed under the Apache License, Version 2.0 (the "License");
3748 * you may not use this file except in compliance with the License.
3749 * You may obtain a copy of the License at
3750 *
3751 *   http://www.apache.org/licenses/LICENSE-2.0
3752 *
3753 * Unless required by applicable law or agreed to in writing, software
3754 * distributed under the License is distributed on an "AS IS" BASIS,
3755 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3756 * See the License for the specific language governing permissions and
3757 * limitations under the License.
3758 */class QE{static initialize(e,t,n){this.fetchImpl=e,t&&(this.headersImpl=t),n&&(this.responseImpl=n)}static fetch(){return this.fetchImpl?this.fetchImpl:"undefined"!=typeof self&&"fetch"in self?self.fetch:"undefined"!=typeof globalThis&&globalThis.fetch?globalThis.fetch:"undefined"!=typeof fetch?fetch:void zE("Could not find fetch implementation, make sure you call FetchProvi
3758der.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:"undefined"!=typeof self&&"Headers"in self?self.Headers:"undefined"!=typeof globalThis&&globalThis.Headers?globalThis.Headers:"undefined"!=typeof Headers?Headers:void zE("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:"undefined"!=typeof self&&"Response"in self?self.Response:"undefined"!=typeof globalThis&&globalThis.Response?globalThis.Response:"undefined"!=typeof Response?Response:void zE("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}
3759/**
3760 * @license
3761 * Copyright 2020 Google LLC
3762 *
3763 * Licensed under the Apache License, Version 2.0 (the "License");
3764 * you may not use this file except in compliance with the License.
3765 * You may obtain a copy of the License at
3766 *
3767 *   http://www.apache.org/licenses/LICENSE-2.0
3768 *
3769 * Unless required by applicable law or agreed to in writing, software
3770 * distributed under the License is distributed on an "AS IS" BASIS,
3771 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3772 * See the License for the specific language governing permissions and
3773 * limitations under the License.
3774 */const ZE={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"},eI=["/v1/accounts:signInWithCustomToken","/v1/accounts:signInWithEmailLink","/v1/accounts:signInWithIdp","/v1/accounts:signInWithPassword","/v1/accounts:signInWithPhoneNumber","/v1/token"],tI=new YE(3e4,6e4);
3775/**
3776 * @license
3777 * Copyright 2020 Google LLC
3778 *
3779 * Licensed under the Apache License, Version 2.0 (the "License");
3780 * you may not use this file except in compliance with the License.
3781 * You may obtain a copy of the License at
3782 *
3783 *   http://www.apache.org/licenses/LICENSE-2.0
3784 *
3785 * Unless required by applicable law or agreed to in writing, softw
3785are
3786 * distributed under the License is distributed on an "AS IS" BASIS,
3787 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3788 * See the License for the specific language governing permissions and
3789 * limitations under the License.
3790 */function nI(e,t){return e.tenantId&&!t.tenantId?{...t,tenantId:e.tenantId}:t}async function aI(e,t,n,a,i={}){return iI(e,i,async()=>{let i={},r={};a&&("GET"===t?r=a:i={body:JSON.stringify(a)});const o=dc({key:e.config.apiKey,...r}).slice(1),s=await e._getAdditionalHeaders();s["Content-Type"]="application/json",e.languageCode&&(s["X-Firebase-Locale"]=e.languageCode);const l={method:t,headers:s,...i};return"undefined"!=typeof navigator&&"Cloudflare-Workers"===navigator.userAgent||(l.referrerPolicy="no-referrer"),e.emulatorConfig&&Uu(e.emulatorConfig.host)&&(l.credentials="include"),QE.fetch()(await oI(e,e.config.apiHost,n,o),l)})}async function iI(e,t,n){e._canInitEmulator=!1;const a={...ZE,...t};try{const t=new lI(e),i=await Promise.race([n(),t.promise]);t.clearNetworkTimeout();const r=await i.json();if("needConfirmation"in r)throw uI(e,"account-exists-with-different-credential",r);if(i.ok&&!("errorMessage"in r))return r;{const t=i.ok?r.errorMessage:r.error.message,[n,o]=t.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===n)throw uI(e,"credential-already-in-use",r);if("EMAIL_EXISTS"===n)throw uI(e,"email-already-in-use",r);if("USER_DISABLED"===n)throw uI(e,"user-disabled",r);const s=a[n]||n.toLowerCase().replace(/[_\s]+/g,"-");if(o)throw XE(e,s,o);FE(e,s)}}catch(w7){if(w7 instanceof Zu)throw w7;FE(e,"network-request-failed",{message:String(w7)})}}async function rI(e,t,n,a,i={}){const r=await aI(e,t,n,a,i);return"mfaPendingCredential"in r&&FE(e,"multi-factor-auth-required",{_serverResponse:r}),r}async function oI(e,t,n,a){const i="".concat(t).concat(n,"?").concat(a),r=e,o=r.config.emulator?JE(e.config,i):"".concat(e.config.apiScheme,"://").concat(i);if(eI.includes(n)&&(await r._persistenceManagerAvailable,"COOKIE"===r._getPersistenceType())){return r._getPersistence()._getFinalTarget(o).toString()}return o}function sI(e){switch(e){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class lI{clearNetworkTimeout(){clearTimeout(this.timer)}constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((e,t)=>{this.timer=setTimeout(()=>t(VE(this.auth,"network-request-failed")),tI.get())})}}function uI(e,t,n){const a={appName:e.name};n.email&&(a.email=n.email),n.phoneNumber&&(a.phoneNumber=n.phoneNumber);const i=VE(e,t,a);return i.customData._tokenResponse=n,i}function cI(e){return void 0!==e&&void 0!==e.enterprise}class dI{constructor(e){if(this.siteKey="",this.recaptchaEnforcementState=[],void 0===e.recaptchaKey)throw new Error("recaptchaKey undefined");this.siteKey=e.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=e.recaptchaEnforcementState}getProviderEnforcementState(e){if(!this.recaptchaEnforcementState||0===this.recaptchaEnforcementState.length)return null;for(const t of this.recaptchaEnforcementState)if(t.provider&&t.provider===e)return sI(t.enforcementState);return null}isProviderEnabled(e){return"ENFORCE"===this.getProviderEnforcementState(e)||"AUDIT"===this.getProviderEnforcementState(e)}isAnyProviderEnabled(){return this.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")||this.isProviderEnabled("PHONE_PROVIDER")}}async function hI(e,t){return aI(e,"POST","/v1/accounts:lookup",t)}
3791/**
3792 * @license
3793 * Copyright 2020 Google LLC
3794 *
3795 * Licensed under the Apache License, Version 2.0 (the "License");
3796 * you may not use this file except in compliance with the License.
3797 * You may obtain a copy of the License at
3798 *
3799 *   http://www.apache.org/licenses/LICENSE-2.0
3800 *
3801 * Unless required by applicable law or agreed to in writing, software
3802 * distributed under the License is distributed on an "AS IS" BASIS,
3803 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3804 * See the License for the specific language governing permissions and
3805 * limitations under the License.
3806 */function pI(e){if(e)try{const t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch(w7){}}async function fI(e,t=!1){const n=bc(e),a=await n.getIdToken(t),i=vI(a);HE(i&&i.exp&&i.auth_time&&i.iat,n.auth,"internal-error");const r="object"==typeof i.firebase?i.firebase:void 0,o=null==r?void 0:r.sign_in_provider;return{claims:i,token:a,authTime:pI(mI(i.auth_time)),issuedAtTime:pI(mI(i.iat)),expirationTime:pI(mI(i.exp
3806)),signInProvider:o||null,signInSecondFactor:(null==r?void 0:r.sign_in_second_factor)||null}}function mI(e){return 1e3*Number(e)}function vI(e){const[t,n,a]=e.split(".");if(void 0===t||void 0===n||void 0===a)return BE("JWT malformed, contained fewer than 3 sections"),null;try{const e=Pu(n);return e?JSON.parse(e):(BE("Failed to decode base64 JWT payload"),null)}catch(w7){return BE("Caught error parsing JWT payload as JSON",null==w7?void 0:w7.toString()),null}}function gI(e){const t=vI(e);return HE(t,"internal-error"),HE(void 0!==t.exp,"internal-error"),HE(void 0!==t.iat,"internal-error"),Number(t.exp)-Number(t.iat)}
3807/**
3808 * @license
3809 * Copyright 2020 Google LLC
3810 *
3811 * Licensed under the Apache License, Version 2.0 (the "License");
3812 * you may not use this file except in compliance with the License.
3813 * You may obtain a copy of the License at
3814 *
3815 *   http://www.apache.org/licenses/LICENSE-2.0
3816 *
3817 * Unless required by applicable law or agreed to in writing, software
3818 * distributed under the License is distributed on an "AS IS" BASIS,
3819 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3820 * See the License for the specific language governing permissions and
3821 * limitations under the License.
3822 */async function yI(e,t,n=!1){if(n)return t;try{return await t}catch(w7){throw w7 instanceof Zu&&function({code:e}){return e==="auth/".concat("user-disabled")||e==="auth/".concat("user-token-expired")}
3823/**
3824 * @license
3825 * Copyright 2020 Google LLC
3826 *
3827 * Licensed under the Apache License, Version 2.0 (the "License");
3828 * you may not use this file except in compliance with the License.
3829 * You may obtain a copy of the License at
3830 *
3831 *   http://www.apache.org/licenses/LICENSE-2.0
3832 *
3833 * Unless required by applicable law or agreed to in writing, software
3834 * distributed under the License is distributed on an "AS IS" BASIS,
3835 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3836 * See the License for the specific language governing permissions and
3837 * limitations under the License.
3838 */(w7)&&e.auth.currentUser===e&&await e.auth.signOut(),w7}}class bI{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,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(e){var t;if(e){const e=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),e}{this.errorBackoff=3e4;const e=(null!=(t=this.user.stsTokenManager.expirationTime)?t:0)-Date.now()-3e5;return Math.max(0,e)}}schedule(e=!1){if(!this.isRunning)return;const t=this.getInterval(e);this.timerId=setTimeout(async()=>{await this.iteration()},t)}async iteration(){try{await this.user.getIdToken(!0)}catch(w7){return void((null==w7?void 0:w7.code)==="auth/".concat("network-request-failed")&&this.schedule(!0))}this.schedule()}}
3839/**
3840 * @license
3841 * Copyright 2020 Google LLC
3842 *
3843 * Licensed under the Apache License, Version 2.0 (the "License");
3844 * you may not use this file except in compliance with the License.
3845 * You may obtain a copy of the License at
3846 *
3847 *   http://www.apache.org/licenses/LICENSE-2.0
3848 *
3849 * Unless required by applicable law or agreed to in writing, software
3850 * distributed under the License is distributed on an "AS IS" BASIS,
3851 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3852 * See the License for the specific language governing permissions and
3853 * limitations under the License.
3854 */class _I{constructor(e,t){this.createdAt=e,this.lastLoginAt=t,this._initializeTime()}_initializeTime(){this.lastSignInTime=pI(this.lastLoginAt),this.creationTime=pI(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}
3855/**
3856 * @license
3857 * Copyright 2019 Google LLC
3858 *
3859 * Licensed under the Apache License, Version 2.0 (the "License");
3860 * you may not use this file except in compliance with the License.
3861 * You may obtain a copy of the License at
3862 *
3863 *   http://www.apache.org/licenses/LICENSE-2.0
3864 *
3865 * Unless required by applicable law or agreed to in writing, softw
3865are
3866 * distributed under the License is distributed on an "AS IS" BASIS,
3867 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3868 * See the License for the specific language governing permissions and
3869 * limitations under the License.
3870 */async function wI(e){var t;const n=e.auth,a=await e.getIdToken(),i=await yI(e,hI(n,{idToken:a}));HE(null==i?void 0:i.users.length,n,"internal-error");const r=i.users[0];e._notifyReloadListener(r);const o=(null==(t=r.providerUserInfo)?void 0:t.length)?kI(r.providerUserInfo):[],s=(l=e.providerData,u=o,[...l.filter(e=>!u.some(t=>t.providerId===e.providerId)),...u]);var l,u;const c=e.isAnonymous,d=!(e.email&&r.passwordHash||(null==s?void 0:s.length)),h=!!c&&d,p={uid:r.localId,displayName:r.displayName||null,photoURL:r.photoUrl||null,email:r.email||null,emailVerified:r.emailVerified||!1,phoneNumber:r.phoneNumber||null,tenantId:r.tenantId||null,providerData:s,metadata:new _I(r.createdAt,r.lastLoginAt),isAnonymous:h};Object.assign(e,p)}function kI(e){return e.map(({providerId:e,...t})=>({providerId:e,uid:t.rawId||"",displayName:t.displayName||null,email:t.email||null,phoneNumber:t.phoneNumber||null,photoURL:t.photoUrl||null}))}
3871/**
3872 * @license
3873 * Copyright 2020 Google LLC
3874 *
3875 * Licensed under the Apache License, Version 2.0 (the "License");
3876 * you may not use this file except in compliance with the License.
3877 * You may obtain a copy of the License at
3878 *
3879 *   http://www.apache.org/licenses/LICENSE-2.0
3880 *
3881 * Unless required by applicable law or agreed to in writing, software
3882 * distributed under the License is distributed on an "AS IS" BASIS,
3883 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3884 * See the License for the specific language governing permissions and
3885 * limitations under the License.
3886 */
3887/**
3888 * @license
3889 * Copyright 2020 Google LLC
3890 *
3891 * Licensed under the Apache License, Version 2.0 (the "License");
3892 * you may not use this file except in compliance with the License.
3893 * You may obtain a copy of the License at
3894 *
3895 *   http://www.apache.org/licenses/LICENSE-2.0
3896 *
3897 * Unless required by applicable law or agreed to in writing, software
3898 * distributed under the License is distributed on an "AS IS" BASIS,
3899 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3900 * See the License for the specific language governing permissions and
3901 * limitations under the License.
3902 */
3903class CI{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){HE(e.idToken,"internal-error"),HE(void 0!==e.idToken,"internal-error"),HE(void 0!==e.refreshToken,"internal-error");const t="expiresIn"in e&&void 0!==e.expiresIn?Number(e.expiresIn):gI(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}updateFromIdToken(e){HE(0!==e.length,"internal-error");const t=gI(e);this.updateTokensAndExpiration(e,null,t)}async getToken(e,t=!1){return t||!this.accessToken||this.isExpired?(HE(this.refreshToken,e,"user-token-expired"),this.refreshToken?(await this.refresh(e,this.refreshToken),this.accessToken):null):this.accessToken}clearRefreshToken(){this.refreshToken=null}async refresh(e,t){const{accessToken:n,refreshToken:a,expiresIn:i}=await async function(e,t){const n=await iI(e,{},async()=>{const n=dc({grant_type:"refresh_token",refresh_token:t}).slice(1),{tokenApiHost:a,apiKey:i}=e.config,r=await oI(e,a,"/v1/token","key=".concat(i)),o=await e._getAdditionalHeaders();o["Content-Type"]="application/x-www-form-urlencoded";const s={method:"POST",headers:o,body:n};return e.emulatorConfig&&Uu(e.emulatorConfig.host)&&(s.credentials="include"),QE.fetch()(r,s)});return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}(e,t);this.updateTokensAndExpiration(n,a,Number(i))}updateTokensAndExpiration(e,t,n){this.refreshToken=t||null,this.accessToken=e||null,this.expirationTime=Date.now()+1e3*n}static fromJSON(e,t){const{refreshToken:n,accessToken:a,expirationTime:i}=t,r=new CI;return n&&(HE("string"==typeof n,"internal-error",{appName:e}),r.refreshToken=n),a&&(HE("string"==typeof a,"internal-error",{appName:e}),r.accessToken=a),i&&(HE("number"==typeof i,"internal-error",{appName:e}),r.expirationTime=i),r}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 CI,this.toJSON())}_performRefresh(){return zE("not implemented")}}
3904/**
3905 * @license
3906 * Copyright 2020 Google LLC
3907 *
3908 * Licensed under the Apache License, Version 2.0 (the "License");
3909 * you may not use this file except in compliance with the License.
3910 * You may obtain a copy of the License at
3911 *
3912 *   http://www.apache.org/licenses/LICENSE-2.0
3913 *
3914 * Unless required by applicable law or agreed to in writing, software
3915 * distributed under the License is distributed on an "AS IS" BASIS,
3916 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3917 * See the License for the specific language governing permissions and
3918 * limitations under the License.
3919 */function SI(e,t){HE("string"==typeof e||void 0===e,"internal-error",{appName:t})}class TI{constructor({uid:e,auth:t,stsTokenManager:n,...a}){this.providerId="firebase",this.proactiveRefresh=new bI(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=e,this.auth=t,this.stsTokenManager=n,this.accessToken=n.accessToken,this.displayName=a.displayName||null,this.email=a.email||null,this.emailVerified=a.emailVerified||!1,this.phoneNumber=a.phoneNumber||null,this.photoURL=a.photoURL||null,this.isAnonymous=a.isAnonymous||!1,this.tenantId=a.tenantId||null,this.providerData=a.providerData?[...a.providerData]:[],this.metadata=new _I(a.createdAt||void 0,a.lastLoginAt||void 0)}async getIdToken(e){const t=await yI(this,this.stsTokenManager.getToken(this.auth,e));return HE(t,this.auth,"internal-error"),this.accessToken!==t&&(this.accessToken=t,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),t}getIdTokenResult(e){return fI(this,e)}reload(){return async function(e){const t=bc(e);await wI(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}(this)}_assign(e){this!==e&&(HE(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(e=>({...e})),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){const t=new TI({...this,auth:e,stsTokenManager:this.stsTokenManager._clone()});return t.metadata._copy(this.metadata),t}_onReload(e){HE(!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,t=!1){let n=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),n=!0),t&&await wI(this),await this.auth._persistUserIfCurrent(this),n&&this.auth._notifyListenersIfCurrent(this)}async delete(){if(Pd(this.auth.app))return Promise.reject(jE(this.auth));const e=await this.getIdToken();return await yI(this,
3920/**
3921 * @license
3922 * Copyright 2020 Google LLC
3923 *
3924 * Licensed under the Apache License, Version 2.0 (the "License");
3925 * you may not use this file except in compliance with the License.
3926 * You may obtain a copy of the License at
3927 *
3928 *   http://www.apache.org/licenses/LICENSE-2.0
3929 *
3930 * Unless required by applicable law or agreed to in writing, software
3931 * distributed under the License is distributed on an "AS IS" BASIS,
3932 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3933 * See the License for the specific language governing permissions and
3934 * limitations under the License.
3935 */
3936async function(e,t){return aI(e,"POST","/v1/accounts:delete",t)}(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return{uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(e=>({...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,t){var n,a,i,r,o,s,l,u;const c=null!=(n=t.displayName)?n:void 0,d=null!=(a=t.email)?a:void 0,h=null!=(i=t.phoneNumber)?i:void 0,p=null!=(r=t.photoURL)?r:void 0,f=null!=(o=t.tenantId)?o:void 0,m=null!=(s=t._redirectEventId)?s:void 0,v=null!=(l=t.createdAt)?l:void 0,g=null!=(u=t.lastLoginAt)?u:void 0,{uid:y,emailVerified:b,isAnonymous:_,providerData:w,stsTokenManager:k}=t;HE(y&&k,e,"internal-error");const C=CI.fromJSON(this.name,k);HE("string"==typeof y,e,"internal-error"),SI(c,e.name),SI(d,e.name),HE("boolean"==typeof b,e,"internal-error"),HE("boolean"==typeof _,e,"internal-error"),SI(h,e.name),SI(
3936p,e.name),SI(f,e.name),SI(m,e.name),SI(v,e.name),SI(g,e.name);const S=new TI({uid:y,auth:e,email:d,emailVerified:b,displayName:c,isAnonymous:_,photoURL:p,phoneNumber:h,tenantId:f,stsTokenManager:C,createdAt:v,lastLoginAt:g});return w&&Array.isArray(w)&&(S.providerData=w.map(e=>({...e}))),m&&(S._redirectEventId=m),S}static async _fromIdTokenResponse(e,t,n=!1){const a=new CI;a.updateFromServerResponse(t);const i=new TI({uid:t.localId,auth:e,stsTokenManager:a,isAnonymous:n});return await wI(i),i}static async _fromGetAccountInfoResponse(e,t,n){const a=t.users[0];HE(void 0!==a.localId,"internal-error");const i=void 0!==a.providerUserInfo?kI(a.providerUserInfo):[],r=!(a.email&&a.passwordHash||(null==i?void 0:i.length)),o=new CI;o.updateFromIdToken(n);const s=new TI({uid:a.localId,auth:e,stsTokenManager:o,isAnonymous:r}),l={uid:a.localId,displayName:a.displayName||null,photoURL:a.photoUrl||null,email:a.email||null,emailVerified:a.emailVerified||!1,phoneNumber:a.phoneNumber||null,tenantId:a.tenantId||null,providerData:i,metadata:new _I(a.createdAt,a.lastLoginAt),isAnonymous:!(a.email&&a.passwordHash||(null==i?void 0:i.length))};return Object.assign(s,l),s}}
3937/**
3938 * @license
3939 * Copyright 2020 Google LLC
3940 *
3941 * Licensed under the Apache License, Version 2.0 (the "License");
3942 * you may not use this file except in compliance with the License.
3943 * You may obtain a copy of the License at
3944 *
3945 *   http://www.apache.org/licenses/LICENSE-2.0
3946 *
3947 * Unless required by applicable law or agreed to in writing, software
3948 * distributed under the License is distributed on an "AS IS" BASIS,
3949 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3950 * See the License for the specific language governing permissions and
3951 * limitations under the License.
3952 */const AI=new Map;function EI(e){KE(e instanceof Function,"Expected a class definition");let t=AI.get(e);return t?(KE(t instanceof e,"Instance stored in cache mismatched with class"),t):(t=new e,AI.set(e,t),t)}
3953/**
3954 * @license
3955 * Copyright 2019 Google LLC
3956 *
3957 * Licensed under the Apache License, Version 2.0 (the "License");
3958 * you may not use this file except in compliance with the License.
3959 * You may obtain a copy of the License at
3960 *
3961 *   http://www.apache.org/licenses/LICENSE-2.0
3962 *
3963 * Unless required by applicable law or agreed to in writing, software
3964 * distributed under the License is distributed on an "AS IS" BASIS,
3965 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3966 * See the License for the specific language governing permissions and
3967 * limitations under the License.
3968 */class II{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(e,t){this.storage[e]=t}async _get(e){const t=this.storage[e];return void 0===t?null:t}async _remove(e){delete this.storage[e]}_addListener(e,t){}_removeListener(e,t){}}II.type="NONE";const xI=II;
3969/**
3970 * @license
3971 * Copyright 2019 Google LLC
3972 *
3973 * Licensed under the Apache License, Version 2.0 (the "License");
3974 * you may not use this file except in compliance with the License.
3975 * You may obtain a copy of the License at
3976 *
3977 *   http://www.apache.org/licenses/LICENSE-2.0
3978 *
3979 * Unless required by applicable law or agreed to in writing, software
3980 * distributed under the License is distributed on an "AS IS" BASIS,
3981 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3982 * See the License for the specific language governing permissions and
3983 * limitations under the License.
3984 */function NI(e,t,n){return"".concat("firebase",":").concat(e,":").concat(t,":").concat(n)}class PI{constructor(e,t,n){this.persistence=e,this.auth=t,this.userKey=n;const{config:a,name:i}=this.auth;this.fullUserKey=NI(this.userKey,a.apiKey,i),this.fullPersistenceKey=NI("persistence",a.apiKey,i),this.boundEventHandler=t._onStorageEvent.bind(t),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("string"==typeof e){const t=await hI(this.auth,{idToken:e}).catch(()=>{});return t?TI._fromGetAccountInfoResponse(this.auth,t,e):null}return TI._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 t=await this.getCurrentUser();return await this.removeCurrentUser(),this.persistence=e,t?this.setCurrentUser(t):void 0}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(e,t,n="authUser"){if(!t.length)return new PI(EI(xI),e,n);const a=(await Promise.all(t.map(async e=>{if(await e._isAvailable())return e}))).filter(e=>e);let i=a[0]||EI(xI);const r=NI(n,e.config.apiKey,e.name);let o=null;for(const l of t)try{const t=await l._get(r);if(t){let n;if("string"==typeof t){const a=await hI(e,{idToken:t}).catch(()=>{});if(!a)break;n=await TI._fromGetAccountInfoResponse(e,a,t)}else n=TI._fromJSON(e,t);l!==i&&(o=n),i=l;break}}catch(w7){}const s=a.filter(e=>e._shouldAllowMigration);return i._shouldAllowMigration&&s.length?(i=s[0],o&&await i._set(r,o.toJSON()),await Promise.all(t.map(async e=>{if(e!==i)try{await e._remove(r)}catch(w7){}})),new PI(i,e,n)):new PI(i,e,n)}}
3985/**
3986 * @license
3987 * Copyright 2020 Google LLC
3988 *
3989 * Licensed under the Apache License, Version 2.0 (the "License");
3990 * you may not use this file except in compliance with the License.
3991 * You may obtain a copy of the License at
3992 *
3993 *   http://www.apache.org/licenses/LICENSE-2.0
3994 *
3995 * Unless required by applicable law or agreed to in writing, software
3996 * distributed under the License is distributed on an "AS IS" BASIS,
3997 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3998 * See the License for the specific language governing permissions and
3999 * limitations under the License.
4000 */function MI(e){const t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";if(LI(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";if(t.includes("edge/"))return"Edge";if(OI(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(FI(t))return"Blackberry";if(VI(t))return"Webos";if(RI(t))return"Safari";if((t.includes("chrome/")||DI(t))&&!t.includes("edge/"))return"Chrome";if(BI(t))return"Android";{const t=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,n=e.match(t);if(2===(null==n?void 0:n.length))return n[1]}return"Other"}function OI(e=qu()){return/firefox\//i.test(e)}function RI(e=qu()){const t=e.toLowerCase();return t.includes("safari/")&&!t.includes("chrome/")&&!t.includes("crios/")&&!t.includes("android")}function DI(e=qu()){return/crios\//i.test(e)}function LI(e=qu()){return/iemobile/i.test(e)}function BI(e=qu()){return/android/i.test(e)}function FI(e=qu()){return/blackberry/i.test(e)}function VI(e=qu()){return/webos/i.test(e)}function XI(e=qu()){return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function jI(){return function(){const e=qu();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}()&&10===document.documentMode}function UI(e=qu()){return XI(e)||BI(e)||VI(e)||FI(e)||/windows phone/i.test(e)||LI(e)}
4001/**
4002 * @license
4003 * Copyright 2020 Google LLC
4004 *
4005 * Licensed under the Apache License, Version 2.0 (the "License");
4006 * you may not use this file except in compliance with the License.
4007 * You may obtain a copy of the License at
4008 *
4009 *   http://www.apache.org/licenses/LICENSE-2.0
4010 *
4011 * Unless required by applicable law or agreed to in writing, software
4012 * distributed under the License is distributed on an "AS IS" BASIS,
4013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4014 * See the License for the specific language governing permissions and
4015 * limitations under the License.
4016 */function HI(e,t=[]){let n;switch(e){case"Browser":n=MI(qu());break;case"Worker":n="".concat(MI(qu()),"-").concat(e);break;default:n=e}const a=t.length?t.join(","):"FirebaseCore-web";return"".concat(n,"/").concat("JsCore","/").concat(Rd,"/").concat(a)}
4017/**
4018 * @license
4019 * Copyright 2022 Google LLC
4020 *
4021 * Licensed under the Apache License, Version 2.0 (the "License");
4022 * you may not use this file except in compliance with the License.
4023 * You may obtain a copy of the License at
4024 *
4025 *   http://www.apache.org/licenses/LICENSE-2.0
4026 *
4027 * Unless required by applicable law or agreed to in writing, software
4028 * distributed under the License is distributed on an "AS IS" BASIS,
4029 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4030 * See the License for the specific language governing permissions and
4031 * limitations under the License.
4032 */class zI{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,t){const n=t=>new Promise((n,a)=>{try{n(e(t))}catch(w7){a(w7)}});n.onAbort=t,this.queue.push(n);const a=this.queue.length-1;return()=>{this.queue[a]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;const t=[];try{for(const n of this.queue)await n(e),n.onAbort&&t.push(n.onAbort)}catch(w7){t.reverse();for(const a of t)try{a()}catch(n){}throw this.auth._errorFactory.create("login-blocked",{originalMessage:null==w7?void 0:w7.message})}}}
4033/**
4034 * @license
4035 * Copyright 2023 Google LLC
4036 *
4037 * Licensed under the Apache License, Version 2.0 (the "License");
4038 * you may not use this file except in compliance with the License.
4039 * You may obtain a copy of the License at
4040 *
4041 *   http://www.apache.org/licenses/LICENSE-2.0
4042 *
4043 * Unless required by applicable law or agreed to in writing, softw
4043are
4044 * distributed under the License is distributed on an "AS IS" BASIS,
4045 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4046 * See the License for the specific language governing permissions and
4047 * limitations under the License.
4048 */class KI{constructor(e){var t,n,a,i;const r=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=null!=(t=r.minPasswordLength)?t:6,r.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=r.maxPasswordLength),void 0!==r.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=r.containsLowercaseCharacter),void 0!==r.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=r.containsUppercaseCharacter),void 0!==r.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=r.containsNumericCharacter),void 0!==r.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=r.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=null!=(a=null==(n=e.allowedNonAlphanumericCharacters)?void 0:n.join(""))?a:"",this.forceUpgradeOnSignin=null!=(i=e.forceUpgradeOnSignin)&&i,this.schemaVersion=e.schemaVersion}validatePassword(e){var t,n,a,i,r,o;const s={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,s),this.validatePasswordCharacterOptions(e,s),s.isValid&&(s.isValid=null==(t=s.meetsMinPasswordLength)||t),s.isValid&&(s.isValid=null==(n=s.meetsMaxPasswordLength)||n),s.isValid&&(s.isValid=null==(a=s.containsLowercaseLetter)||a),s.isValid&&(s.isValid=null==(i=s.containsUppercaseLetter)||i),s.isValid&&(s.isValid=null==(r=s.containsNumericCharacter)||r),s.isValid&&(s.isValid=null==(o=s.containsNonAlphanumericCharacter)||o),s}validatePasswordLengthOptions(e,t){const n=this.customStrengthOptions.minPasswordLength,a=this.customStrengthOptions.maxPasswordLength;n&&(t.meetsMinPasswordLength=e.length>=n),a&&(t.meetsMaxPasswordLength=e.length<=a)}validatePasswordCharacterOptions(e,t){let n;this.updatePasswordCharacterOptionsStatuses(t,!1,!1,!1,!1);for(let a=0;a<e.length;a++)n=e.charAt(a),this.updatePasswordCharacterOptionsStatuses(t,n>="a"&&n<="z",n>="A"&&n<="Z",n>="0"&&n<="9",this.allowedNonAlphanumericCharacters.includes(n))}updatePasswordCharacterOptionsStatuses(e,t,n,a,i){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=t)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=n)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=a)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=i))}}
4049/**
4050 * @license
4051 * Copyright 2020 Google LLC
4052 *
4053 * Licensed under the Apache License, Version 2.0 (the "License");
4054 * you may not use this file except in compliance with the License.
4055 * You may obtain a copy of the License at
4056 *
4057 *   http://www.apache.org/licenses/LICENSE-2.0
4058 *
4059 * Unless required by applicable law or agreed to in writing, software
4060 * distributed under the License is distributed on an "AS IS" BASIS,
4061 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4062 * See the License for the specific language governing permissions and
4063 * limitations under the License.
4064 */class WI{constructor(e,t,n,a){this.app=e,this.heartbeatServiceProvider=t,this.appCheckServiceProvider=n,this.config=a,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new qI(this),this.idTokenSubscription=new qI(this),this.beforeStateQueue=new zI(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=DE,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=a.sdkClientVersion,this._persistenceManagerAvailable=new Promise(e=>this._resolvePersistenceManagerAvailable=e)}_initializeWithPersistence(e,t){return t&&(this._popupRedirectResolver=EI(t)),this._initializationPromise=this.queue(async()=>{var n,a,i;if(!this._deleted&&(this.persistenceManager=await PI.create(this,e),null==(n=this._resolvePersistenceManagerAvailable)||n.call(this),!this._deleted)){if
4064(null==(a=this._popupRedirectResolver)?void 0:a._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch(w7){}await this.initializeCurrentUser(t),this.lastNotifiedUid=(null==(i=this.currentUser)?void 0:i.uid)||null,this._deleted||(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const e=await this.assertedPersistence.getCurrentUser();return this.currentUser||e?this.currentUser&&e&&this.currentUser.uid===e.uid?(this._currentUser._assign(e),void(await this.currentUser.getIdToken())):void(await this._updateCurrentUser(e,!0)):void 0}async initializeCurrentUserFromIdToken(e){try{const t=await hI(this,{idToken:e}),n=await TI._fromGetAccountInfoResponse(this,t,e);await this.directlySetCurrentUser(n)}catch(t){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",t),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(e){var t;if(Pd(this.app)){const e=this.app.settings.authIdToken;return e?new Promise(t=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(e).then(t,t))}):this.directlySetCurrentUser(null)}const n=await this.assertedPersistence.getCurrentUser();let a=n,i=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const n=null==(t=this.redirectUser)?void 0:t._redirectEventId,r=null==a?void 0:a._redirectEventId,o=await this.tryRedirectSignIn(e);n&&n!==r||!(null==o?void 0:o.user)||(a=o.user,i=!0)}if(!a)return this.directlySetCurrentUser(null);if(!a._redirectEventId){if(i)try{await this.beforeStateQueue.runMiddleware(a)}catch(w7){a=n,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(w7))}return a?this.reloadAndSetCurrentUserOrClear(a):this.directlySetCurrentUser(null)}return HE(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===a._redirectEventId?this.directlySetCurrentUser(a):this.reloadAndSetCurrentUserOrClear(a)}async tryRedirectSignIn(e){let t=null;try{t=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch(w7){await this._setRedirectUser(null)}return t}async reloadAndSetCurrentUserOrClear(e){try{await wI(e)}catch(w7){if((null==w7?void 0:w7.code)!=="auth/".concat("network-request-failed"))return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=function(){if("undefined"==typeof navigator)return null;const e=navigator;return e.languages&&e.languages[0]||e.language||null}()}async _delete(){this._deleted=!0}async updateCurrentUser(e){if(Pd(this.app))return Promise.reject(jE(this));const t=e?bc(e):null;return t&&HE(t.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(t&&t._clone(this))}async _updateCurrentUser(e,t=!1){if(!this._deleted)return e&&HE(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),t||await this.beforeStateQueue.runMiddleware(e),this.queue(async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners()})}async signOut(){return Pd(this.app)?Promise.reject(jE(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(e){return Pd(this.app)?Promise.reject(jE(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(EI(e))})}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(e){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const t=this._getPasswordPolicyInternal();return t.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):t.validatePassword(e)}_getPasswordPolicyInternal(){return null===this.tenantId?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const e=await async function(e,t={}){return aI(e,"GET","/v2/passwordPolicy",nI(e,t))}
4065/**
4066 * @license
4067 * Copyright 2023 Google LLC
4068 *
4069 * Licensed under the Apache License, Version 2.0 (the "License");
4070 * you may not use this file except in compliance with the License.
4071 * You may obtain a copy of the License at
4072 *
4073 *   http://www.apache.org/licenses/LICENSE-2.0
4074 *
4075 * Unless required by applicable law or agreed to in writing, software
4076 * distributed under the License is distributed on an "AS IS" BASIS,
4077 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4078 * See the License for the specific language governing permissions and
4079 * limitations under the License.
4080 */(this),t=new KI(e);null===this.tenantId?this._projectPasswordPolicy=t:this._tenantPasswordPolicies[this.tenantId]=t}_getPersistenceType(){return this.assertedPersistence.persistence.type}_getPersistence(){return this.assertedPersistence.persistence}_updateErrorMap(e){this._errorFactory=new ec("auth","Firebase",e())}onAuthStateChanged(e,t,n){return this.registerStateListener(this.authStateSubscription,e,t,n)}beforeAuthStateChanged(e,t){return this.beforeStateQueue.pushCallback(e,t)}onIdTokenChanged(e,t,n){return this.registerStateListener(this.idTokenSubscription,e,t,n)}authStateReady(){return new Promise((e,t)=>{if(this.currentUser)e();else{const n=this.onAuthStateChanged(()=>{n(),e()},t)}})}async revokeAccessToken(e){if(this.currentUser){const t={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:e,idToken:await this.currentUser.getIdToken()};null!=this.tenantId&&(t.tenantId=this.tenantId),await async function(e,t){return aI(e,"POST","/v2/accounts:revokeToken",nI(e,t))}(this,t)}}toJSON(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null==(e=this._currentUser)?void 0:e.toJSON()}}async _setRedirectUser(e,t){const n=await this.getOrInitRedirectPersistenceManager(t);return null===e?n.removeCurrentUser():n.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){const t=e&&EI(e)||this._popupRedirectResolver;HE(t,this,"argument-error"),this.redirectPersistenceManager=await PI.create(this,[EI(t._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){var t,n;return this._isInitialized&&await this.queue(async()=>{}),(null==(t=this._currentUser)?void 0:t._redirectEventId)===e?this._currentUser:(null==(n=this.redirectUser)?void 0:n._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"".concat(this.config.authDomain,":").concat(this.config.apiKey,":").concat(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,t;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const n=null!=(t=null==(e=this.currentUser)?void 0:e.uid)?t:null;this.lastNotifiedUid!==n&&(this.lastNotifiedUid=n,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,t,n,a){if(this._deleted)return()=>{};const i="function"==typeof t?t:t.next.bind(t);let r=!1;const o=this._isInitialized?Promise.resolve():this._initializationPromise;if(HE(o,this,"internal-error"),o.then(()=>{r||i(this.currentUser)}),"function"==typeof t){const i=e.addObserver(t,n,a);return()=>{r=!0,i()}}{const n=e.addObserver(t);return()=>{r=!0,n()}}}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 HE(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){e&&!this.frameworks.includes(e)&&(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=HI(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var e;const t={"X-Client-Version":this.clientVersion};this.app.options.appId&&(t["X-Firebase-gmpid"]=this.app.options.appId);const n=await(null==(e=this.heartbeatServiceProvider.getImmediate({optional:!0}))?void 0:e.getHeartbeatsHeader());n&&(t["X-Firebase-Client"]=n);const a=await this._getAppCheckToken();return a&&(t["X-Firebase-AppCheck"]=a),t}async _getAppCheckToken(){var e;if(Pd(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;const t=await(null==(e=this.appCheckServiceProvider.getImmediate({optional:!0}))?void 0:e.getToken());return(null==t?void 0:t.error)&&function(e,...t){LE.logLevel<=Sc.WARN&&LE.warn("Auth (".concat(Rd,"): ").concat(e),...t)}("Error while retrieving App Check token: ".concat(t.error)),null==t?void 0:t.token}}function GI(e){return bc(e)}class qI{constructor(e){this.auth=e,this.observer=null,this.addObserver=function(e,t){const n=new mc(e,t);return n.subscribe.bind(n)}(e=>this.observer=e)}get next(){return HE(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}
4081/**
4082 * @license
4083 * Copyright 2020 Google LLC
4084 *
4085 * Licensed under the Apache License, Version 2.0 (the "License");
4086 * you may not use this file except in compliance with the License.
4087 * You may obtain a copy of the License at
4088 *
4089 *   http://www.apache.org/licenses/LICENSE-2.0
4090 *
4091 * Unless required by applicable law or agreed to in writing, software
4092 * distributed under the License is distributed on an "AS IS" BASIS,
4093 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4094 * See the License for the specific language governing permissions and
4095 * limitations under the License.
4096 */let $I={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function YI(e){return $I.loadJS(e)}class JI{constructor(){this.enterprise=new QI}ready(e){e()}execute(e,t){return Promise.resolve("token")}render(e,t){return""}}class QI{ready(e){e()}execute(e,t){return Promise.resolve("token")}render(e,t){return""}}const ZI="NO_RECAPTCHA";class ex{constructor(e){this.type="recaptcha-enterprise",this.auth=GI(e)}async verify(e="verify",t=!1){async function n(e){if(!t){if(null==e.tenantId&&null!=e._agentRecaptchaConfig)return e._agentRecaptchaConfig.siteKey;if(null!=e.tenantId&&void 0!==e._tenantRecaptchaConfigs[e.tenantId])return e._tenantRecaptchaConfigs[e.tenantId].siteKey}return new Promise(async(t,n)=>{(async function(e,t){return aI(e,"GET","/v2/recaptchaConfig",nI(e,t))})(e,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(a=>{if(void 0!==a.recaptchaKey){const n=new dI(a);return null==e.tenantId?e._agentRecaptchaConfig=n:e._tenantRecaptchaConfigs[e.tenantId]=n,t(n.siteKey)}n(new Error("recaptcha Enterprise site key undefined"))}).catch(e=>{n(e)})})}function a(t,n,a){const i=window.grecaptcha;cI(i)?i.enterprise.ready(()=>{i.enterprise.execute(t,{action:e}).then(e=>{n(e)}).catch(()=>{n(ZI)})}):a(Error("No reCAPTCHA enterprise script loaded."))}if(this.auth.settings.appVerificationDisabledForTesting){return(new JI).execute("siteKey",{action:"verify"})}return new Promise((e,i)=>{n(this.auth).then(n=>{if(!t&&cI(window.grecaptcha))a(n,e,i);else{if("undefined"==typeof window)return void i(new Error("RecaptchaVerifier is only supported in browser"));let t=$I.recaptchaEnterpriseScript;0!==t.length&&(t+=n),YI(t).then(()=>{a(n,e,i)}).catch(e=>{i(e)})}}).catch(e=>{i(e)})})}}async function tx(e,t,n,a=!1,i=!1){const r=new ex(e);let o;if(i)o=ZI;else try{o=await r.verify(n)}catch(Sae){o=await r.verify(n,!0)}const s={...t};if("mfaSmsEnrollment"===n||"mfaSmsSignIn"===n){if("phoneEnrollmentInfo"in s){const e=s.phoneEnrollmentInfo.phoneNumber,t=s.phoneEnrollmentInfo.recaptchaToken;Object.assign(s,{phoneEnrollmentInfo:{phoneNumber:e,recaptchaToken:t,captchaResponse:o,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}else if("phoneSignInInfo"in s){const e=s.phoneSignInInfo.recaptchaToken;Object.assign(s,{phoneSignInInfo:{recaptchaToken:e,captchaResponse:o,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}return s}return a?Object.assign(s,{captchaResp:o}):Object.assign(s,{captchaResponse:o}),Object.assign(s,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(s,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),s}async function nx(e,t,n,a,i){var r;if(null==(r=e._getRecaptchaConfig())?void 0:r.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const i=await tx(e,t,n,"getOobCode"===n);return a(e,i)}return a(e,t).catch(async i=>{if(i.code==="auth/".concat("missing-recaptcha-token")){console.log("".concat(n," is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow."));const i=await tx(e,t,n,"getOobCode"===n);return a(e,i)}return Promise.reject(i)})}
4097/**
4098 * @license
4099 * Copyright 2020 Google LLC
4100 *
4101 * Licensed under the Apache License, Version 2.0 (the "License");
4102 * you may not use this file except in compliance with the License.
4103 * You may obtain a copy of the License at
4104 *
4105 *   http://www.apache.org/licenses/LICENSE-2.0
4106 *
4107 * Unless required by applicable law or agreed to in writing, software
4108 * distributed under the License is distributed on an "AS IS" BASIS,
4109 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4110 * See the License for the specific language governing permissions and
4111 * limitations under the License.
vendor: 4,411 bytes, lines 4112-4165
4112 */function ax(e,t,n){const a=GI(e);HE(/^https?:\/\//.test(t),a,"invalid-emulator-scheme");const i=ix(t),{host:r,port:o}=function(e){const t=ix(e),n=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!n)return{host:"",port:null};const a=n[2].split("@").pop()||"",i=/^(\[[^\]]+\])(:|$)/.exec(a);if(i){const e=i[1];return{host:e,port:rx(a.substr(e.length+1))}}{const[e,t]=a.split(":");return{host:e,port:rx(t)}}}(t),s=null===o?"":":".concat(o),l={url:"".concat(i,"//").concat(r).concat(s,"/")},u=Object.freeze({host:r,port:o,protocol:i.replace(":",""),options:Object.freeze({disableWarnings:!1})});if(!a._canInitEmulator)return HE(a.config.emulator&&a.emulatorConfig,a,"emulator-config-failed"),void HE(uc(l,a.config.emulator)&&uc(u,a.emulatorConfig),a,"emulator-config-failed");a.config.emulator=l,a.emulatorConfig=u,a.settings.appVerificationDisabledForTesting=!0,Uu(r)?(Hu("".concat(i,"//").concat(r).concat(s)),Gu("Auth",!0)):function(){function e(){const e=document.createElement("p"),t=e.style;e.innerText="Running in emulator mode. Do not use with production credentials.",t.position="fixed",t.width="100%",t.backgroundColor="#ffffff",t.border=".1em solid #000000",t.color="#b50000",t.bottom="0px",t.left="0px",t.margin="0px",t.zIndex="10000",t.textAlign="center",e.classList.add("firebase-emulator-warning"),document.body.appendChild(e)}"undefined"!=typeof console&&"function"==typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials.");"undefined"!=typeof window&&"undefined"!=typeof document&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",e):e())}
4113/**
4114 * @license
4115 * Copyright 2020 Google LLC
4116 *
4117 * Licensed under the Apache License, Version 2.0 (the "License");
4118 * you may not use this file except in compliance with the License.
4119 * You may obtain a copy of the License at
4120 *
4121 *   http://www.apache.org/licenses/LICENSE-2.0
4122 *
4123 * Unless required by applicable law or agreed to in writing, software
4124 * distributed under the License is distributed on an "AS IS" BASIS,
4125 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4126 * See the License for the specific language governing permissions and
4127 * limitations under the License.
4128 */()}function ix(e){const t=e.indexOf(":");return t<0?"":e.substr(0,t+1)}function rx(e){if(!e)return null;const t=Number(e);return isNaN(t)?null:t}class ox{constructor(e,t){this.providerId=e,this.signInMethod=t}toJSON(){return zE("not implemented")}_getIdTokenResponse(e){return zE("not implemented")}_linkToIdToken(e,t){return zE("not implemented")}_getReauthenticationResolver(e){return zE("not implemented")}}
4129/**
4130 * @license
4131 * Copyright 2020 Google LLC
4132 *
4133 * Licensed under the Apache License, Version 2.0 (the "License");
4134 * you may not use this file except in compliance with the License.
4135 * You may obtain a copy of the License at
4136 *
4137 *   http://www.apache.org/licenses/LICENSE-2.0
4138 *
4139 * Unless required by applicable law or agreed to in writing, software
4140 * distributed under the License is distributed on an "AS IS" BASIS,
4141 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4142 * See the License for the specific language governing permissions and
4143 * limitations under the License.
4144 */async function sx(e,t){return aI(e,"POST","/v1/accounts:resetPassword",nI(e,t))}async function lx(e,t){return aI(e,"POST","/v1/accounts:signUp",t)}
4145/**
4146 * @license
4147 * Copyright 2020 Google LLC
4148 *
4149 * Licensed under the Apache License, Version 2.0 (the "License");
4150 * you may not use this file except in compliance with the License.
4151 * You may obtain a copy of the License at
4152 *
4153 *   http://www.apache.org/licenses/LICENSE-2.0
4154 *
4155 * Unless required by applicable law or agreed to in writing, software
4156 * distributed under the License is distributed on an "AS IS" BASIS,
4157 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4158 * See the License for the specific language governing permissions and
4159 * limitations under the License.
4160 */async function ux(e,t){return rI(e,"POST","/v1/accounts:signInWithPassword",nI(e,t))}async function cx(e,t){return aI(e,"POST","/v1/accounts:sendOobCode",nI(e,t))}async function dx(e,t){return cx(e,t)}async function hx(e,t){return cx(e,t)}
4161/**
4162 * @license
4163 * Copyright 2020 Google LLC
4164 *
4165 * Licensed under the Apache License, Version 2.0 (the "License");
4166 * you may not use this file except in compliance with the License.
4167 * You may obtain a copy of the License at
4168 *
4169 *   http://www.apache.org/licenses/LICENSE-2.0
4170 *
4171 * Unless required by applicable law or agreed to in writing, software
4172 * distributed under the License is distributed on an "AS IS" BASIS,
4173 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4174 * See the License for the specific language governing permissions and
4175 * limitations under the License.
4176 */
4177/**
4178 * @license
4179 * Copyright 2020 Google LLC
4180 *
4181 * Licensed under the Apache License, Version 2.0 (the "License");
4182 * you may not use this file except in compliance with the License.
4183 * You may obtain a copy of the License at
4184 *
4185 *   http://www.apache.org/licenses/LICENSE-2.0
4186 *
4187 * Unless required by applicable law or agreed to in writing, software
4188 * distributed under the License is distributed on an "AS IS" BASIS,
4189 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4190 * See the License for the specific language governing permissions and
4191 * limitations under the License.
4192 */
4193class px extends ox{constructor(e,t,n,a=null){super("password",n),this._email=e,this._password=t,this._tenantId=a}static _fromEmailAndPassword(e,t){return new px(e,t,"password")}static _fromEmailAndCode(e,t,n=null){return new px(e,t,"emailLink",n)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(e){const t="string"==typeof e?JSON.parse(e):e;if((null==t?void 0:t.email)&&(null==t?void 0:t.password)){if("password"===t.signInMethod)return this._fromEmailAndPassword(t.email,t.password);if("emailLink"===t.signInMethod)return this._fromEmailAndCode(t.email,t.password,t.tenantId)}return null}async _getIdTokenResponse(e){switch(this.signInMethod){case"password":return nx(e,{returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"},"signInWithPassword",ux);case"emailLink":return async function(e,t){return rI(e,"POST","/v1/accounts:signInWithEmailLink",nI(e,t))}(e,{email:this._email,oobCode:this._password});default:FE(e,"internal-error")}}async _linkToIdToken(e,t){switch(this.signInMethod){case"password":return nx(e,{idToken:t,returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",lx);case"emailLink":return async function(e,t){return rI(e,"POST","/v1/accounts:signInWithEmailLink",nI(e,t))}(e,{idToken:t,email:this._email,oobCode:this._password});default:FE(e,"internal-error")}}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}}
4194/**
4195 * @license
4196 * Copyright 2020 Google LLC
4197 *
4198 * Licensed under the Apache License, Version 2.0 (the "License");
4199 * you may not use this file except in compliance with the License.
4200 * You may obtain a copy of the License at
4201 *
4202 *   http://www.apache.org/licenses/LICENSE-2.0
4203 *
4204 * Unless required by applicable law or agreed to in writing, software
4205 * distributed under the License is distributed on an "AS IS" BASIS,
4206 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4207 * See the License for the specific language governing permissions and
4208 * limitations under the License.
4209 */async function fx(e,t){return rI(e,"POST","/v1/accounts:signInWithIdp",nI(e,t))}
4210/**
4211 * @license
4212 * Copyright 2020 Google LLC
4213 *
4214 * Licensed under the Apache License, Version 2.0 (the "License");
4215 * you may not use this file except in compliance with the License.
4216 * You may obtain a copy of the License at
4217 *
4218 *   http://www.apache.org/licenses/LICENSE-2.0
4219 *
4220 * Unless required by applicable law or agreed to in writing, software
4221 * distributed under the License is distributed on an "AS IS" BASIS,
4222 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4223 * See the License for the specific language governing permissions and
4224 * limitations under the License.
4225 */class mx extends ox{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){const t=new mx(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(t.idToken=e.idToken),e.accessToken&&(t.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&
4225(t.nonce=e.nonce),e.pendingToken&&(t.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(t.accessToken=e.oauthToken,t.secret=e.oauthTokenSecret):FE("argument-error"),t}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 t="string"==typeof e?JSON.parse(e):e,{providerId:n,signInMethod:a,...i}=t;if(!n||!a)return null;const r=new mx(n,a);return r.idToken=i.idToken||void 0,r.accessToken=i.accessToken||void 0,r.secret=i.secret,r.nonce=i.nonce,r.pendingToken=i.pendingToken||null,r}_getIdTokenResponse(e){return fx(e,this.buildRequest())}_linkToIdToken(e,t){const n=this.buildRequest();return n.idToken=t,fx(e,n)}_getReauthenticationResolver(e){const t=this.buildRequest();return t.autoCreate=!1,fx(e,t)}buildRequest(){const e={requestUri:"http://localhost",returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{const t={};this.idToken&&(t.id_token=this.idToken),this.accessToken&&(t.access_token=this.accessToken),this.secret&&(t.oauth_token_secret=this.secret),t.providerId=this.providerId,this.nonce&&!this.pendingToken&&(t.nonce=this.nonce),e.postBody=dc(t)}return e}}
4226/**
4227 * @license
4228 * Copyright 2020 Google LLC
4229 *
4230 * Licensed under the Apache License, Version 2.0 (the "License");
4231 * you may not use this file except in compliance with the License.
4232 * You may obtain a copy of the License at
4233 *
4234 *   http://www.apache.org/licenses/LICENSE-2.0
4235 *
4236 * Unless required by applicable law or agreed to in writing, software
4237 * distributed under the License is distributed on an "AS IS" BASIS,
4238 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4239 * See the License for the specific language governing permissions and
4240 * limitations under the License.
4241 */class vx{constructor(e){var t,n,a,i,r,o;const s=hc(pc(e)),l=null!=(t=s.apiKey)?t:null,u=null!=(n=s.oobCode)?n:null,c=function(e){switch(e){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}(null!=(a=s.mode)?a:null);HE(l&&u&&c,"argument-error"),this.apiKey=l,this.operation=c,this.code=u,this.continueUrl=null!=(i=s.continueUrl)?i:null,this.languageCode=null!=(r=s.lang)?r:null,this.tenantId=null!=(o=s.tenantId)?o:null}static parseLink(e){const t=function(e){const t=hc(pc(e)).link,n=t?hc(pc(t)).deep_link_id:null,a=hc(pc(e)).deep_link_id;return(a?hc(pc(a)).link:null)||a||n||t||e}(e);try{return new vx(t)}catch(w7){return null}}}
4242/**
4243 * @license
4244 * Copyright 2020 Google LLC
4245 *
4246 * Licensed under the Apache License, Version 2.0 (the "License");
4247 * you may not use this file except in compliance with the License.
4248 * You may obtain a copy of the License at
4249 *
4250 *   http://www.apache.org/licenses/LICENSE-2.0
4251 *
4252 * Unless required by applicable law or agreed to in writing, software
4253 * distributed under the License is distributed on an "AS IS" BASIS,
4254 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4255 * See the License for the specific language governing permissions and
4256 * limitations under the License.
4257 */class gx{constructor(){this.providerId=gx.PROVIDER_ID}static credential(e,t){return px._fromEmailAndPassword(e,t)}static credentialWithLink(e,t){const n=vx.parseLink(t);return HE(n,"argument-error"),px._fromEmailAndCode(e,n.code,n.tenantId)}}gx.PROVIDER_ID="password",gx.EMAIL_PASSWORD_SIGN_IN_METHOD="password",gx.EMAIL_LINK_SIGN_IN_METHOD="emailLink";
4258/**
4259 * @license
4260 * Copyright 2020 Google LLC
4261 *
4262 * Licensed under the Apache License, Version 2.0 (the "License");
4263 * you may not use this file except in compliance with the License.
4264 * You may obtain a copy of the License at
4265 *
4266 *   http://www.apache.org/licenses/LICENSE-2.0
4267 *
4268 * Unless required by applicable law or agreed to in writing, software
4269 * distributed under the License is distributed on an "AS IS" BASIS,
4270 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4271 * See the License for the specific language governing permissions and
4272 * limitations under the License.
4273 */
4274class yx{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}}
4275/**
4276 * @license
4277 * Copyright 2019 Google LLC
4278 *
4279 * Licensed under the Apache License, Version 2.0 (the "License");
4280 * you may not use this file except in compliance with the License.
4281 * You may obtain a copy of the License at
4282 *
4283 *   http://www.apache.org/licenses/LICENSE-2.0
4284 *
4285 * Unless required by applicable law or agreed to in writing, software
4286 * distributed under the License is distributed on an "AS IS" BASIS,
4287 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4288 * See the License for the specific language governing permissions and
4289 * limitations under the License.
4290 */class bx extends yx{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}
4291/**
4292 * @license
4293 * Copyright 2020 Google LLC
4294 *
4295 * Licensed under the Apache License, Version 2.0 (the "License");
4296 * you may not use this file except in compliance with the License.
4297 * You may obtain a copy of the License at
4298 *
4299 *   http://www.apache.org/licenses/LICENSE-2.0
4300 *
4301 * Unless required by applicable law or agreed to in writing, software
4302 * distributed under the License is distributed on an "AS IS" BASIS,
4303 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4304 * See the License for the specific language governing permissions and
4305 * limitations under the License.
4306 */class _x extends bx{constructor(){super("facebook.com")}static credential(e){return mx._fromParams({providerId:_x.PROVIDER_ID,signInMethod:_x.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return _x.credentialFromTaggedObject(e)}static credentialFromError(e){return _x.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e))return null;if(!e.oauthAccessToken)return null;try{return _x.credential(e.oauthAccessToken)}catch(w7){return null}}}_x.FACEBOOK_SIGN_IN_METHOD="facebook.com",_x.PROVIDER_ID="facebook.com";
4307/**
4308 * @license
4309 * Copyright 2020 Google LLC
4310 *
4311 * Licensed under the Apache License, Version 2.0 (the "License");
4312 * you may not use this file except in compliance with the License.
4313 * You may obtain a copy of the License at
4314 *
4315 *   http://www.apache.org/licenses/LICENSE-2.0
4316 *
4317 * Unless required by applicable law or agreed to in writing, software
4318 * distributed under the License is distributed on an "AS IS" BASIS,
4319 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4320 * See the License for the specific language governing permissions and
4321 * limitations under the License.
4322 */
4323class wx extends bx{constructor(){super("google.com"),this.addScope("profile")}static credential(e,t){return mx._fromParams({providerId:wx.PROVIDER_ID,signInMethod:wx.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:t})}static credentialFromResult(e){return wx.credentialFromTaggedObject(e)}static credentialFromError(e){return wx.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthIdToken:t,oauthAccessToken:n}=e;if(!t&&!n)return null;try{return wx.credential(t,n)}catch(w7){return null}}}wx.GOOGLE_SIGN_IN_METHOD="google.com",wx.PROVIDER_ID="google.com";
4324/**
4325 * @license
4326 * Copyright 2020 Google LLC
4327 *
4328 * Licensed under the Apache License, Version 2.0 (the "License");
4329 * you may not use this file except in compliance with the License.
4330 * You may obtain a copy of the License at
4331 *
4332 *   http://www.apache.org/licenses/LICENSE-2.0
4333 *
4334 * Unless required by applicable law or agreed to in writing, software
4335 * distributed under the License is distributed on an "AS IS" BASIS,
4336 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4337 * See the License for the specific language governing permissions and
4338 * limitations under the License.
4339 */
4340class kx extends bx{constructor(){super("github.com")}static credential(e){return mx._fromParams({providerId:kx.PROVIDER_ID,signInMethod:kx.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return kx.credentialFromTaggedObject(e)}static credentialFromError(e){return kx.credentialFromTaggedObject(e.customData||{})}
4340static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e))return null;if(!e.oauthAccessToken)return null;try{return kx.credential(e.oauthAccessToken)}catch(w7){return null}}}kx.GITHUB_SIGN_IN_METHOD="github.com",kx.PROVIDER_ID="github.com";
4341/**
4342 * @license
4343 * Copyright 2020 Google LLC
4344 *
4345 * Licensed under the Apache License, Version 2.0 (the "License");
4346 * you may not use this file except in compliance with the License.
4347 * You may obtain a copy of the License at
4348 *
4349 *   http://www.apache.org/licenses/LICENSE-2.0
4350 *
4351 * Unless required by applicable law or agreed to in writing, software
4352 * distributed under the License is distributed on an "AS IS" BASIS,
4353 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4354 * See the License for the specific language governing permissions and
4355 * limitations under the License.
4356 */
4357class Cx extends bx{constructor(){super("twitter.com")}static credential(e,t){return mx._fromParams({providerId:Cx.PROVIDER_ID,signInMethod:Cx.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:t})}static credentialFromResult(e){return Cx.credentialFromTaggedObject(e)}static credentialFromError(e){return Cx.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthAccessToken:t,oauthTokenSecret:n}=e;if(!t||!n)return null;try{return Cx.credential(t,n)}catch(w7){return null}}}Cx.TWITTER_SIGN_IN_METHOD="twitter.com",Cx.PROVIDER_ID="twitter.com";
4358/**
4359 * @license
4360 * Copyright 2020 Google LLC
4361 *
4362 * Licensed under the Apache License, Version 2.0 (the "License");
4363 * you may not use this file except in compliance with the License.
4364 * You may obtain a copy of the License at
4365 *
4366 *   http://www.apache.org/licenses/LICENSE-2.0
4367 *
4368 * Unless required by applicable law or agreed to in writing, software
4369 * distributed under the License is distributed on an "AS IS" BASIS,
4370 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4371 * See the License for the specific language governing permissions and
4372 * limitations under the License.
4373 */
4374class Sx{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(e,t,n,a=!1){const i=await TI._fromIdTokenResponse(e,n,a),r=Tx(n);return new Sx({user:i,providerId:r,_tokenResponse:n,operationType:t})}static async _forOperation(e,t,n){await e._updateTokensIfNecessary(n,!0);const a=Tx(n);return new Sx({user:e,providerId:a,_tokenResponse:n,operationType:t})}}function Tx(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}
4375/**
4376 * @license
4377 * Copyright 2020 Google LLC
4378 *
4379 * Licensed under the Apache License, Version 2.0 (the "License");
4380 * you may not use this file except in compliance with the License.
4381 * You may obtain a copy of the License at
4382 *
4383 *   http://www.apache.org/licenses/LICENSE-2.0
4384 *
4385 * Unless required by applicable law or agreed to in writing, software
4386 * distributed under the License is distributed on an "AS IS" BASIS,
4387 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4388 * See the License for the specific language governing permissions and
4389 * limitations under the License.
4390 */class Ax extends Zu{constructor(e,t,n,a){var i;super(t.code,t.message),this.operationType=n,this.user=a,Object.setPrototypeOf(this,Ax.prototype),this.customData={appName:e.name,tenantId:null!=(i=e.tenantId)?i:void 0,_serverResponse:t.customData._serverResponse,operationType:n}}static _fromErrorAndOperation(e,t,n,a){return new Ax(e,t,n,a)}}function Ex(e,t,n,a){return("reauthenticate"===t?n._getReauthenticationResolver(e):n._getIdTokenResponse(e)).catch(n=>{if(n.code==="auth/".concat("multi-factor-auth-required"))throw Ax._fromErrorAndOperation(e,n,t,a);throw n})}
4391/**
4392 * @license
4393 * Copyright 2019 Google LLC
4394 *
4395 * Licensed under the Apache License, Version 2.0 (the "License");
4396 * you may not use this file except in compliance with the License.
4397 * You may obtain a copy of the License at
4398 *
4399 *   http://www.apache.org/licenses/LICENSE-2.0
4400 *
4401 * Unless required by applicable law or agreed to in writing, softw
4401are
4402 * distributed under the License is distributed on an "AS IS" BASIS,
4403 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4404 * See the License for the specific language governing permissions and
4405 * limitations under the License.
4406 */
4407async function Ix(e,t,n=!1){const{auth:a}=e;if(Pd(a.app))return Promise.reject(jE(a));const i="reauthenticate";try{const r=await yI(e,Ex(a,i,t,e),n);HE(r.idToken,a,"internal-error");const o=vI(r.idToken);HE(o,a,"internal-error");const{sub:s}=o;return HE(e.uid===s,a,"user-mismatch"),Sx._forOperation(e,i,r)}catch(w7){throw(null==w7?void 0:w7.code)==="auth/".concat("user-not-found")&&FE(a,"user-mismatch"),w7}}
4408/**
4409 * @license
4410 * Copyright 2020 Google LLC
4411 *
4412 * Licensed under the Apache License, Version 2.0 (the "License");
4413 * you may not use this file except in compliance with the License.
4414 * You may obtain a copy of the License at
4415 *
4416 *   http://www.apache.org/licenses/LICENSE-2.0
4417 *
4418 * Unless required by applicable law or agreed to in writing, software
4419 * distributed under the License is distributed on an "AS IS" BASIS,
4420 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4421 * See the License for the specific language governing permissions and
4422 * limitations under the License.
4423 */async function xx(e,t,n=!1){if(Pd(e.app))return Promise.reject(jE(e));const a="signIn",i=await Ex(e,a,t),r=await Sx._fromIdTokenResponse(e,a,i);return n||await e._updateCurrentUser(r.user),r}async function Nx(e,t){return xx(GI(e),t)}async function Px(e,t){return Ix(bc(e),t)}
4424/**
4425 * @license
4426 * Copyright 2020 Google LLC
4427 *
4428 * Licensed under the Apache License, Version 2.0 (the "License");
4429 * you may not use this file except in compliance with the License.
4430 * You may obtain a copy of the License at
4431 *
4432 *   http://www.apache.org/licenses/LICENSE-2.0
4433 *
4434 * Unless required by applicable law or agreed to in writing, software
4435 * distributed under the License is distributed on an "AS IS" BASIS,
4436 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4437 * See the License for the specific language governing permissions and
4438 * limitations under the License.
4439 */class Mx{constructor(e,t){this.factorId=e,this.uid=t.mfaEnrollmentId,this.enrollmentTime=new Date(t.enrolledAt).toUTCString(),this.displayName=t.displayName}static _fromServerResponse(e,t){return"phoneInfo"in t?Ox._fromServerResponse(e,t):"totpInfo"in t?Rx._fromServerResponse(e,t):FE(e,"internal-error")}}class Ox extends Mx{constructor(e){super("phone",e),this.phoneNumber=e.phoneInfo}static _fromServerResponse(e,t){return new Ox(t)}}class Rx extends Mx{constructor(e){super("totp",e)}static _fromServerResponse(e,t){return new Rx(t)}}
4440/**
4441 * @license
4442 * Copyright 2020 Google LLC
4443 *
4444 * Licensed under the Apache License, Version 2.0 (the "License");
4445 * you may not use this file except in compliance with the License.
4446 * You may obtain a copy of the License at
4447 *
4448 *   http://www.apache.org/licenses/LICENSE-2.0
4449 *
4450 * Unless required by applicable law or agreed to in writing, software
4451 * distributed under the License is distributed on an "AS IS" BASIS,
4452 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4453 * See the License for the specific language governing permissions and
4454 * limitations under the License.
4455 */
4456/**
4457 * @license
4458 * Copyright 2020 Google LLC
4459 *
4460 * Licensed under the Apache License, Version 2.0 (the "License");
4461 * you may not use this file except in compliance with the License.
4462 * You may obtain a copy of the License at
4463 *
4464 *   http://www.apache.org/licenses/LICENSE-2.0
4465 *
4466 * Unless required by applicable law or agreed to in writing, software
4467 * distributed under the License is distributed on an "AS IS" BASIS,
4468 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4469 * See the License for the specific language governing permissions and
4470 * limitations under the License.
4471 */
4472async function Dx(e){const t=GI(e);t._getPasswordPolicyInternal()&&await t._updatePasswordPolicy()}async function Lx(e,t,n){const a=GI(e),i={requestType:"PASSWORD_RESET",email:t,clientType:"CLIENT_TYPE_WEB"};await nx(a,i,"getOobCode",dx)}
4472async function Bx(e,t,n){await sx(bc(e),{oobCode:t,newPassword:n}).catch(async t=>{throw t.code==="auth/".concat("password-does-not-meet-requirements")&&Dx(e),t})}async function Fx(e,t){const{data:n}=await async function(e,t){const n=bc(e),a=await sx(n,{oobCode:t}),i=a.requestType;switch(HE(i,n,"internal-error"),i){case"EMAIL_SIGNIN":break;case"VERIFY_AND_CHANGE_EMAIL":HE(a.newEmail,n,"internal-error");break;case"REVERT_SECOND_FACTOR_ADDITION":HE(a.mfaInfo,n,"internal-error");default:HE(a.email,n,"internal-error")}let r=null;return a.mfaInfo&&(r=Mx._fromServerResponse(GI(n),a.mfaInfo)),{data:{email:("VERIFY_AND_CHANGE_EMAIL"===a.requestType?a.newEmail:a.email)||null,previousEmail:("VERIFY_AND_CHANGE_EMAIL"===a.requestType?a.email:a.newEmail)||null,multiFactorInfo:r},operation:i}}(bc(e),t);return n.email}function Vx(e,t,n){return Pd(e.app)?Promise.reject(jE(e)):Nx(bc(e),gx.credential(t,n)).catch(async t=>{throw t.code==="auth/".concat("password-does-not-meet-requirements")&&Dx(e),t})}
4473/**
4474 * @license
4475 * Copyright 2020 Google LLC
4476 *
4477 * Licensed under the Apache License, Version 2.0 (the "License");
4478 * you may not use this file except in compliance with the License.
4479 * You may obtain a copy of the License at
4480 *
4481 *   http://www.apache.org/licenses/LICENSE-2.0
4482 *
4483 * Unless required by applicable law or agreed to in writing, software
4484 * distributed under the License is distributed on an "AS IS" BASIS,
4485 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4486 * See the License for the specific language governing permissions and
4487 * limitations under the License.
4488 */async function Xx(e,t,n){const a=GI(e),i={requestType:"EMAIL_SIGNIN",email:t,clientType:"CLIENT_TYPE_WEB"};var r,o;r=i,HE((o=n).handleCodeInApp,a,"argument-error"),o&&function(e,t,n){var a;HE((null==(a=n.url)?void 0:a.length)>0,e,"invalid-continue-uri"),HE(void 0===n.dynamicLinkDomain||n.dynamicLinkDomain.length>0,e,"invalid-dynamic-link-domain"),HE(void 0===n.linkDomain||n.linkDomain.length>0,e,"invalid-hosting-link-domain"),t.continueUrl=n.url,t.dynamicLinkDomain=n.dynamicLinkDomain,t.linkDomain=n.linkDomain,t.canHandleCodeInApp=n.handleCodeInApp,n.iOS&&(HE(n.iOS.bundleId.length>0,e,"missing-ios-bundle-id"),t.iOSBundleId=n.iOS.bundleId),n.android&&(HE(n.android.packageName.length>0,e,"missing-android-pkg-name"),t.androidInstallApp=n.android.installApp,t.androidMinimumVersionCode=n.android.minimumVersion,t.androidPackageName=n.android.packageName)}(a,r,o),await nx(a,i,"getOobCode",hx)}function jx(e,t){const n=vx.parseLink(t);return"EMAIL_SIGNIN"===(null==n?void 0:n.operation)}async function Ux(e,t,n){if(Pd(e.app))return Promise.reject(jE(e));const a=bc(e),i=gx.credentialWithLink(t,n||WE());return HE(i._tenantId===(a.tenantId||null),a,"tenant-id-mismatch"),Nx(a,i)}
4489/**
4490 * @license
4491 * Copyright 2020 Google LLC
4492 *
4493 * Licensed under the Apache License, Version 2.0 (the "License");
4494 * you may not use this file except in compliance with the License.
4495 * You may obtain a copy of the License at
4496 *
4497 *   http://www.apache.org/licenses/LICENSE-2.0
4498 *
4499 * Unless required by applicable law or agreed to in writing, software
4500 * distributed under the License is distributed on an "AS IS" BASIS,
4501 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4502 * See the License for the specific language governing permissions and
4503 * limitations under the License.
4504 */
4505/**
4506 * @license
4507 * Copyright 2020 Google LLC
4508 *
4509 * Licensed under the Apache License, Version 2.0 (the "License");
4510 * you may not use this file except in compliance with the License.
4511 * You may obtain a copy of the License at
4512 *
4513 *   http://www.apache.org/licenses/LICENSE-2.0
4514 *
4515 * Unless required by applicable law or agreed to in writing, software
4516 * distributed under the License is distributed on an "AS IS" BASIS,
4517 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4518 * See the License for the specific language governing permissions and
4519 * limitations under the License.
4520 */
4521async function Hx(e,t){const n={identifier:t,continueUri:GE()?WE():"http://localhost"},{signinMethods:a}=await async function(e,t){return aI(e,"POST","/v1/accounts:createAuthUri",nI(e,t))}(bc(e),n);return a||[]}function zx(e,t){const n=bc(e);return Pd(n.auth.app)?Promise.reject(jE(n.auth)):Wx(n,t,null)}function Kx(e,t){return Wx(bc(e),null,t)}async function Wx(e,t,n){const{auth:a}=e,i={idToken:await e.getIdToken(),returnSecureToken:!0};t&&(i.email=t),n&&(i.password=n);const r=await yI(e,async function(e,t){return aI(e,"POST","/v1/accounts:update",t)}(a,i));await e._updateTokensIfNecessary(r,!0)}function Gx(e,t){return bc(e).updateCurrentUser(t)}function qx(e){return bc(e).signOut()}const $x="__sak";
4522/**
4523 * @license
4524 * Copyright 2019 Google LLC
4525 *
4526 * Licensed under the Apache License, Version 2.0 (the "License");
4527 * you may not use this file except in compliance with the License.
4528 * You may obtain a copy of the License at
4529 *
4530 *   http://www.apache.org/licenses/LICENSE-2.0
4531 *
4532 * Unless required by applicable law or agreed to in writing, software
4533 * distributed under the License is distributed on an "AS IS" BASIS,
4534 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4535 * See the License for the specific language governing permissions and
4536 * limitations under the License.
4537 */class Yx{constructor(e,t){this.storageRetriever=e,this.type=t}_isAvailable(){try{return this.storage?(this.storage.setItem($x,"1"),this.storage.removeItem($x),Promise.resolve(!0)):Promise.resolve(!1)}catch(w7){return Promise.resolve(!1)}}_set(e,t){return this.storage.setItem(e,JSON.stringify(t)),Promise.resolve()}_get(e){const t=this.storage.getItem(e);return Promise.resolve(t?JSON.parse(t):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}}
4538/**
4539 * @license
4540 * Copyright 2020 Google LLC
4541 *
4542 * Licensed under the Apache License, Version 2.0 (the "License");
4543 * you may not use this file except in compliance with the License.
4544 * You may obtain a copy of the License at
4545 *
4546 *   http://www.apache.org/licenses/LICENSE-2.0
4547 *
4548 * Unless required by applicable law or agreed to in writing, software
4549 * distributed under the License is distributed on an "AS IS" BASIS,
4550 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4551 * See the License for the specific language governing permissions and
4552 * limitations under the License.
4553 */class Jx extends Yx{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(e,t)=>this.onStorageEvent(e,t),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=UI(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(const t of Object.keys(this.listeners)){const n=this.storage.getItem(t),a=this.localCache[t];n!==a&&e(t,a,n)}}onStorageEvent(e,t=!1){if(!e.key)return void this.forAllChangedKeys((e,t,n)=>{this.notifyListeners(e,n)});const n=e.key;t?this.detachListener():this.stopPolling();const a=()=>{const e=this.storage.getItem(n);(t||this.localCache[n]!==e)&&this.notifyListeners(n,e)},i=this.storage.getItem(n);jI()&&i!==e.newValue&&e.newValue!==e.oldValue?setTimeout(a,10):a()}notifyListeners(e,t){this.localCache[e]=t;const n=this.listeners[e];if(n)for(const a of Array.from(n))a(t?JSON.parse(t):t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((e,t,n)=>{this.onStorageEvent(new StorageEvent("storage",{key:e,oldValue:t,newValue:n}),!0)})},1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(e,t){0===Object.keys(this.listeners).length&&(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(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}async _set(e,t){await super._set(e,t),this.localCache[e]=JSON.stringify(t)}async _get(e){const t=await super._get(e);return this.localCache[e]=JSON.stringify(t),t}async _remove(e){await super._remove(e),delete this.localCache[e]}}Jx.type="LOCAL";const Qx=Jx;
4554/**
4555 * @license
4556 * Copyright 2020 Google LLC
4557 *
4558 * Licensed under the Apache License, Version 2.0 (the "License");
4559 * you may not use this file except in compliance with the License.
4560 * You may obtain a copy of the License at
4561 *
4562 *   http://www.apache.org/licenses/LICENSE-2.0
4563 *
4564 * Unless required by applicable law or agreed to in writing, software
4565 * distributed under the License is distributed on an "AS IS" BASIS,
4566 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4567 * See the License for the specific language governing permissions and
4568 * limitations under the License.
4569 */class Zx extends Yx{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(e,t){}_removeListener(e,t){}}Zx.type="SESSION";const eN=Zx;
4570/**
4571 * @license
4572 * Copyright 2019 Google LLC
4573 *
4574 * Licensed under the Apache License, Version 2.0 (the "License");
4575 * you may not use this file except in compliance with the License.
4576 * You may obtain a copy of the License at
4577 *
4578 *   http://www.apache.org/licenses/LICENSE-2.0
4579 *
4580 * Unless required by applicable law or agreed to in writing, software
4581 * distributed under the License is distributed on an "AS IS" BASIS,
4582 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4583 * See the License for the specific language governing permissions and
4584 * limitations under the License.
4585 */
4586/**
4587 * @license
4588 * Copyright 2019 Google LLC
4589 *
4590 * Licensed under the Apache License, Version 2.0 (the "License");
4591 * you may not use this file except in compliance with the License.
4592 * You may obtain a copy of the License at
4593 *
4594 *   http://www.apache.org/licenses/LICENSE-2.0
4595 *
4596 * Unless required by applicable law or agreed to in writing, software
4597 * distributed under the License is distributed on an "AS IS" BASIS,
4598 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4599 * See the License for the specific language governing permissions and
4600 * limitations under the License.
4601 */
4602class tN{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){const t=this.receivers.find(t=>t.isListeningto(e));if(t)return t;const n=new tN(e);return this.receivers.push(n),n}isListeningto(e){return this.eventTarget===e}async handleEvent(e){const t=e,{eventId:n,eventType:a,data:i}=t.data,r=this.handlersMap[a];if(!(null==r?void 0:r.size))return;t.ports[0].postMessage({status:"ack",eventId:n,eventType:a});const o=Array.from(r).map(async e=>e(t.origin,i)),s=await function(e){return Promise.all(e.map(async e=>{try{return{fulfilled:!0,value:await e}}catch(t){return{fulfilled:!1,reason:t}}}))}(o);t.ports[0].postMessage({status:"done",eventId:n,eventType:a,response:s})}_subscribe(e,t){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(t)}_unsubscribe(e,t){this.handlersMap[e]&&t&&this.handlersMap[e].delete(t),t&&0!==this.handlersMap[e].size||delete this.handlersMap[e],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}
4603/**
4604 * @license
4605 * Copyright 2020 Google LLC
4606 *
4607 * Licensed under the Apache License, Version 2.0 (the "License");
4608 * you may not use this file except in compliance with the License.
4609 * You may obtain a copy of the License at
4610 *
4611 *   http://www.apache.org/licenses/LICENSE-2.0
4612 *
4613 * Unless required by applicable law or agreed to in writing, software
4614 * distributed under the License is distributed on an "AS IS" BASIS,
4615 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4616 * See the License for the specific language governing permissions and
4617 * limitations under the License.
4618 */
4619function nN(e="",t=10){let n="";for(let a=0;a<t;a++)n+=Math.floor(10*Math.random());return e+n}
4620/**
4621 * @license
4622 * Copyright 2019 Google LLC
4623 *
4624 * Licensed under the Apache License, Version 2.0 (the "License");
4625 * you may not use this file except in compliance with the License.
4626 * You may obtain a copy of the License at
4627 *
4628 *   http://www.apache.org/licenses/LICENSE-2.0
4629 *
4630 * Unless required by applicable law or agreed to in writing, software
4631 * distributed under the License is distributed on an "AS IS" BASIS,
4632 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4633 * See the License for the specific language governing permissions and
4634 * limitations under the License.
4635 */tN.receivers=[];class aN{constructor(e){this.target=e,this.handlers=new Set}removeMessageHandler(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}async _send(e,t,n=50){const a="undefined"!=typeof MessageChannel?new MessageChannel:null;if(!a)throw new Error("connection_unavailable");let i,r;return new Promise((o,s)=>{const l=nN("",20);a.port1.start();const u=setTimeout(()=>{s(new Error("unsupported_event"))},n);r={messageChannel:a,onMessage(e){const t=e;if(t.data.eventId===l)switch(t.data.status){case"ack":clearTimeout(u),i=setTimeout(()=>{s(new Error("timeout"))},3e3);break;case"done":clearTimeout(i),o(t.data.response);break;default:clearTimeout(u),clearTimeout(i),s(new Error("invalid_response"))}}},this.handlers.add(r),a.port1.addEventListener("message",r.onMessage),this.target.postMessage({eventType:e,eventId:l,data:t},[a.port2])}).finally(()=>{r&&this.removeMessageHandler(r)})}}
4636/**
4637 * @license
4638 * Copyright 2020 Google LLC
4639 *
4640 * Licensed under the Apache License, Version 2.0 (the "License");
4641 * you may not use this file except in compliance with the License.
4642 * You may obtain a copy of the License at
4643 *
4644 *   http://www.apache.org/licenses/LICENSE-2.0
4645 *
4646 * Unless required by applicable law or agreed to in writing, software
4647 * distributed under the License is distributed on an "AS IS" BASIS,
4648 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4649 * See the License for the specific language governing permissions and
4650 * limitations under the License.
4651 */function iN(){return window}
4652/**
4653 * @license
4654 * Copyright 2020 Google LLC.
4655 *
4656 * Licensed under the Apache License, Version 2.0 (the "License");
4657 * you may not use this file except in compliance with the License.
4658 * You may obtain a copy of the License at
4659 *
4660 *   http://www.apache.org/licenses/LICENSE-2.0
4661 *
4662 * Unless required by applicable law or agreed to in writing, software
4663 * distributed under the License is distributed on an "AS IS" BASIS,
4664 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4665 * See the License for the specific language governing permissions and
4666 * limitations under the License.
4667 */
4668function rN(){return void 0!==iN().WorkerGlobalScope&&"function"==typeof iN().importScripts}
4669/**
4670 * @license
4671 * Copyright 2019 Google LLC
4672 *
4673 * Licensed under the Apache License, Version 2.0 (the "License");
4674 * you may not use this file except in compliance with the License.
4675 * You may obtain a copy of the License at
4676 *
4677 *   http://www.apache.org/licenses/LICENSE-2.0
4678 *
4679 * Unless required by applicable law or agreed to in writing, software
4680 * distributed under the License is distributed on an "AS IS" BASIS,
4681 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4682 * See the License for the specific language governing permissions and
4683 * limitations under the License.
4684 */
4685const oN="firebaseLocalStorageDb",sN="firebaseLocalStorage",lN="fbase_key";class uN{constructor(e){this.request=e}toPromise(){return new Promise((e,t)=>{this.request.addEventListener("success",()=>{e(this.request.result)}),this.request.addEventListener("error",()=>{t(this.request.error)})})}}function cN(e,t){return e.transaction([sN],t?"readwrite":"readonly").objectStore(sN)}function dN(){const e=indexedDB.open(oN,1);return new Promise((t,n)=>{e.addEventListener("error",()=>{n(e.error)}),e.addEventListener("upgradeneeded",()=>{const t=e.result;try{t.createObjectStore(sN,{keyPath:lN})}catch(w7){n(w7)}}),e.addEventListener("success",async()=>{const n=e.result;n.objectStoreNames.contains(sN)?t(n):(n.close(),await function(){const e=indexedDB.deleteDatabase(oN);return new uN(e).toPromise()}(),t(await dN()))})})}async function hN(e,t,n){const a=cN(e,!0).put({[lN]:t,value:n});return new uN(a).toPromise()}function pN(e,t){const n=cN(e,!0).delete(t);return new uN(n).toPromise()}class fN{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}async _openDb(){return this.db||(this.db=await dN()),this.db}async _withRetries(e){let t=0;for(;;)try{const t=await this._openDb();return await e(t)}catch(w7){if(t++>3)throw w7;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return rN()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=tN._getInstance(rN()?self:null),this.receiver._subscribe("keyChanged",async(e,t)=>({keyProcessed:(await this._poll()).includes(t.key)})),this.receiver._subscribe("ping",async(e,t)=>["keyChanged"])}async initializeSender(){var e,t;if(this.activeServiceWorker=await async function(){if(!(null==navigator?void 0:navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch(w7){return null}}(),!this.activeServiceWorker)return;this.sender=new aN(this.activeServiceWorker);const n=await this.sender._send("ping",{},800);n&&(null==(e=n[0])?void 0:e.fulfilled)&&(null==(t=n[0])?void 0:t.value.includes("keyChanged"))&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(e){var t;if(this.sender&&this.activeServiceWorker&&((null==(t=null==navigator?void 0:navigator.serviceWorker)?void 0:t.controller)||null)===this.activeServiceWorker)try{await this.sender._send("keyChanged",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch(w7){}}async _isAvailable(){try{if(!indexedDB)return!1;const e=await dN();return await hN(e,$x,"1"),await pN(e,$x),!0}catch(w7){}return!1}async _withPendingWrite(e){this.pendingWrites++;try{await e()}finally{this.pendingWrites--}}async _set(e,t){return this._withPendingWrite(async()=>(await this._withRetries(n=>hN(n,e,t)),this.localCache[e]=t,this.notifyServiceWorker(e)))}async _get(e){const t=await this._withRetries(t=>async function(e,t){const n=cN(e,!1).get(t),a=await new uN(n).toPromise();return void 0===a?null:a.value}(t,e));return this.localCache[e]=t,t}async _remove(e){return this._withPendingWrite(async()=>(await this._withRetries(t=>pN(t,e)),delete this.localCache[e],this.notifyServiceWorker(e)))}async _poll(){const e=await this._withRetries(e=>{const t=cN(e,!1).getAll();
4685return new uN(t).toPromise()});if(!e)return[];if(0!==this.pendingWrites)return[];const t=[],n=new Set;if(0!==e.length)for(const{fbase_key:a,value:i}of e)n.add(a),JSON.stringify(this.localCache[a])!==JSON.stringify(i)&&(this.notifyListeners(a,i),t.push(a));for(const a of Object.keys(this.localCache))this.localCache[a]&&!n.has(a)&&(this.notifyListeners(a,null),t.push(a));return t}notifyListeners(e,t){this.localCache[e]=t;const n=this.listeners[e];if(n)for(const a of Array.from(n))a(t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(e,t){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&this.stopPolling()}}fN.type="LOCAL";const mN=fN;
4686/**
4687 * @license
4688 * Copyright 2021 Google LLC
4689 *
4690 * Licensed under the Apache License, Version 2.0 (the "License");
4691 * you may not use this file except in compliance with the License.
4692 * You may obtain a copy of the License at
4693 *
4694 *   http://www.apache.org/licenses/LICENSE-2.0
4695 *
4696 * Unless required by applicable law or agreed to in writing, software
4697 * distributed under the License is distributed on an "AS IS" BASIS,
4698 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4699 * See the License for the specific language governing permissions and
4700 * limitations under the License.
4701 */
4702function vN(e,t){return t?EI(t):(HE(e._popupRedirectResolver,e,"argument-error"),e._popupRedirectResolver)}
4703/**
4704 * @license
4705 * Copyright 2019 Google LLC
4706 *
4707 * Licensed under the Apache License, Version 2.0 (the "License");
4708 * you may not use this file except in compliance with the License.
4709 * You may obtain a copy of the License at
4710 *
4711 *   http://www.apache.org/licenses/LICENSE-2.0
4712 *
4713 * Unless required by applicable law or agreed to in writing, software
4714 * distributed under the License is distributed on an "AS IS" BASIS,
4715 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4716 * See the License for the specific language governing permissions and
4717 * limitations under the License.
4718 */new YE(3e4,6e4);class gN extends ox{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return fx(e,this._buildIdpRequest())}_linkToIdToken(e,t){return fx(e,this._buildIdpRequest(t))}_getReauthenticationResolver(e){return fx(e,this._buildIdpRequest())}_buildIdpRequest(e){const t={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&&(t.idToken=e),t}}function yN(e){return xx(e.auth,new gN(e),e.bypassAuthState)}function bN(e){const{auth:t,user:n}=e;return HE(n,t,"internal-error"),Ix(n,new gN(e),e.bypassAuthState)}async function _N(e){const{auth:t,user:n}=e;return HE(n,t,"internal-error"),async function(e,t,n=!1){const a=await yI(e,t._linkToIdToken(e.auth,await e.getIdToken()),n);return Sx._forOperation(e,"link",a)}(n,new gN(e),e.bypassAuthState)}
4719/**
4720 * @license
4721 * Copyright 2020 Google LLC
4722 *
4723 * Licensed under the Apache License, Version 2.0 (the "License");
4724 * you may not use this file except in compliance with the License.
4725 * You may obtain a copy of the License at
4726 *
4727 *   http://www.apache.org/licenses/LICENSE-2.0
4728 *
4729 * Unless required by applicable law or agreed to in writing, software
4730 * distributed under the License is distributed on an "AS IS" BASIS,
4731 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4732 * See the License for the specific language governing permissions and
4733 * limitations under the License.
4734 */class wN{constructor(e,t,n,a,i=!1){this.auth=e,this.resolver=n,this.user=a,this.bypassAuthState=i,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(t)?t:[t]}execute(){return new Promise(async(e,t)=>{this.pendingPromise={resolve:e,reject:t};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(w7){this.reject(w7)}})}async onAuthEvent(e){const{urlResponse:t,sessionId:n,postBody:a,tenantId:i,error:r,type:o}=e;if(r)return void this.reject(r);const s={auth:this.auth,requestUri:t,sessionId:n,tenantId:i||void 0,postBody:a||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(o)(s))}catch(w7){this.reject(w7)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return yN;case"linkViaPopup":case"linkViaRedirect":return _N;case"reauthViaPopup":case"reauthViaRedirect":return bN;default:FE(this.auth,"internal-error")}}resolve(e){KE(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){KE(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()}}
4735/**
4736 * @license
4737 * Copyright 2020 Google LLC
4738 *
4739 * Licensed under the Apache License, Version 2.0 (the "License");
4740 * you may not use this file except in compliance with the License.
4741 * You may obtain a copy of the License at
4742 *
4743 *   http://www.apache.org/licenses/LICENSE-2.0
4744 *
4745 * Unless required by applicable law or agreed to in writing, software
4746 * distributed under the License is distributed on an "AS IS" BASIS,
4747 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4748 * See the License for the specific language governing permissions and
4749 * limitations under the License.
4750 */const kN=new YE(2e3,1e4);async function CN(e,t,n){if(Pd(e.app))return Promise.reject(VE(e,"operation-not-supported-in-this-environment"));const a=GI(e);!function(e,t,n){if(!(t instanceof n))throw n.name!==t.constructor.name&&FE(e,"argument-error"),XE(e,"argument-error","Type of ".concat(t.constructor.name," does not match expected instance.")+"Did you pass a reference from a different Auth SDK?")}(e,t,yx);const i=vN(a,n);return new SN(a,"signInViaPopup",t,i).executeNotNull()}class SN extends wN{constructor(e,t,n,a,i){super(e,t,a,i),this.provider=n,this.authWindow=null,this.pollId=null,SN.currentPopupAction&&SN.currentPopupAction.cancel(),SN.currentPopupAction=this}async executeNotNull(){const e=await this.execute();return HE(e,this.auth,"internal-error"),e}async onExecution(){KE(1===this.filter.length,"Popup operations only handle one event");const e=nN();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],e),this.authWindow.associatedEvent=e,this.resolver._originValidation(this.auth).catch(e=>{this.reject(e)}),this.resolver._isIframeWebStorageSupported(this.auth,e=>{e||this.reject(VE(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){var e;return(null==(e=this.authWindow)?void 0:e.associatedEvent)||null}cancel(){this.reject(VE(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,SN.currentPopupAction=null}pollUserCancellation(){const e=()=>{var t,n;(null==(n=null==(t=this.authWindow)?void 0:t.window)?void 0:n.closed)?this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(VE(this.auth,"popup-closed-by-user"))},8e3):this.pollId=window.setTimeout(e,kN.get())};e()}}SN.currentPopupAction=null;
4751/**
4752 * @license
4753 * Copyright 2020 Google LLC
4754 *
4755 * Licensed under the Apache License, Version 2.0 (the "License");
4756 * you may not use this file except in compliance with the License.
4757 * You may obtain a copy of the License at
4758 *
4759 *   http://www.apache.org/licenses/LICENSE-2.0
4760 *
4761 * Unless required by applicable law or agreed to in writing, software
4762 * distributed under the License is distributed on an "AS IS" BASIS,
4763 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4764 * See the License for the specific language governing permissions and
4765 * limitations under the License.
4766 */
4767const TN="pendingRedirect",AN=new Map;class EN extends wN{constructor(e,t,n=!1){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],t,void 0,n),this.eventId=null}async execute(){let e=AN.get(this.auth._key());if(!e){try{const t=await async function(e,t){const n=function(e){return NI(TN,e.config.apiKey,e.name)}(t),a=function(e){return EI(e._redirectPersistence)}(e);if(!(await a._isAvailable()))return!1;const i="true"===await a._get(n);return await a._remove(n),i}(this.resolver,this.auth)?await super.execute():null;e=()=>Promise.resolve(t)}catch(w7){e=()=>Promise.reject(w7)}AN.set(this.auth._key(),e)}return this.bypassAuthState||AN.set(this.auth._key(),()=>Promise.resolve(null)),e()}async onAuthEvent(e){if("signInViaRedirect"===e.type)return super.onAuthEvent(e);if("unknown"!==e.type){if(e.eventId){const t=await this.auth._redirectUserForId(e.eventId);if(t)return this.user=t,super.onAuthEvent(e);this.resolve(null)}}else this.resolve(null)}async onExecution(){}cleanUp(){}}function IN(e,t){AN.set(e._key(),t)}async function xN(e,t,n=!1){if(Pd(e.app))return Promise.reject(jE(e));const a=GI(e),i=vN(a,t),r=new EN(a,i,n),o=await r.execute();return o&&!n&&(delete o.user._redirectEventId,await a._persistUserIfCurrent(o.user),await a._setRedirectUser(null,t)),o}
4768/**
4769 * @license
4770 * Copyright 2020 Google LLC
4771 *
4772 * Licensed under the Apache License, Version 2.0 (the "License");
4773 * you may not use this file except in compliance with the License.
4774 * You may obtain a copy of the License at
4775 *
4776 *   http://www.apache.org/licenses/LICENSE-2.0
4777 *
4778 * Unless required by applicable law or agreed to in writing, software
4779 * distributed under the License is distributed on an "AS IS" BASIS,
4780 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4781 * See the License for the specific language governing permissions and
4782 * limitations under the License.
4783 */class NN{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 t=!1;return this.consumers.forEach(n=>{this.isEventForConsumer(e,n)&&(t=!0,this.sendToConsumer(e,n),this.saveEventToCache(e))}),this.hasHandledPotentialRedirect||!function(e){switch(e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return MN(e);default:return!1}}
4784/**
4785 * @license
4786 * Copyright 2020 Google LLC
4787 *
4788 * Licensed under the Apache License, Version 2.0 (the "License");
4789 * you may not use this file except in compliance with the License.
4790 * You may obtain a copy of the License at
4791 *
4792 *   http://www.apache.org/licenses/LICENSE-2.0
4793 *
4794 * Unless required by applicable law or agreed to in writing, software
4795 * distributed under the License is distributed on an "AS IS" BASIS,
4796 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4797 * See the License for the specific language governing permissions and
4798 * limitations under the License.
4799 */(e)||(this.hasHandledPotentialRedirect=!0,t||(this.queuedRedirectEvent=e,t=!0)),t}sendToConsumer(e,t){var n;if(e.error&&!MN(e)){const a=(null==(n=e.error.code)?void 0:n.split("auth/")[1])||"internal-error";t.onError(VE(this.auth,a))}else t.onAuthEvent(e)}isEventForConsumer(e,t){const n=null===t.eventId||!!e.eventId&&e.eventId===t.eventId;return t.filter.includes(e.type)&&n}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(PN(e))}saveEventToCache(e){this.cachedEventUids.add(PN(e)),this.lastProcessedEventTime=Date.now()}}function PN(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter(e=>e).join("-")}function MN({type:e,error:t}){return"unknown"===e&&(null==t?void 0:t.code)==="auth/".concat("no-auth-event")}
4800/**
4801 * @license
4802 * Copyright 2020 Google LLC
4803 *
4804 * Licensed under the Apache License, Version 2.0 (the "License");
4805 * you may not use this file except in compliance with the License.
4806 * You may obtain a copy of the License at
4807 *
4808 *   http://www.apache.org/licenses/LICENSE-2.0
4809 *
4810 * Unless required by applicable law or agreed to in writing, software
4811 * distributed under the License is distributed on an "AS IS" BASIS,
4812 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4813 * See the License for the specific language governing permissions and
4814 * limitations under the License.
4815 */
4816const ON=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,RN=/^https?/;async function DN(e){if(e.config.emulator)return;const{authorizedDomains:t}=await async function(e,t={}){return aI(e,"GET","/v1/projects",t)}(e);for(const n of t)try{if(LN(n))return}catch(w7){}FE(e,"unauthorized-domain")}function LN(e){const t=WE(),{protocol:n,hostname:a}=new URL(t);if(e.startsWith("chrome-extension://")){const i=new URL(e);return""===i.hostname&&""===a?"chrome-extension:"===n&&e.replace("chrome-extension://","")===t.replace("chrome-extension://",""):"chrome-extension:"===n&&i.hostname===a}if(!RN.test(n))return!1;if(ON.test(e))return a===e;const i=e.replace(/\./g,"\\.");return new RegExp("^(.+\\."+i+"|"+i+")$","i").test(a)}
4817/**
4818 * @license
4819 * Copyright 2020 Google LLC.
4820 *
4821 * Licensed under the Apache License, Version 2.0 (the "License");
4822 * you may not use this file except in compliance with the License.
4823 * You may obtain a copy of the License at
4824 *
4825 *   http://www.apache.org/licenses/LICENSE-2.0
4826 *
4827 * Unless required by applicable law or agreed to in writing, software
4828 * distributed under the License is distributed on an "AS IS" BASIS,
4829 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4830 * See the License for the specific language governing permissions and
4831 * limitations under the License.
4832 */const BN=new YE(3e4,6e4);function FN(){const e=iN().___jsl;if(null==e?void 0:e.H)for(const t of Object.keys(e.H))if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=[...e.H[t].L],e.CP)for(let n=0;n<e.CP.length;n++)e.CP[n]=null}function VN(e){return new Promise((t,n)=>{var a,i,r;function o(){FN(),gapi.load("gapi.iframes",{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{FN(),n(VE(e,"network-request-failed"))},timeout:BN.get()})}if(null==(i=null==(a=iN().gapi)?void 0:a.iframes)?void 0:i.Iframe)t(gapi.iframes.getContext());else{if(!(null==(r=iN().gapi)?void 0:r.load)){const t="__".concat("iframefcb").concat(Math.floor(1e6*Math.random()));return iN()[t]=()=>{gapi.load?o():n(VE(e,"network-request-failed"))},YI("".concat($I.gapiScript,"?onload=").concat(t)).catch(e=>n(e))}o()}}).catch(e=>{throw XN=null,e})}let XN=null;
4833/**
4834 * @license
4835 * Copyright 2020 Google LLC.
4836 *
4837 * Licensed under the Apache License, Version 2.0 (the "License");
4838 * you may not use this file except in compliance with the License.
4839 * You may obtain a copy of the License at
4840 *
4841 *   http://www.apache.org/licenses/LICENSE-2.0
4842 *
4843 * Unless required by applicable law or agreed to in writing, software
4844 * distributed under the License is distributed on an "AS IS" BASIS,
4845 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4846 * See the License for the specific language governing permissions and
4847 * limitations under the License.
4848 */
4849const jN=new YE(5e3,15e3),UN={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},HN=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function zN(e){const t=e.config;HE(t.authDomain,e,"auth-domain-config-required");const n=t.emulator?JE(t,"emulator/auth/iframe"):"https://".concat(e.config.authDomain,"/").concat("__/auth/iframe"),a={apiKey:t.apiKey,appName:e.name,v:Rd},i=HN.get(e.config.apiHost);i&&(a.eid=i);const r=e._getFrameworks();return r.length&&(a.fw=r.join(",")),"".concat(n,"?").concat(dc(a).slice(1))}async function KN(e){const t=await function(e){return XN=XN||VN(e),XN}(e),n=iN().gapi;return HE(n,e,"internal-error"),t.open({where:document.body,url:zN(e),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:UN,dontclear:!0},t=>new Promise(async(n,a)=>{await t.restyle({setHideOnLeave:!1});const i=VE(e,"network-request-failed"),r=iN().setTimeout(()=>{a(i)},jN.get());function o(){iN().clearTimeout(r),n(t)}t.ping(o).then(o,()=>{a(i)})}))}
4850/**
4851 * @license
4852 * Copyright 2020 Google LLC.
4853 *
4854 * Licensed under the Apache License, Version 2.0 (the "License");
4855 * you may not use this file except in compliance with the License.
4856 * You may obtain a copy of the License at
4857 *
4858 *   http://www.apache.org/licenses/LICENSE-2.0
4859 *
4860 * Unless required by applicable law or agreed to in writing, software
4861 * distributed under the License is distributed on an "AS IS" BASIS,
4862 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4863 * See the License for the specific language governing permissions and
4864 * limitations under the License.
4865 */const WN={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class GN{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch(w7){}}}function qN(e,t,n,a=500,i=600){const r=Math.max((window.screen.availHeight-i)/2,0).toString(),o=Math.max((window.screen.availWidth-a)/2,0).toString();let s="";const l={...WN,width:a.toString(),height:i.toString(),top:r,left:o},u=qu().toLowerCase();n&&(s=DI(u)?"_blank":n),OI(u)&&(t=t||"http://localhost",l.scrollbars="yes");const c=Object.entries(l).reduce((e,[t,n])=>"".concat(e).concat(t,"=").concat(n,","),"");if(function(e=qu()){var t;return XI(e)&&!!(null==(t=window.navigator)?void 0:t.standalone)}(u)&&"_self"!==s)return function(e,t){const n=document.createElement("a");n.href=e,n.target=t;const a=document.createEvent("MouseEvent");
4865a.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(a)}
4866/**
4867 * @license
4868 * Copyright 2021 Google LLC
4869 *
4870 * Licensed under the Apache License, Version 2.0 (the "License");
4871 * you may not use this file except in compliance with the License.
4872 * You may obtain a copy of the License at
4873 *
4874 *   http://www.apache.org/licenses/LICENSE-2.0
4875 *
4876 * Unless required by applicable law or agreed to in writing, software
4877 * distributed under the License is distributed on an "AS IS" BASIS,
4878 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4879 * See the License for the specific language governing permissions and
4880 * limitations under the License.
4881 */(t||"",s),new GN(null);const d=window.open(t||"",s,c);HE(d,e,"popup-blocked");try{d.focus()}catch(w7){}return new GN(d)}const $N="__/auth/handler",YN="emulator/auth/handler",JN=encodeURIComponent("fac");async function QN(e,t,n,a,i,r){HE(e.config.authDomain,e,"auth-domain-config-required"),HE(e.config.apiKey,e,"invalid-api-key");const o={apiKey:e.config.apiKey,appName:e.name,authType:n,redirectUrl:a,v:Rd,eventId:i};if(t instanceof yx){t.setDefaultLanguage(e.languageCode),o.providerId=t.providerId||"",sc(t.getCustomParameters())||(o.customParameters=JSON.stringify(t.getCustomParameters()));for(const[e,t]of Object.entries({}))o[e]=t}if(t instanceof bx){const e=t.getScopes().filter(e=>""!==e);e.length>0&&(o.scopes=e.join(","))}e.tenantId&&(o.tid=e.tenantId);const s=o;for(const c of Object.keys(s))void 0===s[c]&&delete s[c];const l=await e._getAppCheckToken(),u=l?"#".concat(JN,"=").concat(encodeURIComponent(l)):"";return"".concat(function({config:e}){if(!e.emulator)return"https://".concat(e.authDomain,"/").concat($N);return JE(e,YN)}
4882/**
4883 * @license
4884 * Copyright 2020 Google LLC
4885 *
4886 * Licensed under the Apache License, Version 2.0 (the "License");
4887 * you may not use this file except in compliance with the License.
4888 * You may obtain a copy of the License at
4889 *
4890 *   http://www.apache.org/licenses/LICENSE-2.0
4891 *
4892 * Unless required by applicable law or agreed to in writing, software
4893 * distributed under the License is distributed on an "AS IS" BASIS,
4894 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4895 * See the License for the specific language governing permissions and
4896 * limitations under the License.
4897 */(e),"?").concat(dc(s).slice(1)).concat(u)}const ZN="webStorageSupport";const eP=class{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=eN,this._completeRedirectFn=xN,this._overrideRedirectResult=IN}async _openPopup(e,t,n,a){var i;KE(null==(i=this.eventManagers[e._key()])?void 0:i.manager,"_initialize() not called before _openPopup()");return qN(e,await QN(e,t,n,WE(),a),nN())}async _openRedirect(e,t,n,a){await this._originValidation(e);return function(e){iN().location.href=e}(await QN(e,t,n,WE(),a)),new Promise(()=>{})}_initialize(e){const t=e._key();if(this.eventManagers[t]){const{manager:e,promise:n}=this.eventManagers[t];return e?Promise.resolve(e):(KE(n,"If manager is not set, promise should be"),n)}const n=this.initAndGetManager(e);return this.eventManagers[t]={promise:n},n.catch(()=>{delete this.eventManagers[t]}),n}async initAndGetManager(e){const t=await KN(e),n=new NN(e);return t.register("authEvent",t=>{HE(null==t?void 0:t.authEvent,e,"invalid-auth-event");return{status:n.onEvent(t.authEvent)?"ACK":"ERROR"}},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:n},this.iframes[e._key()]=t,n}_isIframeWebStorageSupported(e,t){this.iframes[e._key()].send(ZN,{type:ZN},n=>{var a;const i=null==(a=null==n?void 0:n[0])?void 0:a[ZN];void 0!==i&&t(!!i),FE(e,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){const t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=DN(e)),this.originValidationPromises[t]}get _shouldInitProactively(){return UI()||RI()||XI()}};var tP="@firebase/auth",nP="1.11.0";
4898/**
4899 * @license
4900 * Copyright 2020 Google LLC
4901 *
4902 * Licensed under the Apache License, Version 2.0 (the "License");
4903 * you may not use this file except in compliance with the License.
4904 * You may obtain a copy of the License at
4905 *
4906 *   http://www.apache.org/licenses/LICENSE-2.0
4907 *
4908 * Unless required by applicable law or agreed to in writing, software
4909 * distributed under the License is distributed on an "AS IS" BASIS,
4910 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4911 * See the License for the specific language governing permissions and
4912 * limitations under the License.
4913 */
4914class aP{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){var e;return this.assertAuthConfigured(),(null==(e=this.auth.currentUser)?void 0:e.uid)||null}async getToken(e){if(this.assertAuthConfigured(),await this.auth._initializationPromise,!this.auth.currentUser)return null;return{accessToken:await this.auth.currentUser.getIdToken(e)}}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;const t=this.auth.onIdTokenChanged(t=>{e((null==t?void 0:t.stsTokenManager.accessToken)||null)});this.internalListeners.set(e,t),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();const t=this.internalListeners.get(e);t&&(this.internalListeners.delete(e),t(),this.updateProactiveRefresh())}assertAuthConfigured(){HE(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}
4915/**
4916 * @license
4917 * Copyright 2020 Google LLC
4918 *
4919 * Licensed under the Apache License, Version 2.0 (the "License");
4920 * you may not use this file except in compliance with the License.
4921 * You may obtain a copy of the License at
4922 *
4923 *   http://www.apache.org/licenses/LICENSE-2.0
4924 *
4925 * Unless required by applicable law or agreed to in writing, software
4926 * distributed under the License is distributed on an "AS IS" BASIS,
4927 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4928 * See the License for the specific language governing permissions and
4929 * limitations under the License.
4930 */
4931/**
4932 * @license
4933 * Copyright 2021 Google LLC
4934 *
4935 * Licensed under the Apache License, Version 2.0 (the "License");
4936 * you may not use this file except in compliance with the License.
4937 * You may obtain a copy of the License at
4938 *
4939 *   http://www.apache.org/licenses/LICENSE-2.0
4940 *
4941 * Unless required by applicable law or agreed to in writing, software
4942 * distributed under the License is distributed on an "AS IS" BASIS,
4943 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4944 * See the License for the specific language governing permissions and
4945 * limitations under the License.
4946 */
4947const iP=Xu("authIdTokenMaxAge")||300;let rP=null;function oP(e=Ld()){const t=Nd(e,"auth");if(t.isInitialized())return t.getImmediate();const n=function(e,t){const n=Nd(e,"auth");if(n.isInitialized()){const e=n.getImmediate();if(uc(n.getOptions(),null!=t?t:{}))return e;FE(e,"already-initialized")}return n.initialize({options:t})}(e,{popupRedirectResolver:eP,persistence:[mN,Qx,eN]}),a=Xu("authTokenSyncURL");if(a&&"boolean"==typeof isSecureContext&&isSecureContext){const e=new URL(a,location.origin);if(location.origin===e.origin){const t=(i=e.toString(),async e=>{const t=e&&await e.getIdTokenResult(),n=t&&((new Date).getTime()-Date.parse(t.issuedAtTime))/1e3;if(n&&n>iP)return;const a=null==t?void 0:t.token;rP!==a&&(rP=a,await fetch(i,{method:a?"POST":"DELETE",headers:a?{Authorization:"Bearer ".concat(a)}:{}}))});!function(e,t,n){bc(e).beforeAuthStateChanged(t,n)}(n,t,()=>t(n.currentUser)),function(e,t,n,a){bc(e).onIdTokenChanged(t,n,a)}(n,e=>t(e))}}var i;const r=Bu("auth");return r&&ax(n,"http://".concat(r)),n}var sP,lP;sP={loadJS:e=>new Promise((t,n)=>{const a=document.createElement("script");var i,r;a.setAttribute("src",e),a.onload=t,a.onerror=e=>{const t=VE("internal-error");t.customData=e,n(t)},a.type="text/javascript",a.charset="UTF-8",(null!=(r=null==(i=document.getElementsByTagName("head"))?void 0:i[0])?r:document).appendChild(a)}),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="},$I=sP,lP="Browser",xd(new _c("auth",(e,{options:t})=>{const n=e.getProvider("app").getImmediate(),a=e.getProvider("heartbeat"),i=e.getProvider("app-check-internal"),{apiKey:r,authDomain:o}=n.options;HE(r&&!r.includes(":"),"invalid-api-key",{appName:n.name});const s={apiKey:r,authDomain:o,clientPlatform:lP,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:HI(lP)},l=new WI(n,a,i,s);return function(e,t){const n=(null==t?void 0:t.persistence)||[],a=(Array.isArray(n)?n:[n]).map(EI);(null==t?void 0:t.errorMap)&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(a,null==t?void 0:t.popupRedirectResolver)}(l,t),l},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,t,n)=>{e.getProvider("auth-internal").initialize()})),xd(new _c("auth-internal",e=>{const t=GI(e.getProvider("auth").getImmediate());return new aP(t)},"PRIVATE").setInstantiationMode("EXPLICIT")),Bd(tP,nP,function(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}(lP)),Bd(tP,nP,"esm2020");const uP={apiKey:"AIzaSyANTQnn1scl4znhyNXLIw-w8781Ep9426k",authDomain:"forged-7adb7.firebaseapp.com",projectId:"forged-7adb7",storageBucket:"forged-7adb7.appspot.com",messagingSenderId:"1567249158",appId:"1:156
49477249158:web:dfa66b01215bc06d2b0487",databaseURL:"https://forged-7adb7.firebaseio.com"},cP=Dd(uP),dP=Dd({...uP,databaseURL:"https://forged-7adb7-global.firebaseio.com/"},"globalData"),hP=Dd({...uP,databaseURL:"https://forged-7adb7-venues-league.firebaseio.com/"},"venuesLeagueData"),pP=Dd({...uP,databaseURL:"https://forged-7adb7-chats.firebaseio.com/"},"chatData"),fP=oP(),mP=qg(),vP=oP(dP),gP=qg(dP),yP=oP(hP),bP=qg(hP),_P=oP(pP),wP=qg(pP),kP=function(e){const t="object"==typeof e?e:Ld(),n="string"==typeof e?e:jb,a=Nd(t,"firestore").getImmediate({identifier:n});if(!a._initialized){const e=Fu("firestore");e&&function(e,t,n,a={}){var i;e=Zy(e,xT);const r=Uu(t),o=e._getSettings(),s={...o,emulatorOptions:e._getEmulatorOptions()},l="".concat(t,":").concat(n);r&&(Hu("https://".concat(l)),Gu("Firestore",!0)),o.host!==AT&&o.host!==l&&gy("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used.");const u={...o,host:l,ssl:r,emulatorOptions:a};if(!uc(u,s)&&(e._setSettings(u),a.mockUserToken)){let t,n;if("string"==typeof a.mockUserToken)t=a.mockUserToken,n=dy.MOCK_USER;else{t=zu(a.mockUserToken,null==(i=e._app)?void 0:i.options.projectId);const r=a.mockUserToken.sub||a.mockUserToken.user_id;if(!r)throw new Sy(Cy.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");n=new dy(r)}e._authCredentials=new Iy(new Ay(t,n))}}(a,...e)}return a}(cP),CP=function(e=Ld(),t){const n=Nd(e=bc(e),IE).getImmediate({identifier:t}),a=Fu("storage");return a&&function(e,t,n,a={}){!function(e,t,n,a={}){e.host="".concat(t,":").concat(n);const i=Uu(t);i&&(Hu("https://".concat(e.host,"/b")),Gu("Storage",!0)),e._isUsingEmulator=!0,e._protocol=i?"https":"http";const{mockUserToken:r}=a;r&&(e._overrideAuthToken="string"==typeof r?r:zu(r,e.app.options.projectId))}(e,t,n,a)}(n,...a),n}(cP),SP=e=>mg(mP,e),TP=e=>mg(gP,e),AP=e=>mg(bP,e),EP=e=>mg(wP,e),IP=JSON.parse('[{"name":"Pacific/Midway","alternativeName":"American Samoa Time","group":["Pacific/Midway"],"continentCode":"OC","continentName":"Oceania","countryName":"United States Minor Outlying Islands","countryCode":"UM","mainCities":["Midway"],"rawOffsetInMinutes":-660,"abbreviation":"GMT-11","rawFormat":"-11:00 American Samoa Time - Midway"},{"name":"Pacific/Pago_Pago","alternativeName":"American Samoa Time","group":["Pacific/Pago_Pago","US/Samoa","Pacific/Samoa","Pacific/Midway"],"continentCode":"OC","continentName":"Oceania","countryName":"American Samoa","countryCode":"AS","mainCities":["Pago Pago"],"rawOffsetInMinutes":-660,"abbreviation":"GMT-11","rawFormat":"-11:00 American Samoa Time - Pago Pago"},{"name":"Pacific/Niue","alternativeName":"Niue Time","group":["Pacific/Niue"],"continentCode":"OC","continentName":"Oceania","countryName":"Niue","countryCode":"NU","mainCities":["Alofi"],"rawOffsetInMinutes":-660,"abbreviation":"NUT","rawFormat":"-11:00 Niue Time - Alofi"},{"name":"Pacific/Rarotonga","alternativeName":"Cook Islands Time","group":["Pacific/Rarotonga"],"continentCode":"OC","continentName":"Oceania","countryName":"Cook Islands","countryCode":"CK","mainCities":["Avarua"],"rawOffsetInMinutes":-600,"abbreviation":"CKT","rawFormat":"-10:00 Cook Islands Time - Avarua"},{"name":"America/Adak","alternativeName":"Hawaii-Aleutian Time","group":["America/Adak","US/Aleutian","America/Atka"],"continentCode":"NA","continentName":"North America","countryName":"United States","countryCode":"US","mainCities":["Adak"],"rawOffsetInMinutes":-600,"abbreviation":"HAST","rawFormat":"-10:00 Hawaii-Aleutian Time - Adak"},{"name":"Pacific/Honolulu","alternativeName":"Hawaii-Aleutian Time","group":["Pacific/Honolulu","US/Hawaii","Pacific/Johnston","HST"],"continentCode":"NA","continentName":"North America","countryName":"United States","countryCode":"US","mainCities":["Honolulu","East Honolulu","Pearl City","Makakilo / Kapolei / Honokai Hale"],"rawOffsetInMinutes":-600,"abbreviation":"HAST","rawFormat":"-10:00 Hawaii-Aleutian Time - Honolulu, East Honolulu, Pearl City, Makakilo / Kapolei / Honokai Hale"},{"name":"Pacific/Tahiti","alternativeName":"Tahiti Time","group":["Pacific/Tahiti"],"continentCode":"OC","continentName":"Oceania","countryName":"French Polynesia","countryCode":"PF","mainCities":["Faaa","Papeete","Punaauia"],"rawOffsetInMinutes":-600,"abbreviation":"TAHT","rawF
4947ormat":"-10:00 Tahiti Time - Faaa, Papeete, Punaauia"},{"name":"Pacific/Marquesas","alternativeName":"Marquesas Time","group":["Pacific/Marquesas"],"continentCode":"OC","continentName":"Oceania","countryName":"French Polynesia","countryCode":"PF","mainCities":["Marquesas"],"rawOffsetInMinutes":-570,"abbreviation":"MART","rawFormat":"-09:30 Marquesas Time - Marquesas"},{"name":"America/Anchorage","alternativeName":"Alaska Time","group":["America/Anchorage","America/Juneau","America/Metlakatla","America/Nome","America/Sitka","America/Yakutat","US/Alaska"],"continentCode":"NA","continentName":"North America","countryName":"United States","countryCode":"US","mainCities":["Anchorage","Fairbanks","Juneau","Eagle River"],"rawOffsetInMinutes":-540,"abbreviation":"AKST","rawFormat":"-09:00 Alaska Time - Anchorage, Fairbanks, Juneau, Eagle River"},{"name":"Pacific/Gambier","alternativeName":"Gambier Time","group":["Pacific/Gambier"],"continentCode":"OC","continentName":"Oceania","countryName":"French Polynesia","countryCode":"PF","mainCities":["Gambier"],"rawOffsetInMinutes":-540,"abbreviation":"GAMT","rawFormat":"-09:00 Gambier Time - Gambier"},{"name":"America/Los_Angeles","alternativeName":"Pacific Time","group":["America/Los_Angeles","US/Pacific","PST8PDT"],"continentCode":"NA","continentName":"North America","countryName":"United States","countryCode":"US","mainCities":["Los Angeles","San Diego","San Jose","San Francisco"],"rawOffsetInMinutes":-480,"abbreviation":"PST","rawFormat":"-08:00 Pacific Time - Los Angeles, San Diego, San Jose, San Francisco"},{"name":"America/Tijuana","alternativeName":"Pacific Time","group":["America/Tijuana","Mexico/BajaNorte","America/Ensenada","America/Santa_Isabel"],"continentCode":"NA","continentName":"North America","countryName":"Mexico","countryCode":"MX","mainCities":["Tijuana","Mexicali","Ensenada","Rosarito"],"rawOffsetInMinutes":-480,"abbreviation":"PST","rawFormat":"-08:00 Pacific Time - Tijuana, Mexicali, Ensenada, Rosarito"},{"name":"America/Vancouver","alternativeName":"Pacific Time","group":["America/Vancouver","Canada/Pacific"],"continentCode":"NA","continentName":"North America","countryName":"Canada","countryCode":"CA","mainCities":["Vancouver","Surrey","Victoria","Burnaby"],"rawOffsetInMinutes":-480,"abbreviation":"PST","rawFormat":"-08:00 Pacific Time - Vancouver, Surrey, Victoria, Burnaby"},{"name":"Pacific/Pitcairn","alternativeName":"Pitcairn Time","group":["Pacific/Pitcairn"],"continentCode":"OC","continentName":"Oceania","countryName":"Pitcairn","countryCode":"PN","mainCities":["Adamstown"],"rawOffsetInMinutes":-480,"abbreviation":"PST","rawFormat":"-08:00 Pitcairn Time - Adamstown"},{"name":"America/Hermosillo","alternativeName":"Mexican Pacific Time","group":["America/Hermosillo","America/Mazatlan","Mexico/BajaSur"],"continentCode":"NA","continentName":"North America","countryName":"Mexico","countryCode":"MX","mainCities":["Hermosillo","Culiacán","Ciudad Obregón","Mazatlán"],"rawOffsetInMinutes":-420,"abbreviation":"GMT-7","rawFormat":"-07:00 Mexican Pacific Time - Hermosillo, Culiacán, Ciudad Obregón, Mazatlán"},{"name":"America/Edmonton","alternativeName":"Mountain Time","group":["America/Cambridge_Bay","America/Edmonton","America/Inuvik","Canada/Mountain","America/Yellowknife"],"continentCode":"NA","continentName":"North America","countryName":"Canada","countryCode":"CA","mainCities":["Calgary","Edmonton","Red Deer","Sherwood Park"],"rawOffsetInMinutes":-420,"abbreviation":"MST","rawFormat":"-07:00 Mountain Time - Calgary, Edmonton, Red Deer, Sherwood Park"},{"name":"America/Ciudad_Juarez","alternativeName":"Mountain Time","group":["America/Ciudad_Juarez"],"continentCode":"NA","continentName":"North America","countryName":"Mexico","countryCode":"MX","mainCities":["Ciudad Juárez"],"rawOffsetInMinutes":-420,"abbreviation":"MST","rawFormat":"-07:00 Mountain Time - Ciudad Juárez"},{"name":"America/Denver","alternativeName":"Mountain Time","group":["America/Boise","America/Denver","MST7MDT","Navajo","US/Mountain","America/Shiprock"],"continentCode":"NA","continentName":"North America","countryName":"United States","countryCode":"US","mainCities":["Denver","El Paso","Albuquerque","Colorado Springs"],"rawOffsetInMinutes":-420,"abbreviation":"MST","rawF
4947ormat":"-07:00 Mountain Time - Denver, El Paso, Albuquerque, Colorado Springs"},{"name":"America/Phoenix","alternativeName":"Mountain Time","group":["America/Phoenix","MST","US/Arizona","America/Creston"],"continentCode":"NA","continentName":"North America","countryName":"United States","countryCode":"US","mainCities":["Phoenix","Tucson","Mesa","Chandler"],"rawOffsetInMinutes":-420,"abbreviation":"MST","rawFormat":"-07:00 Mountain Time - Phoenix, Tucson, Mesa, Chandler"},{"name":"America/Whitehorse","alternativeName":"Yukon Time","group":["America/Creston","America/Dawson","America/Dawson_Creek","America/Fort_Nelson","America/Whitehorse","Canada/Yukon"],"continentCode":"NA","continentName":"North America","countryName":"Canada","countryCode":"CA","mainCities":["Whitehorse","Fort St. John","Creston","Dawson"],"rawOffsetInMinutes":-420,"abbreviation":"YT","rawFormat":"-07:00 Yukon Time - Whitehorse, Fort St. John, Creston, Dawson"},{"name":"America/Belize","alternativeName":"Central Time","group":["America/Belize"],"continentCode":"NA","continentName":"North America","countryName":"Belize","countryCode":"BZ","mainCities":["Belize City","San Pedro","Orange Walk","Belmopan"],"rawOffsetInMinutes":-360,"abbreviation":"CST","rawFormat":"-06:00 Central Time - Belize City, San Pedro, Orange Walk, Belmopan"},{"name":"America/Chicago","alternativeName":"Central Time","group":["America/Chicago","America/Indiana/Knox","America/Indiana/Tell_City","America/Menominee","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","CST6CDT","US/Central","US/Indiana-Starke","America/Knox_IN"],"continentCode":"NA","continentName":"North America","countryName":"United States","countryCode":"US","mainCities":["Chicago","Houston","San Antonio","Dallas"],"rawOffsetInMinutes":-360,"abbreviation":"CST","rawFormat":"-06:00 Central Time - Chicago, Houston, San Antonio, Dallas"},{"name":"America/Guatemala","alternativeName":"Central Time","group":["America/Guatemala"],"continentCode":"NA","continentName":"North America","countryName":"Guatemala","countryCode":"GT","mainCities":["Guatemala City","Villa Nueva","Mixco","Cobán"],"rawOffsetInMinutes":-360,"abbreviation":"CST","rawFormat":"-06:00 Central Time - Guatemala City, Villa Nueva, Mixco, Cobán"},{"name":"America/Managua","alternativeName":"Central Time","group":["America/Managua"],"continentCode":"NA","continentName":"North America","countryName":"Nicaragua","countryCode":"NI","mainCities":["Managua","León","Masaya","Chinandega"],"rawOffsetInMinutes":-360,"abbreviation":"CST","rawFormat":"-06:00 Central Time - Managua, León, Masaya, Chinandega"},{"name":"America/Mexico_City","alternativeName":"Central Time","group":["America/Bahia_Banderas","America/Chihuahua","America/Merida","America/Mexico_City","America/Monterrey","Mexico/General"],"continentCode":"NA","continentName":"North America","countryName":"Mexico","countryCode":"MX","mainCities":["Mexico City","Iztapalapa","León de los Aldama","Puebla"],"rawOffsetInMinutes":-360,"abbreviation":"CST","rawFormat":"-06:00 Central Time - Mexico City, Iztapalapa, León de los Aldama, Puebla"},{"name":"America/Matamoros","alternativeName":"Central Time","group":["America/Matamoros","America/Ojinaga"],"continentCode":"NA","continentName":"North America","countryName":"Mexico","countryCode":"MX","mainCities":["Reynosa","Heroica Matamoros","Nuevo Laredo","Piedras Negras"],"rawOffsetInMinutes":-360,"abbreviation":"CST","rawFormat":"-06:00 Central Time - Reynosa, Heroica Matamoros, Nuevo Laredo, Piedras Negras"},{"name":"America/Costa_Rica","alternativeName":"Central Time","group":["America/Costa_Rica"],"continentCode":"NA","continentName":"North America","countryName":"Costa Rica","countryCode":"CR","mainCities":["San José","Limón","San Francisco","Alajuela"],"rawOffsetInMinutes":-360,"abbreviation":"CST","rawFormat":"-06:00 Central Time - San José, Limón, San Francisco, Alajuela"},{"name":"America/El_Salvador","alternativeName":"Central Time","group":["America/El_Salvador"],"continentCode":"NA","continentName":"North America","countryName":"El Salvador","countryCode":"SV","mainCities":["San Salvador","Soyapango","San Miguel","Santa Ana"],"rawOffsetInMinutes":-360,"abbreviation":"CST","rawF
4947ormat":"-06:00 Central Time - San Salvador, Soyapango, San Miguel, Santa Ana"},{"name":"America/Regina","alternativeName":"Central Time","group":["America/Regina","America/Swift_Current","Canada/Saskatchewan"],"continentCode":"NA","continentName":"North America","countryName":"Canada","countryCode":"CA","mainCities":["Saskatoon","Regina","Prince Albert","Moose Jaw"],"rawOffsetInMinutes":-360,"abbreviation":"CST","rawFormat":"-06:00 Central Time - Saskatoon, Regina, Prince Albert, Moose Jaw"},{"name":"America/Tegucigalpa","alternativeName":"Central Time","group":["America/Tegucigalpa"],"continentCode":"NA","continentName":"North America","countryName":"Honduras","countryCode":"HN","mainCities":["Tegucigalpa","San Pedro Sula","La Ceiba","Choloma"],"rawOffsetInMinutes":-360,"abbreviation":"CST","rawFormat":"-06:00 Central Time - Tegucigalpa, San Pedro Sula, La Ceiba, Choloma"},{"name":"America/Winnipeg","alternativeName":"Central Time","group":["America/Rankin_Inlet","America/Resolute","America/Winnipeg","Canada/Central","America/Rainy_River"],"continentCode":"NA","continentName":"North America","countryName":"Canada","countryCode":"CA","mainCities":["Winnipeg","Brandon","Steinbach","Kenora"],"rawOffsetInMinutes":-360,"abbreviation":"CST","rawFormat":"-06:00 Central Time - Winnipeg, Brandon, Steinbach, Kenora"},{"name":"Pacific/Easter","alternativeName":"Easter Island Time","group":["Pacific/Easter","Chile/EasterIsland"],"continentCode":"SA","continentName":"South America","countryName":"Chile","countryCode":"CL","mainCities":["Easter"],"rawOffsetInMinutes":-360,"abbreviation":"EAST","rawFormat":"-06:00 Easter Island Time - Easter"},{"name":"Pacific/Galapagos","alternativeName":"Galapagos Time","group":["Pacific/Galapagos"],"continentCode":"SA","continentName":"South America","countryName":"Ecuador","countryCode":"EC","mainCities":["Galapagos"],"rawOffsetInMinutes":-360,"abbreviation":"GALT","rawFormat":"-06:00 Galapagos Time - Galapagos"},{"name":"America/Rio_Branco","alternativeName":"Acre Time","group":["America/Eirunepe","America/Rio_Branco","Brazil/Acre","America/Porto_Acre"],"continentCode":"SA","continentName":"South America","countryName":"Brazil","countryCode":"BR","mainCities":["Rio Branco","Cruzeiro do Sul","Tarauacá","Sena Madureira"],"rawOffsetInMinutes":-300,"abbreviation":"ACT","rawFormat":"-05:00 Acre Time - Rio Branco, Cruzeiro do Sul, Tarauacá, Sena Madureira"},{"name":"America/Bogota","alternativeName":"Colombia Time","group":["America/Bogota"],"continentCode":"SA","continentName":"South America","countryName":"Colombia","countryCode":"CO","mainCities":["Bogotá","Cali","Medellín","Barranquilla"],"rawOffsetInMinutes":-300,"abbreviation":"COT","rawFormat":"-05:00 Colombia Time - Bogotá, Cali, Medellín, Barranquilla"},{"name":"America/Havana","alternativeName":"Cuba Time","group":["America/Havana","Cuba"],"continentCode":"NA","continentName":"North America","countryName":"Cuba","countryCode":"CU","mainCities":["Havana","Santiago de Cuba","Camagüey","Holguín"],"rawOffsetInMinutes":-300,"abbreviation":"CST","rawFormat":"-05:00 Cuba Time - Havana, Santiago de Cuba, Camagüey, Holguín"},{"name":"America/Atikokan","alternativeName":"Eastern Time","group":["America/Atikokan"],"continentCode":"NA","continentName":"North America","countryName":"Canada","countryCode":"CA","mainCities":["Atikokan"],"rawOffsetInMinutes":-300,"abbreviation":"EST","rawFormat":"-05:00 Eastern Time - Atikokan"},{"name":"America/Cancun","alternativeName":"Eastern Time","group":["America/Cancun"],"continentCode":"NA","continentName":"North America","countryName":"Mexico","countryCode":"MX","mainCities":["Cancún","Chetumal","Playa del Carmen","Cozumel"],"rawOffsetInMinutes":-300,"abbreviation":"EST","rawFormat":"-05:00 Eastern Time - Cancún, Chetumal, Playa del Carmen, Cozumel"},{"name":"America/Cayman","alternativeName":"Eastern Time","group":["America/Cayman"],"continentCode":"NA","continentName":"North America","countryName":"Cayman Islands","countryCode":"KY","mainCities":["George Town","West Bay"],"rawOffsetInMinutes":-300,"abbreviation":"EST","rawF
4947ormat":"-05:00 Eastern Time - George Town, West Bay"},{"name":"America/Jamaica","alternativeName":"Eastern Time","group":["America/Jamaica","Jamaica"],"continentCode":"NA","continentName":"North America","countryName":"Jamaica","countryCode":"JM","mainCities":["Kingston","New Kingston","Spanish Town","Portmore"],"rawOffsetInMinutes":-300,"abbreviation":"EST","rawFormat":"-05:00 Eastern Time - Kingston, New Kingston, Spanish Town, Portmore"},{"name":"America/Nassau","alternativeName":"Eastern Time","group":["America/Nassau"],"continentCode":"NA","continentName":"North America","countryName":"Bahamas","countryCode":"BS","mainCities":["Nassau","Lucaya","Freeport","Killarney"],"rawOffsetInMinutes":-300,"abbreviation":"EST","rawFormat":"-05:00 Eastern Time - Nassau, Lucaya, Freeport, Killarney"},{"name":"America/New_York","alternativeName":"Eastern Time","group":["America/Detroit","America/Indiana/Indianapolis","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Kentucky/Louisville","America/Kentucky/Monticello","America/New_York","US/Michigan","US/East-Indiana","America/Indianapolis","America/Fort_Wayne","America/Louisville","EST5EDT","US/Eastern"],"continentCode":"NA","continentName":"North America","countryName":"United States","countryCode":"US","mainCities":["New York City","Brooklyn","Queens","Philadelphia"],"rawOffsetInMinutes":-300,"abbreviation":"EST","rawFormat":"-05:00 Eastern Time - New York City, Brooklyn, Queens, Philadelphia"},{"name":"America/Panama","alternativeName":"Eastern Time","group":["America/Panama","EST","America/Atikokan","America/Cayman","America/Coral_Harbour"],"continentCode":"NA","continentName":"North America","countryName":"Panama","countryCode":"PA","mainCities":["Panamá","San Miguelito","Juan Díaz","David"],"rawOffsetInMinutes":-300,"abbreviation":"EST","rawFormat":"-05:00 Eastern Time - Panamá, San Miguelito, Juan Díaz, David"},{"name":"America/Port-au-Prince","alternativeName":"Eastern Time","group":["America/Port-au-Prince"],"continentCode":"NA","continentName":"North America","countryName":"Haiti","countryCode":"HT","mainCities":["Port-au-Prince","Carrefour","Delmas","Port-de-Paix"],"rawOffsetInMinutes":-300,"abbreviation":"EST","rawFormat":"-05:00 Eastern Time - Port-au-Prince, Carrefour, Delmas, Port-de-Paix"},{"name":"America/Grand_Turk","alternativeName":"Eastern Time","group":["America/Grand_Turk"],"continentCode":"NA","continentName":"North America","countryName":"Turks and Caicos Islands","countryCode":"TC","mainCities":["Providenciales","Cockburn Town"],"rawOffsetInMinutes":-300,"abbreviation":"EST","rawFormat":"-05:00 Eastern Time - Providenciales, Cockburn Town"},{"name":"America/Toronto","alternativeName":"Eastern Time","group":["America/Iqaluit","America/Toronto","America/Pangnirtung","Canada/Eastern","America/Nassau","America/Montreal","America/Nipigon","America/Thunder_Bay"],"continentCode":"NA","continentName":"North America","countryName":"Canada","countryCode":"CA","mainCities":["Toronto","Montréal","Ottawa","Mississauga"],"rawOffsetInMinutes":-300,"abbreviation":"EST","rawFormat":"-05:00 Eastern Time - Toronto, Montréal, Ottawa, Mississauga"},{"name":"America/Guayaquil","alternativeName":"Ecuador Time","group":["America/Guayaquil"],"continentCode":"SA","continentName":"South America","countryName":"Ecuador","countryCode":"EC","mainCities":["Quito","Guayaquil","Cuenca","Santo Domingo de los Colorados"],"rawOffsetInMinutes":-300,"abbreviation":"ECT","rawFormat":"-05:00 Ecuador Time - Quito, Guayaquil, Cuenca, Santo Domingo de los Colorados"},{"name":"America/Lima","alternativeName":"Peru Time","group":["America/Lima"],"continentCode":"SA","continentName":"South America","countryName":"Peru","countryCode":"PE","mainCities":["Lima","Callao","Arequipa","Trujillo"],"rawOffsetInMinutes":-300,"abbreviation":"PET","rawFormat":"-05:00 Peru Time - Lima, Callao, Arequipa, Trujillo"},{"name":"America/Manaus","alternativeName":"Amazon Time","group":["America/Boa_Vista","America/Campo_Grande","America/Cuiaba","America/Manaus","America/Porto_Velho","Brazil/West"],"continentCode":"SA","continentName":"South America","countryName":"Brazil","countryCode":"BR","mainCities":["Manaus","Campo Grande","Cuiabá","Porto Velho"],"rawOffsetInMinutes":-240,"abbreviation":"AMT","rawF
4947ormat":"-04:00 Amazon Time - Manaus, Campo Grande, Cuiabá, Porto Velho"},{"name":"America/St_Kitts","alternativeName":"Atlantic Time","group":["America/St_Kitts"],"continentCode":"NA","continentName":"North America","countryName":"Saint Kitts and Nevis","countryCode":"KN","mainCities":["Basseterre"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Basseterre"},{"name":"America/Blanc-Sablon","alternativeName":"Atlantic Time","group":["America/Blanc-Sablon"],"continentCode":"NA","continentName":"North America","countryName":"Canada","countryCode":"CA","mainCities":["Blanc-Sablon"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Blanc-Sablon"},{"name":"America/Montserrat","alternativeName":"Atlantic Time","group":["America/Montserrat"],"continentCode":"NA","continentName":"North America","countryName":"Montserrat","countryCode":"MS","mainCities":["Brades","Plymouth"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Brades, Plymouth"},{"name":"America/Barbados","alternativeName":"Atlantic Time","group":["America/Barbados"],"continentCode":"NA","continentName":"North America","countryName":"Barbados","countryCode":"BB","mainCities":["Bridgetown"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Bridgetown"},{"name":"America/Port_of_Spain","alternativeName":"Atlantic Time","group":["America/Port_of_Spain"],"continentCode":"NA","continentName":"North America","countryName":"Trinidad and Tobago","countryCode":"TT","mainCities":["Chaguanas","Mon Repos","San Fernando","Port of Spain"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Chaguanas, Mon Repos, San Fernando, Port of Spain"},{"name":"America/Martinique","alternativeName":"Atlantic Time","group":["America/Martinique"],"continentCode":"NA","continentName":"North America","countryName":"Martinique","countryCode":"MQ","mainCities":["Fort-de-France","Le Lamentin","Le Robert","Sainte-Marie"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Fort-de-France, Le Lamentin, Le Robert, Sainte-Marie"},{"name":"America/St_Lucia","alternativeName":"Atlantic Time","group":["America/St_Lucia"],"continentCode":"NA","continentName":"North America","countryName":"Saint Lucia","countryCode":"LC","mainCities":["Gros Islet","Castries"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Gros Islet, Castries"},{"name":"America/St_Barthelemy","alternativeName":"Atlantic Time","group":["America/St_Barthelemy"],"continentCode":"NA","continentName":"North America","countryName":"Saint Barthelemy","countryCode":"BL","mainCities":["Gustavia"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Gustavia"},{"name":"America/Halifax","alternativeName":"Atlantic Time","group":["America/Glace_Bay","America/Goose_Bay","America/Halifax","America/Moncton","Canada/Atlantic"],"continentCode":"NA","continentName":"North America","countryName":"Canada","countryCode":"CA","mainCities":["Halifax","Moncton","Sydney","Dartmouth"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Halifax, Moncton, Sydney, Dartmouth"},{"name":"Atlantic/Bermuda","alternativeName":"Atlantic Time","group":["Atlantic/Bermuda"],"continentCode":"NA","continentName":"North America","countryName":"Bermuda","countryCode":"BM","mainCities":["Hamilton"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Hamilton"},{"name":"America/St_Vincent","alternativeName":"Atlantic Time","group":["America/St_Vincent"],"continentCode":"NA","continentName":"North America","countryName":"Saint Vincent and the Grenadines","countryCode":"VC","mainCities":["Kingstown","Calliaqua"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Kingstown, Calliaqua"},{"name":"America/Kralendijk","alternativeName":"Atlantic Time","group":["America/Kralendijk"],"continentCode":"NA","continentName":"North America","countryName":"Bonaire, Saint Eustatius and Saba ","countryCode":"BQ","mainCities":["Kralendijk"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawF
4947ormat":"-04:00 Atlantic Time - Kralendijk"},{"name":"America/Guadeloupe","alternativeName":"Atlantic Time","group":["America/Guadeloupe"],"continentCode":"NA","continentName":"North America","countryName":"Guadeloupe","countryCode":"GP","mainCities":["Les Abymes","Baie-Mahault","Le Gosier","Petit-Bourg"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Les Abymes, Baie-Mahault, Le Gosier, Petit-Bourg"},{"name":"America/Marigot","alternativeName":"Atlantic Time","group":["America/Marigot"],"continentCode":"NA","continentName":"North America","countryName":"Saint Martin","countryCode":"MF","mainCities":["Marigot"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Marigot"},{"name":"America/Aruba","alternativeName":"Atlantic Time","group":["America/Aruba"],"continentCode":"NA","continentName":"North America","countryName":"Aruba","countryCode":"AW","mainCities":["Oranjestad","Noord","Tanki Leendert","San Nicolas"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Oranjestad, Noord, Tanki Leendert, San Nicolas"},{"name":"America/Lower_Princes","alternativeName":"Atlantic Time","group":["America/Lower_Princes"],"continentCode":"NA","continentName":"North America","countryName":"Sint Maarten","countryCode":"SX","mainCities":["Philipsburg"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Philipsburg"},{"name":"America/Tortola","alternativeName":"Atlantic Time","group":["America/Tortola"],"continentCode":"NA","continentName":"North America","countryName":"British Virgin Islands","countryCode":"VG","mainCities":["Road Town"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Road Town"},{"name":"America/Dominica","alternativeName":"Atlantic Time","group":["America/Dominica"],"continentCode":"NA","continentName":"North America","countryName":"Dominica","countryCode":"DM","mainCities":["Roseau"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Roseau"},{"name":"America/St_Thomas","alternativeName":"Atlantic Time","group":["America/St_Thomas"],"continentCode":"NA","continentName":"North America","countryName":"U.S. Virgin Islands","countryCode":"VI","mainCities":["Saint Croix","Charlotte Amalie"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Saint Croix, Charlotte Amalie"},{"name":"America/Grenada","alternativeName":"Atlantic Time","group":["America/Grenada"],"continentCode":"NA","continentName":"North America","countryName":"Grenada","countryCode":"GD","mainCities":["Saint George\'s"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Saint George\'s"},{"name":"America/Antigua","alternativeName":"Atlantic Time","group":["America/Antigua"],"continentCode":"NA","continentName":"North America","countryName":"Antigua and Barbuda","countryCode":"AG","mainCities":["Saint John’s"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Saint John’s"},{"name":"America/Puerto_Rico","alternativeName":"Atlantic Time","group":["America/Puerto_Rico","America/Virgin","America/Anguilla","America/Antigua","America/Aruba","America/Blanc-Sablon","America/Curacao","America/Dominica","America/Grenada","America/Guadeloupe","America/Kralendijk","America/Lower_Princes","America/Marigot","America/Montserrat","America/Port_of_Spain","America/St_Barthelemy","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Tortola"],"continentCode":"NA","continentName":"North America","countryName":"Puerto Rico","countryCode":"PR","mainCities":["San Juan","Bayamón","Carolina","Ponce"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - San Juan, Bayamón, Carolina, Ponce"},{"name":"America/Santo_Domingo","alternativeName":"Atlantic Time","group":["America/Santo_Domingo"],"continentCode":"NA","continentName":"North America","countryName":"Dominican Republic","countryCode":"DO","mainCities":["Santo Domingo","Santiago de los Caballeros","Santo Domingo Oeste","Santo Domingo Este"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawF
4947ormat":"-04:00 Atlantic Time - Santo Domingo, Santiago de los Caballeros, Santo Domingo Oeste, Santo Domingo Este"},{"name":"America/Anguilla","alternativeName":"Atlantic Time","group":["America/Anguilla"],"continentCode":"NA","continentName":"North America","countryName":"Anguilla","countryCode":"AI","mainCities":["The Valley"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - The Valley"},{"name":"America/Thule","alternativeName":"Atlantic Time","group":["America/Thule"],"continentCode":"NA","continentName":"North America","countryName":"Greenland","countryCode":"GL","mainCities":["Thule"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Thule"},{"name":"America/Curacao","alternativeName":"Atlantic Time","group":["America/Curacao"],"continentCode":"NA","continentName":"North America","countryName":"Curacao","countryCode":"CW","mainCities":["Willemstad","Bandariba"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Willemstad, Bandariba"},{"name":"America/La_Paz","alternativeName":"Bolivia Time","group":["America/La_Paz"],"continentCode":"SA","continentName":"South America","countryName":"Bolivia","countryCode":"BO","mainCities":["La Paz","Santa Cruz de la Sierra","Cochabamba","Sucre"],"rawOffsetInMinutes":-240,"abbreviation":"BOT","rawFormat":"-04:00 Bolivia Time - La Paz, Santa Cruz de la Sierra, Cochabamba, Sucre"},{"name":"America/Santiago","alternativeName":"Chile Time","group":["America/Santiago","Chile/Continental"],"continentCode":"SA","continentName":"South America","countryName":"Chile","countryCode":"CL","mainCities":["Santiago","Puente Alto","Antofagasta","Viña del Mar"],"rawOffsetInMinutes":-240,"abbreviation":"CLT","rawFormat":"-04:00 Chile Time - Santiago, Puente Alto, Antofagasta, Viña del Mar"},{"name":"America/Guyana","alternativeName":"Guyana Time","group":["America/Guyana"],"continentCode":"SA","continentName":"South America","countryName":"Guyana","countryCode":"GY","mainCities":["Georgetown","Linden","New Amsterdam"],"rawOffsetInMinutes":-240,"abbreviation":"GYT","rawFormat":"-04:00 Guyana Time - Georgetown, Linden, New Amsterdam"},{"name":"America/Caracas","alternativeName":"Venezuela Time","group":["America/Caracas"],"continentCode":"SA","continentName":"South America","countryName":"Venezuela","countryCode":"VE","mainCities":["Caracas","Maracaibo","Valencia","Barquisimeto"],"rawOffsetInMinutes":-240,"abbreviation":"VET","rawFormat":"-04:00 Venezuela Time - Caracas, Maracaibo, Valencia, Barquisimeto"},{"name":"America/St_Johns","alternativeName":"Newfoundland Time","group":["America/St_Johns","Canada/Newfoundland"],"continentCode":"NA","continentName":"North America","countryName":"Canada","countryCode":"CA","mainCities":["St. John\'s","Mount Pearl","Paradise","Corner Brook"],"rawOffsetInMinutes":-210,"abbreviation":"NST","rawFormat":"-03:30 Newfoundland Time - St. John\'s, Mount Pearl, Paradise, Corner Brook"},{"name":"America/Argentina/Buenos_Aires","alternativeName":"Argentina Time","group":["America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Buenos_Aires","America/Catamarca","America/Argentina/ComodRivadavia","America/Cordoba","America/Rosario","America/Jujuy","America/Mendoza"],"continentCode":"SA","continentName":"South America","countryName":"Argentina","countryCode":"AR","mainCities":["Buenos Aires","Córdoba","Rosario","Mar del Plata"],"rawOffsetInMinutes":-180,"abbreviation":"ART","rawFormat":"-03:00 Argentina Time - Buenos Aires, Córdoba, Rosario, Mar del Plata"},{"name":"America/Sao_Paulo","alternativeName":"Brasilia Time","group":["America/Araguaina","America/Bahia","America/Belem","America/Fortaleza","America/Maceio","America/Recife","America/Santarem","America/Sao_Paulo","Brazil/East"],"continentCode":"SA","continentName":"South America","countryName":"Brazil","countryCode":"BR","mainCities":["São Paulo","Rio de Janeiro","Belo Horizonte","Salvador"],"rawOffsetInMinutes":-180,"abbreviation":"BRT","rawF
4947ormat":"-03:00 Brasilia Time - São Paulo, Rio de Janeiro, Belo Horizonte, Salvador"},{"name":"Antarctica/Palmer","alternativeName":"Chile Time","group":["Antarctica/Palmer","Antarctica/Rothera"],"continentCode":"AN","continentName":"Antarctica","countryName":"Antarctica","countryCode":"AQ","mainCities":["Palmer","Rothera"],"rawOffsetInMinutes":-180,"abbreviation":"CLT","rawFormat":"-03:00 Chile Time - Palmer, Rothera"},{"name":"America/Punta_Arenas","alternativeName":"Chile Time","group":["America/Coyhaique","America/Punta_Arenas"],"continentCode":"SA","continentName":"South America","countryName":"Chile","countryCode":"CL","mainCities":["Punta Arenas","Coyhaique","Puerto Natales","Puerto Aysén"],"rawOffsetInMinutes":-180,"abbreviation":"CLT","rawFormat":"-03:00 Chile Time - Punta Arenas, Coyhaique, Puerto Natales, Puerto Aysén"},{"name":"Atlantic/Stanley","alternativeName":"Falkland Islands Time","group":["Atlantic/Stanley"],"continentCode":"SA","continentName":"South America","countryName":"Falkland Islands","countryCode":"FK","mainCities":["Stanley"],"rawOffsetInMinutes":-180,"abbreviation":"FKST","rawFormat":"-03:00 Falkland Islands Time - Stanley"},{"name":"America/Cayenne","alternativeName":"French Guiana Time","group":["America/Cayenne"],"continentCode":"SA","continentName":"South America","countryName":"French Guiana","countryCode":"GF","mainCities":["Cayenne","Matoury","Saint-Laurent-du-Maroni","Kourou"],"rawOffsetInMinutes":-180,"abbreviation":"GFT","rawFormat":"-03:00 French Guiana Time - Cayenne, Matoury, Saint-Laurent-du-Maroni, Kourou"},{"name":"America/Asuncion","alternativeName":"Paraguay Time","group":["America/Asuncion"],"continentCode":"SA","continentName":"South America","countryName":"Paraguay","countryCode":"PY","mainCities":["Asunción","Ciudad del Este","San Lorenzo","Capiatá"],"rawOffsetInMinutes":-180,"abbreviation":"PYT","rawFormat":"-03:00 Paraguay Time - Asunción, Ciudad del Este, San Lorenzo, Capiatá"},{"name":"America/Miquelon","alternativeName":"St. Pierre & Miquelon Time","group":["America/Miquelon"],"continentCode":"NA","continentName":"North America","countryName":"Saint Pierre and Miquelon","countryCode":"PM","mainCities":["Saint-Pierre"],"rawOffsetInMinutes":-180,"abbreviation":"PM","rawFormat":"-03:00 St. Pierre & Miquelon Time - Saint-Pierre"},{"name":"America/Paramaribo","alternativeName":"Suriname Time","group":["America/Paramaribo"],"continentCode":"SA","continentName":"South America","countryName":"Suriname","countryCode":"SR","mainCities":["Paramaribo","Lelydorp"],"rawOffsetInMinutes":-180,"abbreviation":"SRT","rawFormat":"-03:00 Suriname Time - Paramaribo, Lelydorp"},{"name":"America/Montevideo","alternativeName":"Uruguay Time","group":["America/Montevideo"],"continentCode":"SA","continentName":"South America","countryName":"Uruguay","countryCode":"UY","mainCities":["Montevideo","Salto","Paysandú","Las Piedras"],"rawOffsetInMinutes":-180,"abbreviation":"UYT","rawFormat":"-03:00 Uruguay Time - Montevideo, Salto, Paysandú, Las Piedras"},{"name":"America/Noronha","alternativeName":"Fernando de Noronha Time","group":["America/Noronha","Brazil/DeNoronha"],"continentCode":"SA","continentName":"South America","countryName":"Brazil","countryCode":"BR","mainCities":["Noronha"],"rawOffsetInMinutes":-120,"abbreviation":"FNT","rawFormat":"-02:00 Fernando de Noronha Time - Noronha"},{"name":"America/Nuuk","alternativeName":"Greenland Time","group":["America/Nuuk","America/Scoresbysund","America/Godthab"],"continentCode":"NA","continentName":"North America","countryName":"Greenland","countryCode":"GL","mainCities":["Nuuk","Scoresbysund"],"rawOffsetInMinutes":-120,"abbreviation":"GMT-2","rawFormat":"-02:00 Greenland Time - Nuuk, Scoresbysund"},{"name":"Atlantic/South_Georgia","alternativeName":"South Georgia Time","group":["Atlantic/South_Georgia"],"continentCode":"AN","continentName":"Antarctica","countryName":"South Georgia and the South Sandwich Islands","countryCode":"GS","mainCities":["Grytviken"],"rawOffsetInMinutes":-120,"abbreviation":"GST","rawFormat":"-02:00 South Georgia Time - Grytviken"},{"name":"Atlantic/Azores","alternativeName":"Azores Time","group":["Atlantic/Azores"],"continentCode":"EU","continentName":"Europe","countryName":"Portugal","countryCode":"PT","mainCities":["Ponta Delgada"],"rawOffsetInMinutes":-60,"abbreviation":"AZOT","rawFormat":"-01:00 Azores Time - Ponta Delgada"},{"name":"Atlantic/Cape_Verde","alternativeName":"Cape Verde Time","group":["Atlantic/Cape_Verde"],"continentCode":"AF","continentName":"Africa","countryName":"Cabo Verde","countryCode":"CV","mainCities":["Praia","Mindelo","Espargos","Assomada"],"rawOffsetInMinutes":-60,"abbreviation":"CVT","rawF
4947ormat":"-01:00 Cape Verde Time - Praia, Mindelo, Espargos, Assomada"},{"name":"Africa/Abidjan","alternativeName":"Greenwich Mean Time","group":["Africa/Abidjan","Iceland","Africa/Accra","Africa/Bamako","Africa/Banjul","Africa/Conakry","Africa/Dakar","Africa/Freetown","Africa/Lome","Africa/Nouakchott","Africa/Ouagadougou","Atlantic/Reykjavik","Atlantic/St_Helena","Africa/Timbuktu"],"continentCode":"AF","continentName":"Africa","countryName":"Ivory Coast","countryCode":"CI","mainCities":["Abidjan","Abobo","Bouaké","Korhogo"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - Abidjan, Abobo, Bouaké, Korhogo"},{"name":"Africa/Bamako","alternativeName":"Greenwich Mean Time","group":["Africa/Bamako"],"continentCode":"AF","continentName":"Africa","countryName":"Mali","countryCode":"ML","mainCities":["Bamako","Sikasso","Koutiala","Ségou"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - Bamako, Sikasso, Koutiala, Ségou"},{"name":"Africa/Bissau","alternativeName":"Greenwich Mean Time","group":["Africa/Bissau"],"continentCode":"AF","continentName":"Africa","countryName":"Guinea-Bissau","countryCode":"GW","mainCities":["Bissau","Gabú","Bafatá"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - Bissau, Gabú, Bafatá"},{"name":"Africa/Conakry","alternativeName":"Greenwich Mean Time","group":["Africa/Conakry"],"continentCode":"AF","continentName":"Africa","countryName":"Guinea","countryCode":"GN","mainCities":["Conakry","Camayenne","Nzérékoré","Kankan"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - Conakry, Camayenne, Nzérékoré, Kankan"},{"name":"Africa/Dakar","alternativeName":"Greenwich Mean Time","group":["Africa/Dakar"],"continentCode":"AF","continentName":"Africa","countryName":"Senegal","countryCode":"SN","mainCities":["Dakar","Touba","Pikine","Guédiawaye"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - Dakar, Touba, Pikine, Guédiawaye"},{"name":"America/Danmarkshavn","alternativeName":"Greenwich Mean Time","group":["America/Danmarkshavn"],"continentCode":"NA","continentName":"North America","countryName":"Greenland","countryCode":"GL","mainCities":["Danmarkshavn"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - Danmarkshavn"},{"name":"Europe/Isle_of_Man","alternativeName":"Greenwich Mean Time","group":["Europe/Isle_of_Man"],"continentCode":"EU","continentName":"Europe","countryName":"Isle of Man","countryCode":"IM","mainCities":["Douglas"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - Douglas"},{"name":"Europe/Dublin","alternativeName":"Greenwich Mean Time","group":["Europe/Dublin","Eire"],"continentCode":"EU","continentName":"Europe","countryName":"Ireland","countryCode":"IE","mainCities":["Dublin","South Dublin","Cork","Limerick"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - Dublin, South Dublin, Cork, Limerick"},{"name":"Africa/Freetown","alternativeName":"Greenwich Mean Time","group":["Africa/Freetown"],"continentCode":"AF","continentName":"Africa","countryName":"Sierra Leone","countryCode":"SL","mainCities":["Freetown","Bo","Kenema","Koidu"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - Freetown, Bo, Kenema, Koidu"},{"name":"Atlantic/St_Helena","alternativeName":"Greenwich Mean Time","group":["Atlantic/St_Helena"],"continentCode":"AF","continentName":"Africa","countryName":"Saint Helena","countryCode":"SH","mainCities":["Jamestown"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - Jamestown"},{"name":"Africa/Accra","alternativeName":"Greenwich Mean Time","group":["Africa/Accra"],"continentCode":"AF","continentName":"Africa","countryName":"Ghana","countryCode":"GH","mainCities":["Kumasi","Accra","Tamale","Takoradi"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - Kumasi, Accra, Tamale, Takoradi"},{"name":"Africa/Lome","alternativeName":"Greenwich Mean Time","group":["Africa/Lome"],"continentCode":"AF","continentName":"Africa","countryName":"Togo","countryCode":"TG","mainCities":["Lomé","Sokodé","Kara","Atakpamé"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawF
4947ormat":"+00:00 Greenwich Mean Time - Lomé, Sokodé, Kara, Atakpamé"},{"name":"Europe/London","alternativeName":"Greenwich Mean Time","group":["Europe/London","GB","GB-Eire","Europe/Guernsey","Europe/Isle_of_Man","Europe/Jersey","Europe/Belfast"],"continentCode":"EU","continentName":"Europe","countryName":"United Kingdom","countryCode":"GB","mainCities":["London","Birmingham","Glasgow","Manchester"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - London, Birmingham, Glasgow, Manchester"},{"name":"Africa/Monrovia","alternativeName":"Greenwich Mean Time","group":["Africa/Monrovia"],"continentCode":"AF","continentName":"Africa","countryName":"Liberia","countryCode":"LR","mainCities":["Monrovia","Gbarnga","Buchanan","Ganta"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - Monrovia, Gbarnga, Buchanan, Ganta"},{"name":"Africa/Nouakchott","alternativeName":"Greenwich Mean Time","group":["Africa/Nouakchott"],"continentCode":"AF","continentName":"Africa","countryName":"Mauritania","countryCode":"MR","mainCities":["Nouakchott","Nouadhibou","Kiffa","Dar Naim"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - Nouakchott, Nouadhibou, Kiffa, Dar Naim"},{"name":"Africa/Ouagadougou","alternativeName":"Greenwich Mean Time","group":["Africa/Ouagadougou"],"continentCode":"AF","continentName":"Africa","countryName":"Burkina Faso","countryCode":"BF","mainCities":["Ouagadougou","Bobo-Dioulasso","Koudougou","Saaba"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - Ouagadougou, Bobo-Dioulasso, Koudougou, Saaba"},{"name":"Atlantic/Reykjavik","alternativeName":"Greenwich Mean Time","group":["Atlantic/Reykjavik"],"continentCode":"EU","continentName":"Europe","countryName":"Iceland","countryCode":"IS","mainCities":["Reykjavík","Kópavogur","Hafnarfjörður","Reykjanesbær"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - Reykjavík, Kópavogur, Hafnarfjörður, Reykjanesbær"},{"name":"Europe/Jersey","alternativeName":"Greenwich Mean Time","group":["Europe/Jersey"],"continentCode":"EU","continentName":"Europe","countryName":"Jersey","countryCode":"JE","mainCities":["Saint Helier"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - Saint Helier"},{"name":"Europe/Guernsey","alternativeName":"Greenwich Mean Time","group":["Europe/Guernsey"],"continentCode":"EU","continentName":"Europe","countryName":"Guernsey","countryCode":"GG","mainCities":["Saint Peter Port"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - Saint Peter Port"},{"name":"Africa/Banjul","alternativeName":"Greenwich Mean Time","group":["Africa/Banjul"],"continentCode":"AF","continentName":"Africa","countryName":"Gambia","countryCode":"GM","mainCities":["Serekunda","Brikama","Bununka Kunda","Sukuta"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - Serekunda, Brikama, Bununka Kunda, Sukuta"},{"name":"Africa/Sao_Tome","alternativeName":"Greenwich Mean Time","group":["Africa/Sao_Tome"],"continentCode":"AF","continentName":"Africa","countryName":"Sao Tome and Principe","countryCode":"ST","mainCities":["São Tomé"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - São Tomé"},{"name":"Antarctica/Troll","alternativeName":"Greenwich Mean Time","group":["Antarctica/Troll"],"continentCode":"AN","continentName":"Antarctica","countryName":"Antarctica","countryCode":"AQ","mainCities":["Troll"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - Troll"},{"name":"Africa/Casablanca","alternativeName":"Western European Time","group":["Africa/Casablanca"],"continentCode":"AF","continentName":"Africa","countryName":"Morocco","countryCode":"MA","mainCities":["Casablanca","Rabat","Fes","Tangier"],"rawOffsetInMinutes":0,"abbreviation":"WET","rawFormat":"+00:00 Western European Time - Casablanca, Rabat, Fes, Tangier"},{"name":"Africa/El_Aaiun","alternativeName":"Western European Time","group":["Africa/El_Aaiun"],"continentCode":"AF","continentName":"Africa","countryName":"Western Sahara","countryCode":"EH","mainCities":["Laayoune","Dakhla","Boujdour"],"rawOffsetInMinutes":0,"abbreviation":"WET","rawF
4947ormat":"+00:00 Western European Time - Laayoune, Dakhla, Boujdour"},{"name":"Atlantic/Canary","alternativeName":"Western European Time","group":["Atlantic/Canary"],"continentCode":"EU","continentName":"Europe","countryName":"Spain","countryCode":"ES","mainCities":["Las Palmas de Gran Canaria","Santa Cruz de Tenerife","La Laguna","Telde"],"rawOffsetInMinutes":0,"abbreviation":"WET","rawFormat":"+00:00 Western European Time - Las Palmas de Gran Canaria, Santa Cruz de Tenerife, La Laguna, Telde"},{"name":"Europe/Lisbon","alternativeName":"Western European Time","group":["Atlantic/Madeira","Europe/Lisbon","Portugal","WET"],"continentCode":"EU","continentName":"Europe","countryName":"Portugal","countryCode":"PT","mainCities":["Lisbon","Porto","Amadora","Braga"],"rawOffsetInMinutes":0,"abbreviation":"WET","rawFormat":"+00:00 Western European Time - Lisbon, Porto, Amadora, Braga"},{"name":"Atlantic/Faroe","alternativeName":"Western European Time","group":["Atlantic/Faroe","Atlantic/Faeroe"],"continentCode":"EU","continentName":"Europe","countryName":"Faroe Islands","countryCode":"FO","mainCities":["Tórshavn"],"rawOffsetInMinutes":0,"abbreviation":"WET","rawFormat":"+00:00 Western European Time - Tórshavn"},{"name":"Africa/Windhoek","alternativeName":"Central Africa Time","group":["Africa/Windhoek"],"continentCode":"AF","continentName":"Africa","countryName":"Namibia","countryCode":"NA","mainCities":["Windhoek","Rundu","Walvis Bay","Swakopmund"],"rawOffsetInMinutes":60,"abbreviation":"CAT","rawFormat":"+01:00 Central Africa Time - Windhoek, Rundu, Walvis Bay, Swakopmund"},{"name":"Africa/Algiers","alternativeName":"Central European Time","group":["Africa/Algiers"],"continentCode":"AF","continentName":"Africa","countryName":"Algeria","countryCode":"DZ","mainCities":["Algiers","Oran","Constantine","Annaba"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Algiers, Oran, Constantine, Annaba"},{"name":"Europe/Amsterdam","alternativeName":"Central European Time","group":["Europe/Amsterdam"],"continentCode":"EU","continentName":"Europe","countryName":"The Netherlands","countryCode":"NL","mainCities":["Amsterdam","Rotterdam","The Hague","Utrecht"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Amsterdam, Rotterdam, The Hague, Utrecht"},{"name":"Europe/Andorra","alternativeName":"Central European Time","group":["Europe/Andorra"],"continentCode":"EU","continentName":"Europe","countryName":"Andorra","countryCode":"AD","mainCities":["Andorra la Vella","les Escaldes"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Andorra la Vella, les Escaldes"},{"name":"Europe/Belgrade","alternativeName":"Central European Time","group":["Europe/Belgrade","Europe/Ljubljana","Europe/Podgorica","Europe/Sarajevo","Europe/Skopje","Europe/Zagreb"],"continentCode":"EU","continentName":"Europe","countryName":"Serbia","countryCode":"RS","mainCities":["Belgrade","Niš","Novi Sad","Zemun"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Belgrade, Niš, Novi Sad, Zemun"},{"name":"Europe/Berlin","alternativeName":"Central European Time","group":["Europe/Berlin","Europe/Busingen","Arctic/Longyearbyen","Europe/Copenhagen","Europe/Oslo","Europe/Stockholm","Atlantic/Jan_Mayen"],"continentCode":"EU","continentName":"Europe","countryName":"Germany","countryCode":"DE","mainCities":["Berlin","Hamburg","Munich","Köln"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Berlin, Hamburg, Munich, Köln"},{"name":"Europe/Bratislava","alternativeName":"Central European Time","group":["Europe/Bratislava"],"continentCode":"EU","continentName":"Europe","countryName":"Slovakia","countryCode":"SK","mainCities":["Bratislava","Košice","Petržalka","Nitra"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Bratislava, Košice, Petržalka, Nitra"},{"name":"Europe/Brussels","alternativeName":"Central European Time","group":["Europe/Brussels","CET","MET","Europe/Amsterdam","Europe/Luxembourg"],"continentCode":"EU","continentName":"Europe","countryName":"Belgium","countryCode":"BE","mainCities":["Brussels","Antwerpen","Gent","Charleroi"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawF
4947ormat":"+01:00 Central European Time - Brussels, Antwerpen, Gent, Charleroi"},{"name":"Europe/Budapest","alternativeName":"Central European Time","group":["Europe/Budapest"],"continentCode":"EU","continentName":"Europe","countryName":"Hungary","countryCode":"HU","mainCities":["Budapest","Debrecen","Szeged","Miskolc"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Budapest, Debrecen, Szeged, Miskolc"},{"name":"Europe/Copenhagen","alternativeName":"Central European Time","group":["Europe/Copenhagen"],"continentCode":"EU","continentName":"Europe","countryName":"Denmark","countryCode":"DK","mainCities":["Copenhagen","Århus","Odense","Aalborg"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Copenhagen, Århus, Odense, Aalborg"},{"name":"Europe/Gibraltar","alternativeName":"Central European Time","group":["Europe/Gibraltar"],"continentCode":"EU","continentName":"Europe","countryName":"Gibraltar","countryCode":"GI","mainCities":["Gibraltar"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Gibraltar"},{"name":"Europe/Ljubljana","alternativeName":"Central European Time","group":["Europe/Ljubljana"],"continentCode":"EU","continentName":"Europe","countryName":"Slovenia","countryCode":"SI","mainCities":["Ljubljana","Maribor","Kranj","Celje"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Ljubljana, Maribor, Kranj, Celje"},{"name":"Arctic/Longyearbyen","alternativeName":"Central European Time","group":["Arctic/Longyearbyen"],"continentCode":"EU","continentName":"Europe","countryName":"Svalbard and Jan Mayen","countryCode":"SJ","mainCities":["Longyearbyen"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Longyearbyen"},{"name":"Europe/Luxembourg","alternativeName":"Central European Time","group":["Europe/Luxembourg"],"continentCode":"EU","continentName":"Europe","countryName":"Luxembourg","countryCode":"LU","mainCities":["Luxembourg","Esch-sur-Alzette","Dudelange"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Luxembourg, Esch-sur-Alzette, Dudelange"},{"name":"Europe/Madrid","alternativeName":"Central European Time","group":["Africa/Ceuta","Europe/Madrid"],"continentCode":"EU","continentName":"Europe","countryName":"Spain","countryCode":"ES","mainCities":["Madrid","Barcelona","Valencia","Sevilla"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Madrid, Barcelona, Valencia, Sevilla"},{"name":"Europe/Monaco","alternativeName":"Central European Time","group":["Europe/Monaco"],"continentCode":"EU","continentName":"Europe","countryName":"Monaco","countryCode":"MC","mainCities":["Monaco","Monte-Carlo"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Monaco, Monte-Carlo"},{"name":"Europe/Oslo","alternativeName":"Central European Time","group":["Europe/Oslo"],"continentCode":"EU","continentName":"Europe","countryName":"Norway","countryCode":"NO","mainCities":["Oslo","Bergen","Trondheim","Stavanger"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Oslo, Bergen, Trondheim, Stavanger"},{"name":"Europe/Paris","alternativeName":"Central European Time","group":["Europe/Paris","Europe/Monaco"],"continentCode":"EU","continentName":"Europe","countryName":"France","countryCode":"FR","mainCities":["Paris","Marseille","Lyon","Toulouse"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Paris, Marseille, Lyon, Toulouse"},{"name":"Europe/Podgorica","alternativeName":"Central European Time","group":["Europe/Podgorica"],"continentCode":"EU","continentName":"Europe","countryName":"Montenegro","countryCode":"ME","mainCities":["Podgorica","Nikšić","Herceg Novi","Pljevlja"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Podgorica, Nikšić, Herceg Novi, Pljevlja"},{"name":"Europe/Prague","alternativeName":"Central European Time","group":["Europe/Prague","Europe/Bratislava"],"continentCode":"EU","continentName":"Europe","countryName":"Czechia","countryCode":"CZ","mainCities":["Prague","Brno","Ostrava","Pilsen"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawF
4947ormat":"+01:00 Central European Time - Prague, Brno, Ostrava, Pilsen"},{"name":"Europe/Rome","alternativeName":"Central European Time","group":["Europe/Rome","Europe/San_Marino","Europe/Vatican"],"continentCode":"EU","continentName":"Europe","countryName":"Italy","countryCode":"IT","mainCities":["Rome","Milan","Naples","Turin"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Rome, Milan, Naples, Turin"},{"name":"Europe/San_Marino","alternativeName":"Central European Time","group":["Europe/San_Marino"],"continentCode":"EU","continentName":"Europe","countryName":"San Marino","countryCode":"SM","mainCities":["San Marino"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - San Marino"},{"name":"Europe/Malta","alternativeName":"Central European Time","group":["Europe/Malta"],"continentCode":"EU","continentName":"Europe","countryName":"Malta","countryCode":"MT","mainCities":["San Pawl il-Baħar","Birkirkara","Mosta","Sliema"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - San Pawl il-Baħar, Birkirkara, Mosta, Sliema"},{"name":"Europe/Sarajevo","alternativeName":"Central European Time","group":["Europe/Sarajevo"],"continentCode":"EU","continentName":"Europe","countryName":"Bosnia and Herzegovina","countryCode":"BA","mainCities":["Sarajevo","Banja Luka","Zenica","Tuzla"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Sarajevo, Banja Luka, Zenica, Tuzla"},{"name":"Europe/Skopje","alternativeName":"Central European Time","group":["Europe/Skopje"],"continentCode":"EU","continentName":"Europe","countryName":"North Macedonia","countryCode":"MK","mainCities":["Skopje","Kumanovo","Prilep","Bitola"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Skopje, Kumanovo, Prilep, Bitola"},{"name":"Europe/Stockholm","alternativeName":"Central European Time","group":["Europe/Stockholm"],"continentCode":"EU","continentName":"Europe","countryName":"Sweden","countryCode":"SE","mainCities":["Stockholm","Göteborg","Malmö","Uppsala"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Stockholm, Göteborg, Malmö, Uppsala"},{"name":"Europe/Tirane","alternativeName":"Central European Time","group":["Europe/Tirane"],"continentCode":"EU","continentName":"Europe","countryName":"Albania","countryCode":"AL","mainCities":["Tirana","Durrës","Vlorë","Elbasan"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Tirana, Durrës, Vlorë, Elbasan"},{"name":"Africa/Tunis","alternativeName":"Central European Time","group":["Africa/Tunis"],"continentCode":"AF","continentName":"Africa","countryName":"Tunisia","countryCode":"TN","mainCities":["Tunis","Sfax","Sousse","Kairouan"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Tunis, Sfax, Sousse, Kairouan"},{"name":"Europe/Vaduz","alternativeName":"Central European Time","group":["Europe/Vaduz"],"continentCode":"EU","continentName":"Europe","countryName":"Liechtenstein","countryCode":"LI","mainCities":["Vaduz"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Vaduz"},{"name":"Europe/Vatican","alternativeName":"Central European Time","group":["Europe/Vatican"],"continentCode":"EU","continentName":"Europe","countryName":"Vatican","countryCode":"VA","mainCities":["Vatican City"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Vatican City"},{"name":"Europe/Vienna","alternativeName":"Central European Time","group":["Europe/Vienna"],"continentCode":"EU","continentName":"Europe","countryName":"Austria","countryCode":"AT","mainCities":["Vienna","Graz","Linz","Favoriten"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Vienna, Graz, Linz, Favoriten"},{"name":"Europe/Warsaw","alternativeName":"Central European Time","group":["Europe/Warsaw","Poland"],"continentCode":"EU","continentName":"Europe","countryName":"Poland","countryCode":"PL","mainCities":["Warsaw","Łódź","Kraków","Wrocław"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawF
4947ormat":"+01:00 Central European Time - Warsaw, Łódź, Kraków, Wrocław"},{"name":"Europe/Zagreb","alternativeName":"Central European Time","group":["Europe/Zagreb"],"continentCode":"EU","continentName":"Europe","countryName":"Croatia","countryCode":"HR","mainCities":["Zagreb","Split","Rijeka","Osijek"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Zagreb, Split, Rijeka, Osijek"},{"name":"Europe/Zurich","alternativeName":"Central European Time","group":["Europe/Zurich","Europe/Busingen","Europe/Vaduz"],"continentCode":"EU","continentName":"Europe","countryName":"Switzerland","countryCode":"CH","mainCities":["Zürich","Genève","Basel","Lausanne"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Zürich, Genève, Basel, Lausanne"},{"name":"Africa/Bangui","alternativeName":"West Africa Time","group":["Africa/Bangui"],"continentCode":"AF","continentName":"Africa","countryName":"Central African Republic","countryCode":"CF","mainCities":["Bangui","Bimbo","Bégoua","Carnot"],"rawOffsetInMinutes":60,"abbreviation":"WAT","rawFormat":"+01:00 West Africa Time - Bangui, Bimbo, Bégoua, Carnot"},{"name":"Africa/Malabo","alternativeName":"West Africa Time","group":["Africa/Malabo"],"continentCode":"AF","continentName":"Africa","countryName":"Equatorial Guinea","countryCode":"GQ","mainCities":["Bata","Malabo","Ebebiyin"],"rawOffsetInMinutes":60,"abbreviation":"WAT","rawFormat":"+01:00 West Africa Time - Bata, Malabo, Ebebiyin"},{"name":"Africa/Brazzaville","alternativeName":"West Africa Time","group":["Africa/Brazzaville"],"continentCode":"AF","continentName":"Africa","countryName":"Republic of the Congo","countryCode":"CG","mainCities":["Brazzaville","Pointe-Noire","Dolisie","Nkayi"],"rawOffsetInMinutes":60,"abbreviation":"WAT","rawFormat":"+01:00 West Africa Time - Brazzaville, Pointe-Noire, Dolisie, Nkayi"},{"name":"Africa/Porto-Novo","alternativeName":"West Africa Time","group":["Africa/Porto-Novo"],"continentCode":"AF","continentName":"Africa","countryName":"Benin","countryCode":"BJ","mainCities":["Cotonou","Abomey-Calavi","Porto-Novo","Parakou"],"rawOffsetInMinutes":60,"abbreviation":"WAT","rawFormat":"+01:00 West Africa Time - Cotonou, Abomey-Calavi, Porto-Novo, Parakou"},{"name":"Africa/Douala","alternativeName":"West Africa Time","group":["Africa/Douala"],"continentCode":"AF","continentName":"Africa","countryName":"Cameroon","countryCode":"CM","mainCities":["Douala","Yaoundé","Bamenda","Bafoussam"],"rawOffsetInMinutes":60,"abbreviation":"WAT","rawFormat":"+01:00 West Africa Time - Douala, Yaoundé, Bamenda, Bafoussam"},{"name":"Africa/Kinshasa","alternativeName":"West Africa Time","group":["Africa/Kinshasa"],"continentCode":"AF","continentName":"Africa","countryName":"Democratic Republic of the Congo","countryCode":"CD","mainCities":["Kinshasa","Kikwit","Masina","Mbandaka"],"rawOffsetInMinutes":60,"abbreviation":"WAT","rawFormat":"+01:00 West Africa Time - Kinshasa, Kikwit, Masina, Mbandaka"},{"name":"Africa/Lagos","alternativeName":"West Africa Time","group":["Africa/Lagos","Africa/Bangui","Africa/Brazzaville","Africa/Douala","Africa/Kinshasa","Africa/Libreville","Africa/Luanda","Africa/Malabo","Africa/Niamey","Africa/Porto-Novo"],"continentCode":"AF","continentName":"Africa","countryName":"Nigeria","countryCode":"NG","mainCities":["Lagos","Kano","Ibadan","Abuja"],"rawOffsetInMinutes":60,"abbreviation":"WAT","rawFormat":"+01:00 West Africa Time - Lagos, Kano, Ibadan, Abuja"},{"name":"Africa/Libreville","alternativeName":"West Africa Time","group":["Africa/Libreville"],"continentCode":"AF","continentName":"Africa","countryName":"Gabon","countryCode":"GA","mainCities":["Libreville","Port-Gentil","Franceville","Owendo"],"rawOffsetInMinutes":60,"abbreviation":"WAT","rawFormat":"+01:00 West Africa Time - Libreville, Port-Gentil, Franceville, Owendo"},{"name":"Africa/Luanda","alternativeName":"West Africa Time","group":["Africa/Luanda"],"continentCode":"AF","continentName":"Africa","countryName":"Angola","countryCode":"AO","mainCities":["Luanda","Lubango","Huambo","Benguela"],"rawOffsetInMinutes":60,"abbreviation":"WAT","rawFormat":"+01:00 West Africa Time - Luanda, Lubango, Huambo, Benguela"},{"name":"Africa/Ndjamena","alternativeName":"West Africa Time","group":["Africa/Ndjamena"],"continentCode":"AF","continentName":"Africa","countryName":"Chad","countryCode":"TD","mainCities":["N\'Djamena","Moundou","Abéché","Sarh"],"rawOffsetInMinutes":60,"abbreviation":"WAT","rawFormat":"+01:00 West Africa Time - N\'Djamena, Moundou, Abéché, Sarh"},{"name":"Africa/Niamey","alternativeName":"West Africa Time","group":["Africa/Niamey"],"continentCode":"AF","continentName":"Africa","countryName":"Niger","countryCode":"NE","mainCities":["Niamey","Maradi","Zinder","Tahoua"],"rawOffsetInMinutes":60,"abbreviation":"WAT","rawFormat":"+01:00 West Africa Time - Niamey, Maradi, Zinder, Tahoua"},{"name":"Africa/Bujumbura","alternativeName":"Central Africa Time","group":["Africa/Bujumbura"],"continentCode":"AF","continentName":"Africa","countryName":"Burundi","countryCode":"BI","mainCities":["Bujumbura","Gitega","Ngozi","Rumonge"],"rawOffsetInMinutes":120,"abbreviation":"CAT","rawFormat":"+02:00 Central Africa Time - Bujumbura, Gitega, Ngozi, Rumonge"},{"name":"Africa/Gaborone","alternativeName":"Central Africa Time","group":["Africa/Gaborone"],"continentCode":"AF","continentName":"Africa","countryName":"Botswana","countryCode":"BW","mainCities":["Gaborone","Francistown","Mogoditshane","Maun"],"rawOffsetInMinutes":120,"abbreviation":"CAT","rawFormat":"+02:00 Central Africa Time - Gaborone, Francistown, Mogoditshane, Maun"},{"name":"Africa/Harare","alternativeName":"Central Africa Time","group":["Africa/Harare"],"continentCode":"AF","continentName":"Africa","countryName":"Zimbabwe","countryCode":"ZW","mainCities":["Harare","Bulawayo","Chitungwiza","Mutare"],"rawOffsetInMinutes":120,"abbreviation":"CAT","rawFormat":"+02:00 Central Africa Time - Harare, Bulawayo, Chitungwiza, Mutare"},{"name":"Africa/Juba","alternativeName":"Central Africa Time","group":["Africa/Juba"],"continentCode":"AF","continentName":"Africa","countryName":"South Sudan","countryCode":"SS","mainCities":["Juba","Winejok","Yei","Malakal"],"rawOffsetInMinutes":120,"abbreviation":"CAT","rawFormat":"+02:00 Central Africa Time - Juba, Winejok, Yei, Malakal"},{"name":"Africa/Khartoum","alternativeName":"Central Africa Time","group":["Africa/Khartoum"],"continentCode":"AF","continentName":"Africa","countryName":"Sudan","countryCode":"SD","mainCities":["Khartoum","Omdurman","Khartoum North","Nyala"],"rawOffsetInMinutes":120,"abbreviation":"CAT","rawFormat":"+02:00 Central Africa Time - Khartoum, Omdurman, Khartoum North, Nyala"}
4947,{"name":"Africa/Kigali","alternativeName":"Central Africa Time","group":["Africa/Kigali"],"continentCode":"AF","continentName":"Africa","countryName":"Rwanda","countryCode":"RW","mainCities":["Kigali","Gisenyi","Nyagatare","Butare"],"rawOffsetInMinutes":120,"abbreviation":"CAT","rawFormat":"+02:00 Central Africa Time - Kigali, Gisenyi, Nyagatare, Butare"},{"name":"Africa/Blantyre","alternativeName":"Central Africa Time","group":["Africa/Blantyre"],"continentCode":"AF","continentName":"Africa","countryName":"Malawi","countryCode":"MW","mainCities":["Lilongwe","Blantyre","Mzuzu","Zomba"],"rawOffsetInMinutes":120,"abbreviation":"CAT","rawFormat":"+02:00 Central Africa Time - Lilongwe, Blantyre, Mzuzu, Zomba"},{"name":"Africa/Lubumbashi","alternativeName":"Central Africa Time","group":["Africa/Lubumbashi"],"continentCode":"AF","continentName":"Africa","countryName":"Democratic Republic of the Congo","countryCode":"CD","mainCities":["Lubumbashi","Mbuji-Mayi","Kananga","Kisangani"],"rawOffsetInMinutes":120,"abbreviation":"CAT","rawFormat":"+02:00 Central Africa Time - Lubumbashi, Mbuji-Mayi, Kananga, Kisangani"},{"name":"Africa/Lusaka","alternativeName":"Central Africa Time","group":["Africa/Lusaka"],"continentCode":"AF","continentName":"Africa","countryName":"Zambia","countryCode":"ZM","mainCities":["Lusaka","Kitwe","Ndola","Chipata"],"rawOffsetInMinutes":120,"abbreviation":"CAT","rawFormat":"+02:00 Central Africa Time - Lusaka, Kitwe, Ndola, Chipata"},{"name":"Africa/Maputo","alternativeName":"Central Africa Time","group":["Africa/Maputo","Africa/Blantyre","Africa/Bujumbura","Africa/Gaborone","Africa/Harare","Africa/Kigali","Africa/Lubumbashi","Africa/Lusaka"],"continentCode":"AF","continentName":"Africa","countryName":"Mozambique","countryCode":"MZ","mainCities":["Maputo","Matola","Nampula","Beira"],"rawOffsetInMinutes":120,"abbreviation":"CAT","rawFormat":"+02:00 Central Africa Time - Maputo, Matola, Nampula, Beira"},{"name":"Europe/Athens","alternativeName":"Eastern European Time","group":["Europe/Athens","EET"],"continentCode":"EU","continentName":"Europe","countryName":"Greece","countryCode":"GR","mainCities":["Athens","Thessaloníki","Pátra","Piraeus"],"rawOffsetInMinutes":120,"abbreviation":"EET","rawFormat":"+02:00 Eastern European Time - Athens, Thessaloníki, Pátra, Piraeus"},{"name":"Asia/Beirut","alternativeName":"Eastern European Time","group":["Asia/Beirut"],"continentCode":"AS","continentName":"Asia","countryName":"Lebanon","countryCode":"LB","mainCities":["Beirut","Ra’s Bayrūt","Tripoli","Sidon"],"rawOffsetInMinutes":120,"abbreviation":"EET","rawFormat":"+02:00 Eastern European Time - Beirut, Ra’s Bayrūt, Tripoli, Sidon"},{"name":"Europe/Bucharest","alternativeName":"Eastern European Time","group":["Europe/Bucharest"],"continentCode":"EU","continentName":"Europe","countryName":"Romania","countryCode":"RO","mainCities":["Bucharest","Sector 3","Iaşi","Sector 6"],"rawOffsetInMinutes":120,"abbreviation":"EET","rawFormat":"+02:00 Eastern European Time - Bucharest, Sector 3, Iaşi, Sector 6"},{"name":"Africa/Cairo","alternativeName":"Eastern European Time","group":["Africa/Cairo","Egypt"],"continentCode":"AF","continentName":"Africa","countryName":"Egypt","countryCode":"EG","mainCities":["Cairo","Alexandria","Giza","Shubrā al Khaymah"],"rawOffsetInMinutes":120,"abbreviation":"EET","rawFormat":"+02:00 Eastern European Time - Cairo, Alexandria, Giza, Shubrā al Khaymah"},{"name":"Europe/Chisinau","alternativeName":"Eastern European Time","group":["Europe/Chisinau","Europe/Tiraspol"],"continentCode":"EU","continentName":"Europe","countryName":"Moldova","countryCode":"MD","mainCities":["Chisinau","Tiraspol","Bălţi","Bender"],"rawOffsetInMinutes":120,"abbreviation":"EET","rawFormat":"+02:00 Eastern European Time - Chisinau, Tiraspol, Bălţi, Bender"},{"name":"Asia/Hebron","alternativeName":"Eastern European Time","group":["Asia/Gaza","Asia/Hebron"],"continentCode":"AS","continentName":"Asia","countryName":"Palestinian Territory","countryCode":"PS","mainCities":["East Jerusalem","Gaza","Khān Yūnis","Jabālyā"],"rawOffsetInMinutes":120,"abbreviation":"EET","rawF
4947ormat":"+02:00 Eastern European Time - East Jerusalem, Gaza, Khān Yūnis, Jabālyā"},{"name":"Europe/Helsinki","alternativeName":"Eastern European Time","group":["Europe/Helsinki","Europe/Mariehamn"],"continentCode":"EU","continentName":"Europe","countryName":"Finland","countryCode":"FI","mainCities":["Helsinki","Espoo","Tampere","Oulu"],"rawOffsetInMinutes":120,"abbreviation":"EET","rawFormat":"+02:00 Eastern European Time - Helsinki, Espoo, Tampere, Oulu"},{"name":"Europe/Kaliningrad","alternativeName":"Eastern European Time","group":["Europe/Kaliningrad"],"continentCode":"EU","continentName":"Europe","countryName":"Russia","countryCode":"RU","mainCities":["Kaliningrad","Chernyakhovsk","Sovetsk","Baltiysk"],"rawOffsetInMinutes":120,"abbreviation":"EET","rawFormat":"+02:00 Eastern European Time - Kaliningrad, Chernyakhovsk, Sovetsk, Baltiysk"},{"name":"Europe/Kyiv","alternativeName":"Eastern European Time","group":["Europe/Kyiv","Europe/Uzhgorod","Europe/Zaporozhye","Europe/Kiev"],"continentCode":"EU","continentName":"Europe","countryName":"Ukraine","countryCode":"UA","mainCities":["Kyiv","Kharkiv","Odesa","Dnipro"],"rawOffsetInMinutes":120,"abbreviation":"EET","rawFormat":"+02:00 Eastern European Time - Kyiv, Kharkiv, Odesa, Dnipro"},{"name":"Europe/Mariehamn","alternativeName":"Eastern European Time","group":["Europe/Mariehamn"],"continentCode":"EU","continentName":"Europe","countryName":"Aland Islands","countryCode":"AX","mainCities":["Mariehamn"],"rawOffsetInMinutes":120,"abbreviation":"EET","rawFormat":"+02:00 Eastern European Time - Mariehamn"},{"name":"Asia/Nicosia","alternativeName":"Eastern European Time","group":["Asia/Famagusta","Asia/Nicosia","Europe/Nicosia"],"continentCode":"EU","continentName":"Europe","countryName":"Cyprus","countryCode":"CY","mainCities":["Nicosia","Limassol","Larnaca","Stróvolos"],"rawOffsetInMinutes":120,"abbreviation":"EET","rawFormat":"+02:00 Eastern European Time - Nicosia, Limassol, Larnaca, Stróvolos"},{"name":"Europe/Riga","alternativeName":"Eastern European Time","group":["Europe/Riga"],"continentCode":"EU","continentName":"Europe","countryName":"Latvia","countryCode":"LV","mainCities":["Riga","Daugavpils","Liepāja","Jelgava"],"rawOffsetInMinutes":120,"abbreviation":"EET","rawFormat":"+02:00 Eastern European Time - Riga, Daugavpils, Liepāja, Jelgava"},{"name":"Europe/Sofia","alternativeName":"Eastern European Time","group":["Europe/Sofia"],"continentCode":"EU","continentName":"Europe","countryName":"Bulgaria","countryCode":"BG","mainCities":["Sofia","Plovdiv","Varna","Burgas"],"rawOffsetInMinutes":120,"abbreviation":"EET","rawFormat":"+02:00 Eastern European Time - Sofia, Plovdiv, Varna, Burgas"},{"name":"Europe/Tallinn","alternativeName":"Eastern European Time","group":["Europe/Tallinn"],"continentCode":"EU","continentName":"Europe","countryName":"Estonia","countryCode":"EE","mainCities":["Tallinn","Tartu","Narva","Pärnu"],"rawOffsetInMinutes":120,"abbreviation":"EET","rawFormat":"+02:00 Eastern European Time - Tallinn, Tartu, Narva, Pärnu"},{"name":"Africa/Tripoli","alternativeName":"Eastern European Time","group":["Africa/Tripoli","Libya"],"continentCode":"AF","continentName":"Africa","countryName":"Libya","countryCode":"LY","mainCities":["Tripoli","Benghazi","Misratah","Zliten"],"rawOffsetInMinutes":120,"abbreviation":"EET","rawFormat":"+02:00 Eastern European Time - Tripoli, Benghazi, Misratah, Zliten"},{"name":"Europe/Vilnius","alternativeName":"Eastern European Time","group":["Europe/Vilnius"],"continentCode":"EU","continentName":"Europe","countryName":"Lithuania","countryCode":"LT","mainCities":["Vilnius","Kaunas","Klaipėda","Šiauliai"],"rawOffsetInMinutes":120,"abbreviation":"EET","rawFormat":"+02:00 Eastern European Time - Vilnius, Kaunas, Klaipėda, Šiauliai"},{"name":"Asia/Jerusalem","alternativeName":"Israel Time","group":["Asia/Jerusalem","Israel","Asia/Tel_Aviv"],"continentCode":"AS","continentName":"Asia","countryName":"Israel","countryCode":"IL","mainCities":["Jerusalem","Tel Aviv","West Jerusalem","Haifa"],"rawOffsetInMinutes":120,"abbreviation":"IST","rawF
4947ormat":"+02:00 Israel Time - Jerusalem, Tel Aviv, West Jerusalem, Haifa"},{"name":"Africa/Johannesburg","alternativeName":"South Africa Time","group":["Africa/Johannesburg","Africa/Maseru","Africa/Mbabane"],"continentCode":"AF","continentName":"Africa","countryName":"South Africa","countryCode":"ZA","mainCities":["Johannesburg","Cape Town","Durban","Pretoria"],"rawOffsetInMinutes":120,"abbreviation":"SAST","rawFormat":"+02:00 South Africa Time - Johannesburg, Cape Town, Durban, Pretoria"},{"name":"Africa/Mbabane","alternativeName":"South Africa Time","group":["Africa/Mbabane"],"continentCode":"AF","continentName":"Africa","countryName":"Eswatini","countryCode":"SZ","mainCities":["Manzini","Mbabane","Lobamba"],"rawOffsetInMinutes":120,"abbreviation":"SAST","rawFormat":"+02:00 South Africa Time - Manzini, Mbabane, Lobamba"},{"name":"Africa/Maseru","alternativeName":"South Africa Time","group":["Africa/Maseru"],"continentCode":"AF","continentName":"Africa","countryName":"Lesotho","countryCode":"LS","mainCities":["Maseru","Maputsoe","Mohale\'s Hoek","Mafeteng"],"rawOffsetInMinutes":120,"abbreviation":"SAST","rawFormat":"+02:00 South Africa Time - Maseru, Maputsoe, Mohale\'s Hoek, Mafeteng"},{"name":"Asia/Kuwait","alternativeName":"Arabian Time","group":["Asia/Kuwait"],"continentCode":"AS","continentName":"Asia","countryName":"Kuwait","countryCode":"KW","mainCities":["Al Aḩmadī","Ḩawallī","As Sālimīyah","Şabāḩ as Sālim"],"rawOffsetInMinutes":180,"abbreviation":"AST","rawFormat":"+03:00 Arabian Time - Al Aḩmadī, Ḩawallī, As Sālimīyah, Şabāḩ as Sālim"},{"name":"Asia/Bahrain","alternativeName":"Arabian Time","group":["Asia/Bahrain"],"continentCode":"AS","continentName":"Asia","countryName":"Bahrain","countryCode":"BH","mainCities":["Ar Rifā‘","Manama","Al Muharraq","Dār Kulayb"],"rawOffsetInMinutes":180,"abbreviation":"AST","rawFormat":"+03:00 Arabian Time - Ar Rifā‘, Manama, Al Muharraq, Dār Kulayb"},{"name":"Asia/Baghdad","alternativeName":"Arabian Time","group":["Asia/Baghdad"],"continentCode":"AS","continentName":"Asia","countryName":"Iraq","countryCode":"IQ","mainCities":["Baghdad","Al Mawşil al Jadīdah","Al Başrah al Qadīmah","Mosul"],"rawOffsetInMinutes":180,"abbreviation":"AST","rawFormat":"+03:00 Arabian Time - Baghdad, Al Mawşil al Jadīdah, Al Başrah al Qadīmah, Mosul"},{"name":"Asia/Qatar","alternativeName":"Arabian Time","group":["Asia/Qatar","Asia/Bahrain"],"continentCode":"AS","continentName":"Asia","countryName":"Qatar","countryCode":"QA","mainCities":["Doha","Ar Rayyān","Al Maţār al ‘Atīq","Al Manşūrah"],"rawOffsetInMinutes":180,"abbreviation":"AST","rawFormat":"+03:00 Arabian Time - Doha, Ar Rayyān, Al Maţār al ‘Atīq, Al Manşūrah"},{"name":"Asia/Riyadh","alternativeName":"Arabian Time","group":["Asia/Riyadh","Antarctica/Syowa","Asia/Aden","Asia/Kuwait"],"continentCode":"AS","continentName":"Asia","countryName":"Saudi Arabia","countryCode":"SA","mainCities":["Jeddah","Riyadh","Makkah","Madinah"],"rawOffsetInMinutes":180,"abbreviation":"AST","rawFormat":"+03:00 Arabian Time - Jeddah, Riyadh, Makkah, Madinah"},{"name":"Asia/Aden","alternativeName":"Arabian Time","group":["Asia/Aden"],"continentCode":"AS","continentName":"Asia","countryName":"Yemen","countryCode":"YE","mainCities":["Sanaa","Aden","Taiz","Ibb"],"rawOffsetInMinutes":180,"abbreviation":"AST","rawFormat":"+03:00 Arabian Time - Sanaa, Aden, Taiz, Ibb"},{"name":"Asia/Amman","alternativeName":"Asia/Amman","group":["Asia/Amman"],"continentCode":"AS","continentName":"Asia","countryName":"Jordan","countryCode":"JO","mainCities":["Amman","Zarqa","Irbid","Russeifa"],"rawOffsetInMinutes":180,"abbreviation":"GMT+3","rawFormat":"+03:00 Asia/Amman - Amman, Zarqa, Irbid, Russeifa"},{"name":"Asia/Damascus","alternativeName":"Asia/Damascus","group":["Asia/Damascus"],"continentCode":"AS","continentName":"Asia","countryName":"Syria","countryCode":"SY","mainCities":["Aleppo","Damascus","Homs","Latakia"],"rawOffsetInMinutes":180,"abbreviation":"GMT+3","rawFormat":"+03:00 Asia/Damascus - Aleppo, Damascus, Homs, Latakia"},{"name":"Africa/Addis_Ababa","alternativeName":"East Africa Time","group":["Africa/Addis_Ababa"],"continentCode":"AF","continentName":"Africa","countryName":"Ethiopia","countryCode":"ET","mainCities":["Addis Ababa","Jijiga","Gonder","Mek\'ele"],"rawOffsetInMinutes":180,"abbreviation":"EAT","rawFormat":"+03:00 East Africa Time - Addis Ababa, Jijiga, Gonder, Mek\'ele"},{"name":"Indian/Antananarivo","alternativeName":"East Africa Time","group":["Indian/Antananarivo"],"continentCode":"AF","continentName":"Africa","countryName":"Madagascar","countryCode":"MG","mainCities":["Antananarivo","Toamasina","Antsirabe","Mahajanga"],"rawOffsetInMinutes":180,"abbreviation":"EAT","rawFormat":"+03:00 East Africa Time - Antananarivo, Toamasina, Antsirabe, Mahajanga"},{"name":"Africa/Asmara","alternativeName":"East Africa Time","group":["Africa/Asmara"],"continentCode":"AF","continentName":"Africa","countryName":"Eritrea","countryCode":"ER","mainCities":["Asmara","Keren","Himora","Massawa"],"rawOffsetInMinutes":180,"abbreviation":"EAT","rawFormat":"+03:00 East Africa Time - Asmara, Keren, Himora, Massawa"},{"name":"Africa/Dar_es_Salaam","alternativeName":"East Africa Time","group":["Africa/Dar_es_Salaam"],"continentCode":"AF","continentName":"Africa","countryName":"Tanzania","countryCode":"TZ","mainCities":["Dar es Salaam","Mwanza","Dodoma","Zanzibar"],"rawOffsetInMinutes":180,"abbreviation":"EAT","rawFormat":"+03:00 East Africa Time - Dar es Salaam, Mwanza, Dodoma, Zanzibar"},{"name":"Africa/Djibouti","alternativeName":"East Africa Time","group":["Africa/Djibouti"],"continentCode":"AF","continentName":"Africa","countryName":"Djibouti","countryCode":"DJ","mainCities":["Djibouti","Ali Sabih","Dikhil","Tadjoura"],"rawOffsetInMinutes":180,"abbreviation":"EAT","rawFormat":"+03:00 East Africa Time - Djibouti, Ali Sabih, Dikhil, Tadjoura"},{"name":"Africa/Kampala","alternativeName":"East Africa Time","group":["Africa/Kampala"],"continentCode":"AF","continentName":"Africa","countryName":"Uganda","countryCode":"UG","mainCities":["Kampala","Nansana","Kira","Bunamwaya"],"rawOffsetInMinutes":180,"abbreviation":"EAT","rawFormat":"+03:00 East Africa Time - Kampala, Nansana, Kira, Bunamwaya"},{"name":"Indian/Mayotte","alternativeName":"East Africa Time","group":["Indian/Mayotte"],"continentCode":"AF","continentName":"Africa","countryName":"Mayotte","countryCode":"YT","mainCities":["Mamoudzou","Koungou","Labattoir","Kaouéni"],"rawOffsetInMinutes":180,"abbreviation":"EAT","rawFormat":"+03:00 East Africa Time - Mamoudzou, Koungou, Labattoir, Kaouéni"},{"name":"Africa/Mogadishu","alternativeName":"East Africa Time","group":["Africa/Mogadishu"],"continentCode":"AF","continentName":"Africa","countryName":"Somalia","countryCode":"SO","mainCities":["Mogadishu","Borama","Hargeysa","Berbera"],"rawOffsetInMinutes":180,"abbreviation":"EAT","rawFormat":"+03:00 East Africa Time - Mogadishu, Borama, Hargeysa, Berbera"},{"name":"Indian/Comoro","alternativeName":"East Africa Time","group":["Indian/Comoro"],"continentCode":"AF","continentName":"Africa","countryName":"Comoros","countryCode":"KM","mainCities":["Moroni","Moutsamoudou","Fomboni"],"rawOffsetInMinutes":180,"abbreviation":"EAT","rawFormat":"+03:00 East Africa Time - Moroni, Moutsamoudou, Fomboni"},{"name":"Africa/Nairobi","alternativeName":"East Africa Time","group":["Africa/Nairobi","Africa/Addis_Ababa","Africa/Asmara","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Kampala","Africa/Mogadishu","Indian/Antananarivo","Indian/Comoro","Indian/Mayotte","Africa/Asmera"],"continentCode":"AF","continentName":"Africa","countryName":"Kenya","countryCode":"KE","mainCities":["Nairobi","Kakamega","Mombasa","Nakuru"],"rawOffsetInMinutes":180,"abbreviation":"EAT","rawFormat":"+03:00 East Africa Time - Nairobi, Kakamega, Mombasa, Nakuru"},{"name":"Europe/Minsk","alternativeName":"Moscow Time","group":["Europe/Minsk"],"continentCode":"EU","continentName":"Europe","countryName":"Belarus","countryCode":"BY","mainCities":["Minsk","Homyel\'","Hrodna","Vitebsk"],"rawOffsetInMinutes":180,"abbreviation":"MSK","rawFormat":"+03:00 Moscow Time - Minsk, Homyel\', Hrodna, Vitebsk"},{"name":"Europe/Moscow","alternativeName":"Moscow Time","group":["Europe/Kirov","Europe/Moscow","Europe/Volgograd","W-SU"],"continentCode":"EU","continentName":"Europe","countryName":"Russia","countryCode":"RU","mainCities":["Moscow","Saint Petersburg","Nizhniy Novgorod","Kazan"],"rawOffsetInMinutes":180,"abbreviation":"MSK","rawFormat":"+03:00 Moscow Time - Moscow, Saint Petersburg, Nizhniy Novgorod, Kazan"},{"name":"Europe/Simferopol","alternativeName":"Moscow Time","group":["Europe/Simferopol"],"continentCode":"EU","continentName":"Europe","countryName":"Ukraine","countryCode":"UA","mainCities":["Sevastopol","Simferopol","Kerch","Yevpatoriya"],"rawOffsetInMinutes":180,"abbreviation":"MSK","rawFormat":"+03:00 Moscow Time - Sevastopol, Simferopol, Kerch, Yevpatoriya"},{"name":"Antarctica/Syowa","alternativeName":"Syowa Time","group":["Antarctica/Syowa"],"continentCode":"AN","continentName":"Antarctica","countryName":"Antarctica","countryCode":"AQ","mainCities":["Syowa"],"rawOffsetInMinutes":180,"abbreviation":"SYOT","rawFormat":"+03:00 Syowa Time - Syowa"},{"name":"Europe/Istanbul","alternativeName":"Turkey Time","group":["Europe/Istanbul","Turkey","Asia/Istanbul"],"continentCode":"AS","continentName":"Asia","countryName":"Turkey","countryCode":"TR","mainCities":["Istanbul","Ankara","Bursa","İzmir"],"rawOffsetInMinutes":180,"abbreviation":"TRT","rawF
4947ormat":"+03:00 Turkey Time - Istanbul, Ankara, Bursa, İzmir"},{"name":"Asia/Tehran","alternativeName":"Iran Time","group":["Asia/Tehran","Iran"],"continentCode":"AS","continentName":"Asia","countryName":"Iran","countryCode":"IR","mainCities":["Tehran","Mashhad","Isfahan","Karaj"],"rawOffsetInMinutes":210,"abbreviation":"IRST","rawFormat":"+03:30 Iran Time - Tehran, Mashhad, Isfahan, Karaj"},{"name":"Asia/Yerevan","alternativeName":"Armenia Time","group":["Asia/Yerevan"],"continentCode":"AS","continentName":"Asia","countryName":"Armenia","countryCode":"AM","mainCities":["Yerevan","Malatia-Sebastia","Shengavit","Nor Nork"],"rawOffsetInMinutes":240,"abbreviation":"AMT","rawFormat":"+04:00 Armenia Time - Yerevan, Malatia-Sebastia, Shengavit, Nor Nork"},{"name":"Asia/Baku","alternativeName":"Azerbaijan Time","group":["Asia/Baku"],"continentCode":"AS","continentName":"Asia","countryName":"Azerbaijan","countryCode":"AZ","mainCities":["Baku","Sumqayıt","Ganja","Lankaran"],"rawOffsetInMinutes":240,"abbreviation":"AZT","rawFormat":"+04:00 Azerbaijan Time - Baku, Sumqayıt, Ganja, Lankaran"},{"name":"Asia/Tbilisi","alternativeName":"Georgia Time","group":["Asia/Tbilisi"],"continentCode":"AS","continentName":"Asia","countryName":"Georgia","countryCode":"GE","mainCities":["Tbilisi","Batumi","Kutaisi","Rustavi"],"rawOffsetInMinutes":240,"abbreviation":"GET","rawFormat":"+04:00 Georgia Time - Tbilisi, Batumi, Kutaisi, Rustavi"},{"name":"Asia/Dubai","alternativeName":"Gulf Time","group":["Asia/Dubai","Asia/Muscat","Indian/Mahe","Indian/Reunion"],"continentCode":"AS","continentName":"Asia","countryName":"United Arab Emirates","countryCode":"AE","mainCities":["Dubai","Abu Dhabi","Sharjah","Al Ain City"],"rawOffsetInMinutes":240,"abbreviation":"GST","rawFormat":"+04:00 Gulf Time - Dubai, Abu Dhabi, Sharjah, Al Ain City"},{"name":"Asia/Muscat","alternativeName":"Gulf Time","group":["Asia/Muscat"],"continentCode":"AS","continentName":"Asia","countryName":"Oman","countryCode":"OM","mainCities":["Muscat","Seeb","Bawshar","‘Ibrī"],"rawOffsetInMinutes":240,"abbreviation":"GST","rawFormat":"+04:00 Gulf Time - Muscat, Seeb, Bawshar, ‘Ibrī"},{"name":"Indian/Mauritius","alternativeName":"Mauritius Time","group":["Indian/Mauritius"],"continentCode":"AF","continentName":"Africa","countryName":"Mauritius","countryCode":"MU","mainCities":["Port Louis","Vacoas","Beau Bassin-Rose Hill","Curepipe"],"rawOffsetInMinutes":240,"abbreviation":"MUT","rawFormat":"+04:00 Mauritius Time - Port Louis, Vacoas, Beau Bassin-Rose Hill, Curepipe"},{"name":"Indian/Reunion","alternativeName":"Réunion Time","group":["Indian/Reunion"],"continentCode":"AF","continentName":"Africa","countryName":"Reunion","countryCode":"RE","mainCities":["Saint-Denis","Saint-Paul","Saint-Pierre","Le Tampon"],"rawOffsetInMinutes":240,"abbreviation":"RET","rawFormat":"+04:00 Réunion Time - Saint-Denis, Saint-Paul, Saint-Pierre, Le Tampon"},{"name":"Europe/Samara","alternativeName":"Samara Time","group":["Europe/Astrakhan","Europe/Samara","Europe/Saratov","Europe/Ulyanovsk"],"continentCode":"EU","continentName":"Europe","countryName":"Russia","countryCode":"RU","mainCities":["Samara","Saratov","Tolyatti","Izhevsk"],"rawOffsetInMinutes":240,"abbreviation":"SAMT","rawFormat":"+04:00 Samara Time - Samara, Saratov, Tolyatti, Izhevsk"},{"name":"Indian/Mahe","alternativeName":"Seychelles Time","group":["Indian/Mahe"],"continentCode":"AF","continentName":"Africa","countryName":"Seychelles","countryCode":"SC","mainCities":["Victoria"],"rawOffsetInMinutes":240,"abbreviation":"SCT","rawFormat":"+04:00 Seychelles Time - Victoria"},{"name":"Asia/Kabul","alternativeName":"Afghanistan Time","group":["Asia/Kabul"],"continentCode":"AS","continentName":"Asia","countryName":"Afghanistan","countryCode":"AF","mainCities":["Kabul","Herāt","Mazār-e Sharīf","Kandahār"],"rawOffsetInMinutes":270,"abbreviation":"AFT","rawFormat":"+04:30 Afghanistan Time - Kabul, Herāt, Mazār-e Sharīf, Kandahār"},{"name":"Indian/Kerguelen","alternativeName":"French Southern & Antarctic Time","group":["Indian/Kerguelen"],"continentCode":"AN","continentName":"Antarctica","countryName":"French Southern Territories","countryCode":"TF","mainCities":["Port-aux-Français"],"rawOffsetInMinutes":300,"abbreviation":"FSAT","rawFormat":"+05:00 French Southern & Antarctic Time - Port-aux-Français"},{"name":"Asia/Almaty","alternativeName":"Kazakhstan Time","group":["Asia/Almaty","Asia/Aqtau","Asia/Aqtobe","Asia/Atyrau","Asia/Oral","Asia/Qostanay","Asia/Qyzylorda"],"continentCode":"AS","continentName":"Asia","countryName":"Kazakhstan","countryCode":"KZ","mainCities":["Almaty","Shymkent","Aktobe","Karagandy"],"rawOffsetInMinutes":300,"abbreviation":"GMT+5","rawFormat":"+05:00 K
4947azakhstan Time - Almaty, Shymkent, Aktobe, Karagandy"},{"name":"Indian/Maldives","alternativeName":"Maldives Time","group":["Indian/Maldives","Indian/Kerguelen"],"continentCode":"AS","continentName":"Asia","countryName":"Maldives","countryCode":"MV","mainCities":["Male"],"rawOffsetInMinutes":300,"abbreviation":"MVT","rawFormat":"+05:00 Maldives Time - Male"},{"name":"Antarctica/Mawson","alternativeName":"Mawson Time","group":["Antarctica/Mawson","Antarctica/Vostok"],"continentCode":"AN","continentName":"Antarctica","countryName":"Antarctica","countryCode":"AQ","mainCities":["Mawson","Vostok"],"rawOffsetInMinutes":300,"abbreviation":"MAWT","rawFormat":"+05:00 Mawson Time - Mawson, Vostok"},{"name":"Asia/Karachi","alternativeName":"Pakistan Time","group":["Asia/Karachi"],"continentCode":"AS","continentName":"Asia","countryName":"Pakistan","countryCode":"PK","mainCities":["Lahore","Karachi","Peshawar","Faisalabad"],"rawOffsetInMinutes":300,"abbreviation":"PKT","rawFormat":"+05:00 Pakistan Time - Lahore, Karachi, Peshawar, Faisalabad"},{"name":"Asia/Dushanbe","alternativeName":"Tajikistan Time","group":["Asia/Dushanbe"],"continentCode":"AS","continentName":"Asia","countryName":"Tajikistan","countryCode":"TJ","mainCities":["Dushanbe","Isfara","Istaravshan","Kŭlob"],"rawOffsetInMinutes":300,"abbreviation":"TJT","rawFormat":"+05:00 Tajikistan Time - Dushanbe, Isfara, Istaravshan, Kŭlob"},{"name":"Asia/Ashgabat","alternativeName":"Turkmenistan Time","group":["Asia/Ashgabat","Asia/Ashkhabad"],"continentCode":"AS","continentName":"Asia","countryName":"Turkmenistan","countryCode":"TM","mainCities":["Ashgabat","Türkmenabat","Daşoguz","Mary"],"rawOffsetInMinutes":300,"abbreviation":"TMT","rawFormat":"+05:00 Turkmenistan Time - Ashgabat, Türkmenabat, Daşoguz, Mary"},{"name":"Asia/Tashkent","alternativeName":"Uzbekistan Time","group":["Asia/Samarkand","Asia/Tashkent"],"continentCode":"AS","continentName":"Asia","countryName":"Uzbekistan","countryCode":"UZ","mainCities":["Tashkent","Andijon","Namangan","Samarkand"],"rawOffsetInMinutes":300,"abbreviation":"UZT","rawFormat":"+05:00 Uzbekistan Time - Tashkent, Andijon, Namangan, Samarkand"},{"name":"Asia/Yekaterinburg","alternativeName":"Yekaterinburg Time","group":["Asia/Yekaterinburg"],"continentCode":"EU","continentName":"Europe","countryName":"Russia","countryCode":"RU","mainCities":["Yekaterinburg","Chelyabinsk","Ufa","Perm"],"rawOffsetInMinutes":300,"abbreviation":"YEKT","rawFormat":"+05:00 Yekaterinburg Time - Yekaterinburg, Chelyabinsk, Ufa, Perm"},{"name":"Asia/Colombo","alternativeName":"India Time","group":["Asia/Colombo"],"continentCode":"AS","continentName":"Asia","countryName":"Sri Lanka","countryCode":"LK","mainCities":["Colombo","Dehiwala-Mount Lavinia","Maharagama","Jaffna"],"rawOffsetInMinutes":33
49470,"abbreviation":"IST","rawFormat":"+05:30 India Time - Colombo, Dehiwala-Mount Lavinia, Maharagama, Jaffna"},{"name":"Asia/Kolkata","alternativeName":"India Time","group":["Asia/Kolkata","Asia/Calcutta"],"continentCode":"AS","continentName":"Asia","countryName":"India","countryCode":"IN","mainCities":["Mumbai","Delhi","Bengaluru","Hyderābād"],"rawOffsetInMinutes":330,"abbreviation":"IST","rawFormat":"+05:30 India Time - Mumbai, Delhi, Bengaluru, Hyderābād"},{"name":"Asia/Kathmandu","alternativeName":"Nepal Time","group":["Asia/Kathmandu","Asia/Katmandu"],"continentCode":"AS","continentName":"Asia","countryName":"Nepal","countryCode":"NP","mainCities":["Kathmandu","Pokhara","Bharatpur","Pātan"],"rawOffsetInMinutes":345,"abbreviation":"NPT","rawFormat":"+05:45 Nepal Time - Kathmandu, Pokhara, Bharatpur, Pātan"},{"name":"Asia/Dhaka","alternativeName":"Bangladesh Time","group":["Asia/Dhaka","Asia/Dacca"],"continentCode":"AS","continentName":"Asia","countryName":"Bangladesh","countryCode":"BD","mainCities":["Dhaka","Chattogram","Gazipur","Khulna"],"rawOffsetInMinutes":360,"abbreviation":"BST","rawFormat":"+06:00 Bangladesh Time - Dhaka, Chattogram, Gazipur, Khulna"},{"name":"Asia/Thimphu","alternativeName":"Bhutan Time","group":["Asia/Thimphu","Asia/Thimbu"],"continentCode":"AS","continentName":"Asia","countryName":"Bhutan","countryCode":"BT","mainCities":["Thimphu","Phuntsholing","Tsirang","Punākha"],"rawOffsetInMinutes":360,"abbreviation":"BTT","rawFormat":"+06:00 Bhutan Time - Thimphu, Phuntsholing, Tsirang, Punākha"},{"name":"Asia/Urumqi","alternativeName":"China Time","group":["Asia/Urumqi","Asia/Kashgar"],"continentCode":"AS","continentName":"Asia","countryName":"China","countryCode":"CN","mainCities":["Ürümqi","Shihezi","Korla","Aqsu"],"rawOffsetInMinutes":360,"abbreviation":"CST","rawFormat":"+06:00 China Time - Ürümqi, Shihezi, Korla, Aqsu"},{"name":"Indian/Chagos","alternativeName":"Indian Ocean Time","group":["Indian/Chagos"],"continentCode":"AS","continentName":"Asia","countryName":"British Indian Ocean Territory","countryCode":"IO","mainCities":["Chagos"],"rawOffsetInMinutes":360,"abbreviation":"IOT","rawFormat":"+06:00 Indian Ocean Time - Chagos"},{"name":"Asia/Bishkek","alternativeName":"Kyrgyzstan Time","group":["Asia/Bishkek"],"continentCode":"AS","continentName":"Asia","countryName":"Kyrgyzstan","countryCode":"KG","mainCities":["Bishkek","Osh","Jalal-Abad","Karakol"],"rawOffsetInMinutes":360,"abbreviation":"KGT","rawFormat":"+06:00 Kyrgyzstan Time - Bishkek, Osh, Jalal-Abad, Karakol"},{"name":"Asia/Omsk","alternativeName":"Omsk Time","group":["Asia/Omsk"],"continentCode":"EU","continentName":"Europe","countryName":"Russia","countryCode":"RU","mainCities":["Omsk","Tara","Kalachinsk","Isil’kul’"],"rawOffsetInMinutes":360,"abbreviation":"OMST","rawFormat":"+06:00 Omsk Time - Omsk, Tara, Kalachinsk, Isil’kul’"},{"name":"Indian/Cocos","alternativeName":"Cocos Islands Time","group":["Indian/Cocos"],"continentCode":"AS","continentName":"Asia","countryName":"Cocos Islands","countryCode":"CC","mainCities":["West Island"],"rawOffsetInMinutes":390,"abbreviation":"CCT","rawFormat":"+06:30 Cocos Islands Time - West Island"},{"name":"Asia/Yangon","alternativeName":"Myanmar Time","group":["Asia/Yangon","Indian/Cocos","Asia/Rangoon"],"continentCode":"AS","continentName":"Asia","countryName":"Myanmar","countryCode":"MM","mainCities":["Yangon","Mandalay","Nay Pyi Taw","Mawlamyine"],"rawOffsetInMinutes":390,"abbreviation":"MMT","rawFormat":"+06:30 Myanmar Time - Yangon, Mandalay, Nay Pyi Taw, Mawlamyine"},{"name":"Indian/Christmas","alternativeName":"Christmas Island Time","group":["Indian/Christmas"],"continentCode":"OC","continentName":"Oceania","countryName":"Christmas Island","countryCode":"CX","mainCities":["Flying Fish Cove"],"rawOffsetInMinutes":420,"abbreviation":"CXT","rawFormat":"+07:00 Christmas Island Time - Flying Fish Cove"},{"name":"Antarctica/Davis","alternativeName":"Davis Time","group":["Antarctica/Davis"],"continentCode":"AN","continentName":"Antarctica","countryName":"Antarctica","countryCode":"AQ","mainCities":["Davis"],"rawOffsetInMinutes":420,"abbreviation":"DAVT","rawF
4947ormat":"+07:00 Davis Time - Davis"},{"name":"Asia/Hovd","alternativeName":"Hovd Time","group":["Asia/Hovd"],"continentCode":"AS","continentName":"Asia","countryName":"Mongolia","countryCode":"MN","mainCities":["Ulaangom","Khovd","Ölgii","Altai"],"rawOffsetInMinutes":420,"abbreviation":"HOVT","rawFormat":"+07:00 Hovd Time - Ulaangom, Khovd, Ölgii, Altai"},{"name":"Asia/Bangkok","alternativeName":"Indochina Time","group":["Asia/Bangkok","Asia/Phnom_Penh","Asia/Vientiane","Indian/Christmas"],"continentCode":"AS","continentName":"Asia","countryName":"Thailand","countryCode":"TH","mainCities":["Bangkok","Samut Prakan","Mueang Nonthaburi","Chon Buri"],"rawOffsetInMinutes":420,"abbreviation":"ICT","rawFormat":"+07:00 Indochina Time - Bangkok, Samut Prakan, Mueang Nonthaburi, Chon Buri"},{"name":"Asia/Ho_Chi_Minh","alternativeName":"Indochina Time","group":["Asia/Ho_Chi_Minh","Asia/Saigon"],"continentCode":"AS","continentName":"Asia","countryName":"Vietnam","countryCode":"VN","mainCities":["Ho Chi Minh City","Cần Thơ","Da Nang","Biên Hòa"],"rawOffsetInMinutes":420,"abbreviation":"ICT","rawFormat":"+07:00 Indochina Time - Ho Chi Minh City, Cần Thơ, Da Nang, Biên Hòa"},{"name":"Asia/Phnom_Penh","alternativeName":"Indochina Time","group":["Asia/Phnom_Penh"],"continentCode":"AS","continentName":"Asia","countryName":"Cambodia","countryCode":"KH","mainCities":["Phnom Penh","Takeo","Siem Reap","Battambang"],"rawOffsetInMinutes":420,"abbreviation":"ICT","rawFormat":"+07:00 Indochina Time - Phnom Penh, Takeo, Siem Reap, Battambang"},{"name":"Asia/Vientiane","alternativeName":"Indochina Time","group":["Asia/Vientiane"],"continentCode":"AS","continentName":"Asia","countryName":"Laos","countryCode":"LA","mainCities":["Vientiane","Savannakhet","Pakse","Thakhèk"],"rawOffsetInMinutes":420,"abbreviation":"ICT","rawFormat":"+07:00 Indochina Time - Vientiane, Savannakhet, Pakse, Thakhèk"},{"name":"Asia/Novosibirsk","alternativeName":"Novosibirsk Time","group":["Asia/Barnaul","Asia/Krasnoyarsk","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Tomsk"],"continentCode":"EU","continentName":"Europe","countryName":"Russia","countryCode":"RU","mainCities":["Novosibirsk","Krasnoyarsk","Barnaul","Tomsk"],"rawOffsetInMinutes":420,"abbreviation":"NOVT","rawFormat":"+07:00 Novosibirsk Time - Novosibirsk, Krasnoyarsk, Barnaul, Tomsk"},{"name":"Asia/Jakarta","alternativeName":"Western Indonesia Time","group":["Asia/Jakarta","Asia/Pontianak"],"continentCode":"AS","continentName":"Asia","countryName":"Indonesia","countryCode":"ID","mainCities":["Jakarta","Surabaya","Bekasi","Bandung"],"rawOffsetInMinutes":420,"abbreviation":"WIB","rawFormat":"+07:00 Western Indonesia Time - Jakarta, Surabaya, Bekasi, Bandung"},{"name":"Antarctica/Casey","alternativeName":"Australian Western Time","group":["Antarctica/Casey"],"continentCode":"AN","continentName":"Antarctica","countryName":"Antarctica","countryCode":"AQ","mainCities":["Casey"],"rawOffsetInMinutes":480,"abbreviation":"AWST","rawFormat":"+08:00 Australian Western Time - Casey"},{"name":"Australia/Perth","alternativeName":"Australian Western Time","group":["Australia/Perth","Australia/West"],"continentCode":"OC","continentName":"Oceania","countryName":"Australia","countryCode":"AU","mainCities":["Perth","Mandurah","Bunbury","Geraldton"],"rawOffsetInMinutes":480,"abbreviation":"AWST","rawFormat":"+08:00 Australian Western Time - Perth, Mandurah, Bunbury, Geraldton"},{"name":"Asia/Brunei","alternativeName":"Brunei Time","group":["Asia/Brunei"],"continentCode":"AS","continentName":"Asia","countryName":"Brunei","countryCode":"BN","mainCities":["Bandar Seri Begawan","Sengkurong","Mentiri","Kuala Belait"],"rawOffsetInMinutes":480,"abbreviation":"GMT+8","rawFormat":"+08:00 Brunei Time - Bandar Seri Begawan, Sengkurong, Mentiri, Kuala Belait"},{"name":"Asia/Makassar","alternativeName":"Central Indonesia Time","group":["Asia/Makassar","Asia/Ujung_Pandang"],"continentCode":"AS","continentName":"Asia","countryName":"Indonesia","countryCode":"ID","mainCities":["Makassar","Samarinda","Denpasar","Balikpapan"],"rawOffsetInMinutes":480,"abbreviation":"WITA","rawFormat":"+08:00 Central Indonesia Time - Makassar, Samarinda, Denpasar, Balikpapan"},{"name":"Asia/Macau","alternativeName":"China Time","group":["Asia/Macau","Asia/Macao"],"continentCode":"AS","continentName":"Asia","countryName":"Macao","countryCode":"MO","mainCities":["Macau","Taipa","Luhuan","Zhuojiacun"],"rawOffsetInMinutes":480,"abbreviation":"CST","rawF
4947ormat":"+08:00 China Time - Macau, Taipa, Luhuan, Zhuojiacun"},{"name":"Asia/Shanghai","alternativeName":"China Time","group":["Asia/Shanghai","PRC","Asia/Chongqing","Asia/Harbin","Asia/Chungking"],"continentCode":"AS","continentName":"Asia","countryName":"China","countryCode":"CN","mainCities":["Shanghai","Beijing","Shenzhen","Guangzhou"],"rawOffsetInMinutes":480,"abbreviation":"CST","rawFormat":"+08:00 China Time - Shanghai, Beijing, Shenzhen, Guangzhou"},{"name":"Asia/Hong_Kong","alternativeName":"Hong Kong Time","group":["Asia/Hong_Kong","Hongkong"],"continentCode":"AS","continentName":"Asia","countryName":"Hong Kong","countryCode":"HK","mainCities":["Hong Kong","New Territories","Kowloon","Hong Kong Island"],"rawOffsetInMinutes":480,"abbreviation":"HKT","rawFormat":"+08:00 Hong Kong Time - Hong Kong, New Territories, Kowloon, Hong Kong Island"},{"name":"Asia/Irkutsk","alternativeName":"Irkutsk Time","group":["Asia/Irkutsk"],"continentCode":"EU","continentName":"Europe","countryName":"Russia","countryCode":"RU","mainCities":["Irkutsk","Ulan-Ude","Bratsk","Angarsk"],"rawOffsetInMinutes":480,"abbreviation":"IRKT","rawFormat":"+08:00 Irkutsk Time - Irkutsk, Ulan-Ude, Bratsk, Angarsk"},{"name":"Asia/Kuala_Lumpur","alternativeName":"Malaysia Time","group":["Asia/Kuala_Lumpur","Asia/Kuching","Asia/Brunei"],"continentCode":"AS","continentName":"Asia","countryName":"Malaysia","countryCode":"MY","mainCities":["Kuala Lumpur","Klang","Johor Bahru","Kampung Baru Subang"],"rawOffsetInMinutes":480,"abbreviation":"MYT","rawFormat":"+08:00 Malaysia Time - Kuala Lumpur, Klang, Johor Bahru, Kampung Baru Subang"},{"name":"Asia/Manila","alternativeName":"Philippine Time","group":["Asia/Manila"],"continentCode":"AS","continentName":"Asia","countryName":"Philippines","countryCode":"PH","mainCities":["Quezon City","Davao","Caloocan City","Manila"],"rawOffsetInMinutes":480,"abbreviation":"PHT","rawFormat":"+08:00 Philippine Time - Quezon City, Davao, Caloocan City, Manila"},{"name":"Asia/Singapore","alternativeName":"Singapore Time","group":["Asia/Singapore","Singapore","Asia/Kuala_Lumpur"],"continentCode":"AS","continentName":"Asia","countryName":"Singapore","countryCode":"SG","mainCities":["Singapore","Ulu Bedok","Bedok New Town","Tampines Estate"],"rawOffsetInMinutes":480,"abbreviation":"SGT","rawFormat":"+08:00 Singapore Time - Singapore, Ulu Bedok, Bedok New Town, Tampines Estate"},{"name":"Asia/Taipei","alternativeName":"Taiwan Time","group":["Asia/Taipei","ROC"],"continentCode":"AS","continentName":"Asia","countryName":"Taiwan","countryCode":"TW","mainCities":["Taipei","New Taipei City","Taichung","Kaohsiung"],"rawOffsetInMinutes":480,"abbreviation":"GMT+8","rawFormat":"+08:00 Taiwan Time - Taipei, New Taipei City, Taichung, Kaohsiung"},{"name":"Asia/Ulaanbaatar","alternativeName":"Ulaanbaatar Time","group":["Asia/Ulaanbaatar","Asia/Choibalsan","Asia/Ulan_Bator"],"continentCode":"AS","continentName":"Asia","countryName":"Mongolia","countryCode":"MN","mainCities":["Ulan Bator","Erdenet","Darhan","Mörön"],"rawOffsetInMinutes":480,"abbreviation":"ULAT","rawFormat":"+08:00 Ulaanbaatar Time - Ulan Bator, Erdenet, Darhan, Mörön"},{"name":"Australia/Eucla","alternativeName":"Australian Central Western Time","group":["Australia/Eucla"],"continentCode":"OC","continentName":"Oceania","countryName":"Australia","countryCode":"AU","mainCities":["Eucla"],"rawOffsetInMinutes":525,"abbreviation":"ACWST","rawF
4947ormat":"+08:45 Australian Central Western Time - Eucla"},{"name":"Asia/Jayapura","alternativeName":"Eastern Indonesia Time","group":["Asia/Jayapura"],"continentCode":"AS","continentName":"Asia","countryName":"Indonesia","countryCode":"ID","mainCities":["Jayapura","Ambon","Sorong","Ternate"],"rawOffsetInMinutes":540,"abbreviation":"WIT","rawFormat":"+09:00 Eastern Indonesia Time - Jayapura, Ambon, Sorong, Ternate"},{"name":"Asia/Tokyo","alternativeName":"Japan Time","group":["Asia/Tokyo","Japan"],"continentCode":"AS","continentName":"Asia","countryName":"Japan","countryCode":"JP","mainCities":["Tokyo","Yokohama","Osaka","Nagoya"],"rawOffsetInMinutes":540,"abbreviation":"JST","rawFormat":"+09:00 Japan Time - Tokyo, Yokohama, Osaka, Nagoya"},{"name":"Asia/Pyongyang","alternativeName":"Korean Time","group":["Asia/Pyongyang"],"continentCode":"AS","continentName":"Asia","countryName":"North Korea","countryCode":"KP","mainCities":["Pyongyang","Hamhŭng","Namp’o","Sunch’ŏn"],"rawOffsetInMinutes":540,"abbreviation":"KST","rawFormat":"+09:00 Korean Time - Pyongyang, Hamhŭng, Namp’o, Sunch’ŏn"},{"name":"Asia/Seoul","alternativeName":"Korean Time","group":["Asia/Seoul","ROK"],"continentCode":"AS","continentName":"Asia","countryName":"South Korea","countryCode":"KR","mainCities":["Seoul","Busan","Incheon","Daegu"],"rawOffsetInMinutes":540,"abbreviation":"KST","rawFormat":"+09:00 Korean Time - Seoul, Busan, Incheon, Daegu"},{"name":"Pacific/Palau","alternativeName":"Palau Time","group":["Pacific/Palau"],"continentCode":"OC","continentName":"Oceania","countryName":"Palau","countryCode":"PW","mainCities":["Ngerulmud"],"rawOffsetInMinutes":540,"abbreviation":"PWT","rawFormat":"+09:00 Palau Time - Ngerulmud"},{"name":"Asia/Dili","alternativeName":"Timor-Leste Time","group":["Asia/Dili"],"continentCode":"OC","continentName":"Oceania","countryName":"Timor Leste","countryCode":"TL","mainCities":["Dili","Maliana","Suai","Likisá"],"rawOffsetInMinutes":540,"abbreviation":"GMT+9","rawFormat":"+09:00 Timor-Leste Time - Dili, Maliana, Suai, Likisá"},{"name":"Asia/Chita","alternativeName":"Yakutsk Time","group":["Asia/Chita","Asia/Khandyga","Asia/Yakutsk"],"continentCode":"EU","continentName":"Europe","countryName":"Russia","countryCode":"RU","mainCities":["Chita","Yakutsk","Blagoveshchensk","Belogorsk"],"rawOffsetInMinutes":540,"abbreviation":"YAKT","rawFormat":"+09:00 Yakutsk Time - Chita, Yakutsk, Blagoveshchensk, Belogorsk"},{"name":"Australia/Adelaide","alternativeName":"Australian Central Time","group":["Australia/Adelaide","Australia/Broken_Hill","Australia/South","Australia/Yancowinna"],"continentCode":"OC","continentName":"Oceania","countryName":"Australia","countryCode":"AU","mainCities":["Adelaide","Adelaide Hills","Mount Gambier","Morphett Vale"],"rawOffsetInMinutes":570,"abbreviation":"ACST","rawFormat":"+09:30 Australian Central Time - Adelaide, Adelaide Hills, Mount Gambier, Morphett Vale"},{"name":"Australia/Darwin","alternativeName":"Australian Central Time","group":["Australia/Darwin","Australia/North"],"continentCode":"OC","continentName":"Oceania","countryName":"Australia","countryCode":"AU","mainCities":["Darwin","Alice Springs","Palmerston"],"rawOffsetInMinutes":570,"abbreviation":"ACST","rawFormat":"+09:30 Australian Central Time - Darwin, Alice Springs, Palmerston"},{"name":"Australia/Brisbane","alternativeName":"Australian Eastern Time","group":["Australia/Brisbane","Australia/Lindeman","Australia/Queensland"],"continentCode":"OC","continentName":"Oceania","countryName":"Australia","countryCode":"AU","mainCities":["Brisbane","Gold Coast","Sunshine Coast","Logan City"],"rawOffsetInMinutes":600,"abbreviation":"AEST","rawFormat":"+10:00 Australian Eastern Time - Brisbane, Gold Coast, Sunshine Coast, Logan City"},{"name":"Australia/Sydney","alternativeName":"Australian Eastern Time","group":["Antarctica/Macquarie","Australia/Hobart","Australia/Melbourne","Australia/Sydney","Australia/Tasmania","Australia/Currie","Australia/Victoria","Australia/ACT","Australia/NSW","Australia/Canberra"],"continentCode":"OC","continentName":"Oceania","countryName":"Australia","countryCode":"AU","mainCities":["Sydney","Melbourne","Newcastle","Canberra"],"rawOffsetInMinutes":600,"abbreviation":"AEST","rawF
4947ormat":"+10:00 Australian Eastern Time - Sydney, Melbourne, Newcastle, Canberra"},{"name":"Pacific/Guam","alternativeName":"Chamorro Time","group":["Pacific/Guam","Pacific/Saipan"],"continentCode":"OC","continentName":"Oceania","countryName":"Guam","countryCode":"GU","mainCities":["Dededo Village","Yigo Village","Tamuning-Tumon-Harmon Village","Tamuning"],"rawOffsetInMinutes":600,"abbreviation":"ChST","rawFormat":"+10:00 Chamorro Time - Dededo Village, Yigo Village, Tamuning-Tumon-Harmon Village, Tamuning"},{"name":"Pacific/Saipan","alternativeName":"Chamorro Time","group":["Pacific/Saipan"],"continentCode":"OC","continentName":"Oceania","countryName":"Northern Mariana Islands","countryCode":"MP","mainCities":["Saipan"],"rawOffsetInMinutes":600,"abbreviation":"ChST","rawFormat":"+10:00 Chamorro Time - Saipan"},{"name":"Pacific/Chuuk","alternativeName":"Chuuk Time","group":["Pacific/Chuuk"],"continentCode":"OC","continentName":"Oceania","countryName":"Micronesia","countryCode":"FM","mainCities":["Chuuk"],"rawOffsetInMinutes":600,"abbreviation":"CHUT","rawFormat":"+10:00 Chuuk Time - Chuuk"},{"name":"Antarctica/DumontDUrville","alternativeName":"Dumont d’Urville Time","group":["Antarctica/DumontDUrville"],"continentCode":"AN","continentName":"Antarctica","countryName":"Antarctica","countryCode":"AQ","mainCities":["DumontDUrville"],"rawOffsetInMinutes":600,"abbreviation":"GMT+10","rawFormat":"+10:00 Dumont d’Urville Time - DumontDUrville"},{"name":"Pacific/Port_Moresby","alternativeName":"Papua New Guinea Time","group":["Pacific/Port_Moresby","Antarctica/DumontDUrville","Pacific/Chuuk","Pacific/Yap","Pacific/Truk"],"continentCode":"OC","continentName":"Oceania","countryName":"Papua New Guinea","countryCode":"PG","mainCities":["Port Moresby","Lae","Mount Hagen","Popondetta"],"rawOffsetInMinutes":600,"abbreviation":"PGT","rawFormat":"+10:00 Papua New Guinea Time - Port Moresby, Lae, Mount Hagen, Popondetta"},{"name":"Asia/Vladivostok","alternativeName":"Vladivostok Time","group":["Asia/Ust-Nera","Asia/Vladivostok"],"continentCode":"EU","continentName":"Europe","countryName":"Russia","countryCode":"RU","mainCities":["Khabarovsk","Vladivostok","Khabarovsk Vtoroy","Komsomolsk-on-Amur"],"rawOffsetInMinutes":600,"abbreviation":"VLAT","rawFormat":"+10:00 Vladivostok Time - Khabarovsk, Vladivostok, Khabarovsk Vtoroy, Komsomolsk-on-Amur"},{"name":"Australia/Lord_Howe","alternativeName":"Lord Howe Time","group":["Australia/Lord_Howe","Australia/LHI"],"continentCode":"OC","continentName":"Oceania","countryName":"Australia","countryCode":"AU","mainCities":["Lord Howe"],"rawOffsetInMinutes":630,"abbreviation":"LHST","rawFormat":"+10:30 Lord Howe Time - Lord Howe"},{"name":"Pacific/Bougainville","alternativeName":"Bougainville Time","group":["Pacific/Bougainville"],"continentCode":"OC","continentName":"Oceania","countryName":"Papua New Guinea","countryCode":"PG","mainCities":["Arawa"],"rawOffsetInMinutes":660,"abbreviation":"BST","rawFormat":"+11:00 Bougainville Time - Arawa"},{"name":"Pacific/Kosrae","alternativeName":"Kosrae Time","group":["Pacific/Kosrae","Pacific/Pohnpei"],"continentCode":"OC","continentName":"Oceania","countryName":"Micronesia","countryCode":"FM","mainCities":["Kosrae","Palikir - National Government Center"],"rawOffsetInMinutes":660,"abbreviation":"KOST","rawFormat":"+11:00 Kosrae Time - Kosrae, Palikir - National Government Center"},{"name":"Pacific/Noumea","alternativeName":"New Caledonia Time","group":["Pacific/Noumea"],"continentCode":"OC","continentName":"Oceania","countryName":"New Caledonia","countryCode":"NC","mainCities":["Nouméa","Mont-Dore","Dumbéa"],"rawOffsetInMinutes":660,"abbreviation":"NCT","rawFormat":"+11:00 New Caledonia Time - Nouméa, Mont-Dore, Dumbéa"},{"name":"Pacific/Norfolk","alternativeName":"Norfolk Island Time","group":["Pacific/Norfolk"],"continentCode":"OC","continentName":"Oceania","countryName":"Norfolk Island","countryCode":"NF","mainCities":["Kingston"],"rawOffsetInMinutes":660,"abbreviation":"NFT","rawFormat":"+11:00 Norfolk Island Time - Kingston"},{"name":"Asia/Sakhalin","alternativeName":"Sakhalin Time","group":["Asia/Magadan","Asia/Sakhalin","Asia/Srednekolymsk"],"continentCode":"EU","continentName":"Europe","countryName":"Russia","countryCode":"RU","mainCities":["Yuzhno-Sakhalinsk","Magadan","Korsakov","Kholmsk"],"rawOffsetInMinutes":660,"abbreviation":"SAKT","rawF
4947ormat":"+11:00 Sakhalin Time - Yuzhno-Sakhalinsk, Magadan, Korsakov, Kholmsk"},{"name":"Pacific/Guadalcanal","alternativeName":"Solomon Islands Time","group":["Pacific/Guadalcanal","Pacific/Pohnpei","Pacific/Ponape"],"continentCode":"OC","continentName":"Oceania","countryName":"Solomon Islands","countryCode":"SB","mainCities":["Honiara"],"rawOffsetInMinutes":660,"abbreviation":"SBT","rawFormat":"+11:00 Solomon Islands Time - Honiara"},{"name":"Pacific/Efate","alternativeName":"Vanuatu Time","group":["Pacific/Efate"],"continentCode":"OC","continentName":"Oceania","countryName":"Vanuatu","countryCode":"VU","mainCities":["Port-Vila"],"rawOffsetInMinutes":660,"abbreviation":"VUT","rawFormat":"+11:00 Vanuatu Time - Port-Vila"},{"name":"Pacific/Fiji","alternativeName":"Fiji Time","group":["Pacific/Fiji"],"continentCode":"OC","continentName":"Oceania","countryName":"Fiji","countryCode":"FJ","mainCities":["Nasinu","Suva","Lautoka","Nadi"],"rawOffsetInMinutes":720,"abbreviation":"FJT","rawFormat":"+12:00 Fiji Time - Nasinu, Suva, Lautoka, Nadi"},{"name":"Pacific/Tarawa","alternativeName":"Gilbert Islands Time","group":["Pacific/Tarawa","Pacific/Funafuti","Pacific/Majuro","Pacific/Wake","Pacific/Wallis"],"continentCode":"OC","continentName":"Oceania","countryName":"Kiribati","countryCode":"KI","mainCities":["Tarawa"],"rawOffsetInMinutes":720,"abbreviation":"GILT","rawFormat":"+12:00 Gilbert Islands Time - Tarawa"},{"name":"Asia/Kamchatka","alternativeName":"Kamchatka Time","group":["Asia/Anadyr","Asia/Kamchatka"],"continentCode":"EU","continentName":"Europe","countryName":"Russia","countryCode":"RU","mainCities":["Petropavlovsk-Kamchatsky","Yelizovo","Vilyuchinsk","Anadyr"],"rawOffsetInMinutes":720,"abbreviation":"PETT","rawFormat":"+12:00 Kamchatka Time - Petropavlovsk-Kamchatsky, Yelizovo, Vilyuchinsk, Anadyr"},{"name":"Pacific/Majuro","alternativeName":"Marshall Islands Time","group":["Pacific/Kwajalein","Pacific/Majuro","Kwajalein"],"continentCode":"OC","continentName":"Oceania","countryName":"Marshall Islands","countryCode":"MH","mainCities":["Majuro","Kwajalein"],"rawOffsetInMinutes":720,"abbreviation":"MHT","rawFormat":"+12:00 Marshall Islands Time - Majuro, Kwajalein"},{"name":"Pacific/Nauru","alternativeName":"Nauru Time","group":["Pacific/Nauru"],"continentCode":"OC","continentName":"Oceania","countryName":"Nauru","countryCode":"NR","mainCities":["Yaren"],"rawOffsetInMinutes":720,"abbreviation":"NRT","rawFormat":"+12:00 Nauru Time - Yaren"},{"name":"Pacific/Auckland","alternativeName":"New Zealand Time","group":["Pacific/Auckland","NZ","Antarctica/McMurdo","Antarctica/South_Pole"],"continentCode":"OC","continentName":"Oceania","countryName":"New Zealand","countryCode":"NZ","mainCities":["Auckland","Christchurch","Wellington","Manukau City"],"rawOffsetInMinutes":720,"abbreviation":"NZST","rawFormat":"+12:00 New Zealand Time - Auckland, Christchurch, Wellington, Manukau City"},{"name":"Antarctica/McMurdo","alternativeName":"New Zealand Time","group":["Antarctica/McMurdo"],"continentCode":"AN","continentName":"Antarctica","countryName":"Antarctica","countryCode":"AQ","mainCities":["McMurdo"],"rawOffsetInMinutes":720,"abbreviation":"NZST","rawFormat":"+12:00 New Zealand Time - McMurdo"},{"name":"Pacific/Funafuti","alternativeName":"Tuvalu Time","group":["Pacific/Funafuti"],"continentCode":"OC","continentName":"Oceania","countryName":"Tuvalu","countryCode":"TV","mainCities":["Funafuti"],"rawOffsetInMinutes":720,"abbreviation":"TVT","rawFormat":"+12:00 Tuvalu Time - Funafuti"},{"name":"Pacific/Wake","alternativeName":"Wake Island Time","group":["Pacific/Wake"],"continentCode":"OC","continentName":"Oceania","countryName":"United States Minor Outlying Islands","countryCode":"UM","mainCities":["Wake"],"rawOffsetInMinutes":720,"abbreviation":"WAKT","rawFormat":"+12:00 Wake Island Time - Wake"},{"name":"Pacific/Wallis","alternativeName":"Wallis & Futuna Time","group":["Pacific/Wallis"],"continentCode":"OC","continentName":"Oceania","countryName":"Wallis and Futuna","countryCode":"WF","mainCities":["Mata-Utu"],"rawOffsetInMinutes":720,"abbreviation":"WFT","rawF
4947ormat":"+12:00 Wallis & Futuna Time - Mata-Utu"},{"name":"Pacific/Chatham","alternativeName":"Chatham Time","group":["Pacific/Chatham","NZ-CHAT"],"continentCode":"OC","continentName":"Oceania","countryName":"New Zealand","countryCode":"NZ","mainCities":["Chatham"],"rawOffsetInMinutes":765,"abbreviation":"CHAST","rawFormat":"+12:45 Chatham Time - Chatham"},{"name":"Pacific/Kanton","alternativeName":"Phoenix Islands Time","group":["Pacific/Kanton","Pacific/Enderbury"],"continentCode":"OC","continentName":"Oceania","countryName":"Kiribati","countryCode":"KI","mainCities":["Kanton"],"rawOffsetInMinutes":780,"abbreviation":"PHOT","rawFormat":"+13:00 Phoenix Islands Time - Kanton"},{"name":"Pacific/Apia","alternativeName":"Samoa Time","group":["Pacific/Apia"],"continentCode":"OC","continentName":"Oceania","countryName":"Samoa","countryCode":"WS","mainCities":["Apia"],"rawOffsetInMinutes":780,"abbreviation":"SST","rawFormat":"+13:00 Samoa Time - Apia"},{"name":"Pacific/Fakaofo","alternativeName":"Tokelau Time","group":["Pacific/Fakaofo"],"continentCode":"OC","continentName":"Oceania","countryName":"Tokelau","countryCode":"TK","mainCities":["Fakaofo"],"rawOffsetInMinutes":780,"abbreviation":"TKT","rawFormat":"+13:00 Tokelau Time - Fakaofo"},{"name":"Pacific/Tongatapu","alternativeName":"Tonga Time","group":["Pacific/Tongatapu"],"continentCode":"OC","continentName":"Oceania","countryName":"Tonga","countryCode":"TO","mainCities":["Nuku‘alofa"],"rawOffsetInMinutes":780,"abbreviation":"TOT","rawFormat":"+13:00 Tonga Time - Nuku‘alofa"},{"name":"Pacific/Kiritimati","alternativeName":"Line Islands Time","group":["Pacific/Kiritimati"],"continentCode":"OC","continentName":"Oceania","countryName":"Kiribati","countryCode":"KI","mainCities":["Kiritimati"],"rawOffsetInMinutes":840,"abbreviation":"LINT","rawFormat":"+14:00 Line Islands Time - Kiritimati"}]');function xP({alternativeName:e,mainCities:t,rawOffsetInMinutes:n,currentTimeOff
4947setInMinutes:a},{useCurrentOffset:i=!1}={}){const r=NP(i?a:n);return"".concat(r.padStart(6,"+")," ").concat(e," - ").concat(t.join(", "))}function NP(e){const t=Math.abs(e),[n,a]=[Math.floor(t/60),t%60].map(e=>e.toString().padStart(2,"0")),i="".concat(n,":").concat(a);return"".concat(e>=0?"+":"-").concat(i)}const PP=/^[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?$/,MP={year:0,month:1,day:2,hour:3,minute:4,second:5};function OP(e){if(!(t=e)||!t.match(PP))return!1;var t;const n=new Date(Date.now());let a;try{i=e,a=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:i,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}catch(p){return!1}var i;const[r,o,s,l,u,c]=a.formatToParts?function(e,t){const n=e.formatToParts(t),a=[];for(let i=0;i<n.length;i++){const{type:e,value:t}=n[i],r=MP[e];void 0!==r&&(a[r]=parseInt(t,10))}return a}(a,n):function(e,t){const n=e.format(t).replace(/\u200E/g,""),a=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n),[,i,r,o,s,l,u]=a;return[o,i,r,s,l,u]}(a,n);let d=+n;const h=d%1e3;return d-=h>=0?h:1e3+h,(function(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(t.getUTCFullYear()-1900)),+t}({year:r,month:o,day:s,hour:l,minute:u,second:c,millisecond:0})-d)/6e4}function RP(e,t){return"string"==typeof e&&"string"==typeof t?e.localeCompare(t):0}const DP={name:"Etc/UTC",alternativeName:"Coordinated Universal Time (UTC)",abbreviation:"UTC",group:["Etc/UTC","Etc/UCT","UCT","UTC","Universal","Zulu"],countryName:"",continentCode:"",continentName:"",mainCities:[""],rawOffsetInMinutes:0,rawFormat:"+00:00 Coordinated Universal Time (UTC)",currentTimeOff
4947setInMinutes:0,currentTimeFormat:"+00:00 Coordinated Universal Time (UTC)"},LP=wu("general",{state:()=>({dateToday:"",groupTypes:[{name:"Quick Group Games",key:"quick-group-games"},{name:"Connect 5",key:"connect-five"},{name:"Tic Tac Toe",key:"tic-tac-toe"},{name:"Axe Cricket",key:"axe-cricket"}],drawer:!1,moreOptions:!1,dialogAddPlayer:!1,players:[],snackbar:{show:!1,size:20,text:"Saving...",color:"transparent",timeout:1e4},payPerPlayer:6.18,confirmationPopup:{},notifications:{},comparedPlayers:{player1:{},player2:{}},allPlayers:{},virtualLeagues:[],disciplines:{"watl_standard-league":"Hatchet","watl_big-axe-league":"Big Axe","watl_duals-league":"Hatchet Duals","wktl_standard-league":"Knife","wktl_duals-league":"Knife Duals","axeThrowing_standard-league":"Hatchet","axeThrowing_big-axe-league":"Big Axe","axeThrowing_duals-league":"Hatchet Duals","knifeThrowing_standard-league":"Knife","knifeThrowing_duals-league":"Knife Duals"},posthogFeatures:{},champsForFlex:["AI73","VB90","KB55","PF03","MO25","CW60","PJ19","OZ13","YG90","MH02","CX07","NA20","CU71","SA31","JN96","VX14","GR06","II04","ZA89","OR99","QX92","ES00","SA31","KZ73","FV53","CD75","EC87"],botPlayer:{first:"Axe",last:"Bot",alias:"Axe Bot",email:"[email protected]",pic:"https://firebasestorage.googleapis.com/v0/b/watl-staging.appspot.com/o/global%2Fwatl%2Fplayers%2Faxe_bot%2F1756814140743_photo_5312388428324796402_y.jpg?alt=media&token=17cd2040-afdd-4358-a5c5-68f58385fd35",division:"recreational",id:"axe_bot"}}),getters:{getUnicTimeZoneAbbreviations:e=>[...new Set(e.getAllTimeZones.map(e=>e.abbreviation))],getAllTimeZones:()=>function(e){const t=!!e&&e.includeUtc;return IP.reduce(function(e,t){const n=OP(t.name);if(!1===n)return e;
4947const a={...t,currentTimeOffsetInMinutes:n};return e.push({...a,currentTimeFormat:xP(a,{useCurrentOffset:!0})}),e},t?[DP]:[]).sort((e,t)=>{return n=t,e.currentTimeOffsetInMinutes-n.currentTimeOffsetInMinutes||RP(e.alternativeName,t.alternativeName)||RP(e.mainCities[0],t.mainCities[0]);var n})}({includeUtc:!0}),getVirtualLeaguesGrouped:e=>{let t={"hatchet-league":[],"duals-league":[],"big-axe-league":[],"knife-league":[],"knife-duals-league":[],archived:[]};e.virtualLeagues.forEach(e=>{e.hide||(e.archive?t.archived.push(e):"standard-league"===e.leagueType&&["watl","axeThrowing"].includes(e.rules)?t["hatchet-league"].push(e):"standard-league"===e.leagueType&&["wktl","knifeThrowing"].includes(e.rules)?t["knife-league"].push(e):"big-axe-league"===e.leagueType?t["big-axe-league"].push(e):"duals-league"===e.leagueType&&["wktl","knifeThrowing"].includes(e.rules)?t["knife-duals-league"].push(e):"duals-league"===e.leagueType&&["watl","axeThrowing"].includes(e.rules)&&t["duals-league"].push(e))});for(let n in t)t[n]=t[n].reverse();return t}},actions:{getTimezoneAbbreviation(e){var t;return(null==(t=this.getAllTimeZones.find(t=>t.name===e||t.group.includes(e)))?void 0:t.abbreviation)||e},async getVirtualLeagues(){Ag(Hg(SP("/venues/watl/event-list/league"),Fg("virtual"),Ug(!0)),e=>{this.virtualLeagues=Object.values(e.val()||{})})},logError(e){},showSnackBar(e){this.snackBar=e},async setPlayers(e){if(!e.venue)return;const t=Hg(TP("/watl/players"),Fg("venue"),Ug(e.venue));return await kg(t).then(e=>{if(e.exists()){let t=e.val(),n=Object.keys(t).map(e=>{let n=t[e];return n[".key"]=e,n});this.players=n}else this.players=[]})},setComparedPlayer({player:e,value:t}){this.comparedPlayers[e]=t},setConfirmationPopup(e){this.confirmationPopup=e},$reset(){this.$patch({dateToday:"",drawer:!1,moreOptions:!1,dialogAddPlayer:!1,players:[],settings:[],snackbar:{show:!1,size:20,text:"Saving...",color:"transparent",timeout:1e4},rules:"watl",payPerPlayer:6.18,confirmationPopup:{}})}}});function BP(e,t){return function(){return e.apply(t,arguments)}}const FP={},{toString:VP}=Object.prototype,{getPrototypeOf:XP}=Object,jP=(e=>t=>{const n=VP.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),UP=e=>(e=e.toLowerCase(),t=>jP(t)===e),HP=e=>t=>typeof t===e,{isArray:zP}=Array,KP=HP("undefined");const WP=UP("ArrayBuffer");const GP=HP("string"),qP=HP("function"),$P=HP("number"),YP=e=>null!==e&&"object"==typeof e,JP=e=>{if("object"!==jP(e))return!1;const t=XP(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},QP=UP("Date"),ZP=UP("File"),eM=UP("Blob"),tM=UP("FileList"),nM=UP("URLSearchParams"),[aM,iM,rM,oM]=["ReadableStream","Request","Response","Headers"].map(UP);function sM(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let a,i;if("object"!=typeof e&&(e=[e]),zP(e))for(a=0,i=e.length;a<i;a++)t.call(null,e[a],a,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let o;for(a=0;a<r;a++)o=i[a],t.call(null,e[o],o,e)}}function lM(e,t){t=t.toLowerCase();const n=Object.keys(e);let a,i=n.length;for(;i-- >0;)if(a=n[i],t===a.toLowerCase())return a;return null}const uM="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,cM=e=>!KP(e)&&e!==uM;const dM=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&XP(Uint8Array)),hM=UP("HTMLFormElement"),pM=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),fM=UP("RegExp"),mM=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),a={};sM(n,(n,i)=>{let r;!1!==(r=t(n,i,e))&&(a[i]=r||n)}),Object.defineProperties(e,a)},vM="abcdefghijklmnopqrstuvwxyz",gM="0123456789",yM={DIGIT:gM,ALPHA:vM,ALPHA_DIGIT:vM+vM.toUpperCase()+gM};const bM=UP("AsyncFunction"),_M=(wM="function"==typeof setImmediate,kM=qP(uM.postMessage),wM?setImmediate:kM?(CM="axios@".concat(Math.random()),SM=[],uM.addEventListener("message",({source:e,data:t})=>{e===uM&&t===CM&&SM.length&&SM.shift()()},!1),e=>{SM.push(e),uM.postMessage(CM,"*")}):e=>setTimeout(e));var wM,kM,CM,SM;const TM="undefined"!=typeof queueMicrotask?queueMicrotask.bind(uM):"undefined"!=typeof process&&process.nextTick||_M,AM={isArray:zP,isArrayBuffer:WP,isBuffer:function(e){return null!==e&&!KP(e)&&null!==e.constructor&&!KP(e.constructor)&&qP(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||qP(e.append)&&("formdata"===(t=jP(e))||"object"===t&&qP(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&WP(e.buffer),t},isString:GP,isNumber:$P,isBoolean:e=>!0===e||!1===e,isObject:YP,isPlainObject:JP,isReadableStream:aM,isRequest:iM,isResponse:rM,isHeaders:oM,isUndefined:KP,isDate:QP,isFile:ZP,isBlob:eM,isRegExp:fM,isFunction:qP,isStream:e=>YP(e)&&qP(e.pipe),isURLSearchParams:nM,isTypedArray:dM,isFileList:tM,forEach:sM,merge:function e(){const{caseless:t}=cM(this)&&this||{},n={},a=(a,i)=>{const r=t&&lM(n,i)||i;JP(n[r])&&JP(a)?n[r]=e(n[r],a):JP(a)?n[r]=e({},a):zP(a)?n[r]=a.slice():n[r]=a};for(let i=0,r=arguments.length;i<r;i++)arguments[i]&&sM(arguments[i],a);return n},extend:(e,t,n,{allOwnKeys:a}={})=>(sM(t,(t,a)=>{n&&qP(t)?e[a]=BP(t,n):e[a]=t},{allOwnKeys:a}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,a)=>{let i,r,o;const s={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),r=i.length;r-- >0;)o=i[r],a&&!a(o,e,t)||s[o]||(t[o]=e[o],s[o]=!0);e=!1!==n&&XP(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:jP,kindOfTest:UP,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const a=e.indexOf(t,n);return-1!==a&&a===n},toArray:e=>{if(!e)return null;if(zP(e))return e;let t=e.length;if(!$P(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n}
4947,forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=n.next())&&!a.done;){const n=a.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const a=[];for(;null!==(n=e.exec(t));)a.push(n);return a},isHTMLForm:hM,hasOwnProperty:pM,hasOwnProp:pM,reduceDescriptors:mM,freezeMethods:e=>{mM(e,(t,n)=>{if(qP(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const a=e[n];qP(a)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},a=e=>{e.forEach(e=>{n[e]=!0})};return zP(e)?a(e):a(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:lM,global:uM,isContextDefined:cM,ALPHABET:yM,generateString:(e=16,t=yM.ALPHA_DIGIT)=>{let n="";const{length:a}=t,i=new Uint32Array(e);FP.randomFillSync(i);for(let r=0;r<e;r++)n+=t[i[r]%a];return n},isSpecCompliantForm:function(e){return!!(e&&qP(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,a)=>{if(YP(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[a]=e;const i=zP(e)?[]:{};return sM(e,(e,t)=>{const r=n(e,a+1);!KP(r)&&(i[t]=r)}),t[a]=void 0,i}}return e};return n(e,0)},isAsyncFn:bM,isThenable:e=>e&&(YP(e)||qP(e))&&qP(e.then)&&qP(e.catch),setImmediate:_M,asap:TM};function EM(e,t,n,a,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),a&&(this.request=a),i&&(this.response=i,this.status=i.status?i.status:null)}AM.inherits(EM,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:AM.toJSONObject(this.config),code:this.code,status:this.status}}});const IM=EM.prototype,xM={};["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(e=>{xM[e]={value:e}}),Object.defineProperties(EM,xM),Object.defineProperty(IM,"isAxiosError",{value:!0}),EM.from=(e,t,n,a,i,r)=>{const o=Object.create(IM);return AM.toFlatObject(e,o,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),EM.call(o,e.message,t,n,a,i),o.cause=e,o.name=e.name,r&&Object.assign(o,r),o};function NM(e){return AM.isPlainObject(e)||AM.isArray(e)}function PM(e){return AM.endsWith(e,"[]")?e.slice(0,-2):e}function MM(e,t,n){return e?e.concat(t).map(function(e,t){return e=PM(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const OM=AM.toFlatObject(AM,{},null,function(e){return/^is[A-Z]/.test(e)});function RM(e,t,n){if(!AM.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const a=(n=AM.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!AM.isUndefined(t[e])})).metaTokens,i=n.visitor||u,r=n.dots,o=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&AM.isSpecCompliantForm(t);if(!AM.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(AM.isDate(e))return e.toISOString();if(!s&&AM.isBlob(e))throw new EM("Blob is not supported. Use a Buffer instead.");return AM.isArrayBuffer(e)||AM.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,i){let s=e;if(e&&!i&&"object"==typeof e)if(AM.endsWith(n,"{}"))n=a?n:n.slice(0,-2),e=JSON.stringify(e);else if(AM.isArray(e)&&function(e){return AM.isArray(e)&&!e.some(NM)}(e)||(AM.isFileList(e)||AM.endsWith(n,"[]"))&&(s=AM.toArray(e)))return n=PM(n),s.forEac
vendor: 8,277 bytes, line 4947
4947h(function(e,a){!AM.isUndefined(e)&&null!==e&&t.append(!0===o?MM([n],a,r):null===o?n:n+"[]",l(e))}),!1;return!!NM(e)||(t.append(MM(i,n,r),l(e)),!1)}const c=[],d=Object.assign(OM,{defaultVisitor:u,convertValue:l,isVisitable:NM});if(!AM.isObject(e))throw new TypeError("data must be an object");return function e(n,a){if(!AM.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+a.join("."));c.push(n),AM.forEach(n,function(n,r){!0===(!(AM.isUndefined(n)||null===n)&&i.call(t,n,AM.isString(r)?r.trim():r,a,d))&&e(n,a?a.concat(r):[r])}),c.pop()}}(e),t}function DM(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function LM(e,t){this._pairs=[],e&&RM(e,this,t)}const BM=LM.prototype;function FM(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function VM(e,t,n){if(!t)return e;const a=n&&n.encode||FM;AM.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let r;if(r=i?i(t,n):AM.isURLSearchParams(t)?t.toString():new LM(t,n).toString(a),r){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}BM.append=function(e,t){this._pairs.push([e,t])},BM.toString=function(e){const t=e?function(t){return e.call(this,t,DM)}:DM;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class XM{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){AM.forEach(this.handlers,function(t){null!==t&&e(t)})}}const jM={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},UM={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:LM,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},HM="undefined"!=typeof window&&"undefined"!=typeof document,zM="object"==typeof navigator&&navigator||void 0,KM=HM&&(!zM||["ReactNative","NativeScript","NS"].indexOf(zM.product)<0),WM="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,GM=HM&&window.location.href||"http://localhost",qM={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:HM,hasStandardBrowserEnv:KM,hasStandardBrowserWebWorkerEnv:WM,navigator:zM,origin:GM},Symbol.toStringTag,{value:"Module"})),...UM};function $M(e){function t(e,n,a,i){let r=e[i++];if("__proto__"===r)return!0;const o=Number.isFinite(+r),s=i>=e.length;if(r=!r&&AM.isArray(a)?a.length:r,s)return AM.hasOwnProp(a,r)?a[r]=[a[r],n]:a[r]=n,!o;a[r]&&AM.isObject(a[r])||(a[r]=[]);return t(e,n,a[r],i)&&AM.isArray(a[r])&&(a[r]=function(e){const t={},n=Object.keys(e);let a;const i=n.length;let r;for(a=0;a<i;a++)r=n[a],t[r]=e[r];return t}(a[r])),!o}if(AM.isFormData(e)&&AM.isFunction(e.entries)){const n={};return AM.forEachEntry(e,(e,a)=>{t(function(e){return AM.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),a,n,0)}),n}return null}const YM={transitional:jM,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",a=n.indexOf("application/json")>-1,i=AM.isObject(e);i&&AM.isHTMLForm(e)&&(e=new FormData(e));if(AM.isFormData(e))return a?JSON.stringify($M(e)):e;if(AM.isArrayBuffer(e)||AM.isBuffer(e)||AM.isStream(e)||AM.isFile(e)||AM.isBlob(e)||AM.isReadableStream(e))return e;if(AM.isArrayBufferView(e))return e.buffer;if(AM.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let r;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return RM(e,new qM.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,a){return qM.isNode&&AM.isBuffer(e)?(this.append(t,e.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((r=AM.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return RM(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||a?(t.setContentType("application/json",!1),function(e,t,n){if(AM.isString(e))try{return(t||JSON.parse)(e),AM.trim(e)}catch(w7){if("SyntaxError"!==w7.name)throw w7}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||YM.transitional,n=t&&t.forcedJSONParsing,a="json"===this.responseType;if(AM.isResponse(e)||AM.isReadableStream(e))return e;if(e&&AM.isString(e)&&(n&&!this.responseType||a)){const n=!(t&&t.silentJSONParsing)&&a;try{return JSON.parse(e)}catch(w7){if(n){if("SyntaxError"===w7.name)throw EM.from(w7,EM.ERR_BAD_RESPONSE,this,null,this.response);throw w7}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:qM.classes.FormData,Blob:qM.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};AM.forEach(["delete","get","head","post","put","patch"],e=>{YM.headers[e]={}});const JM=AM.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"]),QM=Symbol("internals");function ZM(e){return e&&String(e).trim().toLowerCase()}function eO(e){return!1===e||null==e?e:AM.isArray(e)?e.map(eO):String(e)}function tO(e,t,n,a,i){return AM.isFunction(a)?a.call(this,t,n):(i&&(t=n),AM.isString(t)?AM.isString(a)?-1!==t.indexOf(a):AM.isRegExp(a)?a.test(t):void 0:void 0)}let nO=class{constructor(e){e&&this.set(e)}set(e,t,n){const a=this;function i(e,t,n){const i=ZM(t);if(!i)throw new Error("header name must be a non-empty string");const r=AM.findKey(a,i);(!r||void 0===a[r]||!0===n||void 0===n&&!1!==a[r])&&(a[r||t]=eO(e))}const r=(e,t)=>AM.forEach(e,(e,n)=>i(e,n,t));if(AM.isPlainObject(e)||e instanceof this.constructor)r(e,t);else if(AM.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))r((e=>{const t={};let n,a,i;return e&&e.split("\n").forEach(function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),a=e.substring(i+1).trim(),!n||t[n]&&JM[n]||("set-cookie"===n?t[n]?t[n].push(a):t[n]=[a]:t[n]=t[n]?t[n]+", "+a:a)}),t})(e),t);else if(AM.isHeaders(e))for(const[o,s]of e.entries())i(s,o,n);else null!=e&&i(t,e,n);return this}get(e,t){if(e=ZM(e)){const n=AM.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=n.exec(e);)t[a[1]]=a[2];return t}(e);if(AM.isFunction(t))return t.call(this,e,n);if(AM.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ZM(e)){const n=AM.findKey(this,e);return!(!n||void 0===this[n]||t&&!tO(0,this[n],n,t))}return!1}delete(e,t){const n=this;let a=!1;function i(e){if(e=ZM(e)){const i=AM.findKey(n,e);!i||t&&!tO(0,n[i],i,t)||(delete n[i],a=!0)}}return AM.isArray(e)?e.forEach(i):i(e),a}clear(e){const t=Object.keys(this);let n=t.length,a=!1;for(;n--;){const i=t[n];e&&!tO(0,this[i],i,e,!0)||(delete this[i],a=!0)}return a}normalize(e){const t=this,n={};return AM.forEach(this,(a,i)=>{const r=AM.findKey(n,i);if(r)return t[r]=eO(a),void delete t[i];const o=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(i):String(i).trim();o!==i&&delete t[i],t[o]=eO(a),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return AM.forEach(this,(n,a)=>{null!=n&&!1!==n&&(t[a]=e&&AM.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);
4947return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[QM]=this[QM]={accessors:{}}).accessors,n=this.prototype;function a(e){const a=ZM(e);t[a]||(!function(e,t){const n=AM.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+n,{value:function(e,n,i){return this[a].call(this,t,e,n,i)},configurable:!0})})}(n,e),t[a]=!0)}return AM.isArray(e)?e.forEach(a):a(e),this}};function aO(e,t){const n=this||YM,a=t||n,i=nO.from(a.headers);let r=a.data;return AM.forEach(e,function(e){r=e.call(n,r,i.normalize(),t?t.status:void 0)}),i.normalize(),r}function iO(e){return!(!e||!e.__CANCEL__)}function rO(e,t,n){EM.call(this,null==e?"canceled":e,EM.ERR_CANCELED,t,n),this.name="CanceledError"}function oO(e,t,n){const a=n.config.validateStatus;n.status&&a&&!a(n.status)?t(new EM("Request failed with status code "+n.status,[EM.ERR_BAD_REQUEST,EM.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}nO.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),AM.reduceDescriptors(nO.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),AM.freezeMethods(nO),AM.inherits(rO,EM,{__CANCEL__:!0});const sO=(e,t,n=3)=>{let a=0;const i=function(e,t){e=e||10;const n=new Array(e),a=new Array(e);let i,r=0,o=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),u=a[o];i||(i=l),n[r]=s,a[r]=l;let c=o,d=0;for(;c!==r;)d+=n[c++],c%=e;if(r=(r+1)%e,r===o&&(o=(o+1)%e),l-i<t)return;const h=u&&l-u;return h?Math.round(1e3*d/h):void 0}}(50,250);return function(e,t){let n,a,i=0,r=1e3/t;const o=(t,r=Date.now())=>{i=r,n=null,a&&(clearTimeout(a),a=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-i;s>=r?o(e,t):(n=e,a||(a=setTimeout(()=>{a=null,o(n)},r-s)))},()=>n&&o(n)]}(n=>{const r=n.loaded,o=n.lengthComputable?n.total:void 0,s=r-a,l=i(s);a=r;e({loaded:r,total:o,progress:o?r/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&r<=o?(o-r)/l:void 0,event:n,lengthComputable:null!=o,[t?"download":"upload"]:!0})},n)},lO=(e,t)=>{const n=null!=e;return[a=>t[0]({lengthComputable:n,total:e,loaded:a}),t[1]]},uO=e=>(...t)=>AM.asap(()=>e(...t)),cO=qM.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,qM.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(qM.origin),qM.navigator&&/(msie|trident)/i.test(qM.navigator.userAgent)):()=>!0,dO=qM.hasStandardBrowserEnv?{write(e,t,n,a,i,r){const o=[e+"="+encodeURIComponent(t)];AM.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),AM.isString(a)&&o.push("path="+a),AM.isString(i)&&o.push("domain="+i),!0===r&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function hO(e,t,n){let a=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&a||0==n?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const pO=e=>e instanceof nO?{...e}:e;function fO(e,t){t=t||{};const n={};function a(e,t,n,a){return AM.isPlainObject(e)&&AM.isPlainObject(t)?AM.merge.call({caseless:a},e,t):AM.isPlainObject(t)?AM.merge({},t):AM.isArray(t)?t.slice():t}function i(e,t,n,i){return AM.isUndefined(t)?AM.isUndefined(e)?void 0:a(void 0,e,0,i):a(e,t,0,i)}function r(e,t){if(!AM.isUndefined(t))return a(void 0,t)}function o(e,t){return AM.isUndefined(t)?AM.isUndefined(e)?void 0:a(void 0,e):a(void 0,t)}function s(n,i,r){return r in t?a(n,i):r in e?a(void 0,n):void 0}const l={url:r,method:r,data:r,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:s,headers:(e,t,n)=>i(pO(e),pO(t),0,!0)};return AM.forEach(Object.keys(Object.assign({},e,t)),function(a){const r=l[a]||i,o=r(e[a],t[a],a);AM.isUndefined(o)&&r!==s||(n[a]=o)}),n}const mO=e=>{const t=fO({},e);let n,{data:a,withXSRFToken:i,xsrfHeaderName:r,xsrfCookieName:o,headers:s,auth:l}=t;if(t.headers=s=nO.from(s),t.url=VM(hO(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),AM.isFormData(a))if(qM.hasStandardBrowserEnv||qM.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map(e=>
vendor: 2,106 bytes, line 4947
4947e.trim()).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(qM.hasStandardBrowserEnv&&(i&&AM.isFunction(i)&&(i=i(t)),i||!1!==i&&cO(t.url))){const e=r&&o&&dO.read(o);e&&s.set(r,e)}return t},vO="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const a=mO(e);let i=a.data;const r=nO.from(a.headers).normalize();let o,s,l,u,c,{responseType:d,onUploadProgress:h,onDownloadProgress:p}=a;function f(){u&&u(),c&&c(),a.cancelToken&&a.cancelToken.unsubscribe(o),a.signal&&a.signal.removeEventListener("abort",o)}let m=new XMLHttpRequest;function v(){if(!m)return;const a=nO.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());oO(function(e){t(e),f()},function(e){n(e),f()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:a,config:e,request:m}),m=null}m.open(a.method.toUpperCase(),a.url,!0),m.timeout=a.timeout,"onloadend"in m?m.onloadend=v:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(v)},m.onabort=function(){m&&(n(new EM("Request aborted",EM.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new EM("Network Error",EM.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const i=a.transitional||jM;a.timeoutErrorMessage&&(t=a.timeoutErrorMessage),n(new EM(t,i.clarifyTimeoutError?EM.ETIMEDOUT:EM.ECONNABORTED,e,m)),m=null},void 0===i&&r.setContentType(null),"setRequestHeader"in m&&AM.forEach(r.toJSON(),function(e,t){m.setRequestHeader(t,e)}),AM.isUndefined(a.withCredentials)||(m.withCredentials=!!a.withCredentials),d&&"json"!==d&&(m.responseType=a.responseType),p&&([l,c]=sO(p,!0),m.addEventListener("progress",l)),h&&m.upload&&([s,u]=sO(h),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",u)),(a.cancelToken||a.signal)&&(o=t=>{m&&(n(!t||t.type?new rO(null,e,m):t),m.abort(),m=null)},a.cancelToken&&a.cancelToken.subscribe(o),a.signal&&(a.signal.aborted?o():a.signal.addEventListener("abort",o))
4947);const g=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(a.url);g&&-1===qM.protocols.indexOf(g)?n(new EM("Unsupported protocol "+g+":",EM.ERR_BAD_REQUEST,e)):m.send(i||null)})},gO=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,a=new AbortController;const i=function(e){if(!n){n=!0,o();const t=e instanceof Error?e:this.reason;a.abort(t instanceof EM?t:new rO(t instanceof Error?t.message:t))}};let r=t&&setTimeout(()=>{r=null,i(new EM("timeout ".concat(t," of ms exceeded"),EM.ETIMEDOUT))},t);const o=()=>{e&&(r&&clearTimeout(r),r=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>e.addEventListener("abort",i));const{signal:s}=a;return s.unsubscribe=()=>AM.asap(o),s}},yO=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let a,i=0;for(;i<n;)a=i+t,yield e.slice(i,a),i=a},bO=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},_O=(e,t,n,a)=>{const i=async function*(e,t){for await(const n of bO(e))yield*yO(n,t)}(e,t);let r,o=0,s=e=>{r||(r=!0,a&&a(e))};return new ReadableStream({async pull(e){try{const{done:t,value:a}=await i.next();if(t)return s(),void e.close();let r=a.byteLength;if(n){let e=o+=r;n(e)}e.enqueue(new Uint8Array(a))}catch(t){throw s(t),t}},cancel:e=>(s(e),i.return())},{highWaterMark:2})},wO="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,kO=wO&&"function"==typeof ReadableStream,CO=wO&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),SO=(e,...t)=>{try{return!!e(...t)}catch(w7){return!1}},TO=kO&&SO(()=>{let e=!1;const t=new Request(qM.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),AO=kO&&SO(()=>AM.isReadableStream(new Response("").body)),EO={stream:AO&&(e=>e.body)};var IO;wO&&(IO=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!EO[e]&&(EO[e]=AM.isFunction(IO[e])?t=>t[e]():(t,n)=>{throw new EM("Response type '".concat(e,"' is not supported"),EM.ERR_NOT_SUPPORT,n)})}));const xO=async(e,t)=>{const n=AM.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(AM.isBlob(e))return e.size;if(AM.isSpecCompliantForm(e)){const t=new Request(qM.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return AM.isArrayBufferView(e)||AM.isArrayBuffer(e)?e.byteLength:(AM.isURLSearchParams(e)&&(e+=""),AM.isString(e)?(await CO(e)).byteLength:void 0)})(t):n},NO={http:null,xhr:vO,fetch:wO&&(async e=>{let{url:t,method:n,data:a,signal:i,cancelToken:r,timeout:o,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:d="same-origin",fetchOptions:h}=mO(e);u=u?(u+"").toLowerCase():"text";let p,f=gO([i,r&&r.toAbortSignal()],o);const m=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let v;try{if(l&&TO&&"get"!==n&&"head"!==n&&0!==(v=await xO(c,a))){let e,n=new Request(t,{method:"POST",body:a,duplex:"half"});if(AM.isFormData(a)&&(e=n.headers.get("content-type"))&&c.setContentType(e),n.body){const[e,t]=lO(v,sO(uO(l)));a=_O(n.body,65536,e,t)}}AM.isString(d)||(d=d?"include":"omit");const i="credentials"in Request.prototype;p=new Request(t,{...h,signal:f,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:a,duplex:"half",credentials:i?d:void 0});let r=await fetch(p);const o=AO&&("stream"===u||"response"===u);if(AO&&(s||o&&m)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=r[t]});const t=AM.toFiniteNumber(r.headers.get("content-length")),[n,a]=s&&lO(t,sO(uO(s),!0))||[];r=new Response(_O(r.body,65536,n,()=>{a&&a(),m&&m()}),e)}u=u||"text";let g=await EO[AM.findKey(EO,u)||"text"](r,e);return!o&&m&&m(),await new Promise((t,n)=>{oO(t,n,{data:g,headers:nO.from(r.headers),status:r.status,statusText:r.statusText,config:e,request:p})})}catch(g){if(m&&m(),g&&"TypeError"===g.name&&/fetch/i.test(g.message))throw Object.assign(new EM("Network Error",EM.ERR_NETWORK,e,p),{cause:g.cause||g});throw EM.from(g,g&&g.code,e,p)}})};AM.forEach(NO,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(w7){}Object.defineProperty(e,"adapterName",{value:t})}});const PO=e=>"- ".concat(e),MO=e=>AM.isFunction(e)||null===e||!1===e,OO=e=>{e=AM.isArray(e)?e:[e];const{length:t}=e;let n,a;const i={};for(let r=0;r<t;r++){let t;if(n=e[r],a=n,!MO(n)&&(a=NO[(t=String(n)).toLowerCase()],void 0===a))throw new EM("Unknown adapter '".concat(t,"'"));if(a)break;i[t||"#"+r]=a}if(!a){const e=Object.entries(i).map(([e,t])=>"adapter ".concat(e," ")+(!1===t?"is not supported by the environment":"is not available in the build"));throw new EM("There is no suitable adapter to dispatch the request "+(t?e.length>
49471?"since :\n"+e.map(PO).join("\n"):" "+PO(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return a};function RO(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new rO(null,e)}function DO(e){RO(e),e.headers=nO.from(e.headers),e.data=aO.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return OO(e.adapter||YM.adapter)(e).then(function(t){return RO(e),t.data=aO.call(e,e.transformResponse,t),t.headers=nO.from(t.headers),t},function(t){return iO(t)||(RO(e),t&&t.response&&(t.response.data=aO.call(e,e.transformResponse,t.response),t.response.headers=nO.from(t.response.headers))),Promise.reject(t)})}const LO="1.8.0",BO={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{BO[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const FO={};BO.transitional=function(e,t,n){function a(e,t){return"[Axios v1.8.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,r)=>{if(!1===e)throw new EM(a(i," has been removed"+(t?" in "+t:"")),EM.ERR_DEPRECATED);return t&&!FO[i]&&(FO[i]=!0,console.warn(a(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,r)}},BO.spelling=function(e){return(t,n)=>(console.warn("".concat(n," is likely a misspelling of ").concat(e)),!0)};const VO={assertOptions:function(e,t,n){if("object"!=typeof e)throw new EM("options must be an object",EM.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let i=a.length;for(;i-- >0;){const r=a[i],o=t[r];if(o){const t=e[r],n=void 0===t||o(t,r,e);if(!0!==n)throw new EM("option "+r+" must be "+n,EM.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new EM("Unknown option "+r,EM.ERR_BAD_OPTION)}},validators:BO},XO=VO.validators;let jO=class{constructor(e){this.defaults=e,this.interceptors={request:new XM,response:new XM}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(w7){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=fO(this.defaults,t);const{transitional:n,paramsSerializer:a,headers:i}=t;void 0!==n&&VO.assertOptions(n,{silentJSONParsing:XO.transitional(XO.boolean),forcedJSONParsing:XO.transitional(XO.boolean),clarifyTimeoutError:XO.transitional(XO.boolean)},!1),null!=a&&(AM.isFunction(a)?t.paramsSerializer={serialize:a}:VO.assertOptions(a,{encode:XO.function,serialize:XO.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),VO.assertOptions(t,{baseUrl:XO.spelling("baseURL"),withXsrfToken:XO.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let r=i&&AM.merge(i.common,i[t.method]);i&&AM.forEach(["delete","get","head","post","put","patch","common"],e=>{delete i[e]}),t.headers=nO.concat(r,i);const o=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,o.unshift(e.fulfilled,e.rejected))});const l=[];let u;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let c,d=0;if(!s){const e=[DO.bind(this),void 0];for(e.unshift.apply(e,o),e.push.apply(e,l),c=e.length,u=Promise.resolve(t);d<c;)u=u.then(e[d++],e[d++]);return u}c=o.length;let h=t;for(d=0;d<c;){const e=o[d++],t=o[d++];try{h=e(h)}catch(Sae){t.call(this,Sae);break}}try{u=DO.call(this,h)}catch(Sae){return Promise.reject(Sae)}for(d=0,c=l.length;d<c;)u=u.then(l[d++],l[d++]);return u}getUri(e){return VM(hO((e=fO(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};AM.forEach(["delete","get","head","options"],function(e){jO.prototype[e]=function(t,n){return this.request(fO(n||{},{method:e,url:t,data:(n||{}).data}))}}),AM.forEach(["post","put","patch"],function(e){function t(t){return function(n,a,i){return this.request(fO(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:a}))}}jO.prototype[e]=t(),jO.prototype[e+"Form"]=t(!0)});const UO={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,Re
4947setContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(UO).forEach(([e,t])=>{UO[t]=e});const HO=function e(t){const n=new jO(t),a=BP(jO.prototype.request,n);return AM.extend(a,jO.prototype,n,{allOwnKeys:!0}),AM.extend(a,n,null,{allOwnKeys:!0}),a.create=function(n){return e(fO(t,n))},a}(YM);HO.Axios=jO,HO.CanceledError=rO,HO.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const a=new Promise(e=>{n.subscribe(e),t=e}).then(e);return a.cancel=function(){n.unsubscribe(t)},a},e(function(e,a,i){n.reason||(n.reason=new rO(e,a,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},HO.isCancel=iO,HO.VERSION=LO,HO.toFormData=RM,HO.AxiosError=EM,HO.Cancel=HO.CanceledError,HO.all=function(e){return Promise.all(e)},HO.spread=function(e){return function(t){return e.apply(null,t)}},HO.isAxiosError=function(e){return AM.isObject(e)&&!0===e.isAxiosError},HO.mergeConfig=fO,HO.AxiosHeaders=nO,HO.formToJSON=e=>$M(AM.isHTMLForm(e)?new FormData(e):e),HO.getAdapter=OO,HO.HttpStatusCode=UO,HO.default=HO;const{Axios:zO,AxiosError:KO,CanceledError:WO,isCancel:GO,CancelToken:qO,VERSION:$O,all:YO,Cancel:JO,isAxiosError:QO,spread:ZO,toFormData:eR,AxiosHeaders:tR,HttpStatusCode:nR,formToJSON:aR,getAdapter:iR,mergeConfig:rR}=HO;async function oR(e){return await HO.post("".concat("https://us-central1-forged-7adb7.cloudfunctions.net","/userCustomClaims/getUserClaims"),{email:e}).then(({data:e})=>e.user)}function sR(e,t){let n=new Date,a=n.toLocaleTimeString(),i=n.toLocaleString("default",{year:"numeric",month:"long",day:"numeric"});return HO.post("https://us-central1-forged-7adb7.cloudfunctions.net/auth/emailLink",{email:e,backUrl:"https://axethrowing.org",signType:t,date:"".concat(a," on ").concat(i)})}async function lR(e="custom_subscription"){return await HO.get("".concat("https://us-central1-forged-7adb7.cloudfunctions.net","/payments/getStripeProducts?filter=metadata&name=").concat(e)).then(e=>e.data.products)}function uR(e,t=null,n,a,i,r){return HO.post("".concat("https://us-central1-forged-7adb7.cloudfunctions.net","/payments/createSubscriptionCheckout"),{venue:e,customerId:t,trialPeriodInDays:+a,availablePlayers:i,returnUrl:r,userEmail:fP.currentUser.email,priceId:n})}function cR(e,t,n){return HO.post("".concat("https://us-central1-forged-7adb7.cloudfunctions.net","/emailEvents/flexLeagueInvitation"),{email:e,playerName:t,eventLink:n})}function dR(e,t,n,a,i,r=!1){return HO.post("".concat("https://us-central1-forged-7adb7.cloudfunctions.net","/payments/appendParticiant"),{playerId:e,playerEmail:t,venue:n,eventSlug:a,eventType:i,selfSignUp:r})}function hR(e,t,n,a,i,r,o){return HO.post("".concat("https://us-central1-forged-7adb7.cloudfunctions.net","/payments/createPlayerSubscriptionCheckout"),{customerId:a||null,userId:t,venue:i,eventName:r,returnUrl:n,userEmail:fP.currentUser.email,priceId:e,trialPeriodInDays:+o})}function pR(e){return HO.get("".concat("https://us-central1-forged-7adb7.cloudfunctions.net","/payments/getSubscription?subscription=").concat(e)).then(e=>e.data).catch(e=>{var t,n,a;return console.error("Error fetching subscription: ",e),{error:!0,message:(null==(n=null==(t=e.response)?void 0:t.data)?void 0:n.message)||"Failed to fetch subscription information",status:null==(a=e.response)?void 0:a.status}})}function fR(e,t){return HO.post("".concat("https://us-central1-forged-7adb7.cloudfunctions.net","/payments/updateSubscription"),{payload:t,subscriptionId:e}).then(e=>e.data)}function mR(e){return HO.post("".concat("https://us-central1-forged-7adb7.cloudfunctions.net","/payments/cancelSubscription"),{subscriptionId:e}).then(e=>e.data)}function vR(e){return HO.get("".concat("https://us-central1-forged-7adb7.cloudfunctions.net","/payments/getSubscriptionsList?customer=").concat(e)).then(e=>e.data)}function gR(e,t){if(!e)return;const n="customer=".concat(e).concat(t?"&type=".concat(t):"");return HO.get("".concat("https://us-central1-forged-7adb7.cloudfunctions.net","/payments/getCustomerInvoices?").concat(n)).then(({data:e})=>e.count)}function yR(e,t){return HO.get("".concat("https://us-central1-forged-7adb7.cloudfunctions.net","/payments/portal?customer=").concat(e,"&backUrl=").concat(t)).then(e=>e.data)}function bR(e,t){return HO.post("".concat("https://us-central1-forged-7adb7.cloudfunctions.net","/payments/paymentMethodChanged"),{paymentMethod:e,venueOwner:t}).then(e=>e.data)}function _R(e,t){return HO.post("".concat("https://us-central1-forged-7adb7.cloudfunctions.net","/auth/updateFirebaseUser"),{oldEmail:e,newEmail:t})}function wR(e){return HO.get("".concat("https://us-central1-forged-7adb7.cloudfunctions.net","/auth/checkFirebaseUserExists?email=").concat(e)).then(({data:e})=>e)}function kR(e){return HO.delete("".concat("https://us-central1-forged-7adb7.cloudfunctions.net","/auth/deleteFirebaseUser?email=").concat(e)).then(({data:e})=>e)}function CR(e,t,n){return HO.post("".concat("https://us-central1-forged-7adb7.cloudfunctions.net","/emailEvents/playerJoinedFlexLeague"),{email:e,playerName:t,eventData:n})}function SR(e,t,n){return HO.post("".concat("https://us-central1-forged-7adb7.cloudfunctions.net","/emailEvents/playerAddedFlexLeague"),{email:e,playerName:t,eventData:n})}const TR=wu("chat",{state:()=>({chats:{},messages:{},currentChatId:null,typingUsers:{},loading:!1,error:null}),getters:{currentChat:e=>e.chats[e.currentChatId],currentMessages:e=>e.messages[e.currentChatId]||{},sortedMessages:e=>{const t=e.messages[e.currentChatId]||{};return Object.values(t).sort((e,t)=>
4947e.timestamp-t.timestamp)},userIsChatMember:e=>{var t,n,a;const i=VG();return Boolean(null==(a=null==(n=null==(t=e.chats[e.currentChatId])?void 0:t.metadata)?void 0:n.participants)?void 0:a[i.user[".key"]])}},actions:{setMemberStatus(e,t,n){wg(EP("chats/".concat(e,"/metadata/participants/").concat(t)),{isActive:n})},markMessageAsRead(e,t){if(this.messages[e]&&this.messages[e][t]){this.messages[e][t].status="read";wg(EP("chats/".concat(e,"/messages/").concat(t)),{status:"read"})}},removeChatMember(e,t){bg(EP("chats/".concat(e,"/metadata/participants/").concat(t)))},addChatMember(e,t){_g(EP("chats/".concat(e,"/metadata/participants/").concat(t)),{joinedAt:(new Date).getTime(),role:"member",isActive:!1})},createChat:async(e,t)=>await _g(EP("chats/".concat(e)),{metadata:t}).then(()=>!0),async loadChat(e){if(e){this.currentChatId=e,this.loading=!0;try{Ag(EP("chats/".concat(e,"/metadata")),t=>{t.exists()&&(this.chats[e]={metadata:t.val()})}),await this.loadMessages(e)}catch(Sae){this.error=Sae.message}finally{this.loading=!1}}},async loadMessages(e,t=50){const n=EP("chats/".concat(e,"/messages"));return new Promise(t=>{Ag(n,n=>{this.messages[e]=n.val()||{},t()})})},async sendMessage(e,t){const n=yg(EP("chats/".concat(e,"/messages"))),a={id:n.key,text:t.text,senderId:t.senderId,timestamp:Date.now(),type:t.type||"text",status:"sent",editedAt:null,replyTo:t.replyTo||null,attachments:t.attachments||{}};await _g(n,a);const i=EP("chats/".concat(e,"/metadata/lastMessageAt"));return await _g(i,Date.now()),n.key},async setTyping(e,t){const n=EP("chats/".concat(e,"/typing/").concat(this.currentUserId));t?await _g(n,Date.now()):await _g(n,null)},async editMessage(e,t,n){const a=EP("chats/".concat(e,"/messages/").concat(t));await _g(a,{...this.messages[e][t],text:n,editedAt:Date.now()})},async deleteMessage(e,t){const n=EP("chats/".concat(e,"/messages/").concat(t));await _g(n,null)},clearChats(){this.disconnect(),this.chats={},this.messages={},this.currentChatId=null,this.typingUsers={},this.loading=!1,this.error=null},disconnect(){this.currentChatId&&(Eg(EP("chats/".concat(this.currentChatId))),Eg(EP("chats/".concat(this.currentChatId,"/messages"))),Eg(EP("chats/".concat(this.currentChatId,"/typing"))))}}});var AR="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ER(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function IR(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch(w7){}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,a.get?a:{enumerable:!0,get:function(){return e[t]}})}),n}var xR,NR={exports:{}};
4948/*!
4949 * JavaScript Cookie v2.2.1
4950 * https://github.com/js-cookie/js-cookie
4951 *
4952 * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
4953 * Released under the MIT license
4954 */var PR=xR?NR.exports:(xR=1,NR.exports=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var a in n)t[a]=n[a]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2}
4954)+/g,decodeURIComponent)}return function n(a){function i(){}function r(t,n,r){if("undefined"!=typeof document){"number"==typeof(r=e({path:"/"},i.defaults,r)).expires&&(r.expires=new Date(1*new Date+864e5*r.expires)),r.expires=r.expires?r.expires.toUTCString():"";try{var o=JSON.stringify(n);/^[\{\[]/.test(o)&&(n=o)}catch(w7){}n=a.write?a.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var l in r)r[l]&&(s+="; "+l,!0!==r[l]&&(s+="="+r[l].split(";")[0]));return document.cookie=t+"="+n+s}}function o(e,n){if("undefined"!=typeof document){for(var i={},r=document.cookie?document.cookie.split("; "):[],o=0;o<r.length;o++){var s=r[o].split("="),l=s.slice(1).join("=");n||'"'!==l.charAt(0)||(l=l.slice(1,-1));try{var u=t(s[0]);if(l=(a.read||a)(l,u)||t(l),n)try{l=JSON.parse(l)}catch(w7){}if(i[u]=l,e===u)break}catch(w7){}}return e?i[e]:i}}return i.set=r,i.get=function(e){return o(e,!1)},i.getJSON=function(e){return o(e,!0)},i.remove=function(t,n){r(t,"",e(n,{expires:-1}))},i.defaults={},i.withConverter=n,i}(function(){})}());const MR={},OR=function(e,t,n){let a=Promise.resolve();if(t&&t.length>0){let e=function(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:"fulfilled",value:e}),e=>({status:"rejected",reason:e}))))};document.getElementsByTagName("link");const n=document.querySelector("meta[property=csp-nonce]"),i=(null==n?void 0:n.nonce)||(null==n?void 0:n.getAttribute("nonce"));a=e(t.map(e=>{if((e=function(e){return"/"+e}(e))in MR)return;MR[e]=!0;const t=e.endsWith(".css"),n=t?'[rel="stylesheet"]':"";if(document.querySelector('link[href="'.concat(e,'"]').concat(n)))return;const a=document.createElement("link");return a.rel=t?"stylesheet":"modulepreload",t||(a.as="script"),a.crossOrigin="",a.href=e,i&&a.setAttribute("nonce",i),document.head.appendChild(a),t?new Promise((t,n)=>{a.addEventListener("load",t),a.addEventListener("error",()=>n(new Error("Unable to preload CSS for ".concat(e))))}):void 0}))}function i(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return a.then(t=>{for(const e of t||[])"rejected"===e.status&&i(e.reason);return e().catch(i)})},RR="undefined"!=typeof document;function DR(e){return"object"==typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}const LR=Object.assign;function BR(e,t){const n={};for(const a in t){const i=t[a];n[a]=VR(i)?i.map(e):e(i)}return n}const FR=()=>{},VR=Array.isArray,XR=/#/g,jR=/&/g,UR=/\//g,HR=/=/g,zR=/\?/g,KR=/\+/g,WR=/%5B/g,GR=/%5D/g,qR=/%5E/g,$R=/%60/g,YR=/%7B/g,JR=/%7C/g,QR=/%7D/g,ZR=/%20/g;function eD(e){return encodeURI(""+e).replace(JR,"|").replace(WR,"[").replace(GR,"]")}function tD(e){return eD(e).replace(KR,"%2B").replace(ZR,"+").replace(XR,"%23").replace(jR,"%26").replace($R,"`").replace(YR,"{").replace(QR,"}").replace(qR,"^")}function nD(e){return tD(e).replace(HR,"%3D")}function aD(e){return null==e?"":function(e){return eD(e).replace(XR,"%23").replace(zR,"%3F")}(e).replace(UR,"%2F")}function iD(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}const rD=/\/$/;function oD(e,t,n="/"){let a,i={},r="",o="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(a=t.slice(0,l),r=t.slice(l+1,s>-1?s:t.length),i=e(r)),s>-1&&(a=a||t.slice(0,s),o=t.slice(s,t.length)),a=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),a=e.split("/"),i=a[a.length-1];".."!==i&&"."!==i||a.push("");let r,o,s=n.length-1;for(r=0;r<a.length;r++)if(o=a[r],"."!==o){if(".."!==o)break;s>1&&s--}return n.slice(0,s).join("/")+"/"+a.slice(r).join("/")}(null!=a?a:t,n),{fullPath:a+(r&&"?")+r+o,path:a,query:i,hash:iD(o)}}function sD(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function lD(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function uD(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!cD(e[n],t[n]))return!1;return!0}function cD(e,t){return VR(e)?dD(e,t):VR(t)?dD(t,e):e===t}function dD(e,t){return VR(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):1===e.length&&e[0]===t}const hD={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var pD,fD,mD,vD;function gD(e){if(!e)if(RR){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(rD,"")}(fD=pD||(pD={})).pop="pop",fD.push="push",(vD=mD||(mD={})).back="back",vD.forward="forward",vD.unknown="";const yD=/^[^#]+#/;function bD(e,t){return e.replace(yD,"#")+t}const _D=()=>({left:window.scrollX,top:window.scrollY});function wD(e){let t;if("el"in e){const n=e.el,a="string"==typeof n&&n.startsWith("#"),i="string"==typeof n?a?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),a=e.getBoundingClientRect();return{behavior:t.behavior,left:a.left-n.left-(t.left||0),top:a.top-n.top-(t.top||0)}}(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}
4954function kD(e,t){return(history.state?history.state.position-t:-1)+e}const CD=new Map;function SD(e,t){const{pathname:n,search:a,hash:i}=t,r=e.indexOf("#");if(r>-1){let t=i.includes(e.slice(r))?e.slice(r).length:1,n=i.slice(t);return"/"!==n[0]&&(n="/"+n),sD(n,"")}return sD(n,e)+a+i}function TD(e,t,n,a=!1,i=!1){return{back:e,current:t,forward:n,replaced:a,position:window.history.length,scroll:i?_D():null}}function AD(e){const{history:t,location:n}=window,a={value:SD(e,n)},i={value:t.state};function r(a,r,o){const s=e.indexOf("#"),l=s>-1?(n.host&&document.querySelector("base")?e:e.slice(s))+a:location.protocol+"//"+location.host+e+a;try{t[o?"replaceState":"pushState"](r,"",l),i.value=r}catch(u){console.error(u),n[o?"replace":"assign"](l)}}return i.value||r(a.value,{back:null,current:a.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:a,state:i,push:function(e,n){const o=LR({},i.value,t.state,{forward:e,scroll:_D()});r(o.current,o,!0),r(e,LR({},TD(a.value,e,null),{position:o.position+1},n),!1),a.value=e},replace:function(e,n){r(e,LR({},t.state,TD(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),a.value=e}}}function ED(e){return"string"==typeof e||"symbol"==typeof e}const ID=Symbol("");var xD,ND;function PD(e,t){return LR(new Error,{type:e,[ID]:!0},t)}function MD(e,t){return e instanceof Error&&ID in e&&(null==t||!!(e.type&t))}(ND=xD||(xD={}))[ND.aborted=4]="aborted",ND[ND.cancelled=8]="cancelled",ND[ND.duplicated=16]="duplicated";const OD="[^/]+?",RD={sensitive:!1,strict:!1,start:!0,end:!0},DD=/[.+*?^${}()[\]/\\]/g;function LD(e,t){let n=0;for(;n<e.length&&n<t.length;){const a=t[n]-e[n];if(a)return a;n++}return e.length<t.length?1===e.length&&80===e[0]?-1:1:e.length>t.length?1===t.length&&80===t[0]?1:-1:0}function BD(e,t){let n=0;const a=e.score,i=t.score;for(;n<a.length&&n<i.length;){const e=LD(a[n],i[n]);if(e)return e;n++}if(1===Math.abs(i.length-a.length)){if(FD(a))return 1;if(FD(i))return-1}return i.length-a.length}function FD(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const VD={type:0,value:""},XD=/[a-zA-Z0-9_]/;function jD(e,t,n){const a=function(e,t){const n=LR({},RD,t),a=[];let i=n.start?"^":"";const r=[];for(const l of e){const e=l.length?[]:[90];n.strict&&!l.length&&(i+="/");for(let t=0;t<l.length;t++){const a=l[t];let o=40+(n.sensitive?.25:0);if(0===a.type)t||(i+="/"),i+=a.value.replace(DD,"\\$&"),o+=40;else if(1===a.type){const{value:e,repeatable:n,optional:u,regexp:c}=a;r.push({name:e,repeatable:n,optional:u});const d=c||OD;if(d!==OD){o+=10;try{new RegExp("(".concat(d,")"))}catch(s){throw new Error('Invalid custom RegExp for param "'.concat(e,'" (').concat(d,"): ")+s.message)}}let h=n?"((?:".concat(d,")(?:/(?:").concat(d,"))*)"):"(".concat(d,")");t||(h=u&&l.length<2?"(?:/".concat(h,")"):"/"+h),u&&(h+="?"),i+=h,o+=20,u&&(o+=-8),n&&(o+=-20),".*"===d&&(o+=-50)}e.push(o)}a.push(e)}if(n.strict&&n.end){const e=a.length-1;a[e][a[e].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const o=new RegExp(i,n.sensitive?"":"i");return{re:o,score:a,keys:r,parse:function(e){const t=e.match(o),n={};if(!t)return null;for(let a=1;a<t.length;a++){const e=t[a]||"",i=r[a-1];n[i.name]=e&&i.repeatable?e.split("/"):e}return n},stringify:function(t){let n="",a=!1;for(const i of e){a&&n.endsWith("/")||(n+="/"),a=!1;for(const e of i)if(0===e.type)n+=e.value;else if(1===e.type){const{value:r,repeatable:o,optional:s}=e,l=r in t?t[r]:"";if(VR(l)&&!o)throw new Error('Provided param "'.concat(r,'" is an array but it is not repeatable (* or + modifiers)'));const u=VR(l)?l.join("/"):l;if(!u){if(!s)throw new Error('Missing required param "'.concat(r,'"'));i.length<2&&(n.endsWith("/")?n=n.slice(0,-1):a=!0)}n+=u}}return n||"/"}}}(function(e){if(!e)return[[]];if("/"===e)return[[VD]];if(!e.startsWith("/"))throw new Error('Invalid path "'.concat(e,'"'));function t(e){throw new Error("ERR (".concat(n,')/"').concat(u,'": ').concat(e))}let n=0,a=n;const i=[];let r;function o(){r&&i.push(r),r=[]}let s,l=0,u="",c="";function d(){u&&(0===n?r.push({type:0,value:u}):1===n||2===n||3===n?(r.length>1&&("*"===s||"+"===s)&&t("A repeatable param (".concat(u,") must be alone in its segment. eg: '/:ids+.")),r.push({type:1,value:u,regexp:c,repeatable:"*"===s||"+"===s,optional:"*"===s||"?"===s})):t("Invalid state to consume buffer"),u="")}function h(){u+=s}for(;l<e.length;)if(s=e[l++],"\\"!==s||2===n)switch(n){case 0:"/"===s?(u&&d(),o()):":"===s?(d(),n=1):h();break;case 4:h(),n=a;break;case 1:"("===s?n=2:XD.test(s)?h():(d(),n=0,"*"!==s&&"?"!==s&&"+"!==s&&l--);break;case 2:")"===s?"\\"==c[c.length-1]?c=c.slice(0,-1)+s:n=3:c+=s;break;case 3:d(),n=0,"*"!==s&&"?"!==s&&"+"!==s&&l--,c="";break;default:t("Unknown state")}else a=n,n=4;return 2===n&&t('Unfinished custom RegExp for param "'.concat(u,'"')),d(),o(),i}(e.path),n),i=LR(a,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function UD(e,t){const n=[],a=new Map;function i(e,n,a){const s=!a,l=zD(e);l.aliasOf=a&&a.record;const u=qD(t,e),c=[l];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)c.push(zD(LR({},l,{components:a?a.record.components:l.components,path:e,aliasOf:a?a.record:l})))}let d,h;for(const t of c){const{path:c}=t;if(n&&"/"!==c[0]){const e=n.record.path,a="/"===e[e.length-1]?"":"/";t.path=n.record.path+(c&&a+c)}if(d=jD(t,n,u),a?a.alias.push(d):(h=h||d,h!==d&&h.alias.push(d),s&&e.name&&!WD(d)&&r(e.name)),$D(d)&&o(d),l.children){const e=l.children;for(let t=0;t<e.length;t++)i(e[t],d,a&&a.children[t])}a=a||d}return h?()=>{r(h)}:FR}function r(e){if(ED(e)){const t=a.get(e);
4954t&&(a.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(r),t.alias.forEach(r))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&a.delete(e.record.name),e.children.forEach(r),e.alias.forEach(r))}}function o(e){const t=function(e,t){let n=0,a=t.length;for(;n!==a;){const i=n+a>>1;BD(e,t[i])<0?a=i:n=i+1}const i=function(e){let t=e;for(;t=t.parent;)if($D(t)&&0===BD(e,t))return t;return}(e);i&&(a=t.lastIndexOf(i,a-1));return a}(e,n);n.splice(t,0,e),e.record.name&&!WD(e)&&a.set(e.record.name,e)}return t=qD({strict:!1,end:!0,sensitive:!1},t),e.forEach(e=>i(e)),{addRoute:i,resolve:function(e,t){let i,r,o,s={};if("name"in e&&e.name){if(i=a.get(e.name),!i)throw PD(1,{location:e});o=i.record.name,s=LR(HD(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&HD(e.params,i.keys.map(e=>e.name))),r=i.stringify(s)}else if(null!=e.path)r=e.path,i=n.find(e=>e.re.test(r)),i&&(s=i.parse(r),o=i.record.name);else{if(i=t.name?a.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw PD(1,{location:e,currentLocation:t});o=i.record.name,s=LR({},t.params,e.params),r=i.stringify(s)}const l=[];let u=i;for(;u;)l.unshift(u.record),u=u.parent;return{name:o,path:r,params:s,matched:l,meta:GD(l)}},removeRoute:r,clearRoutes:function(){n.length=0,a.clear()},getRoutes:function(){return n},getRecordMatcher:function(e){return a.get(e)}}}function HD(e,t){const n={};for(const a of t)a in e&&(n[a]=e[a]);return n}function zD(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:KD(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function KD(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const a in e.components)t[a]="object"==typeof n?n[a]:n;return t}function WD(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function GD(e){return e.reduce((e,t)=>LR(e,t.meta),{})}function qD(e,t){const n={};for(const a in e)n[a]=a in t?t[a]:e[a];return n}function $D({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function YD(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let a=0;a<n.length;++a){const e=n[a].replace(KR," "),i=e.indexOf("="),r=iD(i<0?e:e.slice(0,i)),o=i<0?null:iD(e.slice(i+1));if(r in t){let e=t[r];VR(e)||(e=t[r]=[e]),e.push(o)}else t[r]=o}return t}function JD(e){let t="";for(let n in e){const a=e[n];if(n=nD(n),null==a){void 0!==a&&(t+=(t.length?"&":"")+n);continue}(VR(a)?a.map(e=>e&&tD(e)):[a&&tD(a)]).forEach(e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))})}return t}function QD(e){const t={};for(const n in e){const a=e[n];void 0!==a&&(t[n]=VR(a)?a.map(e=>null==e?null:""+e):null==a?a:""+a)}return t}const ZD=Symbol(""),eL=Symbol(""),tL=Symbol(""),nL=Symbol(""),aL=Symbol("");function iL(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function rL(e,t,n,a,i,r=e=>e()){const o=a&&(a.enterCallbacks[i]=a.enterCallbacks[i]||[]);return()=>new Promise((s,l)=>{const u=e=>{var r;!1===e?l(PD(4,{from:n,to:t})):e instanceof Error?l(e):"string"==typeof(r=e)||r&&"object"==typeof r?l(PD(2,{from:t,to:e})):(o&&a.enterCallbacks[i]===o&&"function"==typeof e&&o.push(e),s())},c=r(()=>e.call(a&&a.instances[i],t,n,u));let d=Promise.resolve(c);e.length<3&&(d=d.then(u)),d.catch(e=>l(e))})}function oL(e,t,n,a,i=e=>e()){const r=[];for(const o of e)for(const e in o.components){let s=o.components[e];if("beforeRouteEnter"===t||o.instances[e])if(DR(s)){const l=(s.__vccOpts||s)[t];l&&r.push(rL(l,n,a,o,e,i))}else{let l=s();r.push(()=>l.then(r=>{if(!r)throw new Error("Couldn't resolve component \"".concat(e,'" at "').concat(o.path,'"'));const s=(l=r).__esModule||"Module"===l[Symbol.toStringTag]||l.default&&DR(l.default)?r.default:r;var l;o.mods[e]=r,o.components[e]=s;const u=(s.__vccOpts||s)[t];return u&&rL(u,n,a,o,e,i)()}))}}return r}function sL(e){const t=nr(tL),n=nr(nL),a=Zo(()=>{const n=ln(e.to);return t.resolve(n)}),i=Zo(()=>{const{matched:e}=a.value,{length:t}=e,i=e[t-1],r=n.matched;
4954if(!i||!r.length)return-1;const o=r.findIndex(lD.bind(null,i));if(o>-1)return o;const s=cL(e[t-2]);return t>1&&cL(i)===s&&r[r.length-1].path!==s?r.findIndex(lD.bind(null,e[t-2])):o}),r=Zo(()=>i.value>-1&&function(e,t){for(const n in t){const a=t[n],i=e[n];if("string"==typeof a){if(a!==i)return!1}else if(!VR(i)||i.length!==a.length||a.some((e,t)=>e!==i[t]))return!1}return!0}(n.params,a.value.params)),o=Zo(()=>i.value>-1&&i.value===n.matched.length-1&&uD(n.params,a.value.params));return{route:a,href:Zo(()=>a.value.href),isActive:r,isExactActive:o,navigate:function(n={}){if(function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(n)){const n=t[ln(e.replace)?"replace":"push"](ln(e.to)).catch(FR);return e.viewTransition&&"undefined"!=typeof document&&"startViewTransition"in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}}}const lL=Na({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:sL,setup(e,{slots:t}){const n=Ht(sL(e)),{options:a}=nr(tL),i=Zo(()=>({[dL(e.activeClass,a.linkActiveClass,"router-link-active")]:n.isActive,[dL(e.exactActiveClass,a.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&(1===(r=t.default(n)).length?r[0]:r);var r;return e.custom?a:es("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},a)}}}),uL=lL;function cL(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const dL=(e,t,n)=>null!=e?e:null!=t?t:n,hL=Na({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const a=nr(aL),i=Zo(()=>e.route||a.value),r=nr(eL,0),o=Zo(()=>{let e=ln(r);const{matched:t}=i.value;let n;for(;(n=t[e])&&!n.components;)e++;return e}),s=Zo(()=>i.value.matched[o.value]);tr(eL,Zo(()=>o.value+1)),tr(ZD,s),tr(aL,i);const l=an();return Mr(()=>[l.value,s.value,e.name],([e,t,n],[a,i,r])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===a&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),!e||!t||i&&lD(t,i)&&a||(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:"post"}),()=>{const a=i.value,r=e.name,o=s.value,u=o&&o.components[r];if(!u)return pL(n.default,{Component:u,route:a});const c=o.props[r],d=c?!0===c?a.params:"function"==typeof c?c(a):c:null,h=es(u,LR({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[r]=null)},ref:l}));return pL(n.default,{Component:h,route:a})||h}}});function pL(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const fL=hL;function mL(){return nr(tL)}function vL(e){return nr(nL)}function gL(e,t){let n;function a(){n=Oe(),n.run(()=>t.length?t(()=>{null==n||n.stop(),a()}):t())}Mr(e,e=>{e&&!n?a():e||(null==n||n.stop(),n=void 0)},{immediate:!0}),De(()=>{null==n||n.stop()})}const yL="undefined"!=typeof window,bL=yL&&"IntersectionObserver"in window,_L=yL&&("ontouchstart"in window||window.navigator.maxTouchPoints>0),wL=yL&&"EyeDropper"in window,kL=yL&&"matchMedia"in window&&"function"==typeof window.matchMedia,CL=()=>kL&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;function SL(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function TL(e,t,n){return e.set(EL(e,t),n),n}function AL(e,t){return e.get(EL(e,t))}function EL(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function IL(e,t,n){const a=t.length-1;if(a<0)return void 0===e?n:e;for(let i=0;i<a;i++){if(null==e)return n;e=e[t[i]]}return null==e||void 0===e[t[a]]?n:e[t[a]]}function xL(e,t){if(e===t)return!0;
4954if(e instanceof Date&&t instanceof Date&&e.getTime()!==t.getTime())return!1;if(e!==Object(e)||t!==Object(t))return!1;const n=Object.keys(e);return n.length===Object.keys(t).length&&n.every(n=>xL(e[n],t[n]))}function NL(e,t,n){return null!=e&&t&&"string"==typeof t?void 0!==e[t]?e[t]:IL(e,(t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split("."),n):n}function PL(e,t,n){if(!0===t)return void 0===e?n:e;if(null==t||"boolean"==typeof t)return n;if(e!==Object(e)){if("function"!=typeof t)return n;const a=t(e,n);return void 0===a?n:a}if("string"==typeof t)return NL(e,t,n);if(Array.isArray(t))return IL(e,t,n);if("function"!=typeof t)return n;const a=t(e,n);return void 0===a?n:a}function ML(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Array.from({length:e},(e,n)=>t+n)}function OL(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px";if(null==e||""===e)return;const n=Number(e);return isNaN(n)?String(e):isFinite(n)?"".concat(n).concat(t):void 0}function RL(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}function DL(e){let t;return null!==e&&"object"==typeof e&&((t=Object.getPrototypeOf(e))===Object.prototype||null===t)}function LL(e){if(e&&"$el"in e){const t=e.$el;return(null==t?void 0:t.nodeType)===Node.TEXT_NODE?t.nextElementSibling:t}return e}const BL=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function FL(e){return Object.keys(e)}function VL(e,t){return t.every(t=>e.hasOwnProperty(t))}function XL(e,t){const n={};for(const a of t)Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}function jL(e,t,n){const a=Object.create(null),i=Object.create(null);for(const r in e)t.some(e=>e instanceof RegExp?e.test(r):e===r)?a[r]=e[r]:i[r]=e[r];return[a,i]}function UL(e,t){const n={...e};return t.forEach(e=>delete n[e]),n}const HL=/^on[^a-z]/,zL=e=>HL.test(e),KL=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"],WL=["ArrowUp","ArrowDown","ArrowRight","ArrowLeft","Enter","Escape","Tab"," "];function GL(e){const[t,n]=jL(e,[HL]),a=UL(t,KL),[i,r]=jL(n,["class","style","id",/^data-/]);return Object.assign(i,t),Object.assign(r,a),[i,r]}function qL(e){return null==e?[]:Array.isArray(e)?e:[e]}function $L(e,t){let n=0;const a=function(){for(var a=arguments.length,i=new Array(a),r=0;r<a;r++)i[r]=arguments[r];clearTimeout(n),n=setTimeout(()=>e(...i),ln(t))};return a.clear=()=>{clearTimeout(n)},a.immediate=e,a}function YL(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.max(t,Math.min(n,e))}function JL(e){const t=e.toString().trim();return t.includes(".")?t.length-t.indexOf(".")-1:0}function QL(e,t){return e+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0").repeat(Math.max(0,t-e.length))}function ZL(e,t){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0").repeat(Math.max(0,t-e.length))+e}function eB(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(e<t)return"".concat(e," B");const n=1024===t?["Ki","Mi","Gi"]:["k","M","G"];let a=-1;for(;Math.abs(e)>=t&&a<n.length-1;)e/=t,++a;return"".concat(e.toFixed(1)," ").concat(n[a],"B")}function tB(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const a={};for(const i in e)a[i]=e[i];for(const i in t){const r=e[i],o=t[i];DL(r)&&DL(o)?a[i]=tB(r,o,n):n&&Array.isArray(r)&&Array.isArray(o)?a[i]=n(r,o):a[i]=o}return a}function nB(e){return e.map(e=>e.type===eo?nB(e.children):e).flat()}function aB(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(aB.cache.has(e))return aB.cache.get(e);const t=e.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return aB.cache.set(e,t),t}function iB(e,t){if(!t||"object"!=typeof t)return[];if(Array.isArray(t))return t.map(t=>iB(e,t)).flat(1);if(t.suspense)return iB(e,t.ssContent);if(Array.isArray(t.children))return t.children.map(t=>iB(e,t)).flat(1);if(t.component){if(Object.getOwnPropertySymbols(t.component.provides).includes(e))return[t.component];if(t.component.subTree)return iB(e,t.component.subTree).flat(1)}return[]}aB.cache=new Map;var rB=new WeakMap,oB=new WeakMap;class sB{constructor(e){SL(this,rB,[]),SL(this,oB,0),this.size=e}get isFull(){return AL(rB,this).length===this.size}push(e){AL(rB,this)[AL(oB,this)]=e,TL(oB,this,(AL(oB,this)+1)%this.size)}values(){return AL(rB,this).slice(AL(oB,this)).concat(AL(rB,this).slice(0,AL(oB,this)))}clear(){AL(rB,this).length=0,TL(oB,this,0)}}function lB(e){const t=Ht({});Nr(()=>{const n=e();for(const e in n)t[e]=n[e]},{flush:"sync"});const n={};for(const a in t)n[a]=gn(()=>t[a]);return n}function uB(e,t){return e.includes(t)}function cB(e){return e[2].toLowerCase()+e.slice(3)}const dB=()=>[Function,Array];function hB(e,t){return!!(e[t="on"+D(t)]||e["".concat(t,"Once")]||e["".concat(t,"Capture")]||e["".concat(t,"OnceCapture")]||e["".concat(t,"CaptureOnce")])}function pB(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];if(Array.isArray(e))for(const i of e)i(...n);else"function"==typeof e&&e(...n)}function fB(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=["button","[href]",'input:not([type="hidden"])',"select","textarea","[tabindex]"].map(e=>"".concat(e).concat(t?':not([tabindex="-1"])':"",":not([disabled])")).join(", ");return[...e.querySelectorAll(n)]}function mB(e,t,n){var a;let i,r=e.indexOf(document.activeElement);const o="next"===t?1:-1;do{r+=o,i=e[r]}while((!i||null==i.offsetParent||null!=(a=null==n?void 0:n(i))&&!a)&&r<e.length&&r>=0);return i}function vB(e,t){var n,a,i,r;const o=fB(e);if(null==t)e!==document.activeElement&&e.contains(document.activeElement)||null==(n=o[0])||n.focus();else if("first"===t)null==(a=o[0])||a.focus();else if("last"===t)null==(i=o.at(-1))||i.focus();else if("number"==typeof t)null==(r=o[t])||r.focus();else{const n=mB(o,t);n?n.focus():vB(e,"next"===t?"first":"last")}}function gB(e){return null==e||"string"==typeof e&&""===e.trim()}function yB(){}function bB(e,t){if(!(yL&&"undefined"!=typeof CSS&&void 0!==CSS.supports&&CSS.supports("selector(".concat(t,")"))))return null;try{return!!e&&e.matches(t)}catch(n){return null}}function _B(e){return e.some(e=>!fo(e)||e.type!==no&&(e.type!==eo||_B(e.children)))?e:null}function wB(e,t,n){var a;return null!=(a=null==e?void 0:e(t))?a:null==n?void 0:n(t)}function kB(){const e=rn(),t=t=>{e.value=t};return Object.defineProperty(t,"value",{enumerable:!0,get:()=>e.value,set:t=>e.value=t}
4954),Object.defineProperty(t,"el",{enumerable:!0,get:()=>LL(e.value)}),t}function CB(e){const t=1===e.key.length,n=!e.ctrlKey&&!e.metaKey&&!e.altKey;return t&&n}function SB(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||"bigint"==typeof e}function TB(e){return"\\^$*+?.()|{}[]".includes(e)?"\\".concat(e):e}const AB=["top","bottom"],EB=["start","end","left","right"];function IB(e,t){let[n,a]=e.split(" ");return a||(a=uB(AB,n)?"start":uB(EB,n)?"top":"center"),{side:xB(n,t),align:xB(a,t)}}function xB(e,t){return"start"===e?t?"right":"left":"end"===e?t?"left":"right":e}function NB(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function PB(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function MB(e){return{side:e.align,align:e.side}}function OB(e){return uB(AB,e.side)?"y":"x"}class RB{constructor(e){var t;const n=null!=(t=document.body.currentCSSZoom)?t:1,a=e instanceof DOMRect?1+(1-n)/n:1,{x:i,y:r,width:o,height:s}=e;this.x=i*a,this.y=r*a,this.width=o*a,this.height=s*a}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function DB(e,t){return{x:{before:Math.max(0,t.left-e.left),after:Math.max(0,e.right-t.right)},y:{before:Math.max(0,t.top-e.top),after:Math.max(0,e.bottom-t.bottom)}}}function LB(e){var t;if(Array.isArray(e)){const n=null!=(t=document.body.currentCSSZoom)?t:1,a=1+(1-n)/n;return new RB({x:e[0]*a,y:e[1]*a,width:0*a,height:0*a})}return new RB(e.getBoundingClientRect())}function BB(e){const t=new RB(e.getBoundingClientRect()),n=getComputedStyle(e),a=n.transform;if(a){let i,r,o,s,l;if(a.startsWith("matrix3d("))i=a.slice(9,-1).split(/, /),r=Number(i[0]),o=Number(i[5]),s=Number(i[12]),l=Number(i[13]);else{if(!a.startsWith("matrix("))return new RB(t);i=a.slice(7,-1).split(/, /),r=Number(i[0]),o=Number(i[3]),s=Number(i[4]),l=Number(i[5])}const u=n.transformOrigin,c=t.x-s-(1-r)*parseFloat(u),d=t.y-l-(1-o)*parseFloat(u.slice(u.indexOf(" ")+1)),h=r?t.width/r:e.offsetWidth+1,p=o?t.height/o:e.offsetHeight+1;return new RB({x:c,y:d,width:h,height:p})}return new RB(t)}function FB(e,t,n){if(void 0===e.animate)return{finished:Promise.resolve()};let a;try{a=e.animate(t,n)}catch(i){return{finished:Promise.resolve()}}return void 0===a.finished&&(a.finished=new Promise(e=>{a.onfinish=()=>{e(a)}})),a}const VB=new WeakMap;const XB=2.4,jB=.2126729,UB=.7151522,HB=.072175,zB=.03,KB=12.82051282051282,WB=.06;function GB(e,t){const n=(e.r/255)**XB,a=(e.g/255)**XB,i=(e.b/255)**XB,r=(t.r/255)**XB,o=(t.g/255)**XB,s=(t.b/255)**XB;let l,u=n*jB+a*UB+i*HB,c=r*jB+o*UB+s*HB;if(u<=zB&&(u+=(zB-u)**1.45),c<=zB&&(c+=(zB-c)**1.45),Math.abs(c-u)<5e-4)return 0;if(c>u){const e=1.25*(c**.55-u**.58);l=e<.001?0:e<.078?e-e*KB*WB:e-WB}else{const e=1.25*(c**.62-u**.57);l=e>-.001?0:e>-.078?e-e*KB*WB:e+WB}return 100*l}function qB(e,t){t=Array.isArray(t)?t.slice(0,-1).map(e=>"'".concat(e,"'")).join(", ")+" or '".concat(t.at(-1),"'"):"'".concat(t,"'")}const $B=.20689655172413793,YB=e=>e>$B**3?Math.cbrt(e):e/(3*$B**2)+4/29,JB=e=>e>$B?e**3:3*$B**2*(e-4/29);function QB(e){const t=YB,n=t(e[1]);return[116*n-16,500*(t(e[0]/.95047)-n),200*(n-t(e[2]/1.08883))]}function ZB(e){const t=JB,n=(e[0]+16)/116;return[.95047*t(n+e[1]/500),t(n),1.08883*t(n-e[2]/200)]}const eF=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],tF=e=>e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055,nF=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],aF=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function iF(e){const t=Array(3),n=tF,a=eF;for(let i=0;i<3;++i)t[i]=Math.round(255*YL(n(a[i][0]*e[0]+a[i][1]*e[1]+a[i][2]*e[2])));return{r:t[0],g:t[1],b:t[2]}}function rF(e){let{r:t,g:n,b:a}=e;const i=[0,0,0],r=aF,o=nF;t=r(t/255),n=r(n/255),a=r(a/255);for(let s=0;s<3;++s)i[s]=o[s][0]*t+o[s][1]*n+o[s][2]*a;return i}function oF(e){return!!e&&/^(#|var\(--|(rgb|hsl)a?\()/.test(e)}const sF=new RegExp("^(?<fn>(?:rgb|hsl)a?)\\((?<values>.+)\\)"),lF={rgb:(e,t,n,a)=>({r:e,g:t,b:n,a:a}),rgba:(e,t,n,a)=>({r:e,g:t,b:n,a:a}),hsl:(e,t,n,a)=>dF({h:e,s:t,l:n,a:a}),hsla:(e,t,n,a)=>dF({h:e,s:t,l:n,a:a}),hsv:(e,t,n,a)=>cF({h:e,s:t,v:n,a:a}),hsva:(e,t,n,a)=>cF({h:e,s:t,v:n,a:a})};function uF(e){if("number"==typeof e)return{r:(16711680&e)>>
495416,g:(65280&e)>>8,b:255&e};if("string"==typeof e&&sF.test(e)){const{groups:t}=e.match(sF),{fn:n,values:a}=t,i=a.split(/,\s*|\s*\/\s*|\s+/).map((e,t)=>e.endsWith("%")||t>0&&t<3&&["hsl","hsla","hsv","hsva"].includes(n)?parseFloat(e)/100:parseFloat(e));return lF[n](...i)}if("string"==typeof e){let t=e.startsWith("#")?e.slice(1):e;return[3,4].includes(t.length)?t=t.split("").map(e=>e+e).join(""):[6,8].includes(t.length),bF(t)}if("object"==typeof e){if(VL(e,["r","g","b"]))return e;if(VL(e,["h","s","l"]))return cF(fF(e));if(VL(e,["h","s","v"]))return cF(e)}throw new TypeError("Invalid color: ".concat(null==e?e:String(e)||e.constructor.name,"\nExpected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number"))}function cF(e){const{h:t,s:n,v:a,a:i}=e,r=e=>{const i=(e+t/60)%6;return a-a*n*Math.max(Math.min(i,4-i,1),0)},o=[r(5),r(3),r(1)].map(e=>Math.round(255*e));return{r:o[0],g:o[1],b:o[2],a:i}}function dF(e){return cF(fF(e))}function hF(e){if(!e)return{h:0,s:1,v:1,a:1};const t=e.r/255,n=e.g/255,a=e.b/255,i=Math.max(t,n,a),r=Math.min(t,n,a);let o=0;i!==r&&(i===t?o=60*(0+(n-a)/(i-r)):i===n?o=60*(2+(a-t)/(i-r)):i===a&&(o=60*(4+(t-n)/(i-r)))),o<0&&(o+=360);const s=[o,0===i?0:(i-r)/i,i];return{h:s[0],s:s[1],v:s[2],a:e.a}}function pF(e){const{h:t,s:n,v:a,a:i}=e,r=a-a*n/2;return{h:t,s:1===r||0===r?0:(a-r)/Math.min(r,1-r),l:r,a:i}}function fF(e){const{h:t,s:n,l:a,a:i}=e,r=a+n*Math.min(a,1-a);return{h:t,s:0===r?0:2-2*a/r,v:r,a:i}}function mF(e){let{r:t,g:n,b:a,a:i}=e;return void 0===i?"rgb(".concat(t,", ").concat(n,", ").concat(a,")"):"rgba(".concat(t,", ").concat(n,", ").concat(a,", ").concat(i,")")}function vF(e){return mF(cF(e))}function gF(e){const t=Math.round(e).toString(16);return("00".substr(0,2-t.length)+t).toUpperCase()}function yF(e){let{r:t,g:n,b:a,a:i}=e;return"#".concat([gF(t),gF(n),gF(a),void 0!==i?gF(Math.round(255*i)):""].join(""))}function bF(e){e=function(e){e.startsWith("#")&&(e=e.slice(1));e=e.replace(/([^0-9a-f])/gi,"F"),(3===e.length||4===e.length)&&(e=e.split("").map(e=>e+e).join(""));6!==e.length&&(e=QL(QL(e,6),8,"F"));return e}(e);let[t,n,a,i]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=[];let a=0;for(;a<e.length;)n.push(e.substr(a,t)),a+=t;return n}(e,2).map(e=>parseInt(e,16));return i=void 0===i?i:i/255,{r:t,g:n,b:a,a:i}}function _F(e){return yF(cF(e))}function wF(e,t){const n=QB(rF(e));return n[0]=n[0]+10*t,iF(ZB(n))}function kF(e,t){const n=QB(rF(e));return n[0]=n[0]-10*t,iF(ZB(n))}function CF(e){return rF(uF(e))[1]}function SF(e,t){const n=CF(e),a=CF(t);return(Math.max(n,a)+.05)/(Math.min(n,a)+.05)}function TF(e){const t=Math.abs(GB(uF(0),uF(e)));return Math.abs(GB(uF(16777215),uF(e)))>Math.min(t,50)?"#fff":"#000"}function AF(e,t){return n=>Object.keys(e).reduce((a,i)=>{const r="object"==typeof e[i]&&null!=e[i]&&!Array.isArray(e[i])?e[i]:{type:e[i]};return a[i]=n&&i in n?{...r,default:n[i]}:r,t&&!a[i].source&&(a[i].source=t),a},{})}const EF=AF({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},"component");function IF(e,t){const n=Ro();if(!n)throw new Error("[Vuetify] ".concat(e," ").concat("must be called from inside a setup function"));return n}function xF(){const e=IF(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"composables").type;return aB((null==e?void 0:e.aliasName)||(null==e?void 0:e.name))}const NF=Symbol.for("vuetify:defaults");function PF(){const e=nr(NF);if(!e)throw new Error("[Vuetify] Could not find defaults instance");return e}function MF(e,t){const n=PF(),a=an(e),i=Zo(()=>{if(ln(null==t?void 0:t.disabled))return n.value;const e=ln(null==t?void 0:t.scoped),i=ln(null==t?void 0:t.reset),r=ln(null==t?void 0:t.root);if(null==a.value&&!(e||i||r))return n.value;let o=tB(a.value,{prev:n.value});if(e)return o;if(i||r){const e=Number(i||1/0);for(let t=0;t<=e&&(o&&"prev"in o);t++)o=o.prev;return o&&"string"==typeof r&&r in o&&(o=tB(tB(o,{prev:o}),o[r])),o}return o.prev?tB(o.prev,o):o});return tr(NF,i),i}function OF(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:PF();const i=IF("useDefaults");if(n=null!=(e=null!=n?n:i.type.name)?e:i.type.__name,!n)throw new Error("[Vuetify] Could not determine component name");const r=Zo(()=>{var e,i;return null==(i=a.value)?void 0:i[null!=(e=t._as)?e:n]}),o=new Proxy(t,{get(e,t){var n,o,s,l;const u=Reflect.get(e,t);if("class"===t||"style"===t)return[null==(n=r.value)?void 0:n[t],u].filter(e=>null!=e);if(function(e,t){return e.props&&(void 0!==e.props[t]||void 0!==e.props[aB(t)])}(i.vnode,t))return u;const c=null==(o=r.value)?void 0:o[t];if(void 0!==c)return c;const d=null==(l=null==(s=a.value)?void 0:s.global)?void 0:l[t];return void 0!==d?d:u}}),s=rn();return Nr(()=>{if(r.value){const e=Object.entries(r.value).filter(e=>{let[t]=e;return t.startsWith(t[0].toUpperCase())});s.value=e.length?Object.fromEntries(e):void 0}else s.value=void 0}),{props:o,provideSubDefaults:function(){const e=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:IF("injectSelf");const{provides:n}=t;if(n&&e in n)return n[e]}(NF,i);tr(NF,Zo(()=>{var t;return s.value?tB(null!=(t=null==e?void 0:e.value)?t:{},s.value):null==e?void 0:e.value}))}}}function RF(e){var t,n;if(e._setup=null!=(t=e._setup)?t:e.setup,!e.name)return e;if(e._setup){e.props=AF(null!=(n=e.props)?n:{},e.name)();const t=Object.keys(e.props).filter(e=>"class"!==e&&"style"!==e);e.filterProps=function(e){return XL(e,t)},e.props._as=String,e.setup=function(t,n){var a;const i=PF();if(!i.value)return e._setup(t,n);const{props:r,provideSubDefaults:o}=OF(t,null!=(a=t._as)?a:e.name,i),s=e._setup(r,n);return o(),s}}return e}function DF(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return t=>(e?RF:Na)(t)}function LF(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"div",n=arguments.length>2?arguments[2]:void 0;return DF()({name:null!=n?n:D(M(e.replace(/__/g,"-"))),props:{tag:{type:String,default:t},...EF()},setup(t,n){let{slots:a}=n;return()=>{var n;return es(t.tag,{class:[e,t.class],style:t.style},null==(n=a.default)?void 0:n.call(a))}}})}function BF(e){if("function"!=typeof e.getRootNode){for(;e.parentNode;)e=e.parentNode;
4954return e!==document?null:document}const t=e.getRootNode();return t!==document&&t.getRootNode({composed:!0})!==document?null:t}const FF="cubic-bezier(0.4, 0, 0.2, 1)",VF="cubic-bezier(0.0, 0, 0.2, 1)",XF="cubic-bezier(0.4, 0, 1, 1)",jF={linear:e=>e,easeInQuad:e=>e**2,easeOutQuad:e=>e*(2-e),easeInOutQuad:e=>e<.5?2*e**2:(4-2*e)*e-1,easeInCubic:e=>e**3,easeOutCubic:e=>--e**3+1,easeInOutCubic:e=>e<.5?4*e**3:(e-1)*(2*e-2)*(2*e-2)+1,easeInQuart:e=>e**4,easeOutQuart:e=>1- --e**4,easeInOutQuart:e=>e<.5?8*e**4:1-8*--e**4,easeInQuint:e=>e**5,easeOutQuint:e=>1+--e**5,easeInOutQuint:e=>e<.5?16*e**5:1+16*--e**5,instant:e=>1};function UF(e,t,n){return Object.keys(e).filter(e=>zL(e)&&e.endsWith(t)).reduce((a,i)=>(a[i.slice(0,-t.length)]=t=>pB(e[i],t,n(t)),a),{})}function HF(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(;e;){if(t?WF(e):KF(e))return e;e=e.parentElement}return document.scrollingElement}function zF(e,t){const n=[];if(t&&e&&!t.contains(e))return n;for(;e&&(KF(e)&&n.push(e),e!==t);)e=e.parentElement;return n}function KF(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e),n="scroll"===t.overflowY||"auto"===t.overflowY&&e.scrollHeight>e.clientHeight,a="scroll"===t.overflowX||"auto"===t.overflowX&&e.scrollWidth>e.clientWidth;return n||a}function WF(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return["scroll","auto"].includes(t.overflowY)}function GF(e){IF("useRender").render=e}function qF(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e=>e,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:e=>e;const r=IF("useProxiedModel"),o=an(void 0!==e[t]?e[t]:n),s=aB(t),l=Zo(s!==t?()=>{var n,a,i,o;return e[t],!(!(null==(n=r.vnode.props)?void 0:n.hasOwnProperty(t))&&!(null==(a=r.vnode.props)?void 0:a.hasOwnProperty(s))||!(null==(i=r.vnode.props)?void 0:i.hasOwnProperty("onUpdate:".concat(t)))&&!(null==(o=r.vnode.props)?void 0:o.hasOwnProperty("onUpdate:".concat(s))))}:()=>{var n,a;return e[t],!(!(null==(n=r.vnode.props)?void 0:n.hasOwnProperty(t))||!(null==(a=r.vnode.props)?void 0:a.hasOwnProperty("onUpdate:".concat(t))))});gL(()=>!l.value,()=>{Mr(()=>e[t],e=>{o.value=e})});const u=Zo({get(){const n=e[t];return a(l.value?n:o.value)},set(n){const s=i(n),u=Qt(l.value?e[t]:o.value);u!==s&&a(u)!==n&&(o.value=s,null==r||r.emit("update:".concat(t),s))}});return Object.defineProperty(u,"externalValue",{get:()=>l.value?e[t]:o.value}),u}const $F={badge:"Badge",open:"Open",close:"Close",dismiss:"Dismiss",confirmEdit:{ok:"OK",cancel:"Cancel"},dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"},ariaLabel:{previousMonth:"Previous month",nextMonth:"Next month",selectYear:"Select year",selectDate:"{0}",currentDate:"Today, {0}"}},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},fileUpload:{title:"Drag and drop files here",divider:"or",browse:"Browse Files"},timePicker:{am:"AM",pm:"PM",title:"Select Time"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"},rules:{required:"This field is required",email:"Please enter a valid email",number:"This field can only contain numbers",
4954integer:"This field can only contain integer values",capital:"This field can only contain uppercase letters",maxLength:"You must enter a maximum of {0} characters",minLength:"You must enter a minimum of {0} characters",strictLength:"The length of the entered field is invalid",exclude:"The {0} character is not allowed",notEmpty:"Please choose at least one value",pattern:"Invalid format"},hotkey:{then:"then",ctrl:"Ctrl",command:"Command",space:"Space",shift:"Shift",alt:"Alt",enter:"Enter",escape:"Escape",upArrow:"Up Arrow",downArrow:"Down Arrow",leftArrow:"Left Arrow",rightArrow:"Right Arrow",backspace:"Backspace",option:"Option",plus:"plus",shortcut:"Keyboard shortcut: {0}"},video:{play:"Play",pause:"Pause",seek:"Seek",volume:"Volume",showVolume:"Show volume control",mute:"Mute",unmute:"Unmute",enterFullscreen:"Full screen",exitFullscreen:"Exit full screen"},colorPicker:{ariaLabel:{eyedropper:"Select color with eyedropper",hueSlider:"Hue",alphaSlider:"Alpha",redInput:"Red value",greenInput:"Green value",blueInput:"Blue value",alphaInput:"Alpha value",hueInput:"Hue value",saturationInput:"Saturation value",lightnessInput:"Lightness value",hexInput:"HEX value",hexaInput:"HEX with alpha value",changeFormat:"Change color format"}}},YF="$vuetify.",JF=(e,t)=>e.replace(/\{(\d+)\}/g,(e,n)=>String(t[Number(n)])),QF=(e,t,n)=>function(a){for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];if(!a.startsWith(YF))return JF(a,r);const s=a.replace(YF,""),l=e.value&&n.value[e.value],u=t.value&&n.value[t.value];let c=NL(l,s,null);return c||('Translation key "'.concat(a,'" not found in "').concat(e.value,'", trying fallback locale'),c=NL(u,s,null)),c||(c=a),"string"!=typeof c&&(c=a),JF(c,r)};function ZF(e,t){return(n,a)=>new Intl.NumberFormat([e.value,t.value],a).format(n)}function eV(e,t){return ZF(e,t)(.1).includes(",")?",":"."}function tV(e,t,n){var a,i;const r=qF(e,t,null!=(a=e[t])?a:n.value);return r.value=null!=(i=e[t])?i:n.value,Mr(n,a=>{null==e[t]&&(r.value=n.value)}),r}function nV(e){return t=>{const n=tV(t,"locale",e.current),a=tV(t,"fallback",e.fallback),i=tV(t,"messages",e.messages);return{name:"vuetify",current:n,fallback:a,messages:i,decimalSeparator:gn(()=>eV(n,a)),t:QF(n,a,i),n:ZF(n,a),provide:nV({current:n,fallback:a,messages:i})}}}const aV=Symbol.for("vuetify:locale");function iV(e){const t=(null==e?void 0:e.adapter)&&null!=(null==e?void 0:e.adapter).name?null==e?void 0:e.adapter:function(e){var t,n;const a=rn(null!=(t=null==e?void 0:e.locale)?t:"en"),i=rn(null!=(n=null==e?void 0:e.fallback)?n:"en"),r=an({en:$F,...null==e?void 0:e.messages});return{name:"vuetify",current:a,fallback:i,messages:r,decimalSeparator:gn(()=>{var t;return null!=(t=null==e?void 0:e.decimalSeparator)?t:eV(a,i)}),t:QF(a,i,r),n:ZF(a,i),provide:nV({current:a,fallback:i,messages:r})}}(e);const n=function(e,t){var n;const a=an(null!=(n=null==t?void 0:t.rtl)?n:{af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,km:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1}),i=Zo(()=>{var t;return null!=(t=a.value[e.current.value])&&t});return{isRtl:i,rtl:a,rtlClasses:gn(()=>"v-locale--is-".concat(i.value?"rtl":"ltr"))}}(t,e);return{...t,...n}}function rV(){const e=nr(aV);if(!e)throw new Error("[Vuetify] Could not find injected locale instance");return e}function oV(e){const t=nr(aV);if(!t)throw new Error("[Vuetify] Could not find injected locale instance");const n=t.provide(e),a=function(e,t,n){const a=Zo(()=>{var a,i;return null!=(i=null!=(a=n.rtl)?a:t.value[e.current.value])&&i});return{isRtl:a,rtl:t,rtlClasses:gn(()=>"v-locale--is-".concat(a.value?"rtl":"ltr"))}}(n,t.rtl,e),i={...n,...a};return tr(aV,i),i}function sV(){const e=nr(aV);if(!e)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:e.isRtl,rtlClasses:e.rtlClasses}}function lV(e){const t=e.slice(-2).toUpperCase();switch(!0){case"GB-alt-variant"===e:return{firstDay:0,firstWeekSize:4};case"001"===e:return{firstDay:1,firstWeekSize:1};case"AG AS BD BR BS BT BW BZ CA CO DM DO ET GT GU HK HN ID IL IN JM JP KE\n    KH KR LA MH MM MO MT MX MZ NI NP PA PE PH PK PR PY SA SG SV TH TT TW UM US\n    VE VI WS YE ZA ZW".includes(t):return{firstDay:0,firstWeekSize:1};case"AI AL AM AR AU AZ BA BM BN BY CL CM CN CR CY EC GE HR KG KZ LB LK LV\n    MD ME MK MN MY NZ RO RS SI TJ TM TR UA UY UZ VN XK".includes(t):return{firstDay:1,firstWeekSize:1};case"AD AN AT AX BE BG CH CZ DE DK EE ES FI FJ FO FR GB GF GP GR HU IE IS\n    IT LI LT LU MC MQ NL NO PL RE RU SE SK SM VA".includes(t):return{firstDay:1,firstWeekSize:4};
4954case"AE AF BH DJ DZ EG IQ IR JO KW LY OM QA SD SY".includes(t):return{firstDay:6,firstWeekSize:1};case"MV"===t:return{firstDay:5,firstWeekSize:1};case"PT"===t:return{firstDay:0,firstWeekSize:4};default:return null}}function uV(e,t,n){var a,i;let r=(null!=(i=null!=n?n:null==(a=lV(t))?void 0:a.firstDay)?i:0)%7;[0,1,2,3,4,5,6].includes(r)||(r=0);const o=new Date(e);for(;o.getDay()!==r;)o.setDate(o.getDate()-1);return o}function cV(e){return new Date(e.getFullYear(),e.getMonth(),1)}function dV(e){return new Date(e.getFullYear(),e.getMonth()+1,0)}const hV=/^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/;function pV(e){if(null==e)return new Date;if(e instanceof Date)return e;if("string"==typeof e){let t;if(hV.test(e))return function(e){const t=e.split("-").map(Number);return new Date(t[0],t[1]-1,t[2])}(e);if(t=Date.parse(e),!isNaN(t))return new Date(t)}return null}const fV=new Date(2e3,0,2);function mV(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function vV(e){return e.getFullYear()}function gV(e,t,n,a){var i,r;const o=lV(t),s=null!=(i=null!=n?n:null==o?void 0:o.firstDay)?i:0,l=null!=(r=null==o?void 0:o.firstWeekSize)?r:1;return void 0!==a?function(e,t,n,a){const i=(7+a-n)%7,r=uV(e,t,n),o=mV(r,6);function s(e){return(7+new Date(e,0,1).getDay()-n)%7}let l=vV(e);l<vV(o)&&s(l+1)<=i&&l++;const u=new Date(l,0,1),c=s(l),d=mV(u,c<=i?-c:7-c);return 1+_V(kV(e),wV(d),"weeks")}(e,t,s,a):function(e,t,n,a){const i=mV(uV(e,t,n),6);function r(e){const a=new Date(e,0,1);return 7-_V(a,uV(a,t,n),"days")}let o=vV(e);o<vV(i)&&r(o+1)>=a&&o++;const s=new Date(o,0,1),l=r(o),u=mV(s,l>=a?l-7:l);return 1+_V(kV(e),wV(u),"weeks")}(e,t,s,l)}function yV(e,t){return e.getTime()>t.getTime()}function bV(e,t){return e.getTime()===t.getTime()}function _V(e,t,n){const a=new Date(e),i=new Date(t);switch(n){case"years":return a.getFullYear()-i.getFullYear();case"quarters":return Math.floor((a.getMonth()-i.getMonth()+12*(a.getFullYear()-i.getFullYear()))/4);case"months":return a.getMonth()-i.getMonth()+12*(a.getFullYear()-i.getFullYear());case"weeks":return Math.floor((a.getTime()-i.getTime())/6048e5);case"days":return Math.floor((a.getTime()-i.getTime())/864e5);case"hours":return Math.floor((a.getTime()-i.getTime())/36e5);case"minutes":return Math.floor((a.getTime()-i.getTime())/6e4);case"seconds":return Math.floor((a.getTime()-i.getTime())/1e3);default:return a.getTime()-i.getTime()}}function wV(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0)}function kV(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,999)}class CV{constructor(e){this.locale=e.locale,this.formats=e.formats}date(e){return pV(e)}toJsDate(e){return e}toISO(e){return function(e,t){const n=e.toJsDate(t),a=n.getFullYear(),i=ZL(String(n.getMonth()+1),2,"0"),r=ZL(String(n.getDate()),2,"0");return"".concat(a,"-").concat(i,"-").concat(r)}(this,e)}parseISO(e){return function(e){const[t,n,a]=e.split("-").map(Number);return new Date(t,n-1,a)}(e)}addMinutes(e,t){return function(e,t){const n=new Date(e);return n.setMinutes(n.getMinutes()+t),n}(e,t)}addHours(e,t){return function(e,t){const n=new Date(e);return n.setHours(n.getHours()+t),n}(e,t)}addDays(e,t){return mV(e,t)}addWeeks(e,t){return function(e,t){const n=new Date(e);return n.setDate(n.getDate()+7*t),n}(e,t)}addMonths(e,t){return function(e,t){const n=new Date(e);return n.setDate(1),n.setMonth(n.getMonth()+t),n}(e,t)}getWeekArray(e,t){const n=void 0!==t?Number(t):void 0;return function(e,t,n){var a,i;const r=[];let o=[];const s=cV(e),l=dV(e),u=null!=(i=null!=n?n:null==(a=lV(t))?void 0:a.firstDay)?i:0,c=(s.getDay()-u+7)%7,d=(l.getDay()-u+7)%7;for(let h=0;h<c;h++){const e=new Date(s);e.setDate(e.getDate()-(c-h)),o.push(e)}for(let h=1;h<=l.getDate();h++){const t=new Date(e.getFullYear(),e.getMonth(),h);o.push(t),7===o.length&&(r.push(o),o=[])}for(let h=1;h<7-d;h++){const e=new Date(l);e.setDate(e.getDate()+h),o.push(e)}return o.length>0&&r.push(o),r}(e,this.locale,n)}startOfWeek(e,t){const n=void 0!==t?Number(t):void 0;return uV(e,this.locale,n)}endOfWeek(e){return function(e,t){var n,a;const i=new Date(e),r=((null!=(a=null==(n=lV(t))?void 0:n.firstDay)?a:0)+6)%7;for(;i.getDay()!==r;)i.setDate(i.getDate()+1);return i}(e,this.locale)}startOfMonth(e){return cV(e)}endOfMonth(e){return dV(e)}format(e,t){return function(e,t,n,a){var i;const r=null!=(i=pV(e))?i:new Date,o=null==a?void 0:a[t];if("function"==typeof o)return o(r,t,n);let s={};switch(t){case"fullDate":s={year:"numeric",month:"short",day:"numeric"};break;case"fullDateWithWeekday":s={weekday:"long",year:"numeric",month:"long",day:"numeric"};break;case"normalDate":const e=r.getDate(),t=new Intl.DateTimeFormat(n,{month:"long"}).format(r);return"".concat(e," ").concat(t);case"normalDateWithWeekday":s={weekday:"short",day:"numeric",month:"short"};break;case"shortDate":s={month:"short",day:"numeric"};break;case"year":s={year:"numeric"};break;case"month":s={month:"long"};break;case"monthShort":s={month:"short"};break;case"monthAndYear":s={month:"long",year:"numeric"};break;case"monthAndDate":s={month:"long",day:"numeric"};break;case"weekday":s={weekday:"long"};break;case"weekdayShort":s={weekday:"short"};break;case"dayOfMonth":return new Intl.NumberFormat(n).format(r.getDate());case"hours12h":s={hour:"numeric",hour12:!0};break;case"hours24h":s={hour:"numeric",hour12:!1};break;case"minutes":s={minute:"numeric"};break;case"seconds":s={second:"numeric"};break;case"fullTime":s={hour:"numeric",minute:"numeric"};break;case"fullTime12h":s={hour:"numeric",minute:"numeric",hour12:!0};break;case"fullTime24h":s={hour:"numeric",minute:"numeric",hour12:!1};break;case"fullDateTime":s={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"};break;case"fullDateTime12h":s={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",hour12:!0};break;case"fullDateTime24h":s={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",hour12:!1};break;case"keyboardDate":s={year:"numeric",month:"2-digit",day:"2-digit"};break;case"keyboardDateTime":return s={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric"},new Intl.DateTimeFormat(n,s).format(r).replace(/, /g," ");case"keyboardDateTime12h":return s={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",hour12:!0},new Intl.DateTimeFormat(n,s).format(r).replace(/, /g," ");case"keyboardDateTime24h":return s={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",hour12:!1},new Intl.DateTimeFormat(n,s).format(r).replace(/, /g," ");default:s=null!=o?o:{timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(n,s).format(r)}(e,t,this.locale,this.formats)}isEqual(e,t){return bV(e,t)}isValid(e){return function(e){const t=new Date(e);return t instanceof Date&&!isNaN(t.getTime())}(e)}isWithinRange(e,t){return function(e,t){return yV(e,t[0])&&function(e,t){return e.getTime()<t.getTime()}(e,t[1])}(e,t)}isAfter(e,t){return yV(e,t)}isAfterDay(e,t){return function(e,t){return yV(wV(e),wV(t))}(e,t)}isBefore(e,t){return!yV(e,t)&&!bV(e,t)}isSameDay(e,t){return function(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}(e,t)}isSameMonth(e,t){return function(e,t){return e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}(e,t)}isSameYear(e,t){return function(e,t){return e.getFullYear()===t.getFullYear()}(e,t)}setMinutes(e,t){return function(e,t){const n=new Date(e);return n.setMinutes(t),n}(e,t)}setHours(e,t){return function(e,t){const n=new Date(e);return n.setHours(t),n}(e,t)}setMonth(e,t){return function(e,t){const n=new Date(e);return n.setMonth(t),n}(e,t)}setDate(e,t){return function(e,t){const n=new Date(e);return n.setDate(t),n}(e,t)}setYear(e,t){return function(e,t){const n=new Date(e);return n.setFullYear(t),n}(e,t)}getDiff(e,t,n){return _V(e,t,n)}getWeekdays(e,t){const n=void 0!==e?Number(e):void 0;return function(e,t,n){var a,i;const r=null!=(i=null!=t?t:null==(a=lV(e))?void 0:a.firstDay)?i:0;return ML(7).map(t=>{const a=new Date(fV);return a.setDate(fV.getDate()+r+t),new Intl.DateTimeFormat(e,{weekday:null!=n?n:"narrow"}).format(a)})}(this.locale,n,t)}getYear(e){return vV(e)}getMonth(e){return function(e){return e.getMonth()}(e)}getWeek(e,t,n){const a=void 0!==t?Number(t):void 0,i=void 0!==n?Number(n):void 0;return gV(e,this.locale,a,i)}getDate(e){return function(e){return e.getDate()}(e)}getNextMonth(e){return function(e){return new Date(e.getFullYear(),e.getMonth()+1,
49541)}(e)}getPreviousMonth(e){return function(e){return new Date(e.getFullYear(),e.getMonth()-1,1)}(e)}getHours(e){return function(e){return e.getHours()}(e)}getMinutes(e){return function(e){return e.getMinutes()}(e)}startOfDay(e){return wV(e)}endOfDay(e){return kV(e)}startOfYear(e){return function(e){return new Date(e.getFullYear(),0,1)}(e)}endOfYear(e){return function(e){return new Date(e.getFullYear(),11,31)}(e)}}const SV=Symbol.for("vuetify:date-options"),TV=Symbol.for("vuetify:date-adapter");function AV(e,t){var n;const a=Ht("function"==typeof e.adapter?new e.adapter({locale:null!=(n=e.locale[t.current.value])?n:t.current.value,formats:e.formats}):e.adapter);return Mr(t.current,t=>{var n,i;a.locale=null!=(i=null!=(n=e.locale[t])?n:t)?i:a.locale}),a}function EV(){const e=nr(SV);if(!e)throw new Error("[Vuetify] Could not find injected date options");return AV(e,rV())}const IV=["sm","md","lg","xl","xxl"],xV=Symbol.for("vuetify:display"),NV={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}};function PV(e){return yL&&!e?window.innerWidth:"object"==typeof e&&e.clientWidth||0}function MV(e){return yL&&!e?window.innerHeight:"object"==typeof e&&e.clientHeight||0}function OV(e){const t=yL&&!e?window.navigator.userAgent:"ssr";function n(e){return Boolean(t.match(e))}return{android:n(/android/i),ios:n(/iphone|ipad|ipod/i),cordova:n(/cordova/i),electron:n(/electron/i),chrome:n(/chrome/i),edge:n(/edge/i),firefox:n(/firefox/i),opera:n(/opera/i),win:n(/win/i),mac:n(/mac/i),linux:n(/linux/i),touch:_L,ssr:"ssr"===t}}function RV(e,t){const{thresholds:n,mobileBreakpoint:a}=function(){return tB(NV,arguments.length>0&&void 0!==arguments[0]?arguments[0]:NV)}(e),i=rn(MV(t)),r=rn(OV(t)),o=Ht({}),s=rn(PV(t));function l(){i.value=MV(),s.value=PV()}return Nr(()=>{const e=s.value<n.sm,t=s.value<n.md&&!e,l=s.value<n.lg&&!(t||e),u=s.value<n.xl&&!(l||t||e),c=s.value<n.xxl&&!(u||l||t||e),d=s.value>=n.xxl,h=e?"xs":t?"sm":l?"md":u?"lg":c?"xl":"xxl",p="number"==typeof a?a:n[a],f=s.value<p;o.xs=e,o.sm=t,o.md=l,o.lg=u,o.xl=c,o.xxl=d,o.smAndUp=!e,o.mdAndUp=!(e||t),o.lgAndUp=!(e||t||l),o.xlAndUp=!(e||t||l||u),o.smAndDown=!(l||u||c||d),o.mdAndDown=!(u||c||d),o.lgAndDown=!(c||d),o.xlAndDown=!d,o.name=h,o.height=i.value,o.width=s.value,o.mobile=f,o.mobileBreakpoint=a,o.platform=r.value,o.thresholds=n}),yL&&(window.addEventListener("resize",l,{passive:!0}),De(()=>{window.removeEventListener("resize",l)},!0)),{...fn(o),update:function(){l(),r.value=OV()},ssr:!!t}}const DV=AF({mobile:{type:Boolean,default:!1},mobileBreakpoint:[Number,String]},"display");function LV(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{mobile:null},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xF();const n=nr(xV);if(!n)throw new Error("Could not find Vuetify display injection");const a=Zo(()=>!!e.mobile||("number"==typeof e.mobileBreakpoint?n.width.value<e.mobileBreakpoint:e.mobileBreakpoint?n.width.value<n.thresholds.value[e.mobileBreakpoint]:null===e.mobile&&n.mobile.value)),i=gn(()=>t?{["".concat(t,"--mobile")]:a.value}:{});return{...n,displayClasses:i,mobile:a}}const BV=Symbol.for("vuetify:goto");function FV(){return{container:void 0,duration:300,layout:!1,offset:0,easing:"easeInOutCubic",patterns:jF}}function VV(e){return"string"==typeof e?document.querySelector(e):LL(e)}function XV(e,t,n){if("number"==typeof e)return t&&n?-e:e;let a=VV(e),i=0;for(;a;)i+=t?a.offsetLeft:a.offsetTop,a=a.offsetParent;return i}async function jV(e,t,n,a){var i,r,o;const s=n?"scrollLeft":"scrollTop",l=tB(null!=(i=null==a?void 0:a.options)?i:FV(),t),u=null==a?void 0:a.rtl.value,c=null!=(r="number"==typeof e?e:VV(e))?r:0,d="parent"===l.container&&c instanceof HTMLElement?c.parentElement:function(e){var t;return null!=(t=VV(e))?t:document.scrollingElement||document.body}(l.container),h=CL()?l.patterns.instant:"function"==typeof l.easing?l.easing:l.patterns[l.easing];if(!h)throw new TypeError('Easing function "'.concat(l.easing,'" not found.'));let p;if("number"==typeof c)p=XV(c,n,u);else if(p=XV(c,n,u)-XV(d,n,u),l.layout){const e=window.getComputedStyle(c).getPropertyValue("--v-layout-top");e&&(p-=parseInt(e,10))}p+=l.offset,p=function(e,t,n,a){const{scrollWidth:i,scrollHeight:r}=e,[o,s]=e===document.scrollingElement?[window.innerWidth,window.innerHeight]:[e.offsetWidth,e.offsetHeight];let l,u;a?n?(l=-(i-o),u=0):(l=0,u=i-o):(l=0,u=r+-s);return YL(t,l,u)}(d,p,!!u,!!n);const f=null!=(o=d[s])?o:0;if(p===f)return Promise.resolve(p);const m=performance.now();return new Promise(e=>requestAnimationFrame(function t(n){const a=(n-m)/l.duration,i=Math.floor(f+(p-f)*h(YL(a,0,1)));return d[s]=i,a>=1&&Math.abs(i-d[s])<10?e(p):a>2?e(d[s]):void requestAnimationFrame(t)}))}const UV={collapse:"mdi-chevron-up",complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close-circle",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-alert-circle",error:"mdi-close-circle",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",s
4954ortAsc:"mdi-arrow-up",sortDesc:"mdi-arrow-down",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus",calendar:"mdi-calendar",treeviewCollapse:"mdi-menu-down",treeviewExpand:"mdi-menu-right",tableGroupCollapse:"mdi-chevron-down",tableGroupExpand:"mdi-chevron-right",eyeDropper:"mdi-eyedropper",upload:"mdi-cloud-upload",color:"mdi-palette",command:"mdi-apple-keyboard-command",ctrl:"mdi-apple-keyboard-control",space:"mdi-keyboard-space",shift:"mdi-apple-keyboard-shift",alt:"mdi-apple-keyboard-option",enter:"mdi-keyboard-return",arrowup:"mdi-arrow-up",arrowdown:"mdi-arrow-down",arrowleft:"mdi-arrow-left",arrowright:"mdi-arrow-right",backspace:"mdi-backspace",play:"mdi-play",pause:"mdi-pause",fullscreen:"mdi-fullscreen",fullscreenExit:"mdi-fullscreen-exit",volumeHigh:"mdi-volume-high",volumeMedium:"mdi-volume-medium",volumeLow:"mdi-volume-low",volumeOff:"mdi-volume-variant-off"},HV={component:e=>es(YV,{...e,class:"mdi"})},zV=[String,Function,Object,Array],KV=Symbol.for("vuetify:icons"),WV=AF({icon:{type:zV},tag:{type:[String,Object,Function],required:!0}},"icon"),GV=DF()({name:"VComponentIcon",props:WV(),setup(e,t){let{slots:n}=t;return()=>{const t=e.icon;return bo(e.tag,null,{default:()=>{var a;return[e.icon?bo(t,null,null):null==(a=n.default)?void 0:a.call(n)]}})}}}),qV=RF({name:"VSvgIcon",inheritAttrs:!1,props:WV(),setup(e,t){let{attrs:n}=t;return()=>bo(e.tag,Io(n,{style:null}),{default:()=>[yo("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(e.icon)?e.icon.map(e=>Array.isArray(e)?yo("path",{d:e[0],"fill-opacity":e[1]},null):yo("path",{d:e},null)):yo("path",{d:e.icon},null)])]})}}),$V=RF({name:"VLigatureIcon",props:WV(),setup:e=>()=>bo(e.tag,null,{default:()=>[e.icon]})}),YV=RF({name:"VClassIcon",props:WV(),setup:e=>()=>bo(e.tag,{class:ne(e.icon)},null)});function JV(e){var t;const n={svg:{component:qV},class:{component:YV}},a=null!=(t=null==e?void 0:e.defaultSet)?t:"mdi";return"mdi"!==a||n.mdi||(n.mdi=HV),tB({defaultSet:a,sets:n,aliases:{...UV,vuetify:["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z",["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z",.6]],"vuetify-outline":"svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z","vuetify-play":["m6.376 13.184-4.11-7.192C1.505 4.66 2.467 3 4.003 3h8.532l-.953 1.576-.006.01-.396.677c-.429.732-.214 1.507.194 2.015.404.503 1.092.878 1.869.806a3.72 3.72 0 0 1 1.005.022c.276.053.434.143.523.237.138.146.38.635-.25 2.09-.893 1.63-1.553 1.722-1.847 1.677-.213-.033-.468
4954-.158-.756-.406a4.95 4.95 0 0 1-.8-.927c-.39-.564-1.04-.84-1.66-.846-.625-.006-1.316.27-1.693.921l-.478.826-.911 1.506Z",["M9.093 11.552c.046-.079.144-.15.32-.148a.53.53 0 0 1 .43.207c.285.414.636.847 1.046 1.2.405.35.914.662 1.516.754 1.334.205 2.502-.698 3.48-2.495l.014-.028.013-.03c.687-1.574.774-2.852-.005-3.675-.37-.391-.861-.586-1.333-.676a5.243 5.243 0 0 0-1.447-.044c-.173.016-.393-.073-.54-.257-.145-.18-.127-.316-.082-.392l.393-.672L14.287 3h5.71c1.536 0 2.499 1.659 1.737 2.992l-7.997 13.996c-.768 1.344-2.706 1.344-3.473 0l-3.037-5.314 1.377-2.278.004-.006.004-.007.481-.831Z",.6]]}},e)}const QV=Symbol.for("vuetify:theme"),ZV=AF({theme:String},"theme");function eX(e,t,n,a){e.push("".concat(function(e,t){if(!t)return e;const n=":where(".concat(t,")");return":root"===e?n:"".concat(n," ").concat(e)}(t,a)," {\n"),...n.map(e=>"  ".concat(e,";\n")),"}\n")}function tX(e,t){const n=e.dark?2:1,a=e.dark?1:2,i=[];for(const[r,o]of Object.entries(e.colors)){const e=uF(o);i.push("--".concat(t,"theme-").concat(r,": ").concat(e.r,",").concat(e.g,",").concat(e.b)),r.startsWith("on-")||i.push("--".concat(t,"theme-").concat(r,"-overlay-multiplier: ").concat(CF(o)>.18?n:a))}for(const[r,o]of Object.entries(e.variables)){const e="string"==typeof o&&o.startsWith("#")?uF(o):void 0,n=e?"".concat(e.r,", ").concat(e.g,", ").concat(e.b):void 0;i.push("--".concat(t).concat(r,": ").concat(null!=n?n:o))}return i}function nX(e,t,n){const a={};if(n)for(const i of["lighten","darken"]){const r="lighten"===i?wF:kF;for(const o of ML(n[i],1))a["".concat(e,"-").concat(i,"-").concat(o)]=yF(r(uF(t),o))}return a}function aX(e,t){if(!t)return{};let n={};for(const a of t.colors){const i=e[a];i&&(n={...n,...nX(a,i,t)})}return n}function iX(e){const t={};for(const n of Object.keys(e)){if(n.startsWith("on-")||e["on-".concat(n)])continue;const a="on-".concat(n),i=uF(e[n]);t[a]=TF(i)}return t}function rX(e,t,n){const a=function(e,t){if(!yL)return null;let n=document.getElementById(e);n||(n=document.createElement("style"),n.id=e,n.type="text/css",t&&n.setAttribute("nonce",t),document.head.appendChild(n));return n}(e,t);a&&(a.innerHTML=n)}function oX(e){const t=function(){var e,t,n;let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{defaultTheme:"light",prefix:"v-",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-light":"#EEEEEE","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#1867C0","primary-darken-1":"#1F5592",secondary:"#48A9A6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#EEEEEE","theme-on-kbd":"#000000","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-light":"#424242","surface-variant":"#c8c8c8","on-surface-variant":"#000000",primary:"#2196F3","primary-darken-1":"#277CC1",secondary:"#54B6B2","secondary-darken-1":"#48A9A6",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#424242","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}},stylesheetId:"vuetify-theme-stylesheet",scoped:!1,unimportant:!1,utilities:!0};const i={defaultTheme:"light",prefix:"v-",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-light":"#EEEEEE","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#1867C0","primary-darken-1":"#1F5592",secondary:"#48A9A6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#EEEEEE","theme-on-kbd":"#000000","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-light":"#424242","surface-variant":"#c8c8c8","on-surface-variant":"#000000",primary:"#2196F3","primary-darken-1":"#277CC1",secondary:"#54B6B2","secondary-darken-1":"#48A9A6",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#424242","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}},stylesheetId:"vuetify-theme-stylesheet",scoped:!1,unimportant:!1,utilities:!0};if(!a)return{...i,isDisabled:!0};const r={};for(const[o,s]of Object.entries(null!=(e=a.themes)?e:{})){const e=s.dark||"dark"===o?null==(t=i.themes)?void 0:t.dark:null==(n=i.themes)?void 0:n.light;r[o]=tB(e,s)}return tB(i,{...a,themes:r})}(e),n=rn(t.defaultTheme),a=an(t.themes),i=rn("light"),r=Zo({get:()=>"system"===n.value?i.value:n.value,set(e){n.value=e}}),o=Zo(()=>{const e={};for(const[n,i]of Object.entries(a.value)){const a={...i.colors,...aX(i.colors,t.variations)};e[n]={...i,colors:{...a,...iX(a)}}}return e}),s=gn(()=>o.value[r.value]),l=gn(()=>"system"===n.value),u=Zo(()=>{var e;const n=[],a=t.unimportant?"":" !important",i=t.scoped?t.prefix:"";(null==(e=s.value)?void 0:e.dark)&&eX(n,":root",["color-scheme: dark"],t.scope),eX(n,":root",tX(s.value,t.prefix),t.scope);for(const[r,s]of Object.entries(o.value))eX(n,".".concat(t.prefix,"theme--").concat(r),["color-scheme: ".concat(s.dark?"dark":"normal"),...tX(s,t.prefix)],t.scope);if(t.utilities){const e=[],r=[],s=new Set(Object.values(o.value).flatMap(e=>Object.keys(e.colors)));for(const n of s)n.startsWith("on-")?eX(r,".".concat(n),["color: rgb(var(--".concat(t.prefix,"theme-").concat(n,"))").concat(a)],t.scope):(eX(e,".".concat(i,"bg-").concat(n),["--".concat(t.prefix,"theme-overlay-multiplier: var(--").concat(t.prefix,"theme-").concat(n,"-overlay-multiplier)"),"background-color: rgb(var(--".concat(t.prefix,"theme-").concat(n,"))").concat(a),"color: rgb(var(--".concat(t.prefix,"theme-on-").concat(n,"))").concat(a)],t.scope),eX(r,".".concat(i,"text-").concat(n),["color: rgb(var(--".concat(t.prefix,"theme-").concat(n,"))").concat(a)],t.scope),eX(r,".".concat(i,"border-").concat(n),["--".concat(t.prefix,"border-color: var(--").concat(t.prefix,"theme-").concat(n,")")],t.scope));n.push(...e,...r)}return n.map((e,t)=>0===t?e:"    ".concat(e)).join("")}),c=gn(()=>t.isDisabled?void 0:"".concat(t.prefix,"theme--").concat(r.value)),d=gn(()=>Object.keys(o.value));
4954if(kL){let e=function(){i.value=t.matches?"dark":"light"};const t=window.matchMedia("(prefers-color-scheme: dark)");e(),t.addEventListener("change",e,{passive:!0}),Re()&&De(()=>{t.removeEventListener("change",e)})}function h(e){("system"===e||d.value.includes(e))&&(r.value=e)}function p(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.value;const t=e.indexOf(r.value);h(e[-1===t?0:(t+1)%e.length])}const f=new Proxy(r,{get:(e,t)=>Reflect.get(e,t),set:(e,t,n)=>("value"===t&&qB("theme.global.name.value = ".concat(n),"theme.change('".concat(n,"')")),Reflect.set(e,t,n))});return{install:function(e){if(t.isDisabled)return;const n=e._context.provides.usehead;if(n){let e=function(){return{style:[{textContent:u.value,id:t.stylesheetId,nonce:t.cspNonce||!1}]}};if(n.push){const t=n.push(e);yL&&Mr(u,()=>{t.patch(e)})}else yL?(n.addHeadObjs(gn(e)),Nr(()=>n.updateDOM())):n.addHeadObjs(e())}else{let e=function(){rX(t.stylesheetId,t.cspNonce,u.value)};yL?Mr(u,e,{immediate:!0}):e()}},change:h,cycle:p,toggle:function(){p(arguments.length>0&&void 0!==arguments[0]?arguments[0]:["light","dark"])},isDisabled:t.isDisabled,isSystem:l,name:r,themes:a,current:s,computedThemes:o,prefix:t.prefix,themeClasses:c,styles:u,global:{name:f,current:s}}}function sX(e){IF("provideTheme");const t=nr(QV,null);if(!t)throw new Error("Could not find Vuetify theme injection");const n=gn(()=>{var n;return null!=(n=e.theme)?n:t.name.value}),a=gn(()=>t.themes.value[n.value]),i=gn(()=>t.isDisabled?void 0:"".concat(t.prefix,"theme--").concat(n.value)),r={...t,name:n,current:a,themeClasses:i};return tr(QV,r),r}function lX(){IF("useTheme");const e=nr(QV,null);if(!e)throw new Error("Could not find Vuetify theme injection");return e}function uX(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"content";const n=kB(),a=an();if(yL){const i=new ResizeObserver(n=>{null==e||e(n,i),n.length&&(a.value="content"===t?n[0].contentRect:n[0].target.getBoundingClientRect())});mi(()=>{i.disconnect()}),Mr(()=>n.el,(e,t)=>{t&&(i.unobserve(t),a.value=void 0),e&&i.observe(e)},{flush:"post"})}return{resizeRef:n,contentRect:Kt(a)}}const cX=Symbol.for("vuetify:layout"),dX=Symbol.for("vuetify:layout-item"),hX=AF({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),pX=AF({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function fX(){const e=nr(cX);if(!e)throw new Error("[Vuetify] Could not find injected layout");return{getLayoutItem:e.getLayoutItem,mainRect:e.mainRect,mainStyles:e.mainStyles}}function mX(e){var t;const n=nr(cX);if(!n)throw new Error("[Vuetify] Could not find injected layout");const a=null!=(t=e.id)?t:"layout-item-".concat(Pa()),i=IF("useLayoutItem");tr(dX,{id:a});const r=rn(!1);ii(()=>r.value=!0),ai(()=>r.value=!1);const{layoutItemStyles:o,layoutItemScrimStyles:s}=n.register(i,{...e,active:Zo(()=>!r.value&&e.active.value),id:a});return mi(()=>n.unregister(a)),{layoutItemStyles:o,layoutRect:n.layoutRect,layoutItemScrimStyles:s}}function vX(e){const t=nr(cX,null),n=Zo(()=>t?t.rootZIndex.value-100:1e3),a=an([]),i=Ht(new Map),r=Ht(new Map),o=Ht(new Map),s=Ht(new Map),l=Ht(new Map),{resizeRef:u,contentRect:c}=uX(),d=Zo(()=>{var t;const n=new Map,o=null!=(t=e.overlaps)?t:[];for(const e of o.filter(e=>e.includes(":"))){const[t,o]=e.split(":");if(!a.value.includes(t)||!a.value.includes(o))continue;const s=i.get(t),l=i.get(o),u=r.get(t),c=r.get(o);s&&l&&u&&c&&(n.set(o,{position:s.value,amount:parseInt(u.value,10)}),n.set(t,{position:l.value,amount:-parseInt(c.value,10)}))}return n}),h=Zo(()=>{const e=[...new Set([...o.values()].map(e=>e.value))].sort((e,t)=>e-t),t=[];for(const n of e){const e=a.value.filter(e=>{var t;return(null==(t=o.get(e))?void 0:t.value)===n});t.push(...e)}return((e,t,n,a)=>{let i={top:0,left:0,right:0,bottom:0};const r=[{id:"",layer:{...i}}];for(const o of e){const e=t.get(o),s=n.get(o),l=a.get(o);if(!e||!s||!l)continue;const u={...i,[e.value]:parseInt(i[e.value],10)+(l.value?parseInt(s.value,10):0)};r.push({id:o,layer:u}),i=u}return r})(t,i,r,s)}),p=Zo(()=>!Array.from(l.values()).some(e=>e.value)),f=Zo(()=>h.value[h.value.length-1].layer),m=gn(()=>({"--v-layout-left":OL(f.value.left),"--v-layout-right":OL(f.value.right),"--v-layout-top":OL(f.value.top),"--v-layout-bottom":OL(f.value.bottom),...p.value?void 0:{transition:"none"}})),v=Zo(()=>h.value.slice(1).map((e,t)=>{let{id:n}=e;const{layer:a}=h.value[t],o=r.get(n),s=i.get(n);return{id:n,...a,size:Number(o.value),position:s.value}})),g=e=>v.value.find(t=>
4954t.id===e),y=IF("createLayout"),b=rn(!1);hi(()=>{b.value=!0}),tr(cX,{register:(e,t)=>{let{id:u,order:c,position:f,layoutSize:m,elementSize:g,active:_,disableTransitions:w,absolute:k}=t;o.set(u,c),i.set(u,f),r.set(u,m),s.set(u,_),w&&l.set(u,w);const C=iB(dX,null==y?void 0:y.vnode).indexOf(e);C>-1?a.value.splice(C,0,u):a.value.push(u);const S=Zo(()=>v.value.findIndex(e=>e.id===u)),T=Zo(()=>n.value+2*h.value.length-2*S.value);return{layoutItemStyles:Zo(()=>{var e;const t="left"===f.value||"right"===f.value,a="right"===f.value,i="bottom"===f.value,r=null!=(e=g.value)?e:m.value,o=0===r?"%":"px",s={[f.value]:0,zIndex:T.value,transform:"translate".concat(t?"X":"Y","(").concat((_.value?0:-(0===r?100:r))*(a||i?-1:1)).concat(o,")"),position:k.value||1e3!==n.value?"absolute":"fixed",...p.value?void 0:{transition:"none"}};if(!b.value)return s;const l=v.value[S.value],c=d.value.get(u);return c&&(l[c.position]+=c.amount),{...s,height:t?"calc(100% - ".concat(l.top,"px - ").concat(l.bottom,"px)"):g.value?"".concat(g.value,"px"):void 0,left:a?void 0:"".concat(l.left,"px"),right:a?"".concat(l.right,"px"):void 0,top:"bottom"!==f.value?"".concat(l.top,"px"):void 0,bottom:"top"!==f.value?"".concat(l.bottom,"px"):void 0,width:t?g.value?"".concat(g.value,"px"):void 0:"calc(100% - ".concat(l.left,"px - ").concat(l.right,"px)")}}),layoutItemScrimStyles:Zo(()=>({zIndex:T.value-1})),zIndex:T}},unregister:e=>{o.delete(e),i.delete(e),r.delete(e),s.delete(e),l.delete(e),a.value=a.value.filter(t=>t!==e)},mainRect:f,mainStyles:m,getLayoutItem:g,items:v,layoutRect:c,rootZIndex:n});return{layoutClasses:gn(()=>["v-layout",{"v-layout--full-height":e.fullHeight}]),layoutStyles:gn(()=>({zIndex:t?n.value:void 0,position:t?"relative":void 0,overflow:t?"hidden":void 0})),getLayoutItem:g,items:v,layoutRect:c,layoutRef:u}}function gX(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{blueprint:t,...n}=e,a=tB(t,n),{aliases:i={},components:r={},directives:o={}}=a,s=Oe();return s.run(()=>{const e=function(e){return an(e)}(a.defaults),t=RV(a.display,a.ssr),n=oX(a.theme),l=JV(a.icons),u=iV(a.locale),c=function(e,t){const n=tB({adapter:CV,locale:{af:"af-ZA",bg:"bg-BG",ca:"ca-ES",ckb:"",cs:"cs-CZ",de:"de-DE",el:"el-GR",en:"en-US",et:"et-EE",fa:"fa-IR",fi:"fi-FI",hr:"hr-HR",hu:"hu-HU",he:"he-IL",id:"id-ID",it:"it-IT",ja:"ja-JP",ko:"ko-KR",lv:"lv-LV",lt:"lt-LT",nl:"nl-NL",no:"no-NO",pl:"pl-PL",pt:"pt-PT",ro:"ro-RO",ru:"ru-RU",sk:"sk-SK",sl:"sl-SI",srCyrl:"sr-SP",srLatn:"sr-SP",sv:"sv-SE",th:"th-TH",tr:"tr-TR",az:"az-AZ",uk:"uk-UA",vi:"vi-VN",zhHans:"zh-CN",zhHant:"zh-TW"}},e);return{options:n,instance:AV(n,t)}}(a.date,u),d=function(e,t){return{rtl:t.isRtl,options:tB(FV(),e)}}(a.goTo,u);return{install:function(s){for(const e in o)s.directive(e,o[e]);for(const e in r)s.component(e,r[e]);for(const e in i)s.component(e,RF({...i[e],name:e,aliasName:i[e].name}));const h=Oe();if(h.run(()=>{n.install(s)}),s.onUnmount(()=>h.stop()),s.provide(NF,e),s.provide(xV,t),s.provide(QV,n),s.provide(KV,l),s.provide(aV,u),s.provide(SV,c.options),s.provide(TV,c.instance),s.provide(BV,d),yL&&a.ssr)if(s.$nuxt)s.$nuxt.hook("app:suspense:resolve",()=>
4954{t.update()});else{const{mount:e}=s;s.mount=function(){const n=e(...arguments);return jn(()=>t.update()),s.mount=e,n}}s.mixin({computed:{$vuetify(){return Ht({defaults:yX.call(this,NF),display:yX.call(this,xV),theme:yX.call(this,QV),icons:yX.call(this,KV),locale:yX.call(this,aV),date:yX.call(this,TV)})}}})},unmount:function(){s.stop()},defaults:e,display:t,theme:n,icons:l,locale:u,date:c,goTo:d}})}function yX(e){var t,n,a;const i=this.$,r=null!=(a=null==(t=i.parent)?void 0:t.provides)?a:null==(n=i.vnode.appContext)?void 0:n.provides;if(r&&e in r)return r[e]}gX.version="3.10.4";const bX={BASE_URL:"/",DEV:!1,LEGACY:!1,MODE:"production",PROD:!0,SSR:!1,VITE_API_KEY:"AIzaSyANTQnn1scl4znhyNXLIw-w8781Ep9426k",VITE_APP_ID:"1:1567249158:web:dfa66b01215bc06d2b0487",VITE_AUTH_DOMAIN:"forged-7adb7.firebaseapp.com",VITE_CHAT_DATABASE_URL:"https://forged-7adb7-chats.firebaseio.com/",VITE_CLOUD_FUNCTIONS_URL:"https://us-central1-forged-7adb7.cloudfunctions.net",VITE_DATABASE_URL:"https://forged-7adb7.firebaseio.com",VITE_ENV:"ENV PROD",VITE_FRESHDESK_HOST:"https://axethrowing.freshdesk.com",VITE_FRESHDESK_PORTAL_URL:"https://axethrowing.freshdesk.com/support/home",VITE_FRESHDESK_TOKEN:"01M1PV5KQ3QPSMSMFK0YQJXCKX",VITE_FRESHDESK_WIDGET_ID:"01M1PV5PC3ZRXG1WK9KHTJXVJ6",VITE_GLOBAL_DATABASE_URL:"https://forged-7adb7-global.firebaseio.com/",VITE_MAPS_API_KEY:"AIzaSyAwpV6ag4hS-W5ae4bk_v31kO6f3575y9g",VITE_MEASUREMENT_ID:"G-36N4J8Q1WE",VITE_MESSAGE_SENDER_ID:"1567249158",VITE_PHONE_KEY:"dQgajTvjSFD8s5HdUAsRxbjTKdhQek",VITE_PROJECT_ID:"forged-7adb7",VITE_STORAGE_BUCKET:"forged-7adb7.appspot.com",VITE_URL:"https://axethrowing.org",VITE_VENUES_LEAGUE_DATABASE_URL:"https://forged-7adb7-venues-league.firebaseio.com/"},_X="https://yoreferee.freshdesk.com/support/home",wX="Freshdesk-js-sdk",kX=e=>String(e||"").replace(/\/+$/,"");function CX(e=bX){const t=kX(e.VITE_FRESHDESK_HOST);return e.VITE_FRESHDESK_PORTAL_URL?e.VITE_FRESHDESK_PORTAL_URL:t?"".concat(t,"/support/home"):_X}function SX(e=bX,t=null){if("undefined"==typeof window||"undefined"==typeof document)return;const n=function(e=bX){const t=kX(e.VITE_FRESHDESK_HOST),n=e.VITE_FRESHDESK_TOKEN,a=e.VITE_FRESHDESK_WIDGET_ID;return t&&n&&a?{kind:"sdk",host:t,token:n,widgetId:a,portalUrl:e.VITE_FRESHDESK_PORTAL_URL||"".concat(t,"/support/home")}:{kind:"legacy",widgetId:158000000888,portalUrl:_X}}(e);"sdk"===n.kind?function(e,t){const n=()=>{window.fdWidget&&"function"==typeof window.fdWidget.init&&(window.fdWidget.init({token:e.token,host:e.host,widgetId:e.widgetId}),t&&NX(t))};if(document.getElementById(wX))return void(window.fdWidget&&!function(){const e=window.fdWidget;return!(!e||"function"!=typeof e.isInitialized||!e.isInitialized())}()&&n());const a=document.createElement("script");a.id=wX,a.async=!0,a.src="".concat(e.host,"/webchat/js/widget.js"),a.onload=n,document.head.appendChild(a)}(n,t):function(e){if(window.fwSettings={widget_id:e.widgetId},"function"!=typeof window.FreshworksWidget){const e=function(){e.q.push(arguments)};e.q=[],window.FreshworksWidget=e}const t="https://widget.freshworks.com/widgets/".concat(e.widgetId,".js");if(!document.querySelector('script[src="'.concat(t,'"]'))){const e=document.createElement("script");e.type="text/javascript",e.src=t,e.async=!0,e.defer=!0,document.head.appendChild(e)}}(n)}const TX=["watlPublic","watlPublicGame","watlPublicNoVenue","watlDoublesPublic","watlBigAxePublic","connectFivePublic","ticTacToePublic","axeCricketPublic","watlPublicTv","watlDualsPublic","watlQuickGamesPublic","watl","wktl","wktl-duals","watlDoubles","watlBigAxe","watlQuickGames","screen","tvLanes","guestQuickGame"],AX=["/hosts","/account"];let EX=!1,IX=null;function xX(){const e=document.getElementById("fd_frame");return!!e&&(e.style.display=EX?"none":"",!0)}function NX(e){if("undefined"==typeof window)return;const t=function(e){return!!(e&&(AX.some(t=>e.fullPath.startsWith(t))||e.name&&TX.includes(e.name)))}(e);if(window.fdWidget)return EX=t,void(xX()||function(){const e=window.fdWidget;e&&IX!==e&&"function"==typeof e.on&&(IX=e,e.on("widget:loaded",xX))}());"function"==typeof window.FreshworksWidget&&window.FreshworksWidget(t?"hide":"show","launcher")}const PX=(e,t)=>{const n=e.__vccOpts||e;for(const[a,i]of t)n[a]=i;return n},MX={LEGACY:!1,VITE_FRESHDESK_HOST:"https://axethrowing.freshdesk.com",VITE_FRESHDESK_PORTAL_URL:"https://axethrowing.freshdesk.com/support/home",VITE_FRESHDESK_TOKEN:"01M1PV5K
4954Q3QPSMSMFK0YQJXCKX",VITE_FRESHDESK_WIDGET_ID:"01M1PV5PC3ZRXG1WK9KHTJXVJ6"},OX={class:"footerMain flex-grow-1 col-9"},RX={class:"logo"},DX=["src"],LX={key:1,src:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/global%2Fvenue-logos%2F1569244739239_venue-logosWATL-logo.png?alt=media&token=0f58cbea-6ef3-418f-9962-1221b5014a17",alt:"venueLogo"},BX={key:0,class:"logoText"},FX={key:1,class:"logoText"},VX={key:0,class:"d-flex flex-wrap w-100"},XX=["onClick"],jX={class:"social"},UX={class:"contactsItems"},HX=["href"],zX=["href"],KX=["href"],WX=PX({__name:"siteFooter",setup(e){const t=nr("postHog"),{mdAndUp:n,smAndUp:a,lgAndUp:i}=LV(),r=mL(),o=vL(),s=jG();an(!1);const l=Zo(()=>[{title:"Rules",icon:"casino",link:"https://worldaxethrowingleague.com/axe-throwing-rules/"},{title:"Leagues",icon:"my_location",link:"/"+s.venue.locationSlug+"/leagues"},{title:"Tournaments",icon:"casino",link:"/"+s.venue.locationSlug+"/tournament"},{hidden:"watl"!==s.venue.locationSlug,title:"Venues",icon:"location_city",link:"/"+s.venue.locationSlug+"/venues"},{title:"Shop",icon:"casino",link:"https://amzn.to/49MIhD2"},{title:"QT",icon:"casino",link:"/"+s.venue.locationSlug+"/qt"},{title:"Venue Sign-Up",icon:"casino",link:"/"+s.venue.locationSlug+"/signup"},{title:"Privacy Policy",icon:"casino",link:"/documents/privacyPolicy"},{title:"Terms of Service",icon:"casino",link:"/documents/termsOfService"}]);function u(){t.capture("footer_click")}return Zo(()=>s.venue.locationSlug),hi(()=>{SX(MX,o)}),(e,c)=>{const d=ki("v-icon");return oo(),ho("div",{class:"footerWrapper",onClick:u},[yo("div",{class:ne(["footerContainer newContainer",[ln(i)?"flex-row":""]])},[yo("div",OX,[yo("div",RX,[yo("div",{class:"logoImg",style:Y([ln(a)?"width:156px; height:156px;":""])},[ln(s).venue.logo?(oo(),ho("img",{key:0,src:ln(s).venue.logo,alt:"venueLogo"},null,8,DX)):(oo(),ho("img",LX))],4),ln(a)&&ln(s).venue.company?(oo(),ho("span",BX,Te(ln(s).venue.company)+" "+Te(ln(s).venue.city),1)):ln(a)?(oo(),ho("span",FX,"World Axe Throwing League WATL")):So("",!0)]),ln(n)?(oo(),ho("ul",VX,[(oo(!0),ho(eo,null,Ii(l.value,e=>(oo(),ho("li",{key:e.title,onClick:n=>function(e){if(t.capture("menu_click",{meny_type:"footer_navigation",menu_item:e.title,menu_link:e.link,link_type:"absolute"===e.linkType?"external":"internal"}),e.link.includes("https"))return t.capture("footer_link",{link:e.link}),void window.open(e.link,"_blank").focus();r.push(e.link)}(e),class:ne([{active:ln(o).path===e.link},"menuItem"])},[yo("span",null,Te(e.title),1)],10,XX))),128))])):So("",!0),yo("div",jX,[yo("p",{class:ne(["socialText d-flex",[ln(a)&&ln(i)?"justify-start":"justify-center"]])},"Follow US",2),yo("div",{class:ne(["socialIcons d-flex",[ln(a)&&ln(i)?"justify-start":"justify-center"]])},[...c[0]||(c[0]=[Co("<a href=\" https://www.facebook.com/WorldAxeThrowingLeague\" data-v-4e84b6bb><img src=\"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='29'%20height='28'%20viewBox='0%200%2029%2028'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M28.8339%2014.0852C28.8339%206.30426%2022.5966%200%2014.8984%200C7.20015%200%200.962891%206.30426%200.962891%2014.0852C0.962891%2021.1153%206.0589%2026.9425%2012.721%2028V18.1568H9.1809V14.0852H12.721V10.9819C12.721%207.45209%2014.8%205.50231%2017.9844%205.50231C19.5095%205.50231%2021.1042%205.7772%2021.1042%205.7772V9.2417H19.3465C17.6158%209.2417%2017.0758%2010.3276%2017.0758%2011.4414V14.0852H20.9407L20.3225%2018.1568H17.0758V28C23.7379%2026.9425%2028.8339%2021.1153%2028.8339%2014.0852Z'%20fill='%23606B7F'/%3e%3c/svg%3e\" alt=\"facebook\" data-v-4e84b6bb></a><a href=\"https://www.tiktok.com/@worldaxethrowingleague\" data-v-4e84b6bb><img src=\"data:image/svg+xml,%3csvg%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M27.6729%2013.9004C27.6729%206.22343%2021.4779%200%2013.8363%200C6.195%200%200%206.22343%200%2013.9004C0%2021.5773%206.195%2027.8008%2013.8363%2027.8008C21.4779%2027.8008%2027.6729%2021.5773%2027.6729%2013.9004ZM18.5905%207.7501C19.2122%208.45007%2020.0412%208.93318%2020.9566%209.129C21.2589%209.19276%2021.5671%209.22471%2021.876%209.22433V12.3621C20.3072%2012.3649%2018.777%2011.8756%2017.5008%2010.9632V17.3671C17.5007%2018.5203%2017.157%2019.6474%2016.5135%2020.6045C15.87%2021.5615%2014.9559%2022.3051%2013.8879%2022.7402C12.8
4954199%2023.1754%2011.6464%2023.2825%2010.5173%2023.0478C9.38816%2022.813%208.35459%2022.2472%207.54851%2021.4224C6.70325%2020.5571%206.14959%2019.4493%205.96496%2018.2539C5.78033%2017.0584%205.97397%2015.8352%206.5188%2014.7552C7.06363%2013.6752%207.9324%2012.7926%209.00358%2012.2307C10.0748%2011.6688%2011.2948%2011.4558%2012.493%2011.6214V14.8297C11.9557%2014.6588%2011.3779%2014.6634%2010.8433%2014.843C10.3088%2015.0225%209.84538%2015.3677%209.52023%2015.8284C9.19509%2016.2891%209.02515%2016.8413%209.03504%2017.4051C9.04494%2017.9689%209.23416%2018.5149%209.57526%2018.9639C9.91116%2019.4055%2010.377%2019.7308%2010.9073%2019.894C11.4376%2020.0572%2012.0057%2020.0502%2012.5317%2019.8739C13.0578%2019.6976%2013.5154%2019.3609%2013.8403%2018.9111C14.1651%2018.4613%2014.3409%2017.921%2014.3428%2017.3662V4.8335H17.5008V5.23775C17.5871%206.16991%2017.9689%207.05014%2018.5905%207.7501Z'%20fill='%23606B7F'/%3e%3c/svg%3e\" alt=\"tiktok\" data-v-4e84b6bb></a><a href=\"https://www.instagram.com/worldaxethrowingleague/\" data-v-4e84b6bb><img src=\"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='29'%20height='28'%20viewBox='0%200%2029%2028'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14.5019%200C22.1971%200%2028.4374%206.26916%2028.4374%2014C28.4374%2021.7308%2022.1971%2028%2014.5019%2028C6.80668%2028%200.566406%2021.7308%200.566406%2014C0.566406%206.26916%206.80668%200%2014.5019%200ZM14.7638%205.96099H14.24C14.1558%205.96102%2014.0748%205.96107%2013.9968%205.96114L13.5622%205.96181C12.2217%205.96488%2011.9139%205.97681%2011.2028%206.00939C10.351%206.04849%209.76938%206.18434%209.26036%206.38302C8.7264%206.58492%208.24263%206.90129%207.84313%207.31035C7.4359%207.71176%207.12077%208.19777%206.91985%208.73414C6.72208%209.24558%206.58681%209.82986%206.54811%2010.6856C6.51554%2011.4%206.50376%2011.7093%206.50074%2013.056L6.50008%2013.4925C6.49994%2013.6494%206.49988%2013.8181%206.49988%2014L6.49993%2014.2631C6.49996%2014.3476%206.50001%2014.429%206.50008%2014.5075L6.50074%2014.944C6.50376%2016.2907%206.51557%2016.6%206.54832%2017.3146C6.58703%2018.1701%206.72252%2018.7546%206.92023%2019.2658C7.1212%2019.8022%207.43611%2020.2882%207.84313%2020.6896C8.24285%2021.0987%208.7264%2021.415%209.26057%2021.6169C9.76938%2021.8156%2010.3512%2021.9515%2011.2028
4954%2021.9906C11.3806%2021.9987%2011.5332%2022.0056%2011.683%2022.0113L11.8629%2022.0177C12.256%2022.0304%2012.691%2022.0362%2013.5623%2022.0382L13.9969%2022.0389C14.1531%2022.039%2014.321%2022.0391%2014.5021%2022.0391L14.764%2022.039C14.8482%2022.039%2014.9292%2022.0389%2015.0072%2022.0389L15.4418%2022.0382C16.7822%2022.0351%2017.0901%2022.0231%2017.8012%2021.9906C18.6528%2021.9515%2019.2346%2021.8156%2019.7434%2021.6169C20.8183%2021.1993%2021.668%2020.3457%2022.0837%2019.2658C22.2815%2018.7544%2022.4169%2018.1701%2022.4556%2017.3143C22.4638%2017.1357%2022.4706%2016.9825%2022.4764%2016.832L22.4827%2016.6513C22.4954%2016.2564%2022.5011%2015.8193%2022.5031%2014.944L22.5037%2014.5075C22.5039%2014.3506%2022.5039%2014.1819%2022.5039%2014L22.5039%2013.7369C22.5038%2013.6523%2022.5038%2013.571%2022.5037%2013.4925L22.5031%2013.056C22.5%2011.7093%2022.4883%2011.4%2022.4559%2010.6856C22.4169%209.82986%2022.2817%209.24558%2022.0837%208.73414C21.883%208.19777%2021.5678%207.71198%2021.1609%207.31035C20.7611%206.90129%2020.2773%206.5847%2019.7434%206.3828C19.2344%206.18434%2018.6528%206.04849%2017.801%206.00961C17.6232%206.00142%2017.4706%205.99453%2017.3208%205.98875L17.1409%205.98234C16.7479%205.96956%2016.3129%205.96381%2015.4416%205.96181L15.007%205.96114C14.8509%205.961%2014.683%205.96094%2014.5019%205.96094L14.7638%205.96099ZM15.2196%207.4099C16.711%207.41203%2016.997%207.42267%2017.7355%207.4565C18.5157%207.49216%2018.9392%207.62313%2019.2212%207.73311C19.5688%207.86195%2019.8831%208.06747%2020.1413%208.33445C20.4071%208.59383%2020.6117%208.90976%2020.7398%209.25883C20.8496%209.54212%2020.9799%209.96786%2021.0155%2010.7516C21.0491%2011.4933%2021.0595%2011.7807%2021.0616%2013.279V14.7213C21.0595%2016.2195%2021.0491%2016.5068%2021.0155%2017.2487C20.9797%2018.0325%2020.8494%2018.4581%2020.7398%2018.7413C20.4707%2019.4425%2019.9191%2019.9966%2019.2212%2020.267C18.9392%2020.3772%2018.5154%2020.5082%2017.7353%2020.5439C16.9972%2020.5777%2016.7112%2020.5882%2015.2196%2020.5903H13.7838C12.2924%2020.5882%2012.0066%2020.5777%2011.2683%2020.5439C10.4881%2020.5082%2010.0643%2020.3772%209.78236%2020.267C9.43468%2020.1382%209.12043%2019.9327%208.86229%2019.6657C8.59648%2019.4063%208.39213%2019.0906%208.26372%2018.7413C8.15419%2018.4581%208.02382%2018.0325%207.98833%2017.2487C7.95465%2016.5068%207.94411%2016.2195%207.942%2014.7213V13.279C7.94411%2011.7807%207.95465%2011.4933%207.98833%2010.7516C8.02382%209.96786%208.15419%209.54212%208.26372%209.25883C8.39213%208.90955%208.5967%208.59383%208.86251%208.33445C9.12042%208.06747%209.4349%207.86195%209.78258%207.73311C10.0643%207.62313%2010.4881%207.49215%2011.2683%207.45628C12.0066%207.42245%2012.2926%207.41198%2013.784%207.40989L15.2196%207.4099ZM14.5019%209.87194C12.2324%209.87194%2010.3926%2011.72%2010.3926%2014C10.3926%2016.28%2012.2324%2018.128%2014.5019%2018.128C16.7712%2018.128%2018.6109%2016.28%2018.6109%2014C18.6109%2011.72%2016.7712%209.87194%2014.5019%209.87194ZM14.5019%2011.3203C15.9751%2011.3203%2017.1692%2012.52%2017.1692%2014C17.1692%2015.4799%2015.9751%2016.6797%2014.5019%2016.6797C13.0287%2016.6797%2011.8345%2015.4799%2011.8345%2014C11.8345%2012.52%2013.0287%2011.3203%2014.5019%2011.3203ZM18.7734%208.74401C18.2431%208.74401%2017.8131%209.17593%2017.8131%209.70869C17.8131%2010.2415%2018.2431%2010.6734%2018.7734%2010.6734C19.3037%2010.6734%2019.7334%2010.2415%2019.7337%209.70869C19.7337%209.17593%2019.3037%208.74401%2018.7734%208.74401Z'%20fill='%23606B7F'/%3e%3c/svg%3e\" alt=\"instagram\" data-v-4e84b6bb></a><a href=\"https://www.youtube.com/c/WorldAxeThrowingLeague\" data-v-4e84b6bb><img src=\"data:image/svg+xml,%3csvg%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%2014C0%206.26803%206.23911%200%2013.9355%200C21.6318%200%2027.871%206.26803%2027.871%2014C27.871%2021.732%2021.6318%2028%2013.9355%2028C6.23911%2028%200%2021.732%200%2014ZM8.73837%208H19.2616C21.3263%208%2023%209.67372%2023%2011.7384V16.9989C23%2019.0635%2021.3263%2020.7373%2019.2616%2020.7373H8.73837C6.67372%2020.7373%205%2019.0635%205%2016.9989V11.7384C5%209.67372%206.67372%208%208.73837%208ZM11.8113%2016.9721L16.7334%2014.6246C16.8815%2014.554%2016.884%2014.3441%2016.7377%2014.27L11.8156%2011.7757C11.6842%2011.7091%2011.5287%2011.8046%2011.5287%2011.9519V16.7937C11.5287%2016.939%2011.6802%2017.0347%2011.8113%2016.9721Z'%20fill='%23606B7F'/%3e%3c/svg%3e\" alt=\"youtube\" data-v-4e84b6bb></a>",4)])],2)])]),yo("div",{class:ne(["contacts",[ln(i)?"col-3":""]])},[c[1]||(c[1]=yo("p",{class:"contactsText"},"Contacts",-1)),yo("div",UX,[yo("a",{href:"tel:"+ln(s).venue.phone},[bo(d,{size:"30",icon:"mdi-phone-outline",color:"var(--clr-footer)"}),yo("div",null,Te(ln(s).venue.phone||"(228)591-9285"),1)],8,HX),yo("a",{href:"mailto:"+ln(s).venue.email},[bo(d,{size:"30",icon:"mdi-email-outline",color:"var(--clr-footer)"}),yo("div",null,Te(ln(s).venue.email||"[email protected]"),1)],8,zX),yo("a",{href:"/"+ln(s).venue.locationSlug,target:"_blank",rel:"noopener"},[bo(d,{size:"30",icon:"mdi-map-marker-outline",color:"var(--clr-footer)"}),yo("div",null,Te(ln(s).venue.address||"WATL"),1)],8,KX)])],2)],2)
4954])}}},[["__scopeId","data-v-4e84b6bb"]]);function GX(){caches.keys().then(e=>{e.forEach(e=>{caches.delete(e)}),console.log("cache cleared")}).then(()=>window.location.reload())}const qX={key:0,class:"alert d-flex justify-space-around align-center"},$X={key:1,class:"alert d-flex justify-space-around align-center"},YX={key:2,class:"alert d-flex justify-space-around align-center"};const JX=PX({name:"siteAlert",props:{alertType:String},inject:["postHog"],setup:()=>({userStore:VG()}),methods:{clearCache(){this.postHog.capture("button_clear_cashe",{buttonPlace:"site"}),GX()},updateAccess(){this.$firebaseAuth.currentUser.getIdToken(!0),wg(TP("/watl/players/".concat(this.userStore.user[".key"])),{accessUpdated:null}),window.location.reload()}}},[["render",function(e,t,n,a,i,r){const o=ki("v-btn");return oo(),ho(eo,null,["oldVersion"===n.alertType?(oo(),ho("div",qX,[t[1]||(t[1]=ko(" You are using an old version of the app. Please clear your cache. ",-1)),bo(o,{onClick:r.clearCache},{default:ea(()=>[...t[0]||(t[0]=[ko("clear cache",-1)])]),_:1},8,["onClick"])])):So("",!0),"updatedAccess"===n.alertType?(oo(),ho("div",$X,[t[3]||(t[3]=ko(" You have available access updates for this website. ",-1)),bo(o,{onClick:r.updateAccess},{default:ea(()=>[...t[2]||(t[2]=[ko("update access",-1)])]),_:1},8,["onClick"])])):So("",!0),"disabledVenue"===n.alertType?(oo(),ho("div",YX,[...t[4]||(t[4]=[yo("p",null,[ko(" This venue has been set to inactive, please bring your billing account up to date and email us at "),yo("a",{class:"emailLink",href:"mailto:[email protected]"},"[email protected]")],-1)])])):So("",!0)],64)}],["__scopeId","data-v-2c4b9219"]]),QX={class:"menu"},ZX=["src","alt"],ej={class:"venueName text-caption text-sm-body-1 w-75"},tj=["onClick","title"],nj={class:"userInfo"},aj=PX({__name:"mobileMenu",props:{mobileMenuShowed:{type:Boolean,default:!1,required:!0},headerHeight:String,navMenu:{type:Object,default:()=>{},required:!0}},emits:["signIn","signOut","redirectToHomeVenue","redirectToHosts","menuControls","updateDialog"],setup(e,{emit:t}){const n=jG(),a=vL();mL();const i=t,r=VG();return(t,o)=>{const s=ki("v-icon"),l=ki("v-divider"),u=ki("v-list-item"),c=ki("v-list"),d=ki("v-dialog");return oo(),po(d,{modelValue:e.mobileMenuShowed,fullscreen:"","hide-overlay":"",persistent:"",transition:"dialog-top-transition",style:{"z-index":"2000 !important"}},{default:ea(()=>[yo("div",QX,[yo("div",{class:"menuHeader newContainer d-flex justify-space-between align-center mb-5",style:Y({height:e.headerHeight})},[yo("div",{class:"logoWrapper",onClick:o[0]||(o[0]=e=>i("menuControls",{link:"/".concat(ln(n).venue.locationSlug)}))},[yo("img",{src:ln(n).venue.logo?ln(n).venue.logo:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/global%2Fvenue-logos%2F1569244739239_venue-logosWATL-logo.png?alt=media&token=0f58cbea-6ef3-418f-9962-1221b5014a17",alt:ln(n).venue.company},null,8,ZX),yo("h3",ej,Te(ln(n).venue.company?ln(n).venue.company:"WORLD AXE THROWING LEAGUE"),1)]),bo(s,{size:"large",style:{color:"black"},onClick:o[1]||(o[1]=e=>i("updateDialog",!1))},{default:ea(()=>[...o[10]||(o[10]=[ko("mdi-close",-1)])]),_:1})],4),yo("nav",null,[yo("ul",null,[(oo(!0),ho(eo,null,Ii(e.navMenu,e=>(oo(),ho(eo,null,[e.hidden?So("",!0):(oo(),ho("li",{key:e.title,onClick:t=>i("menuControls",e),class:ne([{active:ln(a).path===e.link},"navItem"]),title:e.title},Te(e.title),11,tj))],64))),256)),yo("li",{class:ne(["no-hover navItem",{active:"signup"===ln(a).name}]),onClick:o[2]||(o[2]=e=>i("menuControls",{link:"/".concat(ln(n).venue.locationSlug,"/signup")}))},[...o[11]||(o[11]=[yo("span",{class:"host"},"Venue Sign-Up ",-1)])],2),t.$firebaseAuth.currentUser&&Object.keys(ln(r).user).length?(oo(),ho(eo,{key:0},[ln(r).userRoles.host?(oo(),ho("li",{key:0,class:"no-hover navItem",onClick:o[3]||(o[3]=e=>i("redirectToHosts"))},[...o[12]||(o[12]=[yo("span",{class:"host","data-name":"access"}," Host Site ",-1)])])):So("",!0),bo(l),yo("li",nj,[bo(c,null,{default:ea(()=>[bo(u,{"prepend-avatar":ln(r).user.pic,subtitle:ln(r).user.email,title:"".concat(ln(r).user.first||""," ").concat(ln(r).user.last||"")}
4954,null,8,["prepend-avatar","subtitle","title"])]),_:1})]),bo(l),"no-venue"!==ln(r).user.venue?(oo(),ho("li",{key:1,class:"navItem",onClick:o[4]||(o[4]=e=>i("redirectToHomeVenue"))},[...o[13]||(o[13]=[yo("span",{class:"host"}," Home Venue ",-1)])])):So("",!0),yo("li",{class:ne(["navItem",{active:"profile"===ln(a).name}]),onClick:o[5]||(o[5]=e=>i("menuControls",{link:"/".concat(ln(n).venue.locationSlug,"/profile")}))}," My Profile ",2),yo("li",{class:ne(["navItem",{active:"selfSignUpTournaments"===ln(a).name}]),onClick:o[6]||(o[6]=e=>i("menuControls",{link:"/".concat(ln(n).venue.locationSlug,"/selfSignUpTournaments")}))}," My sign up's ",2),yo("div",{class:ne(["navItem",{active:"playerSubscription"===ln(a).name}]),onClick:o[7]||(o[7]=e=>i("menuControls",{link:"/".concat(ln(n).venue.locationSlug,"/playerSubscription")}))}," My subscriptions ",2),yo("li",{class:"navItem",onClick:o[8]||(o[8]=e=>i("signOut"))},"Sign Out")],64)):(oo(),ho("li",{key:1,onClick:o[9]||(o[9]=e=>i("signIn")),class:ne(["mt-5","navItem",{active:"login"===ln(a).name}])},[...o[14]||(o[14]=[yo("span",{class:"sign-in",id:"sign-in","data-name":"access"}," Sign-in ",-1)])],2))])])])]),_:1},8,["modelValue"])}}},[["__scopeId","data-v-3585702f"]]),ij=PX({__name:"customButton",props:{width:String,color:{type:String,default:"#0B2E7D"}},setup(e){const{mdAndUp:t}=LV(),n=Li();return(a,i)=>{const r=ki("v-btn");return oo(),po(r,Io(ln(n),{class:"customButton",color:e.color,height:ln(t)?"56px":"40px",width:e.width}),{default:ea(()=>[xi(a.$slots,"default",{},void 0,!0)]),_:3},16,["color","height","width"])}}},[["__scopeId","data-v-5e8ad214"]]);function rj(e){const t=VG();qx(fP).then(()=>{FG.push(e).then(()=>{t.clearUserData()}),Gx(vP,null),Gx(yP,null),Gx(_P,null);let n=JSON.parse(PR.get("userRoles")||"{}");Object.keys(n).length&&PR.remove("userRoles")})}const oj=["src","alt"],sj={class:"venueName text-caption text-sm-body-1 text-lg-h6"},lj={class:"middlePart"},uj={key:0,"data-cypress-header":"nav-menu"},cj={class:"d-flex align-center"},dj=["onClick"],hj={class:"rightPart overflow-hidden position-relative"},pj={class:"userName ml-4"},fj={__name:"siteHeader",setup(e){const t=nr("postHog"),{name:n,mdAndDown:a,lgAndUp:i}=LV(),r=mL(),o=vL(),s=VG(),l=jG(),u=Zo(()=>{switch(n.value){case"xs":return"42px";case"sm":return"60px";case"md":case"lg":case"xl":case"xxl":return"114px"}}),c=an(!1);let d=Zo(()=>l.venue.locationSlug||"watl");const h=Zo(()=>[{title:"Tournaments",link:"/"+d.value+"/tournament"},{title:"Leagues",link:"/"+d.value+"/leagues"},{title:"QT",link:"/"+d.value+"/qt",hidden:"custom"===l.venue.type},{title:"Venues",link:"/"+d.value+"/venues"},{title:"Players",link:"/"+d.value+"/player"},{title:"Rules",link:"https://worldaxethrowingleague.com/axe-throwing-rules/",linkType:"absolute"},{title:"Shop",link:"https://amzn.to/49MIhD2",linkType:"absolute"}]);function p(e){t.capture("menu_click",{meny_type:"main_navigation",menu_item:e.title,menu_link:e.link,link_type:"absolute"===e.linkType?"external":"internal"}),r.push(e.link)}function f(e){t.capture("menu_click",{meny_type:"main_navigation",menu_item:e.title,menu_link:e.link,link_type:"absolute"===e.linkType?"external":"internal"}),e.linkType&&"absolute"===e.linkType?(t.capture("header_link",{link:e.link}),window.open(e.link,"_blank")):(r.push(e.link),c.value=!1)}function m(){r.push({name:"login",params:{locationSlug:"watl"}}),c.value=!1}function v(){fP.currentUser||"login"===o.name||m()}function g(){t.capture("menu_click",{meny_type:"main_navigation",menu_item:"Sign Out",menu_link:"/sign-out",link_type:"internal"}),rj("/".concat(l.venue.locationSlug,"/login")),t.reset(),c.value&&(c.value=!1)}function y(){const e=s.getUserHomeVenue;t.capture("menu_click",{meny_type:"main_navigation",menu_item:"Home venue",menu_link:"/"+e,link_type:"internal"}),l.setVenue(e),r.push("/"+e),c.value&&(c.value=!1)}function b(){r.push("/hosts/".concat(l.venue.locationSlug,"/league"))}function _(e){c.value=e}return(e,t)=>{const n=ki("v-img"),d=ki("v-avatar"),w=ki("v-list-item"),k=ki("v-list"),C=ki("v-divider"),S=ki("v-card"),T=ki("v-menu");return oo(),ho("div",{style:Y({height:u.value}),class:"headerContainer"},[yo("div",{class:"headerWrapper newContainer",style:Y({height:u.value})},[yo("div",{class:"leftPart pointer",onClick:t[0]||(t[0]=e=>ln(r).push("/".concat(ln(l).venue.locationSlug)))},[yo("img",{src:ln(l).venue.logo?ln(l).venue.logo:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/global%2Fvenue-logos%2F1569244739239_venue-logosWATL-logo.png?alt=media&token=0f58cbea-6ef3-418f-9962-1221b5014a17",alt:ln(l).venue.company},null,8,oj),yo("h3",sj,Te(ln(l).venue.company?ln(l).venue.company:"World Axe Throwing League"),1)]),yo("div",lj,[ln(i)?(oo(),ho("nav",uj,[yo("ul",cj,[(oo(!0),ho(eo,null,Ii(h.value,e=>(oo(),ho(eo,null,[e.hidden?So("",!0):(oo(),ho("li",{key:0,onClick:t=>f(e),class:ne(["navItem",{active:ln(o).path===e.link}])}
4954,[yo("span",null,Te(e.title),1)],10,dj))],64))),256))])])):So("",!0)]),yo("div",hj,[ln(a)?(oo(),ho("img",{key:0,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAApSURBVHgB7dIBCQAACAPBaf9mC6UhRET4y3ASroXt0qIUMEVTPEBTzDX7bAoqwHQcaQAAAABJRU5ErkJggg==",alt:"",onClick:t[1]||(t[1]=e=>c.value=!0)})):So("",!0),ln(fP).currentUser&&Object.keys(ln(s).user).length&&ln(i)?(oo(),ho(eo,{key:1},[ln(s).userRoles.host||["master","commissioner"].includes(ln(s).user.siteAccess)?(oo(),po(ij,{key:0,class:"doubleWordItem",onClick:b},{default:ea(()=>[...t[5]||(t[5]=[yo("span",{class:"host","data-name":"access"}," Host Site ",-1)])]),_:1})):So("",!0)],64)):So("",!0),ln(i)?(oo(),po(T,{key:2,"open-on-hover":!!ln(fP).currentUser},{activator:ea(({props:e})=>[yo("div",Io({class:"d-flex align-center ml-4 pointer",onClick:v},e,{"data-cypress-login":"sign-in-header"}),[bo(d,{size:"60px",color:"#cbcbcb"},{default:ea(()=>[bo(n,{src:ln(s).user.pic,alt:""},null,8,["src"])]),_:1}),yo("p",pj,Te(ln(fP).currentUser?"":"Sign In"),1)],16)]),default:ea(()=>[ln(fP).currentUser?(oo(),po(S,{key:0,"min-width":"300",class:"playerHoverMenu"},{default:ea(()=>[bo(k,null,{default:ea(()=>[bo(w,{"prepend-avatar":ln(s).user.pic,subtitle:ln(s).user.email,title:"".concat(ln(s).user.first||""," ").concat(ln(s).user.last||"")},null,8,["prepend-avatar","subtitle","title"])]),_:1}),bo(C),bo(k,null,{default:ea(()=>["no-venue"!==ln(s).user.venue?(oo(),po(w,{key:0,onClick:y,class:"menuItem"},{default:ea(()=>[...t[6]||(t[6]=[ko(" Home venue ",-1)])]),_:1})):So("",!0),"profile"!==ln(o).name?(oo(),po(w,{key:1,onClick:t[2]||(t[2]=e=>p({title:"Profile",link:"/watl/profile",linkType:"relative"})),class:"menuItem"},{default:ea(()=>[...t[7]||(t[7]=[ko(" My Profile ",-1)])]),_:1})):So("",!0),"selfSignUpTournaments"!==ln(o).name?(oo(),po(w,{key:2,class:"menuItem",onClick:t[3]||(t[3]=e=>p({title:"My sign up's",link:"/watl/selfSignUpTournaments",linkType:"relative"}))},{default:ea(()=>[...t[8]||(t[8]=[ko(" My sign up's ",-1)])]),_:1})):So("",!0),"playerSubscription"!==ln(o).name?(oo(),po(w,{key:3,onClick:t[4]||(t[4]=e=>p({title:"My subscriptions",link:"/".concat(ln(l).venue.locationSlug,"/playerSubscription"),linkType:"relative"})),class:"menuItem"},{default:ea(()=>[...t[9]||(t[9]=[ko(" My subscriptions ",-1)])]),_:1})):So("",!0),bo(w,{onClick:g,class:"menuItem"},{default:ea(()=>[...t[10]||(t[10]=[ko(" Sign Out ",-1)])]),_:1})]),_:1})]),_:1})):So("",!0)]),_:1},8,["open-on-hover"])):So("",!0)])],4),bo(aj,{mobileMenuShowed:c.value,headerHeight:u.value,navMenu:h.value,onSignIn:m,onSignOut:g,onRedirectToHomeVenue:y,onRedirectToHosts:b,onMenuControls:f,onUpdateDialog:_},null,8,["mobileMenuShowed","headerHeight","navMenu"])],4)}}},mj=PX(fj,[["__scopeId","data-v-724e4ec4"]]),vj={class:"home"},gj={key:0,class:"d-flex justify-center gap-10 newContainer"},yj={__name:"home",props:{locationSlug:String},setup(e){const t=VG(),n=jG(),a=UG(),i=LP(),r=XG(),o=e,s=vL();o.locationSlug&&(n.setVenue(o.locationSlug),n.setListTournaments(o.locationSlug)),Zo(()=>"watl"!==o.locationSlug&&!s.path.includes("login")&&"documents"!==s.name);const l=Zo(()=>n.venue.rules||"watl"),u=Zo(()=>t.user.accessUpdated),c=Zo(()=>t.user.accessUpdated?"updatedAccess":"");function d(e){let t="issue"===e?"https://form.jotform.com/250915976356166":"https://form.jotform.com/250914713047151";window.open(t,"_blank")}Mr(l,()=>{null!==fP.currentUser&&t.setUser()},{immediate:!0}),Mr(()=>n.venue,()=>p());const h=Zo(()=>t.user[".key"]);function p(){if(!n.venue.locationSlug)return;let e={"hatchet-league":[],"duals-league":[],"big-axe-league":[],"knife-league":[],"knife-duals-league":[],archived:[]};kg(SP("/venues/"+n.venue.locationSlug+"/event-list/league")).then(t=>{if(!t.exists())return;let a=t.val();Object.values(a).forEach(t=>{t.hide||t.virtual||("watl"===n.venue.locationSlug&&t.isOfficial&&(t=function(e){var t;const a=r.seasonYears[e.currentSeason],i=null==(t=n.venueSeasons[a])?void 0:t[e.seasonName];if(Object.values((null==i?void 0:i.globalLeagues)||{}).includes(e.slug))return e.schedule=[{date:i.dates.start}],e;return e}(t)),t.archive?e.archived.push(t):"standard-league"===t.leagueType&&["watl","axeThrowing"].includes(t.rules)?e["hatchet-league"].push(t):"standard-league"===t.leagueType&&["wktl","knifeThrowing"].includes(t.rules)?e["knife-league"].push(t):"big-axe-league"===t.leagueType?e["big-axe-league"].push(t):"dual
4954s-league"===t.leagueType&&["wktl","knifeThrowing"].includes(t.rules)?e["knife-duals-league"].push(t):"duals-league"===t.leagueType&&["watl","axeThrowing"].includes(t.rules)&&e["duals-league"].push(t))});for(let n in e)e[n]=e[n].reverse();n.groupedLeagues=e,n.listLeagues=Object.values(a)})}return Mr(()=>h.value,e=>{if(e){let e={pic:t.user.pic,first:t.user.first,last:t.user.last,code:t.user.code};i.setComparedPlayer({player:"player1",value:e})}}),Mr([()=>s.params,()=>s.name,()=>s.redirectedFrom],(e,t)=>{var a;e[0].locationSlug===t[0].locationSlug&&"/undefined"!==(null==(a=e[2])?void 0:a.path)||!e[0].locationSlug||(n.setVenue(e[0].locationSlug),n.setListTournaments(e[0].locationSlug),"login"===e[1]&&"login"===t[1]||!e[0].locationSlug||HG(e[0].locationSlug))}),hi(()=>{p(),function(){let e=new Date,t=e.getFullYear()+"-"+("0"+(e.getMonth()+1)).slice(-2)+"-"+("0"+e.getDate()).slice(-2);i.dateToday=t}(),navigator.geolocation.getCurrentPosition(e=>{const n=e.coords.latitude,a=e.coords.longitude;t.location={lat:n,lon:a}},e=>{console.log(e),t.location={lat:43.1561681,lon:-75.8449946}})}),(t,i)=>{const r=ki("router-view");return oo(),ho("div",vj,[(oo(),po(mj,{key:ln(n).venue.locationSlug||""+h.value})),u.value?(oo(),po(JX,{key:0,alertType:c.value},null,8,["alertType"])):So("",!0),yo("div",{class:ne([0===ln(n).sponsors.length?"content-no-sponsors":"content-sponsors"])},[yo("div",null,[(oo(),po(r,{key:ln(n).venue.locationSlug},{default:ea(({Component:e})=>[bo(_s,{name:"fade",mode:"out-in"},{default:ea(()=>[(oo(),po(Si(e)))]),_:2},1024)]),_:1}))]),["watlPublicGame","watlBigAxePublic"].includes(ln(s).name)&&ln(a).selectedEvent.virtual?(oo(),ho("div",gj,[bo(ij,{variant:"outlined",onClick:i[0]||(i[0]=e=>d("issue")),class:"repportButton"},{default:ea(()=>[...i[2]||(i[2]=[ko("report an issue",-1)])]),_:1}),bo(ij,{variant:"outlined",class:"repportButton",onClick:i[1]||(i[1]=e=>d("player"))},{default:ea(()=>[...i[3]||(i[3]=[ko("Report Player",-1)])]),_:1})])):So("",!0)],2),ln(s).path.includes("login")?So("",!0):(oo(),po(WX,{key:"footer"+e.locationSlug}))])}}},bj={key:0,class:"bottomText"},_j={__name:"customSelect",props:{value:{type:String,required:!0},disabled:Boolean,label:{type:String,default:""},height:{type:String,default:""},width:{type:String,default:""},bottomWarning:{type:String,default:""},density:{type:String,default:""},items:{type:Array,default:()=>[],required:!0}},emits:["updatedSelectValue"],setup(e,{emit:t}){const{mdAndUp:n,smAndDown:a}=LV(),i=e,r=t,o=Zo(()=>i.height?i.height:n.value?"55px":"34px"),s=Zo(()=>i.density?i.density:n.value?"default":"compact"),l=Zo(()=>i.width?a.value?"180px":i.width:"");return(t,n)=>{var a;const i=ki("v-list-item"),u=ki("v-select");return oo(),ho("div",{class:"d-flex flex-grow-1 position-relative",style:Y({height:o.value,maxHeight:o.value,width:l.value,minWidth:l.value})},[bo(u,{label:e.label,"model-value":e.value,class:"customSelect",items:e.items,variant:"outlined","base-color":"#CBCBCB","menu-icon":"mdi-chevron-down",disabled:e.disabled,color:"#353535",density:s.value,"onUpdate:modelValue":n[0]||(n[0]=e=>r("updatedSelectValue",e))},{item:ea(({props:e,item:t})=>[bo(i,Io(e,{title:t.title}),null,16,["title"])]),_:1},8,["label","model-value","items","disabled","density"]),(null==(a=e.bottomWarning)?void 0:a.length)?(oo(),ho("p",bj,Te(e.bottomWarning),1)):So("",!0)],4)}}},wj=PX(_j,[["__scopeId","data-v-192671cf"]]),kj=PX({__name:"customTabs",props:{tabItems:{type:Array,default:()=>[]},height:{type:String,default:"69px"}},emits:["updatedModelValue"],setup(e,{emit:t}){const n=t;return(t,a)=>{const i=ki("v-tab"),r=ki("v-tabs");return oo(),po(r,{class:"customTabs","onUpdate:modelValue":a[0]||(a[0]=e=>n("updatedModelValue",e)),"hide-slider":"",grow:"",height:e.height},{default:ea(()=>[xi(t.$slots,"default",{},()=>[(oo(!0),ho(eo,null,Ii(e.tabItems,e=>(oo(),po(i,{"data-cypress":e.cyAttr?e.cyAttr:"",class:"customTab",disabled:e.disabled},{default:ea(()=>[ko(Te(e.title),1)]),_:2},1032,["data-cypress","disabled"]))),256))],!0)]),_:3},8,["height"])}}},[["__scopeId","data-v-716d0817"]]),Cj=["onClick"],Sj={class:"champion-banner ribbon"},Tj={class:"year-badge"},Aj={class:"champion-content d-flex"},Ej={class:"champion-photo-container"},Ij={class:"champion-info"},xj={class:"champion-name"}
4954,Nj={class:"champion-details"},Pj={class:"location"},Mj={class:"season"},Oj={key:1,class:"text-center py-4"},Rj={__name:"leaderboardChampions",props:{champions:Array},setup(e){const t=e,n=Zo(()=>t.champions&&0!==t.champions.length?[...t.champions]:[]);return(t,a)=>{const i=ki("v-img");return oo(),ho("div",null,[e.champions.length?(oo(),ho("div",{class:"champions-container",key:"champions-container-"+e.champions.length},[a[0]||(a[0]=yo("div",{class:"champions-header"}," Champions ",-1)),(oo(),ho("div",{class:"champions-list",key:"champions-list-"+e.champions.length},[(oo(!0),ho(eo,null,Ii(n.value,(e,t)=>(oo(),ho("div",{key:e.ID,class:ne(["champion-card",0===t?"first-champion":""]),onClick:t=>{var n,a,i;(n=e).ID?n.ID.startsWith("T")?window.open("/team/"+n.ID,"_blank"):window.open("/player/"+n.ID):5===(null==(a=n.code)?void 0:a.length)?window.open("/team/"+n.code,"_blank"):4===(null==(i=n.code)?void 0:i.length)?window.open("/player/"+n.code):n.id?kg(TP("/watl/players/"+n.id)).then(e=>{window.open("/player/"+e.val().code)}):alert("Failed to read player data: ID/code missing")}},[yo("div",Sj,[yo("div",Tj,Te(e.year)+" WORLD AXE THROWING "+Te(e.discipline)+" CHAMPION",1)]),yo("div",Aj,[yo("div",Ej,[e.photo?(oo(),po(i,{key:0,src:e.photo,alt:e.name,class:"champion-photo",cover:""},null,8,["src","alt"])):(oo(),po(i,{key:1,src:"/img/icons/profile-placeholder.png",alt:e.name,class:"champion-photo",cover:""},null,8,["alt"]))]),yo("div",Ij,[yo("h3",xj,Te(e.name),1),yo("div",Nj,[yo("p",Pj,"Location: "+Te(e.location||"Unknown"),1),yo("p",Mj,"Pro: "+Te(e.season)+" Season",1)])])])],10,Cj))),128))]))])):(oo(),ho("div",Oj," Stats are not available yet. "))])}}},Dj=PX(Rj,[["__scopeId","data-v-cd9f40af"]]),Lj={class:"championStats newContainer mb-12 mt-12"},Bj={class:"d-flex align-center justify-space-between mb-4"},Fj={class:"d-none d-sm-flex align-center"},Vj={class:"d-flex d-sm-none align-center"},Xj={key:0,class:"d-flex justify-end mb-4 d-sm-none"},jj=PX({__name:"championsTabs",setup(e){const t=XG(),n=[{title:"All",value:"All"},{title:"Hatchet",value:"Hatchet"},{title:"Big Axe",value:"Big Axe"},{title:"Duals",value:"Duals"},{title:"WKTL",value:"WKTL"},{title:"WKTL Duals",value:"WKTL Duals"}],a=[{year:"2018",discipline:"Hatchet",name:"Benjamin Edginton",ID:"AI73",photo:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/global%2Fchampions%2F2018%2FBENJAMIN-EDGINGTON-HATCHET-2018.jpg?alt=media&token=12f2c0f0-50bd-4bb0-a696-4d2173dd6a50",win:"87.0",avg:"57.1",killshot:"56.5",bull:"78.69",location:"Denver, Colorado",season:"Winter - Fall Seasons 2018"},{year:"2019",discipline:"Hatchet",name:"Sam Carter",ID:"VB90",photo:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/global%2Fchampions%2F2019%2FSAM-CARTER-HATCHET-2019.jpg?alt=media&token=5749034d-b191-4756-808c-d3c650132dde",win:"89.3",avg:"56.4",killshot:"69.6",bull:"91",location:"Clemmons, North Carolina",season:"Winter - Summer Seasons 2019"},{year:"2019",discipline:"Duals",name:"Mike Kump & Will Gelatko",ID:"T10TC",photo:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/global%2Fchampions%2F2019%2FKUMP-and-GELATKO-DUALS-2019.jpg?alt=media&token=a7ea212d-455e-4c7d-a259-7286d6192ef5",win:"",avg:"",killshot:"",bull:"",location:"",season:""},{year:"2020",discipline:"Hatchet",name:"Ryan Smith",ID:"VB45",photo:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/global%2Fchampions%2F2020%2FRYAN-SMIT-HATCHET-2020-1.jpg?alt=media&token=d4ded849-83e2-4615-bbf6-072d63d471b5",win:"90.9",avg:"60",killshot:"87.5",bull:"87.8",location:"Virginia Beach, VA",season:"Winter - Fall Seasons 2020"},{year:"2020",discipline:"Duals",name:"Lucas Johnson & Hayden Brown",ID:"T16RI",photo:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/global%2Fchampions%2F2020%2FJOHNSON-and-BROWN-DUALS-2020.jpg?alt=media&token=e29bc667-b283-42c3-b17c-be4825409062",win:"",avg:"",killshot:"",bull:"",location:"",season:""},{year:"2020",discipline:"Big Axe",name:"Zach Crawford",ID:"KB55",photo:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/global%2Fchampions%2F2020%2FCRAWFORD-BIG-AXE-2020.jpg?alt=media&token=baf1d41a-d9d9-4d2e-8430-d52e166e21d9",win:"",avg:"",killshot:"",bull:"",location:"",season:""}
4954,{year:"2021",discipline:"Hatchet",name:"Mike Philabaum",ID:"CX07",photo:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/global%2Fchampions%2F2021%2FPHILABAUM-HATCHET-2021.jpg?alt=media&token=92020bf0-8dd7-4aa7-bcab-7bd1dc5fe9f7",win:"",avg:"",killshot:"",bull:"",location:"",season:""},{year:"2021",discipline:"WKTL",name:"Mike Philabaum",ID:"CX07",photo:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/global%2Fchampions%2F2021%2FPHILABAUM-WKTL-2021.jpg?alt=media&token=16608d81-9641-4082-bfc3-3342139d13f6",win:"",avg:"",killshot:"",bull:"",location:"",season:""},{year:"2021",discipline:"Duals",name:"Lucas Johnson & Hayden Brown",ID:"T16RI",photo:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/global%2Fchampions%2F2021%2FBROWN-JOHNSON-DUALS-2021.jpg?alt=media&token=a3511f0b-a988-456b-9bdc-765ddd9849bd",win:"",avg:"",killshot:"",bull:"",location:"",season:""},{year:"2021",discipline:"Big Axe",name:"Mark Mirasol",ID:"PF03",photo:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/global%2Fchampions%2F2021%2FMIRASOL-BIG-AXE-2021.jpg?alt=media&token=fdfd753c-33b3-4a98-b2ef
4954-72e50be1e820",win:"",avg:"",killshot:"",bull:"",location:"",season:""},{year:"2022",discipline:"Hatchet",name:"Dylan Teets",ID:"MO25",photo:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/global%2Fchampions%2F2022%2FDYLAN-TEETS-HATCHET-2022-1.jpg?alt=media&token=c459ef2e-f1f2-468d-8211-6e608c57f297",win:"",avg:"",killshot:"",bull:"",location:"",season:""},{year:"2022",discipline:"WKTL",name:"Mike Kump",ID:"CW60",photo:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/global%2Fchampions%2F2022%2FKUMP-WKTL-2022.jpg?alt=media&token=a3e76f75-d01a-4be8-81e2-17978f0425ed",win:"",avg:"",killshot:"",bull:"",location:"",season:""},{year:"2022",discipline:"Duals",name:"Lucas Johnson & Hayden Brown",ID:"T16RI",photo:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/global%2Fchampions%2F2022%2FJOHNSON-and-BROWN-DUALS-2022.jpg?alt=media&token=2de85451-8bfe-41d5-aeeb-923aa1da39ce",win:"",avg:"",killshot:"",bull:"",location:"",season:""},{year:"2022",discipline:"Big Axe",name:"Lucas Johnson",ID:"CU71",photo:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/global%2Fchampions%2F2022%2FJOHNSON-BIG-AXE-2022.jpg?alt=media&token=633ce874-5599-46ac-8427-c86bfc1fb400",win:"",avg:"",killshot:"",bull:"",location:"",season:""},{year:"2023",discipline:"Hatchet",name:"Garrett Gneiting",ID:"PJ19",photo:"",win:"",avg:"",killshot:"",bull:"",location:"",season:""},{year:"2023",discipline:"WKTL",name:"Lucas Johnson",ID:"CU71",photo:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/global%2Fchampions%2F2023%2FJOHNSON-WKTL-2023.jpg?alt=media&token=3d24df26-94c6-429c-b4c8-c75784b71a43",win:"",avg:"",killshot:"",bull:"",location:"",season:""},{year:"2023",discipline:"Duals",name:"Tyler Flynn & John Doepke",ID:"T45KT",photo:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/global%2Fchampions%2F2023%2FFLYNN-and-DOEPKE-DUALS-2023.jpg?alt=media&token=1d84c7b2-f5f7-4b07-8164-656193da970f",win:"",avg:"",killshot:"",bull:"",location:"",season:""},{year:"2023",discipline:"Big Axe",name:"Dylan Teets",ID:"MO25",photo:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/global%2Fchampions%2F2023%2FTEETS-BIG-AXE-2023.jpg?alt=media&token=aa47c805-7309-4c51-a754-5a25983cf90a",win:"",avg:"",killshot:"",bull:"",location:"",season:""},{year:"2024",discipline:"Hatchet",name:"Dylan Teets",ID:"MO25",photo:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/global%2Fchampions%2F2024%2FDYLAN-TEETS-HATCHET-2024-1.jpg?alt=media&token=17815057-e819-44fc-950e-4b458a892804",win:"",avg:"",killshot:"",bull:"",location:"",season:""},{year:"2024",discipline:"WKTL",name:"Coleman Bates",ID:"OZ13",photo:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/global%2Fchampions%2F2024%2FCOLEMAN-BATES-WKTL-2024.jpg?alt=media&token=172dfa84-20a6-4819-ad3d-0dd3cfba5368",win:"",avg:"",killshot:"",bull:"",location:"",season:""},{year:"2024",discipline:"Duals",name:"Joe Devine & Lucas Johnson",ID:"T20MC",photo:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/global%2Fchampions%2F2024%2FDEVINE-AND-JOHNSON-DUALS-2024.jpg?alt=media&token=406965f3-8320-4c60-9067-7566b340f1a6",win:"",avg:"",killshot:"",bull:"",location:"",season:""},{year:"2024",discipline:"Big Axe",name:"Lucas Johnson",ID:"CU71",photo:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/global%2Fchampions%2F2024%2FLUCAS-JOHNSON-BIG-AXE-2024.jpg?alt=media&token=721f8ba7-e9af-4a35-8fa8-05cf7b9e6a5e",win:"",avg:"",killshot:"",bull:"",location:"",season:""},{year:"2024",discipline:"WKTL Duals",name:"Sebastian Arnold & Thomas Antoniello",ID:"T56AB",photo:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/global%2Fchampions%2F2024%2FARNOLD-AND-ANTONIELLO-WKTL-DUALS-2024.jpg?alt=media&token=f88a94b6-9e3a-49d1-8192-73a68cd55af1",win:"",avg:"",killshot:"",bull:"",location:"",season:""}],i=Ht({eventIndex:0,disciplineIndex:0,selectedYear:"All",selectedSeason:t.getCurrentSeason.value});Mr(()=>i.selectedYear,()=>{i.disciplineIndex=0});const r=Zo(()=>{const e=new Set;let n=[];n.push({title:"All Years",value:"All"});for(let[a,i]of Object.entries(t.seasonYears)){const t=i.toString();e.add(t)}
4954a.forEach(t=>{t.year&&e.add(t.year)});return Array.from(e).sort((e,t)=>t-e).forEach(e=>{n.push({title:e,value:e})}),n});function o(e){i.disciplineIndex=e}i.selectedYear="All";const{smAndUp:s}=LV();Mr(()=>i.selectedYear,e=>{}),Mr(()=>i.disciplineIndex,e=>{});const l=Zo(()=>{if(!a||0===a.length)return[];i.disciplineIndex>0&&i.disciplineIndex<n.length&&n[i.disciplineIndex].title;return a.filter(e=>{const t="All"===i.selectedYear||String(e.year).trim()===String(i.selectedYear).trim(),a=0===i.disciplineIndex||e.discipline===n[i.disciplineIndex].title;return t&&a})}),u=Zo(()=>"All"===i.selectedYear&&0===i.disciplineIndex);function c(){i.selectedYear="All",i.disciplineIndex=0}return Zo(()=>l.value),(e,t)=>{const a=ki("v-btn");return oo(),ho("div",Lj,[yo("div",Bj,[t[4]||(t[4]=yo("h2",{class:"pb-5 title newContainer"},"Champions",-1)),yo("div",Fj,[u.value?So("",!0):(oo(),po(a,{key:0,variant:"text",density:"compact",color:"primary","prepend-icon":"mdi-refresh",class:"mr-2",onClick:c},{default:ea(()=>[...t[3]||(t[3]=[ko(" Reset ",-1)])]),_:1})),bo(wj,{width:"220px",items:r.value,value:i.selectedYear,class:"boardSelect",onUpdatedSelectValue:t[0]||(t[0]=e=>i.selectedYear=e)},null,8,["items","value"])]),yo("div",Vj,[bo(wj,{width:"180px",items:r.value,value:i.selectedYear,class:"boardSelect",onUpdatedSelectValue:t[1]||(t[1]=e=>i.selectedYear=e)},null,8,["items","value"])])]),ln(s)||u.value?So("",!0):(oo(),ho("div",Xj,[bo(a,{variant:"text",density:"compact",color:"primary","prepend-icon":"mdi-refresh",onClick:c},{default:ea(()=>[...t[5]||(t[5]=[ko(" Reset ",-1)])]),_:1})])),bo(kj,{modelValue:i.disciplineIndex,"onUpdate:modelValue":[t[2]||(t[2]=e=>i.disciplineIndex=e),o],color:"primary",tabItems:n,class:"mb-5 leagueTabs"},null,8,["modelValue"]),bo(Dj,{champions:l.value},null,8,["champions"])])}}},[["__scopeId","data-v-a232a5bd"]]),Uj=e=>"object"==typeof e&&null!==e,Hj=(e,t,n=!0)=>e&&"length"in e&&e.length?(e.sort((e,n)=>Uj(e)&&Uj(n)&&e[t]>n[t]?1:-1),n||e.reverse(),e):[],zj=(e,t,n=!0)=>e&&"length"in e&&e.length?(e.forEach(e=>{e[t]||(e[t]=0)}),e.sort((e,n)=>Uj(e)&&Uj(n)&&e[t]>n[t]?1:-1),n||e.reverse(),e):[],Kj=e=>e.replace(/(\b(https?|ftp):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gim,'<a href="$1" target="_blank">$1</a>').replace(/(^|[^\/])(www\.[\S]+(\b|$))/gim,'$1<a href="http://$2" target="_blank">$2</a>').replace(/(\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,6})/gim,'<a href="mailto:$1">$1</a>');function Wj(){if("connection"in navigator){const e=navigator.connection;return"slow-2g"===e.effectiveType||"2g"===e.effectiveType||e.downlink<1}return!navigator.onLine}function Gj(e="bullsEye",t,n,a,i=!1){var r,o,s,l;let u={top_left:{total:0},top_right:{total:0},low_left:{total:0},low_right:{total:0},..."bullsEye"===e&&{_center:{total:0}}};Object.keys(u).forEach(e=>{t[e]&&n[e]&&(u[e].total=t[e].total+a*n[e].total)});const c={overtime:{innerShot:((null==(r=t.overtime)?void 0:r.innerShot)||0)+a*((null==(o=n.overtime)?void 0:o.innerShot)||0),outerShot:((null==(s=t.overtime)?void 0:s.outerShot)||0)+a*((null==(l=n.overtime)?void 0:l.outerShot)||0)}};return{...u,...i&&c}}function qj(e,t,n){let a;a="standard-league"===e&&"watl"===n?t?"watl_standard-league-killshots":"watl_standard-league":"big-axe-league"===e?t?"watl_big-axe-league-killshots":"watl_big-axe-league":t?"wktl_standard-league-killshots":"wktl_standard-league";const i={"watl_standard-league":{score0:3.63,score1:3.16,score2:8.04,score3:14.71,score4:33.56,score5:14.16,score6:7.69,drops:17.06},"watl_standard-league-killshots":{score7:6.4,score8:3.36,score0:60.24,drops:30},"watl_big-axe-league":{score0:6.36,score1:5.06,score2:8.07,score3:16.79,score4:34.26,score5:8.38,score6:6.74,drops:17.81},"watl_big-axe-league-killshots":{score8:2.5,score0:67.5,drops:30},"wktl_standard-league":{score0:5.52,score1:2.56,score2:5.25,score3:10.97,score4:21.73,score5:3.29,score6:1.71,drops:49.95},"wktl_standard-league-killshots":{score8:2.5,score0:67.5,drops:30}}[a],r=100*Math.random();let o=0,s=0;for(const[l,u]of Object.entries(i))if(o+=u,r<=o){s="drops"===l?"D":parseInt(l.replace("score",""));break}return 0!==s||t?0===s&&t&&(s=0):s=4,s}
4955/**
4956 * @license
4957 * Copyright 2020 Google LLC
4958 *
4959 * Licensed under the Apache License, Version 2.0 (the "License");
4960 * you may not use this file except in compliance with the License.
4961 * You may obtain a copy of the License at
4962 *
4963 *   http://www.apache.org/licenses/LICENSE-2.0
4964 *
4965 * Unless required by applicable law or agreed to in writing, software
4966 * distributed under the License is distributed on an "AS IS" BASIS,
4967 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4968 * See the License for the specific language governing permissions and
4969 * limitations under the License.
4970 */const $j=new Map,Yj={activated:!1,tokenObservers:[]};function Jj(e){return $j.get(e)||{...Yj}}const Qj=3e4,Zj=96e4;
4971/**
4972 * @license
4973 * Copyright 2020 Google LLC
4974 *
4975 * Licensed under the Apache License, Version 2.0 (the "License");
4976 * you may not use this file except in compliance with the License.
4977 * You may obtain a copy of the License at
4978 *
4979 *   http://www.apache.org/licenses/LICENSE-2.0
4980 *
4981 * Unless required by applicable law or agreed to in writing, software
4982 * distributed under the License is distributed on an "AS IS" BASIS,
4983 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4984 * See the License for the specific language governing permissions and
4985 * limitations under the License.
4986 */class eU{constructor(e,t,n,a,i){if(this.operation=e,this.retryPolicy=t,this.getWaitDuration=n,this.lowerBound=a,this.upperBound=i,this.pending=null,this.nextErrorWaitInterval=a,a>i)throw new Error("Proactive refresh lower bound greater than upper bound!")}start(){this.nextErrorWaitInterval=this.lowerBound,this.process(!0).catch(()=>{})}stop(){this.pending&&(this.pending.reject("cancelled"),this.pending=null)}isRunning(){return!!this.pending}async process(e){this.stop();try{this.pending=new ju,this.pending.promise.catch(e=>{}),await(t=this.getNextRun(e),new Promise(e=>{setTimeout(e,t)})),this.pending.resolve(),await this.pending.promise,this.pending=new ju,this.pending.promise.catch(e=>{}),await this.operation(),this.pending.resolve(),await this.pending.promise,this.process(!0).catch(()=>{})}catch(Sae){this.retryPolicy(Sae)?this.process(!1).catch(()=>{}):this.stop()}var t;
4987/**
4988 * @license
4989 * Copyright 2020 Google LLC
4990 *
4991 * Licensed under the Apache License, Version 2.0 (the "License");
4992 * you may not use this file except in compliance with the License.
4993 * You may obtain a copy of the License at
4994 *
4995 *   http://www.apache.org/licenses/LICENSE-2.0
4996 *
4997 * Unless required by applicable law or agreed to in writing, software
4998 * distributed under the License is distributed on an "AS IS" BASIS,
4999 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5000 * See the License for the specific language governing permissions and
5001 * limitations under the License.
5002 */}getNextRun(e){if(e)return this.nextErrorWaitInterval=this.lowerBound,this.getWaitDuration();{const e=this.nextErrorWaitInterval;return this.nextErrorWaitInterval*=2,this.nextErrorWaitInterval>this.upperBound&&(this.nextErrorWaitInterval=this.upperBound),e}}}const tU=new ec("appCheck","AppCheck",{"already-initialized":"You have already called initializeAppCheck() for FirebaseApp {$appName} with different options. To avoid this error, call initializeAppCheck() with the same options as when it was originally called. This will return the already initialized instance.","use-before-activation":"App Check is being used before initializeAppCheck() is called for FirebaseApp {$appName}. Call initializeAppCheck() before instantiating other Firebase services.","fetch-network-error":"Fetch failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-parse-error":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status-error":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","recaptcha-error":"ReCAPTCHA error.","initial-throttle":"{$httpStatus} error. Attempts allowed again after {$time}",throttled:"Requests throttled due to previous {$httpStatus} error. Attempts allowed again after {$time}"});function nU(e){if(!Jj(e).activated)throw tU.create("use-before-activation",{appName:e.n
5002ame})}
5003/**
5004 * @license
5005 * Copyright 2020 Google LLC
5006 *
5007 * Licensed under the Apache License, Version 2.0 (the "License");
5008 * you may not use this file except in compliance with the License.
5009 * You may obtain a copy of the License at
5010 *
5011 *   http://www.apache.org/licenses/LICENSE-2.0
5012 *
5013 * Unless required by applicable law or agreed to in writing, software
5014 * distributed under the License is distributed on an "AS IS" BASIS,
5015 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5016 * See the License for the specific language governing permissions and
5017 * limitations under the License.
5018 */const aU="firebase-app-check-store";let iU=null;function rU(e,t){return async function(e,t){const n=(await(iU||(iU=new Promise((e,t)=>{try{const n=indexedDB.open("firebase-app-check-database",1);n.onsuccess=t=>{e(t.target.result)},n.onerror=e=>{var n;t(tU.create("storage-open",{originalErrorMessage:null==(n=e.target.error)?void 0:n.message}))},n.onupgradeneeded=e=>{const t=e.target.result;0===e.oldVersion&&t.createObjectStore(aU,{keyPath:"compositeKey"})}}catch(w7){t(tU.create("storage-open",{originalErrorMessage:null==w7?void 0:w7.message}))}}),iU))).transaction(aU,"readwrite"),a=n.objectStore(aU).put({compositeKey:e,value:t});return new Promise((e,t)=>{a.onsuccess=t=>{e()},n.onerror=e=>{var n;t(tU.create("storage-set",{originalErrorMessage:null==(n=e.target.error)?void 0:n.message}))}})}(function(e){return"".concat(e.options.appId,"-").concat(e.name)}
5019/**
5020 * @license
5021 * Copyright 2020 Google LLC
5022 *
5023 * Licensed under the Apache License, Version 2.0 (the "License");
5024 * you may not use this file except in compliance with the License.
5025 * You may obtain a copy of the License at
5026 *
5027 *   http://www.apache.org/licenses/LICENSE-2.0
5028 *
5029 * Unless required by applicable law or agreed to in writing, software
5030 * distributed under the License is distributed on an "AS IS" BASIS,
5031 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5032 * See the License for the specific language governing permissions and
5033 * limitations under the License.
5034 */(e),t)}const oU=new Nc("@firebase/app-check");function sU(e,t){return Qu()?rU(e,t).catch(e=>{oU.warn("Failed to write token to IndexedDB. Error: ".concat(e))}):Promise.resolve()}
5035/**
5036 * @license
5037 * Copyright 2020 Google LLC
5038 *
5039 * Licensed under the Apache License, Version 2.0 (the "License");
5040 * you may not use this file except in compliance with the License.
5041 * You may obtain a copy of the License at
5042 *
5043 *   http://www.apache.org/licenses/LICENSE-2.0
5044 *
5045 * Unless required by applicable law or agreed to in writing, software
5046 * distributed under the License is distributed on an "AS IS" BASIS,
5047 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5048 * See the License for the specific language governing permissions and
5049 * limitations under the License.
5050 */const lU={error:"UNKNOWN_ERROR"};async function uU(e,t=!1,n=!1){const a=e.app;nU(a);const i=Jj(a);let r,o=i.token;if(o&&!hU(o)&&(i.token=void 0,o=void 0),!o){const e=await i.cachedTokenPromise;e&&(hU(e)?o=e:await sU(a,void 0))}if(!t&&o&&hU(o))return{token:o.token};let s,l=!1;try{i.exchangeTokenPromise||(i.exchangeTokenPromise=i.provider.getToken().finally(()=>{i.exchangeTokenPromise=void 0}),l=!0),o=await Jj(a).exchangeTokenPromise}catch(w7){w7.code==="appCheck/".concat("throttled")||w7.code==="appCheck/".concat("initial-throttle")?oU.warn(w7.message):n&&oU.error(w7),r=w7}return o?r?s=hU(o)?{token:o.token,internalError:r}:pU(r):(s={token:o.token},i.token=o,await sU(a,o)):s=pU(r),l&&function(e,t){const n=Jj(e).tokenObservers;for(const a of n)try{"EXTERNAL"===a.type&&null!=t.error?a.error(t.error):a.next(t)}catch(w7){}}(a,s),s}function cU(e,t){const n=Jj(e),a=n.tokenObservers.filter(e=>e.next!==t);0===a.length&&n.tokenRefresher&&n.tokenRefresher.isRunning()&&n.tokenRefresher.stop(),n.tokenObservers=a}function dU(e){const{app:t}=e,n=Jj(t);let a=n.tokenRefresher;a||(a=function(e){const{app:t}=e;return new eU(async()=>{let n;if(n=Jj(t).token?await uU(e,!0):await uU(e),n.error)throw n.error;if(n.internalError)throw n.internalError},()=>!0,()=>{const e=Jj(t);if(e.token){let t=e.token.issuedAtTimeMillis+.5*(e.token.expireTimeMillis-e.token.issuedAtTimeMillis)+3e5;const n=e.token.expireTimeMillis-3e5;return t=Math.min(t,n),Math.max(0,t-Date.now())}return 0},Qj,Zj)}(e),n.tokenRefresher=a),!a.isRunning()&&n.isTokenAutoRefreshEnabled&&a.start()}function hU(e){return e.expireTimeMillis-Date.now()>0}function pU(e){return{token:(t=lU,Eu.encodeString(JSON.stringify(t),!1)),error:e};var t}
5051/**
5052 * @license
5053 * Copyright 2020 Google LLC
5054 *
5055 * Licensed under the Apache License, Version 2.0 (the "License");
5056 * you may not use this file except in compliance with the License.
5057 * You may obtain a copy of the License at
5058 *
5059 *   http://www.apache.org/licenses/LICENSE-2.0
5060 *
5061 * Unless required by applicable law or agreed to in writing, software
5062 * distributed under the License is distributed on an "AS IS" BASIS,
5063 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5064 * See the License for the specific language governing permissions and
5065 * limitations under the License.
5066 */class fU{constructor(e,t){this.app=e,this.heartbeatServiceProvider=t}_delete(){const{tokenObservers:e}=Jj(this.app);for(const t of e)cU(this.app,t.next);return Promise.resolve()}}function mU(e){return{getToken:t=>uU(e,t),getLimitedUseToken:()=>async function(e){const t=e.app;nU(t);const{provider:n}=Jj(t);{const{token:e}=await n.getToken();return{token:e}}}(e),addTokenListener:t=>function(e,t,n,a){const{app:i}=e,r=Jj(i),o={next:n,error:a,type:t};if(r.tokenObservers=[...r.tokenObservers,o],r.token&&hU(r.token)){const t=r.token;Promise.resolve().then(()=>{n({token:t.token}),dU(e)}).catch(()=>{})}r.cachedTokenPromise.then(()=>dU(e))}(e,"INTERNAL",t),removeTokenListener:t=>cU(e.app,t)}}const vU="app-check-internal";xd(new _c("app-check",e=>function(e,t){return new fU(e,t)}(e.getProvider("app").getImmediate(),e.getProvider("heartbeat")),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,t,n)=>{e.getProvider(vU).initialize()})),xd(new _c(vU,e=>mU(e.getProvider("app-check").getImmediate()),"PUBLIC").setInstantiationMode("EXPLICIT")),Bd("@firebase/app-check","0.11.0");const gU=Symbol("firebaseApp");function yU(e){return Ro()&&nr(gU,null)||Ld(e)}const bU=()=>{};function _U(e){return!!e&&"object"==typeof e}function wU(e){return _U(t=e)&&"document"===t.type||function(e){return _U(e)&&"collection"===e.type}(e);var t}const kU=Symbol.for("v-scx");const CU=new WeakMap;const SU=new WeakMap;function TU(e,t){return SU.has(t)||SU.set(t,{f:{},r:{},s:{},u:{}}),SU.get(t)}function AU(e){return wU(e)||_U(t=e)&&"query"===t.type?["f",e.path]:function(e){return _U(e)&&"ref"in e}(e)?["r",e.toString()]:function(e){return _U(e)&&"string"==typeof e.bucket}(e)?["s",e.toString()]:[];var t}const EU=new WeakMap;function IU(e,t,n){const a=yU();EU.has(a)||EU.set(a,new Map);const i=EU.get(a),r=function(e,t,n,a){if(!e)return;const[i,r]=AU(e);if(!i)return;const o=TU(0,a)[i],s=t||r;return s?(n.then(e=>{o[s]=e}).catch(bU),s):void 0}(t,n,e,a);return r&&i.set(r,e),r?()=>i.delete(r):bU}function xU(e,t){for(let n=0;n<e.length;n++)if(e[n].id===t)return n;return-1}const NU={reset:!1,serialize:function(e){if(!e.exists())return null;const t=e.val();return _U(t)?Object.defineProperty(t,"id",{value:e.key}):{$value:t,id:e.key}},wait:!0};function PU(e,t,n,a,i){const r=Object.assign({},NU,i);let o=r.wait?[]:e;r.wait||(e.value=[]);let s=bU,l=bU,u=bU,c=bU,d=bU;return r.once?kg(t).then(t=>{const a=[];t.forEach(e=>{a.push(r.serialize(e))}),n(e.value=a)}).catch(a):(s=function(e,t,n,a){return Tg(e,"child_added",t,n,a)}(t,(e,t)=>{const n=un(o),a=t?xU(n,t)+1:0;n.splice(a,0,r.serialize(e))},a),u=function(e,t,n,a){return Tg(e,"child_removed",t,n,a)}(t,e=>{const t=un(o);t.splice(xU(t,e.key),1)},a),l=function(e,t,n,a){return Tg(e,"child_changed",t,n,a)}(t,e=>{const t=un(o);t.splice(xU(t,e.key),1,r.serialize(e))},a),c=function(e,t,n,a){return Tg(e,"child_moved",t,n,a)}(t,(e,t)=>{const n=un(o),a=xU(n,e.key),i=n.splice(a,1)[0],r=t?xU(n,t)+1:0;n.splice(r,0,i)},a),d=Ag(t,()=>{const t=un(o);r.wait&&(e.value=t,o=e),n(t),d()},a)),t=>{if(d(),s(),u(),l(),c(),t){const n="function"==typeof t?t():[];e.value=n}}}function MU(e,t={},n=!1){let a=bU;const i=Object.assign({},NU,t),r=un(e),o=i.target||an();!!nr(kU,0)&&(i.once=!0);const s=function(e,t,n,a){if(!e)return n;const[i,r]=AU(e);if(!i)return n;const o=TU(0,a)[i]||{},s=t||r;return s&&s in o?o[s]:n}(r,i.ssrKey,o.value,yU());o.value=s;let l=!(n?(s||[]).length>0:void 0!==s);const u=an(),c=an(!1),d=rn(),h=Re();let p=bU;function f(){const t=un(e),n=new Promise((e,n)=>{if(a(i.reset),!t)return a=bU,e(null);c.value=l,l=!0,a=Array.isArray(o.value)?PU(o,t,e,n,i):function(e,t,n,a,i){const r=Object.assign({},NU,i);let o=bU;function s(t){const a=r.serialize(t);e.value=a,n(a)}return r.once?kg(t).then(s).catch(a):o=Ag(t,s,a),t=>{if(o(),t){const n="function"==typeof t?t():null;e.value=n}}}(o,t,e,n,i)}).catch(e=>{throw d.value===n&&(u.value=e),e}).finally(()=>{d.value===n&&(c.value=!1)});d.value=n}let m=bU;function v(e=i.reset){m(),p(),a(e)}return(nn(e)||"function"==typeof e)&&(m=Mr(e,f)),f(),r&&(p=IU(d.value,r,i.ssrKey)),h&&(De(v),Ro()&&gi(()=>d.value)),Object.defineProperties(o,{data:{get:()=>o},error:{get:()=>u},pending:{get:()=>c},promise:{get:()=>d},stop:{get:()=>v}})}function OU(e,t){return MU(e,{target:an([]),...t},!0)}function RU(e,t){return MU(e,{target:an(),...t})}const DU=new WeakMap;const LU={bindName:"$databaseBind",unbindName:"$databaseUnbind"};function BU(e,t,n){const a=Object.assign({},LU,t),{bindName:i,unbindName:r}=a,o=e.config.globalProperties;o[r]=function(e,t){!function(e,t,n){t&&t[e]&&(t[e](n),delete t[e])}(e,DU.get(this),t),delete this.$firebaseRefs[e]},o[i]=function(t,i,r){const o=Object.assign({},a,r),s=gn(this.$data,t);DU.has(this)||DU.set(this,{});const l=DU.get(this);l[t]&&l[t](o.reset);const u=function(e,t){if(!CU.has(e)){const n=Oe(!0);CU.set(e,n);const{unmount:a}=t;t.unmount=()=>{a.call(t),n.stop(),CU.delete(e)}}return CU.get(e)}(n||yU(),e).run(()=>Oe()),{promise:c,stop:d}=e.runWithContext(()=>u.run(()=>MU(i,{target:s,...o})));return l[t]=e=>{d(e),u.stop()},this.$firebaseRefs[t]=i.ref,c.value},e.mixin({beforeCreate(){this.$firebaseRefs=Object.create(null)},created(){let e=this.$options.firebase;if("function"==typeof e&&(e=e.call(this)),e)for(const t in e)this[i](t,e[t],a)},beforeUnmount(){const e=DU.get(this);if(e)for(const t in e)e[t]();this.$firebaseRefs=null}})}const FU={class:"tableHead"},VU={class:"tableRow"},XU={class:"tableColumn"},jU=["onClick"],UU={key:0,class:"leaderboardLink"},HU=["onClick"],zU={key:1,class:"d-flex align-center justify-center py-5 text-h5"},KU=PX({__name:"leaderboardNew",props:{leagueLink:{type:String},playerStats:Array},setup(e){const t=[{label:"Score",rate:"score"},{label:"High Score",rate:"high"},{label:"highest avg.score",rate:"scoreavg"}],n=mL();function a(e,t){return e.slice().sort((e,n)=>parseFloat(e[t])<parseFloat(n[t])?100:parseFloat(e[t])>parseFloat(n[t])?-100:e.score<n.score?1:e.score>n.score?-1:0).slice(0,10)}return(i,r)=>{const o=ki("v-table");return e.playerStats.length?(oo(),po(o,{key:0},{default:ea(()=>[yo("thead",null,[yo("tr",FU,[(oo(),ho(eo,null,Ii(t,e=>yo("th",{key:e.rate}
5066,Te(e.label),1)),64))])]),yo("tbody",null,[yo("tr",VU,[(oo(),ho(eo,null,Ii(t,t=>yo("td",XU,[(oo(!0),ho(eo,null,Ii(a(e.playerStats,t.rate),e=>(oo(),ho("div",{class:"cellContent d-flex justify-space-between",onClick:t=>{var n,a,i;5===(null==(a=(n=e).code)?void 0:a.length)?window.open("/team/"+n.code,"_blank"):4===(null==(i=n.code)?void 0:i.length)?window.open("/player/"+n.code):n.id?kg(TP("/watl/players/"+n.id)).then(e=>{window.open("/player/"+e.val().code)}):alert("Failed to read player data: Key missing")}},Te(e.name?e.name:e.first+" "+e.last),9,jU))),256)),e.leagueLink?(oo(),ho("p",UU,[yo("span",{onClick:Dl(a=>ln(n).push("".concat(e.leagueLink,"#").concat(t.rate)),["prevent"])},"Leaderboard",8,HU)])):So("",!0)])),64))])])]),_:1})):(oo(),ho("div",zU," Stats are not available yet. "))}}},[["__scopeId","data-v-f3cb36a7"]]),WU={class:"officialsWrapper newContainer"},GU={class:"title"},qU={class:"d-flex filterSection align-center"},$U={class:"d-flex selects"},YU={key:0},JU=PX({__name:"officialsPreview",setup(e){const t=jG(),n=XG(),a=UG();mL();const{smAndUp:i}=LV(),r=Ht({eventIndex:0,leagueIndex:0,selectedYear:"",selectedSeason:n.getCurrentSeason.value}),o=an([]),s=Zo(()=>o.value.map((e,t)=>({title:e.title,value:t}))),l=an(""),u=an(""),c=[{title:"Hatchet",value:"hatchet-league"},{title:"Big Axe",value:"big-axe-league"},{title:"Hatchet Duals",value:"duals-league"},{title:"Knife",value:"knife-league"},{title:"Knife Duals",value:"knife-duals-league"}],d=Zo(()=>{let e=[];for(let[t,a]of Object.entries(n.seasonYears))e.push({title:a,value:t});return e});d.value.forEach(e=>{e.title===+n.currentYear&&(r.selectedYear=e.value)});const h=Zo(()=>r.selectedYear.slice(-1)>5?n.seasons:n.seasons.map(e=>({...e,title:e.value})));Mr(()=>n.getCurrentSeason,e=>{r.selectedSeason=e.value});let p=OU(Zo(()=>u.value?Hg(AP(u.value),Fg("score")):null));const f=Zo(()=>t.groupedLeagues);Mr([r,()=>f.value],([e])=>{const n=c[e.eventIndex].value,a=(f.value[n]||[]).filter(t=>{var n;return t.currentSeason===e.selectedYear&&((null==(n=t.seasonName)?void 0:n.toLowerCase())===e.selectedSeason.toLowerCase()||t.slug.includes(e.selectedSeason.toLowerCase()))});var i;o.value=Hj(a,"rules").filter(e=>!e.virtual),(i=o.value[e.leagueIndex])?(u.value="/venues/"+t.venue.locationSlug+"/league/"+i.slug+"/"+i.currentSeason+"/standings",l.value=t.venue.locationSlug+"/league/"+i.slug):(u.value=null,p.value=[],l.value="")},{immediate:!0});const m=Zo(()=>p.value.filter(e=>e.gp<=28));return(e,t)=>{const u=ki("v-tab"),p=ki("v-tabs");return oo(),ho("div",WU,[yo("h2",GU,"Official League "+Te(ln(n).currentYear),1),yo("div",qU,[yo("div",$U,[bo(wj,{items:d.value,value:r.selectedYear,class:"boardSelect",onUpdatedSelectValue:t[0]||(t[0]=e=>r.selectedYear=e)},null,8,["items","value"]),bo(wj,{width:"150px",items:h.value,value:r.selectedSeason,class:"boardSelect ml-5",onUpdatedSelectValue:t[1]||(t[1]=e=>r.selectedSeason=e)},null,8,["items","value"])])]),bo(kj,{tabItems:c,modelValue:r.eventIndex,"onUpdate:modelValue":t[2]||(t[2]=e=>r.eventIndex=e),class:"mb-7"},null,8,["modelValue"]),ln(i)?(oo(),po(p,{key:0,grow:"",modelValue:r.leagueIndex,"onUpdate:modelValue":t[3]||(t[3]=e=>r.leagueIndex=e),class:"leagueTabs mb-5",color:"red"},{default:ea(()=>[(oo(!0),ho(eo,null,Ii(o.value,(e,t)=>(oo(),po(u,{key:e[".key"]},{default:ea(()=>["Tournament"===ln(a).getSelectedEventType&&3!==t?(oo(),ho("span",YU,Te(e.type),1)):So("",!0),yo("span",null,Te(e.title),1)]),_:2},1024))),128))]),_:1},8,["modelValue"])):(oo(),po(wj,{key:1,items:s.value,value:o.value.length?r.leagueIndex:null,class:"mb-5",onUpdatedSelectValue:t[4]||(t[4]=e=>r.leagueIndex=e)},null,8,["items","value"])),bo(KU,{playerStats:m.value,leagueLink:l.value},null,8,["playerStats","leagueLink"])])}}},[["__scopeId","data-v-d4fed3c6"]]),QU="data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='20'%20cy='20'%20r='20'%20fill='%23D9D9D9'/%3e%3cpath%20d='M20%2019C18.9%2019%2017.9583%2018.6083%2017.175%2017.825C16.3917%2017.0417%2016%2016.1%2016%2015C16%2013.9%2016.3917%2012.9583%2017.175%2012.175C17.9583%2011.3917%2018.9%2011%2020%2011C21.1%2011%2022.0417%2011.3917%2022.825%2012.175C23.6083%2012.9583%2024%2013.9%2024%2015C24%2016.1%2023.6083%2017.0417%2022.825%2017.825C22.0417%2018.6083%2021.1%2019%2020%2019ZM12%2027V24.2C12%2023.6333%2012.1458%2023.1125%2012.4375%2022.6375C12.7292%2022.1625%2013.1167%2021.8%2013.6%2021.55C14.6333%2021.0333%2015.6833%2020.6458%2016.75%2020.3875C17.8167%2020.1292%2018.9%202
50660%2020%2020C21.1%2020%2022.1833%2020.1292%2023.25%2020.3875C24.3167%2020.6458%2025.3667%2021.0333%2026.4%2021.55C26.8833%2021.8%2027.2708%2022.1625%2027.5625%2022.6375C27.8542%2023.1125%2028%2023.6333%2028%2024.2V27H12ZM14%2025H26V24.2C26%2024.0167%2025.9542%2023.85%2025.8625%2023.7C25.7708%2023.55%2025.65%2023.4333%2025.5%2023.35C24.6%2022.9%2023.6917%2022.5625%2022.775%2022.3375C21.8583%2022.1125%2020.9333%2022%2020%2022C19.0667%2022%2018.1417%2022.1125%2017.225%2022.3375C16.3083%2022.5625%2015.4%2022.9%2014.5%2023.35C14.35%2023.4333%2014.2292%2023.55%2014.1375%2023.7C14.0458%2023.85%2014%2024.0167%2014%2024.2V25ZM20%2017C20.55%2017%2021.0208%2016.8042%2021.4125%2016.4125C21.8042%2016.0208%2022%2015.55%2022%2015C22%2014.45%2021.8042%2013.9792%2021.4125%2013.5875C21.0208%2013.1958%2020.55%2013%2020%2013C19.45%2013%2018.9792%2013.1958%2018.5875%2013.5875C18.1958%2013.9792%2018%2014.45%2018%2015C18%2015.55%2018.1958%2016.0208%2018.5875%2016.4125C18.9792%2016.8042%2019.45%2017%2020%2017Z'%20fill='%239499A6'/%3e%3c/svg%3e";var ZU,eH={exports:{}};var tH=(ZU||(ZU=1,eH.exports=function(){var e=1e3,t=6e4,n=36e5,a="millisecond",i="second",r="minute",o="hour",s="day",l="week",u="month",c="quarter",d="year",h="date",p="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var a=String(e);return!a||a.length>=t?e:""+Array(t+1-a.length).join(n)+e},y={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),a=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+g(a,2,"0")+":"+g(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var a=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(a,u),r=n-i<0,o=t.clone().add(a+(r?-1:1),u);return+(-(a+(n-i)/(r?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:u,y:d,w:l,d:s,D:h,h:o,m:r,s:i,ms:a,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",_={};_[b]=v;var w=function(e){return e instanceof T},k=function e(t,n,a){var i;if(!t)return b;if("string"==typeof t){var r=t.toLowerCase();_[r]&&(i=r),n&&(_[r]=n,i=r);var o=t.split("-");if(!i&&o.length>1)return e(o[0])}else{var s=t.name;_[s]=t,i=s}return!a&&i&&(b=i),i||!a&&b},C=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new T(n)},S=y;S.l=k,S.i=w,S.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var T=function(){function v(e){this.$L=k(e.locale,null,!0),this.parse(e)}var g=v.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var a=t.match(f);if(a){var i=a[2]-1||0,r=(a[7]||"0").substring(0,3);return n?new Date(Date.UTC(a[1],i,a[3]||1,a[4]||0,a[5]||0,a[6]||0,r)):new Date(a[1],i,a[3]||1,a[4]||0,a[5]||0,a[6]||0,r)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return S},g.isValid=function(){return!(this.$d.toString()===p)},g.isSame=function(e,t){var n=C(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return C(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<C(e)},g.$g=function(e,t,n){return S.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,a=!!S.u(t)||t,c=S.p(e),p=function(e,t){var i=S.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return a?i:i.endOf(s)},f=function(e,t){return S.w(n.toDate()[e].apply(n.toDate("s"),(a?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,v=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(c){case d:return a?p(1,0):p(31,11);case u:return a?p(1,v):p(0,v+1);case l:var b=this.$locale().weekStart||0,_=(m<b?m+7:m)-b;return p(a?g-_:g+(6-_),v);case s:case h:return f(y+"Hours",0);case o:return f(y+"Minutes",1);case r:return f(y+"Seconds",2);case i:return f(y+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var n,l=S.p(e),c="set"+(this.$u?"UTC":""),p=(n={},n[s]=c+"Date",n[h]=c+"Date",n[u]=c+"Month",n[d]=c+"FullYear",n[o]=c+"Hours",n[r]=c+"Minutes",n[i]=c+"Seconds",n[a]=c+"Milliseconds",n)[l],f=l===s?this.$D+(t-this.$W):t;if(l===u||l===d){var m=this.clone().set(h,1);
5066m.$d[p](f),m.init(),this.$d=m.set(h,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](f);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[S.p(e)]()},g.add=function(a,c){var h,p=this;a=Number(a);var f=S.p(c),m=function(e){var t=C(p);return S.w(t.date(t.date()+Math.round(e*a)),p)};if(f===u)return this.set(u,this.$M+a);if(f===d)return this.set(d,this.$y+a);if(f===s)return m(1);if(f===l)return m(7);var v=(h={},h[r]=t,h[o]=n,h[i]=e,h)[f]||1,g=this.$d.getTime()+a*v;return S.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var a=e||"YYYY-MM-DDTHH:mm:ssZ",i=S.z(this),r=this.$H,o=this.$m,s=this.$M,l=n.weekdays,u=n.months,c=function(e,n,i,r){return e&&(e[n]||e(t,a))||i[n].slice(0,r)},d=function(e){return S.s(r%12||12,e,"0")},h=n.meridiem||function(e,t,n){var a=e<12?"AM":"PM";return n?a.toLowerCase():a},f={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:S.s(s+1,2,"0"),MMM:c(n.monthsShort,s,u,3),MMMM:c(u,s),D:this.$D,DD:S.s(this.$D,2,"0"),d:String(this.$W),dd:c(n.weekdaysMin,this.$W,l,2),ddd:c(n.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(r),HH:S.s(r,2,"0"),h:d(1),hh:d(2),a:h(r,o,!0),A:h(r,o,!1),m:String(o),mm:S.s(o,2,"0"),s:String(this.$s),ss:S.s(this.$s,2,"0"),SSS:S.s(this.$ms,3,"0"),Z:i};return a.replace(m,function(e,t){return t||f[e]||i.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(a,h,p){var f,m=S.p(h),v=C(a),g=(v.utcOffset()-this.utcOffset())*t,y=this-v,b=S.m(this,v);return b=(f={},f[d]=b/12,f[u]=b,f[c]=b/3,f[l]=(y-g)/6048e5,f[s]=(y-g)/864e5,f[o]=y/n,f[r]=y/t,f[i]=y/e,f)[m]||y,p?b:S.a(b)},g.daysInMonth=function(){return this.endOf(u).$D},g.$locale=function(){return _[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),a=k(e,t,!0);return a&&(n.$L=a),n},g.clone=function(){return S.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},v}(),A=T.prototype;return C.prototype=A,[["$ms",a],["$s",i],["$m",r],["$H",o],["$W",s],["$M",u],["$y",d],["$D",h]].forEach(function(e){A[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),C.extend=function(e,t){return e.$i||(e(t,T,C),e.$i=!0),C},C.locale=k,C.isDayjs=w,C.unix=function(e){return C(1e3*e)},C.en=_[b],C.Ls=_,C.p={},C}()),eH.exports);const nH=ER(tH),aH={class:"tournamentImg"},iH=["src"],rH={class:"tournamentContent"},oH={class:"tournamentVenue"},sH={class:"tournamentDate"},lH={key:0,class:"tournamentPrice"},uH={class:"topThrowers"},cH={key:0,class:"throwersNumber"},dH={class:"tournamentView"},hH={__name:"tournamentCard",props:{tournament:Object,tournamentStatus:String},setup(e){const t=mL(),n=e,a=jG(),i=UG(),r=nr("postHog");function o(){i.setSelectedEvent({venue:a.venue.locationSlug,league:n.tournament}),r.capture("tournament-card_details"),t.push({path:"/"+a.venue.locationSlug+"/tournament/view/"+n.tournament.slug,query:{tournamentStatus:n.tournamentStatus,tournamentVenue:n.tournament.venue,tournamentSlug:n.tournament.slug,tournamentId:n.tournament.id}})}return(t,n)=>{var i,r;const s=ki("v-tooltip"),l=ki("v-icon"),u=ki("v-img"),c=ki("v-avatar");return oo(),ho("div",{class:"tournament",onClick:o},[yo("div",aH,[yo("img",{src:e.tournament.img,alt:"tournament.title"},null,8,iH)]),yo("div",rH,[bo(s,{location:"top",text:e.tournament.title},{activator:ea(({props:t})=>[yo("h3",Io(t,{class:"tournamentTitle"}),Te(e.tournament.title),17)]),_:1},8,["text"]),yo("p",oH,[bo(l,{class:"tournamentIcon"},{default:ea(()=>[...n[0]||(n[0]=[ko("mdi-map-marker-outline",-1)])]),_:1}),ko(Te(e.tournament.venueName||ln(a).venue.company),1)]),yo("p",sH,[bo(l,{class:"tournamentIcon"},{default:ea(()=>[...n[1]||(n[1]=[ko("mdi-calendar-month-outline",-1)])]),_:1}),ko(" "+Te(ln(nH)(e.tournament.dateStart||e.tournament.date).format("MMMM D, YYYY")),1)]),e.tournament.price?(oo(),ho("p",lH,[bo(l,{class:"tournamentIcon"},{default:ea(()=>[...n[2]||(n[2]=[ko("mdi-cash-multiple",-1)])]),_:1}),ko(Te("$".concat(e.tournament.price)||"Free"),1)])):So("",!0),e.tournament.players&&!e.tournament.hideParticipants?(oo(),ho(eo,{key:1},[n[3]||(n[3]=yo("p",{class:"tournamentPlayers"},"Attendees",-1)),yo("div",uH,[(oo(!0),ho(eo,null,Ii(e.tournament.players.slice(0,3),(e,t)=>(oo(),ho("div",{key:t,class:"thrower"},[bo(s,{location:"top"},{activator:ea(({props:t})=>[bo(c,Io({ref_for:!0},t,{size:"40px",color:"#cbcbcb"}),{default:ea(()=>[bo(u,{src:e.pic,alt:""},null,8,["src"])]),_:2},1040)]),default:ea(()=>[yo("p",null,Te(e.name||"".concat(e.first," ").concat(e.last)),1)]),_:2},1024)]))),128)),(null==(i=e.tournament.players)?void 0:i.length)>3?(oo(),ho("div",cH," +"+Te((null==(r=e.tournament.players)?void 0:r.length)-3),1)):So("",!0)])],64)):e.tournament.players||e.tournament.hideParticipants?e.tournament.hideParticipants?(oo(),ho(eo,{key:3},[n[6]||(n[6]=yo("p",{class:"tournamentPlayers"},"Attendees hidden",-1)),n[7]||(n[7]=yo("div",{class:"topThrowers"},[yo("img",{src:QU,alt:"attendeesHidden"})],-1))],64)):So("",!0):(oo(),ho(eo,{key:2},[n[4]||(n[4]=yo("p",{class:"tournamentPlayers"},"No Attendees Yet",-1)),n[5]||(n[5]=yo("div",{class:"topThrowers"},[yo("img",{src:QU,alt:"noAttendies"})],-1))],64)),yo("div",dH,[bo(ij,{type:"submit",variant:"flat",width:"260px",onClick:Dl(o,["stop"])},{default:ea(()=>[...n[8]||(n[8]=[ko("Details",-1)])]),_:1})])])])}}},pH=PX(hH,[["__scopeId","data-v-171da4aa"]]),fH={key:0,class:"newContainer"},mH=["onClick"],vH={__name:"articles",props:{locationSlug:String},setup(e){const t=mL(),n=vL(),a=jG(),i=UG();let r=Zo(()=>a.tournamentsUpcoming),o=an({});async function s(e){let t=n.params.locationSlug,a=await kg(Hg(AP("/venues/".concat(t,"/league/").concat(e,"/Session1/standings")))).then(e=>{if(!e.exists())return;let t=Object.values(e.val());return t.sort((e,t)=>
5066t.win-e.win),t});return a}return Mr(()=>r.value,async e=>{e&&(o.value=await Promise.all(e.map(async e=>({...e,players:await s(e.slug)}))))}),hi(async()=>{o.value=await Promise.all(r.value.map(async e=>({...e,players:await s(e.slug)})))}),(e,n)=>{var s;const l=ki("v-slide-group-item"),u=ki("v-slide-group");return(null==(s=ln(r))?void 0:s.length)?(oo(),ho("div",fH,[n[0]||(n[0]=yo("h3",{class:"title"},"Upcoming Tournaments",-1)),ln(o)?(oo(),po(u,{key:0},{default:ea(()=>[bo(l,null,{default:ea(()=>[(oo(!0),ho(eo,null,Ii(ln(o),e=>(oo(),ho("div",{key:e.slug,class:"tournamentItem",onClick:n=>function(e){i.setSelectedEvent({venue:a.venue.locationSlug,league:e}),t.push("/"+a.venue.locationSlug+"/tournament/"+e.slug)}(e)},[bo(pH,{tournament:e},null,8,["tournament"])],8,mH))),128))]),_:1})]),_:1})):So("",!0)])):So("",!0)}}},gH=PX(vH,[["__scopeId","data-v-9992dace"]]),yH={class:"title"},bH={class:"location"},_H={class:"name"},wH={class:"info"},kH={key:0,class:"joinButton"},CH=PX({__name:"eventCard",props:{title:String,slug:String,location:String,discipline:String,date:String,format:String,icon:String,showJoinButton:Boolean,loading:Boolean},emits:["eventClick","joinEvent"],setup(e,{emit:t}){const n=t;return(t,a)=>{const i=ki("v-icon"),r=ki("v-btn");return oo(),ho("div",{class:"eventWrapper",onClick:a[1]||(a[1]=e=>n("eventClick"))},[yo("h5",yH,Te(e.title),1),yo("div",bH,[bo(i,{class:"icon"},{default:ea(()=>[...a[2]||(a[2]=[ko("mdi-map-marker-outline",-1)])]),_:1}),yo("span",_H,Te(e.location),1)]),yo("div",wH,[yo("div",null,Te(ln(nH)(e.date).format("MMMM D, YYYY")),1),bo(i,null,{default:ea(()=>[...a[3]||(a[3]=[ko("mdi-circle-small",-1)])]),_:1}),yo("div",null,Te(e.format),1),bo(i,null,{default:ea(()=>[...a[4]||(a[4]=[ko("mdi-circle-small",-1)])]),_:1}),yo("div",null,Te(e.discipline),1),e.icon?(oo(),ho(eo,{key:0},[bo(i,null,{default:ea(()=>[...a[5]||(a[5]=[ko("mdi-circle-small",-1)])]),_:1}),bo(i,null,{default:ea(()=>[ko(Te(e.icon),1)]),_:1})],64)):So("",!0)]),e.showJoinButton?(oo(),ho("div",kH,[bo(r,{variant:"outlined",onClick:a[0]||(a[0]=Dl(e=>n("joinEvent"),["stop"]))},{default:ea(()=>[...a[6]||(a[6]=[ko("Join",-1)])]),_:1})])):So("",!0)])}}},[["__scopeId","data-v-420dc963"]]),SH={class:"eventsTable"},TH={class:"tableHeader"},AH={key:0},EH={class:"tableBody"},IH=["onClick"],xH={class:"text-capitalize"},NH={class:"text-capitalize"},PH={key:0,class:"topThrowers"},MH={class:"thrower"},OH={key:0,class:"paginationControls"},RH={__name:"eventsTable",props:{events:{type:Array,required:!0},itemsPerPage:{type:Number,required:!0,default:8},showTopThrowers:{type:Boolean,default:!1}},emits:["eventClick"],setup(e,{emit:t}){const n=LP(),a=e,i=t,r=an(1),o=Zo(()=>Math.ceil(a.events.length/a.itemsPerPage)),s=Zo(()=>{if(!a.events.length)return[];const e=(r.value-1)*a.itemsPerPage,t=e+a.itemsPerPage;return a.events.slice(e,t)});return(t,a)=>{const l=ki("v-img"),u=ki("v-avatar"),c=ki("v-tooltip"),d=ki("v-table"),h=ki("v-pagination");return oo(),ho("div",SH,[bo(d,null,{default:ea(()=>[yo("thead",TH,[yo("tr",null,[a[1]||(a[1]=yo("th",null,"Date",-1)),a[2]||(a[2]=yo("th",null,"Name",-1)),a[3]||(a[3]=yo("th",null,"Location",-1)),a[4]||(a[4]=yo("th",null,"Format",-1)),a[5]||(a[5]=yo("th",null,"Type",-1)),a[6]||(a[6]=yo("th",null,"Discipline",-1)),e.showTopThrowers?(oo(),ho("th",AH,"Top Throwers")):So("",!0)])]),yo("tbody",EH,[(oo(!0),ho(eo,null,Ii(s.value,t=>{var a,r;return oo(),ho("tr",{key:t.name},[yo("td",null,Te(ln(nH)(null==(r=null==(a=t.schedule)?void 0:a[0])?void 0:r.date).format("MMMM D, YYYY")),1),yo("td",{class:"eventLink vw-50",onClick:e=>i("eventClick",t)},Te(t.title),9,IH),yo("td",xH,Te(t.virtual?"remote":t.venue),1),yo("td",null,Te(t.virtual?"Flex":"Standard"),1),yo("td",NH,Te(t.type),1),yo("td",null,Te(t.discipline||ln(n).disciplines["".concat(t.rules,"_").concat(t.leagueType)]),1),e.showTopThrowers?(oo(),ho("td",PH,[(oo(!0),ho(eo,null,Ii(t.players,(e,t)=>(oo(),ho("div",MH,[bo(c,{location:"top"},{activator:ea(({props:t})=>[bo(u,Io({ref_for:!0},t,{size:"60px",color:"#cbcbcb"}),{default:ea(()=>[bo(l,{src:e.pic,alt:""},null,8,["src"])]),_:2},1040)]),default:ea(()=>[yo("p",null,Te(e.name||"".concat(e.first," ").concat(e.last)),1)]),_:2},1024)]))),256))])):So("",!0)])}),128))])]),_:1}),o.value*e.itemsPerPage>e.itemsPerPage?(oo(),ho("div",OH,[bo(h,{modelValue:r.value,"onUpdate:modelValue":a[0]||(a[0]=e=>r.value=e),length:o.value,"total-visible":7},null,8,["modelValue","length"])])):So("",!0)])}}},DH=PX(RH,[["__scopeId","data-v-6b753a0a"]]),LH={class:"eventsWrapper newContainer"}
5066,BH={key:0,class:"noEventsWrapper mb-12"},FH={key:1,class:"loadingWrapper"},VH=PX({__name:"userEvents",setup(e){const{smAndUp:t}=LV(),n=mL(),a=VG(),i=XG(),r=LP(),o=an(!1),s=an(1);function l(){o.value=!o.value}const u=Zo(()=>{let e=[];return Object.keys(a.career).forEach(t=>{const n=a.career[t];if(null==n?void 0:n.league){let a=Object.values(n.league).map(e=>{var n;return{...e,eventType:"league",rules:t,discipline:r.disciplines["".concat(t,"_").concat(e.type)],virtual:(null==(n=e.name)?void 0:n.includes("_flex_"))||!1,type:"league"}});e=[...e,...a]}if(null==n?void 0:n.tournament){let a=Object.values(n.tournament).map(e=>({...e,eventType:"tournament",rules:t,discipline:r.disciplines["".concat(t,"_").concat(e.type)],virtual:e.name.includes("_flex_"),type:"tournament"}));e=[...e,...a]}}),e}),c=Zo(()=>u.value.filter(e=>{if("league"===e.eventType)return e.season===i.getYearSeason&&e.seasonName===i.currentSeason;if("tournament"===e.eventType){return+new Date(e.time).getFullYear()===+i.currentYear&&e.seasonName===i.currentSeason}}).sort((e,t)=>new Date(t.schedule[0].date)-new Date(e.schedule[0].date))),d=Zo(()=>o.value?c.value:c.value.slice(0,3));function h(e){if("league"===e.eventType){const t=e.name.includes("_flex_")?"".concat(e.venue,"/virtual/view/").concat(e.name):"".concat(e.venue,"/league/").concat(e.name);n.push(t)}"tournament"===e.eventType&&n.push("".concat(e.venue,"/tournament/view/").concat(e.name))}return Zo(()=>{const e=8*(s.value-1),t=e+8;return c.value.slice(e,t)}),Zo(()=>Math.ceil(c.value.length/8)),(e,n)=>{const i=ki("v-progress-circular"),r=ki("v-btn");return oo(),ho("div",LH,[n[0]||(n[0]=yo("h3",{class:"sectionTitle"},"my events",-1)),!c.value.length&&ln(a).playerCareerLoaded?(oo(),ho("div",BH,"no events for this season")):So("",!0),ln(a).playerCareerLoaded?So("",!0):(oo(),ho("div",FH,[bo(i,{indeterminate:"",color:"var(--clr-blue)"})])),c.value.length&&ln(a).playerCareerLoaded?(oo(),ho(eo,{key:2},[ln(t)?(oo(),po(DH,{key:0,events:c.value,itemsPerPage:8,onEventClick:h},null,8,["events"])):(oo(),ho(eo,{key:1},[(oo(!0),ho(eo,null,Ii(d.value,e=>(oo(),po(CH,{title:e.title,location:e.name.includes("_flex_")?"Remote":e.venue,discipline:e.discipline,slug:e.name,format:e.name.includes("_flex_")?"Flex":"Standard",date:e.schedule[0].date,key:e.name,icon:"tournament"===e.eventType?"mdi-trophy-variant-outline":"mdi-crown-outline",class:"mb-4",onEventClick:()=>h(e)},null,8,["title","location","discipline","slug","format","date","icon","onEventClick"]))),128)),c.value.length>3?(oo(),po(r,{key:0,variant:"outlined",onClick:l,class:"showMoreBtn"},{default:ea(()=>[ko(Te(o.value?"Show less":"View more"),1)]),_:1})):So("",!0)],64))],64)):So("",!0)])}}},[["__scopeId","data-v-0ac69fd9"]]),XH={class:"eventCardBigWrapper"},jH={class:"cardBanner"},UH=["src"],HH={class:"cardContent"},zH={class:"cardTitle"},KH={class:"cardInfo"},WH={key:0,class:"eventActions"},GH=PX({__name:"eventCardBig",props:{slug:Object,title:String,discipline:String,date:String,location:String,format:String,banner:String,showJoinButton:Boolean},emits:["joinEvent"],setup(e,{emit:t}){const n=t;return(t,a)=>(oo(),ho("div",XH,[yo("div",jH,[yo("img",{src:e.banner,alt:"event image"},null,8,UH)]),yo("div",HH,[yo("h4",zH,Te(e.title),1),yo("table",KH,[yo("tbody",null,[yo("tr",null,[a[1]||(a[1]=yo("td",null,"format",-1)),yo("td",null,Te(e.format),1)]),yo("tr",null,[a[2]||(a[2]=yo("td",null,"discipline",-1)),yo("td",null,Te(e.discipline),1)]),yo("tr",null,[a[3]||(a[3]=yo("td",null,"date",-1)),yo("td",null,Te(ln(nH)(e.date).format("MMM D, YYYY")),1)]),yo("tr",null,[a[4]||(a[4]=yo("td",null,"location",-1)),yo("td",null,Te(e.location),1)])])]),e.showJoinButton?(oo(),ho("div",WH,[bo(ij,{class:"w-100 ma-0",onClick:a[0]||(a[0]=Dl(t=>n("joinEvent",e.slug),["stop"]))},{default:ea(()=>[...a[5]||(a[5]=[ko("join",-1)])]),_:1})])):So("",!0)])]))}},[["__scopeId","data-v-47e0b5e6"]]);function qH(e,t,n,a,i,r,o){const s=LP();s.confirmationPopup={visible:!0,confirm:()=>e(),type:n,text:t,mainButton:a,hideCancelButton:i,requireTypedConfirmation:o||"",close:()=>{r&&r(),s.confirmationPopup={}}}}const $H={all:ZH=ZH||new Map,on:function(e,t){var n=ZH.get(e);n?n.push(t):ZH.set(e,[t])},off:function(e,t){var n=ZH.get(e);n&&(t?n.splice(n.indexOf(t)>>>0,1):ZH.set(e,[]))},emit:function(e,t){var n=ZH.get(e);n&&n.slice().map(function(e){e(t)}),(n=ZH.get("*"))&&n.slice().map(function(n){n(e,t)})}},YH=new Map,JH={x:["left","center","right"],y:["top","bottom"]},QH=(e=>()=>e++)(0);var ZH;let ez=class{constructor(e,t,n){this.remaining=t,this.callback=e,this.notifyItem=n,this.resume()}pause(){clearTimeout(this.notifyItem.timer),this.remaining-=Date.now()-this.start}resume(){this.start=Date.now(),clearTimeout(this.notifyItem.timer),this.notifyItem.timer=setTimeout(this.callback,this.remaining)}};const tz={position:["top","right"],cssAnimation:"vn-fade",velocityAnimation:{enter:e=>({height:[e.clientHeight,0],opacity:[1,0]}),leave:{height:0,opacity:[0,1]}}},nz=Na({name:"velocity-group",emits:["after-leave","leave","enter"],methods:{enter(e,t){this.$emit("enter",e,t)},leave(e,t){this.$emit("leave",e,t)},afterLeave(){this.$emit("after-leave")}}}),az=(e,t)=>
5066{const n=e.__vccOpts||e;for(const[a,i]of t)n[a]=i;return n};const iz=az(nz,[["render",function(e,t,n,a,i,r){return oo(),po(fl,{tag:"span",css:!1,onEnter:e.enter,onLeave:e.leave,onAfterLeave:e.afterLeave},{default:ea(()=>[xi(e.$slots,"default")]),_:3},8,["onEnter","onLeave","onAfterLeave"])}]]);const rz=az(Na({name:"css-group",inheritAttrs:!1,props:{name:{type:String,required:!0}}}),[["render",function(e,t,n,a,i,r){return oo(),po(fl,{tag:"span",name:e.name},{default:ea(()=>[xi(e.$slots,"default")]),_:3},8,["name"])}]]),oz="[-+]?[0-9]*.?[0-9]+",sz=[{name:"px",regexp:new RegExp("^".concat(oz,"px$"))},{name:"%",regexp:new RegExp("^".concat(oz,"%$"))},{name:"px",regexp:new RegExp("^".concat(oz,"$"))}],lz=e=>{switch(typeof e){case"number":return{type:"px",value:e};case"string":return(e=>{if("auto"===e)return{type:e,value:0};for(let t=0;t<sz.length;t++){const n=sz[t];if(n.regexp.test(e))return{type:n.name,value:parseFloat(e)}}return{type:"",value:e}})(e);default:return{type:"",value:e}}},uz=0,cz=2,dz=Na({name:"notifications",components:{VelocityGroup:iz,CssGroup:rz},props:{group:{type:String,default:""},width:{type:[Number,String],default:300},reverse:{type:Boolean,default:!1},position:{type:[String,Array],default:tz.position},classes:{type:String,default:"vue-notification"},animationType:{type:String,default:"css"},animation:{type:Object,default:tz.velocityAnimation},animationName:{type:String,default:tz.cssAnimation},speed:{type:Number,default:300},cooldown:{type:Number,default:0},duration:{type:Number,default:3e3},delay:{type:Number,default:0},max:{type:Number,default:1/0},ignoreDuplicates:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!0},pauseOnHover:{type:Boolean,default:!1}},emits:["click","destroy","start"],data:()=>({list:[],velocity:YH.get("velocity"),timerControl:null}),computed:{actualWidth(){return lz(this.width)},isVA(){return"velocity"===this.animationType},componentName(){return this.isVA?"velocity-group":"css-group"},styles(){const{x:e,y:t}=(e=>{"string"==typeof e&&(e=(e=>"string"!=typeof e?[]:e.split(/\s+/gi).filter(e=>e))(e));let t=null,n=null;return e.forEach(e=>{-1!==JH.y.indexOf(e)&&(n=e),-1!==JH.x.indexOf(e)&&(t=e)}),{x:t,y:n}})(this.position),n=this.actualWidth.value,a=this.actualWidth.type,i={width:n+a};return t&&(i[t]="0px"),e&&("center"===e?i.left="calc(50% - ".concat(+n/2).concat(a,")"):i[e]="0px"),i},active(){return this.list.filter(e=>e.state!==cz)},botToTop(){return this.styles.hasOwnProperty("bottom")}},mounted(){$H.on("add",this.addItem),$H.on("close",this.closeItem)},methods:{destroyIfNecessary(e){this.$emit("click",e),this.closeOnClick&&this.destroy(e)},pauseTimeout(){var e;this.pauseOnHover&&(null==(e=this.timerControl)||e.pause())},resumeTimeout(){var e;this.pauseOnHover&&(null==(e=this.timerControl)||e.resume())},addItem(e={}){if(e.group||(e.group=""),e.data||(e.data={}),this.group!==e.group)return;if(e.clean||e.clear)return void this.destroyAll();const t="number"==typeof e.duration?e.duration:this.duration,n="number"==typeof e.speed?e.speed:this.speed,a="boolean"==typeof e.ignoreDuplicates?e.ignoreDuplicates:this.ignoreDuplicates,{title:i,text:r,type:o,data:s,id:l}=e,u={id:l||QH(),title:i,text:r,type:o,state:uz,speed:n,length:t+2*n,data:s};t>=0&&(this.timerControl=new ez(()=>this.destroy(u),u.length,u));const c=this.reverse?!this.botToTop:this.botToTop;let d=-1;const h=this.active.some(t=>t.title===e.title&&t.text===e.text);(!a||!h)&&(c?(this.list.push(u),this.$emit("start",u),this.active.length>this.max&&(d=0)):(this.list.unshift(u),this.$emit("start",u),this.active.length>this.max&&(d=this.active.length-1)),-1!==d&&this.destroy(this.active[d]))},closeItem(e){this.destroyById(e)},notifyClass(e){return["vue-notification-template",this.classes,e.type||""]},notifyWrapperStyle(e){return this.isVA?void 0:{transition:"all ".concat(e.speed,"ms")}},destroy(e){clearTimeout(e.timer),e.state=cz,this.clean(),this.$emit("destroy",e)},destroyById(e){const t=this.list.find(t=>t.id===e);t&&this.destroy(t)},destroyAll(){this.active.forEach(this.destroy)},getAnimation(e,t){var n;const a=null==(n=this.animation)?void 0:n[e];return"function"==typeof a?a.call(this,t):a},enter(e,t){if(!this.isVA)return;const n=this.getAnimation("enter",e);this.velocity(e,n,{duration:this.speed,complete:t})},leave(e,t){if(!this.isVA)return;const n=this.getAnimation("leave",e);this.velocity(e,n,{duration:this.speed,complete:t})},clean(){this.list=this.list.filter(e=>e.state!==cz)}}}),hz=["data-id"],pz=["onClick"],fz=["innerHTML"],mz=["innerHTML"];const vz=az(dz,[["render",function(e,t,n,a,i,r){return oo(),ho("div",{class:"vue-notification-group",style:Y(e.styles)},[(oo(),po(Si(e.componentName),{name:e.animationName,onEnter:e.enter,onLeave:e.leave,onAfterLeave:e.clean},{default:ea(()=>[(oo(!0),ho(eo,null,Ii(e.active,n=>(oo(),ho("div",{key:n.id,class:"vue-notification-wrapper",style:Y(e.notifyWrapperStyle(n)),"data-id":n.id,onMouseenter:t[0]||(t[0]=(...t)=>e.pauseTimeout&&e.pauseTimeout(...t)),onMouseleave:t[1]||(t[1]=(...t)=>e.resumeTimeout&&e.resumeTimeout(...t))},[xi(e.$slots,"body",{class:ne([e.classes,n.type]),item:n,close:()=>e.destroy(n)},()=>[yo("div",{class:ne(e.notifyClass(n)),onClick:t=>e.destroyIfNecessary(n)},[n.title?(oo(),ho("div",{key:0,class:"notification-title",innerHTML:n.title},null,8,fz)):So("",!0),yo("div",{class:"notification-content",innerHTML:n.text},null,8,mz)],10,pz)])],44,hz))),128))]),_:3},40,["name","onEnter","onLeave","onAfterLeave"]))],4)}]]),gz=e=>{"string"==typeof e&&(e={title:"",text:e}),"object"==typeof e&&$H.emit("add",e)};gz.close=e=>{$H.emit("close",e)};const yz=()=>({notify:gz});const bz={install:function(e,t={}
5066){Object.entries(t).forEach(e=>YH.set(...e));const n=t.name||"notify";e.config.globalProperties["$"+n]=gz,e.component(t.componentName||"Notifications",vz)}};function _z(e,t,n,a){let i=wz(n-e),r=wz(a-t),o=Math.sin(i/2)*Math.sin(i/2)+Math.cos(wz(e))*Math.cos(wz(n))*Math.sin(r/2)*Math.sin(r/2);return 6371*(2*Math.atan2(Math.sqrt(o),Math.sqrt(1-o)))}function wz(e){return e*(Math.PI/180)}!function(){var e;try{if("undefined"!=typeof document){var t=document.createElement("style");t.nonce=null==(e=document.head.querySelector("meta[property=csp-nonce]"))?void 0:e.content,t.appendChild(document.createTextNode(".vue-notification-group{display:block;position:fixed;z-index:5000}.vue-notification-wrapper{display:block;overflow:hidden;width:100%;margin:0;padding:0}.notification-title{font-weight:600}.vue-notification-template{display:block;box-sizing:border-box;background:white;text-align:left}.vue-notification{display:block;box-sizing:border-box;text-align:left;font-size:12px;padding:10px;margin:0 5px 5px;color:#fff;background:#44A4FC;border-left:5px solid #187FE7}.vue-notification.warn{background:#ffb648;border-left-color:#f48a06}.vue-notification.error{background:#E54D42;border-left-color:#b82e24}.vue-notification.success{background:#68CD86;border-left-color:#42a85f}.vn-fade-enter-active,.vn-fade-leave-active,.vn-fade-move{transition:all .5s}.vn-fade-enter-from,.vn-fade-leave-to{opacity:0}")),document.head.appendChild(t)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();const kz=e=>{if(!e)return"";return new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})},Cz=e=>{if(!e)return"";const[t,n]=e.split(":").map(Number),a=t>=12?"PM":"AM";return"".concat(t%12||12,":").concat(n.toString().padStart(2,"0")," ").concat(a)},Sz={key:0,class:"userExploreWrapper newContainer"},Tz={class:"featuredEventCardWrapper"},Az={class:"listedEventCardWrapper"},Ez={class:"blockHeader"},Iz={class:"blockContent"},xz={class:"blockHeader"},Nz={class:"blockContent"},Pz={__name:"userExplore",setup(e,{expose:t}){const n=mL(),a=LP(),i=jG(),r=VG(),o=XG(),{smAndUp:s}=LV(),{notify:l}=yz(),u=e=>{const t=(new Date).getTime(),n=new Date("".concat(null==e?void 0:e.date,"T").concat(null==e?void 0:e.time)).getTime()-t>1728e5;return(null==e?void 0:e.virtual)&&n},c=an(!1),d=an(!1),h=an(1),p=an(1),f=an([]),m=Zo(()=>a.virtualLeagues.filter(e=>{const t=(new Date).setHours(0,0,0),n=new Date(null==e?void 0:e.date).getTime()>=t;return!e.archive&&n&&!r.listAllUserEvents.find(t=>t.name===e.slug)})),v=Zo(()=>s.value?[...m.value,...f.value].slice(0,3):[...m.value,...f.value].slice(0,1)),g=Zo(()=>[...f.value,...m.value].filter(e=>"League"===e.type&&!v.value.find(t=>(null==t?void 0:t.slug)===(null==e?void 0:e.slug))&&!r.listAllUserEvents.find(t=>t.name===(null==e?void 0:e.slug))).sort((e,t)=>{var n,a,i,r;return new Date(null==(a=null==(n=t.schedule)?void 0:n[0])?void 0:a.date)-new Date(null==(r=null==(i=e.schedule)?void 0:i[0])?void 0:r.date)})),y=Zo(()=>f.value.filter(e=>"Tournament"===e.type&&!v.value.find(t=>(null==t?void 0:t.slug)===(null==e?void 0:e.slug))&&!r.listAllUserEvents.find(t=>t.name===(null==e?void 0:e.slug))).sort((e,t)=>{var n,a,i,r;return new Date(null==(a=null==(n=t.schedule)?void 0:n[0])?void 0:a.date)-new Date(null==(r=null==(i=e.schedule)?void 0:i[0])?void 0:r.date)})),b=Zo(()=>c.value?g.value:g.value.slice(0,5));Mr(Zo(()=>Math.max(1,Math.ceil(g.value.length/8))),e=>{h.value>e&&(h.value=e)});const _=Zo(()=>d.value?y.value:y.value.slice(0,5));Mr(Zo(()=>Math.max(1,Math.ceil(y.value.length/8))),e=>{p.value>e&&(p.value=e)});const w=Zo(()=>{var e,t;return Object.keys(r.location).length?{lat:null==(e=r.location)?void 0:e.lat,lng:null==(t=r.location)?void 0:t.lon}:{}});let k=Zo(()=>{if(Object.keys(w.value).length){let e=i.venues.map(e=>{var t,n;return{...e,distance:_z(w.value.lat,w.value.lng,null==(t=e.geocode)?void 0:t.lat,null==(n=e.geocode)?void 0:n.lon)}});return e=e.filter(e=>e.distance<=251),e.sort((e,t)=>e.distance-t.distance)}return[]});const C=Zo(()=>v.value.length>0||g.value.length>0||y.value.length>0);function S(e){return e.currentSeason===o.getYearSeason&&e.seasonName===o.currentSeason&&!e.archive&&!f.value.find(t=>t.slug===(null==e?void 0:e.slug))}function T(e){return+new Date(e.date).getFullYear()===+o.currentYear&&e.seasonName===o.currentSeason&&!e.archive&&!f.value.find(t=>t.slug===(null==e?void 0:e.slug))}function A(e,t){return{...e,venue:t}}function E(e){if("League"===e.type){const t=e.virtual?"".concat(e.venue||"watl","/virtual/view/").concat(e.slug):"".concat(e.venue||"watl","/league/").concat(e.slug);n.push(t)}"Tournament"===e.type&&n.push("".concat(e.venue,"/tournament/view/").concat(e.slug))}
5066function I(e){"payments"===e.signup&&console.log("run paid tournament inner"),e.virtual&&function(e){if(r.user.subscription&&r.user.customer)dR(r.user[".key"],r.user.email,e.venue||"watl",e.slug,e.type.toLowerCase()).then(()=>{const t={title:e.title,date:kz(e.date),time:Cz(e.time||e.timeStart),venue:e.venue||"watl",type:e.type,link:"".concat("https://axethrowing.org","/").concat(e.virtual?"".concat(e.venue||"watl","/virtual/view/").concat(e.slug):"".concat(e.venue||"watl","/league/").concat(e.slug))};CR(r.user.email,r.user.first,t),qH(()=>{window.location.reload()},"Congrats! You've Joined the Flex League!\n           You've Joined the Flex League! Play with the bot now or wait to play against real opponents.","info","Ok",!0)});else{qH(()=>async function(e){const t=await lR("player_subscription"),n=await async function(){if(r.user.customer)return await vR(r.user.customer).then(e=>{const t=e=>e.trial_end&&"player_subscription"===e.metadata.type;return e.data.some(t)});return!1}();let i=+t[0].metadata.trial&&!n?+t[0].metadata.trial:null;i&&a.champsForFlex.includes(r.user.code)&&(i=90);const o=t[0].priceData.priceId,s="".concat(e.venue||"watl","/virtual/view/").concat(e.slug);hR(o,r.user[".key"],"".concat("https://axethrowing.org","/").concat(s),r.user.customer,e.venue||"watl",e.slug,i).then(e=>{window.location.replace(e.data.url)}).catch(e=>{l({group:"notifyMessages",type:"error",title:"Error",text:e.response.data,duration:4e3})})}(e),'\n        <h5 style="margin-bottom: 16px;">Subscribe to join this event</h5>\n        <p style="margin-bottom: 16px;">To join this event, you need an active player subscription.</p> \n\n        <p>Subscribe and start your journey today!</p>\n  ',"info","Subscribe")}}(e)}function x(e){const t=r.getUserHomeVenue;n.push("/".concat(t,"/").concat(e))}return Nr(()=>{k.value.length&&k.value.forEach(e=>{e[".key"]!==r.getUserHomeVenue&&Ag(SP("/venues/"+e[".key"]+"/event-list/"),t=>{if(t.exists()){let n=t.val(),a=Object.values(n.tournament||{}).filter(T).map(t=>A(t,e[".key"])),i=Object.values(n.league||{}).filter(S).map(t=>A(t,e[".key"]));f.value=[...f.value,...a,...i]}})})}),Mr(()=>r.getUserHomeVenue,e=>{e&&async function(){const e=r.getUserHomeVenue,t=await kg(SP("/venues/".concat(e,"/event-list"))).then(e=>e.exists()?e.val():{});let n=Object.values(t.tournament||{}).filter(T).slice(0,3).map(t=>A(t,e)),a=Object.values(t.league||{}).filter(S).slice(0,3).map(t=>A(t,e));f.value=[...f.value,...n,...a]}()},{immediate:!0}),hi(()=>{a.virtualLeagues.length||a.getVirtualLeagues()}),t({hasContentToShow:C}),(e,t)=>{const n=ki("v-btn");return C.value?(oo(),ho("div",Sz,[t[8]||(t[8]=yo("h3",{class:"sectionTitle"},"explore",-1)),yo("div",Tz,[(oo(!0),ho(eo,null,Ii(v.value,e=>(oo(),po(GH,{key:null==e?void 0:e.slug,title:null==e?void 0:e.title,discipline:ln(a).disciplines["".concat(null==e?void 0:e.rules,"_").concat(null==e?void 0:e.leagueType)],date:null==e?void 0:e.date,location:(null==e?void 0:e.virtual)?"remote":(null==e?void 0:e.venue)||"watl",format:(null==e?void 0:e.virtual)?"flex":"standard",banner:null==e?void 0:e.img,class:"eventCard",showJoinButton:u(e),onJoinEvent:t=>I(e),onClick:t=>E(e)},null,8,["title","discipline","date","location","format","banner","showJoinButton","onJoinEvent","onClick"]))),128))]),yo("div",Az,[g.value.length?(oo(),ho(eo,{key:0},[yo("div",Ez,[t[5]||(t[5]=yo("h3",{class:"headerTitle"},"leagues",-1)),yo("div",{class:"headerLink",onClick:t[0]||(t[0]=e=>x("leagues"))},[...t[4]||(t[4]=[yo("span",null,"view all leagues at my venue",-1)])])]),yo("div",Iz,[ln(s)?(oo(),po(DH,{key:0,events:g.value,itemsPerPage:8,onEventClick:E},null,8,["events"])):(oo(),ho(eo,{key:1},[(oo(!0),ho(eo,null,Ii(b.value,e=>(oo(),po(CH,{key:e.slug,title:e.title,discipline:ln(a).disciplines["".concat(e.rules,"_").concat(e.leagueType)],slug:e.slug,location:e.virtual?"remote":e.venue,date:e.date,format:e.virtual?"Flex":"Standard",icon:"mdi-crown-outline",class:"mb-4",onEventClick:()=>E(e)},null,8,["title","discipline","slug","location","date","format","onEventClick"]))),128)),g.value.length>5?(oo(),po(n,{key:0,variant:"outlined",onClick:t[1]||(t[1]=e=>
5066c.value=!c.value),class:"showMoreBtn"},{default:ea(()=>[ko(Te(c.value?"Show less":"View more leagues"),1)]),_:1})):So("",!0)],64))])],64)):So("",!0),y.value.length?(oo(),ho(eo,{key:1},[yo("div",xz,[t[7]||(t[7]=yo("h3",{class:"headerTitle"},"tournaments",-1)),yo("div",{class:"headerLink",onClick:t[2]||(t[2]=e=>x("tournament"))},[...t[6]||(t[6]=[yo("span",null,"view all tournaments at my venue",-1)])])]),yo("div",Nz,[ln(s)?(oo(),po(DH,{key:0,events:y.value,itemsPerPage:8,onEventClick:E},null,8,["events"])):(oo(),ho(eo,{key:1},[(oo(!0),ho(eo,null,Ii(_.value,e=>(oo(),po(CH,{key:e.slug,title:e.title,discipline:ln(a).disciplines["".concat(e.rules,"_").concat(e.leagueType)],slug:e.slug,location:e.virtual?"remote":e.venue,date:e.date,format:e.virtual?"Flex":"Standard",icon:"mdi-trophy-variant-outline",class:"mb-4",showJoinButton:!1,onEventClick:()=>E(e),onJoinEvent:t=>I(e)},null,8,["title","discipline","slug","location","date","format","showJoinButton","onEventClick","onJoinEvent"]))),128)),y.value.length>5?(oo(),po(n,{key:0,variant:"outlined",onClick:t[3]||(t[3]=e=>d.value=!d.value),class:"showMoreBtn"},{default:ea(()=>[ko(Te(d.value?"Show less":"View more tournaments"),1)]),_:1})):So("",!0)],64))])],64)):So("",!0)])])):So("",!0)}}},Mz=PX(Pz,[["__scopeId","data-v-ed393cce"]]);var Oz=new Array("- select country -","United States","Canada","Afghanistan","Albania","Algeria","American Samoa","Angola","Anguilla","Antartica","Antigua and Barbuda","Argentina","Armenia","Aruba","Ashmore and Cartier Island","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bermuda","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","British Virgin Islands","Brunei","Bulgaria","Burkina Faso","Burma","Burundi","Cambodia","Cameroon","Cape Verde","Cayman Islands","Central African Republic","Chad","Chile","China","Christmas Island","Clipperton Island","Cocos (Keeling) Islands","Colombia","Comoros","Congo, Democratic Republic of the","Congo, Republic of the","Cook Islands","Costa Rica","Cote d'Ivoire","Croatia","Cuba","Cyprus","Czeck Republic","Denmark","Djibouti","Dominica","Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Ethiopia","Europa Island","Falkland Islands (Islas Malvinas)","Faroe Islands","Fiji","Finland","France","French Guiana","French Polynesia","French Southern and Antarctic Lands","Gabon","Gambia, The","Gaza Strip","Georgia","Germany","Ghana","Gibraltar","Glorioso Islands","Greece","Greenland","Grenada","Guadeloupe","Guam","Guatemala","Guernsey","Guinea","Guinea-Bissau","Guyana","Haiti","Heard Island and McDonald Islands","Holy See (Vatican City)","Honduras","Hong Kong","Howland Island","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Ireland, Northern","Israel","Italy","Jamaica","Jan Mayen","Japan","Jarvis Island","Jersey","Johnston Atoll","Jordan","Juan de Nova Island","Kazakhstan","Kenya","Kiribati","Korea, North","Korea, South","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Macau","Macedonia, Former Yugoslav Republic of","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Man, Isle of","Marshall Islands","Martinique","Mauritania","Mauritius","Mayotte","Mexico","Micronesia, Federated States of","Midway Islands","Moldova","Monaco","Mongolia","Montserrat","Morocco","Mozambique","Namibia","Nauru","Nepal","Netherlands","Netherlands Antilles","New Caledonia","New Zealand","Nicaragua","Niger","Nigeria","Niue","Norfolk Island","Northern Mariana Islands","Norway","Oman","Pakistan","Palau","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Pitcaim Islands","Poland","Portugal","Puerto Rico","Qatar","Reunion","Romainia","Russia","Rwanda","Saint Helena","Saint Kitts and Nevis","Saint Lucia","Saint Pierre and Miquelon","Saint Vincent and the Grenadines","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Scotland","Senegal","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Georgia and South Sandwich Islands","Spain","Spratly Islands","Sri Lanka","Sudan","Suriname","Svalbard","Swaziland","Sweden","Switzerland","Syria","Taiwan","Tajikistan","Tanzania","Thailand","Tobago","Toga","Tokelau","Tonga","Trinidad","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","Uruguay","Uzbekistan","Vanuatu","Venezuela","Vietnam","Virgin Islands","Wales","Wallis and Futuna","West Bank","Western Sahara","Yemen","Yugoslavia","Zambia","Zimbabwe"),Rz=new Array;Rz[0]="- select state -",Rz[1]="Alabama|Alaska|Arizona|Arkansas|California|Colorado|Connecticut|Delaware|District of Columbia|Florida|Georgia|Hawaii|Idaho|Illinois|Indiana|Iowa|Kansas|Kentucky|Louisiana|Maine|Maryland|Massachusetts|Michigan|Minnesota|Mississippi|Missouri|Montana|Nebraska|Nevada|New Hampshire|New Jersey|New Mexico|New York|North Carolina|North Dakota|Ohio|Oklahoma|Oregon|Pennsylvania|Rhode Island|South Carolina|South Dakota|Tennessee|Texas|Utah|Vermont|Virginia|Washington|West Virginia|Wisconsin|Wyoming",Rz[2]="Alberta|British Columbia|Manitoba|New Brunswick|Newfoundland|Northwest Territories|Nova Scotia|Nunavut|Ontario|Prince Edward Island|Quebec|Saskatchewan|Yukon Territory",Rz[3]="Badakhshan|Badghis|Baghlan|Balkh|Bamian|Farah|Faryab|Ghazni|Ghowr|Helmand|Herat|Jowzjan|Kabol|Kandahar|Kapisa|Konar|Kondoz|Laghman|Lowgar|Nangarhar|Nimruz|Oruzgan|Paktia|Paktika|Parvan|Samangan|Sar-e Pol|Takhar|Vardak|Zabol",Rz[4]="Berat|Bulqize|Delvine|Devoll (Bilisht)|Diber (Peshkopi)|Durres|Elbasan|Fier|Gjirokaster|Gramsh|Has (Krume)|Kavaje|Kolonje (Erseke)|Korce|Kruje|Kucove|Kukes|Kurbin|Lezhe|Librazhd|Lushnje|Malesi e Madhe (Koplik)|Mallakaster (B
5066allsh)|Mat (Burrel)|Mirdite (Rreshen)|Peqin|Permet|Pogradec|Puke|Sarande|Shkoder|Skrapar (Corovode)|Tepelene|Tirane (Tirana)|Tirane (Tirana)|Tropoje (Bajram Curri)|Vlore",Rz[5]="Adrar|Ain Defla|Ain Temouchent|Alger|Annaba|Batna|Bechar|Bejaia|Biskra|Blida|Bordj Bou Arreridj|Bouira|Boumerdes|Chlef|Constantine|Djelfa|El Bayadh|El Oued|El Tarf|Ghardaia|Guelma|Illizi|Jijel|Khenchela|Laghouat|M'Sila|Mascara|Medea|Mila|Mostaganem|Naama|Oran|Ouargla|Oum el Bouaghi|Relizane|Saida|Setif|Sidi Bel Abbes|Skikda|Souk Ahras|Tamanghasset|Tebessa|Tiaret|Tindouf|Tipaza|Tissemsilt|Tizi Ouzou|Tlemcen",Rz[6]="Eastern|Manu'a|Rose Island|Swains Island|Western",Rz[7]="Andorra la Vella|Bengo|Benguela|Bie|Cabinda|Canillo|Cuando Cubango|Cuanza Norte|Cuanza Sul|Cunene|Encamp|Escaldes-Engordany|Huambo|Huila|La Massana|Luanda|Lunda Norte|Lunda Sul|Malanje|Moxico|Namibe|Ordino|Sant Julia de Loria|Uige|Zaire",Rz[8]="Anguilla",Rz[9]="Antartica",Rz[10]="Barbuda|Redonda|Saint George|Saint John|Saint Mary|Saint Paul|Saint Peter|Saint Philip",Rz[11]="Antartica e Islas del Atlantico Sur|Buenos Aires|Buenos Aires Capital Federal|Catamarca|Chaco|Chubut|Cordoba|Corrientes|Entre Rios|Formosa|Jujuy|La Pampa|La Rioja|Mendoza|Misiones|Neuquen|Rio Negro|Salta|San Juan|San Luis|Santa Cruz|Santa Fe|Santiago del Estero|Tierra del Fuego|Tucuman",Rz[12]="Aragatsotn|Ararat|Armavir|Geghark'unik'|Kotayk'|Lorri|Shirak|Syunik'|Tavush|Vayots' Dzor|Yerevan",Rz[13]="Aruba",Rz[14]="Ashmore and Cartier Island",Rz[15]="Australian Capital Territory|New South Wales|Northern Territory|Queensland|South Australia|Tasmania|Victoria|Western Australia",Rz[16]="Burgenland|Kaernten|Niederoesterreich|Oberoesterreich|Salzburg|Steiermark|Tirol|Vorarlberg|Wien",Rz[17]="Abseron Rayonu|Agcabadi Rayonu|Agdam Rayonu|Agdas Rayonu|Agstafa Rayonu|Agsu Rayonu|Ali Bayramli Sahari|Astara Rayonu|Baki Sahari|Balakan Rayonu|Barda Rayonu|Beylaqan Rayonu|Bilasuvar Rayonu|Cabrayil Rayonu|Calilabad Rayonu|Daskasan Rayonu|Davaci Rayonu|Fuzuli Rayonu|Gadabay Rayonu|Ganca Sahari|Goranboy Rayonu|Goycay Rayonu|Haciqabul Rayonu|Imisli Rayonu|Ismayilli Rayonu|Kalbacar Rayonu|Kurdamir Rayonu|Lacin Rayonu|Lankaran Rayonu|Lankaran Sahari|Lerik Rayonu|Masalli Rayonu|Mingacevir Sahari|Naftalan Sahari|Naxcivan Muxtar Respublikasi|Neftcala Rayonu|Oguz Rayonu|Qabala Rayonu|Qax Rayonu|Qazax Rayonu|Qobustan Rayonu|Quba Rayonu|Qubadli Rayonu|Qusar Rayonu|Saatli Rayonu|Sabirabad Rayonu|Saki Rayonu|Saki Sahari|Salyan Rayonu|Samaxi Rayonu|Samkir Rayonu|Samux Rayonu|Siyazan Rayonu|Sumqayit Sahari|Susa Rayonu|Susa Sahari|Tartar Rayonu|Tovuz Rayonu|Ucar Rayonu|Xacmaz Rayonu|Xankandi Sahari|Xanlar Rayonu|Xizi Rayonu|Xocali Rayonu|Xocavand Rayonu|Yardimli Rayonu|Yevlax Rayonu|Yevlax Sahari|Zangilan Rayonu|Zaqatala Rayonu|Zardab Rayonu",Rz[18]="Acklins and Crooked Islands|Bimini|Cat Island|Exuma|Freeport|Fresh Creek|Governor's Harbour|Green Turtle Cay|Harbour Island|High Rock|Inagua|Kemps Bay|Long Island|Marsh Harbour|Mayaguana|New Providence|Nicholls Town and Berry Islands|Ragged Island|Rock Sound|San Salvador and Rum Cay|Sandy Point",Rz[19]="Al Hadd|Al Manamah|Al Mintaqah al Gharbiyah|Al Mintaqah al Wusta|Al Mintaqah ash Shamaliyah|Al Muharraq|Ar Rifa' wa al Mintaqah al Janubiyah|Jidd Hafs|Juzur Hawar|Madinat 'Isa|Madinat Hamad|Sitrah",Rz[20]="Barguna|Barisal|Bhola|Jhalokati|Patuakhali|Pirojpur|Bandarban|Brahmanbaria|Chandpur|Chittagong|Comilla|Cox's Bazar|Feni|Khagrachari|Lakshmipur|Noakhali|Rangamati|Dhaka|Faridpur|Gazipur|Gopalganj|Jamalpur|Kishoreganj|Madaripur|Manikganj|Munshiganj|Mymensingh|Narayanganj|Narsingdi|Netrokona|Rajbari|Shariatpur|Sherpur|Tangail|Bagerhat|Chuadanga|Jessore|Jhenaidah|Khulna|Kushtia|Magura|Meherpur|Narail|Satkhira|Bogra|Dinajpur|Gaibandha|Jaipurhat|Kurigram|Lalmonirhat|Naogaon|Natore|Nawabganj|Nilphamari|Pabna|Panchagarh|Rajshahi|Rangpur|Sirajganj|Thakurgaon|Habiganj|Maulvi bazar|Sunamganj|Sylhet",Rz[21]="Bridgetown|Christ Church|Saint Andrew|Saint George|Saint James|Saint John|Saint Joseph|Saint Lucy|Saint Michael|Saint Peter|Saint Philip|Saint Thomas",Rz[22]="Brestskaya (Brest)|Homyel'skaya (Homyel')|Horad Minsk|Hrodzyenskaya (Hrodna)|Mahilyowskaya (Mahily
5066ow)|Minskaya|Vitsyebskaya (Vitsyebsk)",Rz[23]="Antwerpen|Brabant Wallon|Brussels Capitol Region|Hainaut|Liege|Limburg|Luxembourg|Namur|Oost-Vlaanderen|Vlaams Brabant|West-Vlaanderen",Rz[24]="Belize|Cayo|Corozal|Orange Walk|Stann Creek|Toledo",Rz[25]="Alibori|Atakora|Atlantique|Borgou|Collines|Couffo|Donga|Littoral|Mono|Oueme|Plateau|Zou",Rz[26]="Devonshire|Hamilton|Hamilton|Paget|Pembroke|Saint George|Saint Georges|Sandys|Smiths|Southampton|Warwick",Rz[27]="Bumthang|Chhukha|Chirang|Daga|Geylegphug|Ha|Lhuntshi|Mongar|Paro|Pemagatsel|Punakha|Samchi|Samdrup Jongkhar|Shemgang|Tashigang|Thimphu|Tongsa|Wangdi Phodrang",Rz[28]="Beni|Chuquisaca|Cochabamba|La Paz|Oruro|Pando|Potosi|Santa Cruz|Tarija",Rz[29]="Federation of Bosnia and Herzegovina|Republika Srpska",Rz[30]="Central|Chobe|Francistown|Gaborone|Ghanzi|Kgalagadi|Kgatleng|Kweneng|Lobatse|Ngamiland|North-East|Selebi-Pikwe|South-East|Southern",Rz[31]="Acre|Alagoas|Amapa|Amazonas|Bahia|Ceara|Distrito Federal|Espirito Santo|Goias|Maranhao|Mato Grosso|Mato Grosso do Sul|Minas Gerais|Para|Paraiba|Parana|Pernambuco|Piaui|Rio de Janeiro|Rio Grande do Norte|Rio Grande do Sul|Rondonia|Roraima|Santa Catarina|Sao Paulo|Sergipe|Tocantins",Rz[32]="Anegada|Jost Van Dyke|Tortola|Virgin Gorda",Rz[33]="Belait|Brunei and Muara|Temburong|Tutong",Rz[34]="Blagoevgrad|Burgas|Dobrich|Gabrovo|Khaskovo|Kurdzhali|Kyustendil|Lovech|Montana|Pazardzhik|Pernik|Pleven|Plovdiv|Razgrad|Ruse|Shumen|Silistra|Sliven|Smolyan|Sofiya|Sofiya-Grad|Stara Zagora|Turgovishte|Varna|Veliko Turnovo|Vidin|Vratsa|Yambol",Rz[35]="Bale|Bam|Banwa|Bazega|Bougouriba|Boulgou|Boulkiemde|Comoe|Ganzourgou|Gnagna|Gourma|Houet|Ioba|Kadiogo|Kenedougou|Komandjari|Kompienga|Kossi|Koupelogo|Kouritenga|Kourweogo|Leraba|Loroum|Mouhoun|Nahouri|Namentenga|Naumbiel|Nayala|Oubritenga|Oudalan|Passore|Poni|Samentenga|Sanguie|Seno|Sissili|Soum|Sourou|Tapoa|Tuy|Yagha|Yatenga|Ziro|Zondomo|Zoundweogo",Rz[36]="Ayeyarwady|Bago|Chin State|Kachin State|Kayah State|Kayin State|Magway|Mandalay|Mon State|Rakhine State|Sagaing|Shan State|Tanintharyi|Yangon",Rz[37]="Bubanza|Bujumbura|Bururi|Cankuzo|Cibitoke|Gitega|Karuzi|Kayanza|Kirundo|Makamba|Muramvya|Muyinga|Mwaro|Ngozi|Rutana|Ruyigi",Rz[38]="Banteay Mean Cheay|Batdambang|Kampong Cham|Kampong Chhnang|Kampong Spoe|Kampong Thum|Kampot|Kandal|Kaoh Kong|Keb|Kracheh|Mondol Kiri|Otdar Mean Cheay|Pailin|Phnum Penh|Pouthisat|Preah Seihanu (Sihanoukville)|Preah Vihear|Prey Veng|Rotanah Kiri|Siem Reab|Stoeng Treng|Svay Rieng|Takev",Rz[39]="Adamaoua|Centre|Est|Extreme-Nord|Littoral|Nord|Nord-Ouest|Ouest|Sud|Sud-Ouest",Rz[40]="Boa Vista|Brava|Maio|Mosteiros|Paul|Porto Novo|Praia|Ribeira Grande|Sal|Santa Catarina|Santa Cruz|Sao Domingos|Sao Filipe|Sao Nicolau|Sao Vicente|Tarrafal",Rz[41]="Creek|Eastern|Midland|South Town|Spot Bay|Stake Bay|West End|Western",Rz[42]="Bamingui-Bangoran|Bangui|Basse-Kotto|Gribingui|Haut-Mbomou|Haute-Kotto|Haute-Sangha|Kemo-Gribingui|Lobaye|Mbomou|Nana-Mambere|Ombella-Mpoko|Ouaka|Ouham|Ouham-Pende|Sangha|Vakaga",Rz[43]="Batha|Biltine|Borkou-Ennedi-Tibesti|Chari-Baguirmi|Guera|Kanem|Lac|Logone Occidental|Logone Oriental|Mayo-Kebbi|Moyen-Chari|Ouaddai|Salamat|Tandjile",Rz[44]="Aisen del General Carlos Ibanez del Campo|Antofagasta|Araucania|Atacama|Bio-Bio|Coquimbo|Libertador General Bernardo O'Higgins|Los Lagos|Magallanes y de la Antartica Chilena|Maule|Region Metropolitana (Santiago)|Tarapaca|Valparaiso",Rz[45]="Anhui|Beijing|Chongqing|Fujian|Gansu|Guangdong|Guangxi|Guizhou|Hainan|Hebei|Heilongjiang|Henan|Hubei|Hunan|Jiangsu|Jiangxi|Jilin|Liaoning|Nei Mongol|Ningxia|Qinghai|Shaanxi|Shandong|Shanghai|Shanxi|Sichuan|Tianjin|Xinjiang|Xizang (Tibet)|Yunnan|Zhejiang",Rz[46]="Christmas Island",Rz[47]="Clipperton Island",Rz[48]="Direction Island|Home Island|Horsburgh Island|North Keeling Island|South Island|West Island",Rz[49]="Amazonas|Antioquia|Arauca|Atlantico|Bolivar|Boyaca|Caldas|Caqueta|Casanare|Cauca|Cesar|Choco|Cordoba|Cundinamarca|Distrito Capital de Santa Fe de Bogota|Guainia|Guaviare|Huila|La Guajira|Magdalena|Meta|Narino|Norte de Santander|Putumayo|Quindio|Risaralda|San Andres y Providencia|Santander|Sucre|Tolima|Valle del Cauca|Vaupes|Vichada",Rz[50]="Anjouan (Nzwani)|Domoni|Fomboni|Grande Comore (Njazidja)|Moheli (Mwali)|Moroni|Moutsamoudou",Rz[51]="Bandundu|Bas-Congo|Equateur|Kasai-Occidental|Kasai-Oriental|Katanga|Kinshasa|Maniema|Nord-Kivu|Orientale|Sud-Kivu",Rz[52]="Bouenza|Brazzaville|Cuvette|Kouilou|Lekoumou|Likouala|Niari|Plateaux|Pool|Sangha",Rz[53]="Aitutaki|Atiu|Avarua|Mangaia|Manihiki|Manuae|Mauke|Mitiaro|Nassau Island|Palmerston|Penrhyn|Pukapuka|Rakahanga|Rarotonga|Suwarrow|Takutea",Rz[54]="Alajuela|Cartago|Guanacaste|Heredia|Limon|Puntarenas|San Jose",Rz[55]="Abengourou|Abidjan|Aboisso|Adiake'|Adzope|Agboville|Agnibilekrou|Ale'pe'|Bangolo|Beoumi|Biankouma|Bocanda|Bondoukou|Bongouanou|Bouafle|Bouake|Bouna|Boundiali|Dabakala|Dabon|Daloa|Danane|Daoukro|Dimbokro|Divo|Duekoue|Ferkessedougou|Gagnoa|Grand Bassam|Grand-Lahou|Guiglo|Issia|Jacqueville|Katiola|Korhogo|Lakota|Man|Mankono|Mbahiakro|Odienne|Oume|Sakassou|San-Pedro|Sassandra|Seguela|Sinfra|Soubre|Tabou|Tanda|Tiassale|Tiebissou|Tingrela|Touba|Toulepleu|Toumodi|Vavoua|Yamoussoukro|Zuenoula",Rz[56]="Bjelovarsko-Bilogorska Zupanija|Brodsko-Posavska Zupanija|Dubrovacko-Neretvanska Zupanija|Istarska Zupanija|Karlovacka Zupanija|Koprivnicko-Krizevacka Zupanija|Krapinsko-Zagorska Zupanija|Licko-Senjska Zupanija|Medimurska Zupanija|Osjecko-Baranjska Zupanija|Pozesko-Slavonska Zupanija|Primorsko-Goranska Zupanija|Sibensko-Kninska Zupanija|Sisacko-Moslavacka Zupanija|Splitsko-Dalmatinska Zupanija|Varazdinska Zupanija|Viroviticko-Podravska Zupanija|Vukovarsko-Srijemska Zupanija|Zadarska Zupanija|Zagreb|Zagrebacka Zupanija",Rz[57]="
5066Camaguey|Ciego de Avila|Cienfuegos|Ciudad de La Habana|Granma|Guantanamo|Holguin|Isla de la Juventud|La Habana|Las Tunas|Matanzas|Pinar del Rio|Sancti Spiritus|Santiago de Cuba|Villa Clara",Rz[58]="Famagusta|Kyrenia|Larnaca|Limassol|Nicosia|Paphos",Rz[59]="Brnensky|Budejovicky|Jihlavsky|Karlovarsky|Kralovehradecky|Liberecky|Olomoucky|Ostravsky|Pardubicky|Plzensky|Praha|Stredocesky|Ustecky|Zlinsky",Rz[60]="Arhus|Bornholm|Fredericksberg|Frederiksborg|Fyn|Kobenhavn|Kobenhavns|Nordjylland|Ribe|Ringkobing|Roskilde|Sonderjylland|Storstrom|Vejle|Vestsjalland|Viborg",Rz[61]="'Ali Sabih|Dikhil|Djibouti|Obock|Tadjoura",Rz[62]="Saint Andrew|Saint David|Saint George|Saint John|Saint Joseph|Saint Luke|Saint Mark|Saint Patrick|Saint Paul|Saint Peter",Rz[63]="Azua|Baoruco|Barahona|Dajabon|Distrito Nacional|Duarte|El Seibo|Elias Pina|Espaillat|Hato Mayor|Independencia|La Altagracia|La Romana|La Vega|Maria Trinidad Sanchez|Monsenor Nouel|Monte Cristi|Monte Plata|Pedernales|Peravia|Puerto Plata|Salcedo|Samana|San Cristobal|San Juan|San Pedro de Macoris|Sanchez Ramirez|Santiago|Santiago Rodriguez|Valverde",Rz[64]="Azuay|Bolivar|Canar|Carchi|Chimborazo|Cotopaxi|El Oro|Esmeraldas|Galapagos|Guayas|Imbabura|Loja|Los Rios|Manabi|Morona-Santiago|Napo|Orellana|Pastaza|Pichincha|Sucumbios|Tungurahua|Zamora-Chinchipe",Rz[65]="Ad Daqahliyah|Al Bahr al Ahmar|Al Buhayrah|Al Fayyum|Al Gharbiyah|Al Iskandariyah|Al Isma'iliyah|Al Jizah|Al Minufiyah|Al Minya|Al Qahirah|Al Qalyubiyah|Al Wadi al Jadid|As Suways|Ash Sharqiyah|Aswan|Asyut|Bani Suwayf|Bur Sa'id|Dumyat|Janub Sina'|Kafr ash Shaykh|Matruh|Qina|Shamal Sina'|Suhaj",Rz[66]="Ahuachapan|Cabanas|Chalatenango|Cuscatlan|La Libertad|La Paz|La Union|Morazan|San Miguel|San Salvador|San Vicente|Santa Ana|Sonsonate|Usulutan",Rz[67]="Annobon|Bioko Norte|Bioko Sur|Centro Sur|Kie-Ntem|Litoral|Wele-Nzas",Rz[68]="Akale Guzay|Barka|Denkel|Hamasen|Sahil|Semhar|Senhit|Seraye",Rz[69]="Harjumaa (Tallinn)|Hiiumaa (Kardla)|Ida-Virumaa (Johvi)|Jarvamaa (Paide)|Jogevamaa (Jogeva)|Laane-Virumaa (Rakvere)|Laanemaa (Haapsalu)|Parnumaa (Parnu)|Polvamaa (Polva)|Raplamaa (Rapla)|Saaremaa (Kuessaare)|Tartumaa (Tartu)|Valgamaa (Valga)|Viljandimaa (Viljandi)|Vorumaa (Voru)",Rz[70]="Adis Abeba (Addis Ababa)|Afar|Amara|Dire Dawa|Gambela Hizboch|Hareri Hizb|Oromiya|Sumale|Tigray|YeDebub Biheroch Bihereseboch na Hizboch",Rz[71]="Europa Island",Rz[72]="Falkland Islands (Islas Malvinas)",Rz[73]="Bordoy|Eysturoy|Mykines|Sandoy|Skuvoy|Streymoy|Suduroy|Tvoroyri|Vagar",Rz[74]="Central|Eastern|Northern|Rotuma|Western",Rz[75]="Aland|Etela-Suomen Laani|Ita-Suomen Laani|Lansi-Suomen Laani|Lappi|Oulun Laani",Rz[76]="Alsace|Aquitaine|Auvergne|Basse-Normandie|Bourgogne|Bretagne|Centre|Champagne-Ardenne|Corse|Franche-Comte|Haute-Normandie|Ile-de-France|Languedoc-Roussillon|Limousin|Lorraine|Midi-Pyrenees|Nord-Pas-de-Calais|Pays de la Loire|Picardie|Poitou-Charentes|Provence-Alpes-Cote d'Azur|Rhone-Alpes",Rz[77]="French Guiana",Rz[78]="Archipel des Marquises|Archipel des Tuamotu|Archipel des Tubuai|Iles du Vent|Iles Sous-le-Vent",Rz[79]="Adelie Land|Ile Crozet|Iles Kerguelen|Iles Saint-Paul et Amsterdam",Rz[80]="Estuaire|Haut-Ogooue|Moyen-Ogooue|Ngounie|Nyanga|Ogooue-Ivindo|Ogooue-Lolo|Ogooue-Maritime|Woleu-Ntem",Rz[81]="Banjul|Central River|Lower River|North Bank|Upper River|Western",Rz[82]="Gaza Strip",Rz[83]="Abashis|Abkhazia or Ap'khazet'is Avtonomiuri Respublika (Sokhumi)|Adigenis|Ajaria or Acharis Avtonomiuri Respublika (Bat'umi)|Akhalgoris|Akhalk'alak'is|Akhalts'ikhis|Akhmetis|Ambrolauris|Aspindzis|Baghdat'is|Bolnisis|Borjomis|Ch'khorotsqus|Ch'okhatauris|Chiat'ura|Dedop'listsqaros|Dmanisis|Dushet'is|Gardabanis|Gori|Goris|Gurjaanis|Javis|K'arelis|K'ut'aisi|Kaspis|Kharagaulis|Khashuris|Khobis|Khonis|Lagodekhis|Lanch'khut'is|Lentekhis|Marneulis|Martvilis|Mestiis|Mts'khet'is|Ninotsmindis|Onis|Ozurget'is|P'ot'i|Qazbegis|Qvarlis|Rust'avi|Sach'kheris|Sagarejos|Samtrediis|Senakis|Sighnaghis|T'bilisi|T'elavis|T'erjolis|T'et'ritsqaros|T'ianet'is|Tqibuli|Ts'ageris|Tsalenjikhis|Tsalkis|Tsqaltubo|Vanis|Zestap'onis|Zugdidi|Zugdidis",Rz[84]="Baden-Wuerttemberg|Bayern|Berlin|Brandenburg|Bremen|Hamburg|Hessen|Mecklenburg-Vorpommern|Niedersachsen|Nordrhein-Westfalen|Rheinland-Pfalz|Saarland|Sachsen|Sachsen-Anhalt|Schleswig-Holstein|Thueringen",Rz[85]="Ashanti|Brong-Ahafo|Central|Eastern|Greater Accra|Northern|Upper East|Upper West|Volta|Western",Rz[86]="Gibraltar",Rz[87]="Ile du Lys|Ile Glorieuse",Rz[88]="Aitolia kai Akarnania|Akhaia|Argolis|Arkadhia|Arta|Attiki|Ayion Oros (Mt. Athos)|Dhodhekanisos|Drama|Evritania|Evros|Evvoia|Florina|Fokis|Fthiotis|Grevena|Ilia|Imathia|Ioannina|Irakleion|Kardhitsa|Kastoria|Kavala|Kefallinia|Kerkyra|Khalkidhiki|Khania|Khios|Kikladhes|Kilkis|Korinthia|Kozani|Lakonia|Larisa|L
5066asithi|Lesvos|Levkas|Magnisia|Messinia|Pella|Pieria|Preveza|Rethimni|Rodhopi|Samos|Serrai|Thesprotia|Thessaloniki|Trikala|Voiotia|Xanthi|Zakinthos",Rz[89]="Avannaa (Nordgronland)|Kitaa (Vestgronland)|Tunu (Ostgronland)",Rz[90]="Carriacou and Petit Martinique|Saint Andrew|Saint David|Saint George|Saint John|Saint Mark|Saint Patrick",Rz[91]="Basse-Terre|Grande-Terre|Iles de la Petite Terre|Iles des Saintes|Marie-Galante",Rz[92]="Guam",Rz[93]="Alta Verapaz|Baja Verapaz|Chimaltenango|Chiquimula|El Progreso|Escuintla|Guatemala|Huehuetenango|Izabal|Jalapa|Jutiapa|Peten|Quetzaltenango|Quiche|Retalhuleu|Sacatepequez|San Marcos|Santa Rosa|Solola|Suchitepequez|Totonicapan|Zacapa",Rz[94]="Castel|Forest|St. Andrew|St. Martin|St. Peter Port|St. Pierre du Bois|St. Sampson|St. Saviour|Torteval|Vale",Rz[95]="Beyla|Boffa|Boke|Conakry|Coyah|Dabola|Dalaba|Dinguiraye|Dubreka|Faranah|Forecariah|Fria|Gaoual|Gueckedou|Kankan|Kerouane|Kindia|Kissidougou|Koubia|Koundara|Kouroussa|Labe|Lelouma|Lola|Macenta|Mali|Mamou|Mandiana|Nzerekore|Pita|Siguiri|Telimele|Tougue|Yomou",Rz[96]="Bafata|Biombo|Bissau|Bolama-Bijagos|Cacheu|Gabu|Oio|Quinara|Tombali",Rz[97]="Barima-Waini|Cuyuni-Mazaruni|Demerara-Mahaica|East Berbice-Corentyne|Essequibo Islands-West Demerara|Mahaica-Berbice|Pomeroon-Supenaam|Potaro-Siparuni|Upper Demerara-Berbice|Upper Takutu-Upper Essequibo",Rz[98]="Artibonite|Centre|Grand'Anse|Nord|Nord-Est|Nord-Ouest|Ouest|Sud|Sud-Est",Rz[99]="Heard Island and McDonald Islands",Rz[100]="Holy See (Vatican City)",Rz[101]="Atlantida|Choluteca|Colon|Comayagua|Copan|Cortes|El Paraiso|Francisco Morazan|Gracias a Dios|Intibuca|Islas de la Bahia|La Paz|Lempira|Ocotepeque|Olancho|Santa Barbara|Valle|Yoro",Rz[102]="Hong Kong",Rz[103]="Howland Island",Rz[104]="Bacs-Kiskun|Baranya|Bekes|Bekescsaba|Borsod-Abauj-Zemplen|Budapest|Csongrad|Debrecen|Dunaujvaros|Eger|Fejer|Gyor|Gyor-Moson-Sopron|Hajdu-Bihar|Heves|Hodmezovasarhely|Jasz-Nagykun-Szolnok|Kaposvar|Kecskemet|Komarom-Esztergom|Miskolc|Nagykanizsa|Nograd|Nyiregyhaza|Pecs|Pest|Somogy|Sopron|Szabolcs-Szatmar-Bereg|Szeged|Szekesfehervar|Szolnok|Szombathely|Tatabanya|Tolna|Vas|Veszprem|Veszprem|Zala|Zalaegerszeg",Rz[105]="Akranes|Akureyri|Arnessysla|Austur-Bardhastrandarsysla|Austur-Hunavatnssysla|Austur-Skaftafellssysla|Borgarfjardharsysla|Dalasysla|Eyjafjardharsysla|Gullbringusysla|Hafnarfjordhur|Husavik|Isafjordhur|Keflavik|Kjosarsysla|Kopavogur|Myrasysla|Neskaupstadhur|Nordhur-Isafjardharsysla|Nordhur-Mulasys-la|Nordhur-Thingeyjarsysla|Olafsfjordhur|Rangarvallasysla|Reykjavik|Saudharkrokur|Seydhisfjordhur|Siglufjordhur|Skagafjardharsysla|Snaefellsnes-og Hnappadalssysla|Strandasysla|Sudhur-Mulasysla|Sudhur-Thingeyjarsysla|Vesttmannaeyjar|Vestur-Bardhastrandarsysla|Vestur-Hunavatnssysla|Vestur-Isafjardharsysla|Vestur-Skaftafellssysla",Rz[106]="Andaman and Nicobar Islands|Andhra Pradesh|Arunachal Pradesh|Assam|Bihar|Chandigarh|Chhattisgarh|Dadra and Nagar Haveli|Daman and Diu|Delhi|Goa|Gujarat|Haryana|Himachal Pradesh|Jammu and Kashmir|Jharkhand|Karnataka|Kerala|Lakshadweep|Madhya Pradesh|Maharashtra|Manipur|Meghalaya|Mizoram|Nagaland|Orissa|Pondicherry|Punjab|Rajasthan|Sikkim|Tamil Nadu|Tripura|Uttar Pradesh|Uttaranchal|West Bengal",Rz[107]="Aceh|Bali|Banten|Bengkulu|East Timor|Gorontalo|Irian Jaya|Jakarta Raya|Jambi|Jawa Barat|Jawa Tengah|Jawa Timur|Kalimantan Barat|Kalimantan Selatan|Kalimantan Tengah|Kalimantan Timur|Kepulauan Bangka Belitung|Lampung|Maluku|Maluku Utara|Nusa Tenggara Barat|Nusa Tenggara Timur|Riau|Sulawesi Selatan|Sulawesi Tengah|Sulawesi Tenggara|Sulawesi Utara|Sumatera Barat|Sumatera Selatan|Sumatera Utara|Yogyakarta",Rz[108]="Ardabil|Azarbayjan-e Gharbi|Azarbayjan-e Sharqi|Bushehr|Chahar Mahall va Bakhtiari|Esfahan|Fars|Gilan|Golestan|Hamadan|Hormozgan|Ilam|Kerman|Kermanshah|Khorasan|Khuzestan|Kohgiluyeh va Buyer Ahmad|Kordestan|Lorestan|Markazi|Mazandaran|Qazvin|Qom|Semnan|Sistan va Baluchestan|Tehran|Yazd|Zanjan",Rz[109]="Al Anbar|Al Basrah|Al Muthanna|Al Qadisiyah|An Najaf|Arbil|As Sulaymaniyah|At Ta'mim|Babil|Baghdad|Dahuk|Dhi Qar|Diyala|Karbala'|Maysan|Ninawa|Salah ad Din|Wasit",Rz[110]="Carlow|Cavan|Clare|Cork|Donegal|Dublin|Galway|Kerry|Kildare|Kilkenny|Laois|Leitrim|Limerick|Longford|Louth|Mayo|Meath|Monaghan|Offaly|Roscommon|Sligo|Tipperary|Waterford|Westmeath|Wexford|Wicklow",Rz[111]="Antrim|Ards|Armagh|Ballymena|Ballymoney|Banbridge|Belfast|Carrickfergus|Castlereagh|Coleraine|Cookstown|Craigavon|Derry|Down|Dungannon|Fermanagh|Larne|Limavady|Lisburn|Magherafelt|Moyle|Newry and Mourne|Newtownabbey|North Down|Omagh|Strabane",Rz[112]="Central|Haifa|Jerusalem|Northern|Southern|Tel Aviv",Rz[113]="Abruzzo|Basilicata|Calabria|Campania|Emilia-Romagna|Friuli-Venezia Giulia|Lazio|Liguria|Lombardia|Marche|Molise|Piemonte|Puglia|Sardegna|Sicilia|Toscana|Trentino-Alto Adige|Umbria|Valle d'Aosta|Veneto",Rz[114]="Clarendon|Hanover|Kingston|Manchester|Portland|Saint Andrew|Saint Ann|Saint Catherine|Saint Elizabeth|Saint James|Saint Mary|Saint Thomas|Trelawny|Westmoreland",Rz[115]="Jan Mayen",Rz[116]="Aichi|Akita|Aomori|Chiba|Ehime|Fukui|Fukuoka|Fukushima|Gifu|Gumma|Hiroshima|Hokkaido|Hyogo|Ibaraki|Ishikawa|Iwate|Kagawa|Kagoshima|Kanagawa|Kochi|Kumamoto|Kyoto|Mie|Miyagi|Miyazaki|Nagano|Nagasaki|Nara|Niigata|Oita|Okayama|Okinawa|Osaka|Saga|Saitama|Shiga|Shimane|Shizuoka|Tochigi|Tokushima|Tokyo|Tottori|Toyama|Wakayama|Yamagata|Yamaguchi|Yamanashi",Rz[117]="Jarvis Island",Rz[118]="Jersey",Rz[119]="Johnston Atoll",Rz[120]="'Amman|Ajlun|Al 'Aqabah|Al Balqa'|Al Karak|Al Mafraq|At Tafilah|Az Zarqa'|Irbid|Jarash|Ma'an|Madaba",Rz[121]="Juan de Nova Island",Rz[122]="Almaty|Aqmola|Aqtobe|Astana|Atyrau|Batys Qazaqstan|Bayqongyr|Mangghystau|Ongtustik Qazaqstan|Pavlodar|Qaraghandy|Qostanay|Qyzylorda|Shyghys Qazaqstan|Soltustik Qazaqstan|Zh
5066ambyl",Rz[123]="Central|Coast|Eastern|Nairobi Area|North Eastern|Nyanza|Rift Valley|Western",Rz[124]="Abaiang|Abemama|Aranuka|Arorae|Banaba|Banaba|Beru|Butaritari|Central Gilberts|Gilbert Islands|Kanton|Kiritimati|Kuria|Line Islands|Line Islands|Maiana|Makin|Marakei|Nikunau|Nonouti|Northern Gilberts|Onotoa|Phoenix Islands|Southern Gilberts|Tabiteuea|Tabuaeran|Tamana|Tarawa|Tarawa|Teraina",Rz[125]="Chagang-do (Chagang Province)|Hamgyong-bukto (North Hamgyong Province)|Hamgyong-namdo (South Hamgyong Province)|Hwanghae-bukto (North Hwanghae Province)|Hwanghae-namdo (South Hwanghae Province)|Kaesong-si (Kaesong City)|Kangwon-do (Kangwon Province)|Namp'o-si (Namp'o City)|P'yongan-bukto (North P'yongan Province)|P'yongan-namdo (South P'yongan Province)|P'yongyang-si (P'yongyang City)|Yanggang-do (Yanggang Province)",Rz[126]="Ch'ungch'ong-bukto|Ch'ungch'ong-namdo|Cheju-do|Cholla-bukto|Cholla-namdo|Inch'on-gwangyoksi|Kangwon-do|Kwangju-gwangyoksi|Kyonggi-do|Kyongsang-bukto|Kyongsang-namdo|Pusan-gwangyoksi|Soul-t'ukpyolsi|Taegu-gwangyoksi|Taejon-gwangyoksi|Ulsan-gwangyoksi",Rz[127]="Al 'Asimah|Al Ahmadi|Al Farwaniyah|Al Jahra'|Hawalli",Rz[128]="Batken Oblasty|Bishkek Shaary|Chuy Oblasty (Bishkek)|Jalal-Abad Oblasty|Naryn Oblasty|Osh Oblasty|Talas Oblasty|Ysyk-Kol Oblasty (Karakol)",Rz[129]="Attapu|Bokeo|Bolikhamxai|Champasak|Houaphan|Khammouan|Louangnamtha|Louangphabang|Oudomxai|Phongsali|Salavan|Savannakhet|Viangchan|Viangchan|Xaignabouli|Xaisomboun|Xekong|Xiangkhoang",Rz[130]="Aizkraukles Rajons|Aluksnes Rajons|Balvu Rajons|Bauskas Rajons|Cesu Rajons|Daugavpils|Daugavpils Rajons|Dobeles Rajons|Gulbenes Rajons|Jekabpils Rajons|Jelgava|Jelgavas Rajons|Jurmala|Kraslavas Rajons|Kuldigas Rajons|Leipaja|Liepajas Rajons|Limbazu Rajons|Ludzas Rajons|Madonas Rajons|Ogres Rajons|Preilu Rajons|Rezekne|Rezeknes Rajons|Riga|Rigas Rajons|Saldus Rajons|Talsu Rajons|Tukuma Rajons|Valkas Rajons|Valmieras Rajons|Ventspils|Ventspils Rajons",Rz[131]="Beyrouth|Ech Chimal|Ej Jnoub|El Bekaa|Jabal Loubnane",Rz[132]="Berea|Butha-Buthe|Leribe|Mafeteng|Maseru|Mohales Hoek|Mokhotlong|Qacha's Nek|Quthing|Thaba-Tseka",Rz[133]="Bomi|Bong|Grand Bassa|Grand Cape Mount|Grand Gedeh|Grand Kru|Lofa|Margibi|Maryland|Montserrado|Nimba|River Cess|Sinoe",Rz[134]="Ajdabiya|Al 'Aziziyah|Al Fatih|Al Jabal al Akhdar|Al Jufrah|Al Khums|Al Kufrah|An Nuqat al Khams|Ash Shati'|Awbari|Az Zawiyah|Banghazi|Darnah|Ghadamis|Gharyan|Misratah|Murzuq|Sabha|Sawfajjin|Surt|Tarabulus|Tarhunah|Tubruq|Yafran|Zlitan",Rz[135]="Balzers|Eschen|Gamprin|Mauren|Planken|Ruggell|Schaan|Schellenberg|Triesen|Triesenberg|Vaduz",Rz[136]="Akmenes Rajonas|Alytaus Rajonas|Alytus|Anyksciu Rajonas|Birstonas|Birzu Rajonas|Druskininkai|Ignalinos Rajonas|Jonavos Rajonas|Joniskio Rajonas|Jurbarko Rajonas|Kaisiadoriu Rajonas|Kaunas|Kauno Rajonas|Kedainiu Rajonas|Kelmes Rajonas|Klaipeda|Klaipedos Rajonas|Kretingos Rajonas|Kupiskio Rajonas|Lazdiju Rajonas|Marijampole|Marijampoles Rajonas|Mazeikiu Rajonas|Moletu Rajonas|Neringa Pakruojo Rajonas|Palanga|Panevezio Rajonas|Panevezys|Pasvalio Rajonas|Plunges Rajonas|Prienu Rajonas|Radviliskio Rajonas|Raseiniu Rajonas|Rokiskio Rajonas|Sakiu Rajonas|Salcininku Rajonas|Siauliai|Siauliu Rajonas|Silales Rajonas|Silutes Rajonas|Sirvintu Rajonas|Skuodo Rajonas|Svencioniu Rajonas|Taurages Rajonas|Telsiu Rajonas|Traku Rajonas|Ukmerges Rajonas|Utenos Rajonas|Varenos Rajonas|Vilkaviskio Rajonas|Vilniaus Rajonas|Vilnius|Zarasu Rajonas",Rz[137]="Diekirch|Grevenmacher|Luxembourg",Rz[138]="Macau",Rz[139]="Aracinovo|Bac|Belcista|Berovo|Bistrica|Bitola|Blatec|Bogdanci|Bogomila|Bogovinje|Bosilovo|Brvenica|Cair (Skopje)|Capari|Caska|Cegrane|Centar (Skopje)|Centar Zupa|Cesinovo|Cucer-Sandevo|Debar|Delcevo|Delogozdi|Demir Hisar|Demir Kapija|Dobrusevo|Dolna Banjica|Dolneni|Dorce Petrov (Skopje)|Drugovo|Dzepciste|Gazi Baba (Skopje)|Gevgelija|Gostivar|Gradsko|Ilinden|Izvor|Jegunovce|Kamenjane|Karbinci|Karpos (Skopje)|Kavadarci|Kicevo|Kisela Voda (Skopje)|Klecevce|Kocani|Konce|Kondovo|Konopiste|Kosel|Kratovo|Kriva Palanka|Krivogastani|Krusevo|Kuklis|Kukurecani|Kumanovo|Labunista|Lipkovo|Lozovo|Lukovo|Makedonska Kamenica|Makedonski Brod|Mavrovi Anovi|Meseista|Miravci|Mogila|Murtino|Negotino|Negotino-Poloska|Novaci|Novo Selo|Oblesevo|Ohrid|Orasac|Orizari|Oslomej|Pehcevo|Petrovec|Plasnia|Podares|Prilep|Probistip|Radovis|Rankovce|Resen|Rosoman|Rostusa|
5066Samokov|Saraj|Sipkovica|Sopiste|Sopotnika|Srbinovo|Star Dojran|Staravina|Staro Nagoricane|Stip|Struga|Strumica|Studenicani|Suto Orizari (Skopje)|Sveti Nikole|Tearce|Tetovo|Topolcani|Valandovo|Vasilevo|Veles|Velesta|Vevcani|Vinica|Vitoliste|Vranestica|Vrapciste|Vratnica|Vrutok|Zajas|Zelenikovo|Zileno|Zitose|Zletovo|Zrnovci",Rz[140]="Antananarivo|Antsiranana|Fianarantsoa|Mahajanga|Toamasina|Toliara",Rz[141]="Balaka|Blantyre|Chikwawa|Chiradzulu|Chitipa|Dedza|Dowa|Karonga|Kasungu|Likoma|Lilongwe|Machinga (Kasupe)|Mangochi|Mchinji|Mulanje|Mwanza|Mzimba|Nkhata Bay|Nkhotakota|Nsanje|Ntcheu|Ntchisi|Phalombe|Rumphi|Salima|Thyolo|Zomba",Rz[142]="Johor|Kedah|Kelantan|Labuan|Melaka|Negeri Sembilan|Pahang|Perak|Perlis|Pulau Pinang|Sabah|Sarawak|Selangor|Terengganu|Wilayah Persekutuan",Rz[143]="Alifu|Baa|Dhaalu|Faafu|Gaafu Alifu|Gaafu Dhaalu|Gnaviyani|Haa Alifu|Haa Dhaalu|Kaafu|Laamu|Lhaviyani|Maale|Meemu|Noonu|Raa|Seenu|Shaviyani|Thaa|Vaavu",Rz[144]="Gao|Kayes|Kidal|Koulikoro|Mopti|Segou|Sikasso|Tombouctou",Rz[145]="Valletta",Rz[146]="Man, Isle of",Rz[147]="Ailinginae|Ailinglaplap|Ailuk|Arno|Aur|Bikar|Bikini|Bokak|Ebon|Enewetak|Erikub|Jabat|Jaluit|Jemo|Kili|Kwajalein|Lae|Lib|Likiep|Majuro|Maloelap|Mejit|Mili|Namorik|Namu|Rongelap|Rongrik|Toke|Ujae|Ujelang|Utirik|Wotho|Wotje",Rz[148]="Martinique",Rz[149]="Adrar|Assaba|Brakna|Dakhlet Nouadhibou|Gorgol|Guidimaka|Hodh Ech Chargui|Hodh El Gharbi|Inchiri|Nouakchott|Tagant|Tiris Zemmour|Trarza",Rz[150
5066]="Agalega Islands|Black River|Cargados Carajos Shoals|Flacq|Grand Port|Moka|Pamplemousses|Plaines Wilhems|Port Louis|Riviere du Rempart|Rodrigues|Savanne",Rz[151]="Mayotte",Rz[152]="Aguascalientes|Baja California|Baja California Sur|Campeche|Chiapas|Chihuahua|Coahuila de Zaragoza|Colima|Distrito Federal|Durango|Guanajuato|Guerrero|Hidalgo|Jalisco|Mexico|Michoacan de Ocampo|Morelos|Nayarit|Nuevo Leon|Oaxaca|Puebla|Queretaro de Arteaga|Quintana Roo|San Luis Potosi|Sinaloa|Sonora|Tabasco|Tamaulipas|Tlaxcala|Veracruz-Llave|Yucatan|Zacatecas",Rz[153]="Chuuk (Truk)|Kosrae|Pohnpei|Yap",Rz[154]="Midway Islands",Rz[155]="Balti|Cahul|Chisinau|Chisinau|Dubasari|Edinet|Gagauzia|Lapusna|Orhei|Soroca|Tighina|Ungheni",Rz[156]="Fontvieille|La Condamine|Monaco-Ville|Monte-Carlo",Rz[157]="Arhangay|Bayan-Olgiy|Bayanhongor|Bulgan|Darhan|Dornod|Dornogovi|Dundgovi|Dzavhan|Erdenet|Govi-Altay|Hentiy|Hovd|Hovsgol|Omnogovi|Ovorhangay|Selenge|Suhbaatar|Tov|Ulaanbaatar|Uvs",Rz[158]="Saint Anthony|Saint Georges|Saint Peter's",Rz[159]="Agadir|Al Hoceima|Azilal|Ben Slimane|Beni Mellal|Boulemane|Casablanca|Chaouen|El Jadida|El Kelaa des Srarhna|Er Rachidia|Essaouira|Fes|Figuig|Guelmim|Ifrane|Kenitra|Khemisset|Khenifra|Khouribga|Laayoune|Larache|Marrakech|Meknes|Nador|Ouarzazate|Oujda|Rabat-Sale|Safi|Settat|Sidi Kacem|Tan-Tan|Tanger|Taounate|Taroudannt|Tata|Taza|Tetouan|Tiznit",Rz[160]="Cabo Delgado|Gaza|Inhambane|Manica|Maputo|Nampula|Niassa|Sofala|Tete|Zambezia",Rz[161]="Caprivi|Erongo|Hardap|Karas|Khomas|Kunene|Ohangwena|Okavango|Omaheke|Omusati|Oshana|Oshikoto|Otjozondjupa",Rz[162]="Aiwo|Anabar|Anetan|Anibare|Baiti|Boe|Buada|Denigomodu|Ewa|Ijuw|Meneng|Nibok|Uaboe|Yaren",Rz[163]="Bagmati|Bheri|Dhawalagiri|Gandaki|Janakpur|Karnali|Kosi|Lumbini|Mahakali|Mechi|Narayani|Rapti|Sagarmatha|Seti",Rz[164]="Drenthe|Flevoland|Friesland|Gelderland|Groningen|Limburg|Noord-Brabant|Noord-Holland|Overijssel|Utrecht|Zeeland|Zuid-Holland",Rz[165]="Netherlands Antilles",Rz[166]="Iles Loyaute|Nord|Sud",Rz[167]="Northland|Auckland|Waikato|Bay of Plenty|Gisborne|Hawke's Bay|Taranaki|Manawatu-Wanganui|Wellington|Tasman|Nelson|Marlborough|West Coast|Canterbury|Otago|Southland",Rz[168]="Atlantico Norte|Atlantico Sur|Boaco|Carazo|Chinandega|Chontales|Esteli|Granada|Jinotega|Leon|Madriz|Managua|Masaya|Matagalpa|Nueva Segovia|Rio San Juan|Rivas",Rz[169]="Agadez|Diffa|Dosso|Maradi|Niamey|Tahoua|Tillaberi|Zinder",Rz[170]="Abia|Abuja Federal Capital Territory|Adamawa|Akwa Ibom|Anambra|Bauchi|Bayelsa|Benue|Borno|Cross River|Delta|Ebonyi|Edo|Ekiti|Enugu|Gombe|Imo|Jigawa|Kaduna|Kano|Katsina|Kebbi|Kogi|Kwara|Lagos|Nassarawa|Niger|Ogun|Ondo|Osun|Oyo|Plateau|Rivers|Sokoto|Taraba|Yobe|Zamfara",Rz[171]="Niue",Rz[172]="Norfolk Island",Rz[173]="Northern Islands|Rota|Saipan|Tinian",Rz[174]="Akershus|Aust-Agder|Buskerud|Finnmark|Hedmark|Hordaland|More og Romsdal|Nord-Trondelag|Nordland|Oppland|Oslo|Ostfold|Rogaland|Sogn og Fjordane|Sor-Trondelag|Telemark|Troms|Vest-Agder|Vestfold",Rz[175]="Ad Dakhiliyah|Al Batinah|Al Wusta|Ash Sharqiyah|Az Zahirah|Masqat|Musandam|Zufar",Rz[176]="Sindh|Punjab|Khyber Pakhtunkhwa|Balochistan|Azad Jammu and Kashmir|Federally Administered Tribal Areas|Islamabad Capital Territory|North-West Frontier Province",Rz[177]="Aimeliik|Airai|Angaur|Hatobohei|Kayangel|Koror|Melekeok|Ngaraard|Ngarchelong|Ngardmau|Ngatpang|Ngchesar|Ngeremlengui|Ngiwal|Palau Island|Peleliu|Sonsoral|Tobi",Rz[178]="Bocas del Toro|Chiriqui|Cocle|Colon|Darien|Herrera|Los Santos|Panama|San Blas|Veraguas",Rz[179]="Bougainville|Central|Chimbu|East New Britain|East Sepik|Eastern Highlands|Enga|Gulf|Madang|Manu
5066s|Milne Bay|Morobe|National Capital|New Ireland|Northern|Sandaun|Southern Highlands|West New Britain|Western|Western Highlands",Rz[180]="Alto Paraguay|Alto Parana|Amambay|Asuncion (city)|Boqueron|Caaguazu|Caazapa|Canindeyu|Central|Concepcion|Cordillera|Guaira|Itapua|Misiones|Neembucu|Paraguari|Presidente Hayes|San Pedro",Rz[181]="Amazonas|Ancash|Apurimac|Arequipa|Ayacucho|Cajamarca|Callao|Cusco|Huancavelica|Huanuco|Ica|Junin|La Libertad|Lambayeque|Lima|Loreto|Madre de Dios|Moquegua|Pasco|Piura|Puno|San Martin|Tacna|Tumbes|Ucayali",Rz[182]="Abra|Agusan del Norte|Agusan del Sur|Aklan|Albay|Angeles|Antique|Aurora|Bacolod|Bago|Baguio|Bais|Basilan|Basilan City|Bataan|Batanes|Batangas|Batangas City|Benguet|Bohol|Bukidnon|Bulacan|Butuan|Cabanatuan|Cadiz|Cagayan|Cagayan de Oro|Calbayog|Caloocan|Camarines Norte|Camarines Sur|Camiguin|Canlaon|Capiz|Catanduanes|Cavite|Cavite City|Cebu|Cebu City|Cotabato|Dagupan|Danao|Dapitan|Davao City Davao|Davao del Sur|Davao Oriental|Dipolog|Dumaguete|Eastern Samar|General Santos|Gingoog|Ifugao|Iligan|Ilocos Norte|Ilocos Sur|Iloilo|Iloilo City|Iriga|Isabela|Kalinga-Apayao|La Carlota|La Union|Laguna|Lanao del Norte|Lanao del Sur|Laoag|Lapu-Lapu|Legaspi|Leyte|Lipa|Lucena|Maguindanao|Mandaue|Manila|Marawi|Marinduque|Masbate|Mindoro Occidental|Mindoro Oriental|Misamis Occidental|Misamis Oriental|Mountain|Naga|Negros Occidental|Negros Oriental|North Cotabato|Northern Samar|Nueva Ecija|Nueva Vizcaya|Olongapo|Ormoc|Oroquieta|Ozamis|Pagadian|Palawan|Palayan|Pampanga|Pangasinan|Pasay|Puerto Princesa|Quezon|Quezon City|Quirino|Rizal|Romblon|Roxas|Samar|San Carlos (in Negros Occidental)|San Carlos (in Pangasinan)|San Jose|San Pablo|Silay|Siquijor|Sorsogon|South Cotabato|Southern Leyte|Sultan Kudarat|Sulu|Surigao|Surigao del Norte|Surigao del Sur|Tacloban|Tagaytay|Tagbilaran|Tangub|Tarlac|Tawitawi|Toledo|Trece Martires|Zambales|Zamboanga|Zamboanga del Norte|Zamboanga del Sur",Rz[183]="Pitcaim Islands",Rz[184]="Dolnoslaskie|Kujawsko-Pomorskie|Lodzkie|Lubelskie|Lubuskie|Malopolskie|Mazowieckie|Opolskie|Podkarpackie|Podlaskie|Pomorskie|Slaskie|Swietokrzyskie|Warminsko-Mazurskie|Wielkopolskie|Zachodniopomorskie",Rz[185]="Acores (Azores)|Aveiro|Beja|Braga|Braganca|Castelo Branco|Coimbra|Evora|Faro|Guarda|Leiria|Lisboa|Madeira|Portalegre|Porto|Santarem|Setubal|Viana do Castelo|Vila Real|Viseu",Rz[186]="Adjuntas|Aguada|Aguadilla|Aguas Buenas|Aibonito|Anasco|Arecibo|Arroyo|Barceloneta|Barranquitas|Bayamon|Cabo Rojo|Caguas|Camuy|Canovanas|Carolina|Catano|Cayey|Ceiba|Ciales|Cidra|Coamo|Comerio|Corozal|Culebra|Dorado|Fajardo|Florida|Guanica|Guayama|Guayanilla|Guaynabo|Gurabo|Hatillo|Hormigueros|Humacao|Isabela|Jayuya|Juana Diaz|Juncos|Lajas|Lares|Las Marias|Las Piedras|Loiza|Luquillo|Manati|Maricao|Maunabo|Mayaguez|Moca|Morovis|Naguabo|Naranjito|Orocovis|Patillas|Penuelas|Ponce|Quebradillas|Rincon|Rio Grande|Sabana Grande|Salinas|San German|San Juan|San Lorenzo|San Sebastian|Santa Isabel|Toa Alta|Toa Baja|Trujillo Alto|Utuado|Vega Alta|Vega Baja|Vieques|Villalba|Yabucoa|Yauco",Rz[187]="Ad Dawhah|Al Ghuwayriyah|Al Jumayliyah|Al Khawr|Al Wakrah|Ar Rayyan|Jarayan al Batinah|Madinat ash Shamal|Umm Salal",Rz[188]="Reunion",Rz[189]="Alba|Arad|Arges|Bacau|Bihor|Bistrita-Nasaud|Botosani|Braila|Brasov|Bucuresti|Buzau|Calarasi|Caras-Severin|Cluj|Constanta|Covasna|Dimbovita|Dolj|Galati|Giurgiu|Gorj|Harghita|Hunedoara|Ialomita|Iasi|Maramures|Mehedinti|Mures|Neamt|Olt|Prahova|Salaj|Satu Mare|Sibiu|Suceava|Teleorman|Timis|Tulcea|Vaslui|Vilcea|Vrancea",Rz[190]="Adygeya (Maykop)|Aginskiy Buryatskiy (Aginskoye)|Altay (Gorno-Altaysk)|Altayskiy (Barnaul)|Amurskaya (Blagoveshchensk)|Arkhangel'skaya|Astrakhanskaya|Bashkortostan (Ufa)|Belgorodskaya|Bryanskaya|Buryatiya (Ulan-Ude)|Chechnya (Groznyy)|Chelyabinskaya|Chitinskaya|Chukotskiy (Anadyr')|Chuvashiya (Cheboksary)|Dagestan (Makhachkala)|Evenkiyskiy (Tura)|Ingushetiya (Nazran')|Irkutskaya|Ivanovskaya|Kabardino-Balkariya (Nal'chik)|Kaliningradskaya|Kalmykiya (Elista)|Kaluzhskaya|Kamchatskaya (Petropavlovsk-Kamchatskiy)|Karachayevo-Cherkesiya (Cherkessk)|Kareliya (Petrozavodsk)|Kemerovskaya|Khabarovskiy|Khakasiya (Abakan)|Khanty-Mansiyskiy (Khanty-Mansiysk)|Kirovskaya|Komi (Syktyvkar)|Komi-Permyatskiy (Kudymkar)|Koryakskiy (Palana)|Kostromskaya|Krasnodarskiy|Krasnoyarskiy|Kurganskaya|Kurskaya|Leningradskaya|Lipetskaya|Magadanskaya|Mariy-El (Yoshkar-Ola)|Mordoviya (Saransk)|Moskovskaya|Moskva (Moscow)|Murmanskaya|Nenetskiy (Nar'yan-Mar)|Nizhegorodskaya|Novgorodskaya|Novosibirskaya|Omskaya|Orenburgskaya|Orlovskaya (Orel)|Penzenskaya|Permskaya|Primorskiy (Vladivostok)|Pskovskaya|Rostovskaya|Ryazanskaya|Sakha (Yakutsk)|Sakhalinskaya (Yuzhno-Sakhalinsk)|Samarskaya|Sankt-Peterburg 
5066(Saint Petersburg)|Saratovskaya|Severnaya Osetiya-Alaniya [North Ossetia] (Vladikavkaz)|Smolenskaya|Stavropol'skiy|Sverdlovskaya (Yekaterinburg)|Tambovskaya|Tatarstan (Kazan')|Taymyrskiy (Dudinka)|Tomskaya|Tul'skaya|Tverskaya|Tyumenskaya|Tyva (Kyzyl)|Udmurtiya (Izhevsk)|Ul'yanovskaya|Ust'-Ordynskiy Buryatskiy (Ust'-Ordynskiy)|Vladimirskaya|Volgogradskaya|Vologodskaya|Voronezhskaya|Yamalo-Nenetskiy (Salekhard)|Yaroslavskaya|Yevreyskaya",Rz[191]="Butare|Byumba|Cyangugu|Gikongoro|Gisenyi|Gitarama|Kibungo|Kibuye|Kigali Rurale|Kigali-ville|Ruhengeri|Umutara",Rz[192]="Ascension|Saint Helena|Tristan da Cunha",Rz[193]="Christ Church Nichola Town|Saint Anne Sandy Point|Saint George Basseterre|Saint George Gingerland|Saint James Windward|Saint John Capisterre|Saint John Figtree|Saint Mary Cayon|Saint Paul Capisterre|Saint Paul Charlestown|Saint Peter Basseterre|Saint Thomas Lowland|Saint Thomas Middle Island|Trinity Palmetto Point",Rz[194]="Anse-la-Raye|Castries|Choiseul|Dauphin|Dennery|Gros Islet|Laborie|Micoud|Praslin|Soufriere|Vieux Fort",Rz[195]="Miquelon|Saint Pierre",Rz[196]="Charlotte|Grenadines|Saint Andrew|Saint David|Saint George|Saint Patrick",Rz[197]="A'ana|Aiga-i-le-Tai|Atua|Fa'asaleleaga|Gaga'emauga|Gagaifomauga|Palauli|Satupa'itea|Tuamasaga|Va'a-o-Fonoti|Vaisigano",Rz[198]="Acquaviva|Borgo Maggiore|Chiesanuova|Domagnano|Faetano|Fiorentino|Monte Giardino|San Marino|Serravalle",Rz[199]="Principe|Sao Tome",Rz[200]="'Asir|Al Bahah|Al Hudud ash Shamaliyah|Al Jawf|Al Madinah|Al Qasim|Ar Riyad|Ash Sharqiyah (Eastern Province)|Ha'il|Jizan|Makkah|Najran|Tabuk",Rz[201]="Aberdeen City|Aberdeenshire|Angus|Argyll and Bute|City of Edinburgh|Clackmannanshire|Dumfries and Galloway|Dundee City|East Ayrshire|East Dunbartonshire|East Lothian|East Renfrewshire|Eilean Siar (Western Isles)|Falkirk|Fife|Glasgow City|Highland|Inverclyde|Midlothian|Moray|North Ayrshire|North Lanarkshire|Orkney Islands|Perth and Kinross|Renfrewshire|Shetland Islands|South Ayrshire|South Lanarkshire|Stirling|The Scottish Borders|West Dunbartonshire|West Lothian",Rz[202]="Dakar|Diourbel|Fatick|Kaolack|Kolda|Louga|Saint-Louis|Tambacounda|Thies|Ziguinchor",Rz[203]="Anse aux Pins|Anse Boileau|Anse Etoile|Anse Louis|Anse Royale|Baie Lazare|Baie Sainte Anne|Beau Vallon|Bel Air|Bel Ombre|Cascade|Glacis|Grand' Anse (on Mahe)|Grand' Anse (on Praslin)|La Digue|La Riviere Anglaise|Mont Buxton|Mont Fleuri|Plaisance|Pointe La Rue|Port Glaud|Saint Louis|Takamaka",Rz[204]="Eastern|Northern|Southern|Western",Rz[205]="Singapore",Rz[206]="Banskobystricky|Bratislavsky|Kosicky|Nitriansky|Presovsky|Trenciansky|Trnavsky|Zilinsky",Rz[207]="Ajdovscina|Beltinci|Bled|Bohinj|Borovnica|Bovec|Brda|Brezice|Brezovica|Cankova-Tisina|Celje|Cerklje na Gorenjskem|Cerknica|Cerkno|Crensovci|Crna na Koroskem|Crnomelj|Destrnik-Trnovska Vas|Divaca|Dobrepolje|Dobrova-Horjul-Polhov Gradec|Dol pri Ljubljani|Domzale|Dornava|Dravograd|Duplek|Gorenja Vas-Poljane|Gorisnica|Gornja Radgona|Gornji Grad|Gornji Petrovci|Grosuplje|Hodos Salovci|Hrastnik|Hrpelje-Kozina|Idrija|Ig|Ilirska Bistrica|Ivancna Gorica|Izola|Jesenice|Jursinci|Kamnik|Kanal|Kidricevo|Kobarid|Kobilje|Kocevje|Komen|Koper|Kozje|Kranj|Kranjska Gora|Krsko|Kungota|Kuzma|Lasko|Lenart|Lendava|Litija|Ljubljana|Ljubno|Ljutomer|Logatec|Loska Dolina|Loski Potok|Luce|Lukovica|Majsperk|Maribor|Medvode|Menges|Metlika|Mezica|Miren-Kostanjevica|Mislinja|Moravce|Moravske Toplice|Mozirje|Murska Sobota|Muta|Naklo|Nazarje|Nova Gorica|Novo Mesto|Odranci|Ormoz|Osilnica|Pesnica|Piran|Pivka|Podcetrtek|Podvelka-Ribnica|Postojna|Preddvor|Ptuj|Puconci|Race-Fram|Radece|Radenci|Radlje ob Dravi|Radovljica|Ravne-Prevalje|Ribnica|Rogasevci|Rogaska Slatina|Rogatec|Ruse|Semic|Sencur|Sentilj|Sentjernej|Sentjur pri Celju|Sevnica|Sezana|Skocjan|Skofja Loka|Skofljica|Slovenj Gradec|Slovenska Bistrica|Slovenske Konjice|Smarje pri Jelsah|Smartno ob Paki|Sostanj|Starse|Store|Sveti Jurij|Tolmin|Trbovlje|Trebnje|Trzic|Turnisce|Velenje|Velike Lasce|Videm|Vipava|Vitanje|Vodice|Vojnik|Vrhnika|Vuzenica|Zagorje ob Savi|Zalec|Zavrc|Zelezniki|Ziri|Zrece",Rz[208]="Bellona|Central|Choiseul (Lauru)|Guadalcanal|Honiara|Isabel|Makira|Malaita|Rennell|Temotu|Western",Rz[209]="Awdal|Bakool|Banaadir|Bari|Bay|Galguduud|Gedo|Hiiraan|Jubbada Dhexe|Jubbada Hoose|Mudug|Nugaal|Sanaag|Shabeellaha Dhexe|Shabeellaha Hoose|Sool|Togdheer|Woqooyi Galbeed",Rz[210]="Eastern Cape|Free State|Gauteng|KwaZulu-Natal|Mpumalanga|North-West|Northern Cape|Northern Province|Western Cape",Rz[211]="Bird Island|Bristol Island|Clerke Rocks|Montagu Island|Saunders Island|South Georgia|Southern Thule|Traversay Islands",Rz[212]="Andalucia|Aragon|Asturias|Baleares (Balearic Islands)|Canarias (Canary Islands)|Cantabria|Castilla y Leon|Castilla-La Mancha|Cataluna|Ceuta|Communidad Valencian|Extremadura|Galicia|Islas Chafarinas|La Rioja|Madrid|Melilla|Murcia|Navarra|Pais Vasco (Basque Country)|Penon de Alhucemas|Penon de Velez de la Gomera",Rz[213]="Spratly Islands",Rz[214]="Central|Eastern|North Central|North Eastern|North Western|Northern|Sabaragamuwa|Southern|Uva|Western",Rz[215]="A'ali an Nil|Al Bahr al Ahmar|Al Buhayrat|Al Jazirah|Al Khartum|Al Qadarif|Al Wahdah|An Nil al Abyad|An Nil al Azraq|Ash Shamaliyah|Bahr al Jabal|Gharb al Istiwa'iyah|Gharb Bahr al Ghazal|Gharb Darfur|Gharb Kurdufan|Janub Darfur|Janub Kurdufan|Junqali|Kassala|Nahr an Nil|Shamal Bahr al Ghazal|Shamal Darfur|Shamal Kurdufan|Sharq al Istiwa'iyah|Sinnar|Warab",Rz[216]="Brokopondo|Commewijne|Coronie|Marowijne|Nickerie|Para|Paramaribo|Saramacca|Sipaliwini|Wanica",Rz[217]="Barentsoya|Bjornoya|Edgeoya|Hopen|Kvitoya|Nordaustandet|Prins Karls Forland|Spitsbergen",Rz[218]="Hhohho|Lubombo|Manzini|Shiselweni",Rz[219]="Blekinge|Dalarnas|Gavleborgs|Gotlands|Hallands|Jamtlands|Jonkopings|Kalmar|Kronobergs|Norrbottens|Orebro|Ostergotlands|Skane|Sodermanlands|Stockholms|Uppsala|Varmlands|Vasterbottens|Vasternorrlands|Vastmanlands|Vastra Gotalands",Rz[220]="Aargau|Ausser-Rhoden|Basel-Landschaft|Basel-Stadt|Bern|Fribourg|Geneve|Glarus|Graubunden|Inner-Rhoden|Jura|Luzern|Neuchatel|Nidwalden|Obwalden|Sankt Gallen|Schaffhausen|Schwyz|Solothurn|Thurgau|Ticino|Uri|Valais|Vaud|Zug|Zurich",Rz[221]="Al Hasakah|Al Ladhiqiyah|Al Qunaytirah|Ar Raqqah|As Suwayda'|Dar'a|Dayr az Zawr|Dimashq|Halab|Hamah|Hims|Idlib|Rif Dimashq|Tartus",Rz[222]="Chang-hua|Chi-lung|Chia-i|Chia-i|Chung-hsing-hsin-ts'un|Hsin-chu|Hsin-chu|Hua-lien|I-lan|K
5066ao-hsiung|Kao-hsiung|Miao-li|Nan-t'ou|P'eng-hu|P'ing-tung|T'ai-chung|T'ai-chung|T'ai-nan|T'ai-nan|T'ai-pei|T'ai-pei|T'ai-tung|T'ao-yuan|Yun-lin",Rz[223]="Viloyati Khatlon|Viloyati Leninobod|Viloyati Mukhtori Kuhistoni Badakhshon",Rz[224]="Arusha|Dar es Salaam|Dodoma|Iringa|Kagera|Kigoma|Kilimanjaro|Lindi|Mara|Mbeya|Morogoro|Mtwara|Mwanza|Pemba North|Pemba South|Pwani|Rukwa|Ruvuma|Shinyanga|Singida|Tabora|Tanga|Zanzibar Central/South|Zanzibar North|Zanzibar Urban/West",Rz[225]="Amnat Charoen|Ang Thong|Buriram|Chachoengsao|Chai Nat|Chaiyaphum|Chanthaburi|Chiang Mai|Chiang Rai|Chon Buri|Chumphon|Kalasin|Kamphaeng Phet|Kanchanaburi|Khon Kaen|Krabi|Krung Thep Mahanakhon (Bangkok)|Lampang|Lamphun|Loei|Lop Buri|Mae Hong Son|Maha Sarakham|Mukdahan|Nakhon Nayok|Nakhon Pathom|Nakhon Phanom|Nakhon Ratchasima|Nakhon Sawan|Nakhon Si Thammarat|Nan|Narathiwat|Nong Bua Lamphu|Nong Khai|Nonthaburi|Pathum Thani|Pattani|Phangnga|Phatthalung|Phayao|Phetchabun|Phetchaburi|Phichit|Phitsanulok|Phra Nakhon Si Ayutthaya|Phrae|Phuket|Prachin Buri|Prachuap Khiri Khan|Ranong|Ratchaburi|Rayong|Roi Et|Sa Kaeo|Sakon Nakhon|Samut Prakan|Samut Sakhon|Samut Songkhram|Sara Buri|Satun|Sing Buri|Sisaket|Songkhla|Sukhothai|Suphan Buri|Surat Thani|Surin|Tak|Trang|Trat|Ubon Ratchathani|Udon Thani|Uthai Thani|Uttaradit|Yala|Yasothon",Rz[226]="Tobago",Rz[227]="De La Kara|Des Plateaux|Des Savanes|Du Centre|Maritime",Rz[228]="Atafu|Fakaofo|Nukunonu",Rz[229]="Ha'apai|Tongatapu|Vava'u",Rz[230]="Arima|Caroni|Mayaro|Nariva|Port-of-Spain|Saint Andrew|Saint David|Saint George|Saint Patrick|San Fernando|Victoria",Rz[231]="Ariana|Beja|Ben Arous|Bizerte|El Kef|Gabes|Gafsa|Jendouba|Kairouan|Kasserine|Kebili|Mahdia|Medenine|Monastir|Nabeul|Sfax|Sidi Bou Zid|Siliana|Sousse|Tataouine|Tozeur|Tunis|Zaghouan",Rz[232]="Adana|Adiyaman|Afyon|Agri|Aksaray|Amasya|Ankara|Antalya|Ardahan|Artvin|Aydin|Balikesir|Bartin|Batman|Bayburt|Bilecik|Bingol|Bitlis|Bolu|Burdur|Bursa|Canakkale|Cankiri|Corum|Denizli|Diyarbakir|Duzce|Edirne|Elazig|Erzincan|Erzurum|Eskisehir|Gaziantep|Giresun|Gumushane|Hakkari|Hatay|Icel|Igdir|Isparta|Istanbul|Izmir|Kahramanmaras|Karabuk|Karaman|K
5066ars|Kastamonu|Kayseri|Kilis|Kirikkale|Kirklareli|Kirsehir|Kocaeli|Konya|Kutahya|Malatya|Manisa|Mardin|Mugla|Mus|Nevsehir|Nigde|Ordu|Osmaniye|Rize|Sakarya|Samsun|Sanliurfa|Siirt|Sinop|Sirnak|Sivas|Tekirdag|Tokat|Trabzon|Tunceli|Usak|Van|Yalova|Yozgat|Zonguldak",Rz[233]="Ahal Welayaty|Balkan Welayaty|Dashhowuz Welayaty|Lebap Welayaty|Mary Welayaty",Rz[234]="Tuvalu",Rz[235]="Adjumani|Apac|Arua|Bugiri|Bundibugyo|Bushenyi|Busia|Gulu|Hoima|Iganga|Jinja|Kabale|Kabarole|Kalangala|Kampala|Kamuli|Kapchorwa|Kasese|Katakwi|Kibale|Kiboga|Kisoro|Kitgum|Kotido|Kumi|Lira|Luwero|Masaka|Masindi|Mbale|Mbarara|Moroto|Moyo|Mpigi|Mubende|Mukono|Nakasongola|Nebbi|Ntungamo|Pallisa|Rakai|Rukungiri|Sembabule|Soroti|Tororo",Rz[236]="Avtonomna Respublika Krym (Simferopol')|Cherkas'ka (Cherkasy)|Chernihivs'ka (Chernihiv)|Chernivets'ka (Chernivtsi)|Dnipropetrovs'ka (Dnipropetrovs'k)|Donets'ka (Donets'k)|Ivano-Frankivs'ka (Ivano-Frankivs'k)|Kharkivs'ka (Kharkiv)|Khersons'ka (Kherson)|Khmel'nyts'ka (Khmel'nyts'kyy)|Kirovohrads'ka (Kirovohrad)|Kyyiv|Kyyivs'ka (Kiev)|L'vivs'ka (L'viv)|Luhans'ka (Luhans'k)|Mykolayivs'ka (Mykolayiv)|Odes'ka (Odesa)|Poltavs'ka (Poltava)|Rivnens'ka (Rivne)|Sevastopol'|Sums'ka (Sumy)|Ternopil's'ka (Ternopil')|Vinnyts'ka (Vinnytsya)|Volyns'ka (Luts'k)|Zakarpats'ka (Uzhhorod)|Zaporiz'ka (Zaporizhzhya)|Zhytomyrs'ka (Zhytomyr)",Rz[237]="'Ajman|Abu Zaby (Abu Dhabi)|Al Fujayrah|Ash Shariqah (Sharjah)|Dubayy (Dubai)|Ra's al Khaymah|Umm al Qaywayn",Rz[238]="Barking and Dagenham|Barnet|Barnsley|Bath and North East Somerset|Bedfordshire|Bexley|Birmingham|Blackburn with Darwen|Blackpool|Bolton|Bournemouth|Bracknell Forest|Bradford|Brent|Brighton and Hove|Bromley|Buckinghamshire|Bury|Calderdale|Cambridgeshire|Camden|Cheshire|City of Bristol|City of Kingston upon Hull|City of London|Cornwall|Coventry|Croydon|Cumbria|Darlington|Derby|Derbyshire|Devon|Doncaster|Dorset|Dudley|Durham|Ealing|East Riding of Yorkshire|East Sussex|Enfield|Essex|Gateshead|Gloucestershire|Greenwich|Hackney|Halton|Hammersmith and Fulham|Hampshire|Haringey|Harrow|Hartlepool|Havering|Herefordshire|Hertfordshire|Hillingdon|Hounslow|Isle of Wight|Islington|Kensington and Chelsea|Kent|Kingston upon Thames|Kirklees|Knowsley|Lambeth|Lancashire|Leeds|Leicester|Leicestershire|Lewisham|Lincolnshire|Liverpool|Luton|Manchester|Medway|Merton|Middlesbrough|Milton Keynes|Newcastle upon Tyne|Newham|Norfolk|North East Lincolnshire|North Lincolnshire|North Somerset|North Tyneside|North Yorkshire|Northamptonshire|Northumberland|Nottingham|Nottinghamshire|Oldham|Oxfordshire|Peterborough|Plymouth|Poole|Portsmouth|Reading|Redbridge|Redcar and Cleveland|Richmond upon Thames|Rochdale|Rotherham|Rutland|Salford|Sandwell|Sefton|Sheffield|Shropshire|Slough|Solihull|Somerset|South Gloucestershire|South Tyneside|Southampton|Southend-on-Sea|Southwark|St. Helens|Staffordshire|Stockport|Stockton-on-Tees|Stoke-on-Trent|Suffolk|Sunderland|Surrey|Sutton|Swindon|Tameside|Telford and Wrekin|Thurrock|Torbay|Tower Hamlets|Trafford|Wakefield|Walsall|Waltham Forest|Wandsworth|Warrington|Warwickshire|West Berkshire|West Sussex|Westminster|Wigan|Wiltshire|Windsor and Maidenhead|Wirral|Wokingham|Wolverhampton|Worcestershire|York",Rz[239]="Artigas|Canelones|Cerro Largo|Colonia|Durazno|Flores|Florida|Lavalleja|Maldonado|Montevideo|Paysandu|Rio Negro|Rivera|Rocha|Salto|San Jose|Soriano|Tacuarembo|Treinta y Tres",Rz[240]="Andijon Wiloyati|Bukhoro Wiloyati|Farghona Wiloyati|Jizzakh Wiloyati|Khorazm Wiloyati (Urganch)|Namangan Wiloyati|Nawoiy Wiloyati|Qashqadaryo Wiloyati (Qarshi)|Qoraqalpoghiston (Nukus)|Samarqand Wiloyati|Sirdaryo Wiloyati (Guliston)|Surkhondaryo Wiloyati (Termiz)|Toshkent Shahri|Toshkent Wiloyati",Rz[241]="Malampa|Penama|Sanma|Shefa|Tafea|Torba",Rz[242]="Amazonas|Anzoategui|Apure|Aragua|Barinas|Bolivar|Carabobo|Cojedes|Delta Amacuro|Dependencias Federales|Distrito Federal|Falcon|Guarico|Lara|Merida|Miranda|Monagas|Nueva Esparta|Portuguesa|Sucre|Tachira|Trujillo|Vargas|Yaracuy|Zulia",Rz[243]="An Giang|Ba Ria-Vung Tau|Bac Giang|Bac Kan|Bac Lieu|Bac Ninh|Ben Tre|Binh Dinh|Binh Duong|Binh Phuoc|Binh Thuan|Ca Mau|Can Tho|Cao Bang|Da Nang|Dac Lak|Dong Nai|Dong Thap|Gia Lai|Ha Giang|Ha Nam|Ha Noi|Ha Tay|Ha Tinh|Hai Duong|Hai Phong|Ho Chi Minh|Hoa Binh|Hung Yen|Khanh Hoa|Kien Giang|Kon Tum|Lai Chau|Lam Dong|Lang Son|Lao Cai|Long An|Nam Dinh|Nghe An|Ninh Binh|Ninh Thuan|Phu Tho|Phu Yen|Quang Binh|Quang Nam|Quang Ngai|Quang Ninh|Quang Tri|Soc Trang|Son La|Tay Ninh|Thai Binh|Thai Nguyen|Thanh Hoa|Thua Thien-Hue|Tien Giang|Tra Vinh|Tuyen Quang|Vinh Long|Vinh Phuc|Yen Bai",Rz[244]="Saint Croix|Saint John|Saint Thomas",Rz[245]="Blaenau Gwent|Bridgend|Caerphilly|Cardiff|Carmarthenshire|Ceredigion|Conwy|Denbighshire|Flintshire|Gwynedd|Isle of Anglesey|Merthyr Tydfil|Monmouthshire|Neath Port Talbot|Newport|Pembrokeshire|Powys|Rhondda Cynon Taff|Swansea|The Vale of Glamorgan|Torfaen|Wrexham",Rz[246]="Alo|Sigave|Wallis",Rz[247]="West Bank",Rz[248]="Western Sahara",Rz[249]="'Adan|'Ataq|Abyan|Al Bayda'|Al Hudaydah|Al Jawf|Al Mahrah|Al Mahwit|Dhamar|Hadhramawt|Hajjah|Ibb|Lahij|Ma'rib|Sa'dah|San'a'|Ta'izz",Rz[250]="Kosovo|Montenegro|Serbia|Vojvodina",Rz[251]="Central|Copperbelt|Eastern|Luapula|Lusaka|North-Western|Northern|Southern|Western",Rz[252]="Bulawayo|Harare|ManicalandMashonaland Central|Mashonaland East|Mashonaland West|Masvingo|Matabeleland North|Matabeleland South|Midlands";const Dz={key:0,class:"avatarWrapper"},Lz=["src"],Bz={key:0,src:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/common%2Fchampion-icon.png?alt=media&token=8a66c05b-ec06-4dd1-a41a-e62c28560bf4",class:"icon-champion",alt:""},Fz={key:1,src:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/common%2Fpro-logo.png?alt=media&token=9026d620-0a32-440d-a597-faabab94130c",class:"icon-pro",alt:""},Vz={key:1,style:{padding:"0 4px",position:"relative","font-size":"12px"},class:"overflow-hidden"},Xz={class:"d-flex flex-column overflow-hidden"},jz={key:0,class:"player d-flex align-center"},Uz={key:1},Hz={key:0,class:"leagueName"},zz={class:"label-venue overflow-hidden"},Kz={key:2,class:"d-flex align-center justify-space-between w-100 h-100"},Wz={__name:"tableParticipant",props:{participant:{type:Object,default:()=>{}},leagueType:{type:String,default:"standard-league"},isLeagueList:{type:Boolean,default:!1},rules:String},emits:["openLink","openTeamProfile"],setup(e,{emit:t}){vL();const{smAndUp:n,mobile:a}=LV(),i=UG(),r=t,o=e,s=Zo(()=>"duals-league"===o.leagueType),l=Zo(()=>"since_2024"===i.selectedEvent.gamePlayRules),u=Zo(()=>"since_2025"===i.selectedEvent.gamePlayRules),c=Zo(()=>"wktl"===o.rules);return(t,i)=>{var o,d,h,p;const f=ki("v-avatar"),m=ki("v-icon"),v=ki("v-tooltip"),g=ki("v-list-item"),y=ki("v-list"),b=ki("v-menu");return oo(),ho(eo,null,[s.value||e.isLeagueList||!ln(n)?So("",!0):(oo(),ho("div",Dz,[bo(f,{size:"32"},{default:ea(()=>[void 0!==e.participant.pic?(oo(),ho("img",{key:0,src:e.participant.pic,
5066class:ne({notOfficial:e.participant.ignore,first:"first"==e.participant.worldchampion,second:"second"==e.participant.worldchampion,third:"third"==e.participant.worldchampion}),alt:""},null,10,Lz)):So("",!0)]),_:1}),e.participant.champion?(oo(),ho("img",Bz)):So("",!0),e.participant.pro?(oo(),ho("img",Fz)):So("",!0)])),s.value?So("",!0):(oo(),ho("div",Vz,[yo("div",Xz,[yo("div",null,[e.participant.leagues&&e.participant.leagues.length||e.participant.player&&e.participant.player.length?(oo(),ho(eo,{key:0},[e.participant.leagues?(oo(),ho("div",jz,[bo(m,{class:"mr-2"},{default:ea(()=>[...i[4]||(i[4]=[ko("mdi-format-list-bulleted",-1)])]),_:1}),e.participant.game?(oo(),po(m,{key:0,onClick:i[0]||(i[0]=t=>r("openLink",e.participant.game))},{default:ea(()=>[...i[5]||(i[5]=[ko("mdi-clipboard-text",-1)])]),_:1})):So("",!0),yo("span",{class:ne([{proPlayer:"professional"===e.participant.division&&("since_2025"===e.participant.gamePlayRules||u.value)||e.participant.advanced&&("since_2024"===e.participant.gamePlayRules||l.value||"Season6"===e.participant.season),advancedPlayer:"amateur"===e.participant.division&&("since_2025"===e.participant.gamePlayRules||u.value),proPlayerWktl:"professional"===(null==(o=e.participant)?void 0:o.wktlDivision)&&c.value,recPlayerWktl:"recreational"===(null==(d=e.participant)?void 0:d.wktlDivision)&&c.value},"playerName"])},Te(e.participant.name),3)])):(oo(!0),ho(eo,{key:1},Ii(e.participant.player,(t,n)=>{var a,i;return oo(),ho("div",{class:ne({proPlayer:"professional"===e.participant.division&&("since_2025"===e.participant.gamePlayRules||u.value)||e.participant.advanced&&("since_2024"===e.participant.gamePlayRules||l.value||"Season6"===e.participant.season),advancedPlayer:"amateur"===e.participant.division&&("since_2025"===e.participant.gamePlayRules||u.value),proPlayerWktl:"professional"===(null==(a=e.participant)?void 0:a.wktlDivision)&&c.value,recPlayerWktl:"recreational"===(null==(i=e.participant)?void 0:i.wktlDivision)&&c.value}),key:n},Te(t.first)+" "+Te(t.last),3)}),128)),bo(v,{activator:"parent",location:"bottom"},{default:ea(()=>[i[6]||(i[6]=yo("div",null,"Other official leagues:",-1)),(oo(!0),ho(eo,null,Ii(e.participant.leagues,(e,t)=>(oo(),ho("div",{key:t},Te(e.score)+" pts. - "+Te(e.venueName)+" ("+Te(e.leagueSlug.replaceAll("_"," "))+") ",1))),128))]),_:1})],64)):(oo(),ho("div",Uz,[e.participant.leagues?(oo(),po(m,{key:0},{default:ea(()=>[...i[7]||(i[7]=[ko("mdi-format-list-bulleted",-1)])]),_:1})):So("",!0),e.participant.game?(oo(),po(m,{key:1,onClick:i[1]||(i[1]=t=>r("openLink",e.participant.game))},{default:ea(()=>[...i[8]||(i[8]=[ko("mdi-clipboard-text",-1)])]),_:1})):So("",!0),bo(v,null,{activator:ea(({props:t})=>{var n,a;return[yo("div",Io({class:"leagueName"},t,{class:{proPlayer:"professional"===e.participant.division&&("since_2025"===e.participant.gamePlayRules||u.value)||e.participant.advanced&&("since_2024"===e.participant.gamePlayRules||l.value||"Season6"===e.participant.season),advancedPlayer:"amateur"===e.participant.division&&("since_2025"===e.participant.gamePlayRules||u.value),proPlayerWktl:"professional"===(null==(n=e.participant)?void 0:n.wktlDivision)&&c.value,recPlayerWktl:"recreational"===(null==(a=e.participant)?void 0:a.wktlDivision)&&c.value}}),Te(e.participant.name),17)]}),default:ea(()=>[e.participant.alias&&"3random"!==e.participant.alias?(oo(),ho("div",Hz,Te(e.participant.name),1)):So("",!0)]),_:1})]))]),yo("div",zz,[bo(v,{location:"bottom"},{activator:ea(({props:t})=>[yo("span",ae(_o(t)),Te(e.participant.venueName),17)]),default:ea(()=>{var t;return[yo("span",null,Te(e.participant.venueName+" ("+(null==(t=e.participant.leagueSlug)?void 0:t.replaceAll("_"," "))+")"),1)]}),_:1})])])])),s.value?(oo(),ho("div",Kz,[ln(a)?(oo(),ho("div",{key:1,class:ne(["d-flex align-center mr-2 w-100 h-100",{proPlayer:"professional"===e.participant.division&&("since_2025"===e.participant.gamePlayRules||u.value)||e.participant.advanced&&("since_2024"===e.participant.gamePlayRules||l.value),advancedPlayer:"amateur"===e.participant.division&&("since_2025"===e.participant.gamePlayRules||u.value),proPlayerWktl:"professional"===(null==(h=e.participant)?void 0:h.wktlDivision)&&c.value,recPlayerWktl:"recreational"===(null==(p=e.participant)?void 0:p.wktlDivision)&&c.value}]),onClick:i[3]||(i[3]=t=>r("openTeamProfile",e.participant.code))},Te(e.participant.name),3)):(oo(),po(b,{key:0,"open-on-hover":"",location:"end center"},{activator:ea(({props:t})=>[yo("div",Io({class:"d-flex align-center mr-2 w-100 h-100 pointer",onClick:i[2]||(i[2]=t=>r("openTeamProfile",e.participant.code))},t),Te(e.participant.name),17)]),default:ea(()=>[bo(y,null,{default:ea(()=>[(oo(!0),ho(eo,null,Ii(e.participant.player||e.participant.players,(e,t)=>(oo(),po(g,{"prepend-avatar":e.pic,title:"".concat(e.first," ").concat(e.last),key:t}
5066,null,8,["prepend-avatar","title"]))),128))]),_:1})]),_:1}))])):So("",!0)],64)}}},Gz=PX(Wz,[["__scopeId","data-v-1a69fcf2"]]);var qz,$z={exports:{}};
5067/**
5068 * @license
5069 * Lodash <https://lodash.com/>
5070 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
5071 * Released under MIT license <https://lodash.com/license>
5072 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
5073 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
5074 */var Yz,Jz,Qz=(qz||(qz=1,Yz=$z,Jz=$z.exports,function(){var e,t="Expected a function",n="__lodash_hash_undefined__",a="__lodash_placeholder__",i=32,r=128,o=256,s=1/0,l=9007199254740991,u=NaN,c=4294967295,d=[["ary",r],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",i],["partialRight",64],["rearg",o]],h="[object Arguments]",p="[object Array]",f="[object Boolean]",m="[object Date]",v="[object Error]",g="[object Function]",y="[object GeneratorFunction]",b="[object Map]",_="[object Number]",w="[object Object]",k="[object Promise]",C="[object RegExp]",S="[object Set]",T="[object String]",A="[object Symbol]",E="[object WeakMap]",I="[object ArrayBuffer]",x="[object DataView]",N="[object Float32Array]",P="[object Float64Array]",M="[object Int8Array]",O="[object Int16Array]",R="[object Int32Array]",D="[object Uint8Array]",L="[object Uint8ClampedArray]",B="[object Uint16Array]",F="[object Uint32Array]",V=/\b__p \+= '';/g,X=/\b(__p \+=) '' \+/g,j=/(__e\(.*?\)|\b__t\)) \+\n'';/g,U=/&(?:amp|lt|gt|quot|#39);/g,H=/[&<>"']/g,z=RegExp(U.source),K=RegExp(H.source),W=/<%-([\s\S]+?)%>/g,G=/<%([\s\S]+?)%>/g,q=/<%=([\s\S]+?)%>/g,$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Y=/^\w*$/,J=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Q=/[\\^$.*+?()[\]{}|]/g,Z=RegExp(Q.source),ee=/^\s+/,te=/\s/,ne=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,ie=/,? & /,re=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,oe=/[()=,{}\[\]\/\s]/,se=/\\(\\)?/g,le=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ue=/\w*$/,ce=/^[-+]0x[0-9a-f]+$/i,de=/^0b[01]+$/i,he=/^\[object .+?Constructor\]$/,pe=/^0o[0-7]+$/i,fe=/^(?:0|[1-9]\d*)$/,me=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 5,838 bytes, line 5074
50747f]/g,ve=/($^)/,ge=/['\n\r\u2028\u2029\\]/g,ye="\\ud800-\\udfff",be="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",_e="\\u2700-\\u27bf",we="a-z\\xdf-\\xf6\\xf8-\\xff",ke="A-Z\\xc0-\\xd6\\xd8-\\xde",Ce="\\ufe0e\\ufe0f",Se="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Te="['’]",Ae="["+ye+"]",Ee="["+Se+"]",Ie="["+be+"]",xe="\\d+",Ne="["+_e+"]",Pe="["+we+"]",Me="[^"+ye+Se+xe+_e+we+ke+"]",Oe="\\ud83c[\\udffb-\\udfff]",Re="[^"+ye+"]",De="(?:\\ud83c[\\udde6-\\uddff]){2}",Le="[\\ud800-\\udbff][\\udc00-\\udfff]",Be="["+ke+"]",Fe="\\u200d",Ve="(?:"+Pe+"|"+Me+")",Xe="(?:"+Be+"|"+Me+")",je="(?:['’](?:d|ll|m|re|s|t|ve))?",Ue="(?:['’](?:D|LL|M|RE|S|T|VE))?",He="(?:"+Ie+"|"+Oe+")?",ze="["+Ce+"]?",Ke=ze+He+"(?:"+Fe+"(?:"+[Re,De,Le].join("|")+")"+ze+He+")*",We="(?:"+[Ne,De,Le].join("|")+")"+Ke,Ge="(?:"+[Re+Ie+"?",Ie,De,Le,Ae].join("|")+")",qe=RegExp(Te,"g"),$e=RegExp(Ie,"g"),Ye=RegExp(Oe+"(?="+Oe+")|"+Ge+Ke,"g"),Je=RegExp([Be+"?"+Pe+"+"+je+"(?="+[Ee,Be,"$"].join("|")+")",Xe+"+"+Ue+"(?="+[Ee,Be+Ve,"$"].join("|")+")",Be+"?"+Ve+"+"+je,Be+"+"+Ue,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xe,We].join("|"),"g"),Qe=RegExp("["+Fe+ye+be+Ce+"]"),Ze=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,et=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],tt=-1,nt={};nt[N]=nt[P]=nt[M]=nt[O]=nt[R]=nt[D]=nt[L]=nt[B]=nt[F]=!0,nt[h]=nt[p]=nt[I]=nt[f]=nt[x]=nt[m]=nt[v]=nt[g]=nt[b]=nt[_]=nt[w]=nt[C]=nt[S]=nt[T]=nt[E]=!1;var at={};at[h]=at[p]=at[I]=at[x]=at[f]=at[m]=at[N]=at[P]=at[M]=at[O]=at[R]=at[b]=at[_]=at[w]=at[C]=at[S]=at[T]=at[A]=at[D]=at[L]=at[B]=at[F]=!0,at[v]=at[g]=at[E]=!1;var it={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},rt=parseFloat,ot=parseInt,st="object"==typeof AR&&AR&&AR.Object===Object&&AR,lt="object"==typeof self&&self&&self.Object===Object&&self,ut=st||lt||Function("return this")(),ct=Jz&&!Jz.nodeType&&Jz,dt=ct&&Yz&&!Yz.nodeType&&Yz,ht=dt&&dt.exports===ct,pt=ht&&st.process,ft=function(){try{var e=dt&&dt.require&&dt.require("util").types;return e||pt&&pt.binding&&pt.binding("util")}catch(w7){}}(),mt=ft&&ft.isArrayBuffer,vt=ft&&ft.isDate,gt=ft&&ft.isMap,yt=ft&&ft.isRegExp,bt=ft&&ft.isSet,_t=ft&&ft.isTypedArray;function wt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function kt(e,t,n,a){for(var i=-1,r=null==e?0:e.length;++i<r;){var o=e[i];t(a,o,n(o),e)}return a}function Ct(e,t){for(var n=-1,a=null==e?0:e.length;++n<a&&!1!==t(e[n],n,e););return e}function St(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Tt(e,t){for(var n=-1,a=null==e?0:e.length;++n<a;)if(!t(e[n],n,e))return!1;return!0}function At(e,t){for(var n=-1,a=null==e?0:e.length,i=0,r=[];++n<a;){var o=e[n];t(o,n,e)&&(r[i++]=o)}return r}function Et(e,t){return!(null==e||!e.length)&&Bt(e,t,0)>-1}function It(e,t,n){for(var a=-1,i=null==e?0:e.length;++a<i;)if(n(t,e[a]))return!0;return!1}function xt(e,t){for(var n=-1,a=null==e?0:e.length,i=Array(a);++n<a;)i[n]=t(e[n],n,e);return i}function Nt(e,t){for(var n=-1,a=t.length,i=e.length;++n<a;)e[i+n]=t[n];return e}function Pt(e,t,n,a){var i=-1,r=null==e?0:e.length;for(a&&r&&(n=e[++i]);++i<r;)n=t(n,e[i],i,e);return n}function Mt(e,t,n,a){var i=null==e?0:e.length;for(a&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Ot(e,t){for(var n=-1,a=null==e?0:e.length;++n<a;)if(t(e[n],n,e))return!0;return!1}var Rt=jt("length");function Dt(e,t,n){var a;return n(e,function(e,n,i){if(t(e,n,i))return a=n,!1}),a}function Lt(e,t,n,a){for(var i=e.length,r=n+(a?1:-1);a?r--:++r<i;)if(t(e[r],r,e))return r;return-1}function Bt(e,t,n){return t==t?function(e,t,n){for(var a=n-1,i=e.length;++a<i;)if(e[a]===t)return a;return-1}(e,t,n):Lt(e,Vt,n)}function Ft(e,t,n,a){for(var i=n-1,r=e.length;++i<r;)if(a(e[i],t))return i;return-1}function Vt(e){return e!=e}function Xt(e,t){var n=null==e?0:e.length;return n?zt(e,t)/n:u}function jt(t){return function(n){return null==n?e:n[t]}}function Ut(t){return function(n){return null==t?e:t[n]}}function Ht(e,t,n,a,i){return i(e,function(e,i,r){n=a?(a=!1,e):t(n,e,i,r)}),n}function zt(t,n){for(var a,i=-1,r=t.length;++i<r;){var o=n(t[i]);o!==e&&(a=a===e?o:a+o)}return a}function Kt(e,t){for(var n=-1,a=Array(e);++n<e;)a[n]=t(n);return a}function Wt(e){return e?e.slice(0,un(e)+1).replace(ee,""):e}function Gt(e){return function(t){return e(t)}}function qt(e,t){return xt(t,function(t){return e[t]})}function $t(e,t){return e.has(t)}function Yt(e,t){for(var n=-1,a=e.length;++n<a&&Bt(t,e[n],0)>-1;);return n}function Jt(e,t){for(var n=e.length;n--&&Bt(t,e[n],0)>-1;);return n}var Qt=Ut({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"
5074c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Zt=Ut({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function en(e){return"\\"+it[e]}function tn(e){return Qe.test(e)}function nn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,a){n[++t]=[a,e]}),n}function an(e,t){return function(n){return e(t(n))}}function rn(e,t){for(var n=-1,i=e.length,r=0,o=[];++n<i;){var s=e[n];s!==t&&s!==a||(e[n]=a,o[r++]=n)}return o}function on(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function sn(e){return tn(e)?function(e){for(var t=Ye.lastIndex=0;Ye.test(e);)++t;return t}(e):Rt(e)}function ln(e){return tn(e)?function(e){return e.match(Ye)||[]}(e):function(e){return e.split("")}(e)}function un(e){for(var t=e.length;t--&&te.test(e.charAt(t)););return t}var cn=Ut({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),dn=function te(ye){var be,_e=(ye=null==ye?ut:dn.defaults(ut.Object(),ye,dn.pick(ut,et))).Array,we=ye.Date,ke=ye.Error,Ce=ye.Function,Se=ye.Math,Te=ye.Object,Ae=ye.RegExp,Ee=ye.String,Ie=ye.TypeError,xe=_e.prototype,Ne=Ce.prototype,Pe=Te.prototype,Me=ye["__core-js_shared__"],Oe=Ne.toString,Re=Pe.hasOwnProperty,De=0,Le=(be=/[^.]+$/.exec(Me&&Me.keys&&Me.keys.IE_PROTO||""))?"Symbol(src)_1."+be:"",Be=Pe.toString,Fe=Oe.call(Te),Ve=ut._,Xe=Ae("^"+Oe.call(Re).replace(Q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),je=ht?ye.Buffer:e,Ue=ye.Symbol,He=ye.Uint8Array,ze=je?je.allocUnsafe:e,Ke=an(Te.getPrototypeOf,Te),We=Te.create,Ge=Pe.propertyIsEnumerable,Ye=xe.splice,Qe=Ue?Ue.isConcatSpreadable:e,it=Ue?Ue.iterator:e,st=Ue?Ue.toStringTag:e,lt=function(){try{var e=ur(Te,"defineProperty");return e({},"",{}),e}catch(w7){}}(),ct=ye.clearTimeout!==ut.clearTimeout&&ye.clearTimeout,dt=we&&we.now!==ut.Date.now&&we.now,pt=ye.setTimeout!==ut.setTimeout&&ye.setTimeout,ft=Se.ceil,Rt=Se.floor,Ut=Te.getOwnPropertySymbols,hn=je?je.isBuffer:e,pn=ye.isFinite,fn=xe.join,mn=an(Te.keys,Te),vn=Se.max,gn=Se.min,yn=we.now,bn=ye.parseInt,_n=Se.random,wn=xe.reverse,kn=ur(ye,"DataView"),Cn=ur(ye,"Map"),Sn=ur(ye,"Promise"),Tn=ur(ye,"Set"),An=ur(ye,"WeakMap"),En=ur(Te,"create"),In=An&&new An,xn={},Nn=Fr(kn),Pn=Fr(Cn),Mn=Fr(Sn),On=Fr(Tn),Rn=Fr(An),Dn=Ue?Ue.prototype:e,Ln=Dn?Dn.valueOf:e,Bn=Dn?Dn.toString:e;function Fn(e){if(ns(e)&&!Ko(e)&&!(e instanceof Un)){if(e instanceof jn)return e;if(Re.call(e,"__wrapped__"))return Vr(e)}return new jn(e)}var Vn=function(){function t(){}return function(n){if(!ts(n))return{};if(We)return We(n);t.prototype=n;var a=new t;return t.prototype=e,a}}();function Xn(){}function jn(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=e}function Un(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=c,this.__views__=[]}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}function zn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Kn;++t<n;)this.add(e[t])}function Gn(e){var t=this.__data__=new zn(e);this.size=t.size}function qn(e,t){var n=Ko(e),a=!n&&zo(e),i=!n&&!a&&$o(e),r=!n&&!a&&!i&&cs(e),o=n||a||i||r,s=o?Kt(e.length,Ee):[],l=s.length;for(var u in e)!t&&!Re.call(e,u)||o&&("length"==u||i&&("offset"==u||"parent"==u)||r&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||vr(u,l))||s.push(u);return s}function $n(t){var n=t.length;return n?t[Wa(0,n-1)]:e}function Yn(e,t){return Mr(Ei(e),ra(t,0,e.length))}function Jn(e){return Mr(Ei(e))}function Qn(t,n,a){(a!==e&&!jo(t[n],a)||a===e&&!(n in t))&&aa(t,n,a)}function Zn(t,n,a){var i=t[n];Re.call(t,n)&&jo(i,a)&&(a!==e||n in t)||aa(t,n,a)}function ea(e,t){for(var n=e.length;n--;)if(jo(e[n][0],t))return n;return-1}function ta(e,t,n,a){return ca(e,function(e,i,r){t(a,e,n(e),r)}),a}function na(e,t){return e&&Ii(t,Ms(t),e)}
vendor: 5,170 bytes, line 5074
5074function aa(e,t,n){"__proto__"==t&&lt?lt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ia(t,n){for(var a=-1,i=n.length,r=_e(i),o=null==t;++a<i;)r[a]=o?e:Es(t,n[a]);return r}function ra(t,n,a){return t==t&&(a!==e&&(t=t<=a?t:a),n!==e&&(t=t>=n?t:n)),t}function oa(t,n,a,i,r,o){var s,l=1&n,u=2&n,c=4&n;if(a&&(s=r?a(t,i,r,o):a(t)),s!==e)return s;if(!ts(t))return t;var d=Ko(t);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Re.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!l)return Ei(t,s)}else{var p=hr(t),v=p==g||p==y;if($o(t))return wi(t,l);if(p==w||p==h||v&&!r){if(s=u||v?{}:fr(t),!l)return u?function(e,t){return Ii(e,dr(e),t)}(t,function(e,t){return e&&Ii(t,Os(t),e)}(s,t)):function(e,t){return Ii(e,cr(e),t)}(t,na(s,t))}else{if(!at[p])return r?t:{};s=function(e,t,n){var a,i=e.constructor;switch(t){case I:return ki(e);case f:case m:return new i(+e);case x:return function(e,t){var n=t?ki(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case N:case P:case M:case O:case R:case D:case L:case B:case F:return Ci(e,n);case b:return new i;case _:case T:return new i(e);case C:return function(e){var t=new e.constructor(e.source,ue.exec(e));return t.lastIndex=e.lastIndex,t}(e);case S:return new i;case A:return a=e,Ln?Te(Ln.call(a)):{}}}(t,p,l)}}o||(o=new Gn);var k=o.get(t);if(k)return k;o.set(t,s),ss(t)?t.forEach(function(e){s.add(oa(e,n,a,e,t,o))}):as(t)&&t.forEach(function(e,i){s.set(i,oa(e,n,a,i,t,o))});var E=d?e:(c?u?nr:tr:u?Os:Ms)(t);return Ct(E||t,function(e,i){E&&(e=t[i=e]),Zn(s,i,oa(e,n,a,i,t,o))}),s}function sa(t,n,a){var i=a.length;if(null==t)return!i;for(t=Te(t);i--;){var r=a[i],o=n[r],s=t[r];if(s===e&&!(r in t)||!o(s))return!1}return!0}function la(n,a,i){if("function"!=typeof n)throw new Ie(t);return Ir(function(){n.apply(e,i)},a)}function ua(e,t,n,a){var i=-1,r=Et,o=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=xt(t,Gt(n))),a?(r=It,o=!1):t.length>=200&&(r=$t,o=!1,t=new Wn(t));e:for(;++i<s;){var c=e[i],d=null==n?c:n(c);if(c=a||0!==c?c:0,o&&d==d){for(var h=u;h--;)if(t[h]===d)continue e;l.push(c)}else r(t,d,a)||l.push(c)}return l}Fn.templateSettings={escape:W,evaluate:G,interpolate:q,variable:"",imports:{_:Fn}},Fn.prototype=Xn.prototype,Fn.prototype.constructor=Fn,jn.prototype=Vn(Xn.prototype),jn.prototype.constructor=jn,Un.prototype=Vn(Xn.prototype),Un.prototype.constructor=Un,Hn.prototype.clear=function(){this.__data__=En?En(null):{},this.size=0},Hn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Hn.prototype.get=function(t){var a=this.__data__;if(En){var i=a[t];return i===n?e:i}return Re.call(a,t)?a[t]:e},Hn.prototype.has=function(t){var n=this.__data__;return En?n[t]!==e:Re.call(n,t)},Hn.prototype.set=function(t,a){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=En&&a===e?n:a,this},zn.prototype.clear=function(){this.__data__=[],this.size=0},zn.prototype.delete=function(e){var t=this.__data__,n=ea(t,e);return!(n<0||(n==t.length-1?t.pop():Ye.call(t,n,1),--this.size,0))},zn.prototype.get=function(t){var n=this.__data__,a=ea(n,t);return a<0?e:n[a][1]},zn.prototype.has=function(e){return ea(this.__data__,e)>-1},zn.prototype.set=function(e,t){var n=this.__data__,a=ea(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this},Kn.prototype.clear=function(){this.size=0,this.__data__={hash:new Hn,map:new(Cn||zn),string:new Hn}},Kn.prototype.delete=function(e){var t=sr(this,e).delete(e);return this.size-=t?1:0,t},Kn.prototype.get=function(e){return sr(this,e).get(e)},Kn.prototype.has=function(e){return sr(this,e).has(e)},Kn.prototype.set=function(e,t){var n=sr(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this},Wn.prototype.add=Wn.prototype.push=function(e){return this.__data__.set(e,n),this},Wn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.clear=function(){this.__data__=new zn,this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Gn.prototype.get=function(e){return this.__data__.get(e)},Gn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof zn){var a=n.__data__;if(!Cn||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kn(a)}return n.set(e,t),this.size=n.size,this};var ca=Pi(ya),da=Pi(ba,!0);function ha(e,t){var n=!0;return ca(e,function(e,a,i){return n=!!t(e,a,i)}),n}function pa(t,n,a){for(var i=-1,r=t.length;++i<r;){var o=t[i],s=n(o);if(null!=s&&(l===e?s==s&&!us(s):a(s,l)))var l=s,u=o}return u}function fa(e,t){var n=[];return ca(e,function(e,a,i){t(e,a,i)&&n.push(e)}),n}function ma(e,t,n,a,i){var r=-1,o=e.length;for(n||(n=mr),i||(i=[]);++r<o;){var s=e[r];t>0&&n(s)?t>1?ma(s,t-1,n,a,i):Nt(i,s):a||(i[i.length]=s)}return i}var va=Mi(),ga=Mi(!0);function ya(e,t){return e&&va(e,t,Ms)}function ba(e,t){return e&&ga(e,t,Ms)}function _a(e,t){return At(t,function(t){return Qo(e[t])})}function wa(t,n){for(var a=0,i=(n=gi(n,t)).length;null!=t&&a<i;)t=t[Br(n[a++])];return a&&a==i?t:e}function ka(e,t,n){var a=t(e);return Ko(e)?a:Nt(a,n(e))}
vendor: 1,822 bytes, line 5074
5074function Ca(t){return null==t?t===e?"[object Undefined]":"[object Null]":st&&st in Te(t)?function(t){var n=Re.call(t,st),a=t[st];try{t[st]=e;var i=!0}catch(w7){}var r=Be.call(t);return i&&(n?t[st]=a:delete t[st]),r}(t):function(e){return Be.call(e)}(t)}function Sa(e,t){return e>t}function Ta(e,t){return null!=e&&Re.call(e,t)}function Aa(e,t){return null!=e&&t in Te(e)}function Ea(t,n,a){for(var i=a?It:Et,r=t[0].length,o=t.length,s=o,l=_e(o),u=1/0,c=[];s--;){var d=t[s];s&&n&&(d=xt(d,Gt(n))),u=gn(d.length,u),l[s]=!a&&(n||r>=120&&d.length>=120)?new Wn(s&&d):e}d=t[0];var h=-1,p=l[0];e:for(;++h<r&&c.length<u;){var f=d[h],m=n?n(f):f;if(f=a||0!==f?f:0,!(p?$t(p,m):i(c,m,a))){for(s=o;--s;){var v=l[s];if(!(v?$t(v,m):i(t[s],m,a)))continue e}p&&p.push(m),c.push(f)}}return c}function Ia(t,n,a){var i=null==(t=Tr(t,n=gi(n,t)))?t:t[Br(Yr(n))];return null==i?e:wt(i,t,a)}function xa(e){return ns(e)&&Ca(e)==h}function Na(t,n,a,i,r){return t===n||(null==t||null==n||!ns(t)&&!ns(n)?t!=t&&n!=n:function(t,n,a,i,r,o){var s=Ko(t),l=Ko(n),u=s?p:hr(t),c=l?p:hr(n),d=(u=u==h?w:u)==w,g=(c=c==h?w:c)==w,y=u==c;if(y&&$o(t)){if(!$o(n))return!1;s=!0,d=!1}if(y&&!d)return o||(o=new Gn),s||cs(t)?Zi(t,n,a,i,r,o):function(e,t,n,a,i,r,o){switch(n){case x:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case I:return!(e.byteLength!=t.byteLength||!r(new He(e),new He(t)));case f:case m:case _:return jo(+e,+t);case v:return e.name==t.name&&e.message==t.message;case C:case T:return e==t+"";case b:var s=nn;case S:var l=1&a;if(s||(s=on),e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;a|=2,o.set(e,t);var c=Zi(s(e),s(t),a,i,r,o);return o.delete(e),c;case A:if(Ln)return Ln.call(e)==Ln.call(t)}return!1}(t,n,u,a,i,r,o);if(!(1&a)){var k=d&&Re.call(t,"__wrapped__"),E=g&&Re.call(n,"__wrapped__");
vendor: 5,257 bytes, line 5074
5074if(k||E){var N=k?t.value():t,P=E?n.value():n;return o||(o=new Gn),r(N,P,a,i,o)}}return!!y&&(o||(o=new Gn),function(t,n,a,i,r,o){var s=1&a,l=tr(t),u=l.length,c=tr(n),d=c.length;if(u!=d&&!s)return!1;for(var h=u;h--;){var p=l[h];if(!(s?p in n:Re.call(n,p)))return!1}var f=o.get(t),m=o.get(n);if(f&&m)return f==n&&m==t;var v=!0;o.set(t,n),o.set(n,t);for(var g=s;++h<u;){var y=t[p=l[h]],b=n[p];if(i)var _=s?i(b,y,p,n,t,o):i(y,b,p,t,n,o);if(!(_===e?y===b||r(y,b,a,i,o):_)){v=!1;break}g||(g="constructor"==p)}if(v&&!g){var w=t.constructor,k=n.constructor;w==k||!("constructor"in t)||!("constructor"in n)||"function"==typeof w&&w instanceof w&&"function"==typeof k&&k instanceof k||(v=!1)}return o.delete(t),o.delete(n),v}(t,n,a,i,r,o))}(t,n,a,i,Na,r))}function Pa(t,n,a,i){var r=a.length,o=r,s=!i;if(null==t)return!o;for(t=Te(t);r--;){var l=a[r];if(s&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++r<o;){var u=(l=a[r])[0],c=t[u],d=l[1];if(s&&l[2]){if(c===e&&!(u in t))return!1}else{var h=new Gn;if(i)var p=i(c,d,u,t,n,h);if(!(p===e?Na(d,c,3,i,h):p))return!1}}return!0}function Ma(e){return!(!ts(e)||(t=e,Le&&Le in t))&&(Qo(e)?Xe:he).test(Fr(e));var t}function Oa(e){return"function"==typeof e?e:null==e?il:"object"==typeof e?Ko(e)?Va(e[0],e[1]):Fa(e):pl(e)}function Ra(e){if(!wr(e))return mn(e);var t=[];for(var n in Te(e))Re.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Da(e){if(!ts(e))return function(e){var t=[];if(null!=e)for(var n in Te(e))t.push(n);return t}(e);var t=wr(e),n=[];for(var a in e)("constructor"!=a||!t&&Re.call(e,a))&&n.push(a);return n}function La(e,t){return e<t}function Ba(e,t){var n=-1,a=Go(e)?_e(e.length):[];return ca(e,function(e,i,r){a[++n]=t(e,i,r)}),a}function Fa(e){var t=lr(e);return 1==t.length&&t[0][2]?Cr(t[0][0],t[0][1]):function(n){return n===e||Pa(n,e,t)}}function Va(t,n){return yr(t)&&kr(n)?Cr(Br(t),n):function(a){var i=Es(a,t);return i===e&&i===n?Is(a,t):Na(n,i,3)}}function Xa(t,n,a,i,r){t!==n&&va(n,function(o,s){if(r||(r=new Gn),ts(o))!function(t,n,a,i,r,o,s){var l=Ar(t,a),u=Ar(n,a),c=s.get(u);if(c)Qn(t,a,c);else{var d=o?o(l,u,a+"",t,n,s):e,h=d===e;if(h){var p=Ko(u),f=!p&&$o(u),m=!p&&!f&&cs(u);d=u,p||f||m?Ko(l)?d=l:qo(l)?d=Ei(l):f?(h=!1,d=wi(u,!0)):m?(h=!1,d=Ci(u,!0)):d=[]:rs(u)||zo(u)?(d=l,zo(l)?d=ys(l):ts(l)&&!Qo(l)||(d=fr(u))):h=!1}h&&(s.set(u,d),r(d,u,i,o,s),s.delete(u)),Qn(t,a,d)}}(t,n,s,a,Xa,i,r);else{var l=i?i(Ar(t,s),o,s+"",t,n,r):e;l===e&&(l=o),Qn(t,s,l)}},Os)}function ja(t,n){var a=t.length;if(a)return vr(n+=n<0?a:0,a)?t[n]:e}function Ua(e,t,n){t=t.length?xt(t,function(e){return Ko(e)?function(t){return wa(t,1===e.length?e[0]:e)}:e}):[il];var a=-1;return t=xt(t,Gt(or())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Ba(e,function(e,n,i){return{criteria:xt(t,function(t){return t(e)}),index:++a,value:e}}),function(e,t){return function(e,t,n){for(var a=-1,i=e.criteria,r=t.criteria,o=i.length,s=n.length;++a<o;){var l=Si(i[a],r[a]);if(l)return a>=s?l:l*("desc"==n[a]?-1:1)}return e.index-t.index}(e,t,n)})}function Ha(e,t,n){for(var a=-1,i=t.length,r={};++a<i;){var o=t[a],s=wa(e,o);n(s,o)&&Ja(r,gi(o,e),s)}return r}function za(e,t,n,a){var i=a?Ft:Bt,r=-1,o=t.length,s=e;for(e===t&&(t=Ei(t)),n&&(s=xt(e,Gt(n)));++r<o;)for(var l=0,u=t[r],c=n?n(u):u;(l=i(s,c,l,a))>-1;)s!==e&&Ye.call(s,l,1),Ye.call(e,l,1);return e}function Ka(e,t){for(var n=e?t.length:0,a=n-1;n--;){var i=t[n];if(n==a||i!==r){var r=i;vr(i)?Ye.call(e,i,1):ui(e,i)}}return e}function Wa(e,t){return e+Rt(_n()*(t-e+1))}function Ga(e,t){var n="";if(!e||t<1||t>l)return n;do{t%2&&(n+=e),(t=Rt(t/2))&&(e+=e)}while(t);return n}function qa(e,t){return xr(Sr(e,t,il),e+"")}function $a(e){return $n(js(e))}function Ya(e,t){var n=js(e);return Mr(n,ra(t,0,n.length))}function Ja(t,n,a,i){if(!ts(t))return t;for(var r=-1,o=(n=gi(n,t)).length,s=o-1,l=t;null!=l&&++r<o;){var u=Br(n[r]),c=a;if("__proto__"===u||"constructor"===u||"prototype"===u)return t;if(r!=s){var d=l[u];(c=i?i(d,u,l):e)===e&&(c=ts(d)?d:vr(n[r+1])?[]:{})}Zn(l,u,c),l=l[u]}return t}var Qa=In?function(e,t){return In.set(e,t),e}:il,Za=lt?function(e,t){return lt(e,"toString",{configurable:!0,enumerable:!1,value:tl(t),writable:!0})}:il;function ei(e){return Mr(js(e))}function ti(e,t,n){var a=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var r=_e(i);++a<i;)r[a]=e[a+t];return r}function ni(e,t){var n;return ca(e,function(e,a,i){return!(n=t(e,a,i))}),!!n}function ai(e,t,n){var a=0,i=null==e?a:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;a<i;){var r=a+i>>>1,o=e[r];null!==o&&!us(o)&&(n?o<=t:o<t)?a=r+1:i=r}return i}return ii(e,t,il,n)}function ii(t,n,a,i){var r=0,o=null==t?0:t.length;if(0===o)return 0;for(var s=(n=a(n))!=n,l=null===n,u=us(n),c=n===e;r<o;){var d=Rt((r+o)/2),h=a(t[d]),p=h!==e,f=null===h,m=h==h,v=us(h);if(s)var g=i||m;else g=c?m&&(i||p):l?m&&p&&(i||!f):u?m&&p&&!f&&(i||!v):!f&&!v&&(i?h<=n:h<n);g?r=d+1:o=d}return gn(o,4294967294)}function ri(e,t){for(var n=-1,a=e.length,i=0,r=[];++n<a;){var o=e[n],s=t?t(o):o;if(!n||!jo(s,l)){var l=s;r[i++]=0===o?0:o}}return r}function oi(e){return"number"==typeof e?e:us(e)?u:+e}function si(e){if("string"==typeof e)return e;if(Ko(e))return xt(e,si)+"";if(us(e))return Bn?Bn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}
vendor: 24,336 bytes, line 5074
5074function li(e,t,n){var a=-1,i=Et,r=e.length,o=!0,s=[],l=s;if(n)o=!1,i=It;else if(r>=200){var u=t?null:Gi(e);if(u)return on(u);o=!1,i=$t,l=new Wn}else l=t?[]:s;e:for(;++a<r;){var c=e[a],d=t?t(c):c;if(c=n||0!==c?c:0,o&&d==d){for(var h=l.length;h--;)if(l[h]===d)continue e;t&&l.push(d),s.push(c)}else i(l,d,n)||(l!==s&&l.push(d),s.push(c))}return s}function ui(e,t){return null==(e=Tr(e,t=gi(t,e)))||delete e[Br(Yr(t))]}function ci(e,t,n,a){return Ja(e,t,n(wa(e,t)),a)}function di(e,t,n,a){for(var i=e.length,r=a?i:-1;(a?r--:++r<i)&&t(e[r],r,e););return n?ti(e,a?0:r,a?r+1:i):ti(e,a?r+1:0,a?i:r)}function hi(e,t){var n=e;return n instanceof Un&&(n=n.value()),Pt(t,function(e,t){return t.func.apply(t.thisArg,Nt([e],t.args))},n)}function pi(e,t,n){var a=e.length;if(a<2)return a?li(e[0]):[];for(var i=-1,r=_e(a);++i<a;)for(var o=e[i],s=-1;++s<a;)s!=i&&(r[i]=ua(r[i]||o,e[s],t,n));return li(ma(r,1),t,n)}function fi(t,n,a){for(var i=-1,r=t.length,o=n.length,s={};++i<r;){var l=i<o?n[i]:e;a(s,t[i],l)}return s}function mi(e){return qo(e)?e:[]}function vi(e){return"function"==typeof e?e:il}function gi(e,t){return Ko(e)?e:yr(e,t)?[e]:Lr(bs(e))}var yi=qa;function bi(t,n,a){var i=t.length;return a=a===e?i:a,!n&&a>=i?t:ti(t,n,a)}var _i=ct||function(e){return ut.clearTimeout(e)};function wi(e,t){if(t)return e.slice();var n=e.length,a=ze?ze(n):new e.constructor(n);return e.copy(a),a}function ki(e){var t=new e.constructor(e.byteLength);return new He(t).set(new He(e)),t}function Ci(e,t){var n=t?ki(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Si(t,n){if(t!==n){var a=t!==e,i=null===t,r=t==t,o=us(t),s=n!==e,l=null===n,u=n==n,c=us(n);if(!l&&!c&&!o&&t>n||o&&s&&u&&!l&&!c||i&&s&&u||!a&&u||!r)return 1;if(!i&&!o&&!c&&t<n||c&&a&&r&&!i&&!o||l&&a&&r||!s&&r||!u)return-1}return 0}function Ti(e,t,n,a){for(var i=-1,r=e.length,o=n.length,s=-1,l=t.length,u=vn(r-o,0),c=_e(l+u),d=!a;++s<l;)c[s]=t[s];for(;++i<o;)(d||i<r)&&(c[n[i]]=e[i]);for(;u--;)c[s++]=e[i++];return c}function Ai(e,t,n,a){for(var i=-1,r=e.length,o=-1,s=n.length,l=-1,u=t.length,c=vn(r-s,0),d=_e(c+u),h=!a;++i<c;)d[i]=e[i];for(var p=i;++l<u;)d[p+l]=t[l];for(;++o<s;)(h||i<r)&&(d[p+n[o]]=e[i++]);return d}function Ei(e,t){var n=-1,a=e.length;for(t||(t=_e(a));++n<a;)t[n]=e[n];return t}function Ii(t,n,a,i){var r=!a;a||(a={});for(var o=-1,s=n.length;++o<s;){var l=n[o],u=i?i(a[l],t[l],l,a,t):e;u===e&&(u=t[l]),r?aa(a,l,u):Zn(a,l,u)}return a}function xi(e,t){return function(n,a){var i=Ko(n)?kt:ta,r=t?t():{};return i(n,e,or(a,2),r)}}function Ni(t){return qa(function(n,a){var i=-1,r=a.length,o=r>1?a[r-1]:e,s=r>2?a[2]:e;for(o=t.length>3&&"function"==typeof o?(r--,o):e,s&&gr(a[0],a[1],s)&&(o=r<3?e:o,r=1),n=Te(n);++i<r;){var l=a[i];l&&t(n,l,i,o)}return n})}function Pi(e,t){return function(n,a){if(null==n)return n;if(!Go(n))return e(n,a);for(var i=n.length,r=t?i:-1,o=Te(n);(t?r--:++r<i)&&!1!==a(o[r],r,o););return n}}function Mi(e){return function(t,n,a){for(var i=-1,r=Te(t),o=a(t),s=o.length;s--;){var l=o[e?s:++i];if(!1===n(r[l],l,r))break}return t}}function Oi(t){return function(n){var a=tn(n=bs(n))?ln(n):e,i=a?a[0]:n.charAt(0),r=a?bi(a,1).join(""):n.slice(1);return i[t]()+r}}function Ri(e){return function(t){return Pt(Qs(zs(t).replace(qe,"")),e,"")}}function Di(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Vn(e.prototype),a=e.apply(n,t);return ts(a)?a:n}}function Li(t){return function(n,a,i){var r=Te(n);if(!Go(n)){var o=or(a,3);n=Ms(n),a=function(e){return o(r[e],e,r)}}var s=t(n,a,i);return s>-1?r[o?n[s]:s]:e}}function Bi(n){return er(function(a){var i=a.length,r=i,o=jn.prototype.thru;for(n&&a.reverse();r--;){var s=a[r];if("function"!=typeof s)throw new Ie(t);if(o&&!l&&"wrapper"==ir(s))var l=new jn([],!0)}for(r=l?r:i;++r<i;){var u=ir(s=a[r]),c="wrapper"==u?ar(s):e;l=c&&br(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[ir(c[0])].apply(l,c[3]):1==s.length&&br(s)?l[u]():l.thru(s)}return function(){var e=arguments,t=e[0];if(l&&1==e.length&&Ko(t))return l.plant(t).value();for(var n=0,r=i?a[n].apply(this,e):t;++n<i;)r=a[n].call(this,r);return r}})}function Fi(t,n,a,i,o,s,l,u,c,d){var h=n&r,p=1&n,f=2&n,m=24&n,v=512&n,g=f?e:Di(t);return function r(){for(var y=arguments.length,b=_e(y),_=y;_--;)b[_]=arguments[_];if(m)var w=rr(r),k=function(e,t){for(var n=e.length,a=0;n--;)e[n]===t&&++a;return a}(b,w);if(i&&(b=Ti(b,i,o,m)),s&&(b=Ai(b,s,l,m)),y-=k,m&&y<d){var C=rn(b,w);return Ki(t,n,Fi,r.placeholder,a,b,C,u,c,d-y)}var S=p?a:this,T=f?S[t]:t;return y=b.length,u?b=function(t,n){for(var a=t.length,i=gn(n.length,a),r=Ei(t);i--;){var o=n[i];t[i]=vr(o,a)?r[o]:e}return t}(b,u):v&&y>1&&b.reverse(),h&&c<y&&(b.length=c),this&&this!==ut&&this instanceof r&&(T=g||Di(T)),T.apply(S,b)}}function Vi(e,t){return function(n,a){return function(e,t,n,a){return ya(e,function(e,i,r){t(a,n(e),i,r)}),a}(n,e,t(a),{})}}function Xi(t,n){return function(a,i){var r;if(a===e&&i===e)return n;if(a!==e&&(r=a),i!==e){if(r===e)return i;"string"==typeof a||"string"==typeof i?(a=si(a),i=si(i)):(a=oi(a),i=oi(i)),r=t(a,i)}return r}}function ji(e){return er(function(t){return t=xt(t,Gt(or())),qa(function(n){var a=this;return e(t,function(e){return wt(e,a,n)})})})}function Ui(t,n){var a=(n=n===e?" ":si(n)).length;if(a<2)return a?Ga(n,t):n;var i=Ga(n,ft(t/sn(n)));return tn(n)?bi(ln(i),0,t).join(""):i.slice(0,t)}function Hi(t){return function(n,a,i){return i&&"number"!=typeof i&&gr(n,a,i)&&(a=i=e),n=fs(n),a===e?(a=n,n=0):a=fs(a),function(e,t,n,a){for(var i=-1,r=vn(ft((t-e)/(n||1)),0),o=_e(r);r--;)o[a?r:++i]=e,e+=n;return o}(n,a,i=i===e?n<a?1:-1:fs(i),t)}}function zi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=gs(t),n=gs(n)),e(t,n)}}function Ki(t,n,a,r,o,s,l,u,c,d){var h=8&n;n|=h?i:64,4&(n&=~(h?64:i))||(n&=-4);var p=[t,n,o,h?s:e,h?l:e,h?e:s,h?e:l,u,c,d],f=a.apply(e,p);return br(t)&&Er(f,p),f.placeholder=r,Nr(f,t,n)}function Wi(e){var t=Se[e];return function(e,n){if(e=gs(e),(n=null==n?0:gn(ms(n),292))&&pn(e)){var a=(bs(e)+"e").split("e");return+((a=(bs(t(a[0]+"e"+(+a[1]+n)))+"e").split("e"))[0]+"e"+(+a[1]-n))}return t(e)}}var Gi=Tn&&1/on(new Tn([,-0]))[1]==s?function(e){return new Tn(e)}:ul;function qi(e){return function(t){var n=hr(t);return n==b?nn(t):n==S?function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}(t):function(e,t){return xt(t,function(t){return[t,e[t]]})}(t,e(t))}}function $i(n,s,l,u,c,d,h,p){var f=2&s;if(!f&&"function"!=typeof n)throw new Ie(t);var m=u?u.length:0;if(m||(s&=-97,u=c=e),h=h===e?h:vn(ms(h),0),p=p===e?p:ms(p),m-=c?c.length:0,64&s){var v=u,g=c;u=c=e}var y=f?e:ar(n),b=[n,s,l,u,c,v,g,d,h,p];if(y&&function(e,t){var n=e[1],i=t[1],s=n|i,l=s<131,u=i==r&&8==n||i==r&&n==o&&e[7].length<=t[8]||384==i&&t[7].length<=t[8]&&8==n;if(!l&&!u)return e;1&i&&(e[2]=t[2],s|=1&n?0:4);var c=t[3];if(c){var d=e[3];e[3]=d?Ti(d,c,t[4]):c,e[4]=d?rn(e[3],a):t[4]}(c=t[5])&&(d=e[5],e[5]=d?Ai(d,c,t[6]):c,e[6]=d?rn(e[5],a):t[6]),(c=t[7])&&(e[7]=c),i&r&&(e[8]=null==e[8]?t[8]:gn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=s}(b,y),n=b[0],s=b[1],l=b[2],u=b[3],c=b[4],!(p=b[9]=b[9]===e?f?0:n.length:vn(b[9]-m,0))&&24&s&&(s&=-25),s&&1!=s)_=8==s||16==s?function(t,n,a){var i=Di(t);return function r(){for(var o=arguments.length,s=_e(o),l=o,u=rr(r);l--;)s[l]=arguments[l];var c=o<3&&s[0]!==u&&s[o-1]!==u?[]:rn(s,u);return(o-=c.length)<a?Ki(t,n,Fi,r.placeholder,e,s,c,e,e,a-o):wt(this&&this!==ut&&this instanceof r?i:t,this,s)}}(n,s,p):s!=i&&33!=s||c.length?Fi.apply(e,b):function(e,t,n,a){var i=1&t,r=Di(e);return function t(){for(var o=-1,s=arguments.length,l=-1,u=a.length,c=_e(u+s),d=this&&this!==ut&&this instanceof t?r:e;++l<u;)c[l]=a[l];for(;s--;)c[l++]=arguments[++o];return wt(d,i?n:this,c)}}(n,s,l,u);else var _=function(e,t,n){var a=1&t,i=Di(e);return function t(){return(this&&this!==ut&&this instanceof t?i:e).apply(a?n:this,arguments)}}(n,s,l);return Nr((y?Qa:Er)(_,b),n,s)}function Yi(t,n,a,i){return t===e||jo(t,Pe[a])&&!Re.call(i,a)?n:t}function Ji(t,n,a,i,r,o){return ts(t)&&ts(n)&&(o.set(n,t),Xa(t,n,e,Ji,o),o.delete(n)),t}function Qi(t){return rs(t)?e:t}function Zi(t,n,a,i,r,o){var s=1&a,l=t.length,u=n.length;if(l!=u&&!(s&&u>l))return!1;var c=o.get(t),d=o.get(n);if(c&&d)return c==n&&d==t;var h=-1,p=!0,f=2&a?new Wn:e;for(o.set(t,n),o.set(n,t);++h<l;){var m=t[h],v=n[h];if(i)var g=s?i(v,m,h,n,t,o):i(m,v,h,t,n,o);if(g!==e){if(g)continue;p=!1;break}if(f){if(!Ot(n,function(e,t){if(!$t(f,t)&&(m===e||r(m,e,a,i,o)))return f.push(t)})){p=!1;break}}else if(m!==v&&!r(m,v,a,i,o)){p=!1;break}}return o.delete(t),o.delete(n),p}function er(t){return xr(Sr(t,e,Kr),t+"")}function tr(e){return ka(e,Ms,cr)}function nr(e){return ka(e,Os,dr)}var ar=In?function(e){return In.get(e)}:ul;function ir(e){for(var t=e.name+"",n=xn[t],a=Re.call(xn,t)?n.length:0;a--;){var i=n[a],r=i.func;if(null==r||r==e)return i.name}return t}function rr(e){return(Re.call(Fn,"placeholder")?Fn:e).placeholder}function or(){var e=Fn.iteratee||rl;return e=e===rl?Oa:e,arguments.length?e(arguments[0],arguments[1]):e}function sr(e,t){var n,a,i=e.__data__;return("string"==(a=typeof(n=t))||"number"==a||"symbol"==a||"boolean"==a?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function lr(e){for(var t=Ms(e),n=t.length;n--;){var a=t[n],i=e[a];t[n]=[a,i,kr(i)]}return t}function ur(t,n){var a=function(t,n){return null==t?e:t[n]}(t,n);return Ma(a)?a:e}var cr=Ut?function(e){return null==e?[]:(e=Te(e),At(Ut(e),function(t){return Ge.call(e,t)}))}:vl,dr=Ut?function(e){for(var t=[];e;)Nt(t,cr(e)),e=Ke(e);return t}:vl,hr=Ca;function pr(e,t,n){for(var a=-1,i=(t=gi(t,e)).length,r=!1;++a<i;){var o=Br(t[a]);if(!(r=null!=e&&n(e,o)))break;e=e[o]}return r||++a!=i?r:!!(i=null==e?0:e.length)&&es(i)&&vr(o,i)&&(Ko(e)||zo(e))}function fr(e){return"function"!=typeof e.constructor||wr(e)?{}:Vn(Ke(e))}function mr(e){return Ko(e)||zo(e)||!!(Qe&&e&&e[Qe])}function vr(e,t){var n=typeof e;return!!(t=null==t?l:t)&&("number"==n||"symbol"!=n&&fe.test(e))&&e>-1&&e%1==0&&e<t}function gr(e,t,n){if(!ts(n))return!1;var a=typeof t;return!!("number"==a?Go(n)&&vr(t,n.length):"string"==a&&t in n)&&jo(n[t],e)}function yr(e,t){if(Ko(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!us(e))||Y.test(e)||!$.test(e)||null!=t&&e in Te(t)}function br(e){var t=ir(e),n=Fn[t];if("function"!=typeof n||!(t in Un.prototype))return!1;if(e===n)return!0;var a=ar(n);return!!a&&e===a[0]}(kn&&hr(new kn(new ArrayBuffer(1)))!=x||Cn&&hr(new Cn)!=b||Sn&&hr(Sn.resolve())!=k||Tn&&hr(new Tn)!=S||An&&hr(new An)!=E)&&(hr=function(t){var n=Ca(t),a=n==w?t.constructor:e,i=a?Fr(a):"";if(i)switch(i){case Nn:return x;case Pn:return b;case Mn:return k;case On:return S;case Rn:return E}return n});var _r=Me?Qo:gl;function wr(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Pe)}function kr(e){return e==e&&!ts(e)}function Cr(t,n){return function(a){return null!=a&&a[t]===n&&(n!==e||t in Te(a))}}function Sr(t,n,a){return n=vn(n===e?t.length-1:n,0),function(){for(var e=arguments,i=-1,r=vn(e.length-n,0),o=_e(r);++i<r;)o[i]=e[n+i];i=-1;for(var s=_e(n+1);++i<n;)s[i]=e[i];return s[n]=a(o),wt(t,this,s)}}function Tr(e,t){return t.length<2?e:wa(e,ti(t,0,-1))}function Ar(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Er=Pr(Qa),Ir=pt||function(e,t){return ut.setTimeout(e,t)},xr=Pr(Za);function Nr(e,t,n){var a=t+"";return xr(e,function(e,t){var n=t.length;if(!n)return e;var a=n-1;return t[a]=(n>1?"& ":"")+t[a],t=t.join(n>2?", ":" "),e.replace(ne,"{\n/* [wrapped with "+t+"] */\n")}(a,function(e,t){return Ct(d,function(n){var a="_."+n[0];t&n[1]&&!Et(e,a)&&e.push(a)}),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(ie):[]}(a),n)))}function Pr(t){var n=0,a=0;return function(){var i=yn(),r=16-(i-a);if(a=i,r>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(e,arguments)}}function Mr(t,n){var a=-1,i=t.length,r=i-1;for(n=n===e?i:n;++a<n;){var o=Wa(a,r),s=t[o];t[o]=t[a],t[a]=s}return t.length=n,t}var Or,Rr,Dr,Lr=(Or=function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(J,function(e,n,a,i){t.push(a?i.replace(se,"$1"):n||e)}),t},Rr=Do(Or,function(e){return 500===Dr.size&&Dr.clear(),e}),Dr=Rr.cache,Rr);function Br(e){if("string"==typeof e||us(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Fr(e){if(null!=e){try{return Oe.call(e)}catch(w7){}try{return e+""}catch(w7){}}return""}function Vr(e){if(e instanceof Un)return e.clone();var t=new jn(e.__wrapped__,e.__chain__);return t.__actions__=Ei(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Xr=qa(function(e,t){return qo(e)?ua(e,ma(t,1,qo,!0)):[]}),jr=qa(function(t,n){var a=Yr(n);return qo(a)&&(a=e),qo(t)?ua(t,ma(n,1,qo,!0),or(a,2)):[]}),Ur=qa(function(t,n){var a=Yr(n);return qo(a)&&(a=e),qo(t)?ua(t,ma(n,1,qo,!0),e,a):[]});function Hr(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var i=null==n?0:ms(n);return i<0&&(i=vn(a+i,0)),Lt(e,or(t,3),i)}function zr(t,n,a){var i=null==t?0:t.length;if(!i)return-1;var r=i-1;return a!==e&&(r=ms(a),r=a<0?vn(i+r,0):gn(r,i-1)),Lt(t,or(n,3),r,!0)}function Kr(e){return null!=e&&e.length?ma(e,1):[]}function Wr(t){return t&&t.length?t[0]:e}var Gr=qa(function(e){var t=xt(e,mi);return t.length&&t[0]===e[0]?Ea(t):[]}),qr=qa(function(t){var n=Yr(t),a=xt(t,mi);return n===Yr(a)?n=e:a.pop(),a.length&&a[0]===t[0]?Ea(a,or(n,2)):[]}),$r=qa(function(t){var n=Yr(t),a=xt(t,mi);return(n="function"==typeof n?n:e)&&a.pop(),a.length&&a[0]===t[0]?Ea(a,e,n):[]});function Yr(t){var n=null==t?0:t.length;return n?t[n-1]:e}var Jr=qa(Qr);function Qr(e,t){return e&&e.length&&t&&t.length?za(e,t):e}var Zr=er(function(e,t){var n=null==e?0:e.length,a=ia(e,t);return Ka(e,xt(t,function(e){return vr(e,n)?+e:e}).sort(Si)),a});function eo(e){return null==e?e:wn.call(e)}var to=qa(function(e){return li(ma(e,1,qo,!0))}),no=qa(function(t){var n=Yr(t);return qo(n)&&(n=e),li(ma(t,1,qo,!0),or(n,2))}),ao=qa(function(t){var n=Yr(t);return n="function"==typeof n?n:e,li(ma(t,1,qo,!0),e,n)});function io(e){if(!e||!e.length)return[];var t=0;return e=At(e,function(e){if(qo(e))return t=vn(e.length,t),!0}),Kt(t,function(t){return xt(e,jt(t))})}function ro(t,n){if(!t||!t.length)return[];var a=io(t);return null==n?a:xt(a,function(t){return wt(n,e,t)})}var oo=qa(function(e,t){return qo(e)?ua(e,t):[]}),so=qa(function(e){return pi(At(e,qo))}),lo=qa(function(t){var n=Yr(t);return qo(n)&&(n=e),pi(At(t,qo),or(n,2))}),uo=qa(function(t){var n=Yr(t);return n="function"==typeof n?n:e,pi(At(t,qo),e,n)}),co=qa(io),ho=qa(function(t){var n=t.length,a=n>1?t[n-1]:e;return a="function"==typeof a?(t.pop(),a):e,ro(t,a)});function po(e){var t=Fn(e);return t.__chain__=!0,t}function fo(e,t){return t(e)}var mo=er(function(t){var n=t.length,a=n?t[0]:0,i=this.__wrapped__,r=function(e){return ia(e,t)};return!(n>1||this.__actions__.length)&&i instanceof Un&&vr(a)?((i=i.slice(a,+a+(n?1:0))).__actions__.push({func:fo,args:[r],thisArg:e}),new jn(i,this.__chain__).thru(function(t){return n&&!t.length&&t.push(e),t})):this.thru(r)}),vo=xi(function(e,t,n){Re.call(e,n)?++e[n]:aa(e,n,1)}),go=Li(Hr),yo=Li(zr);function bo(e,t){return(Ko(e)?Ct:ca)(e,or(t,3))}function _o(e,t){return(Ko(e)?St:da)(e,or(t,3))}var wo=xi(function(e,t,n){Re.call(e,n)?e[n].push(t):aa(e,n,[t])}),ko=qa(function(e,t,n){var a=-1,i="function"==typeof t,r=Go(e)?_e(e.length):[];return ca(e,function(e){r[++a]=i?wt(t,e,n):Ia(e,t,n)}),r}),Co=xi(function(e,t,n){aa(e,n,t)});function So(e,t){return(Ko(e)?xt:Ba)(e,or(t,3))}var To=xi(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),Ao=qa(function(e,t){if(null==e)return[];var n=t.length;return n>1&&gr(e,t[0],t[1])?t=[]:n>2&&gr(t[0],t[1],t[2])&&(t=[t[0]]),Ua(e,ma(t,1),[])}),Eo=dt||function(){return ut.Date.now()};function Io(t,n,a){return n=a?e:n,n=t&&null==n?t.length:n,$i(t,r,e,e,e,e,n)}function xo(n,a){var i;if("function"!=typeof a)throw new Ie(t);return n=ms(n),function(){return--n>0&&(i=a.apply(this,arguments)),n<=1&&(a=e),i}}var No=qa(function(e,t,n){var a=1;if(n.length){var r=rn(n,rr(No));a|=i}return $i(e,a,t,n,r)}),Po=qa(function(e,t,n){var a=3;if(n.length){var r=rn(n,rr(Po));a|=i}return $i(t,a,e,n,r)});function Mo(n,a,i){var r,o,s,l,u,c,d=0,h=!1,p=!1,f=!0;if("function"!=typeof n)throw new Ie(t);function m(t){var a=r,i=o;return r=o=e,d=t,l=n.apply(i,a)}function v(t){var n=t-c;return c===e||n>=a||n<0||p&&t-d>=s}function g(){var e=Eo();if(v(e))return y(e);u=Ir(g,function(e){var t=a-(e-c);return p?gn(t,s-(e-d)):t}(e))}function y(t){return u=e,f&&r?m(t):(r=o=e,l)}function b(){var t=Eo(),n=v(t);if(r=arguments,o=this,c=t,n){if(u===e)return function(e){return d=e,u=Ir(g,a),h?m(e):l}(c);if(p)return _i(u),u=Ir(g,a),m(c)}return u===e&&(u=Ir(g,a)),l}return a=gs(a)||0,ts(i)&&(h=!!i.leading,s=(p="maxWait"in i)?vn(gs(i.maxWait)||0,a):s,f="trailing"in i?!!i.trailing:f),b.cancel=function(){u!==e&&_i(u),d=0,r=c=o=u=e},b.flush=function(){return u===e?l:y(Eo())},b}var Oo=qa(function(e,t){return la(e,1,t)}),Ro=qa(function(e,t,n){return la(e,gs(t)||0,n)});function Do(e,n){if("function"!=typeof e||null!=n&&"function"!=typeof n)throw new Ie(t);var a=function(){var t=arguments,i=n?n.apply(this,t):t[0],r=a.cache;if(r.has(i))return r.get(i);var o=e.apply(this,t);return a.cache=r.set(i,o)||r,o};return a.cache=new(Do.Cache||Kn),a}function Lo(e){if("function"!=typeof e)throw new Ie(t);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Do.Cache=Kn;var Bo=yi(function(e,t){var n=(t=1==t.length&&Ko(t[0])?xt(t[0],Gt(or())):xt(ma(t,1),Gt(or()))).length;return qa(function(a){for(var i=-1,r=gn(a.length,n);++i<r;)a[i]=t[i].call(this,a[i]);return wt(e,this,a)})}),Fo=qa(function(t,n){var a=rn(n,rr(Fo));return $i(t,i,e,n,a)}),Vo=qa(function(t,n){var a=rn(n,rr(Vo));return $i(t,64,e,n,a)}),Xo=er(function(t,n){return $i(t,o,e,e,e,n)});function jo(e,t){return e===t||e!=e&&t!=t}var Uo=zi(Sa),Ho=zi(function(e,t){return e>=t}),zo=xa(function(){return arguments}())?xa:function(e){return ns(e)&&Re.call(e,"callee")&&!Ge.call(e,"callee")},Ko=_e.isArray,Wo=mt?Gt(mt):function(e){return ns(e)&&Ca(e)==I};function Go(e){return null!=e&&es(e.length)&&!Qo(e)}function qo(e){return ns(e)&&Go(e)}var $o=hn||gl,Yo=vt?Gt(vt):function(e){return ns(e)&&Ca(e)==m};function Jo(e){if(!ns(e))return!1;var t=Ca(e);return t==v||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!rs(e)}function Qo(e){if(!ts(e))return!1;var t=Ca(e);return t==g||t==y||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Zo(e){return"number"==typeof e&&e==ms(e)}function es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=l}function ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ns(e){return null!=e&&"object"==typeof e}var as=gt?Gt(gt):function(e){return ns(e)&&hr(e)==b};function is(e){return"number"==typeof e||ns(e)&&Ca(e)==_}function rs(e){if(!ns(e)||Ca(e)!=w)return!1;var t=Ke(e);if(null===t)return!0;var n=Re.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Oe.call(n)==Fe}var os=yt?Gt(yt):function(e){return ns(e)&&Ca(e)==C},ss=bt?Gt(bt):function(e){return ns(e)&&hr(e)==S};function ls(e){return"string"==typeof e||!Ko(e)&&ns(e)&&Ca(e)==T}function us(e){return"symbol"==typeof e||ns(e)&&Ca(e)==A}var cs=_t?Gt(_t):function(e){return ns(e)&&es(e.length)&&!!nt[Ca(e)]},ds=zi(La),hs=zi(function(e,t){return e<=t});function ps(e){if(!e)return[];if(Go(e))return ls(e)?ln(e):Ei(e);if(it&&e[it])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[it]());var t=hr(e);return(t==b?nn:t==S?on:js)(e)}function fs(e){return e?(e=gs(e))===s||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ms(e){var t=fs(e),n=t%1;return t==t?n?t-n:t:0}function vs(e){return e?ra(ms(e),0,c):0}function gs(e){if("number"==typeof e)return e;if(us(e))return u;if(ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Wt(e);var n=de.test(e);return n||pe.test(e)?ot(e.slice(2),n?2:8):ce.test(e)?u:+e}function ys(e){return Ii(e,Os(e))}function bs(e){return null==e?"":si(e)}var _s=Ni(function(e,t){if(wr(t)||Go(t))Ii(t,Ms(t),e);else for(var n in t)Re.call(t,n)&&Zn(e,n,t[n])}),ws=Ni(function(e,t){Ii(t,Os(t),e)}),ks=Ni(function(e,t,n,a){Ii(t,Os(t),e,a)}),Cs=Ni(function(e,t,n,a){Ii(t,Ms(t),e,a)}),Ss=er(ia),Ts=qa(function(t,n){t=Te(t);var a=-1,i=n.length,r=i>2?n[2]:e;for(r&&gr(n[0],n[1],r)&&(i=1);++a<i;)for(var o=n[a],s=Os(o),l=-1,u=s.length;++l<u;){var c=s[l],d=t[c];(d===e||jo(d,Pe[c])&&!Re.call(t,c))&&(t[c]=o[c])}return t}),As=qa(function(t){return t.push(e,Ji),wt(Ds,e,t)});function Es(t,n,a){var i=null==t?e:wa(t,n);return i===e?a:i}function Is(e,t){return null!=e&&pr(e,t,Aa)}var xs=Vi(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Be.call(t)),e[t]=n},tl(il)),Ns=Vi(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Be.call(t)),Re.call(e,t)?e[t].push(n):e[t]=[n]},or),Ps=qa(Ia);function Ms(e){return Go(e)?qn(e):Ra(e)}function Os(e){return Go(e)?qn(e,!0):Da(e)}var Rs=Ni(function(e,t,n){Xa(e,t,n)}),Ds=Ni(function(e,t,n,a){Xa(e,t,n,a)}),Ls=er(function(e,t){var n={};if(null==e)return n;var a=!1;t=xt(t,function(t){return t=gi(t,e),a||(a=t.length>1),t}),Ii(e,nr(e),n),a&&(n=oa(n,7,Qi));for(var i=t.length;i--;)ui(n,t[i]);return n}),Bs=er(function(e,t){return null==e?{}:function(e,t){return Ha(e,t,function(t,n){return Is(e,n)})}(e,t)});function Fs(e,t){if(null==e)return{};var n=xt(nr(e),function(e){return[e]});return t=or(t),Ha(e,n,function(e,n){return t(e,n[0])})}var Vs=qi(Ms),Xs=qi(Os);function js(e){return null==e?[]:qt(e,Ms(e))}var Us=Ri(function(e,t,n){return t=t.toLowerCase(),e+(n?Hs(t):t)});function Hs(e){return Js(bs(e).toLowerCase())}function zs(e){return(e=bs(e))&&e.replace(me,Qt).replace($e,"")}var Ks=Ri(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Ws=Ri(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Gs=Oi("toLowerCase"),qs=Ri(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),$s=Ri(function(e,t,n){return e+(n?" ":"")+Js(t)}),Ys=Ri(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Js=Oi("toUpperCase");function Qs(t,n,a){return t=bs(t),(n=a?e:n)===e?function(e){return Ze.test(e)}(t)?function(e){return e.match(Je)||[]}(t):function(e){return e.match(re)||[]}(t):t.match(n)||[]}var Zs=qa(function(t,n){try{return wt(t,e,n)}catch(w7){return Jo(w7)?w7:new ke(w7)}}),el=er(function(e,t){return Ct(t,function(t){t=Br(t),aa(e,t,No(e[t],e))}),e});function tl(e){return function(){return e}}var nl=Bi(),al=Bi(!0);function il(e){return e}function rl(e){return Oa("function"==typeof e?e:oa(e,1))}var ol=qa(function(e,t){return function(n){return Ia(n,e,t)}}),sl=qa(function(e,t){return function(n){return Ia(e,n,t)}});function ll(e,t,n){var a=Ms(t),i=_a(t,a);null!=n||ts(t)&&(i.length||!a.length)||(n=t,t=e,e=this,i=_a(t,Ms(t)));var r=!(ts(n)&&"chain"in n&&!n.chain),o=Qo(e);return Ct(i,function(n){var a=t[n];e[n]=a,o&&(e.prototype[n]=function(){var t=this.__chain__;if(r||t){var n=e(this.__wrapped__);return(n.__actions__=Ei(this.__actions__)).push({func:a,args:arguments,thisArg:e}),n.__chain__=t,n}return a.apply(e,Nt([this.value()],arguments))})}),e}function ul(){}var cl=ji(xt),dl=ji(Tt),hl=ji(Ot);function pl(e){return yr(e)?jt(Br(e)):function(e){return function(t){return wa(t,e)}}(e)}var fl=Hi(),ml=Hi(!0);function vl(){return[]}function gl(){return!1}var yl,bl=Xi(function(e,t){return e+t},0),_l=Wi("ceil"),wl=Xi(function(e,t){return e/t},1),kl=Wi("floor"),Cl=Xi(function(e,t){return e*t},1),Sl=Wi("round"),Tl=Xi(function(e,t){return e-t},0);return Fn.after=function(e,n){if("function"!=typeof n)throw new Ie(t);return e=ms(e),function(){if(--e<1)return n.apply(this,arguments)}},Fn.ary=Io,Fn.assign=_s,Fn.assignIn=ws,Fn.assignInWith=ks,Fn.assignWith=Cs,Fn.at=Ss,Fn.before=xo,Fn.bind=No,Fn.bindAll=el,Fn.bindKey=Po,Fn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ko(e)?e:[e]},Fn.chain=po,Fn.chunk=function(t,n,a){n=(a?gr(t,n,a):n===e)?1:vn(ms(n),0
vendor: 4,927 bytes, line 5074
5074);var i=null==t?0:t.length;if(!i||n<1)return[];for(var r=0,o=0,s=_e(ft(i/n));r<i;)s[o++]=ti(t,r,r+=n);return s},Fn.compact=function(e){for(var t=-1,n=null==e?0:e.length,a=0,i=[];++t<n;){var r=e[t];r&&(i[a++]=r)}return i},Fn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=_e(e-1),n=arguments[0],a=e;a--;)t[a-1]=arguments[a];return Nt(Ko(n)?Ei(n):[n],ma(t,1))},Fn.cond=function(e){var n=null==e?0:e.length,a=or();return e=n?xt(e,function(e){if("function"!=typeof e[1])throw new Ie(t);return[a(e[0]),e[1]]}):[],qa(function(t){for(var a=-1;++a<n;){var i=e[a];if(wt(i[0],this,t))return wt(i[1],this,t)}})},Fn.conforms=function(e){return function(e){var t=Ms(e);return function(n){return sa(n,e,t)}}(oa(e,1))},Fn.constant=tl,Fn.countBy=vo,Fn.create=function(e,t){var n=Vn(e);return null==t?n:na(n,t)},Fn.curry=function t(n,a,i){var r=$i(n,8,e,e,e,e,e,a=i?e:a);return r.placeholder=t.placeholder,r},Fn.curryRight=function t(n,a,i){var r=$i(n,16,e,e,e,e,e,a=i?e:a);return r.placeholder=t.placeholder,r},Fn.debounce=Mo,Fn.defaults=Ts,Fn.defaultsDeep=As,Fn.defer=Oo,Fn.delay=Ro,Fn.difference=Xr,Fn.differenceBy=jr,Fn.differenceWith=Ur,Fn.drop=function(t,n,a){var i=null==t?0:t.length;return i?ti(t,(n=a||n===e?1:ms(n))<0?0:n,i):[]},Fn.dropRight=function(t,n,a){var i=null==t?0:t.length;return i?ti(t,0,(n=i-(n=a||n===e?1:ms(n)))<0?0:n):[]},Fn.dropRightWhile=function(e,t){return e&&e.length?di(e,or(t,3),!0,!0):[]},Fn.dropWhile=function(e,t){return e&&e.length?di(e,or(t,3),!0):[]},Fn.fill=function(t,n,a,i){var r=null==t?0:t.length;return r?(a&&"number"!=typeof a&&gr(t,n,a)&&(a=0,i=r),function(t,n,a,i){var r=t.length;for((a=ms(a))<0&&(a=-a>r?0:r+a),(i=i===e||i>r?r:ms(i))<0&&(i+=r),i=a>i?0:vs(i);a<i;)t[a++]=n;return t}(t,n,a,i)):[]},Fn.filter=function(e,t){return(Ko(e)?At:fa)(e,or(t,3))},Fn.flatMap=function(e,t){return ma(So(e,t),1)},Fn.flatMapDeep=function(e,t){return ma(So(e,t),s)},Fn.flatMapDepth=function(t,n,a){return a=a===e?1:ms(a),ma(So(t,n),a)},Fn.flatten=Kr,Fn.flattenDeep=function(e){return null!=e&&e.length?ma(e,s):[]},Fn.flattenDepth=function(t,n){return null!=t&&t.length?ma(t,n=n===e?1:ms(n)):[]},Fn.flip=function(e){return $i(e,512)},Fn.flow=nl,Fn.flowRight=al,Fn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,a={};++t<n;){var i=e[t];a[i[0]]=i[1]}return a},Fn.functions=function(e){return null==e?[]:_a(e,Ms(e))},Fn.functionsIn=function(e){return null==e?[]:_a(e,Os(e))},Fn.groupBy=wo,Fn.initial=function(e){return null!=e&&e.length?ti(e,0,-1):[]},Fn.intersection=Gr,Fn.intersectionBy=qr,Fn.intersectionWith=$r,Fn.invert=xs,Fn.invertBy=Ns,Fn.invokeMap=ko,Fn.iteratee=rl,Fn.keyBy=Co,Fn.keys=Ms,Fn.keysIn=Os,Fn.map=So,Fn.mapKeys=function(e,t){var n={};return t=or(t,3),ya(e,function(e,a,i){aa(n,t(e,a,i),e)}),n},Fn.mapValues=function(e,t){var n={};return t=or(t,3),ya(e,function(e,a,i){aa(n,a,t(e,a,i))}),n},Fn.matches=function(e){return Fa(oa(e,1))},Fn.matchesProperty=function(e,t){return Va(e,oa(t,1))},Fn.memoize=Do,Fn.merge=Rs,Fn.mergeWith=Ds,Fn.method=ol,Fn.methodOf=sl,Fn.mixin=ll,Fn.negate=Lo,Fn.nthArg=function(e){return e=ms(e),qa(function(t){return ja(t,e)})},Fn.omit=Ls,Fn.omitBy=function(e,t){return Fs(e,Lo(or(t)))},Fn.once=function(e){return xo(2,e)},Fn.orderBy=function(t,n,a,i){return null==t?[]:(Ko(n)||(n=null==n?[]:[n]),Ko(a=i?e:a)||(a=null==a?[]:[a]),Ua(t,n,a))},Fn.over=cl,Fn.overArgs=Bo,Fn.overEvery=dl,Fn.overSome=hl,Fn.partial=Fo,Fn.partialRight=Vo,Fn.partition=To,Fn.pick=Bs,Fn.pickBy=Fs,Fn.property=pl,Fn.propertyOf=function(t){return function(n){return null==t?e:wa(t,n)}},Fn.pull=Jr,Fn.pullAll=Qr,Fn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?za(e,t,or(n,2)):e},Fn.pullAllWith=function(t,n,a){return t&&t.length&&n&&n.length?za(t,n,e,a):t},Fn.pullAt=Zr,Fn.range=fl,Fn.rangeRight=ml,Fn.rearg=Xo,Fn.reject=function(e,t){return(Ko(e)?At:fa)(e,Lo(or(t,3)))},Fn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var a=-1,i=[],r=e.length;for(t=or(t,3);++a<r;){var o=e[a];t(o,a,e)&&(n.push(o),i.push(a))}return Ka(e,i),n},Fn.rest=function(n,a){if("function"!=typeof n)throw new Ie(t);return qa(n,a=a===e?a:ms(a))},Fn.reverse=eo,Fn.sampleSize=function(t,n,a){return n=(a?gr(t,n,a):n===e)?1:ms(n),(Ko(t)?Yn:Ya)(t,n)},Fn.set=function(e,t,n){return null==e?e:Ja(e,t,n)},Fn.setWith=function(t,n,a,i){return i="function"==typeof i?i:e,null==t?t:Ja(t,n,a,i)},Fn.shuffle=function(e){return(Ko(e)?Jn:ei)(e)},Fn.slice=function(t,n,a){var i=null==t?0:t.length;return i?(a&&"number"!=typeof a&&gr(t,n,a)?(n=0,a=i):(n=null==n?0:ms(n),a=a===e?i:ms(a)),ti(t,n,a)):[]},Fn.sortBy=Ao,Fn.sortedUniq=function(e){return e&&e.length?ri(e):[]},Fn.sortedUniqBy=function(e,t){return e&&e.length?ri(e,or(t,2)):[]},Fn.split=function(t,n,a){return a&&"number"!=typeof a&&gr(t,n,a)&&(n=a=e),(a=a===e?c:a>>>0)?(t=bs(t))&&("string"==typeof n||null!=n&&!os(n))&&!(n=si(n))&&tn(t)?bi(ln(t),0,a):t.split(n,a):[]},Fn.spread=function(e,n){if("function"!=typeof e)throw new Ie(t);
vendor: 4,137 bytes, line 5074
5074return n=null==n?0:vn(ms(n),0),qa(function(t){var a=t[n],i=bi(t,0,n);return a&&Nt(i,a),wt(e,this,i)})},Fn.tail=function(e){var t=null==e?0:e.length;return t?ti(e,1,t):[]},Fn.take=function(t,n,a){return t&&t.length?ti(t,0,(n=a||n===e?1:ms(n))<0?0:n):[]},Fn.takeRight=function(t,n,a){var i=null==t?0:t.length;return i?ti(t,(n=i-(n=a||n===e?1:ms(n)))<0?0:n,i):[]},Fn.takeRightWhile=function(e,t){return e&&e.length?di(e,or(t,3),!1,!0):[]},Fn.takeWhile=function(e,t){return e&&e.length?di(e,or(t,3)):[]},Fn.tap=function(e,t){return t(e),e},Fn.throttle=function(e,n,a){var i=!0,r=!0;if("function"!=typeof e)throw new Ie(t);return ts(a)&&(i="leading"in a?!!a.leading:i,r="trailing"in a?!!a.trailing:r),Mo(e,n,{leading:i,maxWait:n,trailing:r})},Fn.thru=fo,Fn.toArray=ps,Fn.toPairs=Vs,Fn.toPairsIn=Xs,Fn.toPath=function(e){return Ko(e)?xt(e,Br):us(e)?[e]:Ei(Lr(bs(e)))},Fn.toPlainObject=ys,Fn.transform=function(e,t,n){var a=Ko(e),i=a||$o(e)||cs(e);if(t=or(t,4),null==n){var r=e&&e.constructor;n=i?a?new r:[]:ts(e)&&Qo(r)?Vn(Ke(e)):{}}return(i?Ct:ya)(e,function(e,a,i){return t(n,e,a,i)}),n},Fn.unary=function(e){return Io(e,1)},Fn.union=to,Fn.unionBy=no,Fn.unionWith=ao,Fn.uniq=function(e){return e&&e.length?li(e):[]},Fn.uniqBy=function(e,t){return e&&e.length?li(e,or(t,2)):[]},Fn.uniqWith=function(t,n){return n="function"==typeof n?n:e,t&&t.length?li(t,e,n):[]},Fn.unset=function(e,t){return null==e||ui(e,t)},Fn.unzip=io,Fn.unzipWith=ro,Fn.update=function(e,t,n){return null==e?e:ci(e,t,vi(n))},Fn.updateWith=function(t,n,a,i){return i="function"==typeof i?i:e,null==t?t:ci(t,n,vi(a),i)},Fn.values=js,Fn.valuesIn=function(e){return null==e?[]:qt(e,Os(e))},Fn.without=oo,Fn.words=Qs,Fn.wrap=function(e,t){return Fo(vi(t),e)},Fn.xor=so,Fn.xorBy=lo,Fn.xorWith=uo,Fn.zip=co,Fn.zipObject=function(e,t){return fi(e||[],t||[],Zn)},Fn.zipObjectDeep=function(e,t){return fi(e||[],t||[],Ja)},Fn.zipWith=ho,Fn.entries=Vs,Fn.entriesIn=Xs,Fn.extend=ws,Fn.extendWith=ks,ll(Fn,Fn),Fn.add=bl,Fn.attempt=Zs,Fn.camelCase=Us,Fn.capitalize=Hs,Fn.ceil=_l,Fn.clamp=function(t,n,a){return a===e&&(a=n,n=e),a!==e&&(a=(a=gs(a))==a?a:0),n!==e&&(n=(n=gs(n))==n?n:0),ra(gs(t),n,a)},Fn.clone=function(e){return oa(e,4)},Fn.cloneDeep=function(e){return oa(e,5)},Fn.cloneDeepWith=function(t,n){return oa(t,5,n="function"==typeof n?n:e)},Fn.cloneWith=function(t,n){return oa(t,4,n="function"==typeof n?n:e)},Fn.conformsTo=function(e,t){return null==t||sa(e,t,Ms(t))},Fn.deburr=zs,Fn.defaultTo=function(e,t){return null==e||e!=e?t:e},Fn.divide=wl,Fn.endsWith=function(t,n,a){t=bs(t),n=si(n);var i=t.length,r=a=a===e?i:ra(ms(a),0,i);return(a-=n.length)>=0&&t.slice(a,r)==n},Fn.eq=jo,Fn.escape=function(e){return(e=bs(e))&&K.test(e)?e.replace(H,Zt):e},Fn.escapeRegExp=function(e){return(e=bs(e))&&Z.test(e)?e.replace(Q,"\\$&"):e},Fn.every=function(t,n,a){var i=Ko(t)?Tt:ha;return a&&gr(t,n,a)&&(n=e),i(t,or(n,3))},Fn.find=go,Fn.findIndex=Hr,Fn.findKey=function(e,t){return Dt(e,or(t,3),ya)},Fn.findLast=yo,Fn.findLastIndex=zr,Fn.findLastKey=function(e,t){return Dt(e,or(t,3),ba)},Fn.floor=kl,Fn.forEach=bo,Fn.forEachRight=_o,Fn.forIn=function(e,t){return null==e?e:va(e,or(t,3),Os)},Fn.forInRight=function(e,t){return null==e?e:ga(e,or(t,3),Os)},Fn.forOwn=function(e,t){return e&&ya(e,or(t,3))},Fn.forOwnRight=function(e,t){return e&&ba(e,or(t,3))},Fn.get=Es,Fn.gt=Uo,Fn.gte=Ho,Fn.has=function(e,t){return null!=e&&pr(e,t,Ta)},Fn.hasIn=Is,Fn.head=Wr,Fn.identity=il,Fn.includes=function(e,t,n,a){e=Go(e)?e:js(e),n=n&&!a?ms(n):0;var i=e.length;return n<0&&(n=vn(i+n,0)),ls(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Bt(e,t,n)>-1},Fn.indexOf=function(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var i=null==n?0:ms(n);return i<0&&(i=vn(a+i,0)),Bt(e,t,i)},Fn.inRange=function(t,n,a){return n=fs(n),a===e?(a=n,n=0):a=fs(a),function(e,t,n){return e>=gn(t,n)&&e<vn(t,n)}(t=gs(t),n,a)},Fn.invoke=Ps,Fn.isArguments=zo,Fn.isArray=Ko,Fn.isArrayBuffer=Wo,Fn.isArrayLike=Go,Fn.isArrayLikeObject=qo,Fn.isBoolean=function(e){return!0===e||!1===e||ns(e)&&Ca(e)==f},Fn.isBuffer=$o,Fn.isDate=Yo,Fn.isElement=function(e){return ns(e)&&1===e.nodeType&&!rs(e)},Fn.isEmpty=function(e){if(null==e)return!0;
vendor: 5,497 bytes, line 5074
5074if(Go(e)&&(Ko(e)||"string"==typeof e||"function"==typeof e.splice||$o(e)||cs(e)||zo(e)))return!e.length;var t=hr(e);if(t==b||t==S)return!e.size;if(wr(e))return!Ra(e).length;for(var n in e)if(Re.call(e,n))return!1;return!0},Fn.isEqual=function(e,t){return Na(e,t)},Fn.isEqualWith=function(t,n,a){var i=(a="function"==typeof a?a:e)?a(t,n):e;return i===e?Na(t,n,e,a):!!i},Fn.isError=Jo,Fn.isFinite=function(e){return"number"==typeof e&&pn(e)},Fn.isFunction=Qo,Fn.isInteger=Zo,Fn.isLength=es,Fn.isMap=as,Fn.isMatch=function(e,t){return e===t||Pa(e,t,lr(t))},Fn.isMatchWith=function(t,n,a){return a="function"==typeof a?a:e,Pa(t,n,lr(n),a)},Fn.isNaN=function(e){return is(e)&&e!=+e},Fn.isNative=function(e){if(_r(e))throw new ke("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ma(e)},Fn.isNil=function(e){return null==e},Fn.isNull=function(e){return null===e},Fn.isNumber=is,Fn.isObject=ts,Fn.isObjectLike=ns,Fn.isPlainObject=rs,Fn.isRegExp=os,Fn.isSafeInteger=function(e){return Zo(e)&&e>=-9007199254740991&&e<=l},Fn.isSet=ss,Fn.isString=ls,Fn.isSymbol=us,Fn.isTypedArray=cs,Fn.isUndefined=function(t){return t===e},Fn.isWeakMap=function(e){return ns(e)&&hr(e)==E},Fn.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==Ca(e)},Fn.join=function(e,t){return null==e?"":fn.call(e,t)},Fn.kebabCase=Ks,Fn.last=Yr,Fn.lastIndexOf=function(t,n,a){var i=null==t?0:t.length;if(!i)return-1;var r=i;return a!==e&&(r=(r=ms(a))<0?vn(i+r,0):gn(r,i-1)),n==n?function(e,t,n){for(var a=n+1;a--;)if(e[a]===t)return a;return a}(t,n,r):Lt(t,Vt,r,!0)},Fn.lowerCase=Ws,Fn.lowerFirst=Gs,Fn.lt=ds,Fn.lte=hs,Fn.max=function(t){return t&&t.length?pa(t,il,Sa):e},Fn.maxBy=function(t,n){return t&&t.length?pa(t,or(n,2),Sa):e},Fn.mean=function(e){return Xt(e,il)},Fn.meanBy=function(e,t){return Xt(e,or(t,2))},Fn.min=function(t){return t&&t.length?pa(t,il,La):e},Fn.minBy=function(t,n){return t&&t.length?pa(t,or(n,2),La):e},Fn.stubArray=vl,Fn.stubFalse=gl,Fn.stubObject=function(){return{}},Fn.stubString=function(){return""},Fn.stubTrue=function(){return!0},Fn.multiply=Cl,Fn.nth=function(t,n){return t&&t.length?ja(t,ms(n)):e},Fn.noConflict=function(){return ut._===this&&(ut._=Ve),this},Fn.noop=ul,Fn.now=Eo,Fn.pad=function(e,t,n){e=bs(e);var a=(t=ms(t))?sn(e):0;if(!t||a>=t)return e;var i=(t-a)/2;return Ui(Rt(i),n)+e+Ui(ft(i),n)},Fn.padEnd=function(e,t,n){e=bs(e);var a=(t=ms(t))?sn(e):0;return t&&a<t?e+Ui(t-a,n):e},Fn.padStart=function(e,t,n){e=bs(e);var a=(t=ms(t))?sn(e):0;return t&&a<t?Ui(t-a,n)+e:e},Fn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),bn(bs(e).replace(ee,""),t||0)},Fn.random=function(t,n,a){if(a&&"boolean"!=typeof a&&gr(t,n,a)&&(n=a=e),a===e&&("boolean"==typeof n?(a=n,n=e):"boolean"==typeof t&&(a=t,t=e)),t===e&&n===e?(t=0,n=1):(t=fs(t),n===e?(n=t,t=0):n=fs(n)),t>n){var i=t;t=n,n=i}if(a||t%1||n%1){var r=_n();return gn(t+r*(n-t+rt("1e-"+((r+"").length-1))),n)}return Wa(t,n)},Fn.reduce=function(e,t,n){var a=Ko(e)?Pt:Ht,i=arguments.length<3;return a(e,or(t,4),n,i,ca)},Fn.reduceRight=function(e,t,n){var a=Ko(e)?Mt:Ht,i=arguments.length<3;return a(e,or(t,4),n,i,da)},Fn.repeat=function(t,n,a){return n=(a?gr(t,n,a):n===e)?1:ms(n),Ga(bs(t),n)},Fn.replace=function(){var e=arguments,t=bs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Fn.result=function(t,n,a){var i=-1,r=(n=gi(n,t)).length;for(r||(r=1,t=e);++i<r;){var o=null==t?e:t[Br(n[i])];o===e&&(i=r,o=a),t=Qo(o)?o.call(t):o}return t},Fn.round=Sl,Fn.runInContext=te,Fn.sample=function(e){return(Ko(e)?$n:$a)(e)},Fn.size=function(e){if(null==e)return 0;if(Go(e))return ls(e)?sn(e):e.length;var t=hr(e);return t==b||t==S?e.size:Ra(e).length},Fn.snakeCase=qs,Fn.some=function(t,n,a){var i=Ko(t)?Ot:ni;return a&&gr(t,n,a)&&(n=e),i(t,or(n,3))},Fn.sortedIndex=function(e,t){return ai(e,t)},Fn.sortedIndexBy=function(e,t,n){return ii(e,t,or(n,2))},Fn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var a=ai(e,t);if(a<n&&jo(e[a],t))return a}return-1},Fn.sortedLastIndex=function(e,t){return ai(e,t,!0)},Fn.sortedLastIndexBy=function(e,t,n){return ii(e,t,or(n,2),!0)},Fn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ai(e,t,!0)-1;if(jo(e[n],t))return n}return-1},Fn.startCase=$s,Fn.startsWith=function(e,t,n){return e=bs(e),n=null==n?0:ra(ms(n),0,e.length),t=si(t),e.slice(n,n+t.length)==t},Fn.subtract=Tl,Fn.sum=function(e){return e&&e.length?zt(e,il):0},Fn.sumBy=function(e,t){return e&&e.length?zt(e,or(t,2)):0},Fn.template=function(t,n,a){var i=Fn.templateSettings;a&&gr(t,n,a)&&(n=e),t=bs(t),n=ks({},n,i,Yi);var r,o,s=ks({},n.imports,i.imports,Yi),l=Ms(s),u=qt(s,l),c=0,d=n.interpolate||ve,h="__p += '",p=Ae((n.escape||ve).source+"|"+d.source+"|"+(d===q?le:ve).source+"|"+(n.evaluate||ve).source+"|$","g"),f="//# sourceURL="+(Re.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++tt+"]")+"\n";t.replace(p,function(e,n,a,i,s,l){return a||(a=i),h+=t.slice(c,l).replace(ge,en),n&&(r=!0,h+="' +\n__e("+n+") +\n'"),s&&(o=!0,h+="';\n"+s+";\n__p += '"),a&&(h+="' +\n((__t = ("+a+")) == null ? '' : __t) +\n'"),c=l+e.length,e}),h+="';\n";var m=Re.call(n,"variable")&&n.variable;if(m){if(oe.test(m))throw new ke("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(o?h.replace(V,""):h).replace(X,"$1").replace(j,"$1;"),h="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";
5074\n")+h+"return __p\n}";var v=Zs(function(){return Ce(l,f+"return "+h).apply(e,u)});if(v.source=h,Jo(v))throw v;return v},Fn.times=function(e,t){if((e=ms(e))<1||e>l)return[];var n=c,a=gn(e,c);t=or(t),e-=c;for(var i=Kt(a,t);++n<e;)t(n);return i},Fn.toFinite=fs,Fn.toInteger=ms,Fn.toLength=vs,Fn.toLower=function(e){return bs(e).toLowerCase()},Fn.toNumber=gs,Fn.toSafeInteger=function(e){return e?ra(ms(e),-9007199254740991,l):0===e?e:0},Fn.toString=bs,Fn.toUpper=function(e){return bs(e).toUpperCase()},Fn.trim=function(t,n,a){if((t=bs(t))&&(a||n===e))return Wt(t);if(!t||!(n=si(n)))return t;var i=ln(t),r=ln(n);return bi(i,Yt(i,r),Jt(i,r)+1).join("")},Fn.trimEnd=function(t,n,a){if((t=bs(t))&&(a||n===e))return t.slice(0,un(t)+1);if(!t||!(n=si(n)))return t;var i=ln(t);return bi(i,0,Jt(i,ln(n))+1).join("")},Fn.trimStart=function(t,n,a){if((t=bs(t))&&(a||n===e))return t.replace(ee,"");if(!t||!(n=si(n)))return t;var i=ln(t);return bi(i,Yt(i,ln(n))).join("")},Fn.truncate=function(t,n){var a=30,i="...";if(ts(n)){var r="separator"in n?n.separator:r;a="length"in n?ms(n.length):a,i="omission"in n?si(n.omission):i}var o=(t=bs(t)).length;if(tn(t)){var s=ln(t);o=s.length}if(a>=o)return t;var l=a-sn(i);if(l<1)return i;var u=s?bi(s,0,l).join(""):t.slice(0,l);if(r===e)return u+i;if(s&&(l+=u.length-l),os(r)){if(t.slice(l).search(r)){var c,d=u;for(r.global||(r=Ae(r.source,bs(ue.exec(r))+"g")),r.lastIndex=0;c=r.exec(d);)var h=c.index;u=u.slice(0,h===e?l:h)}}else if(t.indexOf(si(r),l)!=l){var p=u.lastIndexOf(r);p>-1&&(u=u.slice(0,p))}return u+i},Fn.unescape=function(e){return(e=bs(e))&&z.test(e)?e.replace(U,cn):e},Fn.uniqueId=function(e){var t=++De;return bs(e)+t},Fn.upperCase=Ys,Fn.upperFirst=Js,Fn.each=bo,Fn.eachRight=_o,Fn.first=Wr,ll(Fn,(yl={},ya(Fn,function(e,t){Re.call(Fn.prototype,t)||(yl[t]=e)}),yl),{chain:!1}),Fn.VERSION="4.17.21",Ct(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Fn[e].placeholder=Fn}),Ct(["drop","take"],function(t,n){Un.prototype[t]=function(a){a=a===e?1:vn(ms(a),0);var i=this.__filtered__&&!n?new Un(this):this.clone();return i.__filtered__?i.__takeCount__=gn(a,i.__takeCount__):i.__views__.push({size:gn(a,c),type:t+(i.__dir__<0?"Right":"")}),i},Un.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),Ct(["filter","map","takeWhile"],function(e,t){var n=t+1,a=1==n||3==n;Un.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:or(e,3),type:n}),t.__filtered__=t.__filtered__||a,t}}),Ct(["head","last"],function(e,t){var n="take"+(t?"Right":"");Un.prototype[e]=function(){return this[n](1).value()[0]}}),Ct(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Un.prototype[e]=function(){return this.__filtered__?new Un(this):this[n](1)}}),Un.prototype.compact=function(){return this.filter(il)},Un.prototype.find=function(e){return this.filter(e).head()},Un.prototype.findLast=function(e){return this.reverse().find(e)},Un.prototype.invokeMap=qa(function(e,t){return"function"==typeof e?new Un(this):this.map(function(n){return Ia(n,e,t)})}),Un.prototype.reject=function(e){return this.filter(Lo(or(e)))},Un.prototype.slice=function(t,n){t=ms(t);var a=this;return a.__filtered__&&(t>
50740||n<0)?new Un(a):(t<0?a=a.takeRight(-t):t&&(a=a.drop(t)),n!==e&&(a=(n=ms(n))<0?a.dropRight(-n):a.take(n-t)),a)},Un.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Un.prototype.toArray=function(){return this.take(c)},ya(Un.prototype,function(t,n){var a=/^(?:filter|find|map|reject)|While$/.test(n),i=/^(?:head|last)$/.test(n),r=Fn[i?"take"+("last"==n?"Right":""):n],o=i||/^find/.test(n);r&&(Fn.prototype[n]=function(){var n=this.__wrapped__,s=i?[1]:arguments,l=n instanceof Un,u=s[0],c=l||Ko(n),d=function(e){var t=r.apply(Fn,Nt([e],s));return i&&h?t[0]:t};c&&a&&"function"==typeof u&&1!=u.length&&(l=c=!1);var h=this.__chain__,p=!!this.__actions__.length,f=o&&!h,m=l&&!p;if(!o&&c){n=m?n:new Un(this);var v=t.apply(n,s);return v.__actions__.push({func:fo,args:[d],thisArg:e}),new jn(v,h)}return f&&m?t.apply(this,s):(v=this.thru(d),f?i?v.value()[0]:v.value():v)})}),Ct(["pop","push","shift","sort","splice","unshift"],function(e){var t=xe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);Fn.prototype[e]=function(){var e=arguments;if(a&&!this.__chain__){var i=this.value();return t.apply(Ko(i)?i:[],e)}return this[n](function(n){return t.apply(Ko(n)?n:[],e)})}}),ya(Un.prototype,function(e,t){var n=Fn[t];if(n){var a=n.name+"";Re.call(xn,a)||(xn[a]=[]),xn[a].push({name:t,func:n})}}),xn[Fi(e,2).name]=[{name:"wrapper",func:e}],Un.prototype.clone=function(){var e=new Un(this.__wrapped__);return e.__actions__=Ei(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ei(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ei(this.__views__),e},Un.prototype.reverse=function(){if(this.__filtered__){var e=new Un(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Un.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ko(e),a=t<0,i=n?e.length:0,r=function(e,t,n){for(var a=-1,i=n.length;++a<i;){var r=n[a],o=r.size;switch(r.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=gn(t,e+o);break;case"takeRight":e=vn(e,t-o)}}return{start:e,end:t}}(0,i,this.__views__),o=r.start,s=r.end,l=s-o,u=a?s:o-1,c=this.__iteratees__,d=c.length,h=0,p=gn(l,this.__takeCount__);if(!n||!a&&i==l&&p==l)return hi(e,this.__actions__);var f=[];e:for(;l--&&h<p;){for(var m=-1,v=e[u+=t];++m<d;){var g=c[m],y=g.iteratee,b=g.type,_=y(v);if(2==b)v=_;else if(!_){if(1==b)continue e;break e}}f[h++]=v}return f},Fn.prototype.at=mo,Fn.prototype.chain=function(){return po(this)},Fn.prototype.commit=function(){return new jn(this.value(),this.__chain__)},Fn.prototype.next=function(){this.__values__===e&&(this.__values__=ps(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?e:this.__values__[this.__index__++]}},Fn.prototype.plant=function(t){for(var n,a=this;a instanceof Xn;){var i=Vr(a);i.__index__=0,i.__values__=e,n?r.__wrapped__=i:n=i;var r=i;a=a.__wrapped__}return r.__wrapped__=t,n},Fn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Un){var n=t;return this.__actions__.length&&(n=new Un(this)),(n=n.reverse()).__actions__.push({func:fo,args:[eo],thisArg:e}),new jn(n,this.__chain__)}return this.thru(eo)},Fn.prototype.toJSON=Fn.prototype.valueOf=Fn.prototype.value=function(){return hi(this.__wrapped__,this.__actions__)},Fn.prototype.first=Fn.prototype.head,it&&(Fn.prototype[it]=function(){return this}),Fn}();dt?((dt.exports=dn)._=dn,ct._=dn):ut._=dn}.call($z.exports)),$z.exports);const Zz=e=>{if(null==e)return"";const t=(""+e).replace(/[\r\n]+/g," ");return/[\s",]/.test(t)?'"'.concat(t.replaceAll('"','""'),'"'):t},eK=(e,t="stats-export")=>{let n=document.createElement("a");document.body.appendChild(n),n.style="display: none";let a=new Blob([e],{type:"xls/xlsx"}),i=window.URL.createObjectURL(a);n.href=i,n.download="".concat(t,".csv"),n.click(),window.URL.revokeObjectURL(i),document.body.removeChild(n)};var tK,nK={exports:{}},aK={exports:{}};function iK(){return tK||(tK=1,aK.exports=(e=e||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),a={},i=a.lib={},r=i.Base=function(){return{extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.a
vendor: 5,981 bytes, line 5074
5074pply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),o=i.WordArray=r.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,n=e.words,a=this.sigBytes,i=e.sigBytes;if(this.clamp(),a%4)for(var r=0;r<i;r++){var o=n[r>>>2]>>>24-r%4*8&255;t[a+r>>>2]|=o<<24-(a+r)%4*8}else for(r=0;r<i;r+=4)t[a+r>>>2]=n[r>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=r.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,a=[],i=function(t){var n=987654321,a=4294967295;return function(){var i=((n=36969*(65535&n)+(n>>16)&a)<<16)+(t=18e3*(65535&t)+(t>>16)&a)&a;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},r=0;r<t;r+=4){var s=i(4294967296*(n||e.random()));n=987654071*s(),a.push(4294967296*s()|0)}return new o.init(a,t)}}),s=a.enc={},l=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,a=[],i=0;i<n;i++){var r=t[i>>>2]>>>24-i%4*8&255;a.push((r>>>4).toString(16)),a.push((15&r).toString(16))}return a.join("")},parse:function(e){for(var t=e.length,n=[],a=0;a<t;a+=2)n[a>>>3]|=parseInt(e.substr(a,2),16)<<24-a%8*4;return new o.init(n,t/2)}},u=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,a=[],i=0;i<n;i++){var r=t[i>>>2]>>>24-i%4*8&255;a.push(String.fromCharCode(r))}return a.join("")},parse:function(e){for(var t=e.length,n=[],a=0;a<t;a++)n[a>>>2]|=(255&e.charCodeAt(a))<<24-a%4*8;return new o.init(n,t)}},c=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(w7){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},d=i.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,a=n.words,i=n.sigBytes,r=this.blockSize,s=i/(4*r),l=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*r,u=e.min(4*l,i);if(l){for(var c=0;c<l;c+=r)this._doProcessBlock(a,c);var d=a.splice(0,l);n.sigBytes-=u}return new o.init(d,u)},clone:function(){var e=r.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});i.Hasher=d.extend({cfg:r.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new h.HMAC.init(e,n).finalize(t)}}});var h=a.algo={};return a}(Math),e)),aK.exports;var e}var rK,oK={exports:{}};function sK(){return rK?oK.exports:(rK=1,oK.exports=(o=iK(),n=(t=o).lib,a=n.Base,i=n.WordArray,(r=t.x64={}).Word=a.extend({init:function(e,t){this.high=e,this.low=t}}),r.WordArray=a.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:8*t.length},toX32:function(){for(var e=this.words,t=e.length,n=[],a=0;a<t;a++){var r=e[a];n.push(r.high),n.push(r.low)}return i.create(n,this.sigBytes)},clone:function(){for(var e=a.clone.call(this),t=e.words=this.words.slice(0),n=t.length,i=0;i<n;i++)t[i]=t[i].clone();return e}}),o));var e,t,n,a,i,r,o}var lK,uK={exports:{}};function cK(){return lK||(lK=1,uK.exports=(e=iK(),function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,n=t.init,a=t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,a=[],i=0;i<t;i++)a[i>>>2]|=e[i]<<24-i%4*8;n.call(this,a,t)}else n.apply(this,arguments)};a.prototype=t}}(),e.lib.WordArray)),uK.exports;var e}var dK,hK={exports:{}};function pK(){return dK?hK.exports:(dK=1,hK.exports=(e=iK(),function(){var t=e,n=t.lib.WordArray,a=t.enc;function i(e){return e<<8&4278255360|e>>>8&16711935}a.Utf16=a.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,a=[],i=0;i<n;i+=2){var r=t[i>>>2]>>>16-i%4*8&65535;a.push(String.fromCharCode(r))}return a.join("")},parse:function(e){for(var t=e.length,a=[],i=0;i<t;i++)a[i>>>1]|=e.charCodeAt(i)<<16-i%2*16;return n.create(a,2*t)}},a.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,a=[],r=0;r<n;r+=2){var o=i(t[r>>>2]>>>16-r%4*8&65535);a.push(String.fromCharCode(o))}return a.join("")},parse:function(e){for(var t=e.length,a=[],r=0;r<t;r++)a[r>>>1]|=i(e.charCodeAt(r)<<16-r%2*16);return n.create(a,2*t)}}}(),e.enc.Utf16));var e}var fK,mK={exports:{}};function vK(){return fK?mK.exports:(fK=1,mK.exports=(e=iK(),function(){var t=e,n=t.lib.WordArray;function a(e,t,a){for(var i=[],r=0,o=0;o<t;o++)if(o%4){var s=a[e.charCodeAt(o-1)]<<o%4*2,l=a[e.charCodeAt(o)]>>>6-o%4*2;i[r>>>2]|=(s|l)<<24-r%4*8,r++}return n.create(i,r)}t.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,a=this._map;e.clamp();for(var i=[],r=0;r<n;r+=3)for(var o=(t[r>>>2]>>>24-r%4*8&255)<<16|(t[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|t[r+2>>>2]>>>24-(r+2)%4*8&255,s=0;s<4&&r+.75*s<n;s++)i.push(a.charAt(o>>>6*(3-s)&63));var l=a.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var r=0;r<n.length;
vendor: 5,034 bytes, line 5074
5074r++)i[n.charCodeAt(r)]=r}var o=n.charAt(64);if(o){var s=e.indexOf(o);-1!==s&&(t=s)}return a(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64));var e}var gK,yK={exports:{}};function bK(){return gK||(gK=1,yK.exports=(e=iK(),function(t){var n=e,a=n.lib,i=a.WordArray,r=a.Hasher,o=n.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var l=o.MD5=r.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var a=t+n,i=e[a];e[a]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var r=this._hash.words,o=e[t+0],l=e[t+1],p=e[t+2],f=e[t+3],m=e[t+4],v=e[t+5],g=e[t+6],y=e[t+7],b=e[t+8],_=e[t+9],w=e[t+10],k=e[t+11],C=e[t+12],S=e[t+13],T=e[t+14],A=e[t+15],E=r[0],I=r[1],x=r[2],N=r[3];E=u(E,I,x,N,o,7,s[0]),N=u(N,E,I,x,l,12,s[1]),x=u(x,N,E,I,p,17,s[2]),I=u(I,x,N,E,f,22,s[3]),E=u(E,I,x,N,m,7,s[4]),N=u(N,E,I,x,v,12,s[5]),x=u(x,N,E,I,g,17,s[6]),I=u(I,x,N,E,y,22,s[7]),E=u(E,I,x,N,b,7,s[8]),N=u(N,E,I,x,_,12,s[9]),x=u(x,N,E,I,w,17,s[10]),I=u(I,x,N,E,k,22,s[11]),E=u(E,I,x,N,C,7,s[12]),N=u(N,E,I,x,S,12,s[13]),x=u(x,N,E,I,T,17,s[14]),E=c(E,I=u(I,x,N,E,A,22,s[15]),x,N,l,5,s[16]),N=c(N,E,I,x,g,9,s[17]),x=c(x,N,E,I,k,14,s[18]),I=c(I,x,N,E,o,20,s[19]),E=c(E,I,x,N,v,5,s[20]),N=c(N,E,I,x,w,9,s[21]),x=c(x,N,E,I,A,14,s[22]),I=c(I,x,N,E,m,20,s[23]),E=c(E,I,x,N,_,5,s[24]),N=c(N,E,I,x,T,9,s[25]),x=c(x,N,E,I,f,14,s[26]),I=c(I,x,N,E,b,20,s[27]),E=c(E,I,x,N,S,5,s[28]),N=c(N,E,I,x,p,9,s[29]),x=c(x,N,E,I,y,14,s[30]),E=d(E,I=c(I,x,N,E,C,20,s[31]),x,N,v,4,s[32]),N=d(N,E,I,x,b,11,s[33]),x=d(x,N,E,I,k,16,s[34]),I=d(I,x,N,E,T,23,s[35]),E=d(E,I,x,N,l,4,s[36]),N=d(N,E,I,x,m,11,s[37]),x=d(x,N,E,I,y,16,s[38]),I=d(I,x,N,E,w,23,s[39]),E=d(E,I,x,N,S,4,s[40]),N=d(N,E,I,x,o,11,s[41]),x=d(x,N,E,I,f,16,s[42]),I=d(I,x,N,E,g,23,s[43]),E=d(E,I,x,N,_,4,s[44]),N=d(N,E,I,x,C,11,s[45]),x=d(x,N,E,I,A,16,s[46]),E=h(E,I=d(I,x,N,E,p,23,s[47]),x,N,o,6,s[48]),N=h(N,E,I,x,y,10,s[49]),x=h(x,N,E,I,T,15,s[50]),I=h(I,x,N,E,v,21,s[51]),E=h(E,I,x,N,C,6,s[52]),N=h(N,E,I,x,f,10,s[53]),x=h(x,N,E,I,w,15,s[54]),I=h(I,x,N,E,l,21,s[55]),E=h(E,I,x,N,b,6,s[56]),N=h(N,E,I,x,A,10,s[57]),x=h(x,N,E,I,g,15,s[58]),I=h(I,x,N,E,S,21,s[59]),E=h(E,I,x,N,m,6,s[60]),N=h(N,E,I,x,k,10,s[61]),x=h(x,N,E,I,p,15,s[62]),I=h(I,x,N,E,_,21,s[63]),r[0]=r[0]+E|0,r[1]=r[1]+I|0,r[2]=r[2]+x|0,r[3]=r[3]+N|0},_doFinalize:function(){var e=this._data,n=e.words,a=8*this._nDataBytes,i=8*e.sigBytes;n[i>>>5]|=128<<24-i%32;var r=t.floor(a/4294967296),o=a;n[15+(i+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),n[14+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),e.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,u=0;u<4;u++){var c=l[u];l[u]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,n,a,i,r,o){var s=e+(t&n|~t&a)+i+o;return(s<<r|s>>>32-r)+t}function c(e,t,n,a,i,r,o){var s=e+(t&a|n&~a)+i+o;return(s<<r|s>>>32-r)+t}function d(e,t,n,a,i,r,o){var s=e+(t^n^a)+i+o;return(s<<r|s>>>32-r)+t}function h(e,t,n,a,i,r,o){var s=e+(n^(t|~a))+i+o;return(s<<r|s>>>32-r)+t}n.MD5=r._createHelper(l),n.HmacMD5=r._createHmacHelper(l)}(Math),e.MD5)),yK.exports;var e}var _K,wK={exports:{}};function kK(){return _K||(_K=1,wK.exports=(s=iK(),t=(e=s).lib,n=t.WordArray,a=t.Hasher,i=e.algo,r=[],o=i.SHA1=a.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,a=n[0],i=n[1],o=n[2],s=n[3],l=n[4],u=0;u<80;u++){if(u<16)r[u]=0|e[t+u];else{var c=r[u-3]^r[u-8]^r[u-14]^r[u-16];r[u]=c<<1|c>>>31}var d=(a<<5|a>>>27)+l+r[u];d+=u<20?1518500249+(i&o|~i&s):u<40?1859775393+(i^o^s):u<60?(i&o|i&s|o&s)-1894007588:(i^o^s)-899497514,l=s,s=o,o=i<<30|i>>>2,i=a,a=d}n[0]=n[0]+a|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,a=8*e.sigBytes;return t[a>>>5]|=128<<24-a%32,t[14+(a+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(a+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}}),e.SHA1=a._createHelper(o),e.HmacSHA1=a._createHmacHelper(o),s.SHA1)),wK.exports;var e,t,n,a,i,r,o,s}var CK,SK={exports:{}};function TK(){return CK?SK.exports:(CK=1,SK.exports=(e=iK(),function(t){var n=e,a=n.lib,i=a.WordArray,r=a.Hasher,o=n.algo,s=[],l=[];!function(){function e(e){for(var n=t.sqrt(e),a=2;a<=n;a++)if(!(e%a))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var a=2,i=0;i<64;)e(a)&&(i<8&&(s[i]=n(t.pow(a,.5))),l[i]=n(t.pow(a,1/3)),i++),a++}();var u=[],c=o.SHA256=r.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,a=n[0],i=n[1],r=n[2],o=n[3],s=n[4],c=n[5],d=n[6],h=n[7],p=0;p<64;p++){if(p<16)u[p]=0|e[t+p];else{var f=u[p-15],m=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>
vendor: 10,044 bytes, line 5074
50743,v=u[p-2],g=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;u[p]=m+u[p-7]+g+u[p-16]}var y=a&i^a&r^i&r,b=(a<<30|a>>>2)^(a<<19|a>>>13)^(a<<10|a>>>22),_=h+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&d)+l[p]+u[p];h=d,d=c,c=s,s=o+_|0,o=r,r=i,i=a,a=_+(b+y)|0}n[0]=n[0]+a|0,n[1]=n[1]+i|0,n[2]=n[2]+r|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+c|0,n[6]=n[6]+d|0,n[7]=n[7]+h|0},_doFinalize:function(){var e=this._data,n=e.words,a=8*this._nDataBytes,i=8*e.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=t.floor(a/4294967296),n[15+(i+64>>>9<<4)]=a,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=r._createHelper(c),n.HmacSHA256=r._createHmacHelper(c)}(Math),e.SHA256));var e}var AK,EK={exports:{}};var IK,xK={exports:{}};function NK(){return IK||(IK=1,xK.exports=(e=iK(),sK(),function(){var t=e,n=t.lib.Hasher,a=t.x64,i=a.Word,r=a.WordArray,o=t.algo;function s(){return i.create.apply(i,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],u=[];!function(){for(var e=0;e<80;e++)u[e]=s()}();var c=o.SHA512=n.extend({_doReset:function(){this._hash=new r.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,a=n[0],i=n[1],r=n[2],o=n[3],s=n[4],c=n[5],d=n[6],h=n[7],p=a.high,f=a.low,m=i.high,v=i.low,g=r.high,y=r.low,b=o.high,_=o.low,w=s.high,k=s.low,C=c.high,S=c.low,T=d.high,A=d.low,E=h.high,I=h.low,x=p,N=f,P=m,M=v,O=g,R=y,D=b,L=_,B=w,F=k,V=C,X=S,j=T,U=A,H=E,z=I,K=0;K<80;K++){var W=u[K];if(K<16)var G=W.high=0|e[t+2*K],q=W.low=0|e[t+2*K+1];else{var $=u[K-15],Y=$.high,J=$.low,Q=(Y>>>1|J<<31)^(Y>>>8|J<<24)^Y>>>7,Z=(J>>>1|Y<<31)^(J>>>8|Y<<24)^(J>>>7|Y<<25),ee=u[K-2],te=ee.high,ne=ee.low,ae=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,ie=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),re=u[K-7],oe=re.high,se=re.low,le=u[K-16],ue=le.high,ce=le.low;G=(G=(G=Q+oe+((q=Z+se)>>>0<Z>>>0?1:0))+ae+((q+=ie)>>>0<ie>>>0?1:0))+ue+((q+=ce)>>>0<ce>>>0?1:0),W.high=G,W.low=q}var de,he=B&V^~B&j,pe=F&X^~F&U,fe=x&P^x&O^P&O,me=N&M^N&R^M&R,ve=(x>>>28|N<<4)^(x<<30|N>>>2)^(x<<25|N>>>7),ge=(N>>>28|x<<4)^(N<<30|x>>>2)^(N<<25|x>>>7),ye=(B>>>14|F<<18)^(B>>>18|F<<14)^(B<<23|F>>>9),be=(F>>>14|B<<18)^(F>>>18|B<<14)^(F<<23|B>>>9),_e=l[K],we=_e.high,ke=_e.low,Ce=H+ye+((de=z+be)>>>0<z>>>0?1:0),Se=ge+me;H=j,z=U,j=V,U=X,V=B,X=F,B=D+(Ce=(Ce=(Ce=Ce+he+((de+=pe)>>>0<pe>>>0?1:0))+we+((de+=ke)>>>0<ke>>>0?1:0))+G+((de+=q)>>>0<q>>>0?1:0))+((F=L+de|0)>>>0<L>>>0?1:0)|0,D=O,L=R,O=P,R=M,P=x,M=N,x=Ce+(ve+fe+(Se>>>0<ge>>>0?1:0))+((N=de+Se|0)>>>0<de>>>0?1:0)|0}f=a.low=f+N,a.high=p+x+(f>>>0<N>>>0?1:0),v=i.low=v+M,i.high=m+P+(v>>>0<M>>>0?1:0),y=r.low=y+R,r.high=g+O+(y>>>0<R>>>0?1:0),_=o.low=_+L,o.high=b+D+(_>>>0<L>>>0?1:0),k=s.low=k+F,s.high=w+B+(k>>>0<F>>>0?1:0),S=c.low=S+X,c.high=C+V+(S>>>0<X>>>0?1:0),A=d.low=A+U,d.high=T+j+(A>>>0<U>>>0?1:0),I=h.low=I+z,h.high=E+H+(I>>>0<z>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,a=8*e.sigBytes;return t[a>>>5]|=128<<24-a%32,t[30+(a+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(a+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=n._createHelper(c),t.HmacSHA512=n._createHmacHelper(c)}(),e.SHA512)),xK.exports;var e}var PK,MK={exports:{}};var OK,RK={exports:{}};function DK(){return OK||(OK=1,RK.exports=(e=iK(),sK(),function(t){var n=e,a=n.lib,i=a.WordArray,r=a.Hasher,o=n.x64.Word,s=n.algo,l=[],u=[],c=[];!function(){for(var e=1,t=0,n=0;n<24;n++){l[e+5*t]=(n+1)*(n+2)/2%64;var a=(2*e+3*t)%5;e=t%5,t=a}for(e=0;e<5;e++)for(t=0;t<5;t++)u[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,r=0;r<24;r++){for(var s=0,d=0,h=0;h<7;h++){if(1&i){var p=(1<<h)-1;p<32?d^=1<<p:s^=1<<p-32}128&i?i=i<<1^113:i<<=1}c[r]=o.create(s,d)}}();var d=[];!function(){for(var e=0;e<25;e++)d[e]=o.create()}();var h=s.SHA3=r.extend({cfg:r.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new o.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,a=this.blockSize/2,i=0;i<a;i++){var r=e[t+2*i],o=e[t+2*i+1];r=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),(I=n[i]).high^=o,I.low^=r}for(var s=0;s<24;s++){for(var h=0;h<5;h++){for(var p=0,f=0,m=0;m<5;m++)p^=(I=n[h+5*m]).high,f^=I.low;var v=d[h];v.high=p,v.low=f}for(h=0;h<5;h++){var g=d[(h+4)%5],y=d[(h+1)%5],b=y.high,_=y.low;for(p=g.high^(b<<1|_>>>31),f=g.low^(_<<1|b>>>31),m=0;m<5;m++)(I=n[h+5*m]).high^=p,I.low^=f}for(var w=1;w<25;w++){var k=(I=n[w]).high,C=I.low,S=l[w];S<32?(p=k<<S|C>>>32-S,f=C<<S|k>>>32-S):(p=C<<S-32|k>>>64-S,f=k<<S-32|C>>>64-S);var T=d[u[w]];T.high=p,T.low=f}var A=d[0],E=n[0];for(A.high=E.high,A.low=E.low,h=0;h<5;h++)for(m=0;m<5;m++){var I=n[w=h+5*m],x=d[w],N=d[(h+1)%5+5*m],P=d[(h+2)%5+5*m];I.high=x.high^~N.high&P.high,I.low=x.low^~N.low&P.low}I=n[0];var M=c[s];I.high^=M.high,I.low^=M.low}},_doFinalize:function(){var e=this._data,n=e.words;this._nDataBytes;var a=8*e.sigBytes,r=32*this.blockSize;n[a>>>5]|=1<<24-a%32,n[(t.ceil((a+1)/r)*r>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var o=this._state,s=this.cfg.outputLength/8,l=s/8,u=[],c=0;c<l;c++){var d=o[c],h=d.high,p=d.low;h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),u.push(p),u.push(h)}return new i.init(u,s)},clone:function(){for(var e=r.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});n.SHA3=r._createHelper(h),n.HmacSHA3=r._createHmacHelper(h)}(Math),e.SHA3)),RK.exports;var e}var LK,BK={exports:{}};var FK,VK={exports:{}};function XK(){return FK?VK.exports:(FK=1,VK.exports=(e=iK(),n=(t=e).lib.Base,a=t.enc.Utf8,void(t.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=a.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var r=this._oKey=t.clone(),o=this._iKey=t.clone(),s=r.words,l=o.words,u=0;u<n;u++)s[u]^=1549556828,l[u]^=909522486;r.sigBytes=o.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}}))));var e,t,n,a}var jK,UK={exports:{}};var HK,zK={exports:{}};function KK(){return HK?zK.exports:(HK=1,zK.exports=(s=iK(),kK(),XK(),t=(e=s).lib,n=t.Base,a=t.WordArray,i=e.algo,r=i.MD5,o=i.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:r,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,i=n.hasher.create(),r=a.create(),o=r.words,s=n.keySize,l=n.iterations;o.length<s;){u&&i.update(u);var u=i.update(e).finalize(t);i.reset();for(var c=1;c<l;c++)u=i.finalize(u),i.reset();r.concat(u)}return r.sigBytes=4*s,r}}),e.EvpKDF=function(e,t,n){return o.create(n).compute(e,t)},s.EvpKDF));var e,t,n,a,i,r,o,s}var WK,GK={exports:{}};function qK(){return WK?GK.exports:(WK=1,GK.exports=(e=iK(),KK(),void(e.lib.Cipher||function(t){var n=e,a=n.lib,i=a.Base,r=a.WordArray,o=a.BufferedBlockAlgorithm,s=n.enc;s.Utf8;var l=s.Base64,u=n.algo.EvpKDF,c=a.Cipher=o.extend({cfg:i.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){o.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?b:g}return function(t){return{encrypt:function(n,a,i){return e(a).encrypt
5074(t,n,a,i)},decrypt:function(n,a,i){return e(a).decrypt(t,n,a,i)}}}}()});a.StreamCipher=c.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var d=n.mode={},h=a.BlockCipherMode=i.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=d.CBC=function(){var e=h.extend();function n(e,n,a){var i=this._iv;if(i){var r=i;this._iv=t}else r=this._prevBlock;for(var o=0;o<a;o++)e[n+o]^=r[o]}return e.Encryptor=e.extend({processBlock:function(e,t){var a=this._cipher,i=a.blockSize;n.call(this,e,t,i),a.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),e.Decryptor=e.extend({processBlock:function(e,t){var a=this._cipher,i=a.blockSize,r=e.slice(t,t+i);a.decryptBlock(e,t),n.call(this,e,t,i),this._prevBlock=r}}),e}(),f=(n.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,a=n-e.sigBytes%n,i=a<<24|a<<16|a<<8|a,o=[],s=0;s<a;s+=4)o.push(i);var l=r.create(o,a);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};a.BlockCipher=c.extend({cfg:c.cfg.extend({mode:p,padding:f}),reset:function(){c.reset.call(this);var e=this.cfg,t=e.iv,n=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var a=n.createEncryptor;else a=n.createDecryptor,this._minBufferSize=1;this._mode&&this._mode.__creator==a?this._mode.init(this,t&&t.words):(this._mode=a.call(n,this,t&&t.words),this._mode.__creator=a)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else t=this._process(!0),e.unpad(t);return t},blockSize:4});var m=a.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),v=(n.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;if(n)var a=r.create([1398893684,1701076831]).concat(n).concat(t);else a=t;return a.toString(l)},parse:function(e){var t=l.parse(e),n=t.words;if(1398893684==n[0]&&1701076831==n[1]){var a=r.create(n.slice(2,4));n.splice(0,4),t.sigBytes-=16}return m.create({ciphertext:t,salt:a})}},g=a.SerializableCipher=i.extend({cfg:i.extend({format:v}),encrypt:function(e,t,n,a){a=this.cfg.extend(a);var i=e.createEncryptor(n,a),r=i.finalize(t),o=i.cfg;return m.create({ciphertext:r,key:n,iv:o.iv,algorithm:e,mode:o.mode,padding:o.padding,blockSize:e.blockSize,formatter:a.format})},decrypt:function(e,t,n,a){return a=this.cfg.extend(a),t=this._parse(t,a.format),e.createDecryptor(n,a).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),y=(n.kdf={}).OpenSSL={execute:function(e,t,n,a){a||(a=r.random(8));var i=u.create({keySize:t+n}).compute(e,a),o=r.create(i.words.slice(t),4*n);return i.sigBytes=4*t,m.create({key:i,iv:o,salt:a})}},b=a.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:y}),encrypt:function(e,t,n,a){var i=(a=this.cfg.extend(a)).kdf.execute(n,e.keySize,e.ivSize);a.iv=i.iv;var r=g.encrypt.call(this,e,t,i.key,a);return r.mixIn(i),r},decrypt:function(e,t,n,a){a=this.cfg.extend(a),t=this._parse(t,a.format);var i=a.kdf.execute(n,e.keySize,e.ivSize,t.salt);return a.iv=i.iv,g.decrypt.call(this,e,t,i.key,a)}})}())));var e}var $K,YK={exports:{}};var JK,QK={exports:{}};var ZK,eW={exports:{}};function tW(){return ZK?eW.exports:(ZK=1,eW.exports=(e=iK(),qK(),
5075/** @preserve
5076       * Counter block mode compatible with  Dr Brian Gladman fileenc.c
5077       * derived from CryptoJS.mode.CTR
5078       * Jan Hruby [email protected]
5079       */
5080e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function n(e){if(255&~(e>>24))e+=1<<24;else{var t=e>>16&255,n=e>>8&255,a=255&e;255===t?(t=0,255===n?(n=0,255===a?a=0:++a):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=a}return e}function a(e){return 0===(e[0]=n(e[0]))&&(e[1]=n(e[1])),e}var i=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,r=this._iv,o=this._counter;r&&(o=this._counter=r.slice(0),this._iv=void 0),a(o);var s=o.slice(0);n.encryptBlock(s,0);for(var l=0;l<i;l++)e[t+l]^=s[l]}});return t.Decryptor=i,t}(),e.mode.CTRGladman));var e}var nW,aW={exports:{}};var iW,rW={exports:{}};var oW,sW={exports:{}};var lW,uW={exports:{}};var cW,dW={exports:{}};var hW,pW={exports:{}};var fW,mW={exports:{}};var vW,gW={exports:{}};
vendor: 7,765 bytes, lines 5080-5091
5080var yW,bW={exports:{}};var _W,wW={exports:{}};var kW,CW={exports:{}};var SW,TW={exports:{}};var AW,EW={exports:{}};var IW;var xW,NW,PW,MW,OW,RW,DW=(IW||(IW=1,nK.exports=function(e){return e}(iK(),sK(),cK(),pK(),vK(),bK(),kK(),TK(),AK||(AK=1,EK.exports=(RW=iK(),TK(),NW=(xW=RW).lib.WordArray,PW=xW.algo,MW=PW.SHA256,OW=PW.SHA224=MW.extend({_doReset:function(){this._hash=new NW.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=MW._doFinalize.call(this);return e.sigBytes-=4,e}}),xW.SHA224=MW._createHelper(OW),xW.HmacSHA224=MW._createHmacHelper(OW),RW.SHA224)),NK(),function(){return PK?MK.exports:(PK=1,MK.exports=(s=iK(),sK(),NK(),t=(e=s).x64,n=t.Word,a=t.WordArray,i=e.algo,r=i.SHA512,o=i.SHA384=r.extend({_doReset:function(){this._hash=new a.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var e=r._doFinalize.call(this);return e.sigBytes-=16,e}}),e.SHA384=r._createHelper(o),e.HmacSHA384=r._createHmacHelper(o),s.SHA384));var e,t,n,a,i,r,o,s}(),DK(),function(){return LK||(LK=1,BK.exports=(e=iK(),
5081/** @preserve
5082      			(c) 2012 by Cédric Mesnil. All rights reserved.
5083      
5084      			Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5085      
5086      			    - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
5087      			    - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
5088      
5089      			THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
5090      			*/
5091function(){var t=e,n=t.lib,a=n.WordArray,i=n.Hasher,r=t.algo,o=a.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=a.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=a.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=a.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),c=a.create([0,1518500249,1859775393,2400959708,2840853838]),d=a.create([1352829926,1548603684,1836072691,2053994217,0]),h=r.RIPEMD160=i.extend({_doReset:function(){this._hash=a.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var a=t+n,i=e[a];e[a]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var r,h,b,_,w,k,C,S,T,A,E,I=this._hash.words,x=c.words,N=d.words,P=o.words,M=s.words,O=l.words,R=u.words;for(k=r=I[0],C=h=I[1],S=b=I[2],T=_=I[3],A=w=I[4],n=0;n<80;n+=1)E=r+e[t+P[n]]|0,E+=n<16?p(h,b,_)+x[0]:n<32?f(h,b,_)+x[1]:n<48?m(h,b,_)+x[2]:n<64?v(h,b,_)+x[3]:g(h,b,_)+x[4],E=(E=y(E|=0,O[n]))+w|0,r=w,w=_,_=y(b,10),b=h,h=E,E=k+e[t+M[n]]|0,E+=n<16?g(C,S,T)+N[0]:n<32?v(C,S,T)+N[1]:n<48?m(C,S,T)+N[2]:n<64?f(C,S,T)+N[3]:p(C,S,T)+N[4],E=(E=y(E|=0,R[n]))+A|0,k=A,A=T,T=y(S,10),S=C,C=E;E=I[1]+b+T|0,I[1]=I[2]+_+A|0,I[2]=I[3]+w+k|0,I[3]=I[4]+r+C|0,I[4]=I[0]+h+S|0,I[0]=E},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,a=8*e.sigBytes;t[a>>>5]|=128<<24-a%32,t[14+(a+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,r=i.words,o=0;o<5;o++){var s=r[o];r[o]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,n){return e^t^n}function f(e,t,n){return e&t|~e&n}function m(e,t,n){return(e|~t)^n}function v(e,t,n){return e&n|t&~n}function g(e,t,n){return e^(t|~n)}function y(e,t){return e<<t|e>>>32-t}t.RIPEMD160=i._createHelper(h),t.HmacRIPEMD160=i._createHmacHelper(h)}(),e.RIPEMD160)),BK.exports;var e}(),XK(),function(){return jK?UK.exports:(jK=1,UK.exports=(l=iK(),kK(),XK(),t=(e=l).lib,n=t.Base,a=t.WordArray,i=e.algo,r=i.SHA1,o=i.HMAC,s=i.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:r,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,i=o.create(n.hasher,e),r=a.create(),s=a.create([1]),l=r.words,u=s.words,c=n.keySize,d=n.iterations;l.length<c;){var h=i.update(t).finalize(s);i.reset();for(var p=h.words,f=p.length,m=h,v=1;v<d;v++){m=i.finalize(m),i.reset();for(var g=m.words,y=0;y<f;y++)p[y]^=g[y]}r.concat(h),u[0]++}return r.sigBytes=4*c,r}}),e.PBKDF2=function(e,t,n){return s.create(n).compute(e,t)},l.PBKDF2));var e,t,n,a,i,r,o,s,l}(),KK(),qK(),function(){return $K?YK.exports:($K=1,YK.exports=(e=iK(),qK(),e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function n(e,t,n,a){var i=this._iv;if(i){var r=i.slice(0);this._iv=void 0}else r=this._prevBlock;a.encryptBlock(r,0);for(var o=0;o<n;o++)e[t+o]^=r[o]}return t.Encryptor=t.extend({processBlock:function(e,t){var a=this._cipher,i=a.blockSize;n.call(this,e,t,i,a),this._prevBlock=e.slice(t,t+i)}}),t.Decryptor=t.extend({processBlock:function(e,t){var a=this._cipher,i=a.blockSize,r=e.slice(t,t+i);n.call(this,e,t,i,a),this._prevBlock=r}}),t}(),e.mode.CFB));var e}(),function(){return JK?QK.exports:(JK=1,QK.exports=(n=iK(),qK(),n.mode.CTR=(e=n.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,a=n.blockSize,i=this._iv,r=this._counter;i&&(r=this._counter=i.slice(0),this._iv=void 0);var o=r.slice(0);n.encryptBlock(o,0),r[a-1]=r[a-1]+1|0;for(var s=0;s<a;s++)e[t+s]^=o[s]}}),e.Decryptor=t,e),n.mode.CTR));var e,t,n}(),tW(),function(){return nW?aW.exports:(nW=1,aW.exports=(n=iK(),qK(),n.mode.OFB=(e=n.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,a=n.blockSize,i=this._iv,r=this._keystream;i&&(r=this._keystream=i.slice(0),this._iv=void 0),n.encryptBlock(r,0);for(var o=0;o<a;o++)e[t+o]^=r[o]}}),e.Decryptor=t,e),n.mode.OFB));var e,t,n}(),function(){return iW?rW.exports:(iW=1,rW.exports=(t=iK(),qK(),t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e),t.mode.ECB));var e,t}(),function(){return oW?sW.exports:(oW=1,sW.exports=(e=iK(),qK(),e.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,a=4*t,i=a-n%a,r=n+i-1;
5091e.clamp(),e.words[r>>>2]|=i<<24-r%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923));var e}(),function(){return lW?uW.exports:(lW=1,uW.exports=(e=iK(),qK(),e.pad.Iso10126={pad:function(t,n){var a=4*n,i=a-t.sigBytes%a;t.concat(e.lib.WordArray.random(i-1)).concat(e.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126));var e}(),function(){return cW?dW.exports:(cW=1,dW.exports=(e=iK(),qK(),e.pad.Iso97971={pad:function(t,n){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,n)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971));var e}(),function(){return hW?pW.exports:(hW=1,pW.exports=(e=iK(),qK(),e.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){for(var t=e.words,n=e.sigBytes-1;!(t[n>>>2]>>>24-n%4*8&255);)n--;e.sigBytes=n+1}},e.pad.ZeroPadding));var e}(),function(){return fW?mW.exports:(fW=1,mW.exports=(e=iK(),qK(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return vW?gW.exports:(vW=1,gW.exports=(a=iK(),qK(),t=(e=a).lib.CipherParams,n=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(n)},parse:function(e){var a=n.parse(e);return t.create({ciphertext:a})}},a.format.Hex));var e,t,n,a}(),function(){return yW||(yW=1,bW.exports=(e=iK(),vK(),bK(),KK(),qK(),function(){var t=e,n=t.lib.BlockCipher,a=t.algo,i=[],r=[],o=[],s=[],l=[],u=[],c=[],d=[],h=[],p=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,a=0;for(t=0;t<256;t++){var f=a^a<<1^a<<2^a<<3^a<<4;f=f>>>8^255&f^99,i[n]=f,r[f]=n;var m=e[n],v=e[m],g=e[v],y=257*e[f]^16843008*f;o[n]=y<<24|y>>>8,s[n]=y<<16|y>>>16,l[n]=y<<8|y>>>24,u[n]=y,y=16843009*g^65537*v^257*m^16843008*n,c[f]=y<<24|y>>>8,d[f]=y<<16|y>>>16,h[f]=y<<8|y>>>24,p[f]=y,n?(n=m^e[e[e[g^m]]],a^=e[e[a]]):n=a=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],m=a.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,a=4*((this._nRounds=n+6)+1),r=this._keySchedule=[],o=0;o<a;o++)if(o<n)r[o]=t[o];else{var s=r[o-1];o%n?n>6&&o%n==4&&(s=i[s>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s]):(s=i[(s=s<<8|s>>>24)>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s],s^=f[o/n|0]<<24),r[o]=r[o-n]^s}for(var l=this._invKeySchedule=[],u=0;u<a;u++)o=a-u,s=u%4?r[o]:r[o-4],l[u]=u<4||o<=4?s:c[i[s>>>24]]^d[i[s>>>16&255]]^h[i[s>>>8&255]]^p[i[255&s]]}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,o,s,l,u,i)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,c,d,h,p,r),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,a,i,r,o,s){for(var l=this._nRounds,u=e[t]^n[0],c=e[t+1]^n[1],d=e[t+2]^n[2],h=e[t+3]^n[3],p=4,f=1;f<l;f++){var m=a[u>>>24]^i[c>>>16&255]^r[d>>>8&255]^o[255&h]^n[p++],v=a[c>>>24]^i[d>>>16&255]^r[h>>>8&255]^o[255&u]^n[p++],g=a[d>>>24]^i[h>>>16&255]^r[u>>>8&255]^o[255&c]^n[p++],y=a[h>>>24]^i[u>>>16&255]^r[c>>>8&255]^o[255&d]^n[p++];u=m,c=v,d=g,h=y}m=(s[u>>>24]<<24|s[c>>>16&255]<<16|s[d>>>8&255]<<8|s[255&h])^n[p++],v=(s[c>>>24]<<24|s[d>>>16&255]<<16|s[h>>>8&255]<<8|s[255&u])^n[p++],g=(s[d>>>24]<<24|s[h>>>16&255]<<16|s[u>>>8&255]<<8|s[255&c])^n[p++],y=(s[h>>>24]<<24|s[u>>>16&255]<<16|s[c>>>8&255]<<8|s[255&d])^n[p++],e[t]=m,e[t+1]=v,e[t+2]=g,e[t+3]=y},keySize:8});t.AES=n._createHelper(m)}(),e.AES)),bW.exports;var e}(),function(){return _W||(_W=1,wW.exports=(e=iK(),vK(),bK(),KK(),qK(),function(){var t=e,n=t.lib,a=n.WordArray,i=n.BlockCipher,r=t.algo,o=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u
vendor: 7,629 bytes, line 5091
5091=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],
vendor: 2,818 bytes, line 5091
5091c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=r.DES=i.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var a=o[n]-1;t[n]=e[a>>>5]>>>31-a%32&1}for(var i=this._subKeys=[],r=0;r<16;r++){var u=i[r]=[],c=l[r];for(n=0;n<24;n++)u[n/6|0]|=t[(s[n]-1+c)%28]<<31-n%6,u[4+(n/6|0)]|=t[28+(s[n+24]-1+c)%28]<<31-n%6;for(u[0]=u[0]<<1|u[0]>>>31,n=1;n<7;n++)u[n]=u[n]>>>4*(n-1)+3;u[7]=u[7]<<5|u[7]>>>27}var d=this._invSubKeys=[];for(n=0;n<16;n++)d[n]=i[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],h.call(this,4,252645135),h.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),h.call(this,1,1431655765);for(var a=0;a<16;a++){for(var i=n[a],r=this._lBlock,o=this._rBlock,s=0,l=0;l<8;l++)s|=u[l][((o^i[l])&c[l])>>>0];this._lBlock=o,this._rBlock=r^s}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,h.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function p(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}t.DES=i._createHelper(d);var f=r.TripleDES=i.extend({_doReset:function(){var e=this._key.words;this._des1=d.createEncryptor(a.create(e.slice(0,2))),this._des2=d.createEncryptor(a.create(e.slice(2,4))),this._des3=d.createEncryptor(a.create(e.slice(4,6)))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=i._createHelper(f)}(),e.TripleDES)),wW.exports;var e}(),function(){return kW||(kW=1,CW.exports=(e=iK(),vK(),bK(),KK(),qK(),function(){var t=e,n=t.lib.StreamCipher,a=t.algo,i=a.RC4=n.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,a=this._S=[],i=0;i<256;i++)a[i]=i;i=0;for(var r=0;i<256;i++){var o=i%n,s=t[o>>>2]>>>24-o%4*8&255;r=(r+a[i]+s)%256;var l=a[i];a[i]=a[r],a[r]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=r.call(this)},keySize:8,ivSize:0});function r(){for(var e=this._S,t=this._i,n=this._j,a=0,i=0;i<4;i++){n=(n+e[t=(t+1)%256])%256;var r=e[t];e[t]=e[n],e[n]=r,a|=e[(e[t]+e[n])%256]<<24-8*i}return this._i=t,this._j=n,a}t.RC4=n._createHelper(i);var o=a.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)r.call(this)}});t.RC4Drop=n._createHelper(o)}(),e.RC4)),CW.exports;var e}
vendor: 4,403 bytes, line 5091
5091(),function(){return SW?TW.exports:(SW=1,TW.exports=(e=iK(),vK(),bK(),KK(),qK(),function(){var t=e,n=t.lib.StreamCipher,a=t.algo,i=[],r=[],o=[],s=a.Rabbit=n.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var a=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)l.call(this);for(n=0;n<8;n++)i[n]^=a[n+4&7];if(t){var r=t.words,o=r[0],s=r[1],u=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=u>>>16|4294901760&c,h=c<<16|65535&u;for(i[0]^=u,i[1]^=d,i[2]^=c,i[3]^=h,i[4]^=u,i[5]^=d,i[6]^=c,i[7]^=h,n=0;n<4;n++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var a=0;a<4;a++)i[a]=16711935&(i[a]<<8|i[a]>>>24)|4278255360&(i[a]<<24|i[a]>>>8),e[t+a]^=i[a]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)r[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<r[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<r[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<r[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<r[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<r[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<r[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<r[6]>>>0?1:0)|0,this._b=t[7]>>>0<r[7]>>>0?1:0,n=0;n<8;n++){var a=e[n]+t[n],i=65535&a,s=a>>>16,l=((i*i>>>17)+i*s>>>15)+s*s,u=((4294901760&a)*a|0)+((65535&a)*a|0);o[n]=l^u}e[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,e[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,e[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,e[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,e[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,e[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,e[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,e[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.Rabbit=n._createHelper(s)}(),e.Rabbit));var e}(),function(){return AW?EW.exports:(AW=1,EW.exports=(e=iK(),vK(),bK(),KK(),qK(),function(){var t=e,n=t.lib.StreamCipher,a=t.algo,i=[],r=[],o=[],s=a.RabbitLegacy=n.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],a=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)l.call(this);for(i=0;i<8;i++)a[i]^=n[i+4&7];if(t){var r=t.words,o=r[0],s=r[1],u=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=u>>>16|4294901760&c,h=c<<16|65535&u;for(a[0]^=u,a[1]^=d,a[2]^=c,a[3]^=h,a[4]^=u,a[5]^=d,a[6]^=c,a[7]^=h,i=0;i<4;i++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var a=0;a<4;a++)i[a]=16711935&(i[a]<<8|i[a]>>>24)|4278255360&(i[a]<<24|i[a]>>>8),e[t+a]^=i[a]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)r[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<r[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<r[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<r[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<r[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<r[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<r[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<r[6]>>>0?1:0)|0,this._b=t[7]>>>0<r[7]>>>0?1:0,n=0;n<8;n++){var a=e[n]+t[n],i=65535&a,s=a>>>16,l=((i*i>>>17)+i*s>>>15)+s*s,u=((4294901760&a)*a|0)+((65535&a)*a|0);o[n]=l^u}e[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,e[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,e[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,e[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,e[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,e[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,e[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,e[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.RabbitLegacy=n._createHelper(s)}(),e.RabbitLegacy));var e}
5091())),nK.exports);const LW=ER(DW),BW=[{iso:"AC",code:"+247 ",mask:"XXXX"},{iso:"AD",code:"+376",mask:"XXX XXX"},{iso:"AE",code:"+971 5",mask:"X XXX XXXX"},{iso:"AE",code:"+971",mask:"X XXX XXXX"},{iso:"AF",code:"+93",mask:"XX XXX XXXX"},{iso:"AG",code:"+1(268)",mask:"XXX XXXX"},{iso:"AI",code:"+1(264)",mask:"XXX XXXX"},{iso:"AL",code:"+355",mask:"(XXX) XXX XXX"},{iso:"AM",code:"+374",mask:" XX XXX XXX"},{iso:"AN",code:"+599",mask:"XXX XXXX"},{iso:"AN",code:"+599",mask:"XXX XXXX"},{iso:"AN",code:"+599 9",mask:"XXX XXXX"},{iso:"AO",code:"+244",mask:"(XXX) XXX XXX"},{iso:"AQ",code:"+672 1",mask:"XX XXX"},{iso:"AR",code:"+54",mask:"(XXX) XXX XXXX"},{iso:"AS",code:"+1(684)",mask:"XXX XXXX"},{iso:"AT",code:"+43",mask:"(XXX) XXX XXXX"},{iso:"AU",code:"+61",mask:"X XXXX XXXX"},{iso:"AW",code:"+297",mask:"XXX XXXX"},{iso:"AZ",code:"+994",mask:"XX XXX XX XX"},{iso:"BA",code:"+387",mask:"XX XXXXX"},{iso:"BA",code:"+387",mask:"XX XXXX"},{iso:"BB",code:"+1(246)",mask:"XXX XXXX"},{iso:"BD",code:"+880 ",mask:"XX XXX XXX"},{iso:"BE",code:"+32",mask:"(XXX) XXX XXX"},{iso:"BF",code:"+226",mask:"XX XX XXXX"},{iso:"BG",code:"+359",mask:"(XXX) XXX XXX"},{iso:"BH",code:"+973",mask:"XXXX XXXX"},{iso:"BI",code:"+257",mask:"XX XX XXXX"},{iso:"BJ",code:"+229",mask:"XX XX XXXX"},{iso:"BM",code:"+1(441)",mask:"XXX XXXX"},{iso:"BN",code:"+673",mask:"XXX XXXX"},{iso:"BO",code:"+591",mask:"X XXX XXXX"},{iso:"BR",code:"+55",mask:"(XX) XXXX XXXX"},{iso:"BS",code:"+1(242)",mask:"XXX XXXX"},{iso:"BT",code:"+975 17",mask:"XXX XXX"},{iso:"BT",code:"+975",mask:"X XXX XXX"},{iso:"BW",code:"+267",mask:"XX XXX XXX"},{iso:"BY",code:"+375",mask:"(XX) XXX XX XX"},{iso:"BZ",code:"+501",mask:"XXX XXXX"},{iso:"CA",code:"+1",mask:"(XXX) XXX XXXX"},{iso:"CD",code:"+243",mask:"(XXX) XXX XXX"},{iso:"CF",code:"+236",mask:"XX XX XXXX"},{iso:"CG",code:"+242",mask:"XX XXX XXXX"},{iso:"CH",code:"+41",mask:"XX XXX XXXX"},{iso:"CI",code:"+225",mask:"XX XXX XXX"},{iso:"CK",code:"+682",mask:"XX XXX"},{iso:"CL",code:"+56",mask:"X XXXX XXXX"},{iso:"CM",code:"+237",mask:"XXXX XXXX"},{iso:"CN",code:"+86",mask:"(XXX) XXXX XXXX"},{iso:"CO",code:"+57",mask:"(XXX) XXX XXXX"},{iso:"CR",code:"+506",mask:"XXXX XXXX"},{iso:"CU",code:"+53",mask:"X XXX XXXX"},{iso:"CV",code:"+238",mask:"(XXX) XX XX"},{iso:"CW",code:"+599",mask:"XXX XXXX"},{iso:"CY",code:"+357",mask:"XX XXX XXX"},{iso:"CZ",code:"+420",mask:"(XXX) XXX XXX"},{iso:"DE",code:"+49",mask:"(XXXX) XXX XXXX"},{iso:"DJ",code:"+253",mask:"XX XX XX XX"},{iso:"DK",code:"+45",mask:"XX XX XX XX"},{iso:"DM",code:"+1(767)",mask:"XXX XXXX"},{iso:"DO",code:"+1(809)",mask:"XXX XXXX"},{iso:"DZ",code:"+213",mask:"XX XXX XXXX"},{iso:"EC",code:"+593",mask:"XX XXX XXXX"},{iso:"EC",code:"+593",mask:"X XXX XXXX"},{iso:"EE",code:"+372",mask:"XXXX XXXX"},{iso:"EG",code:"+20",mask:"(XXX) XXX XXXX"},{iso:"ER",code:"+291",mask:"X XXX XXX"},{iso:"ES",code:"+34",mask:"(XXX) XXX XXX"},{iso:"ET",code:"+251",mask:"XX XXX XXXX"},{iso:"FI",code:"+358",mask:"(XXX) XXX XX XX"},{iso:"FJ",code:"+679",mask:"XX XXXXX"},{iso:"FK",code:"+500",mask:"XXXXX"},{iso:"FM",code:"+691",mask:"XXX XXXX"},{iso:"FO",code:"+298",mask:"XXX XXX"},{iso:"FR",code:"+33",mask:"(XXX) XXX XXX"},{iso:"GA",code:"+241",mask:"X XX XX XX"},{iso:"GD",code:"+1(473)",mask:"XXX XXXX"},{iso:"GE",code:"+995",mask:"(XXX) XXX XXX"},{iso:"GF",code:"+594",mask:"XXXXX XXXX"},{iso:"GH",code:"+233",mask:"(XXX) XXX XXX"},{iso:"GI",code:"+350",mask:"XXX XXXXX"},{iso:"GL",code:"+299",mask:"XX XX XX"},{iso:"GM",code:"+220",mask:"(XXX) XX XX"},{iso:"GN",code:"+224",mask:"XX XXX XXX"},{iso:"GQ",code:"+240",mask:"XX XXX XXXX"},{iso:"GR",code:"+30",mask:"(XXX) XXX XXXX"},{iso:"GT",code:"+502",mask:"X XXX XXXX"},{iso:"GU",code:"+1(671)",mask:"XXX XXXX"},{iso:"GW",code:"+245",mask:"X XXXXXX"},{iso:"GY",code:"+592",mask:"XXX XXXX"},{iso:"HK",code:"+852",mask:"XXXX XXXX"},{iso:"HN",code:"+504",mask:"XXXX XXXX"},{iso:"HR",code:"+385",mask:"XX XXX XXX"},{iso:"HT",code:"+509",mask:"XX XX XXXX"},{iso:"HU",code:"+36",mask:"(XXX) XXX XXX"},{iso:"ID",code:"+62(8",mask:"XX) XXX XXXX"},{iso:"IE",code:"+353",mask:"(XXX) XXX XXX"},{iso:"IL",code:"+972",mask:" X XXX XXXX"},{iso:"IN",code:"+91(",mask:"XXXX) XXX XXX"},{iso:"IO",code:"+246",mask:"XXX XXXX"}
5091,{iso:"IQ",code:"+964",mask:"(XXX) XXX XXXX"},{iso:"IR",code:"+98",mask:"(XXX) XXX XXXX"},{iso:"IS",code:"+354 ",mask:"XXX XXXX"},{iso:"IT",code:"+39",mask:"(XXX) XXXX XXX"},{iso:"JM",code:"+1(876)",mask:"XXX XXXX"},{iso:"JO",code:"+962 ",mask:"X XXXX XXXX"},{iso:"JP",code:"+81 ",mask:"XX XXXX XXXX"},{iso:"JP",code:"+81",mask:"(XXX) XXX XXX"},{iso:"KE",code:"+254",mask:"XXX XXXXXX"},{iso:"KG",code:"+996",mask:"(XXX) XXX XXX"},{iso:"KH",code:"+855",mask:"XX XXX XXX"},{iso:"KI",code:"+686",mask:"XX XXX"},{iso:"KM",code:"+269",mask:"XX XXXXX"},{iso:"KN",code:"+1(869)",mask:"XXX XXXX"},{iso:"KP",code:"+850 191 ",mask:"XXX XXXX"},{iso:"KP",code:"+850 ",mask:"XXX XXXX XXX"},{iso:"KR",code:"+82 ",mask:"XX XXX XXXX"},{iso:"KW",code:"+965 ",mask:"XXXX XXXX"},{iso:"KY",code:"+1(345)",mask:"XXX XXXX"},{iso:"KZ",code:"+7(6",mask:"XX) XXX XX XX"},{iso:"KZ",code:"+7(7",mask:"XX) XXX XX XX"},{iso:"LA",code:"+856",mask:"XX XXX XXX"},{iso:"LB",code:"+961",mask:"XX XXX XXX"},{iso:"LB",code:"+961",mask:"X XXX XXX"},{iso:"LC",code:"+1(758)",mask:"XXX XXXX"},{iso:"LI",code:"+423",mask:"(XXX) XXX XXXX"},{iso:"LK",code:"+94",mask:"XX XXX XXXX"},{iso:"LR",code:"+231",mask:"XX XXX XXX"},{iso:"LS",code:"+266",mask:"X XXX XXXX"},{iso:"LT",code:"+370",mask:"(XXX) XX XXX"},{iso:"LU",code:"+352",mask:"(XXX) XXX XXX"},{iso:"LV",code:"+371",mask:"XX XXX XXX"},{iso:"LY",code:"+218",mask:"XX XXX XXX"},{iso:"MA",code:"+212",mask:"XX XXXX XXX"},{iso:"MC",code:"+377",mask:"(XXX) XXX XXX"},{iso:"MC",code:"+377",mask:"XX XXX XXX"},{iso:"MD",code:"+373",mask:"XXXX XXXX"},{iso:"ME",code:"+382",mask:"XX XXX XXX"},{iso:"MG",code:"+261",mask:"XX XX XXXXX"},{iso:"MH",code:"+692",mask:"XXX XXXX"},{iso:"MK",code:"+389",mask:"XX XXX XXX"},{iso:"ML",code:"+223",mask:"XX XX XXXX"},{iso:"MM",code:"+95",mask:"XX XXX XXX"},{iso:"MN",code:"+976",mask:"XX XX XXXX"},{iso:"MO",code:"+853 ",mask:"XXXX XXXX"},{iso:"MP",code:"+1(670)",mask:"XXX XXXX"},{iso:"MQ",code:"+596",mask:"(XXX) XX XX XX"},{iso:"MR",code:"+222",mask:"XX XX XXXX"},{iso:"MS",code:"+1(664)",mask:"XXX XXXX"},{iso:"MT",code:"+356",mask:"XXXX XXXX"},{iso:"MU",code:"+230",mask:"XXX XXXX"},{iso:"MV",code:"+960",mask:"XXX XXXX"},{iso:"MW",code:"+265 1",mask:"XXX XXX"},{iso:"MW",code:"+265",mask:"X XXXX XXXX"},{iso:"MX",code:"+52",mask:"(XXX) XXX XXXX"},{iso:"MY",code:"+60",mask:"XX XXX XXXX"},{iso:"MZ",code:"+258",mask:"XX XXX XXX"},{iso:"NA",code:"+264",mask:"XX XXX XXXX"},{iso:"NC",code:"+687",mask:"XX XXXX"},{iso:"NE",code:"+227",mask:"XX XX XXXX"},{iso:"NF",code:"+672 3",mask:"XX XXX"},{iso:"NG",code:"+234",mask:"(XXX) XXX XXXX"},{iso:"NI",code:"+505",mask:" XXXX XXXX"},{iso:"NL",code:"+31",mask:"XX XXX XXXX"},{iso:"NO",code:"+47",mask:"(XXX) XX XXX"},{iso:"NP",code:"+977",mask:"XX XXX XXX"},{iso:"NR",code:"+674",mask:"XXX XXXX"},{iso:"NU",code:"+683",mask:"XXXX"},{iso:"NZ",code:"+64",mask:"(XXX) XXX XXX"},{iso:"OM",code:"+968",mask:"XX XXX XXX"},{iso:"PA",code:"+507",mask:"XXX XXXX"},{iso:"PE",code:"+51",mask:"(XXX) XXX XXX"},{iso:"PF",code:"+689",mask:"XX XX XX"},{iso:"PG",code:"+675",mask:"(XXX) XX XXX"},{iso:"PH",code:"+63",mask:"(XXX) XXX XXXX"},{iso:"PK",code:"+92",mask:"(XXX) XXX XXXX"},{iso:"PL",code:"+48",mask:"(XXX) XXX XXX"},{iso:"PS",code:"+970",mask:"XX XXX XXXX"},{iso:"PT",code:"+351",mask:"XX XXX XXXX"},{iso:"PW",code:"+680",mask:"XXX XXXX"},{iso:"PY",code:"+595",mask:"(XXX) XXX XXX"},{iso:"QA",code:"+974",mask:"XXXX XXXX"},{iso:"RE",code:"+262",mask:"XXXXX XXXX"},{iso:"RO",code:"+40",mask:"XX XXX XXXX"},{iso:"RS",code:"+381",mask:"XX XXX XXXX"},{iso:"RU",code:"+7",mask:"(XXX) XXX XX XX"},{iso:"RW",code:"+250",mask:"(XXX) XXX XXX"},{iso:"SA",code:"+966 5",mask:"XXXX XXXX"},{iso:"SA",code:"+966",mask:"X XXX XXXX"},{iso:"SB",code:"+677",mask:"XXX XXXX"},{iso:"SB",code:"+677",mask:"XXXXX"},{iso:"SC",code:"+248",mask:"X XXX XXX"},{iso:"SD",code:"+249",mask:"XX XXX XXXX"},{iso:"SE",code:"+46",mask:"XX XXX XXXX"},{iso:"SG",code:"+65",mask:"XXXX XXXX"},{iso:"SH",code:"+290",mask:"XXXX"},{iso:"SH",code:"+290",mask:"XXXX"},{iso:"SI",code:"+386",mask:"XX XXX XXX"},{iso:"SK",code:"+421",mask:"(XXX) XXX XXX"},{iso:"SL",code:"+232",mask:"XX XXXXXX"},{iso:"SM",code:"+378",mask:"XXXX XXXXXX"},{iso:"SN",code:"+221",mask:"XX XXX XXXX"},{iso:"SO",code:"+252",mask:"XX XXX XXX"},{iso:"SO",code:"+252",mask:"X XXX XXX"},{iso:"SO",code:"+252",mask:"X XXX XXX"},{iso:"SR",code:"+597",mask:"XXX XXXX"},{iso:"SR",code:"+597",mask:"XXX XXX"},{iso:"SS",code:"+211",mask:"XX XXX XXXX"},{iso:"ST",code:"+239",mask:"XX XXXXX"},{iso:"SV",code:"+503",mask:"XX XX XXXX"},{iso:"SX",code:"+1(721)",mask:"XXX XXXX"},{iso:"SY",code:"+963",mask:"XX XXXX XXX"},{iso:"SZ",code:"+268",mask:"XX XX XXXX"},{iso:"TC",code:"+1(649)",mask:"XXX XXXX"},{iso:"TD",code:"+235 ",mask:"XX XX XX XX"},{iso:"TG",code:"+228 ",mask:"XX XXX XXX"},{iso:"TH",code:"+66",mask:"XX XXX XXXX"},{iso:"TJ",code:"+992",mask:"XX XXX XXXX"},{iso:"TK",code:"+690",mask:"XXXX"},{iso:"TL",code:"+670",mask:"XXX XXXX"},{iso:"TM",code:"+993",mask:"X XXX XXXX"},{iso:"TN",code:"+216",mask:"XX XXX XXX"},{iso:"TO",code:"+676",mask:"XXXXX"},{iso:"TR",code:"+90",mask:"(XXX) XXX XXXX"},{iso:"TT",code:"+1(868)",mask:"XXX XXXX"},{iso:"TV",code:"+688",mask:"XXXXXX"},{iso:"TW",code:"+886",mask:"X XXXX XXXX"},{iso:"TW",code:"+886",mask:"XXXX XXXX"},{iso:"TZ",code:"+255",mask:"XX XXX XXXX"},{iso:"UA",code:"+380",mask:"(XX) XXX XX XX"},{iso:"UG",code:"+256",mask:"(XXX) XXX XXX"},{iso:"UK",code:"+44 ",mask:"XX XXXX XXXX"},{iso:"US",code:"+1",mask:"XXXXXX XXXX"},{iso:"UY",code:"+598",mask:"X XXX XX XX"},{iso:"UZ",code:"+998",mask:"XX XXX XXXX"},{iso:"VA",code:"+39 6 698 ",mask:"XXXXX"},{iso:"VC",code:"+1(784)",mask:"XXX XXXX"},{iso:"VE",code:"+58",mask:"(XXX) XXX XXXX"},{iso:"VG",code:"+1(284)",mask:"XXX XXXX"},{iso:"VI",code:"+1(340)",mask:"XXX XXXX"},{iso:"VN",code:"+84",mask:"XX XXXX XXX"},{iso:"VU",code:"+678",mask:"XX XXXXX"},{iso:"WF",code:"+681",mask:"XX XXXX"},{iso:"WS",code:"+685",mask:"XX XXXX"},{iso:"YE",code:"+967",mask:"XXX XXX XXX"},{iso:"ZA",code:"+27",mask:"XX XXX XXXX"},{iso:"ZM",code:"+260",mask:"XX XXX XXXX"},{iso:"ZW",code:"+263",mask:"X XXXXXX"}],FW=[{iso:"DZ",code:"213",name:"Algeria"},{iso:"AD",code:"376",name:"Andorra"},{iso:"AO",code:"244",name:"Angola"},{iso:"AI",code:"1264",name:"Anguilla"},{iso:"AG",code:"1268",name:"Antigua & Barbuda"},{iso:"AR",code:"54",name:"Argentina"},{iso:"AM",code:"374",name:"Armenia"},{iso:"AW",code:"297",name:"Aruba"},{iso:"AU",code:"61",name:"Australia"},{iso:"AT",code:"43",name:"Austria"}
5091,{iso:"AZ",code:"994",name:"Azerbaijan"},{iso:"BS",code:"1242",name:"Bahamas"},{iso:"BH",code:"973",name:"Bahrain"},{iso:"BD",code:"880",name:"Bangladesh"},{iso:"BB",code:"1246",name:"Barbados"},{iso:"BY",code:"375",name:"Belarus"},{iso:"BE",code:"32",name:"Belgium"},{iso:"BZ",code:"501",name:"Belize"},{iso:"BJ",code:"229",name:"Benin"},{iso:"BM",code:"1441",name:"Bermuda"},{iso:"BT",code:"975",name:"Bhutan"},{iso:"BO",code:"591",name:"Bolivia"},{iso:"BA",code:"387",name:"Bosnia Herzegovina"},{iso:"BW",code:"267",name:"Botswana"},{iso:"BR",code:"55",name:"Brazil"},{iso:"BN",code:"673",name:"Brunei"},{iso:"BG",code:"359",name:"Bulgaria"},{iso:"BF",code:"226",name:"Burkina Faso"},{iso:"BI",code:"257",name:"Burundi"},{iso:"KH",code:"855",name:"Cambodia"},{iso:"CM",code:"237",name:"Cameroon"},{iso:"CA",code:"1",name:"Canada"},{iso:"CV",code:"238",name:"Cape Verde Islands "},{iso:"KY",code:"1345",name:"Cayman Islands"},{iso:"CF",code:"236",name:"Central African Republic "},{iso:"CL",code:"56",name:"Chile"},{iso:"CN",code:"86",name:"China"},{iso:"CO",code:"57",name:"Colombia"},{iso:"KM",code:"269",name:"Comoros"},{iso:"CG",code:"242",name:"Congo"},{iso:"CK",code:"682",name:"Cook Islands"},{iso:"CR",code:"506",name:"Costa Rica"},{iso:"HR",code:"385",name:"Croatia"},{iso:"CU",code:"53",name:"Cuba"},{iso:"CY",code:"90392",name:"Cyprus North"},{iso:"CY",code:"357",name:"Cyprus South"},{iso:"CZ",code:"42",name:"Czech Republic"},{iso:"DK",code:"45",name:"Denmark"},{iso:"DJ",code:"253",name:"Djibouti"},{iso:"DM",code:"1809",name:"Dominica"},{iso:"DO",code:"1809",name:"Dominican Republic "},{iso:"EC",code:"593",name:"Ecuador"},{iso:"EG",code:"20",name:"Egypt"},{iso:"SV",code:"503",name:"El Salvador"},{iso:"GQ",code:"240",name:"Equatorial Guinea"},{iso:"ER",code:"291",name:"Eritrea"},{iso:"EE",code:"372",name:"Estonia"},{iso:"ET",code:"251",name:"Ethiopia"},{iso:"FK",code:"500",name:"Falkland Islands"},{iso:"FO",code:"298",name:"Faroe Islands"},{iso:"FJ",code:"679",name:"Fiji"},{iso:"FI",code:"358",name:"Finland"},{iso:"FR",code:"33",name:"France"},{iso:"GF",code:"594",name:"French Guiana"},{iso:"PF",code:"689",name:"French Polynesia"},{iso:"GA",code:"241",name:"Gabon"},{iso:"GM",code:"220",name:"Gambia"},{iso:"GE",code:"7880",name:"Georgia"},{iso:"DE",code:"49",name:"Germany"},{iso:"GH",code:"233",name:"Ghana"},{iso:"GI",code:"350",name:"Gibraltar"},{iso:"GR",code:"30",name:"Greece"},{iso:"GL",code:"299",name:"Greenland"},{iso:"GD",code:"1473",name:"Grenada"},{iso:"GP",code:"590",name:"Guadeloupe"},{iso:"GU",code:"671",name:"Guam"},{iso:"GT",code:"502",name:"Guatemala"},{iso:"GN",code:"224",name:"Guinea"},{iso:"GW",code:"245",name:"Guinea - Bissau"},{iso:"GY",code:"592",name:"Guyana"},{iso:"HT",code:"509",name:"Haiti"},{iso:"HN",code:"504",name:"Honduras"},{iso:"HK",code:"852",name:"Hong Kong"},{iso:"HU",code:"36",name:"Hungary"},{iso:"IS",code:"354",name:"Iceland"},{iso:"IN",code:"91",name:"India"},{iso:"ID",code:"62",name:"Indonesia"},{iso:"IR",code:"98",name:"Iran"},{iso:"IQ",code:"964",name:"Iraq"},{iso:"IE",code:"353",name:"Ireland"},{iso:"IL",code:"972",name:"Israel"},{iso:"IT",code:"39",name:"Italy"},{iso:"JM",code:"1876",name:"Jamaica"},{iso:"JP",code:"81",name:"Japan"},{iso:"JO",code:"962",name:"Jordan"},{iso:"KZ",code:"7",name:"Kazakhstan"},{iso:"KE",code:"254",name:"Kenya"},{iso:"KI",code:"686",name:"Kiribati"},{iso:"KP",code:"850",name:"Korea North"},{iso:"KR",code:"82",name:"Korea South"},{iso:"KW",code:"965",name:"Kuwait"},{iso:"KG",code:"996",name:"Kyrgyzstan"},{iso:"LA",code:"856",name:"Laos"},{iso:"LV",code:"371",name:"Latvia"},{iso:"LB",code:"961",name:"Lebanon"},{iso:"LS",code:"266",name:"Lesotho"},{iso:"LR",code:"231",name:"Liberia"},{iso:"LY",code:"218",name:"Libya"},{iso:"LI",code:"417",name:"Liechtenstein"},{iso:"LT",code:"370",name:"Lithuania"},{iso:"LU",code:"352",name:"Luxembourg"},{iso:"MO",code:"853",name:"Macao"},{iso:"MK",code:"389",name:"Macedonia"},{iso:"MG",code:"261",name:"Madagascar"},{iso:"MW",code:"265",name:"Malawi"},{iso:"MY",code:"60",name:"Malaysia"},{iso:"MV",code:"960",name:"Maldives"},{iso:"ML",code:"223",name:"Mali"},{iso:"MT",code:"356",name:"Malta"},{iso:"MH",code:"692",name:"Marshall Islands"},{iso:"MQ",code:"596",name:"Martinique"},{iso:"MR",code:"222",name:"Mauritania"},{iso:"YT",code:"269",name:"Mayotte"},{iso:"MX",code:"52",name:"Mexico"},{iso:"FM",code:"691",name:"Micronesia"}
5091,{iso:"MD",code:"373",name:"Moldova"},{iso:"MC",code:"377",name:"Monaco"},{iso:"MN",code:"976",name:"Mongolia"},{iso:"MS",code:"1664",name:"Montserrat"},{iso:"MA",code:"212",name:"Morocco"},{iso:"MZ",code:"258",name:"Mozambique"},{iso:"MN",code:"95",name:"Myanmar"},{iso:"NA",code:"264",name:"Namibia"},{iso:"NR",code:"674",name:"Nauru"},{iso:"NP",code:"977",name:"Nepal"},{iso:"NL",code:"31",name:"Netherlands"},{iso:"NC",code:"687",name:"New Caledonia"},{iso:"NZ",code:"64",name:"New Zealand"},{iso:"NI",code:"505",name:"Nicaragua"},{iso:"NE",code:"227",name:"Niger"},{iso:"NG",code:"234",name:"Nigeria"},{iso:"NU",code:"683",name:"Niue"},{iso:"NF",code:"672",name:"Norfolk Islands"},{iso:"NP",code:"670",name:"Northern Marianas"},{iso:"NO",code:"47",name:"Norway"},{iso:"OM",code:"968",name:"Oman"},{iso:"PW",code:"680",name:"Palau"},{iso:"PA",code:"507",name:"Panama"},{iso:"PG",code:"675",name:"Papua New Guinea"},{iso:"PY",code:"595",name:"Paraguay"},{iso:"PE",code:"51",name:"Peru"},{iso:"PH",code:"63",name:"Philippines"},{iso:"PL",code:"48",name:"Poland"},{iso:"PT",code:"351",name:"Portugal"},{iso:"PR",code:"1787",name:"Puerto Rico"},{iso:"QA",code:"974",name:"Qatar"},{iso:"RE",code:"262",name:"Reunion"},{iso:"RO",code:"40",name:"Romania"},{iso:"RU",code:"7",name:"Russia"},{iso:"RW",code:"250",name:"Rwanda"},{iso:"SM",code:"378",name:"San Marino"},{iso:"ST",code:"239",name:"Sao Tome & Principe"},{iso:"SA",code:"966",name:"Saudi Arabia"},{iso:"SN",code:"221",name:"Senegal"},{iso:"CS",code:"381",name:"Serbia"},{iso:"SC",code:"248",name:"Seychelles"},{iso:"SL",code:"232",name:"Sierra Leone"},{iso:"SG",code:"65",name:"Singapore"},{iso:"SK",code:"421",name:"Slovak Republic"},{iso:"SI",code:"386",name:"Slovenia"},{iso:"SB",code:"677",name:"Solomon Islands"},{iso:"SO",code:"252",name:"Somalia"},{iso:"ZA",code:"27",name:"South Africa"},{iso:"ES",code:"34",name:"Spain"},{iso:"LK",code:"94",name:"Sri Lanka"},{iso:"SH",code:"290",name:"St. Helena"},{iso:"KN",code:"1869",name:"St. Kitts"},{iso:"SC",code:"1758",name:"St. Lucia"},{iso:"SD",code:"249",name:"Sudan"},{iso:"SR",code:"597",name:"Suriname"},{iso:"SZ",code:"268",name:"Swaziland"},{iso:"SE",code:"46",name:"Sweden"},{iso:"CH",code:"41",name:"Switzerland"},{iso:"SI",code:"963",name:"Syria"},{iso:"TW",code:"886",name:"Taiwan"},{iso:"TJ",code:"7",name:"Tajikstan"},{iso:"TH",code:"66",name:"Thailand"},{iso:"TG",code:"228",name:"Togo"},{iso:"TO",code:"676",name:"Tonga"},{iso:"TT",code:"1868",name:"Trinidad & Tobago"},{iso:"TN",code:"216",name:"Tunisia"},{iso:"TR",code:"90",name:"Turkey"},{iso:"TM",code:"7",name:"Turkmenistan"},{iso:"TM",code:"993",name:"Turkmenistan"},{iso:"TC",code:"1649",name:"Turks & Caicos Islands"},{iso:"TV",code:"688",name:"Tuvalu"},{iso:"UG",code:"256",name:"Uganda"},{iso:"GB",code:"44",name:"United Kingdom"},{iso:"UA",code:"380",name:"Ukraine"},{iso:"AE",code:"971",name:"United Arab Emirates"},{iso:"UY",code:"598",name:"Uruguay"},{iso:"US",code:"1",name:"USA"},{iso:"UZ",code:"7",name:"Uzbekistan"},{iso:"VU",code:"678",name:"Vanuatu"},{iso:"VA",code:"379",name:"Vatican City"},{iso:"VE",code:"58",name:"Venezuela"},{iso:"VN",code:"84",name:"Vietnam"},{iso:"VG",code:"84",name:"Virgin Islands - British"},{iso:"VI",code:"84",name:"Virgin Islands - US"},{iso:"WF",code:"681",name:"Wallis & Futuna"},{iso:"YE",code:"969",name:"Yemen (North)"},{iso:"YE",code:"967",name:"Yemen (South)"},{iso:"ZM",code:"260",name:"Zambia"},{iso:"ZW",code:"263",name:"Zimbabwe"}];function VW(e,t){let n=e.replace(/\D|(|)/g,""),a="",i=0,r=0;for(;i<t.length&&r<n.length;)"X"===t[i]?(a+=n[r],r++):a+=t[i],i++;return a}function XW(e){const t=FW.find(t=>t.iso===e);return BW.find(e=>e.iso===(null==t?void 0:t.iso))||{code:"+1",mask:"(XXX) XXX XXXX"}}function jW(e){const t=FW.find(t=>t.name===e);return BW.find(e=>e.iso===(null==t?void 0:t.iso))||{code:"+1",mask:"(XXX) XXX XXXX"}}function UW(e){return e?e.length<12?e.replace(/[^0-9]+/g,""):e:""}function HW(){return FW}function zW(){return BW}const KW={class:"tHead"},WW=["colspan"],GW={class:"tableRow"},qW=["onClick"],$W={class:"tableBody",id:"tableBody"},YW=["onClick"],JW={class:"d-flex align-center"},QW={key:0},ZW={key:1},eG={key:0,class:"mt-4 text-center",style:{width:"100%"}},tG={key:1,class:"d-flex align-center justify-center text-h5 pa-13"},nG=["href"],aG=["src"],iG={__name:"playersStatistic",props:{divisionFilter:{type:String,default:"all"},playersList:{type:Array,default:()=>[],required:!0},fullList:{type:Array},eventType:{type:String,default:"standard-league"},search:{type:String,default:""},playerId:String,gamePlayRules:{type:String},showCurrentUser:{type:Boolean,default:!0},showUserRange:{type:Boolean,default:!1},isLeagueList:{type:Boolean,default:!1},setDefaultFilter:{type:String,default:"score"},rules:String},emits:["participantClicked"],setup(e,{emit:t}){const n=t,a=e,i=rn(1),r=rn(50),o=[{src:"https://m.media-amazon.com/images/S/abs-image-upload-na/e/AmazonStores/ATVPDKIKX0DER/aede68db8c1f0e37ff10ddb739f52439.w746.h373._CR0%2C0%2C746%2C373_SX420_SY210_.jpg",href:"https://amzn.to/49MIhD2"},{src:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/banners%2FCommander.webp?alt=media&token=a6e84361-5a1a-40e8-8934-476975922745",href:"https://amzn.to/3Us7ZHw"},{src:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/banners%2FJack%20of%20Clubs.webp?alt=media&token=0dec6767-0c35-435d-8efb-61d180739d3e",href:"https://amzn.to/3Qyi5Fp"},{src:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/banners%2FQueen%20of%20Hearts.webp?alt=media&token=9536510c-11f5-4978-9e33-667d9eabec67",href:"https://amzn.to/3QxXT6u"},{src:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/banners%2FThe%20Ragnar.webp?alt=media&token=4152dc84-0896-40fe-b713-6e8d966b8741",href:"https://amzn.to/4bku3dM"}],s=nr("postHog");mL();const l=vL(),u=UG(),c=VG();let d=rn("score"),h=rn(!1);const p=Zo(()=>[{label:a.isLeagueList?"Leagues":"players",subHeaders:[{label:"",value:"",toolTip:"Participants"}]},{label:"matches",subHeaders:[{label:"MP",value:"gp",toolTip:"Matches played in the current league"},{label:"W",value:"win",toolTip:"Wins in the current league"},{label:"L",value:"loss",toolTip:"Losses in the current league"},{label:"NC",value:"nc",class:"border-left",toolTip:"No contestant. Single participation matches played"},{label:"SCORE",value:"score",toolTip:"Total Scores in the current league"}]},{label:"scoring",subHeaders:[{label:"HS",value:"high",toolTip:"Highe
5091st scores"},{label:"BULL",value:"bullsEye",toolTip:"Hit bulls-eye"},{label:"big-axe-league"===a.eventType?"46":"64",value:"perfect",toolTip:"Perfect games"},{label:"KILLS",value:"killcall",toolTip:"Killshots / Killcalls"},..."Qualifying Throws"===u.selectedEvent.type&&[{label:"OVK",value:"overtimeKills",toolTip:"standard-league"===u.selectedEvent.leagueType&&"watl"===u.selectedEvent.rules?"Overtime killshots hit: inner/outer/max":"Overtime killshots hit / max"}]||[]]},{label:"averages",subHeaders:[{label:"THROW",value:"axeavg",toolTip:"Average throw points"},{label:"SCORE",value:"scoreavg",toolTip:"Average scores per match"}]},{label:"detailed scoring",subHeaders:[{label:"faults",value:"faults",toolTip:"Faults"},{label:"drops",value:"drops",toolTip:"Drops"},{label:"0",value:"score0",toolTip:"0"},{label:"1",value:"score1",toolTip:"1"},{label:"2",value:"score2",toolTip:"2"},{label:"3",value:"score3",toolTip:"3"},{label:"4",value:"score4",toolTip:"4"},{label:"5",value:"score5",toolTip:"5"},{label:"6",value:"score6",toolTip:"6"},...("standard-league"===u.selectedEvent.leagueType||"standard-league"===a.eventType)&&[{label:"7",value:"score7",toolTip:"7"}]||[],{label:"8",value:"score8",toolTip:"8"}]},{label:"detailed killshots",subHeaders:[..."since_2025"===u.selectedEvent.gamePlayRules&&[{label:"Outer",value:"score7",toolTip:"Outer killshot"}]||[{label:"Outer",value:"killshots6",toolTip:"Outer killshot"}],{label:"Inner",value:"score8",toolTip:"Inner killshot"}]}]);function f(e,t){var n,a;if(t[e]){let i,r=t[e];if(["score7","score8"].includes(e)){const o="Qualifying Throws"===(null==(n=u.selectedEvent)?void 0:n.type);if(i=t.killcall||0,o&&(null==(a=t.killShotHit)?void 0:a.overtime)){(t.killShotHit.overtime.innerShot||0)+(t.killShotHit.overtime.outerShot||0)>0&&(i=Math.max(1,i-2),"score7"===e?r=Math.max(0,r-(t.killShotHit.overtime.outerShot||0)):"score8"===e&&(r=Math.max(0,r-(t.killShotHit.overtime.innerShot||0))))}}else i=function(e){return Math.abs(e.faults||0)+Math.abs(e.drops||0)+Math.abs(e.score0||0)+Math.abs(e.score1||0)+Math.abs(e.score2||0)+Math.abs(e.score3||0)+Math.abs(e.score4||0)+Math.abs(e.score5||0)+Math.abs(e.score6||0)}(t);if(0===i)return"(".concat(t[e],")");const o=Math.abs(r)/i*100;return"".concat(o.toFixed(1),"% (").concat(t[e],")")}return"-"}function m(e){var t,n;const a=Object.values(e).filter(e=>e.total).reduce((e,t)=>e+t.total,0),i=((null==(t=e.overtime)?void 0:t.innerShot)||0)+((null==(n=e.overtime)?void 0:n.outerShot)||0);return Math.max(0,a-i)}const v=Zo(()=>{const e=g.value;return a.playersList.map(t=>{var n;const i=t.id||t.key||t[".key"]||t.code,r=t.wktlDivision||e[i]||(a.rules,"recreational");let o=0;if("Qualifying Throws"===(null==(n=u.selectedEvent)?void 0:n.type))o=t.regularKillshotHits||0;else if(t.killShotHit&&"object"==typeof t.killShotHit){const e=m(t.killShotHit);o=e>0?e:(t.score7||0)+(t.score8||0)}else o=(t.score7||0)+(t.score8||0);return{...t,id:i,wktlDivision:r,killsHit:o,killshots6:t.killShotHit&&"before_2024"!==a.gamePlayRules&&"before_2024"!==t.gamePlayRules?m(t.killShotHit)-t.score8-t.score7:0,bullsEye:t.bullsEyeHit&&"before_2024"!==a.gamePlayRules&&"before_2024"!==t.gamePlayRules?m(t.bullsEyeHit):t.score6}})}),g=an({});async function y(){if(!u.selectedEvent||!a.playersList.length)return;const e=new Set;if(a.playersList.forEach(t=>{const n=t.id||t.key||t[".key"]||t.code;n&&e.add(n)}),0===e.size)return;const t={};await Promise.all(Array.from(e).map(async e=>{try{const n=await kg(TP("/watl/players/".concat(e)));if(n.exists()){const a=n.val();a.wktlDivision&&(t[e]=a.wktlDivision)}}catch(Sae){console.error("Failed to fetch wktl division for player:",e,Sae)}})),g.value=t}function b(){s.capture("shop-axes_click",{location:l.name||l.fullPath})}const _=Zo(()=>"since_2025"===u.selectedEvent.gamePlayRules&&"standard-league"===u.selectedEvent.leagueType),w=Zo(()=>{let e,t;if("duals-league"!==a.eventType){if(a.search.includes(" ")){let n=a.search.split(" ");e=n[0].toLowerCase(),t=n[1].toLowerCase()}return v.value.slice(0).filter(n=>{var i;return n.key||(n.key=n.id),n.division||["playerCode","profile","player"].includes(l.name)||(n.division="amateur"),"alias"in n&&"first"in n&&"last"in n?(n.name="".concat(n.first," ").concat(n.last),n.alias.toLowerCase().includes(a.search.toLowerCase())||n.first.toLowerCase().includes(a.search.toLowerCase())||n.last.toLowerCase().includes(a.search.toLowerCase())||e&&n.first.toLowerCase().includes(e)&&n.last.toLowerCase().includes(t)||(null==(i=n.code)?void 0:i.toLowerCase().includes(a.search.toLowerCase()))):n.name&&n.name.toLowerCase().includes(a.search.toLowerCase())}).sort((e,t)=>
5091(null==e.score&&(e.score=0),null==t.score&&(t.score=0),e.scoreavg=parseFloat(e.scoreavg),t.scoreavg=parseFloat(t.scoreavg),e[d.value]<t[d.value]?100:e[d.value]>t[d.value]?-100:e.overtime>t.overtime?-50:e.overtime<t.overtime?50:e.score8<t.score8?25:e.score8>t.score8?-25:e.score6<t.score6?15:e.score6>t.score6?-15:e.overtimeFirst>t.overtimeFirst?10:e.overtimeFirst<t.overtimeFirst?-10:e.gp>t.gp?5:e.gp<t.gp?-5:e.win<t.win?1:e.win>t.win?-1:0))}return v.value.slice(0).filter(e=>(e.key||(e.key=e.id),"name"in e&&"code"in e?e.name&&e.name.toLowerCase().includes(a.search.toLowerCase())||e.code&&e.code.toLowerCase().includes(a.search.toLowerCase()):e.name&&e.name.toLowerCase().includes(a.search.toLowerCase()))).sort((e,t)=>(null==e.score&&(e.score=0),null==t.score&&(t.score=0),e.scoreavg=parseFloat(e.scoreavg),t.scoreavg=parseFloat(t.scoreavg),e[d.value]<t[d.value]?100:e[d.value]>t[d.value]?-100:e.overtime>t.overtime?-50:e.overtime<t.overtime?50:e.score8<t.score8?25:e.score8>t.score8?-25:e.score6<t.score6?15:e.score6>t.score6?-15:e.overtimeFirst>t.overtimeFirst?10:e.overtimeFirst<t.overtimeFirst?-10:e.gp>t.gp?5:e.gp<t.gp?-5:e.win<t.win?1:e.win>t.win?-1:0))}),k=Zo(()=>{let e=i.value*r.value-r.value,t=i.value*r.value;if(a.showUserRange){let n=w.value.findIndex(e=>e.code===c.user.code)+1;e=n-5<0?0:n-5,t=n+4}return w.value.slice(e,t)});async function C(){s.capture("button_exportCSV");const e=await async function(){const e="duals-league"===a.eventType;let t={};const n=e=>{e&&"undefined"!==e&&i.push(kg(TP("/watl/players/".concat(e))).then(n=>{n.exists()&&(t[e]=n.val())}))};if(e){let e=[];for(const t of v.value)t.player||e.push(kg(TP("/teams/".concat(t.id||t[".key"]))).then(e=>{if(e.exists()){const n=e.val();t.player={[n.player1Key]:n.player1,[n.player2Key]:n.player2},t.code=n.code}}));await Promise.all(e)}let i=[];for(const a of v.value)if(e){const e=Object.keys(a.player||a||{});2===e.length?(n(e[0]),n(e[1])):n(a.id||a.key)}else n(a.id||a.key);if(u.selectedTournamentRanking&&Object.keys(u.selectedTournamentRanking).length>0)for(const a of Object.keys(u.selectedTournamentRanking))a&&"undefined"!==a&&!t[a]&&n(a);return await Promise.all(i),t}(),t=await async function(){let e={};return await kg(TP("/venues")).then(t=>{t.exists()&&(e=t.val())}),e}();if(a.fullList){let n=a.fullList;for(let a of n.reverse())a&&a.list&&a.list.length&&(eK(await S(a.list,e,t),"_".concat(a.title)),await new Promise(e=>setTimeout(e,100)))}else{if(!v.value)return void alert("No data found");{const n=l.params.leagueID||"stats-export";eK(await S(w.value,e,t),n)}}}async function S(e,t,n){var i,r,o;const s=a.eventType,c="duals-league"===s;let d=u.selectedTournamentRanking;const h="playerCode"===l.name;if("tournament"===(null==(r=null==(i=u.selectedEvent)?void 0:i.type)?void 0:r.toLowerCase()))try{const e=u.selectedEvent.venue||l.params.locationSlug,t=u.selectedEvent.slug||l.params.leagueID,n=u.selectedEvent.currentSeason;if(e&&t&&n){let a="Playoffs";try{const i="/venues/".concat(e,"/league-list/").concat(t,"/").concat(n),r=await kg(SP(i));if(r.exists()){const e=r.val(),t=Object.entries(e).find(([e,t])=>"Playoffs"===t.type||"Playoffs"===t.name||"Playoffs"===e);t&&(a=t[1].name||t[0])}}catch(Sae){}const i="/venues/".concat(e,"/league/").concat(t,"/").concat(n,"/").concat(a),r=await kg(AP("".concat(i,"/settings"))),o=await kg(AP("".concat(i,"/bracketB"))),s=await kg(AP("".concat(i,"/finals")));if(o.exists()||s.exists()){const e=o.exists()?o.val():null,t=s.exists()?s.val():null,n=r.exists()?r.val():{},a=[],i=c?"team":"player",l=e=>{e&&a.push(e["".concat(i,"id")])},u=e=>{for(let t=Object.keys(e).length;t>0;t--){let n={};n=t>9?e["g".concat(t)]:e["g0".concat(t)],n&&(l(n["".concat(i,"1")]),l(n["".concat(i,"2")]))}},h=e=>{const t=Object.keys(e).length;for(let n=1;n<=t;n++){let t={};t=n>9?e["r".concat(n)]:e["r0".concat(n)],t&&u(t)}};e&&h(e),t&&h(t),n.placedFirst&&l(n.placedFirst);const p=[...new Set(a.reverse())];d={},p.forEach((e,t)=>{d[e]=t+1})}}}catch(Sae){console.error("Failed to fetch playoff bracket data:",Sae)}if(!d||0===Object.keys(d).length){d={};e.slice(0).sort((e,t)=>(null==e.score&&(e.score=0),null==t.score&&(t.score=0),e.scoreavg=parseFloat(e.scoreavg),t.scoreavg=parseFloat(t.scoreavg),e.score<t.score?100:e.score>t.score?-100:e.overtime>t.overtime?-50:e.overtime<t.overtime?50:e.score8<t.score8?25:e.score8>t.score8?-25:e.score6<t.score6?15:e.score6>t.score6?-15:e.overtimeFirst>t.overtimeFirst?10:e.overtimeFirst<t.overtimeFirst?-10:e.gp>t.gp?5:e.gp<t.gp?-5:e.win<t.win?1:e.win>
5091t.win?-1:0)).forEach((e,t)=>{const n=e.id||e[".key"]||e.key;n&&"undefined"!==n&&(d[n]=t+1)})}const p=[["ID","id"],"standard-league"===s&&"wktl"!==u.selectedEvent.rules?["Division","division"]:null,"standard-league"===s&&"wktl"===u.selectedEvent.rules?["WKTL Division","wktlDivision"]:null,["venue ORGIN","venue"],["venue NAME","venueName"],["venue KEY","venueLeagueKey"],["league KEY","leagueSlug"],c?["Name","name"]:null,["CODE","code"],["PLACEMENT","placement"],c?["PLAYER 1 CODE","code1"]:null,c?["PLAYER 2 CODE","code2"]:null,c?["PLAYER 1 First name","first1"]:["First name","first"],c?["PLAYER 1 Last name","last1"]:["Last name","last"],c?["PLAYER 2 First name","first2"]:null,c?["PLAYER 2 Last name","last2"]:null,["MP","gp"],["W","win"],["L","loss"],["NC","nc"],["SCORE","score"],["HS","high"],["BULL","bullsEye"],["big-axe-league"===s?"46":"64","perfect"],["KILLS HIT 6","killshots6"],_.value?["KILLS HIT 7","score7"]:null,["KILLS HIT 8","score8"],["KILLS CALL","killcall"],["AVG THROW","axeavg"],["AVG SCORE","scoreavg"],["FAULTS","faults"],["DROPS","drops"],["ZERO","score0"],["SCORE 1","score1"],["SCORE 2","score2"],["SCORE 3","score3"],["SCORE 4","score4"],["SCORE 5","score5"],["SCORE 6","score6"],_.value?["SCORE 7","score7"]:null,["SCORE 8","score8"],["STATE","state"],["COUNTRY","country"],"hostsLeague"!==l.name||c?null:["Email","email"],"hostsLeague"!==l.name||c?null:["Phone","phone"]].filter(Boolean);let f="";for(let a in p)f+=Zz(p[a][0])+",";f+="\n";for(let m=0;m<e.length;m++){const i=e[m],r=c&&i.player?Object.keys(i.player)[0]:i.id||i[".key"]||i.key,s=t[r],v=i.player?Object.keys(i.player):[];for(const e of p){let p="";if("division"===e[1]){const e={amateur:"Amateur",recreational:"Rec",professional:"Pro"};p="-","since_2025"===i.gamePlayRules||i.division?p=e[i.division]:("since_2024"===i.gamePlayRules||"since_2025"!==i.gamePlayRules&&"advanced"in i)&&(p=i.advanced?"Advanced":"Amateur")}else if("wktlDivision"===e[1]){p={professional:"Pro",recreational:"Rec"}[null!=(o=i.wktlDivision)?o:"recreational"]||"-"}else if("placement"===e[1]){let e;if(c)e=i.team&&(i.team.teamid||i.team.teamKey)||i.teamKey||i.id||i[".key"]||i.key;else if(e=r,d&&Object.keys(d).length>0&&(!e||"undefined"===e||!d[e]))for(const[n,a]of Object.entries(t))if(a.first&&a.last&&i.first&&i.last){const t=a.first.toLowerCase().trim(),r=a.last.toLowerCase().trim(),o=i.first.toLowerCase().trim(),s=i.last.toLowerCase().trim();if(t===o&&r===s){e=n;break}}p=e&&d&&d[e]?d[e].toString():(m+1).toString()}else if("code"===e[1]){if(i.team&&c)p=i.team.teamKey||i.code||i.team.name||"";else if(p=i.code||s&&s.code||i.teamKey||"",!p&&t&&Object.keys(t).length>0)for(const[e,n]of Object.entries(t))if(n.first&&n.last&&i.first&&i.last){const e=n.first.toLowerCase().trim(),t=n.last.toLowerCase().trim(),a=i.first.toLowerCase().trim(),r=i.last.toLowerCase().trim();if(e===a&&t===r&&n.code){p=n.code;break}}}else if("code1"===e[1])p=Qz.get(t,"".concat(v[0],".code"),"");else if("code2"===e[1])p=Qz.get(t,"".concat(v[1],".code"),"");else if("first1"===e[1])p=Qz.get(t,"".concat(v[0],".first"),"");else if("last1"===e[1])p=Qz.get(t,"".concat(v[0],".last"),"");else if("first2"===e[1])p=Qz.get(t,"".concat(v[1],".first"),"");else if("last2"===e[1])p=Qz.get(t,"".concat(v[1],".last"),"");else if("venue"!==e[1]||h)if("venueName"!==e[1]||h)if("venueLeagueKey"!==e[1]||h)if("leagueSlug"!==e[1]||h)if("state"!==e[1]||h)if("country"!==e[1]||h)if("venueName"===e[1]&&h)p=n[i.venue].company;else if("venueLeagueKey"===e[1]&&h)p=i.venue;else if("leagueSlug"===e[1]&&h)p=i[".key"];else if("country"===e[1]&&h)p=n[i.venue].country;else if("state"===e[1]&&h)p=n[i.venue].city;else if("first"===e[1]&&h)p=i.playerfirst;else if("last"===e[1]&&h)p=i.playerlast;else if("phone"===e[1]){if(s.phone&&"string"==typeof s.phone&&s.phone.length>20){let e=VW(LW.AES.decrypt(s.phone,"dQgajTvjSFD8s5HdUAsRxbjTKdhQek").toString(LW.enc.Utf8),"(XXX) XXX XXXX");p="(+".concat(s.countryCode,") ").concat(e)}else if(s.phone){let e=VW(s.phone,"(XXX) XXX XXXX");p="(+".concat(s.countryCode,") ").concat(e)}}else"email"===e[1]?p=s.email:".key"===e[1]&&h?p=a.playerId:"rating"===e[1]&&h||i[e[1]]&&(p=i[e[1]]||"");else s&&"country"in s&&s.country&&(p=Oz[s.country]||"");else s&&"state"in s&&s.country&&(p=Rz[s.country].split("|")[s.state]||"");else p=l.params.leagueID||u.selectedEvent[".key"]||u.selectedEvent.slug||"";else p=i.venue||s&&s.venue||"";else s&&("venueName"in s?p=s.venues||"":n[s.venue]&&n[s.venue].company&&(p=n[s.venue].company||""));else p=s&&s.venue?s.venue:i.venue||"";f+="".concat(Zz((""+p).replaceAll("’","")),",")}f+="\n"}return f}function T(){var e;
5091h.value=(null==(e=document.getElementById("tableBody"))?void 0:e.offsetHeight)>window.innerHeight}function A(e){var t;if("Qualifying Throws"===(null==(t=u.selectedEvent)?void 0:t.type))return e.regularKillshotHits||0;if(e.killShotHit&&"before_2024"!==a.gamePlayRules&&"before_2024"!==e.gamePlayRules){const t=m(e.killShotHit);return t>0?t:(e.score7||0)+(e.score8||0)}return"before_2024"===a.gamePlayRules||"before_2024"===e.gamePlayRules?e.score8||0:(e.score7||0)+(e.score8||0)}return Mr(()=>a.setDefaultFilter,()=>{a.setDefaultFilter&&(d.value=a.setDefaultFilter)},{immediate:!0}),Mr(()=>d.value,()=>{s.capture("button_sort_table")}),hi(()=>{!function(){let e,t,n,a,i=document.querySelector(".v-table__wrapper"),r=!1;i&&(i.addEventListener("mousedown",o=>{r=!0,e=o.pageX-i.offsetLeft,t=o.pageY-i.offsetTop,n=i.scrollLeft,a=i.scrollTop,i.style.cursor="grabbing"}),i.addEventListener("mouseleave",()=>{r=!1,i.style.cursor="grab"}),i.addEventListener("mouseup",()=>{r=!1,i.style.cursor="grab"}),document.addEventListener("mousemove",o=>{if(!r)return;o.preventDefault();const s=o.pageX-i.offsetLeft,l=o.pageY-i.offsetTop,u=1*(s-e),c=1*(l-t);i.scrollLeft=n-u,i.scrollTop=a-c}))}(),y()}),jn().then(()=>{T()}),fi(()=>{T()}),Mr([()=>a.search,()=>a.playersList,()=>d.value],()=>{i.value=1}),Mr(()=>i.value,()=>{jn(()=>{const e=document.getElementById("tableBody");if(e){const t=e.getBoundingClientRect(),n=window.scrollY+t.top-.3*window.innerHeight;window.scrollTo({top:Math.max(0,n),behavior:"auto"})}})}),Mr(()=>u.selectedEvent,e=>{e&&y()},{immediate:!0,deep:!0}),Mr(()=>a.playersList,()=>{u.selectedEvent&&y()},{immediate:!0,deep:!0}),(t,a)=>{var s;const m=ki("v-icon"),g=ki("v-tooltip"),y=ki("v-table"),w=ki("v-pagination"),S=ki("v-carousel-item"),T=ki("v-carousel");return oo(),ho("div",null,[xi(t.$slots,"header",{exportCSV:C},void 0,!0),ta(bo(y,{"fixed-header":"",class:ne(["mt-5 table",{blur:(null==(s=e.playersList[0])?void 0:s.alias)&&"3random"===e.playersList[0].alias}]),height:ln(h)?"100vh":""},{default:ea(()=>[yo("thead",KW,[yo("tr",null,[(oo(!0),ho(eo,null,Ii(p.value,(e,t)=>(oo(),ho("th",{key:t,class:"w-100 text-center mainHeaderItem",colspan:e.subHeaders.length},Te(e.label),9,WW))),128))]),yo("tr",GW,[(oo(!0),ho(eo,null,Ii(p.value,e=>(oo(),ho(eo,{key:e.label},[(oo(!0),ho(eo,null,Ii(e.subHeaders,e=>(oo(),po(g,{key:e.label,location:"top"},{activator:ea(({props:t})=>[yo("th",Io({ref_for:!0},t,{class:["subHeaderItem text-center pointer",{activeCell:e.value===ln(d)}],onClick:t=>nn(d)?d.value=e.value:d=e.value}),[yo("div",{class:ne(["d-flex justify-center position-relative",{activeSort:e.value===ln(d)}])},[ko(Te(e.label)+" ",1),e.value===ln(d)?(oo(),po(m,{key:0},{default:ea(()=>[...a[1]||(a[1]=[ko("mdi-arrow-down-thin",-1)])]),_:1})):So("",!0)],2)],16,qW)]),default:ea(()=>[yo("p",null,Te(e.toolTip),1)]),_:2},1024))),128))],64))),128))])]),yo("tbody",$W,[(oo(!0),ho(eo,null,Ii(k.value,(t,a)=>{var o,s,l,h,p,m,v,g,y,b,w,k,C;return oo(),ho("tr",{class:ne(["tableRow",{currentPlayer:e.showCurrentUser&&t.code===ln(c).user.code}]),key:a},[yo("td",{onClick:e=>{n("participantClicked",t)}},[yo("div",JW,[yo("div",{class:"playerPosition",style:Y({"min-width":8*(i.value*r.value).toString().length+"px"})},["all"!==e.divisionFilter&&(e.search.length||e.showUserRange)?(oo(),ho("span",QW,Te(t["".concat(e.divisionFilter,"Index")]),1)):(oo(),ho("span",ZW,Te(e.search.length||e.showUserRange?t.allIndex:a+1+i.value*r.value-r.value),1))],4),bo(Gz,{participant:t,"league-type":e.eventType,isLeagueList:e.isLeagueList,rules:e.rules},null,8,["participant","league-type","isLeagueList","rules"])])],8,YW),yo("td",{class:ne({activeCell:"gp"===ln(d)})},Te(t.gp),3),yo("td",{class:ne({activeCell:"win"===ln(d)})},Te(t.win),3),yo("td",{class:ne({activeCell:"loss"===ln(d)})},Te(t.loss),3),yo("td",{class:ne({activeCell:"nc"===ln(d)})},Te(t.nc||0),3),yo("td",{class:ne({activeCell:"score"===ln(d)})},Te(t.score),3),yo("td",{class:ne({activeCell:"high"===ln(d)})},Te(t.high),3),yo("td",{class:ne({activeCell:"bullsEye"===ln(d)})},Te(t.bullsEye),3),yo("td",{class:ne({activeCell:"perfect"===ln(d)})},Te(t.perfect),3),yo("td",{class:ne({activeCell:"killcall"===ln(d)})},Te(A(t))+"/"+Te("Qualifying Throws"===(null==(o=ln(u).selectedEvent)?void 0:o.type)?ln(u).selectedEvent.qualifyingKillshots||10:t.killcall),3),"Qualifying Throws"===ln(u).selectedEvent.type?(oo(),ho("td",{key:0,class:ne({activeCell:"overtimeKills"===ln(d)})},["standard-league"===ln(u).selectedEvent.leagueType&&"watl"===ln(u).selectedEvent.rules?(oo(),ho(eo,{key:0},[ko(Te((null==(l=null==(s=t.killShotHit)?void 0:s.overtime)?void 0:l.innerShot)||0)+"/"+Te((null==(p=null==(h=t.killShotHit)?void 0:h.overtime)?void 0:p.outerShot)||0),1)],64)):(oo(),ho(eo,{key:1},[ko(Te((null==(v=null==(m=t.killShotHit)?void 0:m.overtime)?void 0:v.innerShot)||0),1)],64)),ko("/"+Te(ln(u).selectedEvent.qualifyingKillshots),1)],2)):So("",!0),yo("td",{class:ne({activeCell:"axeavg"===ln(d)})},Te(t.axeavg||0),3),yo("td",{class:ne({activeCell:"scoreavg"===ln(d)})},Te(t.scoreavg),3),yo("td",{class:ne({activeCell:"faults"===ln(d)})},Te(f("faults",t)),3),yo("td",{class:ne({activeCell:"drops"===ln(d)})},Te(f("drops",t)),3),yo("td",{class:ne({activeCell:"score0"===ln(d)})},Te(f("score0",t)),3),yo("td",{class:ne({activeCell:"score1"===ln(d)})},Te(f("score1",t)),3),yo("td",{class:ne({activeCell:"score2"===ln(d)})},Te(f("score2",t)),3),yo("td",{class:ne({activeCell:"score3"===ln(d)})},Te(f("score3",t)),3),yo("td",{class:ne({activeCell:"score4"===ln(d)})},Te(f("score4",t)),3),yo("td",{class:ne({activeCell:"score5"===ln(d)})},Te(f("score5",t)),3),yo("td",{class:ne({activeCell:"score6"===ln(d)})},Te(f("score6",t)),3),"standard-league"===ln(u).selectedEvent.leagueType||"standard-league"===e.eventType?(oo(),ho("td",{key:1,class:ne({activeCell:"score7"===ln(d)})},Te(f("score7",t)),3)):So("",!0),yo("td",{class:ne({activeCell:"score8"===ln(d)})},Te(f("score8",t)),3),_.value||"since_2025"===t.gamePlayRules&&"standard-league"===e.eventType?(oo(),ho("td",{key:2,class:ne({activeCell:"score7"===ln(d)})},Te("Qualifying Throws"===(null==(g=ln(u).selectedEvent)?void 0:g.type)?Math.max(0,(t.score7||0)-((null==(b=null==(y=t.killShotHit)?void 0:y.overtime)?void 0:b.outerShot)||0)):t.score7||0),3)):(oo(),ho("td",{key:3,class:ne({activeCell:"killshots6"===ln(d)})},Te(t.killshots6||0),3)),yo("td",{class:ne({activeCell:"score8"===ln(d)})},Te("Qualifying Throws"===(null==(w=ln(u).selectedEvent)?void 0:w.type)?Math.max(0,(t.score8||0)-((null==(C=null==(k=t.killShotHit)?void 0:k.overt
5091ime)?void 0:C.innerShot)||0)):t.score8||0),3)],2)}),128))])]),_:1},8,["height","class"]),[[Ls,v.value.length]]),v.value.length>r.value?(oo(),ho("div",eG,[bo(w,{class:"pagination",modelValue:i.value,"onUpdate:modelValue":a[0]||(a[0]=e=>i.value=e),length:Math.ceil(v.value.length/r.value)},null,8,["modelValue","length"])])):So("",!0),v.value.length?So("",!0):(oo(),ho("div",tG,[xi(t.$slots,"noContent",{},()=>[a[2]||(a[2]=ko(" Stats are not available. ",-1))],!0)])),ln(l).path.includes("/hosts/")||"news"===ln(l).name||"screen"===ln(l).name?So("",!0):(oo(),ho("div",{key:2,class:"shopBanner",onClick:b},[bo(T,{"hide-delimiters":"",cycle:"","show-arrows":!1,class:"carousel"},{default:ea(()=>[(oo(),ho(eo,null,Ii(o,(e,t)=>bo(S,{key:t},{default:ea(()=>[yo("a",{href:e.href},[yo("img",{src:e.src,alt:"shop"},null,8,aG)],8,nG)]),_:2},1024)),64))]),_:1})]))])}}},rG=PX(iG,[["__scopeId","data-v-a469b99f"]]),oG=Object.freeze(Object.defineProperty({__proto__:null,default:rG},Symbol.toStringTag,{value:"Module"})),sG={class:"newContainer myBoardWrapper"},lG={class:"actionsWrapper"},uG={class:"filters"},cG={key:0},dG={key:1},hG={__name:"userBoard",setup(e){const t=mL(),n=VG(),a=jG(),i=XG(),r=Zo(()=>a.groupedLeagues),o=rn(""),s=rn(""),l=rn(""),u=an(null),c=Ht({selectedYear:"",selectedSeason:i.getCurrentSeason.value,selectedDiscipline:"hatchet-league"}),d=[{title:"Hatchet",value:"hatchet-league"},{title:"Big Axe",value:"big-axe-league"},{title:"Knife",value:"knife-league"}];Mr(()=>i.getCurrentSeason,e=>{c.selectedSeason=e.value},{immediate:!0});const h=Zo(()=>{let e=[];for(let[t,n]of Object.entries(i.seasonYears))e.push({title:n,value:t});return e});h.value.forEach(e=>{e.title===+i.currentYear&&(c.selectedYear=e.value)});const p=Zo(()=>c.selectedYear.slice(-1)>5?i.seasons:i.seasons.map(e=>({...e,title:e.value})));function f(e){"player"in e&&5===e.code.length?t.push("/team/"+e.code):"team"in e&&4===e.code.length&&t.push("/player/"+e.code)}Mr(()=>p.value,e=>{e.forEach(e=>{e.value.toLowerCase()===i.getCurrentSeason.value.toLowerCase()&&(c.selectedSeason=e.value)})});const m=Zo(()=>{let e=d.find(e=>e.value===c.selectedDiscipline),t=p.value.find(e=>e.value.toLowerCase()===c.selectedSeason.toLowerCase()),n=h.value.find(e=>e.value===c.selectedYear);return"".concat(e.title," ").concat(null==t?void 0:t.title," league of ").concat(n.title)});let v=OU(Zo(()=>o.value?Hg(AP(o.value),Fg("score")):null));Mr(()=>v.value,()=>{u.value=-1!==v.value.findIndex(e=>e.code===n.user.code)});const g=Zo(()=>u.value?v.value:[]);function y(){t.push(s.value)}function b(e){const t=(r.value[e.selectedDiscipline]||[]).filter(t=>{var n;return t.currentSeason===e.selectedYear&&((null==(n=t.seasonName)?void 0:n.toLowerCase())===e.selectedSeason.toLowerCase()||t.slug.includes(e.selectedSeason.toLowerCase()))}),n=Hj(t,"rules");var i;(i=n[0])?(s.value=a.venue.locationSlug+"/league/"+i.slug,l.value=i.gamePlayRules||"",o.value="/venues/"+a.venue.locationSlug+"/league/"+i.slug+"/"+i.currentSeason+"/standings"):(o.value=null,v.value=[],s.value="")}return Mr(c,e=>{b(e)},{immediate:!0}),Mr(r,()=>{b(c)}),(e,t)=>{const n=ki("v-progress-circular");return oo(),ho("div",sG,[t[3]||(t[3]=yo("h2",{class:"title"},"My board",-1)),bo(rG,{playersList:g.value,showUserRange:u.value,"game-play-rules":l.value,onParticipantClicked:f},{header:ea(e=>[yo("div",lG,[yo("div",uG,[bo(wj,{items:h.value,value:c.selectedYear,class:"boardSelect",onUpdatedSelectValue:t[0]||(t[0]=e=>c.selectedYear=e)},null,8,["items","value"]),bo(wj,{items:p.value,value:c.selectedSeason,class:"boardSelect",onUpdatedSelectValue:t[1]||(t[1]=e=>c.selectedSeason=e)},null,8,["items","value"]),bo(wj,{items:d,value:c.selectedDiscipline,class:"boardSelect",onUpdatedSelectValue:t[2]||(t[2]=e=>c.selectedDiscipline=e)},null,8,["value"])])])]),noContent:ea(()=>[null===u.value?(oo(),ho("div",cG,[bo(n,{indeterminate:"",color:"#0B2E7D"})])):null===u.value||g.value.length?So("",!0):(oo(),ho("div",dG," You are not participating in "+Te(m.value),1))]),_:1},8,["playersList","showUserRange","game-play-rules"]),u.value?(oo(),ho("div",{key:0,class:"viewAll",onClick:y}," View all players ")):So("",!0)])}}}
5091,pG=PX(hG,[["__scopeId","data-v-588cf0af"]]),fG={class:"wrapper"},mG=["src"],vG={class:""},gG={__name:"comparePlayer",props:{player:{type:Object,default:()=>{}}},emits:["gotPlayer","changePlayer"],setup(e,{emit:t}){const n=mL(),{smAndDown:a}=LV(),i=VG(),r=t,o=an([]),s=an([]),l=an([]),u=Zo(()=>[...o.value,...s.value,...l.value]);function c(e){if(e.length<3)o.value=[],s.value=[],l.value=[];else if(e.length>=3){if(e.includes(" ")){let t=e.split(" "),n=t[0].charAt(0).toUpperCase()+t[0].slice(1),a=t[1].charAt(0).toUpperCase()+t[1].slice(1);const i=e=>{if(!e.exists())return[];{let t=e.val(),n=[];Object.keys(t).filter(e=>!t[e].archive).map(e=>{let i=t[e];i[".key"]=e,i.name="".concat(t[e].first," ").concat(t[e].last),i.last.includes(a)&&n.push(i),l.value=n})}};kg(Hg(TP("/watl/players"),Fg("firstLowCase"),Mg(n.toLowerCase()),Ng(n.toLowerCase()+""))).then(e=>i(e))}const t=e=>{if(e.exists()){let t=e.val();return Object.keys(t).filter(e=>!t[e].archive).map(e=>{let n=t[e];return n.name="".concat(t[e].first," ").concat(t[e].last),n[".key"]=e,n})}return[]};kg(Hg(TP("/watl/players"),Fg("firstLowCase"),Mg(e.toLowerCase()),Ng(e.toLowerCase()+""))).then(e=>o.value=t(e)),kg(Hg(TP("/watl/players"),Fg("lastLowCase"),Mg(e.toLowerCase()),Ng(e.toLowerCase()+""))).then(e=>s.value=t(e))}}function d(e){const t=u.value.find(t=>t.code===e);r("gotPlayer",t)}function h(e){e&&(e===i.user.code?n.push("/watl/profile"):n.push("/player/".concat(e)))}return(t,n)=>{const i=ki("v-avatar"),o=ki("v-icon"),s=ki("v-autocomplete");return oo(),ho("div",fG,[bo(i,{size:ln(a)?184:340,class:ne(["userAvatar",{emptyUser:!e.player.code}]),onClick:n[0]||(n[0]=t=>h(e.player.code))},{default:ea(()=>[yo("img",{src:e.player.pic,alt:""},null,8,mG)]),_:1},8,["size","class"]),e.player.code?(oo(),ho(eo,{key:0},[yo("div",{class:"d-flex userName",onClick:n[1]||(n[1]=t=>h(e.player.code))},[yo("p",vG,Te("".concat(e.player.first||"player"," ").concat(e.player.last||"name")),1),bo(o,{icon:"mdi-open-in-new",class:"openIcon"})]),yo("p",{class:"changePlayer",onClick:n[2]||(n[2]=e=>r("changePlayer"))},"change player")],64)):(oo(),po(s,{key:1,items:u.value,"item-title":"name","item-value":"code",variant:"outlined",class:"searchUser","menu-icon":"mdi-chevron-down",label:"Enter Player Name",density:"compact","onUpdate:search":c,"onUpdate:modelValue":d},null,8,["items"]))])}}},yG=PX(gG,[["__scopeId","data-v-dfe4f3e6"]]),bG={class:"comparisonContainer"},_G={class:"newContainer comparisonWrapper"},wG={class:"players"},kG={class:"compareBtn"},CG={__name:"playerComparison",props:{locationSlug:String},setup(e){const t=mL(),n=LP(),a=e,i=nr("postHog");function r(e,t){let a=Object.keys(e).length?{pic:e.pic,first:e.first,last:e.last,code:e.code}:{};n.setComparedPlayer({player:t,value:a})}function o(){t.push("".concat(a.locationSlug,"/compare")),i.capture("button_compare",{buttonPlace:"home page"})}return(e,t)=>(oo(),ho("div",bG,[yo("div",_G,[t[5]||(t[5]=yo("h2",{class:"title"},"Player Comparison",-1)),yo("div",wG,[bo(yG,{class:"player",player:ln(n).comparedPlayers.player1,onGotPlayer:t[0]||(t[0]=e=>r(e,"player1")),onChangePlayer:t[1]||(t[1]=()=>r({},"player1"))},null,8,["player"]),bo(yG,{class:"player",player:ln(n).comparedPlayers.player2,onGotPlayer:t[2]||(t[2]=e=>r(e,"player2")),onChangePlayer:t[3]||(t[3]=()=>r({},"player2"))},null,8,["player"])]),yo("div",kG,[bo(ij,{onClick:o},{default:ea(()=>[...t[4]||(t[4]=[yo("span",null,"Compare",-1)])]),_:1})])])]))}},SG=PX(CG,[["__scopeId","data-v-8804defc"]]),TG={class:"head"},AG={key:0},EG={key:1},IG=PX({__name:"siteHome",props:{locationSlug:String},setup(e){const t=jG(),n=an(fP.currentUser?"userData":"venueData"),a=an(null);return an([]),rn(!1),rn(""),hi(async()=>{window.scrollTo({top:0})}),(i,r)=>{const o=ki("v-tab"),s=ki("v-tabs");return oo(),ho("div",null,[yo("div",TG,[r[2]||(r[2]=yo("img",{src:"https://firebasestorage.googleapis.com/v0/b/forged-7adb7.appspot.com/o/common%2Fheader.jpg?alt=media&token=0d5c24ba-5247-4526-b264-e911e5a15daf",alt:""},null,-1)),"watl"===ln(t).venue.locationSlug?(oo(),ho("div",AG,[...r[1]||(r[1]=[yo("h1",null,[ko("The Official Leaderboard Of WATL"),yo("sup",null,"TM")],-1),yo("h2",null,"Track Leagues. Player Stats & More…”",-1)])])):(oo(),ho("div",EG,[yo("h1",null,Te(ln(t).venue.company),1),yo("h2",null,Te(ln(t).venue.city),1)]))]),ln(fP).currentUser?(oo(),po(s,{key:0,modelValue:n.value,"onUpdate:modelValue":r[0]||(r[0]=e=>n.value=e),class:"homePageTabs"},{default:ea(()=>[bo(o,{value:"userData"},{default:ea(()=>[...r[3]||(r[3]=[ko("My events",-1)])]),_:1}),bo(o,{value:"venueData"},{default:ea(()=>[...r[4]||(r[4]=[ko("Venue",-1)])]),_:1})]),_:1},8,["modelValue"])):So("",!0),"userData"===n.value?(oo(),ho(eo,{key:1}
5091,[bo(VH),bo(Mz,{ref_key:"userExploreRef",ref:a},null,512)],64)):So("",!0),"venueData"===n.value?(oo(),ho(eo,{key:2},["watl"===ln(t).venue.locationSlug&&ln(fP).currentUser?(oo(),po(pG,{key:0})):So("",!0),yo("div",{class:ne(["d-flex","flex-column",{"flex-column-reverse":"watl"!==ln(t).venue.locationSlug||!ln(fP).currentUser}])},[ln(fP).currentUser?(oo(),po(SG,{key:0,locationSlug:e.locationSlug},null,8,["locationSlug"])):So("",!0),ln(t).venue.hideLeagues?So("",!0):(oo(),po(JU,{key:1}))],2),"watl"===ln(t).venue.locationSlug?(oo(),po(jj,{key:1})):So("",!0),bo(gH,{locationSlug:e.locationSlug},null,8,["locationSlug"])],64)):So("",!0)])}}},[["__scopeId","data-v-21c12630"]]),xG={requireAuth(e,t,n){var a,i,r;if(fP.currentUser){let t=JSON.parse(fP.currentUser.reloadUserInfo.customAttributes||"{}");const o="siteAccess"in t&&["master","commissioner"].includes(t.siteAccess),s=null==(i=null==(a=t.venues)?void 0:a[e.params.locationSlug])?void 0:i.role;o?n():s?(r=s,!0===e.meta.accessWithAdmin&&["admin","owner"].includes(r)||!0===e.meta.accessWithHost&&["admin","owner","host"].includes(r)?n():n("/")):n("/")}else n("/")}};const NG=PX({name:"testRedirectComponent",props:{lane:String,locationSlug:String},data:()=>({noValue:!1}),methods:{goBack(){this.$router.go(-1)}},mounted(){kg(SP("/venues/".concat(this.locationSlug,"/tv/").concat(this.lane))).then(e=>{if(e.exists()){let t=e.val();this.$router.push(t)}else this.noValue=!0})}},[["render",function(e,t,n,a,i,r){const o=ki("v-btn");return oo(),ho(eo,null,[t[2]||(t[2]=yo("div",{class:"content"},"Please wait...",-1)),i.noValue?(oo(),ho(eo,{key:0},[t[1]||(t[1]=yo("div",{class:"content"},"There is no any match for this link",-1)),bo(o,{onClick:r.goBack},{default:ea(()=>[...t[0]||(t[0]=[ko("Go back",-1)])]),_:1},8,["onClick"])],64)):So("",!0)],64)}],["__scopeId","data-v-3b430e88"]]),PG=()=>OR(()=>import("./hosts-B73H6XnY.js"),__vite__mapDeps([0,1,2,3])),MG=()=>OR(()=>import("./hostsEvents-CPLsYHDG.js"),__vite__mapDeps([4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,1,2,19,20,21,22,23])),OG=()=>OR(()=>import("./siteProfile-CZNGFVao.js"),__vite__mapDeps([24,22,12,25,26,27,13,9,14,28,29,30,31,32])),RG=()=>OR(()=>import("./siteLogin-D8VA8VNT.js"),__vite__mapDeps([33,28,34,35,36,29,30,37])),DG=()=>OR(()=>import("./watl-Dr90i3Zc.js"),__vite__mapDeps([38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,15,54,55,56,57,58,59])),LG=()=>OR(()=>import("./watlDoubles-BYtZkzCY.js"),__vite__mapDeps([60,39,40,41,42,43,44,61,52,53,62,46,63,54,64])),BG=()=>OR(()=>import("./watlBigAxe-Cgw7ST53.js"),__vite__mapDeps([65,39,40,41,42,43,44,45,46,47,55,56,57,58,52,53,61,62,54,66])),FG=function(e){const t=UD(e.routes,e),n=e.parseQuery||YD,a=e.stringifyQuery||JD,i=e.history,r=iL(),o=iL(),s=iL(),l=rn(hD);let u=hD;RR&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=BR.bind(null,e=>""+e),d=BR.bind(null,aD),h=BR.bind(null,iD);function p(e,r){if(r=LR({},r||l.value),"string"==typeof e){const a=oD(n,e,r.path),o=t.resolve({path:a.path},r),s=i.createHref(a.fullPath);return LR(a,o,{params:h(o.params),hash:iD(a.hash),redirectedFrom:void 0,href:s})}let o;if(null!=e.path)o=LR({},e,{path:oD(n,e.path,r.path).path});else{const t=LR({},e.params);for(const e in t)null==t[e]&&delete t[e];o=LR({},e,{params:d(t)}),r.params=d(r.params)}const s=t.resolve(o,r),u=e.hash||"";s.params=c(h(s.params));const p=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(a,LR({},e,{hash:(f=u,eD(f).replace(YR,"{").replace(QR,"}").replace(qR,"^")),path:s.path}));var f;const m=i.createHref(p);return LR({fullPath:p,hash:u,query:a===JD?QD(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function f(e){return"string"==typeof e?oD(n,e,l.value.path):LR({},e)}function m(e,t){if(u!==e)return PD(8,{from:t,to:e})}function v(e){return y(e)}function g(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let a="function"==typeof n?n(e):n;return"string"==typeof a&&(a=a.includes("?")||a.includes("#")?a=f(a):{path:a},a.params={}),LR({query:e.query,hash:e.hash,params:null!=a.path?{}:e.params},a)}}function y(e,t){const n=u=p(e),i=l.value,r=e.state,o=e.force,s=!0===e.replace,c=g(n);if(c)return y(LR(f(c),{state:"object"==typeof c?LR({},r,c.state):r,force:o,replace:s}),t||n);const d=n;let h;return d.redirectedFrom=t,!o&&function(e,t,n){const a=t.matched.length-1,i=n.matched.length-1;return a>-1&&a===i&&lD(t.matched[a],n.matched[i])&&uD(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(a,i,n)&&(h=PD(16,{to:d,from:i}),P(i,i,!0,!1)),(h?Promise.resolve(h):w(d,i)).catch(e=>MD(e)?MD(e,2)?e:N(e):x(e,d,i)).then(e=>{if(e){if(MD(e,2))return y(LR({replace:s},f(e.to),{state:"object"==typeof e.to?LR({},r,e.to.state):r,force:o}),t||d)}else e=C(d,i,!0,s,r);return k(d,i,e),e})}function b(e,t){const n=m(e,t);return n?Promise.reject(n):Promise.resolve()}function _(e){const t=R.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function w(e,t){let n;const[a,i,s]=function(e,t){const n=[],a=[],i=[],r=Math.max(t.matched.length,e.matched.length);for(let o=0;o<r;o++){const r=t.matched[o];r&&(e.matched.find(e=>lD(e,r))?a.push(r):n.push(r));const s=e.matched[o];s&&(t.matched.find(e=>lD(e,s))||i.push(s))}return[n,a,i]}(e,t);n=oL(a.reverse(),"beforeRouteLeave",e,t);for(const r of a)r.leaveGuards.forEach(a=>{n.push(rL(a,e,t))});const l=b.bind(null,e,t);return n.push(l),L(n).then(()=>{n=[];for(const a of r.list())n.push(rL(a,e,t));return n.push(l),L(n)}).then(()=>{n=oL(i,"beforeRouteUpdate",e,t);for(const a of i)a.updateGuards.forEach(a=>{n.push(rL(a,e,t))});return n.push(l),L(n)}).then(()=>{n=[];for(const a of s)if(a.beforeEnter)if(VR(a.beforeEnter))for(const i of a.beforeEnter)n.push(rL(i,e,t));else n.push(rL(a.beforeEnter,e,t));return n.push(l),L(n)}).then(()=>
5091(e.matched.forEach(e=>e.enterCallbacks={}),n=oL(s,"beforeRouteEnter",e,t,_),n.push(l),L(n))).then(()=>{n=[];for(const a of o.list())n.push(rL(a,e,t));return n.push(l),L(n)}).catch(e=>MD(e,8)?e:Promise.reject(e))}function k(e,t,n){s.list().forEach(a=>_(()=>a(e,t,n)))}function C(e,t,n,a,r){const o=m(e,t);if(o)return o;const s=t===hD,u=RR?history.state:{};n&&(a||s?i.replace(e.fullPath,LR({scroll:s&&u&&u.scroll},r)):i.push(e.fullPath,r)),l.value=e,P(e,t,n,s),N()}let S;function T(){S||(S=i.listen((e,t,n)=>{if(!D.listening)return;const a=p(e),r=g(a);if(r)return void y(LR(r,{replace:!0,force:!0}),a).catch(FR);u=a;const o=l.value;var s,c;RR&&(s=kD(o.fullPath,n.delta),c=_D(),CD.set(s,c)),w(a,o).catch(e=>MD(e,12)?e:MD(e,2)?(y(LR(f(e.to),{force:!0}),a).then(e=>{MD(e,20)&&!n.delta&&n.type===pD.pop&&i.go(-1,!1)}).catch(FR),Promise.reject()):(n.delta&&i.go(-n.delta,!1),x(e,a,o))).then(e=>{(e=e||C(a,o,!1))&&(n.delta&&!MD(e,8)?i.go(-n.delta,!1):n.type===pD.pop&&MD(e,20)&&i.go(-1,!1)),k(a,o,e)}).catch(FR)}))}let A,E=iL(),I=iL();function x(e,t,n){N(e);const a=I.list();return a.length?a.forEach(a=>a(e,t,n)):console.error(e),Promise.reject(e)}function N(e){return A||(A=!e,T(),E.list().forEach(([t,n])=>e?n(e):t()),E.reset()),e}function P(t,n,a,i){const{scrollBehavior:r}=e;if(!RR||!r)return Promise.resolve();const o=!a&&function(e){const t=CD.get(e);return CD.delete(e),t}(kD(t.fullPath,0))||(i||!a)&&history.state&&history.state.scroll||null;return jn().then(()=>r(t,n,o)).then(e=>e&&wD(e)).catch(e=>x(e,t,n))}const M=e=>i.go(e);let O;const R=new Set,D={currentRoute:l,listening:!0,addRoute:function(e,n){let a,i;return ED(e)?(a=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,a)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},clearRoutes:t.clearRoutes,hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map(e=>e.record)},resolve:p,options:e,push:v,replace:function(e){return v(LR(f(e),{replace:!0}))},go:M,back:()=>M(-1),forward:()=>M(1),beforeEach:r.add,beforeResolve:o.add,afterEach:s.add,onError:I.add,isReady:function(){return A&&l.value!==hD?Promise.resolve():new Promise((e,t)=>{E.add([e,t])})},install(e){e.component("RouterLink",uL),e.component("RouterView",fL),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>ln(l)}),RR&&!O&&l.value===hD&&(O=!0,v(i.location).catch(e=>{}));const t={};for(const a in hD)Object.defineProperty(t,a,{get:()=>l.value[a],enumerable:!0});e.provide(tL,this),e.provide(nL,zt(t)),e.provide(aL,l);const n=e.unmount;R.add(e),e.unmount=function(){R.delete(e),R.size<1&&(u=hD,S&&S(),S=null,l.value=hD,O=!1,A=!1),n()}}};function L(e){return e.reduce((e,t)=>e.then(()=>_(t)),Promise.resolve())}return D}({history:function(e){const t=AD(e=gD(e)),n=function(e,t,n,a){let i=[],r=[],o=null;const s=({state:r})=>{const s=SD(e,location),l=n.value,u=t.value;
5091let c=0;if(r){if(n.value=s,t.value=r,o&&o===l)return void(o=null);c=u?r.position-u.position:0}else a(s);i.forEach(e=>{e(n.value,l,{delta:c,type:pD.pop,direction:c?c>0?mD.forward:mD.back:mD.unknown})})};function l(){const{history:e}=window;e.state&&e.replaceState(LR({},e.state,{scroll:_D()}),"")}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",l,{passive:!0}),{pauseListeners:function(){o=n.value},listen:function(e){i.push(e);const t=()=>{const t=i.indexOf(e);t>-1&&i.splice(t,1)};return r.push(t),t},destroy:function(){for(const e of r)e();r=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",l)}}}(e,t.state,t.location,t.replace),a=LR({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:bD.bind(null,e)},t,n);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}(),props:!0,routes:[{path:"/live",name:"play",props:!0,component:()=>OR(()=>import("./play-tWkHPZFX.js"),__vite__mapDeps([67,33,28,34,35,36,29,30,37,48,49,68,69])),children:[]},{path:"/",component:yj,props:!0,children:[{path:"login",component:RG,props:!0},{name:"compare",path:":locationSlug/compare",component:()=>OR(()=>import("./siteCompare-CROXVAiS.js"),__vite__mapDeps([70,71])),props:!0,beforeEnter(e,t,n){fP.currentUser?n():n("/")}},{name:"circuit",path:":locationSlug/circuit",component:()=>OR(()=>import("./siteCircuit-BctFJtMc.js"),__vite__mapDeps([72,73])),props:!0},{name:"venues",path:":locationSlug/venues",component:()=>OR(()=>import("./siteVenues-DTaMWUpS.js"),__vite__mapDeps([74,17,18,75])),props:!0},{name:"login",path:":locationSlug/login",component:RG,props:!0},{name:"disVenuesSubscription",path:":locationSlug/trialSubscription",component:()=>OR(()=>import("./disVenueSubscription-NKEtx4Pi.js"),[]),props:!0},{path:":locationSlug/login/action",component:()=>OR(()=>import("./sitePasswordReset-gwCXKm3A.js"),__vite__mapDeps([76,77]))},{name:"home",path:"",redirect:"/watl",props:!0},{name:"documents",path:"/documents/:document",component:()=>OR(()=>import("./siteDocuments-OJyldw3n.js"),__vite__mapDeps([78,34,35,79])),props:!0},{name:"news",path:":locationSlug",component:IG,props:!0},{name:"signup",path:":locationSlug/signup",component:()=>OR(()=>import("./siteAddVenue-C7ALT5-W.js"),__vite__mapDeps([80,81,82,83,36,30,84])),props:!0},{name:"selfSignUpTournaments",path:":locationSlug/selfSignUpTournaments",component:()=>OR(()=>import("./siteSelfSignUp-BLPvTxFy.js"),__vite__mapDeps([85,17,18,86])),props:!0,beforeEnter(e,t,n){fP.currentUser?n():n("/")}},{name:"playerSubscription",path:":locationSlug/playerSubscription",component:()=>OR(()=>import("./sitePlayerSubscriptions-MHIwQ9jI.js"),__vite__mapDeps([87,20,21,88])),props:!0,beforeEnter(e,t,n){fP.currentUser?n():n("/")}},{name:"league",path:":locationSlug/league/:leagueID",component:()=>OR(()=>import("./siteLeagueView-vOWLuW2I.js"),__vite__mapDeps([89,57,58,28,90,39,40,41,42,43,44,91,92,93,47,63,94,27,95,96,46,48,49,50,51,17,18,68,31,97,98,99,100])),props:!0},{name:"tournaments",path:":locationSlug/tournament",component:()=>OR(()=>import("./siteTournaments-BU1yyRqb.js"),__vite__mapDeps([101,102,103,11,15,104])),props:!0},{name:"leagues",path:":locationSlug/leagues",component:()=>OR(()=>import("./siteLeagues-CKT1KOu7.js"),__vite__mapDeps([105,102,103,106])),props:!0},{name:"qt",path:":locationSlug/qt",component:()=>OR(()=>import("./siteQT-CIv0tO-Y.js"),__vite__mapDeps([107,108])),props:!0},{name:"tournament",path:":locationSlug/tournament/view/:leagueID",component:()=>OR(()=>import("./siteTournamentView-B0ui3xCB.js"),__vite__mapDeps([109,98,57,58,99,28,90,39,40,41,42,43,44,91,92,93,47,63,94,27,95,96,46,48,49,50,51,17,18,68,31,97,110])),props:!0},{name:"virtual",path:":locationSlug/virtual/view/:leagueID",component:()=>OR(()=>import("./siteVirtualEvent-CTjlguD9.js"),__vite__mapDeps([111,57,58,28,90,39,40,41,42,43,44,91,92,93,47,63,94,27,95,96,46,48,49,50,51,17,18,68,31,97,98,99,112,113])),props:!0},{name:"qualifying",path:":locationSlug/qualifying/:leagueID",component:()=>OR(()=>import("./eventLeaderboard-BnVczQCJ.js"),__vite__mapDeps([90,39,40,41,42,43,44,91,92,93,47,63,94,27,95,96,46,48,49,50,51,17,18,68,31,97])),props:!0},{name:"article",path:":locationSlug/news/:articleID",component:()=>OR(()=>import("./siteArticle-BeV3ZZ4h.js"),__vite__mapDeps([114,115])),props:!0},{name:"players",path:":locationSlug/player",component:()=>OR(()=>import("./sitePlayers-DIocstW6.js"),__vite__mapDeps([116,17,18,117,15,118])),props:!0},{name:"player",path:":locationSlug/player/:playerCode",component:OG,props:!0},{name:"team",path:"team/:teamID",component:()=>OR(()=>import("./siteTeam-DEXfWWCr.js"),__vite__mapDeps([119,13,9,14,120])),props:!0},{name:"playerCode",path:"player/:playerCode",component:OG,props:!0},{name:"profile",path:":locationSlug/profile",component:OG,beforeEnter(e,t,n){fP.currentUser?n():n("/")}},{path:":locationSlug/game/:game/:type",name:"watlPublic",component:DG,props:!0},{path:":locationSlug/league/:leagueID/:seasonID/:weekID/:game",name:"watlPublicGame",component:DG,props:!0},{path:"/game/:game/:type",name:"watlPublicNoVenue",component:DG,props:!0},{path:":locationSlug/league/:leagueID/:seasonID/:weekID/:game/watl-doubles",name:"watlDoublesPublic",component:LG,props:!0},{path:":locationSlug/league/:leagueID/:seasonID/:weekID/:game/watl-big-axe",name:"watlBigAxePublic",component:BG,props:!0},{path:":locationSlug/group-event/connect-5/:leagueID/:lane/tv",name:"connectFivePublic",component:()=>OR(()=>import("./connectFivePublic-BzKvoAKR.js"),__vite__mapDeps([121,122,123,124,125,126,127])),props:!0},{path:":locationSlug/group-event/tic-tac-toe/:leagueID/:lane/tv",name:"ticTacToePublic",component:()=>OR(()=>import("./ticTacToePublic-Pa24t4wX.js"),__vite__mapDeps([128,129,123,130,124,131,132])),props:!0},{path:":locationSlug/group-event/axe-cricket/:leagueID/:lane/tv",name:"axeCricketPublic",component:()=>OR(()=>import("./axeCricketPublic-Bb5jaUZK.js"),__vite__mapDeps([133,134,135,124,136])),props:!0},{path:":locationSlug/league/:leagueID/:seasonID/:weekID/:rules/:lane/tv",name:"watlPublicTv",component:()=>OR(()=>import("./watlPublic-CPIJ2j66.js"),__vite__mapDeps([137,54,138])),props:!0},{path:":locationSlug/league/:leagueID/:seasonID/:weekID/:rules/duals/:lane/tv",name:"watlDualsPublic",component:()=>OR(()=>import("./watlDualsPublic-C_byAhG0.js"),__vite__mapDeps([139,45,46,63,54,140])),props:!0},{path:":locationSlug/group-event/:leagueID/quick/:lane/tv",name:"watlQuickGamesPublic",component:()=>OR(()=>import("./watlQuickGamesPublic-X5w0bYJ5.js"),__vite__mapDeps([141,54,142])),props:!0},{path:":locationSlug/guest-games",name:"guestGames",component:()=>OR(()=>import("./siteGuestGames-CusioyG_.js"),__vite__mapDeps([143,123,130,124,125,135,144,145])),props:!0},{path:":locationSlug/league/:leagueID/public-quick-games/:game",name:"watlPublicQuickGames",component:()=>OR(()=>import("./watlQuickGamesGuestMode-DTo39bGB.js"),__vite__mapDeps([146,147,40,41,42,148,45,47,48,49,54,149])),props:!0,meta:{accessWithAdmin:!0,accessWithHost:!0}}]},{name:"billing",path:"/b",beforeEnter(e,t,n){window.location.href="https://billing.stripe.com/p/login/eVa7sW3q1gvY18I8ww"}},{path:"/live/:locationSlug/:eventType/:leagueID",name:"screen",component:()=>OR(()=>import("./screenOne-xBeSxGRA.js"),__vite__mapDeps([150,93,47,63,42,43,94,95,96,151,92])),props:!0},{path:"/hosts",name:"hosts",meta:{accessWithAdmin:!0,accessWithHost:!0},props:!0,component:PG,beforeEnter:xG.requireAuth,children:[{path:":locationSlug/teams",component:()=>OR(()=>
5091import("./hostsTeams-C1dY5C5c.js"),__vite__mapDeps([152,153])),name:"hostsTeams"},{path:":locationSlug/payments/dashboard",component:()=>OR(()=>import("./newDashboard-DDL-MvCc.js"),__vite__mapDeps([154,16,17,18,1,2,19,155])),name:"paymentDash",meta:{accessWithMaster:!0}},{name:"hostsVenueMaster",path:":locationSlug/venue-master",component:()=>OR(()=>import("./hostsVenueMaster-q5mFkv20.js"),__vite__mapDeps([156,157,8,9,10,158,81,82,30,36,83,159,16,17,18,1,2,19,25,26,160]))},{name:"hostsLeagues",path:":locationSlug/league",component:MG,meta:{accessWithAdmin:!0,accessWithHost:!0}},{path:":locationSlug/:eventType/:leagueID",name:"hostsLeague",component:()=>OR(()=>import("./hostsEvent-DpoXz-Nn.js"),__vite__mapDeps([161,8,9,10,39,40,41,42,43,44,46,1,2,112,162])),props:!0,meta:{accessWithAdmin:!0,accessWithHost:!0}},{path:":locationSlug/group-event/:leagueID",name:"hostsQuickGroupGames",component:()=>OR(()=>import("./hostsQuickGroupGames-N1Xwc4FD.js"),__vite__mapDeps([163,147,40,41,42,148,1,2,164,21,88])),props:!0,meta:{accessWithAdmin:!0,accessWithHost:!0}},{path:":locationSlug/subscription",component:()=>OR(()=>import("./hostsSubscription-D3lmDC6X.js"),__vite__mapDeps([165,20,21,16,17,18,1,2,19,166])),meta:{accessWithAdmin:!0,accessWithHost:!0}},{path:":locationSlug/seasons",component:()=>OR(()=>import("./hostsSeasons-PJUsHXha.js"),__vite__mapDeps([167,16,17,18,1,2,19,12,28,81,82,6,7,15,168])),meta:{accessWithAdmin:!0,accessWithHost:!0}},{name:"hostsVenue",path:":locationSlug/venue",component:()=>OR(()=>import("./hostsVenue-HRw6vayq.js"),__vite__mapDeps([169,157,8,9,10,158,81,82,30,36,83,159,16,17,18,1,2,19])),beforeEnter:xG.requireAuth,meta:{accessWithAdmin:!0,accessWithHost:!1}},{name:"hostTournament",path:":locationSlug/tournament",component:MG,meta:{accessWithAdmin:!0,accessWithHost:!0}},{name:"hostQualifying",path:":locationSlug/qualifying",component:MG,meta:{accessWithAdmin:!0,accessWithHost:!0}},{name:"hostPlayers",path:":locationSlug/players",component:()=>OR(()=>import("./hostsPlayers-CLKaYXk3.js"),__vite__mapDeps([170,171,8,9,10,158,81,82,36,29,30,172,28,173,174,175,176,16,17,18,1,2,19,117,15,177])),meta:{accessWithAdmin:!0,accessWithHost:!0}},{name:"hostGroup",path:":locationSlug/group",component:()=>OR(()=>import("./hostsGroup-DrrrRrKV.js"),__vite__mapDeps([178,13,9,14,5,8,10,16,17,18,1,2,19,144,179])),meta:{accessWithAdmin:!0,accessWithHost:!0}},{path:":locationSlug/news",component:()=>OR(()=>import("./hostsNews--JwZGRZf.js"),__vite__mapDeps([180,81,82,13,9,14,16,17,18,1,2,19,181])),beforeEnter:xG.requireAuth,meta:{accessWithAdmin:!0,accessWithHost:!1}},{path:":locationSlug/sponsors",component:()=>OR(()=>import("./hostsSponsors-74KFU6V3.js"),__vite__mapDeps([182,8,9,10,81,82,16,17,18,1,2,19,183])),beforeEnter:xG.requireAuth,meta:{accessWithAdmin:!0,accessWithHost:!1}},{name:"hostAccess",path:":locationSlug/access",component:()=>OR(()=>import("./hostsAccess-PoeXtoQo.js"),__vite__mapDeps([184,171,8,9,10,158,81,82,36,29,30,172,173,174,175,176,16,17,18,1,2,19,185])),beforeEnter:xG.requireAuth,meta:{accessWithAdmin:!0,accessWithHost:!1}},{path:":locationSlug/settings",component:()=>OR(()=>import("./settings-D6CuQBkL.js"),[])},{path:":locationSlug/league/:leagueID/:seasonID/:weekID/:game/watl",name:"watl",component:DG,props:!0,meta:{accessWithAdmin:!0,accessWithHost:!0}},{path:":locationSlug/league/:leagueID/:seasonID/:weekID/:game/wktl/:rules",name:"wktl",component:DG,props:!0,meta:{accessWithAdmin:!0,accessWithHost:!0}},{path:":locationSlug/league/:leagueID/:seasonID/:weekID/:game/wktl_duals/:rules",name:"wktl-duals",component:LG,props:!0,meta:{accessWithAdmin:!0,accessWithHost:!0}},{path:":locationSlug/league/:leagueID/:seasonID/:weekID/:game/watl-doubles",name:"watlDoubles",component:LG,props:!0},{path:":locationSlug/league/:leagueID/:seasonID/:weekID/:game/watl-big-axe",name:"watlBigAxe",component:BG,props:!0},{path:":locationSlug/league/:leagueID/:game/watl-quick-games",name:"watlQuickGames",component:()=>OR(()=>import("./watlQuickGames-CQ5Z52_0.js"),__vite__mapDeps([186,147,40,41,42,148,45,47,48,49,54,187])),props:!0,meta:{accessWithAdmin:!0,accessWithHost:!0}},{path:":locationSlug/group-event/connect-five/:leagueID",name:"hostsQuickGroupConnectFive",component:()=>OR(()=>
5091import("./hostsQuickGroupConnectFive-B6oSruUi.js"),__vite__mapDeps([188,122,123,124,125,126])),props:!0,meta:{accessWithAdmin:!0,accessWithHost:!0}},{path:":locationSlug/group-event/tic-tac-toe/:leagueID",name:"hostsQuickGroupTicTacToe",component:()=>OR(()=>import("./hostsQuickGroupTicTacToe--dHLkCCA.js"),__vite__mapDeps([189,129,123,130,124,131])),props:!0,meta:{accessWithAdmin:!0,accessWithHost:!0}},{path:":locationSlug/group-event/axe-cricket/:leagueID",name:"hostsQuickGroupAxeCricket",component:()=>OR(()=>import("./hostsQuickGroupAxeCricket-bprBgwTZ.js"),__vite__mapDeps([190,134,135,124,136])),props:!0,meta:{accessWithAdmin:!0,accessWithHost:!0}}]},{path:"/account",name:"account",meta:{accessWithOwner:!0},props:!0,component:PG,beforeEnter:xG.requireAuth,children:[{path:"dashboard/:locationSlug",name:"dashboardPayments",component:()=>OR(()=>import("./dashboard-CZhzASAb.js"),__vite__mapDeps([191,192])),meta:{accessWithAdmin:!0,accessWithHost:!0}}]},{path:"/hello",name:"hello",props:!0,component:yj,children:[{path:"i",component:()=>OR(()=>import("./start-gkgqpsCv.js"),__vite__mapDeps([193,91,92,194]))}]},{path:"/:locationSlug/tv/:lane",name:"tvLanes",props:!0,component:NG},{path:"/:catchAll(.*)",redirect:"/"},{path:"/undefined",redirect:"/"},{path:"/no-venue",redirect:e=>e.fullPath.includes("/game")?e.fullPath:"/"},{path:"/:locationSlug/guest-game/:leagueID/",name:"guestQuickGame",component:()=>OR(()=>import("./AccessGuard-v1Kz29bJ.js"),__vite__mapDeps([195,147,40,41,42,148,1,2,196])),props:!0}]});FG.beforeEach(()=>{window.scrollTo(0,0)});const VG=wu("user",{state:()=>({siteAccess:null,user:{},userRoles:{master:!1,admin:!1,host:!1,owner:!1},userVenues:{},career:{watl:{},wktl:{},axeThrowing:{},knifeThrowing:{}},location:{},playerCareerLoaded:!1}),getters:{userHasExtendedAccess:e=>"master"===e.siteAccess||"commissioner"===e.siteAccess,getProfile:e=>e.user,getUserRoles:e=>e.userRoles,getUser:e=>e.user,getSiteAccess:e=>e.siteAccess,getUserVenues:e=>e.userVenues,listAllUserEvents:e=>{const t=[];return Object.keys(e.career).forEach(n=>{e.career[n].league&&t.push(...Object.values(e.career[n].league)),e.career[n].tournament&&t.push(...Object.values(e.career[n].tournament))}),t},getUserHomeVenue:e=>{let t=Object.keys(e.userVenues||{})[0]||e.user.venue;for(const[n,a]of Object.entries(e.userVenues||{}))a.homeVenue&&(t=n);return t}},actions:{setTheme(e){void 0===e.theme&&(e.theme=null),wg(TP("/watl/players/".concat(e.user)),{theme:e.theme})},setSiteAccess(e){this.siteAccess=e},setUserVenues(e){this.userVenues=e},setUserVenueRoles(e){Ag(SP("/venues/"+e.venue+"/access/"+e.playerkey),t=>{let n={master:!1,admin:!1,host:!1,owner:!1};t.exists()?n=t.val():"master"===e.access?n={master:!0,admin:!0,host:!0}:"watl"!==e.venue&&FG.currentRoute.value.params.locationSlug!==e.venue&&FG.push("/"+e.venue),this.userRoles=n,PR.set("userRoles",n,{expires:30})},{onlyOnce:!0})},getPlayerCareer(e){Object.keys(this.career).forEach((t,n)=>{["league","tournament"].forEach(a=>{kg(TP("".concat(t,"/players-career/").concat(e,"/").concat(a))).then(e=>{e.exists()?this.career[t][a]=e.val():this.career[t][a]={},n===Object.keys(this.career).length-1&&(this.playerCareerLoaded=!0)})})})},async setUser(){Ag(Hg(TP("/watl/players"),Fg("email"),Ug(fP.currentUser.email)),async e=>{if(!e.exists())return;let t=e.val()[Object.keys(e.val())[0]];t[".key"]=Object.keys(e.val())[0],this.getPlayerCareer(t[".key"]),this.user=t});const e=await oR(fP.currentUser.email),{siteAccess:t,venues:n}=e;this.setSiteAccess(t),this.setUserVenues(n)},setUserInformation(e){this.user=e,this.getPlayerCareer(e[".key"])},clearUserData(){TR().clearChats(),this.user={},this.siteAccess=null,this.userRoles={master:!1,admin:!1,host:!1,owner:!1},this.userVenues={},this.career={watl:{},wktl:{},axeThrowing:{},knifeThrowing:{}}},$reset(){this.clearUserData()}}}),XG=wu("season",{state:()=>({currentSeason:"Summer",currentYear:"2026",seasons:[{title:"Season 1",value:"Winter"},{title:"Season 2",value:"Spring"},{title:"Season 3",value:"Summer"},{title:"Season 4",value:"Fall"}],seasonYears:{Season1:2019,Season2:2020,Season3:2021,Season4:2022,Season5:2023,Season6:2024,Season7:2025,Season8:2026},hostSeason:"Season8",hostWeek:{}}),getters:{getYearSeason:e=>{for(let[t,n]of Object.entries(e.seasonYears))if(+n===+e.currentYear)return t},getCurrentSeason:e=>{const t=jG(),n=(new Date).getFullYear();if(parseInt(e.currentYear)>n)return e.seasons.find(t=>t.value.toLowerCase()===e.currentSeason.toLowerCase());if(!t.venueSeasons||!t.venueSeasons[e.currentYear])return e.seasons.find(t=>t.value.toLowerCase()===e.currentSeason.toLowerCase());const a=t.venueSeasons[e.currentYear],i=(new Date).getTime();let r=Object.values(a||{}).sort((e,t)=>
5091e.dates.start-t.dates.start).find(e=>i>e.dates.publish&&i<e.dates.end),o=(null==r?void 0:r.value)||e.currentSeason;return e.seasons.find(e=>e.value.toLowerCase()===o.toLowerCase())}}}),jG=wu("venue",{state:()=>({venue:{},venueSeasons:{},venues:[],listTournaments:[],listQTs:[],listLeagues:[],listGroupEvents:[],listQualifying:[],subscription:{},groupedLeagues:{},articles:[],sponsors:[]}),getters:{postSeasonInfo:e=>{const t=XG(),n=parseInt(t.currentYear),a=e.venueSeasons[n],i=(new Date).getTime();if(Object.values(a||{}).find(e=>i>e.dates.publish&&i<e.dates.end)||"custom"===e.venue.type)return;const r=Object.values(a||{}).filter(e=>i>e.dates.end).sort((e,t)=>e.dates.end-t.dates.end),o=Object.values(a||{}).filter(e=>i<e.dates.publish).sort((e,t)=>e.dates.publish-t.dates.publish);if(0===r.length){const t=e.venueSeasons[n-1];let a;if(t){const e=Object.values(t||{}).sort((e,t)=>e.dates.end-t.dates.end);a=e[e.length-1]}else a={title:"Season 4",value:"Winter"};return{recentSeason:{...a,year:n-1},nextSeason:{...o[0],year:n}}}if(0===o.length){const t=e.venueSeasons[n+1];let a;if(t){a=Object.values(t||{}).sort((e,t)=>e.dates.publish-t.dates.publish)[0]}else a={title:"Season 1",value:"Winter"};return{recentSeason:{...r[r.length-1],year:n},nextSeason:{...a,year:n+1}}}return{recentSeason:{...r[r.length-1],year:n},nextSeason:{...o[0],year:n}}},getListQualifying:e=>e.listQualifying.reverse(),featuredLeagues:e=>e.listLeagues.filter(e=>e.pin&&!e.archive),featuredTournaments:e=>e.listTournaments.filter(e=>e.pin&&!e.archive),tournamentsAll:e=>e.listTournaments.sort((e,t)=>e.date>t.date?-1:e.date<t.date?1:0),tournamentsFinished(){const e=LP();return this.tournamentsAll.filter(t=>t.dateStart?t.dateStart<e.dateToday:t.date<e.dateToday)},tournamentsRecent(){const e=LP();return this.tournamentsAll.filter(t=>!t.archive&&t.date<e.dateToday)},tournamentsArchived(){return this.tournamentsAll.filter(e=>e.archive)},tournamentsUpcoming(){const e=LP();return this.tournamentsAll.filter(t=>!t.archive&&t.dateStart>=e.dateToday).sort((e,t)=>e.date<t.date?-1:e.date>t.date?1:0)}},actions:{setSponsors(e){Ag(Hg(SP("/venues/"+e+"/sponsors"),Fg("active"),Mg("Active"),Ng("Active"),Rg(3)),e=>{if(e.exists()){let t=e.val(),n=Object.keys(t).map(e=>{let n=t[e];return n[".key"]=e,n});const a=n.map(e=>{if(e.fav)return e}).filter(e=>e),i=n.map(e=>{if(!e.fav)return e}).filter(e=>e);this.sponsors=[...a,...i]}else this.sponsors=[]})},setVenueArticles(e){Ag(SP("/venues/"+e+"/articles"),e=>{if(e.exists()){let t=e.val(),n=Object.keys(t).map(e=>{let n=t[e];return n[".key"]=e,n});this.articles=n}else this.articles=[]},{onlyOnce:!0})},setVenue(e){Ag(TP("/venues/"+e),t=>{if(t.exists()){let n=t.val();n.locationSlug=e,n[".key"]=e,this.venue=n}else FG.push("/watl")})},setVenueSeasons(e){Ag(TP("/".concat(e.rules,"/seasons/").concat(e.locationSlug)),e=>{this.venueSeasons=e.val()||{}})},setVenues(){Ag(TP("/venues/"),e=>{let t=e.val(),n=Object.keys(t).map(e=>{let n=t[e];return n[".key"]=e,n});this.venues=n})},setListTournaments(e){Ag(SP("/venues/"+e+"/event-list/tournament"),e=>{if(e.exists()){let t=e.val(),n=Object.keys(t).map(e=>{let n=t[e];return n[".key"]=e,n});this.listTournaments=n}else this.listTournaments=[]})},async setListQTs({venue:e}){const t=SP("/venues/watl/event-list/qualifying"),n=SP("/venues/".concat(e,"/event-list/qualifying")),a=await kg(Hg(t)).then(e=>{let t=e.val()||{};return Object.keys(t).map(e=>{let n=t[e];return n[".key"]=e,n})}),i=await kg(Hg(n)).then(e=>{let t=e.val()||{};return Object.keys(t).map(e=>{let n=t[e];return n[".key"]=e,n})}),r=a.map(e=>{const t=i.findIndex(t=>e[".key"]===t[".key"]),n=-1===t||i[t].public;return{...e,public:n}}),o="watl"===e?r:r.filter(e=>e.public);this.listQTs=o},setListLeagues(e){Ag(SP("/venues/"+e+"/event-list/league"),e=>{if(e.exists()){let t=e.val(),n=Object.keys(t).map(e=>{let n=t[e];return n[".key"]=e,n}).reverse();this.listLeagues=n}else this.listLeagues=[]})},setListGroupEvents(e){Ag(SP("/venues/"+e+"/event-list/group-events"),e=>{if(e.exists()){let t=e.val(),n=Object.keys(t).map(e=>{let n=t[e];return n[".key"]=e,n});this.listGroupEvents=n}else this.listGroupEvents=[]})},setListQualifying(){Ag(SP("/venues/watl/event-list/qualifying"),e=>{if(e.exists()){let t=e.val(),n=Object.keys(t).map(e=>{let n=t[e];return n[".key"]=e,n});this.listQualifying=n}else this.listQualifying=[]})},setVenueSubscription(e){if(null==e?void 0:e.error)return console.error("Cannot set venue subscription due to error: ",e.message),void(this.subscription={error:!0,status:e.status||"error",message:e.message});const{plan:t,id:n,metadata:a,customer:i,cancel_at_period_end:r,current_period_end:o,status:s,trial_end:l}=e,u=e.items.data[0].id;this.subscription={plan:t,id:n,metadata:{...a,type:"venue_subscription"},customer:i,cancel_at_period_end:r,current_period_end:o,status:s,subscriptionItemId:u,trial_end:l}}}}),UG=wu("event",{state:()=>({selectedEvent:[],selectedTournamentRanking:{},selectedTournamentBracketInfo:{},selectedEventSeasons:[],selectedEventWeeks:[],selectedEventType:"",matchNumber:1,pendingParticipants:{}}),getters:{getSelectedEventType:e=>e.selectedEvent.currentSeason&&e.selectedEvent.currentSeason.startsWith("Session")?"Tournament":"League"},actions:{setSelectedEvent(e){this.selectedEvent=e.league,this.setSelectedEventSeasons({venue:e.league.isOfficial?e.league.rules:e.venue,leagueID:e.league.isOfficial?e.league.officialLeague:e.league.slug})},setSelectedEventPendingParticipants(e){Ag(AP("/venues/".concat(e.venue,"/league/").concat(e.league.slug,"/").concat(e.league.currentSeason,"/pendingParticipants")),e=>{this.pendingParticipants=e.val()||{}})},setSelectedEventWeeks(e){Ag(SP("/venues/".concat(e.venue,"/league-list/").concat(e.leagueID,"/").concat(e.season)),e=>{let t=e.val(),n=Object.keys(t).map(e=>{let n=t[e];return n[".key"]=e,n});this.selectedEventWeeks=n})},setSelectedEventSeasons(e){if("object"==typeof e.venue||void 0===e.venue)return!1;Ag(SP("/venues/"+e.venue+"/league-list/"+e.leagueID+"/seasons/"),t=>{if(t.exists()){let n=t.val(),a=Object.keys(n).map(e=>{let t=n[e];return t[".key"]=e,t});e.season=a[0].name,this.selectedEventSeasons=a,this.setSelectedEventWeeks(e)}})},async setSelectedEventGamesheet(e){const t=Hg(SP("/venues/"+e.venue+"/event-list/"+e.type),Fg("slug"),Ug(e.leagueID));return await kg(t).then(t=>{if(t.val()){let n=t.val()[Object.keys(t.val())[0]];n[".key"]=Object.keys(t.val())[0],this.selectedEvent=n,this.setSelectedEventSeasons({venue:e.venue,leagueID:e.leagueID})}})}}});function HG(e){var t,n;if(!fP.currentUser)return;const a=VG();let i=JSON.parse(fP.currentUser.reloadUserInfo.customAttributes||"{}");if("siteAccess"in i&&["master","commissioner"].includes(i.siteAccess)){const r={owner:"master"===i.siteAccess||"owner"===(null==(n=null==(t=i.userVenues)?void 0:t[e])?void 0:n.role),master:"master"===i.siteAccess,admin:!0,host:!0};a.userRoles=r,PR.set("userRoles",r,{expires:30})}else a.setUserVenueRoles({venue:e,playerkey:a.user[".key"]}
5091)}const zG={key:0,class:"title"},KG={key:1,class:"title"},WG={key:2,class:"title"},GG=["innerHTML"],qG={key:3,class:"typed-confirm"},$G={class:"typed-confirm-hint"},YG={__name:"confirmationPopup",props:{modelValue:Boolean,type:{type:String,default:"warning"},text:{type:String,default:"Are you sure?"},mainButton:{type:String,default:"Confirm"},hideCancelButton:{type:Boolean,default:!1},requireTypedConfirmation:{type:String,default:""}},emits:["close","confirm","update:modelValue"],setup(e,{emit:t}){const n=t,a=e,i=an(""),r=Zo(()=>!a.requireTypedConfirmation||i.value.trim()===String(a.requireTypedConfirmation).trim());return(t,a)=>{const o=ki("v-icon"),s=ki("v-text-field"),l=ki("v-card-text"),u=ki("v-card-actions"),c=ki("v-card"),d=ki("v-dialog");return oo(),po(d,{"model-value":e.modelValue,"onUpdate:modelValue":a[4]||(a[4]=e=>t.$emit("update:modelValue",t.value))},{default:ea(()=>[bo(c,{tile:"",class:ne(["overflow-visible wraper",{warning:"warning"===e.type,info:"info"===e.type,error:"error"===e.type}])},{default:ea(()=>[bo(l,null,{default:ea(()=>[yo("button",{class:"close",onClick:a[0]||(a[0]=e=>n("close"))},[bo(o,{size:"24"},{default:ea(()=>[...a[5]||(a[5]=[ko("mdi-close",-1)])]),_:1})]),"warning"===e.type?(oo(),ho("h3",zG,"Warning!")):So("",!0),"info"===e.type?(oo(),ho("h3",KG,"Info")):So("",!0),"error"===e.type?(oo(),ho("h3",WG,"Error")):So("",!0),yo("p",{class:"text",innerHTML:e.text},null,8,GG),e.requireTypedConfirmation?(oo(),ho("div",qG,[yo("p",$G,[a[6]||(a[6]=ko(" Type ",-1)),yo("strong",null,Te(e.requireTypedConfirmation),1),a[7]||(a[7]=ko(" to confirm. ",-1))]),bo(s,{modelValue:i.value,"onUpdate:modelValue":a[1]||(a[1]=e=>i.value=e),density:"compact",variant:"outlined","hide-details":"",autocomplete:"off","data-cypress":"confirm-typed-input",placeholder:e.requireTypedConfirmation},null,8,["modelValue","placeholder"])])):So("",!0)]),_:1}),bo(u,{class:"buttons"},{default:ea(()=>[e.hideCancelButton?So("",!0):(oo(),po(ij,{key:0,variant:"text",width:"120",color:"var(--clr-light-grey)",onClick:a[2]||(a[2]=e=>n("close"))},{default:ea(()=>[...a[8]||(a[8]=[ko("Cancel",-1)])]),_:1})),bo(ij,{variant:"flat",width:"120","data-cypress":"confirm",disabled:!r.value,onClick:a[3]||(a[3]=e=>
5091r.value&&(n("confirm"),n("close")))},{default:ea(()=>[ko(Te(e.mainButton),1)]),_:1},8,["disabled"])]),_:1})]),_:1},8,["class"])]),_:1},8,["model-value"])}}},JG=PX(YG,[["__scopeId","data-v-22517aac"]]);const QG=["title","titleTemplate","script","style","noscript"],ZG=["base","meta","link","style","script","noscript"],eq=["title","titleTemplate","templateParams","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"],tq=["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"],nq=["tagPosition","tagPriority","tagDuplicateStrategy","children","innerHTML","textContent","processTemplateParams"],aq="undefined"!=typeof window;function iq(e){let t=9;for(let n=0;n<e.length;)t=Math.imul(t^e.charCodeAt(n++),9**9);return(65536+(t^t>>>9)).toString(16).substring(1,8).toLowerCase()}function rq(e){return e._h||iq(e._d?e._d:"".concat(e.tag,":").concat(e.textContent||e.innerHTML||"",":").concat(Object.entries(e.props).map(([e,t])=>"".concat(e,":").concat(String(t))).join(",")))}function oq(e,t){const{props:n,tag:a}=e;if(tq.includes(a))return a;if("link"===a&&"canonical"===n.rel)return"canonical";if(n.charset)return"charset";const i=["id"];"meta"===a&&i.push("name","property","http-equiv");for(const r of i)if(void 0!==n[r]){const e=String(n[r]);return"".concat(a,":").concat(r,":").concat(e)}return!1}function sq(e,t){return null==e?t||null:"function"==typeof e?e(t):e}function lq(e){return"object"!=typeof e||Array.isArray(e)||(e=Object.keys(e).filter(t=>e[t])),(Array.isArray(e)?e.join(" "):e).split(" ").filter(e=>e.trim()).filter(Boolean).join(" ")}async function uq(e,t){for(const n of Object.keys(e))if("class"!==n){if(e[n]instanceof Promise&&(e[n]=await e[n]),!t&&!nq.includes(n)){const t=String(e[n]),a=n.startsWith("data-");"true"===t||""===t?e[n]=!a||"true":e[n]||(a&&"false"===t?e[n]="false":delete e[n])}}else e[n]=lq(e[n]);return e}async function cq(e){const t=[];return Object.entries(e.resolvedInput).filter(([e,t])=>void 0!==t&&eq.includes(e)).forEach(([n,a])=>{const i=function(e){return Array.isArray(e)?e:[e]}(a);t.push(...i.map(t=>async function(e,t,n){const a={tag:e,props:await uq("object"!=typeof t||"function"==typeof t||t instanceof Promise?{[["script","noscript","style"].includes(e)?"innerHTML":"textContent"]:t}:{...t},["templateParams","titleTemplate"].includes(e))};return nq.forEach(e=>{const t=void 0!==a.props[e]?a.props[e]:n[e];void 0!==t&&(["innerHTML","textContent","children"].includes(e)&&!QG.includes(a.tag)||(a["children"===e?"innerHTML":e]=t),delete a.props[e])}),a.props.body&&(a.tagPosition="bodyClose",delete a.props.body),"script"===a.tag&&"object"==typeof a.innerHTML&&(a.innerHTML=JSON.stringify(a.innerHTML),a.props.type=a.props.type||"application/json"),Array.isArray(a.props.content)?a.props.content.map(e=>({...a,props:{...a.props,content:e}})):a}(n,t,e)).flat())}),(await Promise.all(t)).flat().filter(Boolean).map((t,n)=>(t._e=e._i,e.mode&&(t._m=e.mode),t._p=(e._i<<10)+n,t))}const dq={base:-10,title:10},hq={critical:-80,high:-10,low:20};function pq(e){let t=100;const n=e.tagPriority;return"number"==typeof n?n:("meta"===e.tag?("content-security-policy"===e.props["http-equiv"]&&(t=-30),e.props.charset&&(t=-20),"viewport"===e.props.name&&(t=-15)):"link"===e.tag&&"preconnect"===e.props.rel?t=20:e.tag in dq&&(t=dq[e.tag]),"string"==typeof n&&n in hq?t+hq[n]:t)}const fq=[{prefix:"before:",offset:-1},{prefix:"after:",offset:1}],mq=["onload","onerror","onabort","onprogress","onloadstart"],vq="%separator";function gq(e,t,n){if("string"!=typeof e||!e.includes("%"))return e;let a=e;try{a=decodeURI(e)}catch(w7){}return(a.match(/%(\w+\.+\w+)|%(\w+)/g)||[]).sort().reverse().forEach(n=>{const a=function(e){let n;return n=["s","pageTitle"].includes(e)?t.pageTitle:e.includes(".")?e.split(".").reduce((e,t)=>e&&e[t]||void 0,t):t[e],void 0!==n&&(n||"").replace(/"/g,'\\"')}(n.slice(1));"string"==typeof a&&(e=e.replace(new RegExp("\\".concat(n,"(\\W|$)"),"g"),(e,t)=>"".concat(a).concat(t)).trim())}),e.includes(vq)&&(e.endsWith(vq)&&(e=e.slice(0,-10).trim()),e.startsWith(vq)&&(e=e.slice(10).trim()),e=gq(e=e.replace(new RegExp("\\".concat(vq,"\\s*\\").concat(vq),"g"),vq),{separator:n},n)),e}async function yq(e){const t={tag:e.tagName.toLowerCase(),props:await uq(e.getAttributeNames().reduce((t,n)=>({...t,[n]:e.getAttribute(n)}),{})),innerHTML:e.innerHTML};return t._d=oq(t),t}async function bq(e,t={}){const n=t.delayFn||(e=>setTimeout(e,10));return e._domUpdatePromise=e._domUpdatePromise||new Promise(a=>n(async()=>{await async function(e,t={}){var n;const a=t.document||e.resolvedOptions.document;if(!a)return;const i={shouldRender:e.dirty,tags:[]};if(await e.hooks.callHook("dom:beforeRender",i),!i.shouldRender)return;const r=(await e.resolveTags()).map(e=>({tag:e,id:ZG.includes(e.tag)?rq(e):e.tag,shouldRender:!0}));let o=e._dom;if(!o){o={elMap:{htmlAttrs:a.documentElement,bodyAttrs:a.body}};for(const e of["body","head"]){const t=null==(n=null==a?void 0:a[e])?void 0:n.children;for(const e of[...t].filter(e=>ZG.includes(e.tagName.toLowerCase())))o.elMap[e.getAttribute("data-hid")||rq(await yq(e))]=e}}function s(e,t,n){const a="".concat(e,":").concat(t);o.sideEffects[a]=n,delete o.pendingSideEffects[a]}
5091function l({id:e,$el:t,tag:n}){const a=n.tag.endsWith("Attrs");o.elMap[e]=t,a||(["textContent","innerHTML"].forEach(e=>{n[e]&&n[e]!==t[e]&&(t[e]=n[e])}),s(e,"el",()=>{o.elMap[e].remove(),delete o.elMap[e]})),Object.entries(n.props).forEach(([n,i])=>{const r="attr:".concat(n);if("class"===n)for(const o of(i||"").split(" ").filter(Boolean))a&&s(e,"".concat(r,":").concat(o),()=>t.classList.remove(o)),!t.classList.contains(o)&&t.classList.add(o);else t.getAttribute(n)!==i&&t.setAttribute(n,!0===i?"":String(i)),a&&s(e,r,()=>t.removeAttribute(n))})}o.pendingSideEffects={...o.sideEffects||{}},o.sideEffects={};const u=[],c={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const d of r){const{tag:e,shouldRender:t,id:n}=d;t&&("title"!==e.tag?(d.$el=d.$el||o.elMap[n],d.$el?l(d):ZG.includes(e.tag)&&u.push(d)):a.title=e.textContent)}for(const d of u){const e=d.tag.tagPosition||"head";d.$el=a.createElement(d.tag.tag),l(d),c[e]=c[e]||a.createDocumentFragment(),c[e].appendChild(d.$el)}for(const d of r)await e.hooks.callHook("dom:renderTag",d,a,s);c.head&&a.head.appendChild(c.head),c.bodyOpen&&a.body.insertBefore(c.bodyOpen,a.body.firstChild),c.bodyClose&&a.body.appendChild(c.bodyClose),Object.values(o.pendingSideEffects).forEach(e=>e()),e._dom=o,e.dirty=!1,await e.hooks.callHook("dom:rendered",{renders:r})}(e,t),delete e._domUpdatePromise,a()}))}function _q(e){return t=>{var n,a;const i=(null==(a=null==(n=t.resolvedOptions.document)?void 0:n.head.querySelector('script[id="unhead:payload"]'))?void 0:a.innerHTML)||!1;return i&&t.push(JSON.parse(i)),{mode:"client",hooks:{"entries:updated":function(t){bq(t,e)}}}}}const wq=["templateParams","htmlAttrs","bodyAttrs"],kq={hooks:{"tag:normalise":function({tag:e}){["hid","vmid","key"].forEach(t=>{e.props[t]&&(e.key=e.props[t],delete e.props[t])});const t=oq(e)||!!e.key&&"".concat(e.tag,":").concat(e.key);t&&(e._d=t)},"tags:resolve":function(e){const t={};e.tags.forEach(e=>{const n=(e.key?"".concat(e.tag,":").concat(e.key):e._d)||e._p,a=t[n];if(a){let i=null==e?void 0:e.tagDuplicateStrategy;if(!i&&wq.includes(e.tag)&&(i="merge"),"merge"===i){const i=a.props;return["class","style"].forEach(t=>{i[t]&&(e.props[t]?("style"!==t||i[t].endsWith(";")||(i[t]+=";"),e.props[t]="".concat(i[t]," ").concat(e.props[t])):e.props[t]=i[t])}),void(t[n].props={...i,...e.props})}if(e._e===a._e)return a._duped=a._duped||[],e._d="".concat(a._d,":").concat(a._duped.length+1),void a._duped.push(e);if(pq(e)>pq(a))return}const i=Object.keys(e.props).length+(e.innerHTML?1:0)+(e.textContent?1:0);ZG.includes(e.tag)&&0===i?delete t[n]:t[n]=e});const n=[];Object.values(t).forEach(e=>{const t=e._duped;delete e._duped,n.push(e),t&&n.push(...t)}),e.tags=n,e.tags=e.tags.filter(e=>!("meta"===e.tag&&(e.props.name||e.props.property)&&!e.props.content))}}},Cq={mode:"server",hooks:{"tags:resolve":function(e){const t={};e.tags.filter(e=>["titleTemplate","templateParams","title"].includes(e.tag)&&"server"===e._m).forEach(e=>{t[e.tag]=e.tag.startsWith("title")?e.textContent:e.props}),Object.keys(t).length&&e.tags.push({tag:"script",innerHTML:JSON.stringify(t),props:{id:"unhead:payload",type:"application/json"}})}}},Sq=["script","link","bodyAttrs"];function Tq(e){const t={},n={};return Object.entries(e.props).forEach(([e,a])=>{e.startsWith("on")&&"function"==typeof a?(mq.includes(e)&&(t[e]="this.dataset.".concat(e," = true")),n[e]=a):t[e]=a}),{props:t,eventHandlers:n}}const Aq=e=>({hooks:{"tags:resolve":function(e){for(const t of e.tags)if(Sq.includes(t.tag)){const{props:e,eventHandlers:n}=Tq(t);t.props=e,Object.keys(n).length&&((t.props.src||t.props.href)&&(t.key=t.key||iq(t.props.src||t.props.href)),t._eventHandlers=n)}},"dom:renderTag":function(e,t,n){if(!e.tag._eventHandlers)return;const a="bodyAttrs"===e.tag.tag?t.defaultView:e.$el;Object.entries(e.tag._eventHandlers).forEach(([t,i])=>{const r="".concat(e.tag._d||e.tag._p,":").concat(t),o=t.slice(2).toLowerCase(),s="data-h-".concat(o);if(n(e.id,r,()=>{}),e.$el.hasAttribute(s))return;let l;e.$el.setAttribute(s,"");const u=e=>{i(e),null==l||l.disconnect()};t in e.$el.dataset?u(new Event(t.replace("on",""))):mq.includes(t)&&"undefined"!=typeof MutationObserver?(l=new MutationObserver(e=>{e.some(e=>e.attributeName==="data-".concat(t))&&(u(new Event(t.replace("on",""))),null==l||l.disconnect())}),l.observe(e.$el,{attributes:!0})):a.addEventListener(o,u),n(e.id,r,()=>{null==l||l.disconnect(),a.removeEventListener(o,u),e.$el.removeAttribute(s)})})}}}),Eq=["link","style","script","noscript"],Iq={hooks:{"tag:normalise":({tag:e})=>{e.key&&Eq.includes(e.tag)&&(e.props["data-hid"]=e._h=iq(e.key))}}},xq={hooks:{"tags:resolve":e=>{const t=t=>{var n;return null==(n=e.tags.find(e=>e._d===t))?void 0:n._p};for(const{prefix:n,offset:a}of fq)for(const i of e.tags.filter(e=>
5091"string"==typeof e.tagPriority&&e.tagPriority.startsWith(n))){const e=t(i.tagPriority.replace(n,""));void 0!==e&&(i._p=e+a)}e.tags.sort((e,t)=>e._p-t._p).sort((e,t)=>pq(e)-pq(t))}}},Nq={meta:"content",link:"href",htmlAttrs:"lang"},Pq=e=>({hooks:{"tags:resolve":t=>{var n;const{tags:a}=t,i=null==(n=a.find(e=>"title"===e.tag))?void 0:n.textContent,r=a.findIndex(e=>"templateParams"===e.tag),o=-1!==r?a[r].props:{},s=o.separator||"|";delete o.separator,o.pageTitle=gq(o.pageTitle||i||"",o,s);for(const e of a.filter(e=>!1!==e.processTemplateParams)){const t=Nq[e.tag];t&&"string"==typeof e.props[t]?e.props[t]=gq(e.props[t],o,s):(!0===e.processTemplateParams||["titleTemplate","title"].includes(e.tag))&&["innerHTML","textContent"].forEach(t=>{"string"==typeof e[t]&&(e[t]=gq(e[t],o,s))})}e._templateParams=o,e._separator=s,t.tags=a.filter(e=>"templateParams"!==e.tag)}}}),Mq={hooks:{"tags:resolve":e=>{const{tags:t}=e;let n=t.findIndex(e=>"titleTemplate"===e.tag);const a=t.findIndex(e=>"title"===e.tag);if(-1!==a&&-1!==n){const e=sq(t[n].textContent,t[a].textContent);null!==e?t[a].textContent=e||t[a].textContent:delete t[a]}else if(-1!==n){const e=sq(t[n].textContent);null!==e&&(t[n].textContent=e,t[n].tag="title",n=-1)}-1!==n&&delete t[n],e.tags=t.filter(Boolean)}}},Oq={hooks:{"tags:afterResolve":function(e){for(const t of e.tags)"string"==typeof t.innerHTML&&(t.innerHTML&&["application/ld+json","application/json"].includes(t.props.type)?t.innerHTML=t.innerHTML.replace(/</g,"\\u003C"):t.innerHTML=t.innerHTML.replace(new RegExp("</".concat(t.tag),"g"),"<\\/".concat(t.tag)))}}};let Rq;function Dq(e={}){const t=function(e={}){const t=new nu;t.addHooks(e.hooks||{}),e.document=e.document||(aq?document:void 0);const n=!e.document,a=()=>{s.dirty=!0,t.callHook("entries:updated",s)};let i=0,r=[];const o=[],s={plugins:o,dirty:!1,resolvedOptions:e,hooks:t,headEntries:()=>r,use(e){const a="function"==typeof e?e(s):e;a.key&&o.some(e=>e.key===a.key)||(o.push(a),Lq(a.mode,n)&&t.addHooks(a.hooks||{}))},push(e,o){null==o||delete o.head;const l={_i:i++,input:e,...o};return Lq(l.mode,n)&&(r.push(l),a()),{dispose(){r=r.filter(e=>e._i!==l._i),t.callHook("entries:updated",s),a()},patch(e){r=r.map(t=>(t._i===l._i&&(t.input=l.input=e),t)),a()}}},async resolveTags(){const e={tags:[],entries:[...r]};await t.callHook("entries:resolve",e);for(const n of e.entries){const a=n.resolvedInput||n.input;if(n.resolvedInput=await(n.transform?n.transform(a):a),n.resolvedInput)for(const i of await cq(n)){const a={tag:i,entry:n,resolvedOptions:s.resolvedOptions};await t.callHook("tag:normalise",a),e.tags.push(a.tag)}}return await t.callHook("tags:beforeResolve",e),await t.callHook("tags:resolve",e),await t.callHook("tags:afterResolve",e),e.tags},ssr:n};return[kq,Cq,Aq,Iq,xq,Pq,Mq,Oq,...(null==e?void 0:e.plugins)||[]].forEach(e=>s.use(e)),s.hooks.callHook("init",s),s}(e);return t.use(_q()),Rq=t}function Lq(e,t){return!e||"server"===e&&t||"client"===e&&!t}const Bq=ns.startsWith("3");function Fq(e,t=""){if(e instanceof Promise)return e;const n="function"==typeof(a=e)?a():ln(a);var a;return e&&n?Array.isArray(n)?n.map(e=>Fq(e,t)):"object"==typeof n?Object.fromEntries(Object.entries(n).map(([e,t])=>"titleTemplate"===e||e.startsWith("on")?[e,ln(t)]:[e,Fq(t,e)])):n:n}const Vq={hooks:{"entries:resolve":function(e){for(const t of e.entries)t.resolvedInput=Fq(t.input)}}},Xq="usehead";function jq(e={}){e.domDelayFn=e.domDelayFn||(e=>jn(()=>setTimeout(()=>e(),0)));const t=Dq(e);return t.use(Vq),t.install=function(e){return{install(t){Bq&&(t.config.globalProperties.$unhead=e,t.config.globalProperties.$head=e,t.provide(Xq,e))}}.install}(t),t}const Uq="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Hq="__unhead_injection_handler__";function zq(){if(Hq in Uq)return Uq[Hq]();return nr(Xq)||Rq}function Kq(e,t={}){const n=t.head||zq();if(n)return n.ssr?n.push(e,t):function(e,t,n={}){const a=an(!1),i=an({});Nr(()=>{i.value=a.value?{}:Fq(t)});const r=e.push(i.value,n);Mr(i,e=>{r.patch(e)});Ro()&&(mi(()=>
5091{r.dispose()}),ii(()=>{a.value=!0}),ai(()=>{a.value=!1}));return r}(n,e,t)}const Wq={version:"2.0.757"},Gq={__name:"App",setup(e){const t=nr("postHog"),n=vL(),a=VG(),i=jG(),r=LP();console.log("ENV PROD");const o=Zo(()=>a.user[".key"]),s=Zo(()=>i.venue);return Kq({title:"World Axe Throwing League Leaderboards | ".concat(Wq.version)}),Mr(o,e=>{if(e){const{code:i=e,email:r}=a.user;t.identify(i,{email:r,databaseId:e}),n.params.locationSlug&&"login"!==n.name&&HG(n.params.locationSlug)}}),Mr(()=>r.dialogAddPlayer,()=>{document.querySelector("html").style.overflow="hidden"!=document.querySelector("html").style.overflow?"hidden":null}),Mr(()=>s.value,e=>{if(".key"in e){e.subscription&&function(){if(i.venue.subscription)try{pR(i.venue.subscription).then(e=>{i.setVenueSubscription(e)})}catch(w7){}}();let t="custom"!==e.type?"watl":e.locationSlug;i.setVenueSeasons({rules:e.rules,locationSlug:t})}}),Mr(()=>n.fullPath,()=>{NX(n)},{immediate:!0}),window.addEventListener("vite:preloadError",e=>{console.error("vite:preloadError, needs to hard refresh"),window.location.reload()}),hi(()=>{window.location.href.includes("localhost")||Ag(SP("/_config"),e=>{let t={};e.exists()&&(t=e.val()),t.version!==Wq.version&&GX()},{onlyOnce:!0}),document.body.classList.add(i.venue.rules||"watl"),t.onFeatureFlags(()=>{}),i.setVenues()}),(e,t)=>{const n=ki("router-view"),a=ki("notifications"),i=ki("v-app");return oo(),po(i,null,{default:ea(()=>{var e,i,o,s,l,u,c,d;return[bo(n),bo(a,{group:"notifyMessages",position:"top right"}),(null==(e=ln(r).confirmationPopup)?void 0:e.visible)?(oo(),po(JG,{key:0,modelValue:ln(r).confirmationPopup.visible,"onUpdate:modelValue":t[0]||(t[0]=e=>ln(r).confirmationPopup.visible=e),type:null==(i=ln(r).confirmationPopup)?void 0:i.type,text:null==(o=ln(r).confirmationPopup)?void 0:o.text,mainButton:null==(s=ln(r).confirmationPopup)?void 0:s.mainButton,hideCancelButton:null==(l=ln(r).confirmationPopup)?void 0:l.hideCancelButton,requireTypedConfirmation:null==(u=ln(r).confirmationPopup)?void 0:u.requireTypedConfirmation,onConfirm:null==(c=ln(r).confirmationPopup)?void 0:c.confirm,onClose:null==(d=ln(r).confirmationPopup)?void 0:d.close},null,8,["modelValue","type","text","mainButton","hideCancelButton","requireTypedConfirmation","onConfirm","onClose"])):So("",!0)]}),_:1})}}},qq=AF({...EF(),...UL(hX(),["fullHeight"]),...ZV()},"VApp"),$q=DF()({name:"VApp",props:qq(),setup(e,t){let{slots:n}=t;const a=sX(e),{layoutClasses:i,getLayoutItem:r,items:o,layoutRef:s}=vX({...e,fullHeight:!0}),{rtlClasses:l}=sV();return GF(()=>{var t;return yo("div",{ref:s,class:ne(["v-application",a.themeClasses.value,i.value,l.value,e.class]),style:Y([e.style])},[yo("div",{class:"v-application__wrap"},[null==(t=n.default)?void 0:t.call(n)])])}),{getLayoutItem:r,items:o,theme:a}}}),Yq=AF({tag:{type:[String,Object,Function],default:"div"}},"tag"),Jq=AF({text:String,...EF(),...Yq()},"VToolbarTitle"),Qq=DF()({name:"VToolbarTitle",props:Jq(),setup(e,t){let{slots:n}=t;return GF(()=>{const t=!!(n.default||n.text||e.text);return bo(e.tag,{class:ne(["v-toolbar-title",e.class]),style:Y(e.style)},{default:()=>{var a;return[t&&yo("div",{class:"v-toolbar-title__placeholder"},[n.text?n.text():e.text,null==(a=n.default)?void 0:a.call(n)])]}})}),{}}}),Zq=AF({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function e$(e,t,n){return DF()({name:e,props:Zq({mode:n,origin:t}),setup(t,n){let{slots:a}=n;const i={onBeforeEnter(e){t.origin&&(e.style.transformOrigin=t.origin)},onLeave(e){if(t.leaveAbsolute){const{offsetTop:t,offsetLeft:n,offsetWidth:a,offsetHeight:i}=e;e._transitionInitialStyles={position:e.style.position,top:e.style.top,left:e.style.left,width:e.style.width,height:e.style.height},e.style.position="absolute",e.style.top="".concat(t,"px"),e.style.left="".concat(n,"px"),e.style.width="".concat(a,"px"),e.style.height="".concat(i,"px")}t.hideOnLeave&&e.style.setProperty("display","none","important")},onAfterLeave(e){if(t.leaveAbsolute&&(null==e?void 0:e._transitionInitialStyles)){const{position:t,top:n,left:a,width:i,height:r}=e._transitionInitialStyles;delete e._transitionInitialStyles,e.style.position=t||"",e.style.top=n||"",e.style.left=a||"",e.style.width=i||"",e.style.height=r||""}}};return()=>es(t.group?fl:_s,{name:t.disabled?"":e,css:!t.disabled,...t.group?void 0:{mode:t.mode},...t.disabled?{}:i},a.default)}})}function t$(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"in-out";return DF()({name:e,props:{mode:{type:String,default:n},disabled:{type:Boolean,default:CL()},group:Boolean},setup(n,a){let{slots:i}=a;const r=n.group?fl:_s;return()=>es(r,{name:n.disabled?"":e,css:!n.disabled,...n.disabled?{}:t},i.default)}})}function n$(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?"width":"height",n=M("offset-".concat(t));return{onBeforeEnter(e){e._parent=e.parentNode,e._initialStyle={transition:e.style.transition,overflow:e.style.overflow,[t]:e.style[t]}}
5091,onEnter(a){const i=a._initialStyle;if(!i)return;a.style.setProperty("transition","none","important"),a.style.overflow="hidden";const r="".concat(a[n],"px");a.style[t]="0",a.offsetHeight,a.style.transition=i.transition,e&&a._parent&&a._parent.classList.add(e),requestAnimationFrame(()=>{a.style[t]=r})},onAfterEnter:i,onEnterCancelled:i,onLeave(e){e._initialStyle={transition:"",overflow:e.style.overflow,[t]:e.style[t]},e.style.overflow="hidden",e.style[t]="".concat(e[n],"px"),e.offsetHeight,requestAnimationFrame(()=>e.style[t]="0")},onAfterLeave:a,onLeaveCancelled:a};function a(t){e&&t._parent&&t._parent.classList.remove(e),i(t)}function i(e){if(!e._initialStyle)return;const n=e._initialStyle[t];e.style.overflow=e._initialStyle.overflow,null!=n&&(e.style[t]=n),delete e._initialStyle}}const a$=AF({target:[Object,Array]},"v-dialog-transition"),i$=new WeakMap,r$=DF()({name:"VDialogTransition",props:a$(),setup(e,t){let{slots:n}=t;const a={onBeforeEnter(e){e.style.pointerEvents="none",e.style.visibility="hidden"},async onEnter(t,n){var a;await new Promise(e=>requestAnimationFrame(e)),await new Promise(e=>requestAnimationFrame(e)),t.style.visibility="";const i=s$(e.target,t),{x:r,y:o,sx:s,sy:l,speed:u}=i;if(i$.set(t,i),CL())FB(t,[{opacity:0},{}],{duration:125*u,easing:VF}).finished.then(()=>n());else{const e=FB(t,[{transform:"translate(".concat(r,"px, ").concat(o,"px) scale(").concat(s,", ").concat(l,")"),opacity:0},{}],{duration:225*u,easing:VF});null==(a=o$(t))||a.forEach(e=>{FB(e,[{opacity:0},{opacity:0,offset:.33},{}],{duration:450*u,easing:FF})}),e.finished.then(()=>n())}},onAfterEnter(e){e.style.removeProperty("pointer-events")},onBeforeLeave(e){e.style.pointerEvents="none"},async onLeave(t,n){var a;let i;await new Promise(e=>requestAnimationFrame(e)),i=!i$.has(t)||Array.isArray(e.target)||e.target.offsetParent||e.target.getClientRects().length?s$(e.target,t):i$.get(t);const{x:r,y:o,sx:s,sy:l,speed:u}=i;if(CL())FB(t,[{},{opacity:0}],{duration:85*u,easing:XF}).finished.then(()=>n());else{FB(t,[{},{transform:"translate(".concat(r,"px, ").concat(o,"px) scale(").concat(s,", ").concat(l,")"),opacity:0}],{duration:125*u,easing:XF}).finished.then(()=>n()),null==(a=o$(t))||a.forEach(e=>{FB(e,[{},{opacity:0,offset:.2},{opacity:0}],{duration:250*u,easing:FF})})}},onAfterLeave(e){e.style.removeProperty("pointer-events")}};return()=>e.target?bo(_s,Io({name:"dialog-transition"},a,{css:!1}),n):bo(_s,{name:"dialog-transition"},n)}});function o$(e){var t;const n=null==(t=e.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))?void 0:t.children;return n&&[...n]}function s$(e,t){const n=LB(e),a=BB(t),[i,r]=getComputedStyle(t).transformOrigin.split(" ").map(e=>parseFloat(e)),[o,s]=getComputedStyle(t).getPropertyValue("--v-overlay-anchor-origin").split(" ");let l=n.left+n.width/2;"left"===o||"left"===s?l-=n.width/2:"right"!==o&&"right"!==s||(l+=n.width/2);let u=n.top+n.height/2;"top"===o||"top"===s?u-=n.height/2:"bottom"!==o&&"bottom"!==s||(u+=n.height/2);const c=n.width/a.width,d=n.height/a.height,h=Math.max(1,c,d),p=c/h||0,f=d/h||0,m=a.width*a.height/(window.innerWidth*window.innerHeight),v=m>.12?Math.min(1.5,10*(m-.12)+1):1;return{x:l-(i+a.left),y:u-(r+a.top),sx:p,sy:f,speed:v}}const l$=e$("fab-transition","center center","out-in"),u$=e$("dialog-bottom-transition"),c$=e$("dialog-top-transition"),d$=e$("fade-transition"),h$=e$("scale-transition"),p$=e$("scroll-x-transition"),f$=e$("scroll-x-reverse-transition"),m$=e$("scroll-y-transition"),v$=e$("scroll-y-reverse-transition"),g$=e$("slide-x-transition"),y$=e$("slide-x-reverse-transition"),b$=e$("slide-y-transition"),_$=e$("slide-y-reverse-transition"),w$=t$("expand-transition",n$()),k$=t$("expand-x-transition",n$("",!0)),C$=AF({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),S$=DF(!1)({name:"VDefaultsProvider",props:C$(),setup(e,t){let{slots:n}=t;const{defaults:a,disabled:i,reset:r,root:o,scoped:s}=fn(e);return MF(a,{reset:r,root:o,scoped:s,disabled:i}),()=>{var e;return null==(e=n.default)?void 0:e.call(n)}}}),T$=AF({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function A$(e){return{dimensionStyles:Zo(()=>{const t={},n=OL(e.height),a=OL(e.maxHeight),i=OL(e.maxWidth),r=OL(e.minHeight),o=OL(e.minWidth),s=OL(e.width);return null!=n&&(t.height=n),null!=a&&(t.maxHeight=a),null!=i&&(t.maxWidth=i),null!=r&&(t.minHeight=r),null!=o&&(t.minWidth=o),null!=s&&(t.width=s),t})}}const E$=AF({aspectRatio:[String,Number],contentClass:null,inline:Boolean,...EF(),...T$()},"VResponsive"),I$=DF()({name:"VResponsive",props:E$(),setup(e,t){let{slots:n}=t;const{aspectStyles:a}=function(e){return{aspectStyles:Zo(()=>{const t=Number(e.aspectRatio);return t?{paddingBottom:String(1/t*100)+"%"}:void 0})}}(e),{dimensionStyles:i}=A$(e);return GF(()=>{var t;return yo("div",{class:ne(["v-responsive",{"v-responsive--inline":e.inline},e.class]),style:Y([i.value,e.style])},[yo("div",{class:"v-responsive__sizer",style:Y(a.value)},null),null==(t=n.additional)?void 0:t.call(n),n.default&&yo("div",{class:ne(["v-responsive__content",e.contentClass])},[n.default()])])}),{}}});function x$(e){return lB(()=>{const{class:t,style:n}=function(e){const t=un(e),n=[],a={};if(t.background)if(oF(t.background)){if(a.backgroundColor=t.background,!t.text&&(oF(i=t.background)&&!/^((rgb|hsl)a?\()?var\(--/.test(i))){const e=uF(t.background);if(null==e.a||1===e.a){const t=TF(e);a.color=t,a.caretColor=t}}}else n.push("bg-".concat(t.background));var i;t.text&&(oF(t.text)?(a.color=t.text,a.caretColor=t.text):n.push("text-".concat(t.text)));return{class:n,style:a}}(e);return{colorClasses:t,colorStyles:n}})}function N$(e){const{colorClasses:t,colorStyles:n}=x$(()=>({text:un(e)}));return{textColorClasses:t,textColorStyles:n}}function P$(e){const{colorClasses:t,colorStyles:n}=x$(()=>({background:un(e)}));return{backgroundColorClasses:t,backgroundColorStyles:n}}const M$=AF({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function O$(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xF();
5091return{roundedClasses:Zo(()=>{const n=nn(e)?e.value:e.rounded,a=[];if(!nn(e)&&e.tile||!1===n)a.push("rounded-0");else if(!0===n||""===n)a.push("".concat(t,"--rounded"));else if("string"==typeof n||0===n)for(const e of String(n).split(" "))a.push("rounded-".concat(e));return a})}}const R$=AF({transition:{type:null,default:"fade-transition",validator:e=>!0!==e}},"transition"),D$=(e,t)=>{let{slots:n}=t;const{transition:a,disabled:i,group:r,...o}=e,{component:s=(r?fl:_s),...l}=RL(a)?a:{};let u;return u=RL(a)?Io(l,function(e){const t=["checked","disabled"];return Object.fromEntries(Object.entries(e).filter(e=>{let[n,a]=e;return t.includes(n)?!!a:void 0!==a}))}({disabled:i,group:r}),o):Io({name:i||!a?"":a},o),es(s,u,n)};function L$(e,t){var n;const a=null==(n=e._observe)?void 0:n[t.instance.$.uid];a&&(a.observer.unobserve(e),delete e._observe[t.instance.$.uid])}const B$={mounted:function(e,t){if(!bL)return;const n=t.modifiers||{},a=t.value,{handler:i,options:r}="object"==typeof a?a:{handler:a,options:{}},o=new IntersectionObserver(function(){var a;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1?arguments[1]:void 0;const s=null==(a=e._observe)?void 0:a[t.instance.$.uid];if(!s)return;const l=r.some(e=>e.isIntersecting);!i||n.quiet&&!s.init||n.once&&!l&&!s.init||i(l,r,o),l&&n.once?L$(e,t):s.init=!0},r);e._observe=Object(e._observe),e._observe[t.instance.$.uid]={init:!1,observer:o},o.observe(e)},unmounted:L$},F$=AF({absolute:Boolean,alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...E$(),...EF(),...M$(),...R$()},"VImg"),V$=DF()({name:"VImg",directives:{vIntersect:B$},props:F$(),emits:{loadstart:e=>!0,load:e=>!0,error:e=>!0},setup(e,t){let{emit:n,slots:a}=t;const{backgroundColorClasses:i,backgroundColorStyles:r}=P$(()=>
5091e.color),{roundedClasses:o}=O$(e),s=IF("VImg"),l=rn(""),u=an(),c=rn(e.eager?"loading":"idle"),d=rn(),h=rn(),p=Zo(()=>e.src&&"object"==typeof e.src?{src:e.src.src,srcset:e.srcset||e.src.srcset,lazySrc:e.lazySrc||e.src.lazySrc,aspect:Number(e.aspectRatio||e.src.aspect||0)}:{src:e.src,srcset:e.srcset,lazySrc:e.lazySrc,aspect:Number(e.aspectRatio||0)}),f=Zo(()=>p.value.aspect||d.value/h.value||0);function m(t){if((!e.eager||!t)&&(!bL||t||e.eager)){if(c.value="loading",p.value.lazySrc){const e=new Image;e.src=p.value.lazySrc,_(e,null)}p.value.src&&jn(()=>{var e;n("loadstart",(null==(e=u.value)?void 0:e.currentSrc)||p.value.src),setTimeout(()=>{var e;if(!s.isUnmounted)if(null==(e=u.value)?void 0:e.complete){if(u.value.naturalWidth||g(),"error"===c.value)return;f.value||_(u.value,null),"loading"===c.value&&v()}else f.value||_(u.value),y()})})}}function v(){var e;s.isUnmounted||(y(),_(u.value),c.value="loaded",n("load",(null==(e=u.value)?void 0:e.currentSrc)||p.value.src))}function g(){var e;s.isUnmounted||(c.value="error",n("error",(null==(e=u.value)?void 0:e.currentSrc)||p.value.src))}function y(){const e=u.value;e&&(l.value=e.currentSrc||e.src)}Mr(()=>e.src,()=>{m("idle"!==c.value)}),Mr(f,(e,t)=>{!e&&t&&u.value&&_(u.value)}),di(()=>m());let b=-1;function _(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;const n=()=>
5091{if(clearTimeout(b),s.isUnmounted)return;const{naturalHeight:a,naturalWidth:i}=e;a||i?(d.value=i,h.value=a):e.complete||"loading"!==c.value||null==t?(e.currentSrc.endsWith(".svg")||e.currentSrc.startsWith("data:image/svg+xml"))&&(d.value=1,h.value=1):b=window.setTimeout(n,t)};n()}mi(()=>{clearTimeout(b)});const w=gn(()=>({"v-img__img--cover":e.cover,"v-img__img--contain":!e.cover})),k=()=>{var t;if(!p.value.src||"idle"===c.value)return null;const n=yo("img",{class:ne(["v-img__img",w.value]),style:{objectPosition:e.position},crossorigin:e.crossorigin,src:p.value.src,srcset:p.value.srcset,alt:e.alt,referrerpolicy:e.referrerpolicy,draggable:e.draggable,sizes:e.sizes,ref:u,onLoad:v,onError:g},null),i=null==(t=a.sources)?void 0:t.call(a);return bo(D$,{transition:e.transition,appear:!0},{default:()=>[ta(i?yo("picture",{class:"v-img__picture"},[i,n]):n,[[Ls,"loaded"===c.value]])]})},C=()=>bo(D$,{transition:e.transition},{default:()=>[p.value.lazySrc&&"loaded"!==c.value&&yo("img",{class:ne(["v-img__img","v-img__img--preload",w.value]),style:{objectPosition:e.position},crossorigin:e.crossorigin,src:p.value.lazySrc,alt:e.alt,referrerpolicy:e.referrerpolicy,draggable:e.draggable},null)]}),S=()=>a.placeholder?bo(D$,{transition:e.transition,appear:!0},{default:()=>[("loading"===c.value||"error"===c.value&&!a.error)&&yo("div",{class:"v-img__placeholder"},[a.placeholder()])]}):null,T=()=>a.error?bo(D$,{transition:e.transition,appear:!0},{default:()=>["error"===c.value&&yo("div",{class:"v-img__error"},[a.error()])]}):null,A=()=>e.gradient?yo("div",{class:"v-img__gradient",style:{backgroundImage:"linear-gradient(".concat(e.gradient,")")}},null):null,E=rn(!1);{const e=Mr(f,t=>{t&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{E.value=!0})}),e())})}return GF(()=>{const t=I$.filterProps(e);return ta(bo(I$,Io({class:["v-img",{"v-img--absolute":e.absolute,"v-img--booting":!E.value},i.value,o.value,e.class],style:[{width:OL("auto"===e.width?d.value:e.width)},r.value,e.style]},t,{aspectRatio:f.value,"aria-label":e.alt,role:e.alt?"img":void 0}),{additional:()=>yo(eo,null,[bo(k,null,null),bo(C,null,null),bo(A,null,null),bo(S,null,null),bo(T,null,null)]),default:a.default}),[[B$,{handler:m,options:e.options},null,{once:!0}]])}),{currentSrc:l,image:u,state:c,naturalWidth:d,naturalHeight:h}}}),X$=AF({border:[Boolean,Number,String]},"border");function j$(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xF();return{borderClasses:Zo(()=>{const n=e.border;return!0===n||""===n?"".concat(t,"--border"):"string"==typeof n||0===n?String(n).split(" ").map(e=>"border-".concat(e)):[]})}}const U$=AF({elevation:{type:[Number,String],validator(e){const t=parseInt(e);return!isNaN(t)&&t>=0&&t<=24}}},"elevation");function H$(e){return{elevationClasses:gn(()=>{const t=nn(e)?e.value:e.elevation;return null==t?[]:["elevation-".concat(t)]})}}const z$=[null,"prominent","default","comfortable","compact"],K$=AF({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:e=>z$.includes(e)},extended:{type:Boolean,default:null},extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...X$(),...EF(),...U$(),...M$(),...Yq({tag:"header"}),...ZV()},"VToolbar"),W$=DF()({name:"VToolbar",props:K$(),setup(e,t){var n;let{slots:a}=t;const{backgroundColorClasses:i,backgroundColorStyles:r}=P$(()=>e.color),{borderClasses:o}=j$(e),{elevationClasses:s}
5091=H$(e),{roundedClasses:l}=O$(e),{themeClasses:u}=sX(e),{rtlClasses:c}=sV(),d=rn(null===e.extended?!!(null==(n=a.extension)?void 0:n.call(a)):e.extended),h=Zo(()=>parseInt(Number(e.height)+("prominent"===e.density?Number(e.height):0)-("comfortable"===e.density?8:0)-("compact"===e.density?16:0),10)),p=Zo(()=>d.value?parseInt(Number(e.extensionHeight)+("prominent"===e.density?Number(e.extensionHeight):0)-("comfortable"===e.density?4:0)-("compact"===e.density?8:0),10):0);return MF({VBtn:{variant:"text"}}),GF(()=>{var t;const n=!(!e.title&&!a.title),f=!(!a.image&&!e.image),m=null==(t=a.extension)?void 0:t.call(a);return d.value=null===e.extended?!!m:e.extended,bo(e.tag,{class:ne(["v-toolbar",{"v-toolbar--absolute":e.absolute,"v-toolbar--collapse":e.collapse,"v-toolbar--flat":e.flat,"v-toolbar--floating":e.floating,["v-toolbar--density-".concat(e.density)]:!0},i.value,o.value,s.value,l.value,u.value,c.value,e.class]),style:Y([r.value,e.style])},{default:()=>[f&&yo("div",{key:"image",class:"v-toolbar__image"},[a.image?bo(S$,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},a.image):bo(V$,{key:"image-img",cover:!0,src:e.image},null)]),bo(S$,{defaults:{VTabs:{height:OL(h.value)}}},{default:()=>{var t,i,r;return[yo("div",{class:"v-toolbar__content",style:{height:OL(h.value)}},[a.prepend&&yo("div",{class:"v-toolbar__prepend"},[null==(t=a.prepend)?void 0:t.call(a)]),n&&bo(Qq,{key:"title",text:e.title},{text:a.title}),null==(i=a.default)?void 0:i.call(a),a.append&&yo("div",{class:"v-toolbar__append"},[null==(r=a.append)?void 0:r.call(a)])])]}}),bo(S$,{defaults:{VTabs:{height:OL(p.value)}}},{default:()=>[bo(w$,null,{default:()=>[d.value&&yo("div",{class:"v-toolbar__extension",style:{height:OL(p.value)}},[m])]})]})]})}),{contentHeight:h,extensionHeight:p}}}),G$=AF({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},"scroll");function q$(){const e=rn(!1);hi(()=>{window.requestAnimationFrame(()=>{e.value=!0})});return{ssrBootStyles:gn(()=>e.value?void 0:{transition:"none !important"}),isBooted:Kt(e)}}const $$=AF({scrollBehavior:String,modelValue:{type:Boolean,default:!0},location:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},...K$(),...pX(),...G$(),height:{type:[Number,String],default:64}},"VAppBar"),Y$=DF()({name:"VAppBar",props:$$(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const a=an(),i=qF(e,"modelValue"),r=Zo(()=>{var t,n;const a=new Set(null!=(n=null==(t=e.scrollBehavior)?void 0:t.split(" "))?n:[]);return{hide:a.has("hide"),fullyHide:a.has("fully-hide"),inverted:a.has("inverted"),collapse:a.has("collapse"),elevate:a.has("elevate"),fadeImage:a.has("fade-image")}}),o=Zo(()=>{const e=r.value;return e.hide||e.fullyHide||e.inverted||e.collapse||e.elevate||e.fadeImage||!i.value}),{currentScroll:s,scrollThreshold:l,isScrollingUp:u,scrollRatio:c}=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{canScroll:n}=t;let a=0,i=0;const r=an(null),o=rn(0),s=rn(0),l=rn(0),u=rn(!1),c=rn(!1),d=Zo(()=>Number(e.scrollThreshold)),h=Zo(()=>YL((d.value-o.value)/d.value||0)),p=()=>{const e=r.value;if(!e||n&&!n.value)return;a=o.value,o.value="window"in e?e.pageYOffset:e.scrollTop;const t=e instanceof Window?document.documentElement.scrollHeight:e.scrollHeight;i===t?(c.value=o.value<a,l.value=Math.abs(o.value-d.value)):i=t};return Mr(c,()=>{s.value=s.value||o.value}),Mr(u,()=>{s.value=0}),hi(()=>{Mr(()=>e.scrollTarget,e=>{var t;const n=e?document.querySelector(e):window;n&&n!==r.value&&(null==(t=r.value)||t.removeEventListener("scroll",p),r.value=n,r.value.addEventListener("scroll",p,{passive:!0}))},{immediate:!0})}),mi(()=>{var e;null==(e=r.value)||e.removeEventListener("scroll",p)}),n&&Mr(n,p,{immediate:!0}),{scrollThreshold:d,currentScroll:o,currentThreshold:l,isScrollActive:u,scrollRatio:h,isScrollingUp:c,savedScroll:s}}(e,{canScroll:o}),d=gn(()=>r.value.hide||r.value.fullyHide),h=Zo(()=>e.collapse||r.value.collapse&&(r.value.inverted?c.value>0:0===c.value)),p=Zo(()=>e.flat||r.value.fullyHide&&!i.value||r.value.elevate&&(r.value.inverted?s.value>0:0===s.value)),f=Zo(()=>r.value.fadeImage?r.value.inverted?1-c.value:c.value:void 0),m=Zo(()=>{var e,t,n,i;if(r.value.hide&&r.value.inverted)return 0;const o=null!=(t=null==(e=a.value)?void 0:e.contentHeight)?t:0,u=null!=(i=null==(n=a.value)?void 0:n.extensionHeight)?i:0;return d.value?s.value<l.value||r.value.fullyHide?o+u:o:o+u});gL(()=>!!e.scrollBehavior,()=>{Nr(()=>{d.value?r.value.inverted?i.value=s.value>l.value:i.value=u.value||s.value<l.value:i.value=!0})});const{ssrBootStyles:v}=q$(),{layoutItemStyles:g}=mX({id:e.name,order:Zo(()=>parseInt(e.order,10)),position:gn(()=>e.location),layoutSize:m,elementSize:rn(void 0),active:i,absolute:gn(()=>e.absolute)});return GF(()=>{const t=W$.filterProps(e);return bo(W$,Io({ref:a,class:["v-app-bar",{"v-app-bar--bottom":"bottom"===e.location},e.class],style:[{...g.value,"--v-toolbar-image-opacity":f.value,height:void 0,...v.value},e.style]},t,{collapse:h.value,flat:p.value}),n)}),{}}}),J$=[null,"default","comfortable","compact"],Q$=AF({density:{type:String,default:"default",validator:e=>J$.includes(e)}},"density");function Z$(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xF();return{densityClasses:gn(()=>"".concat(t,"--density-").concat(e.density))}}const eY=["elevated","flat","tonal","outlined","text","plain"];function tY(e,t){return yo(eo,null,[e&&yo("span",{key:"overlay",class:ne("".concat(t,"__overlay"))},null),yo("span",{key:"underlay",class:ne("".concat(t,"__underlay"))},null)])}const nY=AF({color:String,variant:{type:String,default:"elevated",validator:e=>
5091eY.includes(e)}},"variant");function aY(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xF();const n=gn(()=>{const{variant:n}=un(e);return"".concat(t,"--variant-").concat(n)}),{colorClasses:a,colorStyles:i}=x$(()=>{const{variant:t,color:n}=un(e);return{[["elevated","flat"].includes(t)?"background":"text"]:n}});return{colorClasses:a,colorStyles:i,variantClasses:n}}const iY=AF({baseColor:String,divided:Boolean,direction:{type:String,default:"horizontal"},...X$(),...EF(),...Q$(),...U$(),...M$(),...Yq(),...ZV(),...nY()},"VBtnGroup"),rY=DF()({name:"VBtnGroup",props:iY(),setup(e,t){let{slots:n}=t;const{themeClasses:a}=sX(e),{densityClasses:i}=Z$(e),{borderClasses:r}=j$(e),{elevationClasses:o}=H$(e),{roundedClasses:s}=O$(e);MF({VBtn:{height:gn(()=>"horizontal"===e.direction?"auto":null),baseColor:gn(()=>e.baseColor),color:gn(()=>e.color),density:gn(()=>e.density),flat:!0,variant:gn(()=>e.variant)}}),GF(()=>bo(e.tag,{class:ne(["v-btn-group","v-btn-group--".concat(e.direction),{"v-btn-group--divided":e.divided},a.value,r.value,i.value,o.value,s.value,e.class]),style:Y(e.style)},n))}}),oY=AF({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),sY=AF({value:null,disabled:Boolean,selectedClass:String},"group-item");function lY(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const a=IF("useGroupItem");if(!a)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const i=Pa();tr(Symbol.for("".concat(t.description,":id")),i);const r=nr(t,null);if(!r){if(!n)return r;throw new Error("[Vuetify] Could not find useGroup injection with symbol ".concat(t.description))}const o=gn(()=>e.value),s=Zo(()=>!(!r.disabled.value&&!e.disabled));function l(){null==r||r.register({id:i,value:o,disabled:s},a)}function u(){null==r||r.unregister(i)}hi(()=>l()),mi(()=>u());const c=Zo(()=>r.isSelected(i)),d=Zo(()=>r.items.value[0].id===i),h=Zo(()=>r.items.value[r.items.value.length-1].id===i),p=Zo(()=>c.value&&[r.selectedClass.value,e.selectedClass]);return Mr(c,e=>{a.emit("group:selected",{value:e})},{flush:"sync"}),{id:i,isSelected:c,isFirst:d,isLast:h,toggle:()=>r.select(i,!c.value),select:e=>r.select(i,e),selectedClass:p,value:o,disabled:s,group:r,register:l,unregister:u}}function uY(e,t){let n=!1;const a=Ht([]),i=qF(e,"modelValue",[],e=>void 0===e?[]:cY(a,null===e?[null]:qL(e)),t=>{const n=function(e,t){const n=[];return t.forEach(t=>{const a=e.findIndex(e=>e.id===t);if(~a){const t=e[a];n.push(void 0!==t.value?t.value:a)}}),n}(a,t);return e.multiple?n:n[0]}),r=IF("useGroup");function o(){const t=a.find(e=>!e.disabled);t&&"force"===e.mandatory&&!i.value.length&&(i.value=[t.id])}function s(t){if(e.multiple,i.value.length){const e=i.value[0],n=a.findIndex(t=>t.id===e);let r=(n+t)%a.length,o=a[r];for(;o.disabled&&r!==n;)r=(r+t)%a.length,o=a[r];if(o.disabled)return;i.value=[a[r].id]}else{const e=a.find(e=>!e.disabled);e&&(i.value=[e.id])}}hi(()=>{o()}),mi(()=>{n=!0}),fi(()=>{for(let e=0;e<a.length;e++)a[e].useIndexAsValue&&(a[e].value=e)});const l={register:function(e,n){const i=e,o=iB(Symbol.for("".concat(t.description,":id")),null==r?void 0:r.vnode).indexOf(n);void 0===ln(i.value)&&(i.value=o,i.useIndexAsValue=!0),o>-1?a.splice(o,0,i):a.push(i)},unregister:function(e){if(n)return;o();const t=a.findIndex(t=>t.id===e);a.splice(t,1)},selected:i,select:function(t,n){const r=a.find(e=>e.id===t);if(!n||!(null==r?void 0:r.disabled))if(e.multiple){const a=i.value.slice(),r=a.findIndex(e=>e===t),o=~r;if(n=null!=n?n:!o,o&&e.mandatory&&a.length<=1)return;if(!o&&null!=e.max&&a.length+1>e.max)return;r<0&&n?a.push(t):r>=0&&!n&&a.splice(r,1),i.value=a}else{const a=i.value.includes(t);if(e.mandatory&&a)return;if(!a&&!n)return;i.value=(null!=n?n:!a)?[t]:[]}},disabled:gn(()=>e.disabled),prev:()=>s(a.length-1),next:()=>s(1),isSelected:e=>i.value.includes(e),selectedClass:gn(()=>e.selectedClass),items:gn(()=>a),getItemIndex:e=>function(e,t){const n=cY(e,[t]);return n.length?e.findIndex(e=>e.id===n[0]):-1}(a,e)};return tr(t,l),l}function cY(e,t){const n=[];return t.forEach(t=>{const a=e.find(e=>xL(t,e.value)),i=e[t];void 0!==(null==a?void 0:a.value)?n.push(a.id):(null==i?void 0:i.useIndexAsValue)&&n.push(i.id)}),n}const dY=Symbol.for("vuetify:v-btn-toggle"),hY=AF({...iY(),...oY()},"VBtnToggle"),pY=DF()({name:"VBtnToggle",props:hY(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:a,next:i,prev:r,select:o,selected:s}=uY(e,dY);return GF(()=>{const t=rY.filterProps(e);return bo(rY,Io({class:["v-btn-toggle",e.class]},t,{style:e.style}),{default:()=>{var e;return[null==(e=n.default)?void 0:e.call(n,{isSelected:a,next:i,prev:r,select:o,selected:s})]}})}),{next:i,prev:r,select:o}}}),fY=["x-small","small","default","large","x-large"],mY=AF({size:{type:[String,Number],default:"default"}},"size");function vY(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xF();return lB(()=>{const n=e.size;let a,i;return uB(fY,n)?a="".concat(t,"--size-").concat(n):n&&(i={width:OL(n),height:OL(n)}),{sizeClasses:a,sizeStyles:i}})}const gY=AF({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:zV,opacity:[String,Number],...EF(),...mY(),...Yq({tag:"i"}),...ZV()},"VIcon"),yY=DF()({name:"VIcon",props:gY(),setup(e,t){let{attrs:n,slots:a}=t;const i=rn(),{themeClasses:r}=lX(),{iconData:o}=(e=>{const t=nr(KV);if(!t)throw new Error("Missing Vuetify Icons provide!");return{iconData:Zo(()=>{var n;const a=un(e);if(!a)return{component:GV};let i=a;if("string"==typeof i&&(i=i.trim(),i.startsWith("$")&&(i=null==(n=t.aliases)?void 0:n[i.slice(1)])),Array.isArray(i))return{component:qV,icon:i};if("string"!=typeof i)return{component:GV,icon:i};const r=Object.keys(t.sets).find(e=>"string"==typeof i&&i.startsWith("".concat(e,":"))),o=r?i.slice(r.length+1):i;
5091return{component:t.sets[null!=r?r:t.defaultSet].component,icon:o}})}})(()=>i.value||e.icon),{sizeClasses:s}=vY(e),{textColorClasses:l,textColorStyles:u}=N$(()=>e.color);return GF(()=>{var t,c;const d=null==(t=a.default)?void 0:t.call(a);d&&(i.value=null==(c=nB(d).filter(e=>e.type===to&&e.children&&"string"==typeof e.children)[0])?void 0:c.children);const h=!(!n.onClick&&!n.onClickOnce);return bo(o.value.component,{tag:e.tag,icon:o.value.icon,class:ne(["v-icon","notranslate",r.value,s.value,l.value,{"v-icon--clickable":h,"v-icon--disabled":e.disabled,"v-icon--start":e.start,"v-icon--end":e.end},e.class]),style:Y([{"--v-icon-opacity":e.opacity},s.value?void 0:{fontSize:OL(e.size),height:OL(e.size),width:OL(e.size)},u.value,e.style]),role:h?"button":void 0,"aria-hidden":!h,tabindex:h?e.disabled?-1:0:void 0},{default:()=>[d]})}),{}}});function bY(e,t){const n=an(),a=rn(!1);if(bL){const e=new IntersectionObserver(e=>{a.value=!!e.find(e=>e.isIntersecting)},t);De(()=>{e.disconnect()}),Mr(n,(t,n)=>{n&&(e.unobserve(n),a.value=!1),t&&e.observe(t)},{flush:"post"})}return{intersectionRef:n,isIntersecting:a}}const _Y=AF({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...EF(),...mY(),...Yq({tag:"div"}),...ZV()},"VProgressCircular"),wY=DF()({name:"VProgressCircular",props:_Y(),setup(e,t){let{slots:n}=t;const a=2*Math.PI*20,i=an(),{themeClasses:r}=sX(e),{sizeClasses:o,sizeStyles:s}=vY(e),{textColorClasses:l,textColorStyles:u}=N$(()=>e.color),{textColorClasses:c,textColorStyles:d}=N$(()=>e.bgColor),{intersectionRef:h,isIntersecting:p}=bY(),{resizeRef:f,contentRect:m}=uX(),v=gn(()=>YL(parseFloat(e.modelValue),0,100)),g=gn(()=>Number(e.width)),y=gn(()=>s.value?Number(e.size):m.value?m.value.width:Math.max(g.value,32)),b=gn(()=>20/(1-g.value/y.value)*2),_=gn(()=>g.value/y.value*b.value),w=gn(()=>OL((100-v.value)/100*a));return Nr(()=>{h.value=i.value,f.value=i.value}),GF(()=>bo(e.tag,{ref:i,class:ne(["v-progress-circular",{"v-progress-circular--indeterminate":!!e.indeterminate,"v-progress-circular--visible":p.value,"v-progress-circular--disable-shrink":e.indeterminate&&("disable-shrink"===e.indeterminate||CL())},r.value,o.value,l.value,e.class]),style:Y([s.value,u.value,e.style]),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.indeterminate?void 0:v.value},{default:()=>[yo("svg",{style:{transform:"rotate(calc(-90deg + ".concat(Number(e.rotate),"deg))")},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(b.value," ").concat(b.value)},[yo("circle",{class:ne(["v-progress-circular__underlay",c.value]),style:Y(d.value),fill:"transparent",cx:"50%",cy:"50%",r:20,"stroke-width":_.value,"stroke-dasharray":a,"stroke-dashoffset":0},null),yo("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r:20,"stroke-width":_.value,"stroke-dasharray":a,"stroke-dashoffset":w.value},null)]),n.default&&yo("div",{class:"v-progress-circular__content"},[n.default({value:v.value})])]})),{}}}),kY={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},CY=AF({location:String},"location");function SY(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0;const{isRtl:a}=sV();return{locationStyles:Zo(()=>{if(!e.location)return{};const{side:i,align:r}=IB(e.location.split(" ").length>1?e.location:"".concat(e.location," center"),a.value);function o(e){return n?n(e):0}const s={};return"center"!==i&&(t?s[kY[i]]="calc(100% - ".concat(o(i),"px)"):s[i]=0),"center"!==r?t?s[kY[r]]="calc(100% - ".concat(o(r),"px)"):s[r]=0:("center"===i?s.top=s.left="50%":s[{top:"left",bottom:"left",left:"top",right:"top"}[i]]="50%",s.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[i]),s})}}const TY=AF({chunkCount:{type:[Number,String],default:null},chunkWidth:{type:[Number,String],default:null},chunkGap:{type:[Number,String],default:4}},"chunks");const AY=AF({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0}
5091,opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...TY(),...EF(),...CY({location:"top"}),...M$(),...Yq(),...ZV()},"VProgressLinear"),EY=DF()({name:"VProgressLinear",props:AY(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const a=an(),i=qF(e,"modelValue"),{isRtl:r,rtlClasses:o}=sV(),{themeClasses:s}=sX(e),{locationStyles:l}=SY(e),{textColorClasses:u,textColorStyles:c}=N$(()=>e.color),{backgroundColorClasses:d,backgroundColorStyles:h}=P$(()=>e.bgColor||e.color),{backgroundColorClasses:p,backgroundColorStyles:f}=P$(()=>e.bufferColor||e.bgColor||e.color),{backgroundColorClasses:m,backgroundColorStyles:v}=P$(()=>e.color),{roundedClasses:g}=O$(e),{intersectionRef:y,isIntersecting:b}=bY(),_=Zo(()=>parseFloat(e.max)),w=Zo(()=>parseFloat(e.height)),k=Zo(()=>YL(parseFloat(e.bufferValue)/_.value*100,0,100)),C=Zo(()=>YL(parseFloat(i.value)/_.value*100,0,100)),S=Zo(()=>r.value!==e.reverse),T=Zo(()=>e.indeterminate?"fade-transition":"slide-x-transition"),A=rn(0),{hasChunks:E,chunksMaskStyles:I,snapValueToChunk:x}=function(e,t){const n=gn(()=>!!e.chunkCount||!!e.chunkWidth),a=Zo(()=>{const n=un(t);if(!n)return 0;if(!e.chunkCount)return Number(e.chunkWidth);const a=Number(e.chunkCount);return(n-Number(e.chunkGap)*(a-1))/a}),i=gn(()=>Number(e.chunkGap)),r=Zo(()=>{if(!n.value)return{};const e=OL(i.value),t=OL(a.value);return{maskRepeat:"repeat-x",maskImage:"linear-gradient(90deg, #000, #000 ".concat(t,", transparent ").concat(t,", transparent)"),maskSize:"calc(".concat(t," + ").concat(e,") 100%")}});return{hasChunks:n,chunksMaskStyles:r,snapValueToChunk:function(e){const n=un(t);if(!n)return e;const r=100*i.value/n,o=100*(a.value+i.value)/n;return YL(0,Math.floor((e+r)/o)*o-r/2,100)}}}(e,A);gL(E,()=>{const{resizeRef:e}=uX(e=>A.value=e[0].contentRect.width);Nr(()=>e.value=a.value)});const N=Zo(()=>E.value?x(k.value):k.value),P=Zo(()=>E.value?x(C.value):C.value);function M(e){if(!y.value)return;const{left:t,right:n,width:a}=y.value.getBoundingClientRect(),r=S.value?a-e.clientX+(n-a):e.clientX-t;i.value=Math.round(r/a*_.value)}return Nr(()=>{y.value=a.value}),GF(()=>bo(e.tag,{ref:a,class:ne(["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&b.value,"v-progress-linear--reverse":S.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped,"v-progress-linear--clickable":e.clickable},g.value,s.value,o.value,e.class]),style:Y([{bottom:"bottom"===e.location?0:void 0,top:"top"===e.location?0:void 0,height:e.active?OL(w.value):0,"--v-progress-linear-height":OL(w.value),...e.absolute?l.value:{}},I.value,e.style]),role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:Math.min(parseFloat(i.value),_.value),onClick:e.clickable&&M},{default:()=>[e.stream&&yo("div",{key:"stream",class:ne(["v-progress-linear__stream",u.value]),style:{...c.value,[S.value?"left":"right"]:OL(-w.value),borderTop:"".concat(OL(w.value/2)," dotted"),opacity:parseFloat(e.bufferOpacity),top:"calc(50% - ".concat(OL(w.value/4),")"),width:OL(100-k.value,"%"),"--v-progress-linear-stream-to":OL(w.value*(S.value?1:-1))}},null),yo("div",{class:ne(["v-progress-linear__background",d.value]),style:Y([h.value,{opacity:parseFloat(e.bgOpacity),width:e.stream?0:void 0}])},null),yo("div",{class:ne(["v-progress-linear__buffer",p.value]),style:Y([f.value,{opacity:parseFloat(e.bufferOpacity),width:OL(N.value,"%")}])},null),bo(_s,{name:T.value},{default:()=>[e.indeterminate?yo("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(e=>yo("div",{key:e,class:ne(["v-progress-linear__indeterminate",e,m.value]),style:Y(v.value)},null))]):yo("div",{class:ne(["v-progress-linear__determinate",m.value]),style:Y([v.value,{width:OL(P.value,"%")}])},null)]}),n.default&&yo("div",{class:"v-progress-linear__content"},[n.default({value:C.value,buffer:k.value})])]})),{}}}),IY=AF({loading:[Boolean,String]},"loader");function xY(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xF();return{loaderClasses:gn(()=>({["".concat(t,"--loading")]:e.loading}))}}function NY(e,t){var n;let{slots:a}=t;return yo("div",{class:ne("".concat(e.name,"__loader"))}
5091,[(null==(n=a.default)?void 0:n.call(a,{color:e.color,isActive:e.active}))||bo(EY,{absolute:e.absolute,active:e.active,color:e.color,height:"2",indeterminate:!0},null)])}const PY=["static","relative","fixed","absolute","sticky"],MY=AF({position:{type:String,validator:e=>PY.includes(e)}},"position");function OY(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xF();return{positionClasses:gn(()=>e.position?"".concat(t,"--").concat(e.position):void 0)}}function RY(){var e,t;return null==(t=null==(e=IF("useRouter"))?void 0:e.proxy)?void 0:t.$router}function DY(e,t){var n,a;const i=Si("RouterLink"),r=gn(()=>!(!e.href&&!e.to)),o=Zo(()=>(null==r?void 0:r.value)||hB(t,"click")||hB(e,"click"));if("string"==typeof i||!("useLink"in i)){const t=gn(()=>e.href);return{isLink:r,isRouterLink:gn(()=>!1),isClickable:o,href:t,linkProps:Ht({href:t})}}const s=i.useLink({to:gn(()=>e.to||""),replace:gn(()=>e.replace)}),l=Zo(()=>e.to?s:void 0),u=function(){const e=IF("useRoute");return Zo(()=>{var t;return null==(t=null==e?void 0:e.proxy)?void 0:t.$route})}(),c=Zo(()=>{var t,n,a,i,r;return!!l.value&&(e.exact?u.value?(null==(r=l.value.isExactActive)?void 0:r.value)&&xL(l.value.route.value.query,u.value.query):null!=(i=null==(a=l.value.isExactActive)?void 0:a.value)&&i:null!=(n=null==(t=l.value.isActive)?void 0:t.value)&&n)}),d=Zo(()=>{var t;return e.to?null==(t=l.value)?void 0:t.route.value.href:e.href}),h=gn(()=>!!e.to);return{isLink:r,isRouterLink:h,isClickable:o,isActive:c,route:null==(n=l.value)?void 0:n.route,navigate:null==(a=l.value)?void 0:a.navigate,href:d,linkProps:Ht({href:d,"aria-current":gn(()=>c.value?"page":void 0),"aria-disabled":gn(()=>e.disabled&&r.value?"true":void 0),tabindex:gn(()=>e.disabled&&r.value?"-1":void 0)})}}const LY=AF({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let BY=!1;const FY=Symbol("rippleStop");function VY(e,t){e.style.transform=t,e.style.webkitTransform=t}function XY(e){return"TouchEvent"===e.constructor.name}function jY(e){return"KeyboardEvent"===e.constructor.name}const UY={show(e,t){var n;let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(null==(n=null==t?void 0:t._ripple)?void 0:n.enabled))return;const i=document.createElement("span"),r=document.createElement("span");i.appendChild(r),i.className="v-ripple__container",a.class&&(i.className+=" ".concat(a.class));const{radius:o,scale:s,x:l,y:u,centerX:c,centerY:d}=function(e,t){var n;let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=0,r=0;if(!jY(e)){const n=t.getBoundingClientRect(),a=XY(e)?e.touches[e.touches.length-1]:e;i=a.clientX-n.left,r=a.clientY-n.top}let o=0,s=.3;(null==(n=t._ripple)?void 0:n.circle)?(s=.15,o=t.clientWidth/2,o=a.center?o:o+Math.sqrt((i-o)**2+(r-o)**2)/4):o=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const l="".concat((t.clientWidth-2*o)/2,"px"),u="".concat((t.clientHeight-2*o)/2,"px");return{radius:o,scale:s,x:a.center?l:"".concat(i-o,"px"),y:a.center?u:"".concat(r-o,"px"),centerX:l,centerY:u}}(e,t,a),h="".concat(2*o,"px");r.className="v-ripple__animation",r.style.width=h,r.style.height=h,t.appendChild(i);const p=window.getComputedStyle(t);p&&"static"===p.position&&(t.style.position="relative",t.dataset.previousPosition="static"),r.classList.add("v-ripple__animation--enter"),r.classList.add("v-ripple__animation--visible"),VY(r,"translate(".concat(l,", ").concat(u,") scale3d(").concat(s,",").concat(s,",").concat(s,")")),r.dataset.activated=String(performance.now()),requestAnimationFrame(()=>{requestAnimationFrame(()=>{r.classList.remove("v-ripple__animation--enter"),r.classList.add("v-ripple__animation--in"),VY(r,"translate(".concat(c,", ").concat(d,") scale3d(1,1,1)"))})})},hide(e){var t;if(!(null==(t=null==e?void 0:e._ripple)?void 0:t.enabled))return;const n=e.getElementsByClassName("v-ripple__animation");if(0===n.length)return;const a=Array.from(n).findLast(e=>!e.dataset.isHiding);if(!a)return;a.dataset.isHiding="true";const i=performance.now()-Number(a.dataset.activated),r=Math.max(250-i,0);setTimeout(()=>{a.classList.remove("v-ripple__animation--in"),a.classList.add("v-ripple__animation--out"),setTimeout(()=>{var t;
50911===e.getElementsByClassName("v-ripple__animation").length&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),(null==(t=a.parentNode)?void 0:t.parentNode)===e&&e.removeChild(a.parentNode)},300)},r)}};function HY(e){return void 0===e||!!e}function zY(e){const t={},n=e.currentTarget;if((null==n?void 0:n._ripple)&&!n._ripple.touched&&!e[FY]){if(e[FY]=!0,XY(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||jY(e),n._ripple.class&&(t.class=n._ripple.class),XY(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{UY.show(e,n,t)},n._ripple.showTimer=window.setTimeout(()=>{var e;(null==(e=null==n?void 0:n._ripple)?void 0:e.showTimerCommit)&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},80)}else UY.show(e,n,t)}}function KY(e){e[FY]=!0}function WY(e){const t=e.currentTarget;if(null==t?void 0:t._ripple){if(window.clearTimeout(t._ripple.showTimer),"touchend"===e.type&&t._ripple.showTimerCommit)return t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null,void(t._ripple.showTimer=window.setTimeout(()=>{WY(e)}));window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),UY.hide(t)}}function GY(e){const t=e.currentTarget;(null==t?void 0:t._ripple)&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let qY=!1;function $Y(e,t){!qY&&t.includes(e.key)&&(qY=!0,zY(e))}function YY(e){qY=!1,WY(e)}function JY(e){qY&&(qY=!1,WY(e))}function QY(e,t,n){var a,i;const{value:r,modifiers:o}=t,s=HY(r);s||UY.hide(e),e._ripple=null!=(a=e._ripple)?a:{},e._ripple.enabled=s,e._ripple.centered=o.center,e._ripple.circle=o.circle;const l=RL(r)?r:{};l.class&&(e._ripple.class=l.class);const u=null!=(i=l.keys)?i:["Enter","Space"];if(e._ripple.keyDownHandler=e=>$Y(e,u),s&&!n){if(o.stop)return e.addEventListener("touchstart",KY,{passive:!0}),void e.addEventListener("mousedown",KY);e.addEventListener("touchstart",zY,{passive:!0}),e.addEventListener("touchend",WY,{passive:!0}),e.addEventListener("touchmove",GY,{passive:!0}),e.addEventListener("touchcancel",WY),e.addEventListener("mousedown",zY),e.addEventListener("mouseup",WY),e.addEventListener("mouseleave",WY),e.addEventListener("keydown",e=>$Y(e,u)),e.addEventListener("keyup",YY),e.addEventListener("blur",JY),e.addEventListener("dragstart",WY,{passive:!0})}else!s&&n&&ZY(e)}function ZY(e){var t;e.removeEventListener("mousedown",zY),e.removeEventListener("touchstart",zY),e.removeEventListener("touchend",WY),e.removeEventListener("touchmove",GY),e.removeEventListener("touchcancel",WY),e.removeEventListener("mouseup",WY),e.removeEventListener("mouseleave",WY),(null==(t=e._ripple)?void 0:t.keyDownHandler)&&e.removeEventListener("keydown",e._ripple.keyDownHandler),e.removeEventListener("keyup",YY),e.removeEventListener("dragstart",WY),e.removeEventListener("blur",JY)}const eJ={mounted:function(e,t){QY(e,t,!1)},unmounted:function(e){ZY(e),delete e._ripple},updated:function(e,t){if(t.value===t.oldValue)return;QY(e,t,HY(t.oldValue))}},tJ=AF({active:{type:Boolean,default:void 0},activeColor:String,baseColor:String,symbol:{type:null,default:dY},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:zV,appendIcon:zV,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,spaced:String,ripple:{type:[Boolean,Object],default:!0},text:{type:[String,Number,Boolean],default:void 0},...X$(),...EF(),...Q$(),...T$(),...U$(),...sY(),...IY(),...CY(),...MY(),...M$(),...LY(),...mY(),...Yq({tag:"button"}),...ZV(),...nY({variant:"elevated"})},"VBtn"),nJ=DF()({name:"VBtn",props:tJ(),emits:{"group:selected":e=>!0},setup(e,t){let{attrs:n,slots:a}=t;const{themeClasses:i}=sX(e),{borderClasses:r}=j$(e),{densityClasses:o}=Z$(e),{dimensionStyles:s}=A$(e),{elevationClasses:l}=H$(e),{loaderClasses:u}=xY(e),{locationStyles:c}=SY(e),{positionClasses:d}
5091=OY(e),{roundedClasses:h}=O$(e),{sizeClasses:p,sizeStyles:f}=vY(e),m=lY(e,e.symbol,!1),v=DY(e,n),g=Zo(()=>{var t;return void 0!==e.active?e.active:v.isRouterLink.value?null==(t=v.isActive)?void 0:t.value:null==m?void 0:m.isSelected.value}),y=gn(()=>{var t;return g.value&&null!=(t=e.activeColor)?t:e.color}),b=Zo(()=>{var t,n,a;return{color:((null==m?void 0:m.isSelected.value)&&(!v.isLink.value||(null==(t=v.isActive)?void 0:t.value))||!m||(null==(n=v.isActive)?void 0:n.value))&&null!=(a=y.value)?a:e.baseColor,variant:e.variant}}),{colorClasses:_,colorStyles:w,variantClasses:k}=aY(b),C=Zo(()=>(null==m?void 0:m.disabled.value)||e.disabled),S=gn(()=>"elevated"===e.variant&&!(e.disabled||e.flat||e.border)),T=Zo(()=>{if(void 0!==e.value&&"symbol"!=typeof e.value)return Object(e.value)===e.value?JSON.stringify(e.value,null,0):e.value});function A(e){var t;C.value||v.isLink.value&&(e.metaKey||e.ctrlKey||e.shiftKey||0!==e.button||"_blank"===n.target)||(v.isRouterLink.value?null==(t=v.navigate)||t.call(v,e):null==m||m.toggle())}return function(e,t){Mr(()=>{var t;return null==(t=e.isActive)?void 0:t.value},n=>{e.isLink.value&&null!=n&&t&&jn(()=>{t(n)})},{immediate:!0})}(v,null==m?void 0:m.select),GF(()=>{const t=v.isLink.value?"a":e.tag,n=!(!e.prependIcon&&!a.prepend),y=!(!e.appendIcon&&!a.append),b=!(!e.icon||!0===e.icon);return ta(bo(t,Io(v.linkProps,{type:"a"===t?void 0:"button",class:["v-btn",null==m?void 0:m.selectedClass.value,{"v-btn--active":g.value,"v-btn--block":e.block,"v-btn--disabled":C.value,"v-btn--elevated":S.value,"v-btn--flat":e.flat,"v-btn--icon":!!e.icon,"v-btn--loading":e.loading,"v-btn--readonly":e.readonly,"v-btn--slim":e.slim,"v-btn--stacked":e.stacked},e.spaced?["v-btn--spaced","v-btn--spaced-".concat(e.spaced)]:[],i.value,r.value,_.value,o.value,l.value,u.value,d.value,h.value,p.value,k.value,e.class],style:[w.value,s.value,c.value,f.value,e.style],"aria-busy":!!e.loading||void 0,disabled:C.value&&"a"!==t||void 0,tabindex:e.loading||e.readonly?-1:void 0,onClick:A,value:T.value}),{default:()=>{var t,i;return[tY(!0,"v-btn"),!e.icon&&n&&yo("span",{key:"prepend",class:"v-btn__prepend"},[a.prepend?bo(S$,{key:"prepend-defaults",disabled:!e.prependIcon,defaults:{VIcon:{icon:e.prependIcon}}},a.prepend):bo(yY,{key:"prepend-icon",icon:e.prependIcon},null)]),yo("span",{class:"v-btn__content","data-no-activator":""},[!a.default&&b?bo(yY,{key:"content-icon",icon:e.icon},null):bo(S$,{key:"content-defaults",disabled:!b,defaults:{VIcon:{icon:e.icon}}},{default:()=>{var t,n;return[null!=(n=null==(t=a.default)?void 0:t.call(a))?n:Te(e.text)]}})]),!e.icon&&y&&yo("span",{key:"append",class:"v-btn__append"},[a.append?bo(S$,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VIcon:{icon:e.appendIcon}}},a.append):bo(yY,{key:"append-icon",icon:e.appendIcon},null)]),!!e.loading&&yo("span",{key:"loader",class:"v-btn__loader"},[null!=(i=null==(t=a.loader)?void 0:t.call(a))?i:bo(wY,{color:"boolean"==typeof e.loading?void 0:e.loading,indeterminate:!0,width:"2"},null)])]}}),[[eJ,!C.value&&e.ripple,"",{center:!!e.icon}]])}),{group:m}}}),aJ=AF({...UL(tJ({icon:"$menu",variant:"text"}),["spaced"])},"VAppBarNavIcon"),iJ=DF()({name:"VAppBarNavIcon",props:aJ(),setup(e,t){let{slots:n}=t;return GF(()=>bo(nJ,Io(e,{class:["v-app-bar-nav-icon"]}),n)),{}}}),rJ=DF()({name:"VAppBarTitle",props:Jq(),setup(e,t){let{slots:n}=t;return GF(()=>bo(Qq,Io(e,{class:"v-app-bar-title"}),n)),{}}}),oJ=LF("v-alert-title"),sJ=AF({iconSize:[Number,String],iconSizes:{type:Array,default:()=>[["x-small",10],["small",16],["default",24],["large",28],["x-large",32]]}},"iconSize");const lJ=["success","info","warning","error"],uJ=AF({border:{type:[Boolean,String],validator:e=>"boolean"==typeof e||["top","end","bottom","start"].includes(e)},borderColor:String,closable:Boolean,closeIcon:{type:zV,default:"$close"},closeLabel:{type:String,default:"$vuetify.close"},icon:{type:[Boolean,String,Function,Object],default:null},modelValue:{type:Boolean,default:!0},prominent:Boolean,title:String,text:String,type:{type:String,validator:e=>lJ.includes(e)},...EF(),...Q$(),...T$(),...U$(),...sJ(),...CY(),...MY(),...M$(),...Yq(),...ZV(),...nY({variant:"flat"})},"VAlert"),cJ=DF()({name:"VAlert",props:uJ(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:a}=t;const i=qF(e,"modelValue"),r=gn(()=>{var t;if(!1!==e.icon)return e.type?null!=(t=e.icon)?t:"$".concat(e.type):e.icon}),{iconSize:o}=function(e,t){return{iconSize:Zo(()=>{var n,a;const i=new Map(e.iconSizes),r=null!=(a=null!=(n=e.iconSize)?n:t())?a:"default";return i.has(r)?i.get(r):r})}}(e,()=>e.prominent?44:void 0),{themeClasses:s}=sX(e),{colorClasses:l,colorStyles:u,variantClasses:c}=aY(()=>{var t;return{color:null!=(t=e.color)?t:e.type,variant:e.variant}}
5091),{densityClasses:d}=Z$(e),{dimensionStyles:h}=A$(e),{elevationClasses:p}=H$(e),{locationStyles:f}=SY(e),{positionClasses:m}=OY(e),{roundedClasses:v}=O$(e),{textColorClasses:g,textColorStyles:y}=N$(()=>e.borderColor),{t:b}=rV(),_=gn(()=>({"aria-label":b(e.closeLabel),onClick(e){i.value=!1,n("click:close",e)}}));return()=>{const t=!(!a.prepend&&!r.value),n=!(!a.title&&!e.title),b=!(!a.close&&!e.closable),w={density:e.density,icon:r.value,size:e.iconSize||e.prominent?o.value:void 0};return i.value&&bo(e.tag,{class:ne(["v-alert",e.border&&{"v-alert--border":!!e.border,["v-alert--border-".concat(!0===e.border?"start":e.border)]:!0},{"v-alert--prominent":e.prominent},s.value,l.value,d.value,p.value,m.value,v.value,c.value,e.class]),style:Y([u.value,h.value,f.value,e.style]),role:"alert"},{default:()=>{var i,o,s;return[tY(!1,"v-alert"),e.border&&yo("div",{key:"border",class:ne(["v-alert__border",g.value]),style:Y(y.value)},null),t&&yo("div",{key:"prepend",class:"v-alert__prepend"},[a.prepend?bo(S$,{key:"prepend-defaults",disabled:!r.value,defaults:{VIcon:{...w}}},a.prepend):bo(yY,Io({key:"prepend-icon"},w),null)]),yo("div",{class:"v-alert__content"},[n&&bo(oJ,{key:"title"},{default:()=>{var t,n;return[null!=(n=null==(t=a.title)?void 0:t.call(a))?n:e.title]}}),null!=(o=null==(i=a.text)?void 0:i.call(a))?o:e.text,null==(s=a.default)?void 0:s.call(a)]),a.append&&yo("div",{key:"append",class:"v-alert__append"},[a.append()]),b&&yo("div",{key:"close",class:"v-alert__close"},[a.close?bo(S$,{key:"close-defaults",defaults:{VBtn:{icon:e.closeIcon,size:"x-small",variant:"text"}}},{default:()=>{var e;return[null==(e=a.close)?void 0:e.call(a,{props:_.value})]}}):bo(nJ,Io({key:"close-btn",icon:e.closeIcon,size:"x-small",variant:"text"},_.value),null)])]}})}}}),dJ=AF({start:Boolean,end:Boolean,icon:zV,image:String,text:String,...X$(),...EF(),...Q$(),...M$(),...mY(),...Yq(),...ZV(),...nY({variant:"flat"})},"VAvatar"),hJ=DF()({name:"VAvatar",props:dJ(),setup(e,t){let{slots:n}=t;const{themeClasses:a}=sX(e),{borderClasses:i}=j$(e),{colorClasses:r,colorStyles:o,variantClasses:s}=aY(e),{densityClasses:l}
5091=Z$(e),{roundedClasses:u}=O$(e),{sizeClasses:c,sizeStyles:d}=vY(e);return GF(()=>bo(e.tag,{class:ne(["v-avatar",{"v-avatar--start":e.start,"v-avatar--end":e.end},a.value,i.value,r.value,l.value,u.value,c.value,s.value,e.class]),style:Y([o.value,d.value,e.style])},{default:()=>[n.default?bo(S$,{key:"content-defaults",defaults:{VImg:{cover:!0,src:e.image},VIcon:{icon:e.icon}}},{default:()=>[n.default()]}):e.image?bo(V$,{key:"image",src:e.image,alt:"",cover:!0},null):e.icon?bo(yY,{key:"icon",icon:e.icon},null):e.text,tY(!1,"v-avatar")]})),{}}}),pJ=AF({text:String,onClick:dB(),...EF(),...ZV()},"VLabel"),fJ=DF()({name:"VLabel",props:pJ(),setup(e,t){let{slots:n}=t;return GF(()=>{var t;return yo("label",{class:ne(["v-label",{"v-label--clickable":!!e.onClick},e.class]),style:Y(e.style),onClick:e.onClick},[e.text,null==(t=n.default)?void 0:t.call(n)])}),{}}}),mJ=Symbol.for("vuetify:selection-control-group"),vJ=AF({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:zV,trueIcon:zV,ripple:{type:[Boolean,Object],default:!0},multiple:{type:Boolean,default:null},name:String,readonly:{type:Boolean,default:null},modelValue:null,type:String,valueComparator:{type:Function,default:xL},...EF(),...Q$(),...ZV()},"SelectionControlGroup"),gJ=AF({...vJ({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup"),yJ=DF()({name:"VSelectionControlGroup",props:gJ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const a=qF(e,"modelValue"),i=Pa(),r=gn(()=>e.id||"v-selection-control-group-".concat(i)),o=gn(()=>e.name||r.value),s=new Set;return tr(mJ,{modelValue:a,forceUpdate:()=>{s.forEach(e=>e())},onForceUpdate:e=>{s.add(e),De(()=>{s.delete(e)})}}),MF({[e.defaultsTarget]:{color:gn(()=>e.color),disabled:gn(()=>e.disabled),density:gn(()=>e.density),error:gn(()=>e.error),inline:gn(()=>e.inline),modelValue:a,multiple:gn(()=>!!e.multiple||null==e.multiple&&Array.isArray(a.value)),name:o,falseIcon:gn(()=>e.falseIcon),trueIcon:gn(()=>e.trueIcon),readonly:gn(()=>e.readonly),ripple:gn(()=>e.ripple),type:gn(()=>e.type),valueComparator:gn(()=>e.valueComparator)}}),GF(()=>{var t;return yo("div",{class:ne(["v-selection-control-group",{"v-selection-control-group--inline":e.inline},e.class]),style:Y(e.style),role:"radio"===e.type?"radiogroup":void 0},[null==(t=n.default)?void 0:t.call(n)])}),{}}}),bJ=AF({label:String,baseColor:String,trueValue:null,falseValue:null,value:null,...EF(),...vJ()},"VSelectionControl");const _J=DF()({name:"VSelectionControl",directives:{vRipple:eJ},inheritAttrs:!1,props:bJ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:a}=t;const{group:i,densityClasses:r,icon:o,model:s,textColorClasses:l,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:d,trueValue:h}=function(e){const t=nr(mJ,void 0),{densityClasses:n}=Z$(e),a=qF(e,"modelValue"),i=Zo(()=>void 0!==e.trueValue?e.trueValue:void 0===e.value||e.value),r=Zo(()=>void 0!==e.falseValue&&e.falseValue),o=Zo(()=>!!e.multiple||null==e.multiple&&Array.isArray(a.value)),s=Zo({get(){const n=t?t.modelValue.value:a.value;return o.value?qL(n).some(t=>e.valueComparator(t,i.value)):e.valueComparator(n,i.value)},set(n){if(e.readonly)return;const s=n?i.value:r.value;let l=s;o.value&&(l=n?[...qL(a.value),s]:qL(a.value).filter(t=>!e.valueComparator(t,i.value))),t?t.modelValue.value=l:a.value=l}}),{textColorClasses:l,textColorStyles:u}=N$(()=>{if(!e.error&&!e.disabled)return s.value?e.color:e.baseColor}),{backgroundColorClasses:c,backgroundColorStyles:d}=P$(()=>!s.value||e.error||e.disabled?e.baseColor:e.color),h=Zo(()=>s.value?e.trueIcon:e.falseIcon);return{group:t,densityClasses:n,trueValue:i,falseValue:r,model:s,textColorClasses:l,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:d,icon:h}}(e),p=Pa(),f=rn(!1),m=rn(!1),v=an(),g=gn(()=>e.id||"input-".concat(p)),y=gn(()=>!e.disabled&&!e.readonly);function b(e){y.value&&(f.value=!0,!1!==bB(e.target,":focus-visible")&&(m.value=!0))}function _(){f.value=!1,m.value=!1}function w(e){e.stopPropagation()}function k(t){y.value?(e.readonly&&i&&jn(()=>i.forceUpdate()),s.value=t.target.checked):v.value&&(v.value.checked=s.value)}return null==i||i.onForceUpdate(()=>{v.value&&(v.value.checked=s.value)}),GF(()=>{var t,i,p;const y=a.label?a.label({label:e.label,props:{for:g.value}}):e.label,[C,S]=GL(n),T=yo("input",Io({ref:v,checked:s.value,disabled:!!e.disabled,id:g.value,onBlur:_,onFocus:b,onInput:k,"aria-disabled":!!e.disabled,"aria-label":e.label,type:e.type,value:h.value,name:e.name,"aria-checked":"checkbox"===e.type?s.value:void 0},S),null);return yo("div",Io({class:["v-selection-control",{"v-selection-control--dirty":s.value,"v-selection-control--disabled":e.disabled,"v-selection-control--error":e.error,"v-selection-control--focused":f.value,"v-selection-control--focus-visible":m.value,"v-selection-control--inline":e.inline},r.value,e.class]},C,{style:e.style}),[yo("div",{class:ne(["v-selection-control__wrapper",l.value]),style:Y(u.value)},[null==(t=a.default)?void 0:t.call(a,{backgroundColorClasses:c,backgroundColorStyles:d}),ta(yo("div",{class:ne(["v-selection-control__input"])},[null!=(p=null==(i=a.input)?void 0:i.call(a,{model:s,textColorClasses:l,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:d,inputNode:T,icon:o.value,props:{onFocus:b,onBlur:_,id:g.value}}))?p:yo(eo,null,[o.value&&bo(yY,{key:"icon",icon:o.value},null),T])]),[[eJ,!e.disabled&&!e.readonly&&e.ripple,null,{center:!0,circle:!0}]])]),y&&bo(fJ,{for:g.value,onClick:w},{default:()=>[y]})])}),{isFocused:f,input:v}}}),wJ=AF({indeterminate:Boolean,indeterminateIcon:{type:zV,default:"$checkboxIndeterminate"},...bJ({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),kJ=DF()({name:"VCheckboxBtn",props:wJ(),emits:{"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,t){let{slots:n}=t;const a=qF(e,"indeterminate"),i=qF(e,"modelValue");
5091function r(e){a.value&&(a.value=!1)}const o=gn(()=>a.value?e.indeterminateIcon:e.falseIcon),s=gn(()=>a.value?e.indeterminateIcon:e.trueIcon);return GF(()=>{const t=UL(_J.filterProps(e),["modelValue"]);return bo(_J,Io(t,{modelValue:i.value,"onUpdate:modelValue":[e=>i.value=e,r],class:["v-checkbox-btn",e.class],style:e.style,type:"checkbox",falseIcon:o.value,trueIcon:s.value,"aria-checked":a.value?"mixed":void 0}),n)}),{}}});function CJ(e){const{t:t}=rV();return{InputIcon:function(n){var a;let{name:i,color:r,...o}=n;const s={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[i],l=e["onClick:".concat(i)],u=l&&s?t("$vuetify.input.".concat(s),null!=(a=e.label)?a:""):void 0;return bo(yY,Io({icon:e["".concat(i,"Icon")],"aria-label":u,onClick:l,onKeydown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.stopPropagation(),pB(l,new PointerEvent("click",e)))},color:r},o),null)}}}const SJ=AF({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...EF(),...R$({transition:{component:b$,leaveAbsolute:!0,group:!0}})},"VMessages"),TJ=DF()({name:"VMessages",props:SJ(),setup(e,t){let{slots:n}=t;const a=Zo(()=>qL(e.messages)),{textColorClasses:i,textColorStyles:r}=N$(()=>e.color);return GF(()=>bo(D$,{transition:e.transition,tag:"div",class:ne(["v-messages",i.value,e.class]),style:Y([r.value,e.style])},{default:()=>[e.active&&a.value.map((e,t)=>yo("div",{class:"v-messages__message",key:"".concat(t,"-").concat(a.value)},[n.message?n.message({message:e}):e]))]})),{}}}),AJ=AF({focused:Boolean,"onUpdate:focused":dB()},"focus");function EJ(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xF();const n=qF(e,"focused");return{focusClasses:gn(()=>({["".concat(t,"--focused")]:n.value})),isFocused:n,focus:function(){n.value=!0},blur:function(){n.value=!1}}}const IJ=Symbol.for("vuetify:form"),xJ=AF({disabled:Boolean,fastFail:Boolean,readonly:Boolean,modelValue:{type:Boolean,default:null},validateOn:{type:String,default:"input"}},"form");function NJ(e){const t=nr(IJ,null);return{...t,isReadonly:Zo(()=>{var n;return!!(null!=(n=null==e?void 0:e.readonly)?n:null==t?void 0:t.isReadonly.value)}),isDisabled:Zo(()=>{var n;return!!(null!=(n=null==e?void 0:e.disabled)?n:null==t?void 0:t.isDisabled.value)})}}const PJ=Symbol.for("vuetify:rules");const MJ=AF({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...AJ()},"validation");function OJ(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xF(),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Pa();const a=qF(e,"modelValue"),i=Zo(()=>void 0===e.validationValue?a.value:e.validationValue),r=NJ(e),o=function(e){var t;const n=nr(PJ,null);if(!e){if(!n)throw new Error("Could not find Vuetify rules injection");return n.aliases}return null!=(t=null==n?void 0:n.resolve(e))?t:gn(e)}(()=>e.rules),s=an([]),l=rn(!0),u=Zo(()=>!(!qL(""===a.value?null:a.value).length&&!qL(""===i.value?null:i.value).length)),c=Zo(()=>{var t;return(null==(t=e.errorMessages)?void 0:t.length)?qL(e.errorMessages).concat(s.value).slice(0,Math.max(0,Number(e.maxErrors))):s.value}),d=Zo(()=>{var t,n,a;let i=(null!=(n=e.validateOn)?n:null==(t=r.validateOn)?void 0:t.value)||"input";"lazy"===i&&(i="input lazy"),"eager"===i&&(i="input eager");const o=new Set(null!=(a=null==i?void 0:i.split(" "))?a:[]);return{input:o.has("input"),blur:o.has("blur")||o.has("input")||o.has("invalid-input"),invalidInput:o.has("invalid-input"),lazy:o.has("lazy"),eager:o.has("eager")}}),h=Zo(()=>{var t;return!e.error&&!(null==(t=e.errorMessages)?void 0:t.length)&&(!e.rules.length||(l.value?!s.value.length&&!d.value.lazy||null:!s.value.length))}),p=rn(!1),f=Zo(()=>({["".concat(t,"--error")]:!1===h.value,["".concat(t,"--dirty")]:u.value,["".concat(t,"--disabled")]:r.isDisabled.value,["".concat(t,"--readonly")]:r.isReadonly.value})),m=IF("validation"),v=Zo(()=>{var t;return null!=(t=e.name)?t:ln(n)});async function g(){a.value=null,await jn(),await y()}async function y(){l.value=!0,d.value.lazy?s.value=[]:await b(!d.value.eager)}async function b(){var t;let n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const a=[];p.value=!0;for(const r of o.value){if(a.length>=Number(null!=(t=e.maxErrors)?t:1))break;const n="function"==typeof r?r:()=>r,o=await n(i.value);!0!==o&&(!1===o||"string"==typeof o?a.push(o||""):console.warn("".concat(o," is not a valid value. Rule functions must return boolean true or a string.")))}return s.value=a,p.value=!1,l.value=n,s.value}return di(()=>{var e;null==(e=r.register)||e.call(r,{id:v.value,vm:m,validate:b,reset:g,resetValidation:y})}),mi(()=>{var e;null==(e=r.unregister)||e.call(r,v.value)}),hi(async()=>{var e;d.value.lazy||await b(!d.value.eager),null==(e=r.update)||e.call(r,v.value,h.value,c.value)}),gL(()=>
5091d.value.input||d.value.invalidInput&&!1===h.value,()=>{Mr(i,()=>{if(null!=i.value)b();else if(e.focused){const t=Mr(()=>e.focused,e=>{e||b(),t()})}})}),gL(()=>d.value.blur,()=>{Mr(()=>e.focused,e=>{e||b()})}),Mr([h,c],()=>{var e;null==(e=r.update)||e.call(r,v.value,h.value,c.value)}),{errorMessages:c,isDirty:u,isDisabled:r.isDisabled,isReadonly:r.isReadonly,isPristine:l,isValid:h,isValidating:p,reset:g,resetValidation:y,validate:b,validationClasses:f}}const RJ=AF({id:String,appendIcon:zV,baseColor:String,centerAffix:{type:Boolean,default:!0},color:String,glow:Boolean,iconColor:[Boolean,String],prependIcon:zV,hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},"onClick:prepend":dB(),"onClick:append":dB(),...EF(),...Q$(),...XL(T$(),["maxWidth","minWidth","width"]),...ZV(),...MJ()},"VInput"),DJ=DF()({name:"VInput",props:{...RJ()},emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:a,emit:i}=t;const{densityClasses:r}=Z$(e),{dimensionStyles:o}=A$(e),{themeClasses:s}=sX(e),{rtlClasses:l}=sV(),{InputIcon:u}=CJ(e),c=Pa(),d=Zo(()=>e.id||"input-".concat(c)),{errorMessages:h,isDirty:p,isDisabled:f,isReadonly:m,isPristine:v,isValid:g,isValidating:y,reset:b,resetValidation:_,validate:w,validationClasses:k}=OJ(e,"v-input",d),C=Zo(()=>{var t;return(null==(t=e.errorMessages)?void 0:t.length)||!v.value&&h.value.length?h.value:e.hint&&(e.persistentHint||e.focused)?e.hint:e.messages}),S=gn(()=>C.value.length>0),T=gn(()=>!e.hideDetails||"auto"===e.hideDetails&&(S.value||!!a.details)),A=Zo(()=>T.value?"".concat(d.value,"-messages"):void 0),E=Zo(()=>({id:d,messagesId:A,isDirty:p,isDisabled:f,isReadonly:m,isPristine:v,isValid:g,isValidating:y,hasDetails:T,reset:b,resetValidation:_,validate:w})),I=gn(()=>e.error||e.disabled?void 0:e.focused?e.color:e.baseColor),x=gn(()=>{if(e.iconColor)return!0===e.iconColor?I.value:e.iconColor});return GF(()=>{var t,n,i,c;const d=!(!a.prepend&&!e.prependIcon),h=!(!a.append&&!e.appendIcon);return yo("div",{class:ne(["v-input","v-input--".concat(e.direction),{"v-input--center-affix":e.centerAffix,"v-input--focused":e.focu
5091sed,"v-input--glow":e.glow,"v-input--hide-spin-buttons":e.hideSpinButtons},r.value,s.value,l.value,k.value,e.class]),style:Y([o.value,e.style])},[d&&yo("div",{key:"prepend",class:"v-input__prepend"},[null==(t=a.prepend)?void 0:t.call(a,E.value),e.prependIcon&&bo(u,{key:"prepend-icon",name:"prepend",color:x.value},null)]),a.default&&yo("div",{class:"v-input__control"},[null==(n=a.default)?void 0:n.call(a,E.value)]),h&&yo("div",{key:"append",class:"v-input__append"},[e.appendIcon&&bo(u,{key:"append-icon",name:"append",color:x.value},null),null==(i=a.append)?void 0:i.call(a,E.value)]),T.value&&yo("div",{id:A.value,class:"v-input__details",role:"alert","aria-live":"polite"},[bo(TJ,{active:S.value,messages:C.value},{message:a.message}),null==(c=a.details)?void 0:c.call(a,E.value)])])}),{reset:b,resetValidation:_,validate:w,isValid:g,errorMessages:h}}}),LJ=Symbol("Forwarded refs");function BJ(e,t){let n=e;for(;n;){const e=Reflect.getOwnPropertyDescriptor(n,t);if(e)return e;n=Object.getPrototypeOf(n)}}function FJ(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return e[LJ]=n,new Proxy(e,{get(e,t){if(Reflect.has(e,t))return Reflect.get(e,t);if("symbol"!=typeof t&&!t.startsWith("$")&&!t.startsWith("__"))for(const a of n)if(a.value&&Reflect.has(a.value,t)){const e=Reflect.get(a.value,t);return"function"==typeof e?e.bind(a.value):e}},has(e,t){if(Reflect.has(e,t))return!0;if("symbol"==typeof t||t.startsWith("$")||t.startsWith("__"))return!1;for(const a of n)if(a.value&&Reflect.has(a.value,t))return!0;return!1},set(e,t,a){if(Reflect.has(e,t))return Reflect.set(e,t,a);if("symbol"==typeof t||t.startsWith("$")||t.startsWith("__"))return!1;for(const i of n)if(i.value&&Reflect.has(i.value,t))return Reflect.set(i.value,t,a);return!1},getOwnPropertyDescriptor(e,t){var a,i;const r=Reflect.getOwnPropertyDescriptor(e,t);if(r)return r;if("symbol"!=typeof t&&!t.startsWith("$")&&!t.startsWith("__")){for(const e of n){if(!e.value)continue;const n=null!=(i=BJ(e.value,t))?i:"_"in e.value?BJ(null==(a=e.value._)?void 0:a.setupState,t):void 0;if(n)return n}for(const e of n){const n=e.value&&e.value[LJ];if(!n)continue;const a=n.slice();for(;a.length;){const e=a.shift(),n=BJ(e.value,t);if(n)return n;const i=e.value&&e.value[LJ];i&&a.push(...i)}}}}})}const VJ=AF({...RJ(),...UL(wJ(),["inline"])},"VCheckbox"),XJ=DF()({name:"VCheckbox",inheritAttrs:!1,props:VJ(),emits:{"update:modelValue":e=>!0,"update:focused":e=>!0},setup(e,t){let{attrs:n,slots:a}=t;const i=qF(e,"modelValue"),{isFocused:r,focus:o,blur:s}=EJ(e),l=an(),u=Pa();return GF(()=>{const[t,c]=GL(n),d=DJ.filterProps(e),h=kJ.filterProps(e);return bo(DJ,Io({ref:l,class:["v-checkbox",e.class]},t,d,{modelValue:i.value,"onUpdate:modelValue":e=>i.value=e,id:e.id||"checkbox-".concat(u),focused:r.value,style:e.style}),{...a,default:e=>{let{id:t,messagesId:n,isDisabled:r,isReadonly:l,isValid:u}=e;return bo(kJ,Io(h,{id:t.value,"aria-describedby":n.value,disabled:r.value,readonly:l.value},c,{error:!1===u.value,modelValue:i.value,"onUpdate:modelValue":e=>i.value=e,onFocus:o,onBlur:s}),a)}})}),FJ({},l)}});function jJ(e,t){return(null==t?void 0:t[e?"scrollWidth":"scrollHeight"])||0}function UJ(e,t,n){if(!n)return 0;const{scrollLeft:a,offsetWidth:i,scrollWidth:r}=n;return e?t?r-i+a:a:n.scrollTop}function HJ(e,t){return(null==t?void 0:t[e?"offsetWidth":"offsetHeight"])||0}function zJ(e,t){return(null==t?void 0:t[e?"offsetLeft":"offsetTop"])||0}const KJ=Symbol.for("vuetify:v-slide-group"),WJ=AF({centerActive:Boolean,contentClass:null,direction:{type:String,default:"horizontal"},symbol:{type:null,default:KJ},nextIcon:{type:zV,default:"$next"},prevIcon:{type:zV,default:"$prev"},showArrows:{type:[Boolean,String],validator:e=>"boolean"==typeof e||["always","desktop","mobile"].includes(e)},...EF(),...DV({mobile:null}),...Yq(),...oY({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),GJ=DF()({name:"VSlideGroup",props:WJ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isRtl:a}=sV(),{displayClasses:i,mobile:r}=LV(e),o=uY(e,e.symbol),s=rn(!1),l=rn(0),u=rn(0),c=rn(0),d=Zo(()=>"horizontal"===e.direction),{resizeRef:h,contentRect:p}=uX(),{resizeRef:f,contentRect:m}=uX(),v=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=nr(BV),{isRtl:n}=sV();if(!t)throw new Error("[Vuetify] Could not find injected goto instance");const a={...t,rtl:gn(()=>t.rtl.value||n.value)};async function i(t,n){return jV(t,tB(e,n),!1,a)}return i.horizontal=async(t,n)=>jV(t,tB(e,n),!0,a),i}(),g=Zo(()=>({container:h.el,duration:200,easing:"easeOutQuart"})),y=Zo(()=>o.selected.value.length?o.items.value.findIndex(e=>e.id===o.selected.value[0]):-1),b=Zo(()=>o.selected.value.length?o.items.value.findIndex(e=>e.id===o.selected.value[o.selected.value.length-1]):-1);if(yL){let t=-1;Mr(()=>[o.selected.value,p.value,m.value,d.value],()=>{cancelAnimationFrame(t),t=requestAnimationFrame(()=>{if(p.value&&m.value){const e=d.value?"width":"height";u.value=p.value[e],c.value=m.value[e],s.value=u.value+1<c.value}if(y.value>=0&&f.el){w(f.el.children[b.value],e.centerActive)}})})}const _=rn(!1);function w(e,t){let n=0;n=t?function(e){let{selectedElement:t,containerElement:n,isHorizontal:a}=e;const i=HJ(a,n);return zJ(a,t)-i/2+HJ(a,t)/2}({containerElement:h.el,isHorizontal:d.value,selectedElement:e}):function(e){let{selectedElement:t,containerElement:n,isRtl:a,isHorizontal:i}=e;const r=HJ(i,n),o=UJ(i,a,n),s=HJ(i,t),l=zJ(i,t),u=.4*s;return o>l?l-u:o+r<l+s?l-r+s+u:o}({containerElement:h.el,isHorizontal:d.value,isRtl:a.value,selectedElement:e}),k(n)}function k(e){if(!yL||!h.el)return;const t=HJ(d.value,h.el),n=UJ(d.value,a.value,h.el);
5091if(!(jJ(d.value,h.el)<=t||Math.abs(e-n)<16)){if(d.value&&a.value&&h.el){const{scrollWidth:t,offsetWidth:n}=h.el;e=t-n-e}d.value?v.horizontal(e,g.value):v(e,g.value)}}function C(e){const{scrollTop:t,scrollLeft:n}=e.target;l.value=d.value?n:t}function S(e){if(_.value=!0,s.value&&f.el)for(const t of e.composedPath())for(const e of f.el.children)if(e===t)return void w(e)}function T(e){_.value=!1}let A=!1;function E(e){var t;A||_.value||e.relatedTarget&&(null==(t=f.el)?void 0:t.contains(e.relatedTarget))||P(),A=!1}function I(){A=!0}function x(e){function t(t){e.preventDefault(),P(t)}f.el&&(d.value?"ArrowRight"===e.key?t(a.value?"prev":"next"):"ArrowLeft"===e.key&&t(a.value?"next":"prev"):"ArrowDown"===e.key?t("next"):"ArrowUp"===e.key&&t("prev"),"Home"===e.key?t("first"):"End"===e.key&&t("last"))}function N(e,t){if(!e)return;let n=e;do{n=null==n?void 0:n["next"===t?"nextElementSibling":"previousElementSibling"]}while(null==n?void 0:n.hasAttribute("disabled"));return n}function P(e){if(!f.el)return;let t;if(e)if("next"===e){if(t=N(f.el.querySelector(":focus"),e),!t)return P("first")}else if("prev"===e){if(t=N(f.el.querySelector(":focus"),e),!t)return P("last")}else"first"===e?(t=f.el.firstElementChild,(null==t?void 0:t.hasAttribute("disabled"))&&(t=N(t,"next"))):"last"===e&&(t=f.el.lastElementChild,(null==t?void 0:t.hasAttribute("disabled"))&&(t=N(t,"prev")));else{t=fB(f.el)[0]}t&&t.focus({preventScroll:!0})}function M(e){const t=d.value&&a.value?-1:1,n=("prev"===e?-t:t)*u.value;let i=l.value+n;if(d.value&&a.value&&h.el){const{scrollWidth:e,offsetWidth:t}=h.el;i+=e-t}k(i)}const O=Zo(()=>({next:o.next,prev:o.prev,select:o.select,isSelected:o.isSelected})),R=Zo(()=>s.value||Math.abs(l.value)>0),D=Zo(()=>{switch(e.showArrows){case"always":return!0;case"desktop":return!r.value;case!0:return R.value;case"mobile":return r.value||R.value;default:return!r.value&&R.value}}),L=Zo(()=>Math.abs(l.value)>1),B=Zo(()=>{if(!h.value||!R.value)return!1;const e=jJ(d.value,h.el),t=function(e,t){return(null==t?void 0:t[e?"clientWidth":"clientHeight"])||0}(d.value,h.el);return e-t-Math.abs(l.value)>1});return GF(()=>bo(e.tag,{class:ne(["v-slide-group",{"v-slide-group--vertical":!d.value,"v-slide-group--has-affixes":D.value,"v-slide-group--is-overflowing":s.value},i.value,e.class]),style:Y(e.style),tabindex:_.value||o.selected.value.length?-1:0,onFocus:E},{default:()=>{var t,i,r,o,s;return[D.value&&yo("div",{key:"prev",class:ne(["v-slide-group__prev",{"v-slide-group__prev--disabled":!L.value}]),onMousedown:I,onClick:()=>L.value&&M("prev")},[null!=(i=null==(t=n.prev)?void 0:t.call(n,O.value))?i:bo(d$,null,{default:()=>[bo(yY,{icon:a.value?e.nextIcon:e.prevIcon},null)]})]),yo("div",{key:"container",ref:h,class:ne(["v-slide-group__container",e.contentClass]),onScroll:C},[yo("div",{ref:f,class:"v-slide-group__content",onFocusin:S,onFocusout:T,onKeydown:x},[null==(r=n.default)?void 0:r.call(n,O.value)])]),D.value&&yo("div",{key:"next",class:ne(["v-slide-group__next",{"v-slide-group__next--disabled":!B.value}]),onMousedown:I,onClick:()=>B.value&&M("next")},[null!=(s=null==(o=n.next)?void 0:o.call(n,O.value))?s:bo(d$,null,{default:()=>[bo(yY,{icon:a.value?e.prevIcon:e.nextIcon},null)]})])]}})),{selected:o.selected,scrollTo:M,scrollOffset:l,focus:P,hasPrev:L,hasNext:B}}}),qJ=Symbol.for("vuetify:v-chip-group"),$J=AF({baseColor:String,column:Boolean,filter:Boolean,valueComparator:{type:Function,default:xL},...WJ(),...EF(),...oY({selectedClass:"v-chip--selected"}),...Yq(),...ZV(),...nY({variant:"tonal"})},"VChipGroup"),YJ=DF()({name:"VChipGroup",props:$J(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:a}=sX(e),{isSelected:i,select:r,next:o,prev:s,selected:l}=uY(e,qJ);return MF({VChip:{baseColor:gn(()=>e.baseColor),color:gn(()=>e.color),disabled:gn(()=>e.disabled),filter:gn(()=>e.filter),variant:gn(()=>e.variant)}}),GF(()=>{const t=GJ.filterProps(e);return bo(GJ,Io(t,{class:["v-chip-group",{"v-chip-group--column":e.column},a.value,e.class],style:e.style}),{default:()=>{var e;return[null==(e=n.default)?void 0:e.call(n,{isSelected:i,select:r,next:o,prev:s,selected:l.value})]}})}),{}}}),JJ=AF({activeClass:String,appendAvatar:String,appendIcon:zV,baseColor:String,closable:Boolean,closeIcon:{type:zV,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:zV,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0}
5091,pill:Boolean,prependAvatar:String,prependIcon:zV,ripple:{type:[Boolean,Object],default:!0},text:{type:[String,Number,Boolean],default:void 0},modelValue:{type:Boolean,default:!0},onClick:dB(),onClickOnce:dB(),...X$(),...EF(),...Q$(),...U$(),...sY(),...M$(),...LY(),...mY(),...Yq({tag:"span"}),...ZV(),...nY({variant:"tonal"})},"VChip"),QJ=DF()({name:"VChip",directives:{vRipple:eJ},props:JJ(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0,"group:selected":e=>!0,click:e=>!0},setup(e,t){let{attrs:n,emit:a,slots:i}=t;const{t:r}=rV(),{borderClasses:o}=j$(e),{densityClasses:s}=Z$(e),{elevationClasses:l}=H$(e),{roundedClasses:u}=O$(e),{sizeClasses:c}=vY(e),{themeClasses:d}=sX(e),h=qF(e,"modelValue"),p=lY(e,qJ,!1),f=lY(e,KJ,!1),m=DY(e,n),v=gn(()=>!1!==e.link&&m.isLink.value),g=Zo(()=>!e.disabled&&!1!==e.link&&(!!p||e.link||m.isClickable.value)),y=gn(()=>({"aria-label":r(e.closeLabel),disabled:e.disabled,onClick(e){e.preventDefault(),e.stopPropagation(),h.value=!1,a("click:close",e)}}));Mr(h,e=>{e?(null==p||p.register(),null==f||f.register()):(null==p||p.unregister(),null==f||f.unregister())});const{colorClasses:b,colorStyles:_,variantClasses:w}=aY(()=>{var t;return{color:(!p||p.isSelected.value)&&null!=(t=e.color)?t:e.baseColor,variant:e.variant}});function k(e){var t;a("click",e),g.value&&(null==(t=m.navigate)||t.call(m,e),null==p||p.toggle())}function C(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),k(e))}return()=>{var t;const n=m.isLink.value?"a":e.tag,a=!(!e.appendIcon&&!e.appendAvatar),r=!(!a&&!i.append),f=!(!i.close&&!e.closable),S=!(!i.filter&&!e.filter)&&p,T=!(!e.prependIcon&&!e.prependAvatar),A=!(!T&&!i.prepend);return h.value&&ta(bo(n,Io(m.linkProps,{class:["v-chip",{"v-chip--disabled":e.disabled,"v-chip--label":e.label,"v-chip--link":g.value,"v-chip--filter":S,"v-chip--pill":e.pill,["".concat(e.activeClass)]:e.activeClass&&(null==(t=m.isActive)?void 0:t.value)},d.value,o.value,b.value,s.value,l.value,u.value,c.value,w.value,null==p?void 0:p.selectedClass.value,e.class],style:[_.value,e.style],disabled:e.disabled||void 0,draggable:e.draggable,tabindex:g.value?0:void 0,onClick:k,onKeydown:g.value&&!v.value&&C}),{default:()=>{var t,n;return[tY(g.value,"v-chip"),S&&bo(k$,{key:"filter"},{default:()=>[ta(yo("div",{class:"v-chip__filter"},[i.filter?bo(S$,{key:"filter-defaults",disabled:!e.filterIcon,defaults:{VIcon:{icon:e.filterIcon}}},i.filter):bo(yY,{key:"filter-icon",icon:e.filterIcon},null)]),[[Ls,p.isSelected.value]])]}),A&&yo("div",{key:"prepend",class:"v-chip__prepend"},[i.prepend?bo(S$,{key:"prepend-defaults",disabled:!T,defaults:{VAvatar:{image:e.prependAvatar,start:!0},VIcon:{icon:e.prependIcon,start:!0}}},i.prepend):yo(eo,null,[e.prependIcon&&bo(yY,{key:"prepend-icon",icon:e.prependIcon,start:!0},null),e.prependAvatar&&bo(hJ,{key:"prepend-avatar",image:e.prependAvatar,start:!0},null)])]),yo("div",{class:"v-chip__content","data-no-activator":""},[null!=(n=null==(t=i.default)?void 0:t.call(i,{isSelected:null==p?void 0:p.isSelected.value,selectedClass:null==p?void 0:p.selectedClass.value,select:null==p?void 0:p.select,toggle:null==p?void 0:p.toggle,value:null==p?void 0:p.value.value,disabled:e.disabled}))?n:Te(e.text)]),r&&yo("div",{key:"append",class:"v-chip__append"},[i.append?bo(S$,{key:"append-defaults",disabled:!a,defaults:{VAvatar:{end:!0,image:e.appendAvatar},VIcon:{end:!0,icon:e.appendIcon}}},i.append):yo(eo,null,[e.appendIcon&&bo(yY,{key:"append-icon",end:!0,icon:e.appendIcon},null),e.appendAvatar&&bo(hJ,{key:"append-avatar",end:!0,image:e.appendAvatar},null)])]),f&&yo("button",Io({key:"close",class:"v-chip__close",type:"button","data-testid":"close-chip"},y.value),[i.close?bo(S$,{key:"close-defaults",defaults:{VIcon:{icon:e.closeIcon,size:"x-small"}}},i.close):bo(yY,{key:"close-icon",icon:e.closeIcon,size:"x-small"},null)])]}}),[[eJ,g.value&&e.ripple,null]])}}}),ZJ=AF({color:String,inset:Boolean,length:[Number,String],opacity:[Number,String],thickness:[Number,String],vertical:Boolean,...EF(),...ZV()},"VDivider"),eQ=DF()({name:"VDivider",props:ZJ(),setup(e,t){let{attrs:n,slots:a}=t;const{themeClasses:i}=sX(e),{textColorClasses:r,textColorStyles:o}=N$(()=>e.color),s=Zo(()=>{const t={};return e.length&&(t[e.vertical?"height":"width"]=OL(e.length)),e.thickness&&(t[e.vertical?"borderRightWidth":"borderTopWidth"]=OL(e.thickness)),t});return GF(()=>{const t=yo("hr",{class:ne([{"v-divider":!0,"v-divider--inset":e.inset,"v-divider--vertical":e.vertical},i.value,r.value,e.class]),style:Y([s.value,o.value,{"--v-border-opacity":e.opacity},e.style]),"aria-orientation":n.role&&"separator"!==n.role?void 0:e.vertical?"vertical":"horizontal",role:"".concat(n.role||"separator")},null);return a.default?yo("div",{class:ne(["v-divider__wrapper",{"v-divider__wrapper--vertical":e.vertical,"v-divider__wrapper--inset":e.inset}])},[t,yo("div",{class:"v-divider__content"},[a.default()]),t]):t}),{}}}),tQ=Symbol.for("vuetify:list");function nQ(){let{filterable:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{filterable:!1};const t=nr(tQ,{filterable:!1,hasPrepend:rn(!1),updateHasPrepend:()=>null}),n={filterable:t.filterable||e,hasPrepend:rn(!1),updateHasPrepend:e=>{e&&(n.hasPrepend.value=e)}};return tr(tQ,n),t}function aQ(){return nr(tQ,null)}const iQ=e=>{const t={activate:t=>{let{id:n,value:a,activated:i}=t;return n=Qt(n),e&&!a&&1===i.size&&i.has(n)||(a?i.add(n):i.delete(n)),i},in:(e,n,a)=>{let i=new Set;if(null!=e)for(const r of qL(e))i=t.activate({id:r,value:!0,activated:new Set(i),children:n,parents:a});return i},out:e=>Array.from(e)};return t},rQ=e=>{const t=iQ(e);return{activate:e=>{let{activated:n,id:a,...i}=e;a=Qt(a);const r=n.has(a)?new Set([a]):new Set;return t.activate({...i,id:a,activated:r})},in:(e,n,a)=>{let i=new Set;if(null!=e){const r=qL(e);r.length&&(i=t.in(r.slice(0,1),n,a))}return i},out:(e,n,a)=>t.out(e,n,a)}},oQ={open:e=>{let{id:t,value:n,opened:a,parents:i}=e;if(n){const e=new Set;e.add(t);let n=i.get(t);for(;null!=n;)e.add(n),n=i.get(n);return e}return a.delete(t),a}
5091,select:()=>null},sQ={open:e=>{let{id:t,value:n,opened:a,parents:i}=e;if(n){let e=i.get(t);for(a.add(t);null!=e&&e!==t;)a.add(e),e=i.get(e);return a}return a.delete(t),a},select:()=>null},lQ={open:sQ.open,select:e=>{let{id:t,value:n,opened:a,parents:i}=e;if(!n)return a;const r=[];let o=i.get(t);for(;null!=o;)r.push(o),o=i.get(o);return new Set(r)}},uQ=e=>{const t={select:t=>{let{id:n,value:a,selected:i}=t;if(n=Qt(n),e&&!a){const e=Array.from(i.entries()).reduce((e,t)=>{let[n,a]=t;return"on"===a&&e.push(n),e},[]);if(1===e.length&&e[0]===n)return i}return i.set(n,a?"on":"off"),i},in:(e,n,a,i)=>{const r=new Map;for(const o of e||[])t.select({id:o,value:!0,selected:r,children:n,parents:a,disabled:i});return r},out:e=>{const t=[];for(const[n,a]of e.entries())"on"===a&&t.push(n);return t}};return t},cQ=e=>{const t=uQ(e);return{select:e=>{let{selected:n,id:a,...i}=e;a=Qt(a);const r=n.has(a)?new Map([[a,n.get(a)]]):new Map;return t.select({...i,id:a,selected:r})},in:(e,n,a,i)=>(null==e?void 0:e.length)?t.in(e.slice(0,1),n,a,i):new Map,out:(e,n,a)=>t.out(e,n,a)}},dQ=e=>{const t={select:t=>{let{id:n,value:a,selected:i,children:r,parents:o,disabled:s}=t;n=Qt(n);const l=new Map(i),u=[n];for(;u.length;){const e=u.shift();s.has(e)||i.set(Qt(e),a?"on":"off"),r.has(e)&&u.push(...r.get(e))}let c=Qt(o.get(n));for(;c;){let e=!0,t=!0;for(const n of r.get(c)){const a=Qt(n);if(!s.has(a)&&("on"!==i.get(a)&&(e=!1),i.has(a)&&"off"!==i.get(a)&&(t=!1),!e&&!t))break}i.set(c,e?"on":t?"off":"indeterminate"),c=Qt(o.get(c))}if(e&&!a){if(0===Array.from(i.entries()).reduce((e,t)=>{let[n,a]=t;return"on"===a&&e.push(n),e},[]).length)return l}return i},in:(e,n,a,i)=>{let r=new Map;for(const o of e||[])r=t.select({id:o,value:!0,selected:r,children:n,parents:a,disabled:i});return r},out:(e,t)=>{const n=[];for(const[a,i]of e.entries())"on"!==i||t.has(a)||n.push(a);return n}};return t},hQ=Symbol.for("vuetify:nested"),pQ={id:rn(),root:{register:()=>null,unregister:()=>null,children:an(new Map),parents:an(new Map),disabled:an(new Set),open:()=>null,openOnSelect:()=>null,activate:()=>null,select:()=>null,activatable:an(!1),selectable:an(!1),opened:an(new Set),activated:an(new Set),selected:an(new Map),selectedValues:an([]),getPath:()=>[]}},fQ=AF({activatable:Boolean,selectable:Boolean,activeStrategy:[String,Function,Object],selectStrategy:[String,Function,Object],openStrategy:[String,Object],opened:null,activated:null,selected:null,mandatory:Boolean},"nested"),mQ=e=>{let t=!1;const n=rn(new Map),a=rn(new Map),i=rn(new Set),r=qF(e,"opened",e.opened,e=>new Set(Array.isArray(e)?e.map(e=>Qt(e)):e),e=>[...e.values()]),o=Zo(()=>{if("object"==typeof e.activeStrategy)return e.activeStrategy;if("function"==typeof e.activeStrategy)return e.activeStrategy(e.mandatory);switch(e.activeStrategy){case"leaf":return(e=>{const t=iQ(e);return{activate:e=>{let{id:n,activated:a,children:i,...r}=e;return n=Qt(n),i.has(n)?a:t.activate({id:n,activated:a,children:i,...r})},in:t.in,out:t.out}})(e.mandatory);case"single-leaf":return(e=>{const t=rQ(e);return{activate:e=>{let{id:n,activated:a,children:i,...r}=e;return n=Qt(n),i.has(n)?a:t.activate({id:n,activated:a,children:i,...r})},in:t.in,out:t.out}})(e.mandatory);case"independent":return iQ(e.mandatory);default:return rQ(e.mandatory)}}),s=Zo(()=>{if("object"==typeof e.selectStrategy)return e.selectStrategy;if("function"==typeof e.selectStrategy)return e.selectStrategy(e.mandatory);switch(e.selectStrategy){case"single-leaf":return(e=>{const t=cQ(e);return{select:e=>{let{id:n,selected:a,children:i,...r}=e;return n=Qt(n),i.has(n)?a:t.select({id:n,selected:a,children:i,...r})},in:t.in,out:t.out}})(e.mandatory);case"leaf":return(e=>{const t=uQ(e);return{select:e=>{let{id:n,selected:a,children:i,...r}=e;return n=Qt(n),i.has(n)?a:t.select({id:n,selected:a,children:i,...r})},in:t.in,out:t.out}})(e.mandatory);case"independent":return uQ(e.mandatory);case"single-independent":return cQ(e.mandatory);case"trunk":return(e=>{const t=dQ(e);return{select:t.select,in:t.in,out:(e,t,n)=>{const a=[];for(const[i,r]of e.entries())if("on"===r){if(n.has(i)){const t=n.get(i);if("on"===e.get(t))continue}a.push(i)}return a}}})(e.mandatory);default:return dQ(e.mandatory)}}),l=Zo(()=>
5091{if("object"==typeof e.openStrategy)return e.openStrategy;switch(e.openStrategy){case"list":return lQ;case"single":return oQ;default:return sQ}}),u=qF(e,"activated",e.activated,e=>o.value.in(e,n.value,a.value),e=>o.value.out(e,n.value,a.value)),c=qF(e,"selected",e.selected,e=>s.value.in(e,n.value,a.value,i.value),e=>s.value.out(e,n.value,a.value));function d(e){const t=[];let n=Qt(e);for(;void 0!==n;)t.unshift(n),n=a.value.get(n);return t}mi(()=>{t=!0});const h=IF("nested"),p=new Set,f={id:rn(),root:{opened:r,activatable:gn(()=>e.activatable),selectable:gn(()=>e.selectable),activated:u,selected:c,selectedValues:Zo(()=>{const e=[];for(const[t,n]of c.value.entries())"on"===n&&e.push(t);return e}),register:(e,t,r,o)=>{if(p.has(e))return d(e).map(String).join(" -> "),void d(t).concat(e).map(String).join(" -> ");p.add(e),t&&e!==t&&a.value.set(e,t),r&&i.value.add(e),o&&n.value.set(e,[]),null!=t&&n.value.set(t,[...n.value.get(t)||[],e])},unregister:e=>{var r;if(t)return;p.delete(e),n.value.delete(e),i.value.delete(e);const o=a.value.get(e);if(o){const t=null!=(r=n.value.get(o))?r:[];n.value.set(o,t.filter(t=>t!==e))}a.value.delete(e)},open:(e,t,i)=>{h.emit("click:open",{id:e,value:t,path:d(e),event:i});const o=l.value.open({id:e,value:t,opened:new Set(r.value),children:n.value,parents:a.value,event:i});o&&(r.value=o)},openOnSelect:(e,t,i)=>{const o=l.value.select({id:e,value:t,selected:new Map(c.value),opened:new Set(r.value),children:n.value,parents:a.value,event:i});o&&(r.value=o)},select:(e,t,r)=>{h.emit("click:select",{id:e,value:t,path:d(e),event:r});const o=s.value.select({id:e,value:t,selected:new Map(c.value),children:n.value,parents:a.value,disabled:i.value,event:r});o&&(c.value=o),f.root.openOnSelect(e,t,r)},activate:(t,i,r)=>{if(!e.activatable)return f.root.select(t,!0,r);h.emit("click:activate",{id:t,value:i,path:d(t),event:r});const s=o.value.activate({id:t,value:i,activated:new Set(u.value),children:n.value,parents:a.value,event:r});if(s.size!==u.value.size)u.value=s;else{for(const e of s)if(!u.value.has(e))return void(u.value=s);for(const e of u.value)if(!s.has(e))return void(u.value=s)}},children:n,parents:a,disabled:i,getPath:d}};return tr(hQ,f),f.root},vQ=(e,t,n)=>{const a=nr(hQ,pQ),i=Symbol("nested item"),r=Zo(()=>{const t=Qt(un(e));return void 0!==t?t:i}),o={...a,id:r,open:(e,t)=>a.root.open(r.value,e,t),openOnSelect:(e,t)=>a.root.openOnSelect(r.value,e,t),isOpen:Zo(()=>a.root.opened.value.has(r.value)),parent:Zo(()=>a.root.parents.value.get(r.value)),activate:(e,t)=>a.root.activate(r.value,e,t),isActivated:Zo(()=>a.root.activated.value.has(r.value)),select:(e,t)=>a.root.select(r.value,e,t),isSelected:Zo(()=>"on"===a.root.selected.value.get(r.value)),isIndeterminate:Zo(()=>"indeterminate"===a.root.selected.value.get(r.value)),isLeaf:Zo(()=>!a.root.children.value.get(r.value)),isGroupActivator:a.isGroupActivator};return di(()=>{a.isGroupActivator||a.root.register(r.value,a.id.value,un(t),n)}),mi(()=>{a.isGroupActivator||a.root.unregister(r.value)}),n&&tr(hQ,o),o},gQ=RF({name:"VListGroupActivator",setup(e,t){let{slots:n}=t;return(()=>{const e=nr(hQ,pQ);tr(hQ,{...e,isGroupActivator:!0})})(),()=>{var e;return null==(e=n.default)?void 0:e.call(n)}}}),yQ=AF({activeColor:String,baseColor:String,color:String,collapseIcon:{type:zV,default:"$collapse"},disabled:Boolean,expandIcon:{type:zV,default:"$expand"},rawId:[String,Number],prependIcon:zV,appendIcon:zV,fluid:Boolean,subgroup:Boolean,title:String,value:null,...EF(),...Yq()},"VListGroup"),bQ=DF()({name:"VListGroup",props:yQ(),setup(e,t){let{slots:n}=t;const{isOpen:a,open:i,id:r}=vQ(()=>e.value,()=>e.disabled,!0),o=Zo(()=>{var t;return"v-list-group--id-".concat(String(null!=(t=e.rawId)?t:r.value))}),s=aQ(),{isBooted:l}=q$();function u(e){var t;["INPUT","TEXTAREA"].includes(null==(t=e.target)?void 0:t.tagName)||i(!a.value,e)}const c=Zo(()=>({onClick:u,class:"v-list-group__header",id:o.value})),d=Zo(()=>a.value?e.collapseIcon:e.expandIcon),h=Zo(()=>({VListItem:{activeColor:e.activeColor,baseColor:e.baseColor,color:e.color,prependIcon:e.prependIcon||e.subgroup&&d.value,appendIcon:e.appendIcon||!e.subgroup&&d.value,title:e.title,value:e.value}}));return GF(()=>bo(e.tag,{class:ne(["v-list-group",{"v-list-group--prepend":null==s?void 0:s.hasPrepend.value,"v-list-group--fluid":e.fluid,"v-list-group--subgroup":e.subgroup,"v-list-group--open":a.value},e.class]),style:Y(e.style)}
5091,{default:()=>[n.activator&&bo(S$,{defaults:h.value},{default:()=>[bo(gQ,null,{default:()=>[n.activator({props:c.value,isOpen:a.value})]})]}),bo(D$,{transition:{component:w$},disabled:!l.value},{default:()=>{var e;return[ta(yo("div",{class:"v-list-group__items",role:"group","aria-labelledby":o.value},[null==(e=n.default)?void 0:e.call(n)]),[[Ls,a.value]])]}})]})),{isOpen:a}}}),_Q=AF({opacity:[Number,String],...EF(),...Yq()},"VListItemSubtitle"),wQ=DF()({name:"VListItemSubtitle",props:_Q(),setup(e,t){let{slots:n}=t;return GF(()=>bo(e.tag,{class:ne(["v-list-item-subtitle",e.class]),style:Y([{"--v-list-item-subtitle-opacity":e.opacity},e.style])},n)),{}}}),kQ=LF("v-list-item-title"),CQ=AF({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:zV,baseColor:String,disabled:Boolean,lines:[Boolean,String],link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:zV,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,subtitle:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},value:null,onClick:dB(),onClickOnce:dB(),...X$(),...EF(),...Q$(),...T$(),...U$(),...M$(),...LY(),...Yq(),...ZV(),...nY({variant:"text"})},"VListItem"),SQ=DF()({name:"VListItem",directives:{vRipple:eJ},props:CQ(),emits:{click:e=>!0},setup(e,t){let{attrs:n,slots:a,emit:i}=t;const r=DY(e,n),o=Zo(()=>void 0===e.value?r.href.value:e.value),{activate:s,isActivated:l,select:u,isOpen:c,isSelected:d,isIndeterminate:h,isGroupActivator:p,root:f,parent:m,openOnSelect:v,id:g}=vQ(o,()=>e.disabled,!1),y=aQ(),b=Zo(()=>{var t;return!1!==e.active&&(e.active||(null==(t=r.isActive)?void 0:t.value)||(f.activatable.value?l.value:d.value))}),_=gn(()=>!1!==e.link&&r.isLink.value),w=Zo(()=>!!y&&(f.selectable.value||f.activatable.value||null!=e.value)),k=Zo(()=>!e.disabled&&!1!==e.link&&(e.link||r.isClickable.value||w.value)),C=Zo(()=>y?w.value?"option":"listitem":void 0),S=Zo(()=>{if(w.value)return f.activatable.value?l.value:f.selectable.value?d.value:b.value}),T=gn(()=>e.rounded||e.nav),A=gn(()=>{var t;return null!=(t=e.color)?t:e.activeColor}),E=gn(()=>{var t;return{color:b.value&&null!=(t=A.value)?t:e.baseColor,variant:e.variant}});function I(){null!=m.value&&f.open(m.value,!0),v(!0)}Mr(()=>{var e;return null==(e=r.isActive)?void 0:e.value},e=>{e&&I()}),di(()=>{var e;(null==(e=r.isActive)?void 0:e.value)&&I()});const{themeClasses:x}=sX(e),{borderClasses:N}=j$(e),{colorClasses:P,colorStyles:M,variantClasses:O}=aY(E),{densityClasses:R}=Z$(e),{dimensionStyles:D}=A$(e),{elevationClasses:L}
5091=H$(e),{roundedClasses:B}=O$(T),F=gn(()=>e.lines?"v-list-item--".concat(e.lines,"-line"):void 0),V=gn(()=>void 0!==e.ripple&&e.ripple&&(null==y?void 0:y.filterable)?{keys:["Enter"]}:e.ripple),X=Zo(()=>({isActive:b.value,select:u,isOpen:c.value,isSelected:d.value,isIndeterminate:h.value}));function j(t){var n,a;i("click",t),["INPUT","TEXTAREA"].includes(null==(n=t.target)?void 0:n.tagName)||k.value&&(null==(a=r.navigate)||a.call(r,t),p||(f.activatable.value?s(!l.value,t):f.selectable.value?u(!d.value,t):null==e.value||_.value||u(!d.value,t)))}function U(e){const t=e.target;["INPUT","TEXTAREA"].includes(t.tagName)||("Enter"===e.key||" "===e.key&&!(null==y?void 0:y.filterable))&&(e.preventDefault(),e.stopPropagation(),e.target.dispatchEvent(new MouseEvent("click",e)))}return GF(()=>{const t=_.value?"a":e.tag,n=a.title||null!=e.title,i=a.subtitle||null!=e.subtitle,o=!(!e.appendAvatar&&!e.appendIcon),s=!(!o&&!a.append),l=!(!e.prependAvatar&&!e.prependIcon),u=!(!l&&!a.prepend);return null==y||y.updateHasPrepend(u),e.activeColor&&qB(0,["color","base-color"]),ta(bo(t,Io(r.linkProps,{class:["v-list-item",{"v-list-item--active":b.value,"v-list-item--disabled":e.disabled,"v-list-item--link":k.value,"v-list-item--nav":e.nav,"v-list-item--prepend":!u&&(null==y?void 0:y.hasPrepend.value),"v-list-item--slim":e.slim,["".concat(e.activeClass)]:e.activeClass&&b.value},x.value,N.value,P.value,R.value,L.value,F.value,B.value,O.value,e.class],style:[M.value,D.value,e.style],tabindex:k.value?y?-2:0:void 0,"aria-selected":S.value,role:C.value,onClick:j,onKeydown:k.value&&!_.value&&U}),{default:()=>{var t;return[tY(k.value||b.value,"v-list-item"),u&&yo("div",{key:"prepend",class:"v-list-item__prepend"},[a.prepend?bo(S$,{key:"prepend-defaults",disabled:!l,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var e;return[null==(e=a.prepend)?void 0:e.call(a,X.value)]}}):yo(eo,null,[e.prependAvatar&&bo(hJ,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&bo(yY,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)]),yo("div",{class:"v-list-item__spacer"},null)]),yo("div",{class:"v-list-item__content","data-no-activator":""},[n&&bo(kQ,{key:"title"},{default:()=>{var t,n;return[null!=(n=null==(t=a.title)?void 0:t.call(a,{title:e.title}))?n:Te(e.title)]}}),i&&bo(wQ,{key:"subtitle"},{default:()=>{var t,n;return[null!=(n=null==(t=a.subtitle)?void 0:t.call(a,{subtitle:e.subtitle}))?n:Te(e.subtitle)]}}),null==(t=a.default)?void 0:t.call(a,X.value)]),s&&yo("div",{key:"append",class:"v-list-item__append"},[a.append?bo(S$,{key:"append-defaults",disabled:!o,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var e;return[null==(e=a.append)?void 0:e.call(a,X.value)]}}):yo(eo,null,[e.appendIcon&&bo(yY,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&bo(hJ,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)]),yo("div",{class:"v-list-item__spacer"},null)])]}}),[[eJ,k.value&&V.value]])}),{activate:s,isActivated:l,isGroupActivator:p,isSelected:d,list:y,select:u,root:f,id:g,link:r}}}),TQ=AF({color:String,inset:Boolean,sticky:Boolean,title:String,...EF(),...Yq()},"VListSubheader"),AQ=DF()({name:"VListSubheader",props:TQ(),setup(e,t){let{slots:n}=t;const{textColorClasses:a,textColorStyles:i}=N$(()=>e.color);return GF(()=>{const t=!(!n.default&&!e.title);return bo(e.tag,{class:ne(["v-list-subheader",{"v-list-subheader--inset":e.inset,"v-list-subheader--sticky":e.sticky},a.value,e.class]),style:Y([{textColorStyles:i},e.style])},{default:()=>{var a,i;return[t&&yo("div",{class:"v-list-subheader__text"},[null!=(i=null==(a=n.default)?void 0:a.call(n))?i:e.title])]}})}),{}}}),EQ=AF({items:Array,returnObject:Boolean},"VListChildren"),IQ=DF()({name:"VListChildren",props:EQ(),setup(e,t){let{slots:n}=t;return nQ(),()=>{var t,a,i;return null!=(i=null==(t=n.default)?void 0:t.call(n))?i:null==(a=e.items)?void 0:a.map(t=>{var a,i,r,o;let{children:s,props:l,type:u,raw:c}=t;if("divider"===u)return null!=(i=null==(a=n.divider)?void 0:a.call(n,{props:l}
5091))?i:bo(eQ,l,null);if("subheader"===u)return null!=(o=null==(r=n.subheader)?void 0:r.call(n,{props:l}))?o:bo(AQ,l,null);const d={subtitle:n.subtitle?e=>{var t;return null==(t=n.subtitle)?void 0:t.call(n,{...e,item:c})}:void 0,prepend:n.prepend?e=>{var t;return null==(t=n.prepend)?void 0:t.call(n,{...e,item:c})}:void 0,append:n.append?e=>{var t;return null==(t=n.append)?void 0:t.call(n,{...e,item:c})}:void 0,title:n.title?e=>{var t;return null==(t=n.title)?void 0:t.call(n,{...e,item:c})}:void 0},h=bQ.filterProps(l);return s?bo(bQ,Io(h,{value:e.returnObject?c:null==l?void 0:l.value,rawId:null==l?void 0:l.value}),{activator:t=>{let{props:a}=t;const i=Io(l,a,{value:e.returnObject?c:l.value});return n.header?n.header({props:i}):bo(SQ,i,d)},default:()=>bo(IQ,{items:s,returnObject:e.returnObject},n)}):n.item?n.item({props:l}):bo(SQ,Io(l,{value:e.returnObject?c:l.value}),d)})}}}),xQ=AF({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},itemType:{type:[Boolean,String,Array,Function],default:"type"},returnObject:Boolean,valueComparator:Function},"list-items"),NQ=new Set(["item","divider","subheader"]);function PQ(e,t){var n;const a=PL(t,e.itemTitle,t),i=PL(t,e.itemValue,a),r=PL(t,e.itemChildren),o=!0===e.itemProps?"object"!=typeof t||null==t||Array.isArray(t)?void 0:"children"in t?UL(t,["children"]):t:PL(t,e.itemProps);let s=PL(t,e.itemType,"item");NQ.has(s)||(s="item");const l={title:a,value:i,...o};return{type:s,title:String(null!=(n=l.title)?n:""),value:l.value,props:l,children:"item"===s&&Array.isArray(r)?MQ(e,r):void 0,raw:t}}function MQ(e,t){const n=XL(e,PQ.neededProps),a=[];for(const i of t)a.push(PQ(n,i));return a}function OQ(e){const t=Zo(()=>MQ(e,e.items)),n=Zo(()=>t.value.some(e=>null===e.value)),a=rn(new Map),i=rn([]);return Nr(()=>{const e=t.value,n=new Map,r=[];for(let t=0;t<e.length;t++){const a=e[t];if(SB(a.value)||null===a.value){let e=n.get(a.value);e||(e=[],n.set(a.value,e)),e.push(a)}else r.push(a)}a.value=n,i.value=r}),{items:t,transformIn:function(r){const o=a.value,s=t.value,l=i.value,u=n.value,c=e.returnObject,d=!!e.valueComparator,h=e.valueComparator||xL,p=XL(e,PQ.neededProps),f=[];e:for(const e of r){if(!u&&null===e)continue;if(c&&"string"==typeof e){f.push(PQ(p,e));continue}const t=o.get(e);if(!d&&t)f.push(...t);else{for(const t of d?s:l)if(h(e,t.value)){f.push(t);continue e}f.push(PQ(p,e))}}return f},transformOut:function(t){return e.returnObject?t.map(e=>{let{raw:t}=e;return t}):t.map(e=>{let{value:t}=e;return t})}}}PQ.neededProps=["itemTitle","itemValue","itemChildren","itemProps","itemType"];const RQ=new Set(["item","divider","subheader"]);function DQ(e,t){const n=SB(t)?t:PL(t,e.itemTitle),a=SB(t)?t:PL(t,e.itemValue,void 0),i=PL(t,e.itemChildren),r=!0===e.itemProps?UL(t,["children"]):PL(t,e.itemProps);let o=PL(t,e.itemType,"item");RQ.has(o)||(o="item");const s={title:n,value:a,...r};return{type:o,title:s.title,value:s.value,props:s,children:"item"===o&&i?LQ(e,i):void 0,raw:t}}function LQ(e,t){const n=[];for(const a of t)n.push(DQ(e,a));return n}function BQ(e){return{items:Zo(()=>LQ(e,e.items))}}const FQ=AF({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,filterable:Boolean,expandIcon:zV,collapseIcon:zV,lines:{type:[Boolean,String],default:"one"},slim:Boolean,nav:Boolean,"onClick:open":dB(),"onClick:select":dB(),"onUpdate:opened":dB(),...fQ({selectStrategy:"single-leaf",openStrategy:"list"}),...X$(),...EF(),...Q$(),...T$(),...U$(),...xQ(),...M$(),...Yq(),...ZV(),...nY({variant:"text"})},"VList"),VQ=DF()({name:"VList",props:FQ(),emits:{"update:selected":e=>!0,"update:activated":e=>!0,"update:opened":e=>!0,"click:open":e=>!0,"click:activate":e=>!0,"click:select":e=>!0},setup(e,t){let{slots:n}=t;const{items:a}=BQ(e),{themeClasses:i}=sX(e),{backgroundColorClasses:r,backgroundColorStyles:o}=P$(()=>e.bgColor),{borderClasses:s}=j$(e),{densityClasses:l}=Z$(e),{dimensionStyles:u}=A$(e),{elevationClasses:c}
5091=H$(e),{roundedClasses:d}=O$(e),{children:h,open:p,parents:f,select:m,getPath:v}=mQ(e),g=gn(()=>e.lines?"v-list--".concat(e.lines,"-line"):void 0),y=gn(()=>e.activeColor),b=gn(()=>e.baseColor),_=gn(()=>e.color),w=gn(()=>e.selectable||e.activatable);nQ({filterable:e.filterable}),MF({VListGroup:{activeColor:y,baseColor:b,color:_,expandIcon:gn(()=>e.expandIcon),collapseIcon:gn(()=>e.collapseIcon)},VListItem:{activeClass:gn(()=>e.activeClass),activeColor:y,baseColor:b,color:_,density:gn(()=>e.density),disabled:gn(()=>e.disabled),lines:gn(()=>e.lines),nav:gn(()=>e.nav),slim:gn(()=>e.slim),variant:gn(()=>e.variant)}});const k=rn(!1),C=an();function S(e){k.value=!0}function T(e){k.value=!1}function A(e){var t;k.value||e.relatedTarget&&(null==(t=C.value)?void 0:t.contains(e.relatedTarget))||x()}function E(e){const t=e.target;if(C.value&&("INPUT"!==t.tagName||!["Home","End"].includes(e.key))&&"TEXTAREA"!==t.tagName){if("ArrowDown"===e.key)x("next");else if("ArrowUp"===e.key)x("prev");else if("Home"===e.key)x("first");else{if("End"!==e.key)return;x("last")}e.preventDefault()}}function I(e){k.value=!0}function x(e){if(C.value)return vB(C.value,e)}return GF(()=>bo(e.tag,{ref:C,class:ne(["v-list",{"v-list--disabled":e.disabled,"v-list--nav":e.nav,"v-list--slim":e.slim},i.value,r.value,s.value,l.value,c.value,g.value,d.value,e.class]),style:Y([o.value,u.value,e.style]),tabindex:e.disabled?-1:0,role:w.value?"listbox":"list","aria-activedescendant":void 0,onFocusin:S,onFocusout:T,onFocus:A,onKeydown:E,onMousedown:I},{default:()=>[bo(IQ,{items:a.value,returnObject:e.returnObject},n)]})),{open:p,select:m,focus:x,children:h,parents:f,getPath:v}}}),XQ=LF("v-list-img"),jQ=AF({start:Boolean,end:Boolean,...EF(),...Yq()},"VListItemAction"),UQ=DF()({name:"VListItemAction",props:jQ(),setup(e,t){let{slots:n}=t;return GF(()=>bo(e.tag,{class:ne(["v-list-item-action",{"v-list-item-action--start":e.start,"v-list-item-action--end":e.end},e.class]),style:Y(e.style)},n)),{}}}),HQ=AF({start:Boolean,end:Boolean,...EF(),...Yq()},"VListItemMedia"),zQ=DF()({name:"VListItemMedia",props:HQ(),setup(e,t){let{slots:n}=t;return GF(()=>bo(e.tag,{class:ne(["v-list-item-media",{"v-list-item-media--start":e.start,"v-list-item-media--end":e.end},e.class]),style:Y(e.style)},n)),{}}});function KQ(e,t){return{x:e.x+t.x,y:e.y+t.y}}function WQ(e,t){if("top"===e.side||"bottom"===e.side){const{side:n,align:a}=e;return KQ({x:"left"===a?0:"center"===a?t.width/2:"right"===a?t.width:a,y:"top"===n?0:"bottom"===n?t.height:n},t)}if("left"===e.side||"right"===e.side){const{side:n,align:a}=e;return KQ({x:"left"===n?0:"right"===n?t.width:n,y:"top"===a?0:"center"===a?t.height/2:"bottom"===a?t.height:a},t)}return KQ({x:t.width/2,y:t.height/2},t)}const GQ={static:function(){},connected:function(e,t,n){(Array.isArray(e.target.value)||function(e){for(;e;){if("fixed"===window.getComputedStyle(e).position)return!0;e=e.offsetParent}return!1}(e.target.value))&&Object.assign(n.value,{position:"fixed",top:0,[e.isRtl.value?"right":"left"]:0});const{preferredAnchor:a,preferredOrigin:i}=lB(()=>{const n=IB(t.location,e.isRtl.value),a="overlap"===t.origin?n:"auto"===t.origin?NB(n):IB(t.origin,e.isRtl.value);return n.side===a.side&&n.align===PB(a).align?{preferredAnchor:MB(n),preferredOrigin:MB(a)}:{preferredAnchor:n,preferredOrigin:a}}),[r,o,s,l]=["minWidth","minHeight","maxWidth","maxHeight"].map(e=>Zo(()=>{const n=parseFloat(t[e]);return isNaN(n)?1/0:n})),u=Zo(()=>{if(Array.isArray(t.offset))return t.offset;if("string"==typeof t.offset){const e=t.offset.split(" ").map(parseFloat);return e.length<2&&e.push(0),e}return"number"==typeof t.offset?[t.offset,0]:[0,0]});let c=!1,d=-1;const h=new sB(4),p=new ResizeObserver(()=>{if(!c)return;if(requestAnimationFrame(e=>{e!==d&&h.clear(),requestAnimationFrame(e=>{d=e})}),h.isFull){const e=h.values();if(xL(e.at(-1),e.at(-3))&&!xL(e.at(-1),e.at(-2)))return}const e=m();e&&h.push(e.flipped)});let f=new RB({x:0,y:0,width:0,height:0});function m(){if(c=!1,requestAnimationFrame(()=>c=!0),!e.target.value||!e.contentEl.value)return;(Array.isArray(e.target.value)||e.target.value.offsetParent||e.target.value.getClientRects().length)&&(f=LB(e.target.value));const d=function(e,t){const n=BB(e);t?n.x+=parseFloat(e.style.right||0):n.x-=parseFloat(e.style.left||0);return n.y-=parseFloat(e.style.top||0),n}(e.contentEl.value,e.isRtl.value),h=zF(e.contentEl.value);h.length||(h.push(document.documentElement),e.contentEl.value.style.top&&e.contentEl.value.style.left||(d.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),d.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const p=h.reduce((e,t)=>
5091{const n=function(e){var t;if(e===document.documentElement){if(visualViewport){const e=null!=(t=document.body.currentCSSZoom)?t:1;return new RB({x:visualViewport.scale>1?0:visualViewport.offsetLeft,y:visualViewport.scale>1?0:visualViewport.offsetTop,width:visualViewport.width*visualViewport.scale/e,height:visualViewport.height*visualViewport.scale/e})}return new RB({x:0,y:0,width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}{const t=e.getBoundingClientRect();return new RB({x:t.x,y:t.y,width:e.clientWidth,height:e.clientHeight})}}(t);return e?new RB({x:Math.max(e.left,n.left),y:Math.max(e.top,n.top),width:Math.min(e.right,n.right)-Math.max(e.left,n.left),height:Math.min(e.bottom,n.bottom)-Math.max(e.top,n.top)}):n},void 0);p.x+=12,p.y+=12,p.width-=24,p.height-=24;let m={anchor:a.value,origin:i.value};function v(e){const t=new RB(d),n=WQ(e.anchor,f),a=WQ(e.origin,t);let{x:i,y:r}=(c=a,{x:(o=n).x-c.x,y:o.y-c.y});var o,c;switch(e.anchor.side){case"top":r-=u.value[0];break;case"bottom":r+=u.value[0];break;case"left":i-=u.value[0];break;case"right":i+=u.value[0]}switch(e.anchor.align){case"top":r-=u.value[1];break;case"bottom":r+=u.value[1];break;case"left":i-=u.value[1];break;case"right":i+=u.value[1]}t.x+=i,t.y+=r,t.width=Math.min(t.width,s.value),t.height=Math.min(t.height,l.value);return{overflows:DB(t,p),x:i,y:r}}let g=0,y=0;const b={x:0,y:0},_={x:!1,y:!1};let w=-1;for(;!(w++>10);){const{x:e,y:n,overflows:a}=v(m);g+=e,y+=n,d.x+=e,d.y+=n;{const e=OB(m.anchor),t=a.x.before||a.x.after,n=a.y.before||a.y.after;let i=!1;if(["x","y"].forEach(r=>{if("x"===r&&t&&!_.x||"y"===r&&n&&!_.y){const t={anchor:{...m.anchor},origin:{...m.origin}},n="x"===r?"y"===e?PB:NB:"y"===e?NB:PB;t.anchor=n(t.anchor),t.origin=n(t.origin);const{overflows:o}=v(t);(o[r].before<=a[r].before&&o[r].after<=a[r].after||o[r].before+o[r].after<(a[r].before+a[r].after)/2)&&(m=t,i=_[r]=!0)}}),i)continue}a.x.before&&(t.stickToTarget||(g+=a.x.before),d.x+=a.x.before),a.x.after&&(t.stickToTarget||(g-=a.x.after),d.x-=a.x.after),a.y.before&&(t.stickToTarget||(y+=a.y.before),d.y+=a.y.before),a.y.after&&(t.stickToTarget||(y-=a.y.after),d.y-=a.y.after);{const e=DB(d,p);b.x=p.width-e.x.before-e.x.after,b.y=p.height-e.y.before-e.y.after,t.stickToTarget||(g+=e.x.before),d.x+=e.x.before,t.stickToTarget||(y+=e.y.before),d.y+=e.y.before}break}const k=OB(m.anchor);return Object.assign(n.value,{"--v-overlay-anchor-origin":"".concat(m.anchor.side," ").concat(m.anchor.align),transformOrigin:"".concat(m.origin.side," ").concat(m.origin.align),top:OL($Q(y)),left:e.isRtl.value?void 0:OL($Q(g)),right:e.isRtl.value?OL($Q(-g)):void 0,minWidth:OL("y"===k?Math.min(r.value,f.width):r.value),maxWidth:OL(YQ(YL(b.x,r.value===1/0?0:r.value,s.value))),maxHeight:OL(YQ(YL(b.y,o.value===1/0?0:o.value,l.value)))}),{available:b,contentBox:d,flipped:_}}return Mr(e.target,(e,t)=>{t&&!Array.isArray(t)&&p.unobserve(t),Array.isArray(e)?xL(e,t)||m():e&&p.observe(e)},{immediate:!0}),Mr(e.contentEl,(e,t)=>{t&&p.unobserve(t),e&&p.observe(e)},{immediate:!0}),De(()=>{p.disconnect()}),Mr(()=>[a.value,i.value,t.offset,t.minWidth,t.minHeight,t.maxWidth,t.maxHeight],()=>m()),jn(()=>{const e=m();if(!e)return;const{available:t,contentBox:n}=e;n.height>t.y&&requestAnimationFrame(()=>{m(),requestAnimationFrame(()=>{m()})})}),{updateLocation:m}}},qQ=AF({locationStrategy:{type:[String,Function],default:"static",validator:e=>"function"==typeof e||e in GQ},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array],stickToTarget:Boolean},"VOverlay-location-strategies");function $Q(e){return Math.round(e*devicePixelRatio)/devicePixelRatio}function YQ(e){return Math.ceil(e*devicePixelRatio)/devicePixelRatio}let JQ=!0;const QQ=[];let ZQ=-1;function eZ(){cancelAnimationFrame(ZQ),ZQ=requestAnimationFrame(()=>{const e=QQ.shift();e&&e(),QQ.length?eZ():JQ=!0})}const tZ={none:null,close:function(e){iZ(aZ(e.target.value,e.contentEl.value),function(t){e.isActive.value=!1})},block:function(e,t){var n;const a=null==(n=e.root.value)?void 0:n.offsetParent,i=aZ(e.target.value,e.contentEl.value),r=[...new Set([...zF(i,t.contained?a:void 0),...zF(e.contentEl.value,t.contained?a:void 0)])].filter(e=>!e.classList.contains("v-overlay-scroll-blocked")),o=window.innerWidth-document.documentElement.offsetWidth,s=(l=a||document.documentElement,KF(l)&&l);var l;s&&e.root.value.classList.add("v-overlay--scroll-blocked");r.forEach((e,t)=>{e.style.setProperty("--v-body-scroll-x",OL(-e.scrollLeft)),e.style.setProperty("--v-body-scroll-y",OL(-e.scrollTop)),e!==document.documentElement&&e.style.setProperty("--v-scrollbar-offset",OL(o)),e.classList.add("v-overlay-scroll-blocked")}),De(()=>{r.forEach((e,t)=>{const n=parseFloat(e.style.getPropertyValue("--v-body-scroll-x")),a=parseFloat(e.style.getPropertyValue("--v-body-scroll-y")),i=e.style.scrollBehavior;e.style.scrollBehavior="auto",e.style.removeProperty("--v-body-scroll-x"),e.style.removeProperty("--v-body-scroll-y"),e.style.removeProperty("--v-scrollbar-offset"),e.classList.remove("v-overlay-scroll-blocked"),e.scrollLeft=-n,e.scrollTop=-a,e.style.scrollBehavior=i}),s&&e.root.value.classList.remove("v-overlay--scroll-blocked")})},reposition:function(e,t,n){let a=!1,i=-1,r=-1;function o(t){var n;n=()=>{var n,i;const r=performance.now();null==(i=(n=e.updateLocation).value)||i.call(n,t);const o=performance.now()-r;a=o/(1e3/60)>2},!JQ||QQ.length?(QQ.push(n),eZ()):(JQ=!1,n(),eZ())}r=("undefined"==typeof requestIdleCallback?e=>e():requestIdleCallback)(()=>{n.run(()=>{iZ(aZ(e.target.value,e.contentEl.value),e=>{a?(cancelAnimationFrame(i),i=requestAnimationFrame(()=>{i=requestAnimationFrame(()=>{o(e)})})):o(e)})})}),De(()=>{"undefined"!=typeof cancelIdleCallback&&cancelIdleCallback(r),cancelAnimationFrame(i)})}},nZ=AF({scrollStrategy:{type:[String,Function],default:"block",validator:e=>"function"==typeof e||e in tZ}},"VOverlay-scroll-strategies");function aZ(e,t){return Array.isArray(e)?document.elementsFromPoint(...e).find(e=>!(null==t?void 0:t.contains(e))):null!=e?e:t}function iZ(e,t){const n=[document,...zF(e)];
5091n.forEach(e=>{e.addEventListener("scroll",t,{passive:!0})}),De(()=>{n.forEach(e=>{e.removeEventListener("scroll",t)})})}const rZ=Symbol.for("vuetify:v-menu"),oZ=AF({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function sZ(e,t){let n=()=>{};function a(a){null==n||n();const i=Number(a?e.openDelay:e.closeDelay);return new Promise(e=>{n=function(e,t){if(!yL||0===e)return t(),()=>{};const n=window.setTimeout(t,e);return()=>window.clearTimeout(n)}(i,()=>{null==t||t(a),e(a)})})}return{clearDelay:n,runOpenDelay:function(){return a(!0)},runCloseDelay:function(){return a(!1)}}}const lZ=AF({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...oZ()},"VOverlay-activator");function uZ(e,t){let{isActive:n,isTop:a,contentEl:i}=t;const r=IF("useActivator"),o=an();let s=!1,l=!1,u=!0;const c=Zo(()=>e.openOnFocus||null==e.openOnFocus&&e.openOnHover),d=Zo(()=>e.openOnClick||null==e.openOnClick&&!e.openOnHover&&!c.value),{runOpenDelay:h,runCloseDelay:p}=sZ(e,t=>{t!==(e.openOnHover&&s||c.value&&l)||e.openOnHover&&n.value&&!a.value||(n.value!==t&&(u=!0),n.value=t)}),f=an(),m=e=>{e.stopPropagation(),o.value=e.currentTarget||e.target,n.value||(f.value=[e.clientX,e.clientY]),n.value=!n.value},v=e=>{var t;(null==(t=e.sourceCapabilities)?void 0:t.firesTouchEvents)||(s=!0,o.value=e.currentTarget||e.target,h())},g=e=>{s=!1,p()},y=e=>{!1!==bB(e.target,":focus-visible")&&(l=!0,e.stopPropagation(),o.value=e.currentTarget||e.target,h())},b=e=>{l=!1,e.stopPropagation(),p()},_=Zo(()=>{const t={};return d.value&&(t.onClick=m),e.openOnHover&&(t.onMouseenter=v,t.onMouseleave=g),c.value&&(t.onFocus=y,t.onBlur=b),t}),w=Zo(()=>{const t={};if(e.openOnHover&&(t.onMouseenter=()=>{s=!0,h()},t.onMouseleave=()=>{s=!1,p()}),c.value&&(t.onFocusin=()=>{l=!0,h()},t.onFocusout=()=>{l=!1,p()}),e.closeOnContentClick){const e=nr(rZ,null);t.onClick=()=>{n.value=!1,null==e||e.closeParents()}}return t}),k=Zo(()=>{const t={};return e.openOnHover&&(t.onMouseenter=()=>{u&&(s=!0,u=!1,h())},t.onMouseleave=()=>{s=!1,p()}),t});Mr(a,t=>{var a;!t||(!e.openOnHover||s||c.value&&l)&&(!c.value||l||e.openOnHover&&s)||(null==(a=i.value)?void 0:a.contains(document.activeElement))||(n.value=!1)}),Mr(n,e=>{e||setTimeout(()=>{f.value=void 0})},{flush:"post"});const C=kB();Nr(()=>{C.value&&jn(()=>{o.value=C.el})});const S=kB(),T=Zo(()=>"cursor"===e.target&&f.value?f.value:S.value?S.el:cZ(e.target,r)||o.value),A=Zo(()=>Array.isArray(T.value)?void 0:T.value);let E;return Mr(()=>!!e.activator,t=>{t&&yL?(E=Oe(),E.run(()=>{!function(e,t,n){let{activatorEl:a,activatorEvents:i}=n;function r(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s(),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.activatorProps;t&&function(e,t){Object.keys(t).forEach(n=>{var a;if(zL(n)){const i=cB(n),r=VB.get(e);if(null==t[n])null==r||r.forEach(t=>{const[n,a]=t;n===i&&(e.removeEventListener(i,a),r.delete(t))});else if(!r||!(null==(a=[...r])?void 0:a.some(e=>e[0]===i&&e[1]===t[n]))){e.addEventListener(i,t[n]);const a=r||new Set;a.add([i,t[n]]),VB.has(e)||VB.set(e,a)}}else null==t[n]?e.removeAttribute(n):e.setAttribute(n,t[n])})}(t,Io(i.value,n))}function o(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s(),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.activatorProps;t&&function(e,t){Object.keys(t).forEach(t=>{if(zL(t)){const n=cB(t),a=VB.get(e);null==a||a.forEach(t=>{const[i,r]=t;i===n&&(e.removeEventListener(n,r),a.delete(t))})}else e.removeAttribute(t)})}(t,Io(i.value,n))}function s(){const n=cZ(arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.activator,t);return a.value=(null==n?void 0:n.nodeType)===Node.ELEMENT_NODE?n:void 0,a.value}Mr(()=>e.activator,(e,t)=>{if(t&&e!==t){const e=s(t);e&&o(e)}e&&jn(()=>r())},{immediate:!0}),Mr(()=>e.activatorProps,()=>{r()}),De(()=>{o()})}(e,r,{activatorEl:o,activatorEvents:_})})):E&&E.stop()},{flush:"post",immediate:!0}),De(()=>{null==E||E.stop()}
5091),{activatorEl:o,activatorRef:C,target:T,targetEl:A,targetRef:S,activatorEvents:_,contentEvents:w,scrimEvents:k}}function cZ(e,t){var n,a;if(!e)return;let i;if("parent"===e){let e=null==(a=null==(n=null==t?void 0:t.proxy)?void 0:n.$el)?void 0:a.parentNode;for(;null==e?void 0:e.hasAttribute("data-no-activator");)e=e.parentNode;i=e}else i="string"==typeof e?document.querySelector(e):"$el"in e?e.$el:e;return i}function dZ(){if(!yL)return rn(!1);const{ssr:e}=LV();if(e){const e=rn(!1);return hi(()=>{e.value=!0}),e}return rn(!0)}const hZ=AF({eager:Boolean},"lazy");function pZ(e,t){const n=rn(!1),a=gn(()=>n.value||e.eager||t.value);return Mr(t,()=>n.value=!0),{isBooted:n,hasContent:a,onAfterLeave:function(){e.eager||(n.value=!1)}}}function fZ(){const e=IF("useScopeId").vnode.scopeId;return{scopeId:e?{[e]:""}:void 0}}const mZ=Symbol.for("vuetify:stack"),vZ=Ht([]);function gZ(){return!0}function yZ(e,t,n){if(!e||!1===bZ(e,n))return!1;const a=BF(t);if("undefined"!=typeof ShadowRoot&&a instanceof ShadowRoot&&a.host===e.target)return!1;const i=("object"==typeof n.value&&n.value.include||(()=>[]))();return i.push(t),!i.some(t=>null==t?void 0:t.contains(e.target))}function bZ(e,t){return("object"==typeof t.value&&t.value.closeConditional||gZ)(e)}function _Z(e,t){const n=BF(e);t(document),"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&t(n)}const wZ={mounted(e,t){const n=n=>function(e,t,n){const a="function"==typeof n.value?n.value:n.value.handler;e.shadowTarget=e.target,t._clickOutside.lastMousedownWasOutside&&yZ(e,t,n)&&setTimeout(()=>{bZ(e,n)&&a&&a(e)},0)}(n,e,t),a=n=>{e._clickOutside.lastMousedownWasOutside=yZ(n,e,t)};_Z(e,e=>{e.addEventListener("click",n,!0),e.addEventListener("mousedown",a,!0)}),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!1}),e._clickOutside[t.instance.$.uid]={onClick:n,onMousedown:a}},beforeUnmount(e,t){e._clickOutside&&(_Z(e,n=>{var a;if(!n||!(null==(a=e._clickOutside)?void 0:a[t.instance.$.uid]))return;const{onClick:i,onMousedown:r}=e._clickOutside[t.instance.$.uid];n.removeEventListener("click",i,!0),n.removeEventListener("mousedown",r,!0)}),delete e._clickOutside[t.instance.$.uid])}};function kZ(e){const{modelValue:t,color:n,...a}=e;return bo(_s,{name:"fade-transition",appear:!0},{default:()=>[e.modelValue&&yo("div",Io({class:["v-overlay__scrim",e.color.backgroundColorClasses.value],style:e.color.backgroundColorStyles.value},a),null)]})}const CZ=AF({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,opacity:[Number,String],noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...lZ(),...EF(),...T$(),...hZ(),...qQ(),...nZ(),...ZV(),...R$()},"VOverlay"),SZ=DF()({name:"VOverlay",directives:{vClickOutside:wZ},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...CZ()},emits:{"click:outside":e=>!0,"update:modelValue":e=>!0,keydown:e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{slots:n,attrs:a,emit:i}=t;const r=IF("VOverlay"),o=an(),s=an(),l=an(),u=qF(e,"modelValue"),c=Zo({get:()=>u.value,set:t=>{t&&e.disabled||(u.value=t)}}),{themeClasses:d}=sX(e),{rtlClasses:h,isRtl:p}=sV(),{hasContent:f,onAfterLeave:m}=pZ(e,c),v=P$(()=>"string"==typeof e.scrim?e.scrim:null),{globalTop:g,localTop:y,stackStyles:b}=function(e,t,n){const a=IF("useStack"),i=!n,r=nr(mZ,void 0),o=Ht({activeChildren:new Set});tr(mZ,o);const s=rn(Number(un(t)));gL(e,()=>{var e;const n=null==(e=vZ.at(-1))?void 0:e[1];s.value=n?n+10:Number(un(t)),i&&vZ.push([a.uid,s.value]),null==r||r.activeChildren.add(a.uid),De(()=>{if(i){const e=Qt(vZ).findIndex(e=>e[0]===a.uid);vZ.splice(e,1)}null==r||r.activeChildren.delete(a.uid)})});const l=rn(!0);i&&Nr(()=>{var e;const t=(null==(e=vZ.at(-1))?void 0:e[0])===a.uid;setTimeout(()=>l.value=t)});const u=gn(()=>!o.activeChildren.size);return{globalTop:Kt(l),localTop:u,stackStyles:gn(()=>({zIndex:s.value}))}}(c,()=>e.zIndex,e._disableGlobalStack),{activatorEl:_,activatorRef:w,target:k,targetEl:C,targetRef
5091:S,activatorEvents:T,contentEvents:A,scrimEvents:E}=uZ(e,{isActive:c,isTop:y,contentEl:l}),{teleportTarget:I}=function(e){return{teleportTarget:Zo(()=>{const t=e();if(!0===t||!yL)return;const n=!1===t?document.body:"string"==typeof t?document.querySelector(t):t;if(null==n)return;let a=[...n.children].find(e=>e.matches(".v-overlay-container"));return a||(a=document.createElement("div"),a.className="v-overlay-container",n.appendChild(a)),a})}}(()=>{var t,n,a;const i=e.attach||e.contained;if(i)return i;const o=(null==(t=null==_?void 0:_.value)?void 0:t.getRootNode())||(null==(a=null==(n=r.proxy)?void 0:n.$el)?void 0:a.getRootNode());return o instanceof ShadowRoot&&o}),{dimensionStyles:x}=A$(e),N=dZ(),{scopeId:P}=fZ();Mr(()=>e.disabled,e=>{e&&(c.value=!1)});const{contentStyles:M,updateLocation:O}=function(e,t){const n=an({}),a=an();function i(e){var t;null==(t=a.value)||t.call(a,e)}function r(e){var t;null==(t=a.value)||t.call(a,e)}function o(e){var t;null==(t=a.value)||t.call(a,e)}return yL&&gL(()=>!(!t.isActive.value||!e.locationStrategy),s=>{var l,u;Mr(()=>e.locationStrategy,s),De(()=>{window.removeEventListener("resize",i),null==visualViewport||visualViewport.removeEventListener("resize",r),null==visualViewport||visualViewport.removeEventListener("scroll",o),a.value=void 0}),window.addEventListener("resize",i,{passive:!0}),null==visualViewport||visualViewport.addEventListener("resize",r,{passive:!0}),null==visualViewport||visualViewport.addEventListener("scroll",o,{passive:!0}),"function"==typeof e.locationStrategy?a.value=null==(l=e.locationStrategy(t,e,n))?void 0:l.updateLocation:a.value=null==(u=GQ[e.locationStrategy](t,e,n))?void 0:u.updateLocation}),{contentStyles:n,updateLocation:a}}(e,{isRtl:p,contentEl:l,target:k,isActive:c});function R(t){i("click:outside",t),e.persistent?X():c.value=!1}function D(t){return c.value&&g.value&&(!e.scrim||t.target===s.value||t instanceof MouseEvent&&t.shadowTarget===s.value)}function L(t){var n,a,r;"Escape"===t.key&&g.value&&((null==(n=l.value)?void 0:n.contains(document.activeElement))||i("keydown",t),e.persistent?X():(c.value=!1,(null==(a=l.value)?void 0:a.contains(document.activeElement))&&(null==(r=_.value)||r.focus())))}function B(e){("Escape"!==e.key||g.value)&&i("keydown",e)}!function(e,t){if(!yL)return;let n;Nr(async()=>{null==n||n.stop(),t.isActive.value&&e.scrollStrategy&&(n=Oe(),await new Promise(e=>setTimeout(e)),n.active&&n.run(()=>{var a;"function"==typeof e.scrollStrategy?e.scrollStrategy(t,e,n):null==(a=tZ[e.scrollStrategy])||a.call(tZ,t,e,n)}))}),De(()=>{null==n||n.stop()})}(e,{root:o,contentEl:l,targetEl:C,target:k,isActive:c,updateLocation:O}),yL&&Mr(c,e=>{e?window.addEventListener("keydown",L):window.removeEventListener("keydown",L)},{immediate:!0}),mi(()=>{yL&&window.removeEventListener("keydown",L)});const F=RY();gL(()=>e.closeOnBack,()=>{!function(e,t){let n,a,i=!1;function r(e){var t;(null==(t=e.state)?void 0:t.replaced)||(i=!0,setTimeout(()=>i=!1))}
5091yL&&(null==e?void 0:e.beforeEach)&&(jn(()=>{window.addEventListener("popstate",r),n=e.beforeEach((e,n,a)=>{BY?i?t(a):a():setTimeout(()=>i?t(a):a()),BY=!0}),a=null==e?void 0:e.afterEach(()=>{BY=!1})}),De(()=>{window.removeEventListener("popstate",r),null==n||n(),null==a||a()}))}(F,t=>{g.value&&c.value?(t(!1),e.persistent?X():c.value=!1):t()})});const V=an();function X(){e.noClickAnimation||l.value&&FB(l.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:FF})}function j(){i("afterEnter")}function U(){m(),i("afterLeave")}return Mr(()=>c.value&&(e.absolute||e.contained)&&null==I.value,e=>{if(e){const e=HF(o.value);e&&e!==document.scrollingElement&&(V.value=e.scrollTop)}}),GF(()=>{var t;return yo(eo,null,[null==(t=n.activator)?void 0:t.call(n,{isActive:c.value,targetRef:S,props:Io({ref:w},T.value,e.activatorProps)}),N.value&&f.value&&bo(ha,{disabled:!I.value,to:I.value},{default:()=>[yo("div",Io({class:["v-overlay",{"v-overlay--absolute":e.absolute||e.contained,"v-overlay--active":c.value,"v-overlay--contained":e.contained},d.value,h.value,e.class],style:[b.value,{"--v-overlay-opacity":e.opacity,top:OL(V.value)},e.style],ref:o,onKeydown:B},P,a),[bo(kZ,Io({color:v,modelValue:c.value&&!!e.scrim,ref:s},E.value),null),bo(D$,{appear:!0,persisted:!0,transition:e.transition,target:k.value,onAfterEnter:j,onAfterLeave:U},{default:()=>{var t;return[ta(yo("div",Io({ref:l,class:["v-overlay__content",e.contentClass],style:[x.value,M.value]},A.value,e.contentProps),[null==(t=n.default)?void 0:t.call(n,{isActive:c})]),[[Ls,c.value],[wZ,{handler:R,closeConditional:D,include:()=>[_.value]}]])]}})])]})])}),{activatorEl:_,scrimEl:s,target:k,animateClick:X,contentEl:l,globalTop:g,localTop:y,updateLocation:O}}}),TZ=AF({id:String,submenu:Boolean,disableInitialFocus:Boolean,...UL(CZ({closeDelay:250,closeOnContentClick:!0,locationStrategy:"connected",location:void 0,openDelay:300,scrim:!1,scrollStrategy:"reposition",transition:{component:r$}}),["absolute"])},"VMenu"),AZ=DF()({name:"VMenu",props:TZ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const a=qF(e,"modelValue"),{scopeId:i}=fZ(),{isRtl:r}=sV(),o=Pa(),s=gn(()=>
5091e.id||"v-menu-".concat(o)),l=an(),u=nr(rZ,null),c=rn(new Set);async function d(e){var t,n,i;const r=e.relatedTarget,o=e.target;if(await jn(),a.value&&r!==o&&(null==(t=l.value)?void 0:t.contentEl)&&(null==(n=l.value)?void 0:n.globalTop)&&![document,l.value.contentEl].includes(o)&&!l.value.contentEl.contains(o)){null==(i=fB(l.value.contentEl)[0])||i.focus()}}function h(e){null==u||u.closeParents(e)}function p(t){var n,i,o,s,u;if(!e.disabled)if("Tab"===t.key||"Enter"===t.key&&!e.closeOnContentClick){if("Enter"===t.key&&(t.target instanceof HTMLTextAreaElement||t.target instanceof HTMLInputElement&&t.target.closest("form")))return;"Enter"===t.key&&t.preventDefault();mB(fB(null==(n=l.value)?void 0:n.contentEl,!1),t.shiftKey?"prev":"next",e=>e.tabIndex>=0)||(a.value=!1,null==(o=null==(i=l.value)?void 0:i.activatorEl)||o.focus())}else e.submenu&&t.key===(r.value?"ArrowRight":"ArrowLeft")&&(a.value=!1,null==(u=null==(s=l.value)?void 0:s.activatorEl)||u.focus())}function f(t){var n;if(e.disabled)return;const i=null==(n=l.value)?void 0:n.contentEl;i&&a.value?"ArrowDown"===t.key?(t.preventDefault(),t.stopImmediatePropagation(),vB(i,"next")):"ArrowUp"===t.key?(t.preventDefault(),t.stopImmediatePropagation(),vB(i,"prev")):e.submenu&&(t.key===(r.value?"ArrowRight":"ArrowLeft")?a.value=!1:t.key===(r.value?"ArrowLeft":"ArrowRight")&&(t.preventDefault(),vB(i,"first"))):(e.submenu?t.key===(r.value?"ArrowLeft":"ArrowRight"):["ArrowDown","ArrowUp"].includes(t.key))&&(a.value=!0,t.preventDefault(),setTimeout(()=>setTimeout(()=>f(t))))}tr(rZ,{register(){c.value.add(o)},unregister(){c.value.delete(o)},closeParents(t){setTimeout(()=>{var n;c.value.size||e.persistent||null!=t&&(!(null==(n=l.value)?void 0:n.contentEl)||function(e,t){const n=e.clientX,a=e.clientY,i=t.getBoundingClientRect(),r=i.left,o=i.top,s=i.right,l=i.bottom;return n>=r&&n<=s&&a>=o&&a<=l}(t,l.value.contentEl))||(a.value=!1,null==u||u.closeParents())},40)}}),mi(()=>{null==u||u.unregister(),document.removeEventListener("focusin",d)}),ii(()=>a.value=!1),Mr(a,t=>{t?(null==u||u.register(),yL&&!e.disableInitialFocus&&document.addEventListener("focusin",d,{once:!0})):(null==u||u.unregister(),yL&&document.removeEventListener("focusin",d))},{immediate:!0});const m=Zo(()=>Io({"aria-haspopup":"menu","aria-expanded":String(a.value),"aria-controls":s.value,onKeydown:f},e.activatorProps));return GF(()=>{var t;const r=SZ.filterProps(e);return bo(SZ,Io({ref:l,id:s.value,class:["v-menu",e.class],style:e.style},r,{modelValue:a.value,"onUpdate:modelValue":e=>a.value=e,absolute:!0,activatorProps:m.value,location:null!=(t=e.location)?t:e.submenu?"end":"bottom","onClick:outside":h,onKeydown:p},i),{activator:n.activator,default:function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return bo(S$,{root:"VMenu"},{default:()=>{var e;return[null==(e=n.default)?void 0:e.call(n,...t)]}})}})}),FJ({id:s,"ΨopenChildren":c},l)}}),EZ=AF({active:Boolean,disabled:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...EF(),...R$({transition:{component:b$}})},"VCounter"),IZ=DF()({name:"VCounter",functional:!0,props:EZ(),setup(e,t){let{slots:n}=t;const a=gn(()=>e.max?"".concat(e.value," / ").concat(e.max):String(e.value));return GF(()=>bo(D$,{transition:e.transition},{default:()=>[ta(yo("div",{class:ne(["v-counter",{"text-error":e.max&&!e.disabled&&parseFloat(e.value)>parseFloat(e.max)},e.class]),style:Y(e.style)},[n.default?n.default({counter:a.value,max:e.max,value:e.value}):a.value]),[[Ls,e.active]])]})),{}}}),xZ=AF({floating:Boolean,...EF()},"VFieldLabel"),NZ=DF()({name:"VFieldLabel",props:xZ(),setup(e,t){let{slots:n}=t;return GF(()=>bo(fJ,{class:ne(["v-field-label",{"v-field-label--floating":e.floating},e.class]),style:Y(e.style)},n)),{}}}),PZ=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],MZ=AF({appendInnerIcon:zV,bgColor:String,clearable:Boolean,clearIcon:{type:zV,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,details:Boolean,dirty:Boolean,disabled:{type:Boolean,default:null},glow:Boolean,error:Boolean,flat:Boolean,iconColor:[Boolean,String],label:String,persistentClear:Boolean,prependInnerIcon:zV,reverse:B
5091oolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:e=>PZ.includes(e)},"onClick:clear":dB(),"onClick:appendInner":dB(),"onClick:prependInner":dB(),...EF(),...IY(),...M$(),...ZV()},"VField"),OZ=DF()({name:"VField",inheritAttrs:!1,props:{id:String,...AJ(),...MZ()},emits:{"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:a,slots:i}=t;const{themeClasses:r}=sX(e),{loaderClasses:o}=xY(e),{focusClasses:s,isFocused:l,focus:u,blur:c}=EJ(e),{InputIcon:d}=CJ(e),{roundedClasses:h}=O$(e),{rtlClasses:p}=sV(),f=gn(()=>e.dirty||e.active),m=gn(()=>!(!e.label&&!i.label)),v=gn(()=>!e.singleLine&&m.value),g=Pa(),y=Zo(()=>e.id||"input-".concat(g)),b=gn(()=>e.details?"".concat(y.value,"-messages"):void 0),_=an(),w=an(),k=an(),C=Zo(()=>["plain","underlined"].includes(e.variant)),S=Zo(()=>e.error||e.disabled?void 0:f.value&&l.value?e.color:e.baseColor),T=Zo(()=>{if(e.iconColor&&(!e.glow||l.value))return!0===e.iconColor?S.value:e.iconColor}),{backgroundColorClasses:A,backgroundColorStyles:E}=P$(()=>e.bgColor),{textColorClasses:I,textColorStyles:x}=N$(S);Mr(f,e=>{if(v.value&&!CL()){const t=_.value.$el,n=w.value.$el;requestAnimationFrame(()=>{const a=BB(t),i=n.getBoundingClientRect(),r=i.x-a.x,o=i.y-a.y-(a.height/2-i.height/2),s=i.width/.75,l=Math.abs(s-a.width)>1?{maxWidth:OL(s)}:void 0,u=getComputedStyle(t),c=getComputedStyle(n),d=1e3*parseFloat(u.transitionDuration)||150,h=parseFloat(c.getPropertyValue("--v-field-label-scale")),p=c.getPropertyValue("color");t.style.visibility="visible",n.style.visibility="hidden",FB(t,{transform:"translate(".concat(r,"px, ").concat(o,"px) scale(").concat(h,")"),color:p,...l},{duration:d,easing:FF,direction:e?"normal":"reverse"}).finished.then(()=>{t.style.removeProperty("visibility"),n.style.removeProperty("visibility")})})}},{flush:"post"});const N=Zo(()=>({isActive:f,isFocused:l,controlRef:k,blur:c,focus:u}));function P(e){e.target!==document.activeElement&&e.preventDefault()}return GF(()=>{var t,a,l,g,k;const S="outlined"===e.variant,M=!(!i["prepend-inner"]&&!e.prependInnerIcon),O=!(!e.clearable&&!i.clear||e.disabled),R=!!(i["append-inner"]||e.appendInnerIcon||O),D=()=>i.label?i.label({...N.value,label:e.label,props:{for:y.value}}):e.label;return yo("div",Io({class:["v-field",{"v-field--active":f.value,"v-field--appended":R,"v-field--center-affix":null!=(t=e.centerAffix)?t:!C.value,"v-field--disabled":e.disabled,"v-field--dirty":e.dirty,"v-field--error":e.error,"v-field--glow":e.glow,"v-field--flat":e.flat,"v-field--has-background":!!e.bgColor,"v-field--persistent-clear":e.persistentClear,"v-field--prepended":M,"v-field--reverse":e.reverse,"v-field--single-line":e.singleLine,"v-field--no-label":!D(),["v-field--variant-".concat(e.variant)]:!0},r.value,A.value,s.value,o.value,h.value,p.value,e.class],style:[E.value,e.style],onClick:P},n),[yo("div",{class:"v-field__overlay"},null),bo(NY,{name:"v-field",active:!!e.loading,color:e.error?"error":"string"==typeof e.loading?e.loading:e.color},{default:i.loader}),M&&yo("div",{key:"prepend",class:"v-field__prepend-inner"},[e.prependInnerIcon&&bo(d,{key:"prepend-icon",name:"prependInner",color:T.value},null),null==(a=i["prepend-inner"])?void 0:a.call(i,N.value)]),yo("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(e.variant)&&v.value&&bo(NZ,{key:"floating-label",ref:w,class:ne([I.value]),floating:!0,for:y.value,"aria-hidden":!f.value,style:Y(x.value)},{default:()=>[D()]}),m.value&&bo(NZ,{key:"label",ref:_,for:y.value},{default:()=>[D()]}),null!=(g=null==(l=i.default)?void 0:l.call(i,{...N.value,props:{id:y.value,class:"v-field__input","aria-describedby":b.value},focus:u,blur:c}))?g:yo("div",{id:y.value,class:"v-field__input","aria-describedby":b.value},null)]),O&&bo(k$,{key:"clear"},{default:()=>[ta(yo("div",{class:"v-field__clearable",onMousedown:e=>{e.preventDefault(),e.stopPropagation()}},[bo(S$,{defaults:{VIcon:{icon:e.clearIcon}}},{default:()=>[i.clear?i.clear({...N.value,props:{onFocus:u,onBlur:c,onClick:e["onClick:clear"],tabindex:-1}}):bo(d,{name:"clear",onFocus:u,onBlur:c,tabindex:-1},null)]})]),[[Ls,e.dirty]])]}),R&&yo("div",{key:"append",class:"v-field__append-inner"},[null==(k=i["append-inner"])?void 0:k.call(i,N.value),e.appendInnerIcon&&bo(d,{key:"append-icon",name:"appendInner",color:T.value},null)]),yo("div",{class:ne(["v-field__outline",I.value]),style:Y(x.value)},[S&&yo(eo,null,[yo("div",{class:"v-field__outline__start"},null),v.value&&yo("div",{class:"v-field__outline__notch"},[bo(NZ,{ref:w,floating:!0,for:y.value,"aria-hidden":!f.value},{default:()=>[D()]})]),yo("div",{class:"v-field__outline__end"},null)]),C.value&&v.value&&bo(NZ,{ref:w,floating:!0,for:y.value,"aria-hidden":!f.value},{default:()=>[D()]})])])}),{controlRef:k,fieldIconColor:T}}}),RZ=AF({autocomplete:String},"autocomplete");function DZ(e){const t=Pa(),n=rn(0),a=gn(()=>"suppress"===e.autocomplete),i=gn(()=>a.value?"".concat(e.name,"-").concat(t,"-").concat(n.value):e.name),r=gn(()=>a.value?"off":e.autocomplete);return{isSuppressing:a,fieldAutocomplete:r,fieldName:i,update:()=>n.value=(new Date).getTime()}}function LZ(e){return{onIntersect:function(t,n){var a,i;e.autofocus&&t&&(null==(i=null==(a=n[0].target)?void 0:a.focus)||i.call(a))}}}const BZ=["color","file","time","date","datetime-local","week","month"],FZ=AF({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...RZ(),...RJ(),...MZ()},"VTextField"),VZ=DF()({name:"VTextField",directives:{vIntersect:B$},inheritAttrs:!1,props:FZ(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:a,slots:i}=t;const r=qF(e,"modelValue"),{isFocused:o,focus:s,blur:l}=EJ(e),{onIntersect:u}=LZ(e),c=Zo(()=>{var t;return"function"==typeof e.counterValue?e.counterValue(r.value):"number"==typeof e.counterValue?e.counterValue:(null!=(t=r.value)?t:"").toString().length}),d=Zo(()=>n.maxlength?n.maxlength:!e.counter||"number"!=typeof e.counter&&"string"!=typeof e.counter?void 0:e.counter),h=Zo(()=>["plain","underlined"].includes(e.variant)),p=an(),f=an(),m=an(),v=DZ(e),g=Zo(()=>BZ.includes(e.type)||e.persistentPlaceholder||o.value||e.active);
5091function y(){v.isSuppressing.value&&v.update(),o.value||s(),jn(()=>{var e;m.value!==document.activeElement&&(null==(e=m.value)||e.focus())})}function b(e){a("mousedown:control",e),e.target!==m.value&&(y(),e.preventDefault())}function _(e){a("click:control",e)}function w(t){var n;const a=t.target;if(r.value=a.value,(null==(n=e.modelModifiers)?void 0:n.trim)&&["text","search","password","tel","url"].includes(e.type)){const e=[a.selectionStart,a.selectionEnd];jn(()=>{a.selectionStart=e[0],a.selectionEnd=e[1]})}}return GF(()=>{const t=!!(i.counter||!1!==e.counter&&null!=e.counter),a=!(!t&&!i.details),[k,C]=GL(n),{modelValue:S,...T}=DJ.filterProps(e),A=OZ.filterProps(e);return bo(DJ,Io({ref:p,modelValue:r.value,"onUpdate:modelValue":e=>r.value=e,class:["v-text-field",{"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-input--plain-underlined":h.value},e.class],style:e.style},k,T,{centerAffix:!h.value,focused:o.value}),{...i,default:t=>{let{id:n,isDisabled:a,isDirty:c,isReadonly:d,isValid:h,hasDetails:p,reset:k}=t;return bo(OZ,Io({ref:f,onMousedown:b,onClick:_,"onClick:clear":t=>function(t,n){t.stopPropagation(),y(),jn(()=>{r.value=null,n(),pB(e["onClick:clear"],t)})}(t,k),"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"],role:e.role},UL(A,["onClick:clear"]),{id:n.value,active:g.value||c.value,dirty:c.value||e.dirty,disabled:a.value,focused:o.value,details:p.value,error:!1===h.value}),{...i,default:t=>{let{props:{class:n,...o}}=t;const c=ta(yo("input",Io({ref:m,value:r.value,onInput:w,autofocus:e.autofocus,readonly:d.value,disabled:a.value,name:v.fieldName.value,autocomplete:v.fieldAutocomplete.value,placeholder:e.placeholder,size:1,role:e.role,type:e.type,onFocus:s,onBlur:l},o,C),null),[[B$,{handler:u},null,{once:!0}]]);return yo(eo,null,[e.prefix&&yo("span",{class:"v-text-field__prefix"},[yo("span",{class:"v-text-field__prefix__text"},[e.prefix])]),i.default?yo("div",{class:ne(n),"data-no-activator":""},[i.default(),c]):wo(c,{class:n}),e.suffix&&yo("span",{class:"v-text-field__suffix"},[yo("span",{class:"v-text-field__suffix__text"},[e.suffix])])])}})},details:a?n=>{var a;return yo(eo,null,[null==(a=i.details)?void 0:a.call(i,n),t&&yo(eo,null,[yo("span",null,null),bo(IZ,{active:e.persistentCounter||o.value,value:c.value,max:d.value,disabled:e.disabled},i.counter)])])}:void 0})}),FJ({},p,f,m)}}),XZ=AF({renderless:Boolean,...EF()},"VVirtualScrollItem"),jZ=DF()({name:"VVirtualScrollItem",inheritAttrs:!1,props:XZ(),emits:{"update:height":e=>!0},setup(e,t){let{attrs:n,emit:a,slots:i}=t;const{resizeRef:r,contentRect:o}=uX(void 0,"border");Mr(()=>{var e;return null==(e=o.value)?void 0:e.height},e=>{null!=e&&a("update:height",e)}),GF(()=>{var t,a;return e.renderless?yo(eo,null,[null==(t=i.default)?void 0:t.call(i,{itemRef:r})]):yo("div",Io({ref:r,class:["v-virtual-scroll__item",e.class],style:e.style},n),[null==(a=i.default)?void 0:a.call(i)])})}}),UZ=AF({itemHeight:{type:[Number,String],default:null},itemKey:{type:[String,Array,Function],default:null},height:[Number,String]},"virtual");function HZ(e,t){const n=LV(),a=rn(0);Nr(()=>{a.value=parseFloat(e.itemHeight||0)});const i=rn(0),r=rn(Math.ceil((parseInt(e.height)||n.height.value)/(a.value||16))||1),o=rn(0),s=rn(0),l=an(),u=an();let c=0;const{resizeRef:d,contentRect:h}=uX();Nr(()=>{d.value=l.value});const p=Zo(()=>{var t;return l.value===document.documentElement?n.height.value:(null==(t=h.value)?void 0:t.height)||parseInt(e.height)||0}),f=Zo(()=>!!(l.value&&u.value&&p.value&&a.value));let m=Array.from({length:t.value.length}),v=Array.from({length:t.value.length});const g=rn(0);let y=-1;function b(e){return m[e]||a.value}const _=$L(()=>{const e=performance.now();v[0]=0;const n=t.value.length;for(let t=1;t<=n-1;t++)v[t]=(v[t-1]||0)+b(t-1);g.value=Math.max(g.value,performance.now()-e)},g),w=Mr(f,e=>{e&&(w(),c=u.value.offsetTop,_.immediate(),N(),~y&&jn(()=>{yL&&window.requestAnimationFrame(()=>{M(y),y=-1})}))});function k(e){e=YL(e,0,t.value.length-1);const n=Math.floor(e),a=e%1,i=n+1,r=v[n]||0;return r+((v[i]||r)-r)*a}function C(e){return function(e,t){let n=e.length-1,a=0,i=0,r=null,o=-1;if(e[n]<t)return n;for(;a<=n;)if(i=a+n>>1,r=e[i],r>t)n=i-1;else{if(!(r<t))return r===t?i:a;o=i,a=i+1}return o}(v,e)}De(()=>{_.clear()});let S=0,T=0,A=0;Mr(p,(e,t)=>{t&&(N(),e<t&&requestAnimationFrame(()=>{T=0,N()}))});let E=-1;function I(){l.value&&u.value&&(T=0,A=0,window.clearTimeout(E),N())}let x=-1;function N(){cancelAnimationFrame(x),x=requestAnimationFrame(P)}function P(){if(!l.value||!p.value||!a.value)return;const e=S-c,n=Math.sign(T),u=YL(C(Math.max(0,e-100)),0,t.value.length),d=YL(C(e+p.value+100)+1,u+1,t.value.length);if((-1!==n||u<i.value)&&(1!==n||d>r.value)){const e=k(i.value)-k(u),n=k(d)-k(r.value);Math.max(e,n)>100?(i.value=u,r.value=d):(u<=0&&(i.value=u),d>=t.value.length&&(r.value=d))}o.value=k(i.value),s.value=k(t.value.length)-k(r.value)}function M(e){const t=k(e);!l.value||e&&!t?y=e:l.value.scrollTop=t}const O=Zo(()=>t.value.slice(i.value,r.value).map((t,n)=>{const a=n+i.value;return{raw:t,index:a,key:PL(t,e.itemKey,a)}}));return Mr(t,()=>{m=Array.from({length:t.value.length}),v=Array.from({length:t.value.length}),_.immediate(),N()},{deep:1}
5091),{calculateVisibleItems:N,containerRef:l,markerRef:u,computedItems:O,paddingTop:o,paddingBottom:s,scrollToIndex:M,handleScroll:function(){if(!l.value||!u.value)return;const e=l.value.scrollTop,t=performance.now();t-A>500?(T=Math.sign(e-S),c=u.value.offsetTop):T=e-S,S=e,A=t,window.clearTimeout(E),E=window.setTimeout(I,500),N()},handleScrollend:I,handleItemResize:function(e,t){const n=m[e],i=a.value;a.value=i?Math.min(a.value,t):t,n===t&&i===a.value||(m[e]=t,_())}}}const zZ=AF({items:{type:Array,default:()=>[]},renderless:Boolean,...UZ(),...EF(),...T$()},"VVirtualScroll"),KZ=DF()({name:"VVirtualScroll",props:zZ(),setup(e,t){let{slots:n}=t;const a=IF("VVirtualScroll"),{dimensionStyles:i}=A$(e),{calculateVisibleItems:r,containerRef:o,markerRef:s,handleScroll:l,handleScrollend:u,handleItemResize:c,scrollToIndex:d,paddingTop:h,paddingBottom:p,computedItems:f}=HZ(e,gn(()=>e.items));return gL(()=>e.renderless,()=>{function e(){var e,t;const n=arguments.length>0&&void 0!==arguments[0]&&arguments[0]?"addEventListener":"removeEventListener";o.value===document.documentElement?(document[n]("scroll",l,{passive:!0}),document[n]("scrollend",u)):(null==(e=o.value)||e[n]("scroll",l,{passive:!0}),null==(t=o.value)||t[n]("scrollend",u))}hi(()=>{o.value=HF(a.vnode.el,!0),e(!0)}),De(e)}),GF(()=>{const t=f.value.map(t=>bo(jZ,{key:t.key,renderless:e.renderless,"onUpdate:height":e=>c(t.index,e)},{default:e=>{var a;return null==(a=n.default)?void 0:a.call(n,{item:t.raw,index:t.index,...e})}}));return e.renderless?yo(eo,null,[yo("div",{ref:s,class:"v-virtual-scroll__spacer",style:{paddingTop:OL(h.value)}},null),t,yo("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:OL(p.value)}},null)]):yo("div",{ref:o,class:ne(["v-virtual-scroll",e.class]),onScrollPassive:l,onScrollend:u,style:Y([i.value,e.style])},[yo("div",{ref:s,class:"v-virtual-scroll__container",style:{paddingTop:OL(h.value),paddingBottom:OL(p.value)}},[t])])}),{calculateVisibleItems:r,scrollToIndex:d}}});function WZ(e,t){const n=rn(!1);let a;return{onScrollPassive:function(e){cancelAnimationFrame(a),n.value=!0,a=requestAnimationFrame(()=>{a=requestAnimationFrame(()=>{n.value=!1})})},onKeydown:async function(a){var i,r;if("Tab"===a.key&&(null==(i=t.value)||i.focus()),!["PageDown","PageUp","Home","End"].includes(a.key))return;const o=null==(r=e.value)?void 0:r.$el;if(!o)return;"Home"!==a.key&&"End"!==a.key||o.scrollTo({top:"Home"===a.key?0:o.scrollHeight,behavior:"smooth"}),await async function(){await new Promise(e=>requestAnimationFrame(e)),await new Promise(e=>requestAnimationFrame(e)),await new Promise(e=>requestAnimationFrame(e)),await new Promise(e=>{if(n.value){const t=Mr(n,()=>{t(),e()})}else e()})}();const s=o.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if("PageDown"===a.key||"Home"===a.key){const e=o.getBoundingClientRect().top;for(const t of s)if(t.getBoundingClientRect().top>=e){t.focus();break}}else{const e=o.getBoundingClientRect().bottom;for(const t of[...s].reverse())if(t.getBoundingClientRect().bottom<=e){t.focus();break}}}}}const GZ=AF({closeText:{type:String,default:"$vuetify.close"},openText:{type:String,default:"$vuetify.open"}},"autocomplete");function qZ(e,t){const{t:n}=rV(),a=Pa(),i=Zo(()=>"menu-".concat(a)),r=gn(()=>un(t)),o=gn(()=>i.value),s=gn(()=>n(un(t)?e.closeText:e.openText));return{menuId:i,ariaExpanded:r,ariaControls:o,ariaLabel:s}}const $Z=AF({chips:Boolean,closableChips:Boolean,eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,listProps:{type:Object},menu:Boolean,menuIcon:{type:zV,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,noAutoScroll:Boolean,...GZ(),...xQ({itemChildren:!1})},"Select"),YZ=AF({...$Z(),...UL(FZ({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...R$({transition:{component:r$}})},"VSelect"),JZ=DF()({name:"VSelect",props:YZ(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0},setup(e,t){let{slots:n}=t;const{t:a}=rV(),i=an(),r=an(),o=an(),{items:s,transformIn:l,transformOut:u}=OQ(e),c=qF(e,"modelValue",[],e=>l(null===e?[null]:qL(e)),t=>{var n;const a=u(t);return e.multiple?a:null!=(n=a[0])?n:null}),d=Zo(()=>"function"==typeof e.counterValue?e.counterValue(c.value):"number"==typeof e.counterValue?e.counterValue:c.value.length),h=NJ(e),p=Zo(()=>c.value.map(e=>e.value)),f=rn(!1);let m,v="",g=-1;const y=Zo(()=>e.hideSelected?s.value.filter(t=>!c.value.some(n=>(e.valueComparator||xL)(n,t))):s.value),b=Zo(()=>e.hideNoData&&!y.value.length||h.isReadonly.value||h.isDisabled.value),_=qF(e,"menu"),w=Zo({get:()=>_.value,set:e=>{var t;_.value&&!e&&(null==(t=r.value)?void 0:t.ΨopenChildren.size)||e&&b.value||(_.value=e)}}
5091),{menuId:k,ariaExpanded:C,ariaControls:S,ariaLabel:T}=qZ(e,w),A=Zo(()=>{var t;return{...e.menuProps,activatorProps:{...(null==(t=e.menuProps)?void 0:t.activatorProps)||{},"aria-haspopup":"listbox"}}}),E=an(),I=WZ(E,i);function x(t){e.openOnClear&&(w.value=!0)}function N(){b.value||(w.value=!w.value)}function P(e){CB(e)&&O(e)}function O(t){var n,a,i;if(!t.key||h.isReadonly.value)return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes(t.key)&&t.preventDefault(),["Enter","ArrowDown"," "].includes(t.key)&&(w.value=!0),["Escape","Tab"].includes(t.key)&&(w.value=!1),"Home"===t.key?null==(n=E.value)||n.focus("first"):"End"===t.key&&(null==(a=E.value)||a.focus("last"));if(!CB(t))return;const r=performance.now();r-m>1e3&&(v="",g=-1),v+=t.key.toLowerCase(),m=r;const o=y.value;function s(){for(let e=g+1;e<o.length;e++){const t=o[e];if(t.title.toLowerCase().startsWith(v))return[t,e]}}const l=function(){let e=s();return e||(v.at(-1)===v.at(-2)&&(v=v.slice(0,-1),e=s(),e)?e:(g=-1,e=s(),e||(v=t.key.toLowerCase(),s())))}();if(!l)return;const[u,d]=l;g=d,null==(i=E.value)||i.focus(d),e.multiple||(c.value=[u])}function R(t){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t.props.disabled)if(e.multiple){const a=c.value.findIndex(n=>(e.valueComparator||xL)(n.value,t.value)),i=null==n?!~a:n;if(~a){const e=i?[...c.value,t]:[...c.value];e.splice(a,1),c.value=e}else i&&(c.value=[...c.value,t])}else{const e=!1!==n;c.value=e?[t]:[],jn(()=>{w.value=!1})}}function D(e){var t;(null==(t=E.value)?void 0:t.$el.contains(e.relatedTarget))||(w.value=!1)}function L(){var t;e.eager&&(null==(t=o.value)||t.calculateVisibleItems())}function B(){var e;f.value&&(null==(e=i.value)||e.focus())}function F(e){f.value=!0}function V(e){if(null==e)c.value=[];else if(bB(i.value,":autofill")||bB(i.value,":-webkit-autofill")){const t=s.value.find(t=>t.title===e);t&&R(t)}else i.value&&(i.value.value="")}return Mr(w,()=>{if(!e.hideSelected&&w.value&&c.value.length){const t=y.value.findIndex(t=>c.value.some(n=>(e.valueComparator||xL)(n.value,t.value)));yL&&!e.noAutoScroll&&window.requestAnimationFrame(()=>{var e;t>=0&&(null==(e=o.value)||e.scrollToIndex(t))})}}),Mr(s,(t,n)=>{w.value||f.value&&e.hideNoData&&!n.length&&t.length&&(w.value=!0)}),GF(()=>{const t=!(!e.chips&&!n.chip),s=!!(!e.hideNoData||y.value.length||n["prepend-item"]||n["append-item"]||n["no-data"]),l=c.value.length>0,u=VZ.filterProps(e),h=l||!f.value&&e.label&&!e.persistentPlaceholder?void 0:e.placeholder;return bo(VZ,Io({ref:i},u,{modelValue:c.value.map(e=>e.props.value).join(", "),"onUpdate:modelValue":V,focused:f.value,"onUpdate:focused":e=>f.value=e,validationValue:c.externalValue,counterValue:d.value,dirty:l,class:["v-select",{"v-select--active-menu":w.value,"v-select--chips":!!e.chips,["v-select--".concat(e.multiple?"multiple":"single")]:!0,"v-select--selected":c.value.length,"v-select--selection-slot":!!n.selection},e.class],style:e.style,inputmode:"none",placeholder:h,"onClick:clear":x,"onMousedown:control":N,onBlur:D,onKeydown:O,"aria-expanded":C.value,"aria-controls":S.value,"aria-label":T.value,title:T.value}),{...n,default:()=>yo(eo,null,[bo(AZ,Io({id:k.value,ref:r,modelValue:w.value,"onUpdate:modelValue":e=>w.value=e,activator:"parent",contentClass:"v-select__content",disabled:b.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterEnter:L,onAfterLeave:B},A.value),{default:()=>{var t;return[s&&bo(VQ,Io({ref:E,selected:p.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:e=>e.preventDefault(),onKeydown:P,onFocusin:F,tabindex:"-1",selectable:!0,"aria-live":"polite","aria-label":"".concat(e.label,"-list"),color:null!=(t=e.itemColor)?t:e.color},I,e.listProps),{default:()=>{var t,i,r,s;return[null==(t=n["prepend-item"])?void 0:t.call(n),!y.value.length&&!e.hideNoData&&(null!=(r=null==(i=n["no-data"])?void 0:i.call(n))?r:bo(SQ,{key:"no-data",title:a(e.noDataText)},null)),bo(KZ,{ref:o,renderless:!0,items:y.value,itemKey:"value"},{default:t=>{var a,i,r,o,s,l;let{item:u,index:c,itemRef:d}=t;const h=function(e){const t={};for(const n in e)t[M(n)]=e[n];return t}(u.props),p=Io(u.props,{ref:d,key:u.value,onClick:()=>R(u,null)});return"divider"===u.type?null!=(i=null==(a=n.divider)?void 0:a.call(n,{props:u.raw,index:c}))?i:bo(eQ,Io(u.props,{key:"divider-".concat(c)}),null):"subheader"===u.type?null!=(o=null==(r=n.subheader)?void 0:r.call(n,{props:u.raw,index:c}))?o:bo(AQ,Io(u.props,{key:"subheader-".concat(c)}),null):null!=(l=null==(s=n.item)?void 0:s.call(n,{item:u,index:c,props:p}))?l:bo(SQ,Io(p,{role:"option"}),{prepend:t=>{let{isSelected:n}=t;return yo(eo,null,[e.multiple&&!e.hideSelected?bo(kJ,{key:u.value,modelValue:n,ripple:!1,tabindex:"-1"},null):void 0,h.prependAvatar&&bo(hJ,{image:h.prependAvatar},null),h.prependIcon&&bo(yY,{icon:h.prependIcon},null)])}})}}),null==(s=n["append-item"])?void 0:s.call(n)]}})]}}),c.value.map((a,i)=>{function r(e){e.stopPropagation(),e.preventDefault(),R(a,!1)}const o={"onClick:close":r,onKeydown(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.stopPropagation(),r(e))},onMousedown(e){e.preventDefault(),e.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},s=t?!!n.chip:!!n.selection,l=s?_B(t?n.chip({item:a,index:i,props:o}):n.selection({item:a,index:i})):void 0;if(!s||l)return yo("div",{key:a.value,class:"v-select__selection"},[t?n.chip?bo(S$,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:a.title}}},{default:()=>[l]}):bo(QJ,Io({key:"chip",closable:e.closableChips,size:"small",text:a.title,disabled:a.props.disabled},o),null):null!=l?l:yo("span",{class:"v-select__selection-text"},[a.title,e.multiple&&i<c.value.length-1&&yo("span",{class:"v-select__selection-comma"},[ko(",")])])])})]),"append-inner":function(){for(var t,a,r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yo(eo,null,[null==(t=n["append-inner"])?void 0:t.call(n,...o),e.menuIcon?bo(yY,{class:"v-select__menu-icon",color:null==(a=i.value)?void 0:a.fieldIconColor,icon:e.menuIcon},null):void 0])}})}),FJ({isFocused:f,menu:w,select:R},i)}}),QZ=(e,t,n)=>{if(null==e||null==t)return-1;if(!t.length)return 0;e=e.toString().toLocaleLowerCase(),t=t.toString().toLocaleLowerCase();const a=[];let i=e.indexOf(t);for(;~i;)a.push([i,i+t.length]),i=e.indexOf(t,i+t.length);return a.length?a:-1};function ZZ(e,t){if(null!=e&&"boolean"!=typeof e&&-1!==e)return"number"==typeof e?[[e,e+t.length]]:Array.isArray(e[0])?e:[e]}const e0=AF({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function t0(e,t,n,a){const i=rn([]),r=rn(new Map),o=Zo(()=>(null==a?void 0:a.transform)?ln(t).map(e=>[e,a.transform(e)]):ln(t));return Nr(()=>{const s="function"==typeof n?n():ln(n),l="string"!=typeof s&&"number"!=typeof s?"":String(s),u=function(e,t,n){var a,i,r;const o=[],s=null!=(a=null==n?void 0:n.default)?a:QZ,l=!!(null==n?void 0:n.filterKeys)&&qL(n.filterKeys),u=Object.keys(null!=(i=null==n?void 0:n.customKeyFilter)?i:{}).length;if(!(null==e?void 0:e.length))return o;let c=null;e:for(let d=0;d<e.length;d++){const[a,i=a]=qL(e[d]),h={},p={};let f=-1;if((t||u>0)&&!(null==n?void 0:n.noFilter)){let e=!1;if("object"==typeof a){if("divider"===a.type||"subheader"===a.type){"divider"===(null==c?void 0:c.type)&&"subheader"===a.type&&o.push(c),c={index:d,matches:{},type:a.type};continue}
5091const m=l||Object.keys(i);e=m.length===u;for(const e of m){const o=PL(i,e),l=null==(r=null==n?void 0:n.customKeyFilter)?void 0:r[e];if(f=l?l(o,t,a):s(o,t,a),-1!==f&&!1!==f)l?h[e]=ZZ(f,t):p[e]=ZZ(f,t);else if("every"===(null==n?void 0:n.filterMode))continue e}}else f=s(a,t,a),-1!==f&&!1!==f&&(p.title=ZZ(f,t));const m=Object.keys(p).length,v=Object.keys(h).length;if(!m&&!v)continue;if("union"===(null==n?void 0:n.filterMode)&&v!==u&&!m)continue;if("intersection"===(null==n?void 0:n.filterMode)&&(v!==u||!m&&u>0&&!e))continue}c&&(o.push(c),c=null),o.push({index:d,matches:{...p,...h}})}return o}(o.value,l,{customKeyFilter:{...e.customKeyFilter,...ln(null==a?void 0:a.customKeyFilter)},default:e.customFilter,filterKeys:e.filterKeys,filterMode:e.filterMode,noFilter:e.noFilter}),c=ln(t),d=[],h=new Map;u.forEach(e=>{let{index:t,matches:n}=e;const a=c[t];d.push(a),h.set(a.value,n)}),i.value=d,r.value=h}),{filteredItems:i,filteredMatches:r,getMatches:function(e){return r.value.get(e.value)}}}function n0(e,t,n){return null!=n&&n.length?n.map((a,i)=>{const r=0===i?0:n[i-1][1],o=[yo("span",{class:ne("".concat(e,"__unmask"))},[t.slice(r,a[0])]),yo("span",{class:ne("".concat(e,"__mask"))},[t.slice(a[0],a[1])])];return i===n.length-1&&o.push(yo("span",{class:ne("".concat(e,"__unmask"))},[t.slice(a[1])])),yo(eo,null,[o])}):t}const a0=AF({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:Boolean,search:String,...e0({filterKeys:["title"]}),...$Z(),...UL(FZ({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...R$({transition:!1})},"VAutocomplete"),i0=DF()({name:"VAutocomplete",props:a0(),emits:{"update:focused":e=>!0,"update:search":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0},setup(e,t){let{slots:n}=t;const{t:a}=rV(),i=an(),r=rn(!1),o=rn(!0),s=rn(!1),l=an(),u=an(),c=rn(-1),{items:d,transformIn:h,transformOut:p}=OQ(e),{textColorClasses:f,textColorStyles:m}=N$(()=>{var e;return null==(e=i.value)?void 0:e.color}),v=qF(e,"search",""),g=qF(e,"modelValue",[],e=>h(null===e?[null]:qL(e)),t=>{var n;const a=p(t);return e.multiple?a:null!=(n=a[0])?n:null}),y=Zo(()=>"function"==typeof e.counterValue?e.counterValue(g.value):"number"==typeof e.counterValue?e.counterValue:g.value.length),b=NJ(e),{filteredItems:_,getMatches:w}=t0(e,d,()=>o.value?"":v.value),k=Zo(()=>e.hideSelected?_.value.filter(e=>!g.value.some(t=>t.value===e.value)):_.value),C=Zo(()=>!(!e.chips&&!n.chip)),S=Zo(()=>C.value||!!n.selection),T=Zo(()=>g.value.map(e=>e.props.value)),A=Zo(()=>{var t;return(!0===e.autoSelectFirst||"exact"===e.autoSelectFirst&&v.value===(null==(t=k.value[0])?void 0:t.title))&&k.value.length>0&&!o.value&&!s.value}),E=Zo(()=>e.hideNoData&&!k.value.length||b.isReadonly.value||b.isDisabled.value),I=qF(e,"menu"),x=Zo({get:()=>I.value,set:e=>{var t;I.value&&!e&&(null==(t=l.value)?void 0:t.ΨopenChildren.size)||e&&E.value||(I.value=e)}}),{menuId:N,ariaExpanded:P,ariaControls:M,ariaLabel:O}=qZ(e,x),R=an(),D=WZ(R,i);function L(t){e.openOnClear&&(x.value=!0),v.value=""}function B(){E.value||(x.value=!0)}function F(e){E.value||(r.value&&(e.preventDefault(),e.stopPropagation()),x.value=!x.value)}function V(e){var t;(CB(e)||"Backspace"===e.key)&&(null==(t=i.value)||t.focus())}function X(t){var n,a,r,o,s,l;if(b.isReadonly.value)return;const u=null==(n=i.value)?void 0:n.selectionStart,d=g.value.length;if(["Enter","ArrowDown","ArrowUp"].includes(t.key)&&t.preventDefault(),["Enter","ArrowDown"].includes(t.key)&&(x.value=!0),["Escape"].includes(t.key)&&(x.value=!1),A.value&&["Enter","Tab"].includes(t.key)&&!g.value.some(e=>{let{value:t}=e;return t===k.value[0].value})&&q(k.value[0]),"ArrowDown"===t.key&&A.value&&(null==(a=R.value)||a.focus("next")),["Backspace","Delete"].includes(t.key)){if(!e.multiple&&S.value&&g.value.length>0&&!v.value)return q(g.value[0],!1);if(~c.value){t.preventDefault();const e=c.value;q(g.value[c.value],!1),c.value=e>=d-1?d-2:e}else"Backspace"!==t.key||v.value||(c.value=d-1)}else if(e.multiple)if("ArrowLeft"===t.key){if(c.value<0&&u&&u>0)return;const e=c.value>-1?c.value-1:d-1;if(g.value[e])c.value=e;else{const e=null!=(o=null==(r=v.value)?void 0:r.length)?o:null;c.value=-1,null==(s=i.value)||s.setSelectionRange(e,e)}}else if("ArrowRight"===t.key){if(c.value<0)return;const e=c.value+1;g.value[e]?c.value=e:(c.value=-1,null==(l=i.value)||l.setSelectionRange(0,0))}else~c.value&&CB(t)&&(c.value=-1)}function j(e){if(bB(i.value,":autofill")||bB(i.value,":-webkit-autofill")){const t=d.value.find(t=>t.title===e.target.value);t&&q(t)}}function U(){var t;e.eager&&(null==(t=u.value)||t.calculateVisibleItems())}function H(){var e;r.value&&(o.value=!0,null==(e=i.value)||e.focus())}function z(e){r.value=!0,setTimeout(()=>{s.value=!0})}function K(e){s.value=!1}function W(t){null!=t&&(""!==t||e.multiple||S.value)||(g.value=[])}const G=rn(!1);function q(t){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t&&!t.props.disabled)if(e.multiple){const a=g.value.findIndex(n=>(e.valueComparator||xL)(n.value,t.value)),i=null==n?!~a:n;if(~a){const e=i?[...g.value,t]:[...g.value];e.splice(a,1),g.value=e}else i&&(g.value=[...g.value,t]);e.clearOnSelect&&(v.value="")}else{const e=!1!==n;g.value=e?[t]:[],v.value=e&&!S.value?t.title:"",jn(()=>{x.value=!1,o.value=!0})}}return Mr(r,(t,n)=>{var a,i;t!==n&&(t?(G.value=!0,v.value=e.multiple||S.value?"":String(null!=(i=null==(a=g.value.at(-1))?void 0:a.props.title)?i:""),o.value=!0,jn(()=>G.value=!1)):(e.multiple||null!=v.value||(g.value=[]),x.value=!1,v.value="",c.value=-1))}),Mr(v,e=>{r.value&&!G.value&&(e&&(x.value=!0),o.value=!e)}),Mr(x,()=>
5091{if(!e.hideSelected&&x.value&&g.value.length){const e=k.value.findIndex(e=>g.value.some(t=>e.value===t.value));yL&&window.requestAnimationFrame(()=>{var t;e>=0&&(null==(t=u.value)||t.scrollToIndex(e))})}}),Mr(d,(e,t)=>{x.value||r.value&&!t.length&&e.length&&(x.value=!0)}),GF(()=>{const t=!!(!e.hideNoData||k.value.length||n["prepend-item"]||n["append-item"]||n["no-data"]),s=g.value.length>0,d=VZ.filterProps(e);return bo(VZ,Io({ref:i},d,{modelValue:v.value,"onUpdate:modelValue":[e=>v.value=e,W],focused:r.value,"onUpdate:focused":e=>r.value=e,validationValue:g.externalValue,counterValue:y.value,dirty:s,onChange:j,class:["v-autocomplete","v-autocomplete--".concat(e.multiple?"multiple":"single"),{"v-autocomplete--active-menu":x.value,"v-autocomplete--chips":!!e.chips,"v-autocomplete--selection-slot":!!S.value,"v-autocomplete--selecting-index":c.value>-1},e.class],style:e.style,readonly:b.isReadonly.value,placeholder:s?void 0:e.placeholder,"onClick:clear":L,"onMousedown:control":B,onKeydown:X,"aria-expanded":P.value,"aria-controls":M.value}),{...n,default:()=>yo(eo,null,[bo(AZ,Io({id:N.value,ref:l,modelValue:x.value,"onUpdate:modelValue":e=>x.value=e,activator:"parent",contentClass:"v-autocomplete__content",disabled:E.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterEnter:U,onAfterLeave:H},e.menuProps),{default:()=>{var i;return[t&&bo(VQ,Io({ref:R,filterable:!0,selected:T.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:e=>e.preventDefault(),onKeydown:V,onFocusin:z,onFocusout:K,tabindex:"-1",selectable:!0,"aria-live":"polite",color:null!=(i=e.itemColor)?i:e.color},D,e.listProps),{default:()=>{var t,i,r,s;return[null==(t=n["prepend-item"])?void 0:t.call(n),!k.value.length&&!e.hideNoData&&(null!=(r=null==(i=n["no-data"])?void 0:i.call(n))?r:bo(SQ,{key:"no-data",title:a(e.noDataText)},null)),bo(KZ,{ref:u,renderless:!0,items:k.value,itemKey:"value"},{default:t=>{var a,i,r,s,l,u;let{item:c,index:d,itemRef:h}=t;const p=Io(c.props,{ref:h,key:c.value,active:!(!A.value||0!==d)||void 0,onClick:()=>q(c,null)});return"divider"===c.type?null!=(i=null==(a=n.divider)?void 0:a.call(n,{props:c.raw,index:d}))?i:bo(eQ,Io(c.props,{key:"divider-".concat(d)}),null):"subheader"===c.type?null!=(s=null==(r=n.subheader)?void 0:r.call(n,{props:c.raw,index:d}))?s:bo(AQ,Io(c.props,{key:"subheader-".concat(d)}),null):null!=(u=null==(l=n.item)?void 0:l.call(n,{item:c,index:d,props:p}))?u:bo(SQ,Io(p,{role:"option"}),{prepend:t=>{let{isSelected:n}=t;return yo(eo,null,[e.multiple&&!e.hideSelected?bo(kJ,{key:c.value,modelValue:n,ripple:!1,tabindex:"-1"},null):void 0,c.props.prependAvatar&&bo(hJ,{image:c.props.prependAvatar},null),c.props.prependIcon&&bo(yY,{icon:c.props.prependIcon},null)])},title:()=>{var e;return o.value?c.title:n0("v-autocomplete",c.title,null==(e=w(c))?void 0:e.title)}})}}),null==(s=n["append-item"])?void 0:s.call(n)]}})]}}),g.value.map((t,a)=>{function i(e){e.stopPropagation(),e.preventDefault(),q(t,!1)}const r={"onClick:close":i,onKeydown(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.stopPropagation(),i(e))},onMousedown(e){e.preventDefault(),e.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},o=C.value?!!n.chip:!!n.selection,s=o?_B(C.value?n.chip({item:t,index:a,props:r}):n.selection({item:t,index:a})):void 0;if(!o||s)return yo("div",{key:t.value,class:ne(["v-autocomplete__selection",a===c.value&&["v-autocomplete__selection--selected",f.value]]),style:Y(a===c.value?m.value:{})},[C.value?n.chip?bo(S$,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:t.title}}},{default:()=>[s]}):bo(QJ,Io({key:"chip",closable:e.closableChips,size:"small",text:t.title,disabled:t.props.disabled},r),null):null!=s?s:yo("span",{class:"v-autocomplete__selection-text"},[t.title,e.multiple&&a<g.value.length-1&&yo("span",{class:"v-autocomplete__selection-comma"},[ko(",")])])])})]),"append-inner":function(){for(var t,a,r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yo(eo,null,[null==(t=n["append-inner"])?void 0:t.call(n,...o),e.menuIcon?bo(yY,{class:"v-autocomplete__menu-icon",color:null==(a=i.value)?void 0:a.fieldIconColor,icon:e.menuIcon,onMousedown:F,onClick:yB,"aria-label":O.value,title:O.value,tabindex:"-1"},null):void 0])}})}),FJ({isFocused:r,isPristine:o,menu:x,search:v,filteredItems:_,select:q},i)}}),r0=AF({bordered:Boolean,color:String,content:[Number,String],dot:Boolean,floating:Boolean,icon:zV,inline:Boolean,label:{type:String,default:"$vuetify.badge"},max:[Number,String],modelValue:{type:Boolean,default:!0},offsetX:[Number,String],offsetY:[Number,String],textColor:String,...EF(),...CY({location:"top end"}),...M$(),...Yq(),...ZV(),...R$({transition:"scale-rotate-transition"}),...T$()},"VBadge"),o0=DF()({name:"VBadge",inheritAttrs:!1,props:r0(),setup(e,t){const{backgroundColorClasses:n,backgroundColorStyles:a}=P$(()=>
5091e.color),{roundedClasses:i}=O$(e),{t:r}=rV(),{textColorClasses:o,textColorStyles:s}=N$(()=>e.textColor),{themeClasses:l}=lX(),{locationStyles:u}=SY(e,!0,t=>{var n,a;return(e.floating?e.dot?2:4:e.dot?8:12)+(["top","bottom"].includes(t)?Number(null!=(n=e.offsetY)?n:0):["left","right"].includes(t)?Number(null!=(a=e.offsetX)?a:0):0)}),{dimensionStyles:c}=A$(e);return GF(()=>{const d=Number(e.content),h=!e.max||isNaN(d)?e.content:d<=Number(e.max)?d:"".concat(e.max,"+"),[p,f]=jL(t.attrs,["aria-atomic","aria-label","aria-live","role","title"]);return bo(e.tag,Io({class:["v-badge",{"v-badge--bordered":e.bordered,"v-badge--dot":e.dot,"v-badge--floating":e.floating,"v-badge--inline":e.inline},e.class]},f,{style:e.style}),{default:()=>{var f,m;return[yo("div",{class:"v-badge__wrapper"},[null==(m=(f=t.slots).default)?void 0:m.call(f),bo(D$,{transition:e.transition},{default:()=>{var f,m;return[ta(yo("span",Io({class:["v-badge__badge",l.value,n.value,i.value,o.value],style:[a.value,s.value,c.value,e.inline?{}:u.value],"aria-atomic":"true","aria-label":r(e.label,d),"aria-live":"polite",role:"status"},p),[e.dot?void 0:t.slots.badge?null==(m=(f=t.slots).badge)?void 0:m.call(f):e.icon?bo(yY,{icon:e.icon},null):h]),[[Ls,e.modelValue]])]}})])]}})}),{}}}),s0=AF({color:String,density:String,...EF()},"VBannerActions"),l0=DF()({name:"VBannerActions",props:s0(),setup(e,t){let{slots:n}=t;return MF({VBtn:{color:e.color,density:e.density,slim:!0,variant:"text"}}),GF(()=>{var t;return yo("div",{class:ne(["v-banner-actions",e.class]),style:Y(e.style)},[null==(t=n.default)?void 0:t.call(n)])}),{}}}),u0=LF("v-banner-text"),c0=AF({avatar:String,bgColor:String,color:String,icon:zV,lines:String,stacked:Boolean,sticky:Boolean,text:String,...X$(),...EF(),...Q$(),...T$(),...DV({mobile:null}),...U$(),...CY(),...MY(),...M$(),...Yq(),...ZV()},"VBanner"),d0=DF()({name:"VBanner",props:c0(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:a,backgroundColorStyles:i}=P$(()=>e.bgColor),{borderClasses:r}=j$(e),{densityClasses:o}=Z$(e),{displayClasses:s,mobile:l}=LV(e),{dimensionStyles:u}=A$(e),{elevationClasses:c}=H$(e),{locationStyles:d}=SY(e),{positionClasses:h}
5091=OY(e),{roundedClasses:p}=O$(e),{themeClasses:f}=sX(e),m=gn(()=>e.color),v=gn(()=>e.density);MF({VBannerActions:{color:m,density:v}}),GF(()=>{const t=!(!e.text&&!n.text),g=!(!e.avatar&&!e.icon),y=!(!g&&!n.prepend);return bo(e.tag,{class:ne(["v-banner",{"v-banner--stacked":e.stacked||l.value,"v-banner--sticky":e.sticky,["v-banner--".concat(e.lines,"-line")]:!!e.lines},f.value,a.value,r.value,o.value,s.value,c.value,h.value,p.value,e.class]),style:Y([i.value,u.value,d.value,e.style]),role:"banner"},{default:()=>{var a;return[y&&yo("div",{key:"prepend",class:"v-banner__prepend"},[n.prepend?bo(S$,{key:"prepend-defaults",disabled:!g,defaults:{VAvatar:{color:m.value,density:v.value,icon:e.icon,image:e.avatar}}},n.prepend):bo(hJ,{key:"prepend-avatar",color:m.value,density:v.value,icon:e.icon,image:e.avatar},null)]),yo("div",{class:"v-banner__content"},[t&&bo(u0,{key:"text"},{default:()=>{var t,a;return[null!=(a=null==(t=n.text)?void 0:t.call(n))?a:e.text]}}),null==(a=n.default)?void 0:a.call(n)]),n.actions&&bo(l0,{key:"actions"},n.actions)]}})})}}),h0=AF({baseColor:String,bgColor:String,color:String,grow:Boolean,mode:{type:String,validator:e=>!e||["horizontal","shift"].includes(e)},height:{type:[Number,String],default:56},active:{type:Boolean,default:!0},...X$(),...EF(),...Q$(),...U$(),...M$(),...pX({name:"bottom-navigation"}),...Yq({tag:"header"}),...oY({selectedClass:"v-btn--selected"}),...ZV()},"VBottomNavigation"),p0=DF()({name:"VBottomNavigation",props:h0(),emits:{"update:active":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:a}=lX(),{borderClasses:i}=j$(e),{backgroundColorClasses:r,backgroundColorStyles:o}=P$(()=>e.bgColor),{densityClasses:s}=Z$(e),{elevationClasses:l}
5091=H$(e),{roundedClasses:u}=O$(e),{ssrBootStyles:c}=q$(),d=Zo(()=>Number(e.height)-("comfortable"===e.density?8:0)-("compact"===e.density?16:0)),h=qF(e,"active",e.active),{layoutItemStyles:p}=mX({id:e.name,order:Zo(()=>parseInt(e.order,10)),position:gn(()=>"bottom"),layoutSize:gn(()=>h.value?d.value:0),elementSize:d,active:h,absolute:gn(()=>e.absolute)});return uY(e,dY),MF({VBtn:{baseColor:gn(()=>e.baseColor),color:gn(()=>e.color),density:gn(()=>e.density),stacked:gn(()=>"horizontal"!==e.mode),variant:"text"}},{scoped:!0}),GF(()=>bo(e.tag,{class:ne(["v-bottom-navigation",{"v-bottom-navigation--active":h.value,"v-bottom-navigation--grow":e.grow,"v-bottom-navigation--shift":"shift"===e.mode},a.value,r.value,i.value,s.value,l.value,u.value,e.class]),style:Y([o.value,p.value,{height:OL(d.value)},c.value,e.style])},{default:()=>[n.default&&yo("div",{class:"v-bottom-navigation__content"},[n.default()])]})),{}}}),f0=AF({fullscreen:Boolean,retainFocus:{type:Boolean,default:!0},scrollable:Boolean,...CZ({origin:"center center",scrollStrategy:"block",transition:{component:r$},zIndex:2400})},"VDialog"),m0=DF()({name:"VDialog",props:f0(),emits:{"update:modelValue":e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{emit:n,slots:a}=t;const i=qF(e,"modelValue"),{scopeId:r}=fZ(),o=an();async function s(e){var t,n,a;const r=e.relatedTarget,s=e.target;if(await jn(),i.value&&r!==s&&(null==(t=o.value)?void 0:t.contentEl)&&(null==(n=o.value)?void 0:n.globalTop)&&![document,o.value.contentEl].includes(s)&&!o.value.contentEl.contains(s)){null==(a=fB(o.value.contentEl)[0])||a.focus()}}function l(e){var t;if("Tab"!==e.key||!(null==(t=o.value)?void 0:t.contentEl))return;const n=fB(o.value.contentEl);if(!n.length)return;const a=n[0],i=n[n.length-1],r=document.activeElement;e.shiftKey&&r===a?(e.preventDefault(),i.focus()):e.shiftKey||r!==i||(e.preventDefault(),a.focus())}function u(){var t;n("afterEnter"),(e.scrim||e.retainFocus)&&(null==(t=o.value)?void 0:t.contentEl)&&!o.value.contentEl.contains(document.activeElement)&&o.value.contentEl.focus({preventScroll:!0})}function c(){n("afterLeave")}return mi(()=>{document.removeEventListener("focusin",s),document.removeEventListener("keydown",l)}),yL&&Mr(()=>i.value&&e.retainFocus,e=>{e?(document.addEventListener("focusin",s,{once:!0}),document.addEventListener("keydown",l)):(document.removeEventListener("focusin",s),document.removeEventListener("keydown",l))},{immediate:!0}),Mr(i,async e=>{var t;e||(await jn(),null==(t=o.value.activatorEl)||t.focus({preventScroll:!0}))}),GF(()=>{const t=SZ.filterProps(e),n=Io({"aria-haspopup":"dialog"},e.activatorProps),s=Io({tabindex:-1},e.contentProps);return bo(SZ,Io({ref:o,class:["v-dialog",{"v-dialog--fullscreen":e.fullscreen,"v-dialog--scrollable":e.scrollable},e.class],style:e.style},t,{modelValue:i.value,"onUpdate:modelValue":e=>i.value=e,"aria-modal":"true",activatorProps:n,contentProps:s,height:e.fullscreen?void 0:e.height,width:e.fullscreen?void 0:e.width,maxHeight:e.fullscreen?void 0:e.maxHeight,maxWidth:e.fullscreen?void 0:e.maxWidth,role:"dialog",onAfterEnter:u,onAfterLeave:c},r),{activator:a.activator,default:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return bo(S$,{root:"VDialog"},{default:()=>{var e;return[null==(e=a.default)?void 0:e.call(a,...t)]}})}})}),FJ({},o)}}),v0=AF({inset:Boolean,...f0({transition:"bottom-sheet-transition"})},"VBottomSheet"),g0=DF()({name:"VBottomSheet",props:v0(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const a=qF(e,"modelValue");return GF(()=>{const t=m0.filterProps(e);return bo(m0,Io(t,{contentClass:["v-bottom-sheet__content",e.contentClass],modelValue:a.value,"onUpdate:modelValue":e=>a.value=e,class:["v-bottom-sheet",{"v-bottom-sheet--inset":e.inset},e.class],style:e.style}),n)}),{}}}),y0=AF({divider:[Number,String],...EF()},"VBreadcrumbsDivider"),b0=DF()({name:"VBreadcrumbsDivider",props:y0(),setup(e,t){let{slots:n}=t;return GF(()=>{var t,a;return yo("li",{"aria-hidden":"true",class:ne(["v-breadcrumbs-divider",e.class]),style:Y(e.style)},[null!=(a=null==(t=null==n?void 0:n.default)?void 0:t.call(n))?a:e.divi
5091der])}),{}}}),_0=AF({active:Boolean,activeClass:String,activeColor:String,color:String,disabled:Boolean,title:String,...EF(),...LY(),...Yq({tag:"li"})},"VBreadcrumbsItem"),w0=DF()({name:"VBreadcrumbsItem",props:_0(),setup(e,t){let{slots:n,attrs:a}=t;const i=DY(e,a),r=Zo(()=>{var t;return e.active||(null==(t=i.isActive)?void 0:t.value)}),{textColorClasses:o,textColorStyles:s}=N$(()=>r.value?e.activeColor:e.color);return GF(()=>bo(e.tag,{class:ne(["v-breadcrumbs-item",{"v-breadcrumbs-item--active":r.value,"v-breadcrumbs-item--disabled":e.disabled,["".concat(e.activeClass)]:r.value&&e.activeClass},o.value,e.class]),style:Y([s.value,e.style]),"aria-current":r.value?"page":void 0},{default:()=>{var t,a,r,o;return[i.isLink.value?yo("a",Io({class:"v-breadcrumbs-item--link",onClick:i.navigate},i.linkProps),[null!=(o=null==(r=n.default)?void 0:r.call(n))?o:e.title]):null!=(a=null==(t=n.default)?void 0:t.call(n))?a:e.title]}})),{}}}),k0=AF({activeClass:String,activeColor:String,bgColor:String,color:String,disabled:Boolean,divider:{type:String,default:"/"},icon:zV,items:{type:Array,default:()=>[]},...EF(),...Q$(),...M$(),...Yq({tag:"ul"})},"VBreadcrumbs"),C0=DF()({name:"VBreadcrumbs",props:k0(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:a,backgroundColorStyles:i}=P$(()=>e.bgColor),{densityClasses:r}
5091=Z$(e),{roundedClasses:o}=O$(e);MF({VBreadcrumbsDivider:{divider:gn(()=>e.divider)},VBreadcrumbsItem:{activeClass:gn(()=>e.activeClass),activeColor:gn(()=>e.activeColor),color:gn(()=>e.color),disabled:gn(()=>e.disabled)}});const s=Zo(()=>e.items.map(e=>"string"==typeof e?{item:{title:e},raw:e}:{item:e,raw:e}));return GF(()=>{const t=!(!n.prepend&&!e.icon);return bo(e.tag,{class:ne(["v-breadcrumbs",a.value,r.value,o.value,e.class]),style:Y([i.value,e.style])},{default:()=>{var a;return[t&&yo("li",{key:"prepend",class:"v-breadcrumbs__prepend"},[n.prepend?bo(S$,{key:"prepend-defaults",disabled:!e.icon,defaults:{VIcon:{icon:e.icon,start:!0}}},n.prepend):bo(yY,{key:"prepend-icon",start:!0,icon:e.icon},null)]),s.value.map((e,t,a)=>{var i,r;let{item:o,raw:s}=e;return yo(eo,null,[null!=(r=null==(i=n.item)?void 0:i.call(n,{item:o,index:t}))?r:bo(w0,Io({key:t,disabled:t>=a.length-1},"string"==typeof o?{title:o}:o),{default:n.title?()=>{var e;return null==(e=n.title)?void 0:e.call(n,{item:o,index:t})}:void 0}),t<a.length-1&&bo(b0,null,{default:n.divider?()=>{var e;return null==(e=n.divider)?void 0:e.call(n,{item:s,index:t})}:void 0})])}),null==(a=n.default)?void 0:a.call(n)]}})}),{}}}),S0=AF({...EF(),...Yq()},"VCardActions"),T0=DF()({name:"VCardActions",props:S0(),setup(e,t){let{slots:n}=t;return MF({VBtn:{slim:!0,variant:"text"}}),GF(()=>bo(e.tag,{class:ne(["v-card-actions",e.class]),style:Y(e.style)},n)),{}}}),A0=AF({opacity:[Number,String],...EF(),...Yq()},"VCardSubtitle"),E0=DF()({name:"VCardSubtitle",props:A0(),setup(e,t){let{slots:n}=t;return GF(()=>bo(e.tag,{class:ne(["v-card-subtitle",e.class]),style:Y([{"--v-card-subtitle-opacity":e.opacity},e.style])},n)),{}}}),I0=LF("v-card-title"),x0=AF({appendAvatar:String,appendIcon:zV,prependAvatar:String,prependIcon:zV,subtitle:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},...EF(),...Q$(),...Yq()},"VCardItem"),N0=DF()({name:"VCardItem",props:x0(),setup(e,t){let{slots:n}=t;return GF(()=>{const t=!(!e.prependAvatar&&!e.prependIcon),a=!(!t&&!n.prepend),i=!(!e.appendAvatar&&!e.appendIcon),r=!(!i&&!n.append),o=!(null==e.title&&!n.title),s=!(null==e.subt
5091itle&&!n.subtitle);return bo(e.tag,{class:ne(["v-card-item",e.class]),style:Y(e.style)},{default:()=>{var l;return[a&&yo("div",{key:"prepend",class:"v-card-item__prepend"},[n.prepend?bo(S$,{key:"prepend-defaults",disabled:!t,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon}}},n.prepend):yo(eo,null,[e.prependAvatar&&bo(hJ,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&bo(yY,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)])]),yo("div",{class:"v-card-item__content"},[o&&bo(I0,{key:"title"},{default:()=>{var t,a;return[null!=(a=null==(t=n.title)?void 0:t.call(n))?a:Te(e.title)]}}),s&&bo(E0,{key:"subtitle"},{default:()=>{var t,a;return[null!=(a=null==(t=n.subtitle)?void 0:t.call(n))?a:Te(e.subtitle)]}}),null==(l=n.default)?void 0:l.call(n)]),r&&yo("div",{key:"append",class:"v-card-item__append"},[n.append?bo(S$,{key:"append-defaults",disabled:!i,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon}}},n.append):yo(eo,null,[e.appendIcon&&bo(yY,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&bo(hJ,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)])])]}})}),{}}}),P0=AF({opacity:[Number,String],...EF(),...Yq()},"VCardText"),M0=DF()({name:"VCardText",props:P0(),setup(e,t){let{slots:n}=t;return GF(()=>bo(e.tag,{class:ne(["v-card-text",e.class]),style:Y([{"--v-card-text-opacity":e.opacity},e.style])},n)),{}}}),O0=AF({appendAvatar:String,appendIcon:zV,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:zV,ripple:{type:[Boolean,Object],default:!0},subtitle:{type:[String,Number,Boolean],default:void 0},text:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},...X$(),...EF(),...Q$(),...T$(),...U$(),...IY(),...CY(),...MY(),...M$(),...LY(),...Yq(),...ZV(),...nY({variant:"elevated"})},"VCard"),R0=DF()({name:"VCard",directives:{vRipple:eJ},props:O0(),setup(e,t){let{attrs:n,slots:a}=t;const{themeClasses:i}=sX(e),{borderClasses:r}=j$(e),{colorClasses:o,colorStyles:s,variantClasses:l}=aY(e),{densityClasses:u}=Z$(e),{dimensionStyles:c}=A$(e),{elevationClasses:d}=H$(e),{loaderClasses:h}=xY(e),{locationStyles:p}=SY(e),{positionClasses:f}
5091=OY(e),{roundedClasses:m}=O$(e),v=DY(e,n);return GF(()=>{const t=!1!==e.link&&v.isLink.value,n=!e.disabled&&!1!==e.link&&(e.link||v.isClickable.value),g=t?"a":e.tag,y=!(!a.title&&null==e.title),b=!(!a.subtitle&&null==e.subtitle),_=y||b,w=!!(a.append||e.appendAvatar||e.appendIcon),k=!!(a.prepend||e.prependAvatar||e.prependIcon),C=!(!a.image&&!e.image),S=_||k||w,T=!(!a.text&&null==e.text);return ta(bo(g,Io(v.linkProps,{class:["v-card",{"v-card--disabled":e.disabled,"v-card--flat":e.flat,"v-card--hover":e.hover&&!(e.disabled||e.flat),"v-card--link":n},i.value,r.value,o.value,u.value,d.value,h.value,f.value,m.value,l.value,e.class],style:[s.value,c.value,p.value,e.style],onClick:n&&v.navigate,tabindex:e.disabled?-1:void 0}),{default:()=>{var t;return[C&&yo("div",{key:"image",class:"v-card__image"},[a.image?bo(S$,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},a.image):bo(V$,{key:"image-img",cover:!0,src:e.image},null)]),bo(NY,{name:"v-card",active:!!e.loading,color:"boolean"==typeof e.loading?void 0:e.loading},{default:a.loader}),S&&bo(N0,{key:"item",prependAvatar:e.prependAvatar,prependIcon:e.prependIcon,title:e.title,subtitle:e.subtitle,appendAvatar:e.appendAvatar,appendIcon:e.appendIcon},{default:a.item,prepend:a.prepend,title:a.title,subtitle:a.subtitle,append:a.append}),T&&bo(M0,{key:"text"},{default:()=>{var t,n;return[null!=(n=null==(t=a.text)?void 0:t.call(a))?n:e.text]}}),null==(t=a.default)?void 0:t.call(a),a.actions&&bo(T0,null,{default:a.actions}),tY(n,"v-card")]}}),[[eJ,n&&e.ripple]])}),{}}});function D0(e,t){var n;const a=e.changedTouches[0];t.touchendX=a.clientX,t.touchendY=a.clientY,null==(n=t.end)||n.call(t,{originalEvent:e,...t}),(e=>{const{touchstartX:t,touchendX:n,touchstartY:a,touchendY:i}=e;e.offsetX=n-t,e.offsetY=i-a,Math.abs(e.offsetY)<.5*Math.abs(e.offsetX)&&(e.left&&n<t-16&&e.left(e),e.right&&n>t+16&&e.right(e)),Math.abs(e.offsetX)<.5*Math.abs(e.offsetY)&&(e.up&&i<a-16&&e.up(e),e.down&&i>a+16&&e.down(e))})(t)}const L0={mounted:function(e,t){var n,a,i;const r=t.value,o=(null==r?void 0:r.parent)?e.parentElement:e,s=null!=(n=null==r?void 0:r.options)?n:{passive:!0},l=null==(a=t.instance)?void 0:a.$.uid;if(!o||void 0===l)return;const u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:e.left,right:e.right,up:e.up,down:e.down,start:e.start,move:e.move,end:e.end};return{touchstart:e=>function(e,t){var n;const a=e.changedTouches[0];t.touchstartX=a.clientX,t.touchstartY=a.clientY,null==(n=t.start)||n.call(t,{originalEvent:e,...t})}(e,t),touchend:e=>D0(e,t),touchmove:e=>function(e,t){var n;const a=e.changedTouches[0];t.touchmoveX=a.clientX,t.touchmoveY=a.clientY,null==(n=t.move)||n.call(t,{originalEvent:e,...t})}(e,t)}}(t.value);o._touchHandlers=null!=(i=o._touchHandlers)?i:Object.create(null),o._touchHandlers[l]=u,FL(u).forEach(e=>{o.addEventListener(e,u[e],s)})},unmounted:function(e,t){var n,a;const i=(null==(n=t.value)?void 0:n.parent)?e.parentElement:e,r=null==(a=t.instance)?void 0:a.$.uid;if(!(null==i?void 0:i._touchHandlers)||void 0===r)return;const o=i._touchHandlers[r];FL(o).forEach(e=>{i.removeEventListener(e,o[e])}),delete i._touchHandlers[r]}},B0=Symbol.for("vuetify:v-window"),F0=Symbol.for("vuetify:v-window-group"),V0=AF({continuous:Boolean,nextIcon:{type:[Boolean,String,Function,Object],default:"$next"},prevIcon:{type:[Boolean,String,Function,Object],default:"$prev"},reverse:Boolean,showArrows:{type:[Boolean,String],validator:e=>"boolean"==typeof e||"hover"===e},verticalArrows:[Boolean,String],touch:{type:[Object,Boolean],default:void 0},direction:{type:String,default:"horizontal"},modelValue:null,disabled:Boolean,selectedClass:{type:String,default:"v-window-item--active"},mandatory:{type:[Boolean,String],default:"force"},crossfade:Boolean,transitionDuration:Number,...EF(),...Yq(),...ZV()},"VWindow"),X0=DF()({name:"VWindow",directives:{vTouch:L0},props:V0(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:a}=sX(e),{isRtl:i}=sV(),{t:r}=rV(),o=uY(e,F0),s=an(),l=Zo(()=>i.value?!e.reverse:e.reverse),u=rn(!1),c=Zo(()=>
5091{if(e.crossfade)return"v-window-crossfade-transition";const t="vertical"===e.direction?"y":"x",n=(l.value?!u.value:u.value)?"-reverse":"";return"v-window-".concat(t).concat(n,"-transition")}),d=rn(0),h=an(void 0),p=Zo(()=>o.items.value.findIndex(e=>o.selected.value.includes(e.id)));Mr(p,(e,t)=>{const n=o.items.value.length,a=n-1;u.value=n<=2?e<t:e===a&&0===t||(0!==e||t!==a)&&e<t}),tr(B0,{transition:c,isReversed:u,transitionCount:d,transitionHeight:h,rootRef:s});const f=gn(()=>e.continuous||0!==p.value),m=gn(()=>e.continuous||p.value!==o.items.value.length-1);function v(){f.value&&o.prev()}function g(){m.value&&o.next()}const y=Zo(()=>{const t=[],a={icon:i.value?e.nextIcon:e.prevIcon,class:"v-window__".concat(l.value?"right":"left"),onClick:o.prev,"aria-label":r("$vuetify.carousel.prev")};t.push(f.value?n.prev?n.prev({props:a}):bo(nJ,a,null):yo("div",null,null));const s={icon:i.value?e.prevIcon:e.nextIcon,class:"v-window__".concat(l.value?"left":"right"),onClick:o.next,"aria-label":r("$vuetify.carousel.next")};return t.push(m.value?n.next?n.next({props:s}):bo(nJ,s,null):yo("div",null,null)),t}),b=Zo(()=>{if(!1===e.touch)return e.touch;return{...{left:()=>{l.value?v():g()},right:()=>{l.value?g():v()},start:e=>{let{originalEvent:t}=e;t.stopPropagation()}},...!0===e.touch?{}:e.touch}});return GF(()=>ta(bo(e.tag,{ref:s,class:ne(["v-window",{"v-window--show-arrows-on-hover":"hover"===e.showArrows,"v-window--vertical-arrows":!!e.verticalArrows,"v-window--crossfade":!!e.crossfade},a.value,e.class]),style:Y([e.style,e.transitionDuration&&!CL?{"--v-window-transition-duration":OL(e.transitionDuration,"ms")}:void 0])},{default:()=>{var t,a;return[yo("div",{class:"v-window__container",style:{height:h.value}},[null==(t=n.default)?void 0:t.call(n,{group:o}),!1!==e.showArrows&&yo("div",{class:ne(["v-window__controls",{"v-window__controls--left":"left"===e.verticalArrows||!0===e.verticalArrows},{"v-window__controls--right":"right"===e.verticalArrows}])},[y.value])]),null==(a=n.additional)?void 0:a.call(n,{group:o})]}}),[[L0,b.value]])),{group:o}}}),j0=AF({color:String,cycle:Boolean,delimiterIcon:{type:zV,default:"$delimiter"},height:{type:[Number,String],default:500},hideDelimiters:Boolean,hideDelimiterBackground:Boolean,interval:{type:[Number,String],default:6e3,validator:e=>Number(e)>0},progress:[Boolean,String],verticalDelimiters:[Boolean,String],...V0({continuous:!0,mandatory:"force",showArrows:!0})},"VCarousel"),U0=DF()({name:"VCarousel",props:j0(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const a=qF(e,"modelValue"),{t:i}=rV(),r=an();let o=-1;function s(){e.cycle&&r.value&&(o=window.setTimeout(r.value.group.next,Number(e.interval)>0?Number(e.interval):6e3))}function l(){window.clearTimeout(o),window.requestAnimationFrame(s)}return Mr(a,l),Mr(()=>e.interval,l),Mr(()=>e.cycle,e=>{e?l():window.clearTimeout(o)}),hi(s),GF(()=>{const t=X0.filterProps(e);return bo(X0,Io({ref:r},t,{modelValue:a.value,"onUpdate:modelValue":e=>a.value=e,class:["v-carousel",{"v-carousel--hide-delimiter-background":e.hideDelimiterBackground,"v-carousel--vertical-delimiters":e.verticalDelimiters},e.class],style:[{height:OL(e.height)},e.style]}),{default:n.default,additional:t=>{let{group:r}=t;return yo(eo,null,[!e.hideDelimiters&&yo("div",{class:"v-carousel__controls",style:{left:"left"===e.verticalDelimiters&&e.verticalDelimiters?0:"auto",right:"right"===e.verticalDelimiters?0:"auto"}},[r.items.value.length>0&&bo(S$,{defaults:{VBtn:{color:e.color,icon:e.delimiterIcon,size:"x-small",variant:"text"}},scoped:!0},{default:()=>[r.items.value.map((e,t)=>{const a={id:"carousel-item-".concat(e.id),"aria-label":i("$vuetify.carousel.ariaLabel.delimiter",t+1,r.items.value.length),class:["v-carousel__controls__item",r.isSelected(e.id)&&"v-btn--active"],onClick:()=>r.select(e.id,!0)};return n.item?n.item({props:a,item:e}):bo(nJ,Io(e,a),null)})]})]),e.progress&&bo(EY,{absolute:!0,class:"v-carousel__progress",color:"string"==typeof e.progress?e.progress:void 0,modelValue:(r.getItemIndex(a.value)+1)/r.items.value.length*100},null)])},prev:n.prev,next:n.next})}),{}}}),H0=AF({reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},...EF(),...sY(),...hZ()},"VWindowItem"),z0=DF()({name:"VWindowItem",directives:{vTouch:L0},props:H0(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const a=nr(B0),i=lY(e,F0),{isBooted:r}=q$();if(!a||!i)throw new Error("[Vuetify] VWindowItem must be used inside VWindow");const o=rn(!1),s=Zo(()=>
5091r.value&&(a.isReversed.value?!1!==e.reverseTransition:!1!==e.transition));function l(){o.value&&a&&(o.value=!1,a.transitionCount.value>0&&(a.transitionCount.value-=1,0===a.transitionCount.value&&(a.transitionHeight.value=void 0)))}function u(){var e;!o.value&&a&&(o.value=!0,0===a.transitionCount.value&&(a.transitionHeight.value=OL(null==(e=a.rootRef.value)?void 0:e.clientHeight)),a.transitionCount.value+=1)}function c(){l()}function d(e){o.value&&jn(()=>{s.value&&o.value&&a&&(a.transitionHeight.value=OL(e.clientHeight))})}const h=Zo(()=>{const t=a.isReversed.value?e.reverseTransition:e.transition;return!!s.value&&{name:"string"!=typeof t?a.transition.value:t,onBeforeEnter:u,onAfterEnter:l,onEnterCancelled:c,onBeforeLeave:u,onAfterLeave:l,onLeaveCancelled:c,onEnter:d}}),{hasContent:p}=pZ(e,i.isSelected);return GF(()=>bo(D$,{transition:h.value,disabled:!r.value},{default:()=>{var t;return[ta(yo("div",{class:ne(["v-window-item",i.selectedClass.value,e.class]),style:Y(e.style)},[p.value&&(null==(t=n.default)?void 0:t.call(n))]),[[Ls,i.isSelected.value]])]}})),{groupItem:i}}}),K0=AF({...F$(),...H0()},"VCarouselItem"),W0=DF()({name:"VCarouselItem",inheritAttrs:!1,props:K0(),setup(e,t){let{slots:n,attrs:a}=t;GF(()=>{const t=V$.filterProps(e),i=z0.filterProps(e);return bo(z0,Io({class:["v-carousel-item",e.class]},i),{default:()=>[bo(V$,Io(a,t),n)]})})}}),G0=LF("v-code","code"),q0=RF({name:"VColorPickerCanvas",props:AF({color:{type:Object},disabled:Boolean,dotSize:{type:[Number,String],default:10},height:{type:[Number,String],default:150},width:{type:[Number,String],default:300},...EF()},"VColorPickerCanvas")(),emits:{"update:color":e=>!0,"update:position":e=>!0},setup(e,t){let{emit:n}=t;const a=rn(!1),i=an(),r=rn(parseFloat(e.width)),o=rn(parseFloat(e.height)),s=an({x:0,y:0}),l=Zo({get:()=>s.value,set(t){var a,l,u,c;if(!i.value)return;const{x:d,y:h}=t;s.value=t,n("update:color",{h:null!=(l=null==(a=e.color)?void 0:a.h)?l:0,s:YL(d,0,r.value)/r.value,v:1-YL(h,0,o.value)/o.value,a:null!=(c=null==(u=e.color)?void 0:u.a)?c:1})}}),u=Zo(()=>{const{x:t,y:n}=l.value,a=parseInt(e.dotSize,10)/2;return{width:OL(e.dotSize),height:OL(e.dotSize),transform:"translate(".concat(OL(t-a),", ").concat(OL(n-a),")")}}),{resizeRef:c}=uX(e=>{var t;if(!(null==(t=c.el)?void 0:t.offsetParent))return;const{width:n,height:a}=e[0].contentRect;r.value=n,o.value=a});function d(t){"mousedown"===t.type&&t.preventDefault(),e.disabled||(h(t),window.addEventListener("mousemove",h),window.addEventListener("mouseup",p),window.addEventListener("touchmove",h),window.addEventListener("touchend",p))}function h(t){if(e.disabled||!i.value)return;a.value=!0;const n=function(e){return"touches"in e?{clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}:{clientX:e.clientX,clientY:e.clientY}}(t);!function(e,t,n){const{left:a,top:i,width:r,height:o}=n;l.value={x:YL(e-a,0,r),y:YL(t-i,0,o)}}(n.clientX,n.clientY,i.value.getBoundingClientRect())}function p(){window.removeEventListener("mousemove",h),window.removeEventListener("mouseup",p),window.removeEventListener("touchmove",h),window.removeEventListener("touchend",p)}function f(){var t,n;if(!i.value)return;const a=i.value,r=a.getContext("2d");if(!r)return;const o=r.createLinearGradient(0,0,a.width,0);o.addColorStop(0,"hsla(0, 0%, 100%, 1)"),o.addColorStop(1,"hsla(".concat(null!=(n=null==(t=e.color)?void 0:t.h)?n:0,", 100%, 50%, 1)")),r.fillStyle=o,r.fillRect(0,0,a.width,a.height);const s=r.createLinearGradient(0,0,0,a.height);s.addColorStop(0,"hsla(0, 0%, 0%, 0)"),s.addColorStop(1,"hsla(0, 0%, 0%, 1)"),r.fillStyle=s,r.fillRect(0,0,a.width,a.height)}return Mr(()=>{var t;return null==(t=e.color)?void 0:t.h},f,{immediate:!0}),Mr(()=>[r.value,o.value],(e,t)=>{f(),s.value={x:l.value.x*e[0]/t[0],y:l.value.y*e[1]/t[1]}},{flush:"post"}),Mr(()=>e.color,()=>{a.value?a.value=!1:s.value=e.color?{x:e.color.s*r.value,y:(1-e.color.v)*o.value}:{x:0,y:0}},{deep:!0,immediate:!0}),hi(()=>f()),GF(()=>yo("div",{ref:c,class:ne(["v-color-picker-canvas",e.class]),style:Y(e.style),onMousedown:d,onTouchstartPassive:d},[yo("canvas",{ref:i,width:r.value,height:o.value},null),e.color&&yo("div",{class:ne(["v-color-picker-canvas__dot",{"v-color-picker-canvas__dot--disabled":e.disabled}]),style:Y(u.value)},null)])),{}}});const $0={h:0,s:0,v:0,a:1},Y0={inputProps:{type:"number",min:0},inputs:[{label:"R",max:255,step:1,getValue:e=>Math.round(e.r),getColor:(e,t)=>
5091({...e,r:Number(t)}),localeKey:"redInput"},{label:"G",max:255,step:1,getValue:e=>Math.round(e.g),getColor:(e,t)=>({...e,g:Number(t)}),localeKey:"greenInput"},{label:"B",max:255,step:1,getValue:e=>Math.round(e.b),getColor:(e,t)=>({...e,b:Number(t)}),localeKey:"blueInput"},{label:"A",max:1,step:.01,getValue:e=>{let{a:t}=e;return null!=t?Math.round(100*t)/100:1},getColor:(e,t)=>({...e,a:Number(t)}),localeKey:"alphaInput"}],to:cF,from:hF},J0={inputProps:{type:"number",min:0},inputs:[{label:"H",max:360,step:1,getValue:e=>Math.round(e.h),getColor:(e,t)=>({...e,h:Number(t)}),localeKey:"hueInput"},{label:"S",max:1,step:.01,getValue:e=>Math.round(100*e.s)/100,getColor:(e,t)=>({...e,s:Number(t)}),localeKey:"saturationInput"},{label:"L",max:1,step:.01,getValue:e=>Math.round(100*e.l)/100,getColor:(e,t)=>({...e,l:Number(t)}),localeKey:"lightnessInput"},{label:"A",max:1,step:.01,getValue:e=>{let{a:t}=e;return null!=t?Math.round(100*t)/100:1},getColor:(e,t)=>({...e,a:Number(t)}),localeKey:"alphaInput"}],to:pF,from:fF},Q0={inputProps:{type:"text"},inputs:[{label:"HEXA",getValue:e=>e,getColor:(e,t)=>t,localeKey:"hexaInput"}],to:_F,from:function(e){return hF(bF(e))}},Z0={rgb:{...Y0,inputs:null==(e=Y0.inputs)?void 0:e.slice(0,3)},rgba:Y0,hsl:{...J0,inputs:J0.inputs.slice(0,3)},hsla:J0,hex:{...Q0,inputs:[{label:"HEX",getValue:e=>e.slice(0,7),getColor:(e,t)=>t,localeKey:"hexInput"}]},hexa:Q0},e1=e=>{let{label:t,...n}=e;return yo("div",{class:"v-color-picker-edit__input"},[yo("input",ae(_o(n)),null),yo("span",null,[t])])},t1=RF({name:"VColorPickerEdit",props:AF({color:Object,disabled:Boolean,mode:{type:String,default:"rgba",validator:e=>Object.keys(Z0).includes(e)},modes:{type:Array,default:()=>Object.keys(Z0),validator:e=>Array.isArray(e)&&e.every(e=>Object.keys(Z0).includes(e))},...EF()},"VColorPickerEdit")(),emits:{"update:color":e=>!0,"update:mode":e=>!0},setup(e,t){let{emit:n}=t;const{t:a}=rV(),i=Zo(()=>e.modes.map(e=>({...Z0[e],name:e}))),r=Zo(()=>{var t;const r=i.value.find(t=>t.name===e.mode);if(!r)return[];const o=e.color?r.to(e.color):null;return null==(t=r.inputs)?void 0:t.map(t=>{let{getValue:i,getColor:s,localeKey:l,...u}=t;return{...r.inputProps,...u,ariaLabel:a("$vuetify.colorPicker.ariaLabel.".concat(l)),disabled:e.disabled,value:o&&i(o),onChange:e=>{const t=e.target;t&&n("update:color",r.from(s(null!=o?o:r.to($0),t.value)))}}})});return GF(()=>{var t;return yo("div",{class:ne(["v-color-picker-edit",e.class]),style:Y(e.style)},[null==(t=r.value)?void 0:t.map(e=>bo(e1,e,null)),i.value.length>1&&bo(nJ,{icon:"$unfold",size:"x-small",variant:"plain","aria-label":a("$vuetify.colorPicker.ariaLabel.changeFormat"),onClick:()=>{const t=i.value.findIndex(t=>t.name===e.mode);n("update:mode",i.value[(t+1)%i.value.length].name)}},null)])}),{}}}),n1=Symbol.for("vuetify:v-slider");function a1(e,t,n){const a="vertical"===n,i=t.getBoundingClientRect(),r="touches"in e?e.touches[0]:e;return a?r.clientY-(i.top+i.height/2):r.clientX-(i.left+i.width/2)}const i1=AF({disabled:{type:Boolean,default:null},error:Boolean,readonly:{type:Boolean,default:null},max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:0},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:e=>"boolean"==typeof e||"always"===e},thumbSize:{type:[Number,String],default:20},showTicks:{type:[Boolean,String],default:!1,validator:e=>"boolean"==typeof e||"always"===e},ticks:{type:[Array,Object]},tickSize:{type:[Number,String],default:2},color:String,trackColor:String,trackFillColor:String,trackSize:{type:[Number,String],default:4},direction:{type:String,default:"horizontal",validator:e=>["vertical","horizontal"].includes(e)},reverse:Boolean,noKeyboard:Boolean,...M$(),...U$({elevation:2}),ripple:{type:Boolean,default:!0}},"Slider"),r1=e=>{const t=Zo(()=>parseFloat(e.min)),n=Zo(()=>parseFloat(e.max)),a=Zo(()=>Number(e.step)>0?parseFloat(e.step):0),i=Zo(()=>Math.max(JL(a.value),JL(t.value)));return{min:t,max:n,step:a,decimals:i,roundValue:function(e){if(e=parseFloat(e),a.value<=0)return e;const r=YL(e,t.value,n.value),o=t.value%a.value;
5091let s=Math.round((r-o)/a.value)*a.value+o;return r>s&&s+a.value>n.value&&(s=n.value),parseFloat(Math.min(s,n.value).toFixed(i.value))}}},o1=e=>{let{props:t,steps:n,onSliderStart:a,onSliderMove:i,onSliderEnd:r,getActiveThumb:o}=e;const s=NJ(t),{isRtl:l}=sV(),u=gn(()=>t.reverse),c=Zo(()=>"vertical"===t.direction),d=Zo(()=>c.value!==u.value),{min:h,max:p,step:f,decimals:m,roundValue:v}=n,g=Zo(()=>parseInt(t.thumbSize,10)),y=Zo(()=>parseInt(t.tickSize,10)),b=Zo(()=>parseInt(t.trackSize,10)),_=Zo(()=>(p.value-h.value)/f.value),w=Zo(()=>{var e;return t.error||s.isDisabled.value?void 0:null!=(e=t.thumbColor)?e:t.color}),k=Zo(()=>t.error||s.isDisabled.value?void 0:t.thumbColor),C=Zo(()=>{var e;return t.error||s.isDisabled.value?void 0:null!=(e=t.trackColor)?e:t.color}),S=Zo(()=>{var e;return t.error||s.isDisabled.value?void 0:null!=(e=t.trackFillColor)?e:t.color}),T=rn(!1),A=rn(0),E=an(),I=an();function x(e){var n;const a=null==(n=E.value)?void 0:n.$el;if(!a)return;const i="vertical"===t.direction,r=i?"top":"left",o=i?"height":"width",s=i?"clientY":"clientX",{[r]:u,[o]:c}=a.getBoundingClientRect(),f=function(e,t){return"touches"in e&&e.touches.length?e.touches[0][t]:"changedTouches"in e&&e.changedTouches.length?e.changedTouches[0][t]:e[t]}(e,s);let m=YL((f-u-A.value)/c)||0;return(i?d.value:d.value!==l.value)&&(m=1-m),v(h.value+m*(p.value-h.value))}const N=e=>{const t=x(e);null!=t&&r({value:t}),T.value=!1,A.value=0},P=e=>{const n=x(e);I.value=o(e),I.value&&(T.value=!0,I.value.contains(e.target)?A.value=a1(e,I.value,t.direction):(A.value=0,null!=n&&i({value:n})),null!=n&&a({value:n}),jn(()=>{var e;return null==(e=I.value)?void 0:e.focus()}))},M={passive:!0,capture:!0};function O(e){const t=x(e);null!=t&&i({value:t})}function R(e){e.stopPropagation(),e.preventDefault(),N(e),window.removeEventListener("mousemove",O,M),window.removeEventListener("mouseup",R)}function D(e){var t;N(e),window.removeEventListener("touchmove",O,M),null==(t=e.target)||t.removeEventListener("touchend",D)}const L=e=>{const t=(e-h.value)/(p.value-h.value)*100;return YL(isNaN(t)?0:t,0,100)},B=gn(()=>t.showTicks),F=Zo(()=>B.value?t.ticks?Array.isArray(t.ticks)?t.ticks.map(e=>({value:e,position:L(e),label:e.toString()})):Object.keys(t.ticks).map(e=>({value:parseFloat(e),position:L(parseFloat(e)),label:t.ticks[e]})):_.value!==1/0?ML(_.value+1).map(e=>{const t=h.value+e*f.value;return{value:t,position:L(t)}}):[]:[]),V=Zo(()=>F.value.some(e=>{let{label:t}=e;return!!t})),X={activeThumbRef:I,color:gn(()=>t.color),decimals:m,disabled:s.isDisabled,direction:gn(()=>t.direction),elevation:gn(()=>t.elevation),hasLabels:V,isReversed:u,indexFromEnd:d,min:h,max:p,mousePressed:T,noKeyboard:gn(()=>t.noKeyboard),numTicks:_,onSliderMousedown:function(e){0===e.button&&(e.preventDefault(),P(e),window.addEventListener("mousemove",O,M),window.addEventListener("mouseup",R,{passive:!1}))},onSliderTouchstart:function(e){var t;P(e),window.addEventListener("touchmove",O,M),null==(t=e.target)||t.addEventListener("touchend",D,{passive:!1})},parsedTicks:F,parseMouseMove:x,position:L,readonly:s.isReadonly,rounded:gn(()=>t.rounded),roundValue:v,showTicks:B,startOffset:A,step:f,thumbSize:g,thumbColor:w,thumbLabelColor:k,thumbLabel:gn(()=>t.thumbLabel),ticks:gn(()=>t.ticks),tickSize:y,trackColor:C,trackContainerRef:E,trackFillColor:S,trackSize:b,vertical:c};return tr(n1,X),X},s1=AF({focused:Boolean,max:{type:Number,required:!0},min:{type:Number,required:!0},modelValue:{type:Number,required:!0},position:{type:Number,required:!0},ripple:{type:[Boolean,Object],default:!0},name:String,noKeyboard:Boolean,...EF()},"VSliderThumb"),l1=DF()({name:"VSliderThumb",directives:{vRipple:eJ},props:s1(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n,emit:a}=t;const i=nr(n1),{isRtl:r,rtlClasses:o}=sV();if(!i)throw new Error("[Vuetify] v-slider-thumb must be used inside v-slider or v-range-slider");const{min:s,max:l,thumbColor:u,thumbLabelColor:c,step:d,disabled:h,thumbSize:p,thumbLabel:f,direction:m,isReversed:v,vertical:g,readonly:y,elevation:b,mousePressed:_,decimals:w,indexFromEnd:k}=i,C=Zo(()=>h.value?void 0:b.value),{elevationClasses:S}=H$(C),{textColorClasses:T,textColorStyles:A}=N$(u),{backgroundColorClasses:E,backgroundColorStyles:I}
5091=P$(c),{pageup:x,pagedown:N,end:P,home:M,left:O,right:R,down:D,up:L}=BL,B=[x,N,P,M,O,R,D,L],F=Zo(()=>d.value?[1,2,3]:[1,5,10]);function V(t){const n=function(t,n){if(e.noKeyboard)return;if(!B.includes(t.key))return;t.preventDefault();const a=d.value||.1,i=(l.value-s.value)/a;if([O,R,D,L].includes(t.key)){const e=(g.value?[r.value?O:R,v.value?D:L]:k.value!==r.value?[O,L]:[R,L]).includes(t.key)?1:-1,o=t.shiftKey?2:t.ctrlKey?1:0;-1!==e||n!==l.value||o||Number.isInteger(i)?n+=e*a*F.value[o]:n-=i%1*a}else t.key===M?n=s.value:t.key===P?n=l.value:n-=(t.key===N?1:-1)*a*(i>100?i/10:10);return Math.max(e.min,Math.min(e.max,n))}(t,e.modelValue);null!=n&&a("update:modelValue",n)}return GF(()=>{const t=OL(k.value?100-e.position:e.position,"%");return yo("div",{class:ne(["v-slider-thumb",{"v-slider-thumb--focused":e.focused,"v-slider-thumb--pressed":e.focused&&_.value},e.class,o.value]),style:Y([{"--v-slider-thumb-position":t,"--v-slider-thumb-size":OL(p.value)},e.style]),role:"slider",tabindex:h.value?-1:0,"aria-label":e.name,"aria-valuemin":s.value,"aria-valuemax":l.value,"aria-valuenow":e.modelValue,"aria-readonly":!!y.value,"aria-orientation":m.value,onKeydown:y.value?void 0:V},[yo("div",{class:ne(["v-slider-thumb__surface",T.value,S.value]),style:Y(A.value)},null),ta(yo("div",{class:ne(["v-slider-thumb__ripple",T.value]),style:Y(A.value)},null),[[eJ,e.ripple,null,{circle:!0,center:!0}]]),bo(h$,{origin:"bottom center"},{default:()=>{var t,a;return[ta(yo("div",{class:"v-slider-thumb__label-container"},[yo("div",{class:ne(["v-slider-thumb__label",E.value]),style:Y(I.value)},[yo("div",null,[null!=(a=null==(t=n["thumb-label"])?void 0:t.call(n,{modelValue:e.modelValue}))?a:e.modelValue.toFixed(d.value?w.value:1)]),yo("div",{class:"v-slider-thumb__label-wedge"},null)])]),[[Ls,f.value&&e.focused||"always"===f.value]])]}})])}),{}}}),u1=AF({start:{type:Number,required:!0},stop:{type:Number,required:!0},...EF()},"VSliderTrack"),c1=DF()({name:"VSliderTrack",props:u1(),emits:{},setup(e,t){let{slots:n}=t;const a=nr(n1);if(!a)throw new Error("[Vuetify] v-slider-track must be inside v-slider or v-range-slider");const{color:i,parsedTicks:r,rounded:o,showTicks:s,tickSize:l,trackColor:u,trackFillColor:c,trackSize:d,vertical:h,min:p,max:f,indexFromEnd:m}
5091=a,{roundedClasses:v}=O$(o),{backgroundColorClasses:g,backgroundColorStyles:y}=P$(c),{backgroundColorClasses:b,backgroundColorStyles:_}=P$(u),w=Zo(()=>"inset-".concat(h.value?"block":"inline","-").concat(m.value?"end":"start")),k=Zo(()=>h.value?"height":"width"),C=Zo(()=>({[w.value]:"0%",[k.value]:"100%"})),S=Zo(()=>e.stop-e.start),T=Zo(()=>({[w.value]:OL(e.start,"%"),[k.value]:OL(S.value,"%")})),A=Zo(()=>{if(!s.value)return[];return(h.value?r.value.slice().reverse():r.value).map((t,a)=>{var i,r;const o=t.value!==p.value&&t.value!==f.value?OL(t.position,"%"):void 0;return yo("div",{key:t.value,class:ne(["v-slider-track__tick",{"v-slider-track__tick--filled":t.position>=e.start&&t.position<=e.stop,"v-slider-track__tick--first":t.value===p.value,"v-slider-track__tick--last":t.value===f.value}]),style:{[w.value]:o}},[(t.label||n["tick-label"])&&yo("div",{class:"v-slider-track__tick-label"},[null!=(r=null==(i=n["tick-label"])?void 0:i.call(n,{tick:t,index:a}))?r:t.label])])})});return GF(()=>yo("div",{class:ne(["v-slider-track",v.value,e.class]),style:Y([{"--v-slider-track-size":OL(d.value),"--v-slider-tick-size":OL(l.value)},e.style])},[yo("div",{class:ne(["v-slider-track__background",b.value,{"v-slider-track__background--opacity":!!i.value||!c.value}]),style:{...C.value,..._.value}},null),yo("div",{class:ne(["v-slider-track__fill",g.value]),style:{...T.value,...y.value}},null),s.value&&yo("div",{class:ne(["v-slider-track__ticks",{"v-slider-track__ticks--always-show":"always"===s.value}])},[A.value])])),{}}}),d1=AF({...AJ(),...i1(),...RJ(),modelValue:{type:[Number,String],default:0}},"VSlider"),h1=DF()({name:"VSlider",props:d1(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,start:e=>!0,end:e=>!0},setup(e,t){let{slots:n,emit:a}=t;const i=an(),r=an(),{rtlClasses:o}=sV(),s=r1(e),l=qF(e,"modelValue",void 0,e=>s.roundValue(null==e?s.min.value:e)),{min:u,max:c,mousePressed:d,roundValue:h,onSliderMousedown:p,onSliderTouchstart:f,trackContainerRef:m,position:v,hasLabels:g,disabled:y,readonly:b,noKeyboard:_}=o1({props:e,steps:s,onSliderStart:()=>{a("start",l.value)},onSliderEnd:e=>{let{value:t}=e;const n=h(t);l.value=n,a("end",n)},onSliderMove:e=>{let{value:t}=e;return l.value=h(t)},getActiveThumb:()=>{var e;return null==(e=i.value)?void 0:e.$el}}),{isFocused:w,focus:k,blur:C}=EJ(e),S=Zo(()=>v(l.value));return GF(()=>{const t=DJ.filterProps(e),a=!!(e.label||n.label||n.prepend);return bo(DJ,Io({ref:r,class:["v-slider",{"v-slider--has-labels":!!n["tick-label"]||g.value,"v-slider--focused":w.value,"v-slider--pressed":d.value,"v-slider--disabled":e.disabled},o.value,e.class],style:e.style},t,{focused:w.value}),{...n,prepend:a?t=>{var a,i,r;return yo(eo,null,[null!=(i=null==(a=n.label)?void 0:a.call(n,t))?i:e.label?bo(fJ,{id:t.id.value,class:"v-slider__label",text:e.label},null):void 0,null==(r=n.prepend)?void 0:r.call(n,t)])}:void 0,default:t=>{let{id:a,messagesId:r}=t;return yo("div",{class:"v-slider__container",onMousedown:b.value?void 0:p,onTouchstartPassive:b.value?void 0:f},[yo("input",{id:a.value,name:e.name||a.value,disabled:!!y.value,readonly:!!b.value,tabindex:"-1",value:l.value},null),bo(c1,{ref:m,start:0,stop:S.value},{"tick-label":n["tick-label"]}),bo(l1,{ref:i,"aria-describedby":r.value,focused:w.value,noKeyboard:_.value,min:u.value,max:c.value,modelValue:l.value,"onUpdate:modelValue":e=>l.value=e,position:S.value,elevation:e.elevation,onFocus:k,onBlur:C,ripple:e.ripple,name:e.name},{"thumb-label":n["thumb-label"]})])}})}),FJ({focus:()=>{var e;return null==(e=i.value)?void 0:e.$el.focus()}},r)}}),p1=AF({color:{type:Object},disabled:Boolean,hideAlpha:Boolean,hideEyeDropper:Boolean,eyeDropperIcon:{type:zV,default:"$eyeDropper"},...EF()},"VColorPickerPreview"),f1=RF({name:"VColorPickerPreview",props:p1(),emits:{"update:color":e=>!0},setup(e,t){let{emit:n}=t;const{t:a}=rV(),i=new AbortController;async function r(){var t;if(!wL||e.disabled)return;const a=new window.EyeDropper;try{const r=hF(uF((await a.open({signal:i.signal})).sRGBHex));n("update:color",{...null!=(t=e.color)?t:$0,...r})}catch(w7){}}return vi(()=>i.abort()),GF(()=>{var t,i,o,s;return yo("div",{class:ne(["v-color-picker-preview",{"v-color-picker-preview--hide-alpha":e.hideAlpha},e.class]),style:Y(e.style)}
5091,[wL&&!e.hideEyeDropper&&yo("div",{class:"v-color-picker-preview__eye-dropper",key:"eyeDropper"},[bo(nJ,{"aria-label":a("$vuetify.colorPicker.ariaLabel.eyedropper"),density:"comfortable",disabled:e.disabled,icon:e.eyeDropperIcon,variant:"plain",onClick:r},null)]),yo("div",{class:"v-color-picker-preview__dot"},[yo("div",{style:{background:vF(null!=(t=e.color)?t:$0)}},null)]),yo("div",{class:"v-color-picker-preview__sliders"},[bo(h1,{class:"v-color-picker-preview__track v-color-picker-preview__hue",name:a("$vuetify.colorPicker.ariaLabel.hueSlider"),modelValue:null==(i=e.color)?void 0:i.h,"onUpdate:modelValue":t=>{var a;return n("update:color",{...null!=(a=e.color)?a:$0,h:t})},step:0,min:0,max:360,disabled:e.disabled,thumbSize:14,trackSize:8,trackFillColor:"white",hideDetails:!0},null),!e.hideAlpha&&bo(h1,{class:"v-color-picker-preview__track v-color-picker-preview__alpha",name:a("$vuetify.colorPicker.ariaLabel.alphaSlider"),modelValue:null!=(s=null==(o=e.color)?void 0:o.a)?s:1,"onUpdate:modelValue":t=>{var a;return n("update:color",{...null!=(a=e.color)?a:$0,a:t})},step:1/256,min:0,max:1,disabled:e.disabled,thumbSize:14,trackSize:8,trackFillColor:"white",hideDetails:!0},null)])])}),{}}}),m1={red:{base:"#f44336",lighten5:"#ffebee",lighten4:"#ffcdd2",lighten3:"#ef9a9a",lighten2:"#e57373",lighten1:"#ef5350",darken1:"#e53935",darken2:"#d32f2f",darken3:"#c62828",darken4:"#b71c1c",accent1:"#ff8a80",accent2:"#ff5252",accent3:"#ff1744",accent4:"#d50000"},pink:{base:"#e91e63",lighten5:"#fce4ec",lighten4:"#f8bbd0",lighten3:"#f48fb1",lighten2:"#f06292",lighten1:"#ec407a",darken1:"#d81b60",darken2:"#c2185b",darken3:"#ad1457",darken4:"#880e4f",accent1:"#ff80ab",accent2:"#ff4081",accent3:"#f50057",accent4:"#c51162"},purple:{base:"#9c27b0",lighten5:"#f3e5f5",lighten4:"#e1bee7",lighten3:"#ce93d8",lighten2:"#ba68c8",lighten1:"#ab47bc",darken1:"#8e24aa",dar
5091ken2:"#7b1fa2",darken3:"#6a1b9a",darken4:"#4a148c",accent1:"#ea80fc",accent2:"#e040fb",accent3:"#d500f9",accent4:"#aa00ff"},deepPurple:{base:"#673ab7",lighten5:"#ede7f6",lighten4:"#d1c4e9",lighten3:"#b39ddb",lighten2:"#9575cd",lighten1:"#7e57c2",darken1:"#5e35b1",darken2:"#512da8",darken3:"#4527a0",darken4:"#311b92",accent1:"#b388ff",accent2:"#7c4dff",accent3:"#651fff",accent4:"#6200ea"},indigo:{base:"#3f51b5",lighten5:"#e8eaf6",lighten4:"#c5cae9",lighten3:"#9fa8da",lighten2:"#7986cb",lighten1:"#5c6bc0",darken1:"#3949ab",darken2:"#303f9f",darken3:"#283593",darken4:"#1a237e",accent1:"#8c9eff",accent2:"#536dfe",accent3:"#3d5afe",accent4:"#304ffe"},blue:{base:"#2196f3",lighten5:"#e3f2fd",lighten4:"#bbdefb",lighten3:"#90caf9",lighten2:"#64b5f6",lighten1:"#42a5f5",darken1:"#1e88e5",darken2:"#1976d2",darken3:"#1565c0",darken4:"#0d47a1",accent1:"#82b1ff",accent2:"#448aff",accent3:"#2979ff",accent4:"#2962ff"},lightBlue:{base:"#03a9f4",lighten5:"#e1f5fe",lighten4:"#b3e5fc",lighten3:"#81d4fa",lighten2:"#4fc3f7",lighten1:"#29b6f6",darken1:"#039be5",darken2:"#0288d1",darken3:"#0277bd",darken4:"#01579b",accent1:"#80d8ff",accent2:"#40c4ff",accent3:"#00b0ff",accent4:"#0091ea"},cyan:{base:"#00bcd4",lighten5:"#e0f7fa",lighten4:"#b2ebf2",lighten3:"#80deea",lighten2:"#4dd0e1",lighten1:"#26c6da",darken1:"#00acc1",darken2:"#0097a7",darken3:"#00838f",darken4:"#006064",accent1:"#84ffff",accent2:"#18ffff",accent3:"#00e5ff",accent4:"#00b8d4"},teal:{base:"#009688",lighten5:"#e0f2f1",lighten4:"#b2dfdb",lighten3:"#80cbc4",lighten2:"#4db6ac",lighten1:"#26a69a",darken1:"#00897b",darken2:"#00796b",darken3:"#00695c",darken4:"#004d40",accent1:"#a7ffeb",accent2:"#64ffda",accent3:"#1de9b6",accent4:"#00bfa5"},green:{base:"#4caf50",lighten5:"#e8f5e9",lighten4:"#c8e6c9",lighten3:"#a5d6a7",lighten2:"#81c784",lighten1:"#66bb6a",darken1:"#43a047",darken2:"#388e3c",darken3:"#2e7d32",darken4:"#1b5e20",accent1:"#b9f6ca",accent2:"#69f0ae",accent3:"#00e676",accent4:"#00c853"},lightGreen:{base:"#8bc34a",lighten5:"#f1f8e9",lighten4:"#dcedc8",lighten3:"#c5e1a5",lighten2:"#aed581",lighten1:"#9ccc65",darken1:"#7cb342",darken2:"#689f38",darken3:"#558b2f",darken4:"#33691e",accent1:"#ccff90",accent2:"#b2ff59",accent3:"#76ff03",accent4:"#64dd17"},lime:{base:"#cddc39",lighten5:"#f9fbe7",lighten4:"#f0f4c3",lighten3:"#e6ee9c",lighten2:"#dce775",lighten1:"#d4e157",darken1:"#c0ca33",darken2:"#afb42b",darken3:"#9e9d24",darken4:"#827717",accent1:"#f4ff81",accent2:"#eeff41",accent3:"#c6ff00",accent4:"#aeea00"},yellow:{base:"#ffeb3b",lighten5:"#fffde7",lighten4:"#fff9c4",lighten3:"#fff59d",lighten2:"#fff176",lighten1:"#ffee58",darken1:"#fdd835",darken2:"#fbc02d",darken3:"#f9a825",darken4:"#f57f17",accent1:"#ffff8d",accent2:"#ffff00",accent3:"#ffea00",accent4:"#ffd600"},amber:{base:"#ffc107",lighten5:"#fff8e1",lighten4:"#ffecb3",lighten3:"#ffe082",lighten2:"#ffd54f",lighten1:"#ffca28",darken1:"#ffb300",darken2:"#ffa000",darken3:"#ff8f00",darken4:"#ff6f00",accent1:"#ffe57f",accent2:"#ffd740",accent3:"#ffc400",accent4:"#ffab00"},orange:{base:"#ff9800",lighten5:"#fff3e0",lighten4:"#ffe0b2",lighten3:"#ffcc80",lighten2:"#ffb74d",lighten1:"#ffa726",darken1:"#fb8c00",darken2:"#f57c00",darken3:"#ef6c00",darken4:"#e65100",accent1:"#ffd180",accent2:"#ffab40",accent3:"#ff9100",accent4:"#ff6d00"},deepOrange:{base:"#ff5722",lighten5:"#fbe9e7",lighten4:"#ffccbc",lighten3:"#ffab91",lighten2:"#ff8a65",lighten1:"#ff7043",darken1:"#f4511e",darken2:"#e64a19",darken3:"#d84315",darken4:"#bf360c",accent1:"#ff9e80",accent2:"#ff6e40",accent3:"#ff3d00",accent4:"#dd2c00"},brown:{base:"#795548",lighten5:"#efebe9",lighten4:"#d7ccc8",lighten3:"#bcaaa4",lighten2:"#a1887f",lighten1:"#8d6e63",darken1:"#6d4c41",darken2:"#5d4037",darken3:"#4e342e",darken4:"#3e2723"},blueGrey:{base:"#607d8b",lighten5:"#eceff1",lighten4:"#cfd8dc",lighten3:"#b0bec5",lighten2:"#90a4ae",lighten1:"#78909c",darken1:"#546e7a",darken2:"#455a64",darken3:"#37474f",darken4:"#263238"},grey:{base:"#9e9e9e",lighten5:"#fafafa",lighten4:"#f5f5f5",lighten3:"#eeeeee",lighten2:"#e0e0e0",lighten1:"#bdbdbd",darken1:"#757575",darken2:"#616161",darken3:"#424242",darken4:"#212121"},shades:{black:"#000000",white:"#ffffff",transparent:"#ffffff00"}};const v1=RF({name:"VColorPickerSwatches",props:AF({swatches:{type:Array,default:()=>{return e=m1,Object.keys(e).map(t=>{const n=e[t];return n.base?[n.base,n.darken4,n.darken3,n.darken2,n.darken1,n.lighten1,n.lighten2,n.lighten3,n.lighten4,n.lighten5]:[n.black,n.white,n.transparent]});var e}},disabled:Boolean,color:Object,maxHeight:[Number,String],...EF()},"VColorPickerSwatches")(),emits:{"update:color":e=>!0},setup(e,t){let{emit:n}=t;return GF(()=>yo("div",{class:ne(["v-color-picker-swatches",e.class]),style:Y([{maxHeight:OL(e.maxHeight)},e.style])},[yo("div",null,[e.swatches.map(t=>yo("div",{class:"v-color-picker-swatches__swatch"},[t.map(t=>{const a=uF(t),i=hF(a);
5091return yo("div",{class:"v-color-picker-swatches__color",onClick:()=>i&&n("update:color",i)},[yo("div",{style:{background:mF(a)}},[e.color&&xL(e.color,i)?bo(yY,{size:"x-small",icon:"$success",color:SF(t,"#FFFFFF")>2?"white":"black"},null):void 0])])})]))])])),{}}}),g1=LF("v-picker-title"),y1=AF({color:String,...X$(),...EF(),...T$(),...U$(),...CY(),...MY(),...M$(),...Yq(),...ZV()},"VSheet"),b1=DF()({name:"VSheet",props:y1(),setup(e,t){let{slots:n}=t;const{themeClasses:a}=sX(e),{backgroundColorClasses:i,backgroundColorStyles:r}=P$(()=>e.color),{borderClasses:o}=j$(e),{dimensionStyles:s}=A$(e),{elevationClasses:l}=H$(e),{locationStyles:u}=SY(e),{positionClasses:c}=OY(e),{roundedClasses:d}=O$(e);return GF(()=>bo(e.tag,{class:ne(["v-sheet",a.value,i.value,o.value,l.value,c.value,d.value,e.class]),style:Y([r.value,s.value,u.value,e.style])},n)),{}}}),_1=AF({bgColor:String,divided:Boolean,landscape:Boolean,title:String,hideHeader:Boolean,hideTitle:Boolean,...y1()},"VPicker"),w1=DF()({name:"VPicker",props:_1(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:a,backgroundColorStyles:i}=P$(()=>e.color);return GF(()=>{const t=b1.filterProps(e),r=!(e.hideTitle||!e.title&&!n.title);return bo(b1,Io(t,{color:e.bgColor,class:["v-picker",{"v-picker--divided":e.divided,"v-picker--landscape":e.landscape,"v-picker--with-actions":!!n.actions},e.class],style:e.style}),{default:()=>{var t;return[!e.hideHeader&&yo("div",{key:"header",class:ne([a.value]),style:Y([i.value])},[r&&bo(g1,{key:"picker-title"},{default:()=>{var t,a;return[null!=(a=null==(t=n.title)?void 0:t.call(n))?a:e.title]}}),n.header&&yo("div",{class:"v-picker__header"},[n.header()])]),yo("div",{class:"v-picker__body"},[null==(t=n.default)?void 0:t.call(n)]),n.actions&&bo(S$,{defaults:{VBtn:{slim:!0,variant:"text"}}},{default:()=>[yo("div",{class:"v-picker__actions"},[n.actions()])]})]}})}),{}}}),k1=RF({name:"VColorPicker",props:AF({canvasHeight:{type:[String,Number],default:150},disabled:Boolean,dotSize:{type:[Number,String],default:10},hideCanvas:Boolean,hideSliders:Boolean,hideInputs:Boolean,mode:{type:String,default:"rgba",validator:e=>Object.keys(Z0).includes(e)},modes:{type:Array,default:()=>Object.keys(Z0),validator:e=>Array.isArray(e)&&e.every(e=>Object.keys(Z0).includes(e))},showSwatches:Boolean,swatches:Array,swatchesMaxHeight:{type:[Number,String],default:150},modelValue:{type:[Object,String]},..._1({hideHeader:!0}),...XL(p1(),["hideEyeDropper","eyeDropperIcon"])},"VColorPicker")(),emits:{"update:modelValue":e=>!0,"update:mode":e=>!0},setup(e,t){let{slots:n}=t;const a=qF(e,"mode"),i=an(null),r=qF(e,"modelValue",void 0,e=>{if(null==e||""===e)return null;let t;try{t=hF(uF(e))}catch(n){return null}return t},t=>t?function(e,t){if(null==t||"string"==typeof t){const n=1!==e.a;if(null==t?void 0:t.startsWith("rgb(")){const{r:t,g:a,b:i,a:r}=cF(e);return"rgb(".concat(t," ").concat(a," ").concat(i)+(n?" / ".concat(r,")"):")")}if(null==t?void 0:t.startsWith("hsl(")){const{h:t,s:a,l:i,a:r}=pF(e);return"hsl(".concat(t," ").concat(Math.round(100*a)," ").concat(Math.round(100*i))+(n?" / ".concat(r,")"):")")}const a=_F(e);return 1===e.a?a.slice(0,7):a}if("object"==typeof t){let n;return VL(t,["r","g","b"])?n=cF(e):VL(t,["h","s","l"])?n=pF(e):VL(t,["h","s","v"])&&(n=e),function(e,t){if(t){const{a:t,...n}=e;return n}return e}(n,!VL(t,["a"])&&1===e.a)}return e}(t,e.modelValue):null),o=Zo(()=>{var e;return r.value?{...r.value,h:null!=(e=i.value)?e:r.value.h}:null}),{rtlClasses:s}=sV();let l=!0;Mr(r,e=>{l?e&&(i.value=e.h):l=!0},{immediate:!0});const u=e=>{l=!1,i.value=e.h,r.value=e};return di(()=>{e.modes.includes(a.value)||(a.value=e.modes[0])}),MF({VSlider:{color:void 0,trackColor:void 0,trackFillColor:void 0}}),GF(()=>{var t;const i=w1.filterProps(e);return bo(w1,Io(i,{class:["v-color-picker",s.value,e.class],style:[{"--v-color-picker-color-hsv":vF({...null!=(t=o.value)?t:$0,a:1})},e.style]}),{...n,default:()=>yo(eo,null,[!e.hideCanvas&&bo(q0,{key:"canvas",color:o.value,"onUpdate:color":u,disabled:e.disabled,dotSize:e.dotSize,width:e.width,height:e.canvasHeight}
5091,null),(!e.hideSliders||!e.hideInputs)&&yo("div",{key:"controls",class:"v-color-picker__controls"},[!e.hideSliders&&bo(f1,{key:"preview",color:o.value,"onUpdate:color":u,hideAlpha:!a.value.endsWith("a"),disabled:e.disabled,hideEyeDropper:e.hideEyeDropper,eyeDropperIcon:e.eyeDropperIcon},null),!e.hideInputs&&bo(t1,{key:"edit",modes:e.modes,mode:a.value,"onUpdate:mode":e=>a.value=e,color:o.value,"onUpdate:color":u,disabled:e.disabled},null)]),e.showSwatches&&bo(v1,{key:"swatches",color:o.value,"onUpdate:color":u,maxHeight:e.swatchesMaxHeight,swatches:e.swatches,disabled:e.disabled},null)])})}),{}}}),C1=AF({alwaysFilter:Boolean,autoSelectFirst:{type:[Boolean,String]},clearOnSelect:{type:Boolean,default:!0},delimiters:Array,...e0({filterKeys:["title"]}),...$Z({hideNoData:!0,returnObject:!0}),...UL(FZ({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...R$({transition:!1})},"VCombobox"),S1=DF()({name:"VCombobox",props:C1(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:search":e=>!0,"update:menu":e=>!0},setup(e,t){var n,a;let{emit:i,slots:r}=t;const{t:o}=rV(),s=an(),l=rn(!1),u=rn(!0),c=rn(!1),d=an(),h=an(),p=rn(-1);let f=!1;const{items:m,transformIn:v,transformOut:g}=OQ(e),{textColorClasses:y,textColorStyles:b}=N$(()=>{var e;return null==(e=s.value)?void 0:e.color}),_=qF(e,"modelValue",[],e=>v(qL(e)),t=>{var n;const a=g(t);return e.multiple?a:null!=(n=a[0])?n:null}),w=NJ(e),k=Zo(()=>!(!e.chips&&!r.chip)),C=Zo(()=>k.value||!!r.selection),S=rn(e.multiple||C.value?"":null!=(a=null==(n=_.value[0])?void 0:n.title)?a:""),T=Zo({get:()=>S.value,set:async t=>{var n;if(S.value=null!=t?t:"",e.multiple||C.value||(_.value=[PQ(e,t)],jn(()=>{var e;return null==(e=h.value)?void 0:e.scrollToIndex(0)})),t&&e.multiple&&(null==(n=e.delimiters)?void 0:n.length)){const n=e.delimiters.map(TB).join("|"),a=t.split(new RegExp("(?:".concat(n,")+")));if(a.length>1){for(let t of a)t=t.trim(),t&&(q(PQ(e,t)),await jn());S.value=""}}t||(p.value=-1),u.value=!t}}),A=Zo(()=>"function"==typeof e.counterValue?e.counterValue(_.value):"number"==typeof e.counterValue?e.counterValue:e.multiple?_.value.length:T.value.length),{filteredItems:E,getMatches:I}=t0(e,m,()=>e.alwaysFilter||!u.value?T.value:""),x=Zo(()=>e.hideSelected?E.value.filter(e=>!_.value.some(t=>t.value===e.value)):E.value),N=Zo(()=>e.hideNoData&&!x.value.length||w.isReadonly.value||w.isDisabled.value),P=qF(e,"menu"),M=Zo({get:()=>P.value,set:e=>{var t;P.value&&!e&&(null==(t=d.value)?void 0:t.ΨopenChildren.size)||e&&N.value||(P.value=e)}}),{menuId:O,ariaExpanded:R,ariaControls:D,ariaLabel:L}=qZ(e,M);Mr(S,e=>{f?jn(()=>f=!1):l.value&&!M.value&&(M.value=!0),i("update:search",e)}),Mr(_,t=>{var n,a;e.multiple||C.value||(S.value=null!=(a=null==(n=t[0])?void 0:n.title)?a:"")});const B=Zo(()=>_.value.map(e=>e.value)),F=Zo(()=>{var t;return(!0===e.autoSelectFirst||"exact"===e.autoSelectFirst&&T.value===(null==(t=x.value[0])?void 0:t.title))&&x.value.length>0&&!u.value&&!c.value}),V=an(),X=WZ(V,s);function j(t){f=!0,jn(()=>f=!1),e.openOnClear&&(M.value=!0)}function U(){N.value||(M.value=!0)}function H(e){N.value||(l.value&&(e.preventDefault(),e.stopPropagation()),M.value=!M.value)}function z(e){var t;(CB(e)||"Backspace"===e.key)&&(null==(t=s.value)||t.focus())}function K(t){var n,a,i,r;if(function(e){return e.isComposing&&WL.includes(e.key)}(t)||w.isReadonly.value)return;const o=null==(n=s.value)?void 0:n.selectionStart,l=_.value.length;if(["Enter","ArrowDown","ArrowUp"].includes(t.key)&&t.preventDefault(),["Enter","ArrowDown"].includes(t.key)&&(M.value=!0),["Escape"].includes(t.key)&&(M.value=!1),["Enter","Escape","Tab"].includes(t.key)&&(F.value&&["Enter","Tab"].includes(t.key)&&!_.value.some(e=>{let{value:t}=e;return t===x.value[0].value})&&q(E.value[0]),u.value=!0),"ArrowDown"===t.key&&F.value&&(null==(a=V.value)||a.focus("next")),"Enter"===t.key&&T.value&&(q(PQ(e,T.value)),C.value&&(S.value="")),["Backspace","Delete"].includes(t.key)){if(!e.multiple&&C.value&&_.value.length>0&&!T.value)return q(_.value[0],!1);if(~p.value){t.preventDefault();const e=p.value;q(_.value[p.value],!1),p.value=e>=l-1?l-2:e}else"Backspace"!==t.key||T.value||(p.value=l-1)}else if(e.multiple)if("ArrowLeft"===t.key){if(p.value<0&&o&&o>0)return;const e=p.value>-1?p.value-1:l-1;_.value[e]?p.value=e:(p.value=-1,null==(i=s.value)||i.setSelectionRange(T.value.length,T.value.length))}else if("ArrowRight"===t.key){if(p.value<0)return;const e=p.value+1;_.value[e]?p.value=e:(p.value=-1,null==(r=s.value)||r.setSelectionRange(0,0))}else~p.value&&CB(t)&&(p.value=-1)}function W(){var t;e.eager&&(null==(t=h.value)||t.calculateVisibleItems())}function G(){var e;l.value&&(u.value=!0,null==(e=s.value)||e.focus())}function q(t){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t&&!t.props.disabled)if(e.multiple){const a=_.value.findIndex(n=>(e.valueComparator||xL)(n.value,t.value)),i=null==n?!~a:n;if(~a){const e=i?[..._.value,t]:[..._.value];e.splice(a,1),_.value=e}else i&&(_.value=[..._.value,t]);e.clearOnSelect&&(T.value="")}else{const e=!1!==n;_.value=e?[t]:[],S.value=e&&!C.value?t.title:"",jn(()=>{M.value=!1,u.value=!0})}}function $(e){l.value=!0,setTimeout(()=>{c.value=!0})}function J(e){c.value=!1}function Q(t){null!=t&&(""!==t||e.multiple||C.value)||(_.value=[])}return Mr(l,(t,n)=>{if(!t&&t!==n&&(p.value=-1,M.value=!1,T.value)){if(e.multiple)return void q(PQ(e,T.value));if(!C.value)return;_.value.some(e=>{let{title:t}=e;return t===T.value})?S.value="":q(PQ(e,T.value))}}),Mr(M,()=>
5091{if(!e.hideSelected&&M.value&&_.value.length){const t=x.value.findIndex(t=>_.value.some(n=>(e.valueComparator||xL)(n.value,t.value)));yL&&window.requestAnimationFrame(()=>{var e;t>=0&&(null==(e=h.value)||e.scrollToIndex(t))})}}),Mr(m,(e,t)=>{M.value||l.value&&!t.length&&e.length&&(M.value=!0)}),GF(()=>{const t=!!(!e.hideNoData||x.value.length||r["prepend-item"]||r["append-item"]||r["no-data"]),n=_.value.length>0,a=VZ.filterProps(e);return bo(VZ,Io({ref:s},a,{modelValue:T.value,"onUpdate:modelValue":[e=>T.value=e,Q],focused:l.value,"onUpdate:focused":e=>l.value=e,validationValue:_.externalValue,counterValue:A.value,dirty:n,class:["v-combobox",{"v-combobox--active-menu":M.value,"v-combobox--chips":!!e.chips,"v-combobox--selection-slot":!!C.value,"v-combobox--selecting-index":p.value>-1,["v-combobox--".concat(e.multiple?"multiple":"single")]:!0},e.class],style:e.style,readonly:w.isReadonly.value,placeholder:n?void 0:e.placeholder,"onClick:clear":j,"onMousedown:control":U,onKeydown:K,"aria-expanded":R.value,"aria-controls":D.value}),{...r,default:()=>yo(eo,null,[bo(AZ,Io({id:O.value,ref:d,modelValue:M.value,"onUpdate:modelValue":e=>M.value=e,activator:"parent",contentClass:"v-combobox__content",disabled:N.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterEnter:W,onAfterLeave:G},e.menuProps),{default:()=>{var n;return[t&&bo(VQ,Io({ref:V,filterable:!0,selected:B.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:e=>e.preventDefault(),selectable:!0,onKeydown:z,onFocusin:$,onFocusout:J,tabindex:"-1","aria-live":"polite",color:null!=(n=e.itemColor)?n:e.color},X,e.listProps),{default:()=>{var t,n,a,i;return[null==(t=r["prepend-item"])?void 0:t.call(r),!x.value.length&&!e.hideNoData&&(null!=(a=null==(n=r["no-data"])?void 0:n.call(r))?a:bo(SQ,{key:"no-data",title:o(e.noDataText)},null)),bo(KZ,{ref:h,renderless:!0,items:x.value,itemKey:"value"},{default:t=>{var n,a,i,o,s,l;let{item:c,index:d,itemRef:h}=t;const p=Io(c.props,{ref:h,key:c.value,active:!(!F.value||0!==d)||void 0,onClick:()=>q(c,null)});return"divider"===c.type?null!=(a=null==(n=r.divider)?void 0:n.call(r,{props:c.raw,index:d}))?a:bo(eQ,Io(c.props,{key:"divider-".concat(d)}),null):"subheader"===c.type?null!=(o=null==(i=r.subheader)?void 0:i.call(r,{props:c.raw,index:d}))?o:bo(AQ,Io(c.props,{key:"subheader-".concat(d)}),null):null!=(l=null==(s=r.item)?void 0:s.call(r,{item:c,index:d,props:p}))?l:bo(SQ,Io(p,{role:"option"}),{prepend:t=>{let{isSelected:n}=t;return yo(eo,null,[e.multiple&&!e.hideSelected?bo(kJ,{key:c.value,modelValue:n,ripple:!1,tabindex:"-1"},null):void 0,c.props.prependAvatar&&bo(hJ,{image:c.props.prependAvatar},null),c.props.prependIcon&&bo(yY,{icon:c.props.prependIcon},null)])},title:()=>{var e;return u.value?c.title:n0("v-combobox",c.title,null==(e=I(c))?void 0:e.title)}})}}),null==(i=r["append-item"])?void 0:i.call(r)]}})]}}),_.value.map((t,n)=>{function a(e){e.stopPropagation(),e.preventDefault(),q(t,!1)}const i={"onClick:close":a,onKeydown(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.stopPropagation(),a(e))},onMousedown(e){e.preventDefault(),e.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},o=k.value?!!r.chip:!!r.selection,s=o?_B(k.value?r.chip({item:t,index:n,props:i}):r.selection({item:t,index:n})):void 0;if(!o||s)return yo("div",{key:t.value,class:ne(["v-combobox__selection",n===p.value&&["v-combobox__selection--selected",y.value]]),style:Y(n===p.value?b.value:{})},[k.value?r.chip?bo(S$,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:t.title}}},{default:()=>[s]}):bo(QJ,Io({key:"chip",closable:e.closableChips,size:"small",text:t.title,disabled:t.props.disabled},i),null):null!=s?s:yo("span",{class:"v-combobox__selection-text"},[t.title,e.multiple&&n<_.value.length-1&&yo("span",{class:"v-combobox__selection-comma"},[ko(",")])])])})]),"append-inner":function(){for(var t,n,a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return yo(eo,null,[null==(t=r["append-inner"])?void 0:t.call(r,...i),e.hideNoData&&!e.items.length||!e.menuIcon?void 0:bo(yY,{class:"v-combobox__menu-icon",color:null==(n=s.value)?void 0:n.fieldIconColor,icon:e.menuIcon,onMousedown:H,onClick:yB,"aria-label":L.value,title:L.value,tabindex:"-1"},null)])}})}),FJ({isFocused:l,isPristine:u,menu:M,search:T,selectionIndex:p,filteredItems:E,select:q},s)}}),T1=AF({modelValue:null,color:String,cancelText:{type:String,default:"$vuetify.confirmEdit.cancel"},okText:{type:String,default:"$vuetify.confirmEdit.ok"},disabled:{type:[Boolean,Array],default:void 0},hideActions:Boolean},"VConfirmEdit"),A1=DF()({name:"VConfirmEdit",props:T1(),emits:{cancel:()=>!0,save:e=>!0,"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:a}=t;const i=qF(e,"modelValue"),r=an();Nr(()=>{r.value=structuredClone(Qt(i.value))});const{t:o}=rV(),s=Zo(()=>xL(i.value,r.value));function l(t){return"boolean"==typeof e.disabled?e.disabled:Array.isArray(e.disabled)?e.disabled.includes(t):s.value}const u=Zo(()=>l("save")),c=Zo(()=>l("cancel"));function d(){i.value=r.value,n("save",r.value)}function h(){r.value=structuredClone(Qt(i.value)),n("cancel")}function p(t){return yo(eo,null,[bo(nJ,Io({disabled:c.value,variant:"text",color:e.color,onClick:h,text:o(e.cancelText)},t),null),bo(nJ,Io({disabled:u.value,variant:"text",color:e.color,onClick:d,text:o(e.okText)},t),null)])}let f=!1;return GF(()=>{var t;return yo(eo,null,[null==(t=a.default)?void 0:t.call(a,{model:r,save:d,cancel:h,isPristine:s.value,get actions(){return f=!0,p}}),!e.hideActions&&!f&&p()])}),{save:d,cancel:h,isPristine:s}}}),E1=AF({expandOnClick:Boolean,showExpand:Boolean,expanded:{type:Array,default:()=>[]}},"DataTable-expand"),I1=Symbol.for("vuetify:datatable:expanded");function x1(e){const t=gn(()=>e.expandOnClick),n=qF(e,"expanded",e.expanded,e=>new Set(e),e=>[...e.values()]);function a(e,t){const a=new Set(n.value),i=Qt(e.value);if(t)a.add(i);else{const e=[...n.value].find(e=>Qt(e)===i);a.delete(e)}n.value=a}function i(e){const t=Qt(e.value);return[...n.value].some(e=>Qt(e)===t)}
5091const r={expand:a,expanded:n,expandOnClick:t,isExpanded:i,toggleExpand:function(e){a(e,!i(e))}};return tr(I1,r),r}function N1(){const e=nr(I1);if(!e)throw new Error("foo");return e}const P1=AF({groupBy:{type:Array,default:()=>[]}},"DataTable-group"),M1=Symbol.for("vuetify:data-table-group");function O1(e){return{groupBy:qF(e,"groupBy")}}function R1(e){const{disableSort:t,groupBy:n,sortBy:a}=e,i=an(new Set),r=Zo(()=>n.value.map(e=>{var t;return{...e,order:null!=(t=e.order)&&t}}).concat((null==t?void 0:t.value)?[]:a.value));function o(e){return i.value.has(e.id)}const s={sortByWithGroups:r,toggleGroup:function(e){const t=new Set(i.value);o(e)?t.delete(e.id):t.add(e.id),i.value=t},opened:i,groupBy:n,extractRows:function(e){return function e(t){const n=[];for(const a of t.items)"type"in a&&"group"===a.type?n.push(...e(a)):n.push(a);return[...new Set(n)]}({items:e})},isGroupOpen:o};return tr(M1,s),s}function D1(){const e=nr(M1);if(!e)throw new Error("Missing group!");return e}function L1(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"root";if(!t.length)return[];const i=function(e,t){if(!e.length)return[];const n=new Map;for(const a of e){const e=NL(a.raw,t);n.has(e)||n.set(e,[]),n.get(e).push(a)}return n}(e,t[0]),r=[],o=t.slice(1);return i.forEach((e,i)=>{const s=t[0],l="".concat(a,"_").concat(s,"_").concat(i);r.push({depth:n,id:l,key:s,value:i,items:o.length?L1(e,o,n+1,l):e,type:"group"})}),r}function B1(e,t,n){const a=[];for(const i of e)"type"in i&&"group"===i.type?(null!=i.value&&a.push(i),(t.has(i.id)||null==i.value)&&(a.push(...B1(i.items,t,n)),n&&a.push({...i,type:"group-summary"}))):a.push(i);return a}function F1(e,t,n,a){return{flatItems:Zo(()=>{if(!t.value.length)return e.value;return B1(L1(e.value,t.value.map(e=>e.key)),n.value,un(a))})}}function V1(e){let{page:t,itemsPerPage:n,sortBy:a,groupBy:i,search:r}=e;const o=IF("VDataTable");let s=null;Mr(()=>({page:t.value,itemsPerPage:n.value,sortBy:a.value,groupBy:i.value,search:r.value}),e=>{xL(s,e)||(s&&s.search!==e.search&&(t.value=1),o.emit("update:options",e),s=e)},{deep:!0,immediate:!0})}const X1=AF({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"DataTable-paginate"),j1=Symbol.for("vuetify:data-table-pagination");function U1(e){return{page:qF(e,"page",void 0,e=>Number(null!=e?e:1)),itemsPerPage:qF(e,"itemsPerPage",void 0,e=>Number(null!=e?e:10))}}function H1(e){const{page:t,itemsPerPage:n,itemsLength:a}=e,i=Zo(()=>-1===n.value?0:n.value*(t.value-1)),r=Zo(()=>-1===n.value?a.value:Math.min(a.value,i.value+n.value)),o=Zo(()=>-1===n.value||0===a.value?1:Math.ceil(a.value/n.value));
5091Mr([t,o],()=>{t.value>o.value&&(t.value=o.value)});const s={page:t,itemsPerPage:n,startIndex:i,stopIndex:r,pageCount:o,itemsLength:a,nextPage:function(){t.value=YL(t.value+1,1,o.value)},prevPage:function(){t.value=YL(t.value-1,1,o.value)},setPage:function(e){t.value=YL(e,1,o.value)},setItemsPerPage:function(e){n.value=e,t.value=1}};return tr(j1,s),s}function z1(e){const t=IF("usePaginatedItems"),{items:n,startIndex:a,stopIndex:i,itemsPerPage:r}=e,o=Zo(()=>r.value<=0?n.value:n.value.slice(a.value,i.value));return Mr(o,e=>{t.emit("update:currentItems",e)},{immediate:!0}),{paginatedItems:o}}const K1={showSelectAll:!1,allSelected:()=>[],select:e=>{var t;let{items:n,value:a}=e;return new Set(a?[null==(t=n[0])?void 0:t.value]:[])},selectAll:e=>{let{selected:t}=e;return t}},W1={showSelectAll:!0,allSelected:e=>{let{currentPage:t}=e;return t},select:e=>{let{items:t,value:n,selected:a}=e;for(const i of t)n?a.add(i.value):a.delete(i.value);return a},selectAll:e=>{let{value:t,currentPage:n,selected:a}=e;return W1.select({items:n,value:t,selected:a})}},G1={showSelectAll:!0,allSelected:e=>{let{allItems:t}=e;return t},select:e=>{let{items:t,value:n,selected:a}=e;for(const i of t)n?a.add(i.value):a.delete(i.value);return a},selectAll:e=>{let{value:t,allItems:n,selected:a}=e;return G1.select({items:n,value:t,selected:a})}},q1=AF({showSelect:Boolean,selectStrategy:{type:[String,Object],default:"page"},modelValue:{type:Array,default:()=>[]},valueComparator:{type:Function,default:xL}},"DataTable-select"),$1=Symbol.for("vuetify:data-table-selection");function Y1(e,t){let{allItems:n,currentPage:a}=t;const i=qF(e,"modelValue",e.modelValue,t=>new Set(qL(t).map(t=>{var a,i;return null!=(i=null==(a=n.value.find(n=>e.valueComparator(t,n.value)))?void 0:a.value)?i:t})),e=>[...e.values()]),r=Zo(()=>n.value.filter(e=>e.selectable)),o=Zo(()=>a.value.filter(e=>e.selectable)),s=Zo(()=>{if("object"==typeof e.selectStrategy)return e.selectStrategy;switch(e.selectStrategy){case"single":return K1;case"all":return G1;default:return W1}}),l=rn(null);function u(e){return qL(e).every(e=>i.value.has(e.value))}function c(e,t){const n=s.value.select({items:e,value:t,selected:new Set(i.value)});i.value=n}const d=Zo(()=>i.value.size>0),h=Zo(()=>{const e=s.value.allSelected({allItems:r.value,currentPage:o.value});return!!e.length&&u(e)}),p={toggleSelect:function(t,n,i){const r=[];if(n=null!=n?n:a.value.findIndex(e=>e.value===t.value),"single"!==e.selectStrategy&&(null==i?void 0:i.shiftKey)&&null!==l.value){const[e,t]=[l.value,n].sort((e,t)=>e-t);r.push(...a.value.slice(e,t+1).filter(e=>e.selectable))}else r.push(t),l.value=n;c(r,!u([t]))},select:c,selectAll:function(e){const t=s.value.selectAll({value:e,allItems:r.value,currentPage:o.value,selected:new Set(i.value)});i.value=t},isSelected:u,isSomeSelected:function(e){return qL(e).some(e=>i.value.has(e.value))},someSelected:d,allSelected:h,showSelectAll:gn(()=>s.value.showSelectAll),lastSelectedIndex:l,selectStrategy:s};return tr($1,p),p}function J1(){const e=nr($1);if(!e)throw new Error("Missing selection!");return e}const Q1=AF({sortBy:{type:Array,default:()=>[]},customKeySort:Object,multiSort:Boolean,mustSort:Boolean},"DataTable-sort"),Z1=Symbol.for("vuetify:data-table-sort");function e2(e){return{sortBy:qF(e,"sortBy"),mustSort:gn(()=>e.mustSort),multiSort:gn(()=>e.multiSort)}}function t2(e){const{sortBy:t,mustSort:n,multiSort:a,page:i}=e;const r={sortBy:t,toggleSort:e=>{var r;if(null==e.key)return;let o=null!=(r=t.value.map(e=>({...e})))?r:[];const s=o.find(t=>t.key===e.key);s?"desc"===s.order?n.value&&1===o.length?s.order="asc":o=o.filter(t=>t.key!==e.key):s.order="desc":a.value?o.push({key:e.key,order:"asc"}):o=[{key:e.key,order:"asc"}],t.value=o,i&&(i.value=1)},isSorted:function(e){return!!t.value.find(t=>t.key===e.key)}};return tr(Z1,r),r}function n2(){const e=nr(Z1);if(!e)throw new Error("Missing sort!");return e}function a2(e,t,n,a){const i=rV(),r=Zo(()=>{var r,o;return n.value.length?function(e,t,n,a){const i=new Intl.Collator(n,{sensitivity:"accent",usage:"sort"}),r=e.map(e=>[e,(null==a?void 0:a.transform)?a.transform(e):e]);return r.sort((e,n)=>{var r,o,s;for(let l=0;l<t.length;l++){let u=!1;const c=t[l].key,d=null!=(r=t[l].order)?r:"asc";if(!1===d)continue;let h=NL(e[1],c),p=NL(n[1],c),f=e[0].raw,m=n[0].raw;if("desc"===d&&([h,p]=[p,h],[f,m]=[m,f]),null==(o=null==a?void 0:a.sortRawFunctions)?void 0:o[c]){const e=a.sortRawFunctions[c](f,m);if(null==e)continue;if(u=!0,e)return e}if(null==(s=null==a?void 0:a.sortFunctions)?void 0:s[c]){const e=a.sortFunctions[c](h,p);if(null==e)continue;if(u=!0,e)return e}if(!u&&(h instanceof Date&&p instanceof Date&&(h=h.getTime(),p=p.getTime()),[h,p]=[h,p].map(e=>null!=e?e.toString().toLocaleLowerCase():e),h!==p))return gB(h)&&gB(p)?0:gB(h)?-1:gB(p)?1:isNaN(h)||isNaN(p)?i.compare(h,p):Number(h)-Number(p)}return 0}).map(e=>{let[t]=e;return t})}(t.value,n.value,i.current.value,{transform:null==a?void 0:a.transform,sortFunctions:{...e.customKeySort,...null==(r=null==a?void 0:a.sortFunctions)?void 0:r.value},sortRawFunctions:null==(o=null==a?void 0:a.sortRawFunctions)?void 0:o.value}):t.value});return{sortedItems:r}}const i2=AF({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},returnObject:Boolean},"DataIterator-items");function r2(e,t){return{type:"item",value:e.returnObject?t:PL(t,e.itemValue),selectable:PL(t,e.itemSelectable,!0),raw:t}}function o2(e){const t=Zo(()=>function(e,t){const n=[];for(const a of t)n.push(r2(e,a));return n}(e,e.items));return{items:t}}const s2=AF({search:String,loading:Boolean,...EF(),...i2(),...q1(),...Q1(),...X1({itemsPerPage:5}),...E1(),...P1(),...e0(),...Yq(),...R$({transition:{component:d$,hideOnLeave:!0}})},"VDataIterator"),l2=DF()({name:"VDataIterator",props:s2(),emits:{"update:modelValue":e=>!0,"update:groupBy":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>
5091!0,"update:expanded":e=>!0,"update:currentItems":e=>!0},setup(e,t){let{slots:n}=t;const a=qF(e,"groupBy"),i=gn(()=>e.search),{items:r}=o2(e),{filteredItems:o}=t0(e,r,i,{transform:e=>e.raw}),{sortBy:s,multiSort:l,mustSort:u}=e2(e),{page:c,itemsPerPage:d}=U1(e),{toggleSort:h}=t2({sortBy:s,multiSort:l,mustSort:u,page:c}),{sortByWithGroups:p,opened:f,extractRows:m,isGroupOpen:v,toggleGroup:g}=R1({groupBy:a,sortBy:s}),{sortedItems:y}=a2(e,o,p,{transform:e=>e.raw}),{flatItems:b}=F1(y,a,f,!1),_=gn(()=>b.value.length),{startIndex:w,stopIndex:k,pageCount:C,prevPage:S,nextPage:T,setItemsPerPage:A,setPage:E}=H1({page:c,itemsPerPage:d,itemsLength:_}),{paginatedItems:I}=z1({items:b,startIndex:w,stopIndex:k,itemsPerPage:d}),x=Zo(()=>m(I.value)),{isSelected:N,select:P,selectAll:M,toggleSelect:O}=Y1(e,{allItems:r,currentPage:x}),{isExpanded:R,toggleExpand:D}=x1(e);V1({page:c,itemsPerPage:d,sortBy:s,groupBy:a,search:i});const L=Zo(()=>({page:c.value,itemsPerPage:d.value,sortBy:s.value,pageCount:C.value,toggleSort:h,prevPage:S,nextPage:T,setPage:E,setItemsPerPage:A,isSelected:N,select:P,selectAll:M,toggleSelect:O,isExpanded:R,toggleExpand:D,isGroupOpen:v,toggleGroup:g,items:x.value,itemsCount:o.value.length,groupedItems:I.value}));return GF(()=>bo(e.tag,{class:ne(["v-data-iterator",{"v-data-iterator--loading":e.loading},e.class]),style:Y(e.style)},{default:()=>{var t,a;return[null==(t=n.header)?void 0:t.call(n,L.value),bo(D$,{transition:e.transition},{default:()=>{var t,a;return[e.loading?bo(NY,{key:"loader",name:"v-data-iterator",active:!0},{default:e=>{var t;return null==(t=n.loader)?void 0:t.call(n,e)}}):yo("div",{key:"items"},[I.value.length?null==(a=n.default)?void 0:a.call(n,L.value):null==(t=n["no-data"])?void 0:t.call(n)])]}}),null==(a=n.footer)?void 0:a.call(n,L.value)]}})),{}}});const u2=AF({activeColor:String,start:{type:[Number,String],default:1},modelValue:{type:Number,default:e=>e.start},disabled:Boolean,length:{type:[Number,String],default:1,validator:e=>e%1==0}
5091,totalVisible:[Number,String],firstIcon:{type:zV,default:"$first"},prevIcon:{type:zV,default:"$prev"},nextIcon:{type:zV,default:"$next"},lastIcon:{type:zV,default:"$last"},ariaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.root"},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},firstAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.first"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},lastAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.last"},ellipsis:{type:String,default:"..."},showFirstLastPage:Boolean,...X$(),...EF(),...Q$(),...U$(),...M$(),...mY(),...Yq({tag:"nav"}),...ZV(),...nY({variant:"text"})},"VPagination"),c2=DF()({name:"VPagination",props:u2(),emits:{"update:modelValue":e=>!0,first:e=>!0,prev:e=>!0,next:e=>!0,last:e=>!0},setup(e,t){let{slots:n,emit:a}=t;const i=qF(e,"modelValue"),{t:r,n:o}=rV(),{isRtl:s}=sV(),{themeClasses:l}=sX(e),{width:u}=LV(),c=rn(-1);MF(void 0,{scoped:!0});const{resizeRef:d}=uX(e=>{if(!e.length)return;const{target:t,contentRect:n}=e[0],a=t.querySelector(".v-pagination__list > *");if(!a)return;const i=n.width,r=a.offsetWidth+2*parseFloat(getComputedStyle(a).marginRight);c.value=m(i,r)}),h=Zo(()=>parseInt(e.length,10)),p=Zo(()=>parseInt(e.start,10)),f=Zo(()=>null!=e.totalVisible?parseInt(e.totalVisible,10):c.value>=0?c.value:m(u.value,58));function m(t,n){const a=e.showFirstLastPage?5:3;return Math.max(0,Math.floor(Number(((t-n*a)/n).toFixed(2))))}const v=Zo(()=>{if(h.value<=0||isNaN(h.value)||h.value>Number.MAX_SAFE_INTEGER)return[];if(f.value<=0)return[];if(1===f.value)return[i.value];if(h.value<=f.value)return ML(h.value,p.value);const t=f.value%2==0,n=t?f.value/2:Math.floor(f.value/2),a=t?n:n+1,r=h.value-n;if(a-i.value>=0)return[...ML(Math.max(1,f.value-1),p.value),e.ellipsis,h.value];if(i.value-r>=(t?1:0)){const t=f.value-1,n=h.value-t+p.value;return[p.value,e.ellipsis,...ML(t,n)]}{const t=Math.max(1,f.value-2),n=1===t?i.value:i.value-Math.ceil(t/2)+p.value;return[p.value,e.ellipsis,...ML(t,n),e.ellipsis,h.value]}});function g(e,t,n){e.preventDefault(),i.value=t,n&&a(n,t)}const{refs:y,updateRef:b}=function(){const e=an([]);return pi(()=>e.value=[]),{refs:e,updateRef:function(t,n){e.value[n]=t}}}();MF({VPaginationBtn:{color:gn(()=>e.color),border:gn(()=>e.border),density:gn(()=>e.density),size:gn(()=>e.size),variant:gn(()=>e.variant),rounded:gn(()=>e.rounded),elevation:gn(()=>e.elevation)}});const _=Zo(()=>v.value.map((t,n)=>{const a=e=>b(e,n);if("string"==typeof t)return{isActive:!1,key:"ellipsis-".concat(n),page:t,props:{ref:a,ellipsis:!0,icon:!0,disabled:!0}};{const n=t===i.value;return{isActive:n,key:t,page:o(t),props:{ref:a,ellipsis:!1,icon:!0,disabled:!!e.disabled||Number(e.length)<2,color:n?e.activeColor:e.color,"aria-current":n,"aria-label":r(n?e.currentPageAriaLabel:e.pageAriaLabel,t),onClick:e=>g(e,t)}}}})),w=Zo(()=>{const t=!!e.disabled||i.value<=p.value,n=!!e.disabled||i.value>=p.value+h.value-1;return{first:e.showFirstLastPage?{icon:s.value?e.lastIcon:e.firstIcon,onClick:e=>g(e,p.value,"first"),disabled:t,"aria-label":r(e.firstAriaLabel),"aria-disabled":t}:void 0,prev:{icon:s.value?e.nextIcon:e.prevIcon,onClick:e=>g(e,i.value-1,"prev"),disabled:t,"aria-label":r(e.previousAriaLabel),"aria-disabled":t},next:{icon:s.value?e.prevIcon:e.nextIcon,onClick:e=>g(e,i.value+1,"next"),disabled:n,"aria-label":r(e.nextAriaLabel),"aria-disabled":n},last:e.showFirstLastPage?{icon:s.value?e.firstIcon:e.lastIcon,onClick:e=>g(e,p.value+h.value-1,"last"),disabled:n,"aria-label":r(e.lastAriaLabel),"aria-disabled":n}:void 0}});function k(){var e;const t=i.value-p.value;null==(e=y.value[t])||e.$el.focus()}function C(t){t.key===BL.left&&!e.disabled&&i.value>Number(e.start)?(i.value=i.value-1,jn(k)):t.key===BL.right&&!e.disabled&&i.value<p.value+h.value-1&&(i.value=i.value+1,jn(k))}return GF(()=>bo(e.tag,{ref:d,class:ne(["v-pagination",l.value,e.class]),style:Y(e.style),role:"navigation","aria-label":r(e.ariaLabel),onKeydown:C,"data-test":"v-pagination-root"},{default:()=>[yo("ul",{class:"v-pagination__list"},[e.showFirstLastPage&&yo("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[n.first?n.first(w.value.first):bo(nJ,Io({_as:"VPaginationBtn"},w.value.first),null)]),yo("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[n.prev?n.prev(w.value.prev):bo(nJ,Io({_as:"VPaginationBtn"},w.value.prev),null)]),_.value.map((e,t)=>yo("li",{key:e.key,class:ne(["v-pagination__item",{"v-pagination__item--is-active":e.isActive}]),"data-test":"v-pagination-item"},[n.item?n.item(e):bo(nJ,Io({_as:"VPaginationBtn"},e.props),{default:()=>[e.page]})])),yo("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[n.next?n.next(w.value.next):bo(nJ,Io({_as:"VPaginationBtn"},w.value.next),null)]),e.showFirstLastPage&&yo("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[n.last?n.last(w.value.last):bo(nJ,Io({_as:"VPaginationBtn"},w.value.last),null)])])]})),{}}}),d2=AF({prevIcon:{type:zV,default:"$prev"},nextIcon:{type:zV,default:"$next"}
5091,firstIcon:{type:zV,default:"$first"},lastIcon:{type:zV,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},"VDataTableFooter"),h2=DF()({name:"VDataTableFooter",props:d2(),setup(e,t){let{slots:n}=t;const{t:a}=rV(),{page:i,pageCount:r,startIndex:o,stopIndex:s,itemsLength:l,itemsPerPage:u,setItemsPerPage:c}=function(){const e=nr(j1);if(!e)throw new Error("Missing pagination!");return e}(),d=Zo(()=>e.itemsPerPageOptions.map(e=>"number"==typeof e?{value:e,title:-1===e?a("$vuetify.dataFooter.itemsPerPageAll"):String(e)}:{...e,title:isNaN(Number(e.title))?a(e.title):e.title}));return GF(()=>{var t;const h=c2.filterProps(e);return yo("div",{class:"v-data-table-footer"},[null==(t=n.prepend)?void 0:t.call(n),yo("div",{class:"v-data-table-footer__items-per-page"},[yo("span",{"aria-label":a(e.itemsPerPageText)},[a(e.itemsPerPageText)]),bo(JZ,{items:d.value,modelValue:u.value,"onUpdate:modelValue":e=>c(Number(e)),density:"compact",variant:"outlined",hideDetails:!0},null)]),yo("div",{class:"v-data-table-footer__info"},[yo("div",null,[a(e.pageText,l.value?o.value+1:0,s.value,l.value)])]),yo("div",{class:"v-data-table-footer__pagination"},[bo(c2,Io({modelValue:i.value,"onUpdate:modelValue":e=>i.value=e,density:"comfortable",firstAriaLabel:e.firstPageLabel,lastAriaLabel:e.lastPageLabel,length:r.value,nextAriaLabel:e.nextPageLabel,previousAriaLabel:e.prevPageLabel,rounded:!0,showFirstLastPage:!0,totalVisible:e.showCurrentPage?1:0,variant:"plain"},h),null)])])}),{}}}),p2=(f2={align:{type:String,default:"start"},fixed:{type:[Boolean,String],default:!1},fixedOffset:[Number,String],fixedEndOffset:[Number,String],height:[Number,String],lastFixed:Boolean,firstFixedEnd:Boolean,noPadding:Boolean,indent:[Number,String],empty:Boolean,tag:String,width:[Number,String],maxWidth:[Number,String],nowrap:Boolean},m2=(e,t)=>{var n;let{slots:a}=t;const i=null!=(n=e.tag)?n:"td",r="string"==typeof e.fixed?e.fixed:e.fixed?"start":"none";return bo(i,{class:ne(["v-data-table__td",{"v-data-table-column--fixed":"start"===r,"v-data-table-column--fixed-end":"end"===r,"v-data-table-column--last-fixed":e.lastFixed,"v-data-table-column--first-fixed-end":e.firstFixedEnd,"v-data-table-column--no-padding":e.noPadding,"v-data-table-column--nowrap":e.nowrap,"v-data-table-column--empty":e.empty},"v-data-table-column--align-".concat(e.align)]),style:{height:OL(e.height),width:OL(e.width),maxWidth:OL(e.maxWidth),left:"start"===r?OL(e.fixedOffset||null):void 0,right:"end"===r?OL(e.fixedEndOffset||null):void 0,paddingInlineStart:e.indent?OL(e.indent):void 0}},{default:()=>{var e;return[null==(e=a.default)?void 0:e.call(a)]}})},m2.props=f2,m2);var f2,m2;const v2=AF({headers:Array},"DataTable-header"),g2=Symbol.for("vuetify:data-table-headers"),y2={title:"",sortable:!1},b2={...y2,width:48};function _2(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e.children)for(const n of e.children)_2(n,t);else t.push(e);return t}function w2(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;for(const n of e)n.key&&t.add(n.key),n.children&&w2(n.children,t);return t}function k2(e){if(e.key)return"data-table-group"===e.key?y2:["data-table-expand","data-table-select"].includes(e.key)?b2:void 0}function C2(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.children?Math.max(t,...e.children.map(e=>C2(e,t+1))):t}function S2(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!e)return t;if(e.children){e.fixedOffset=t;for(const n of e.children)t=S2(n,t)}else e.fixed&&"end"!==e.fixed&&(e.fixedOffset=t,t+=parseFloat(e.width||"0")||0);return t}function T2(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!e)return t;if(e.children){e.fixedEndOffset=t;for(const n of e.children)t=T2(n,t)}else"end"===e.fixed&&(e.fixedEndOffset=t,t+=parseFloat(e.width||"0")||0);return t}function A2(e,t){const n=[];let a=0;const i=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(e=>({element:e,priority:0}));return{enqueue:(t,n)=>{let a=!1;for(let i=0;i<e.length;i++)if(e[i].priority>n){e.splice(i,0,{element:t,priority:n}),a=!0;break}a||e.push({element:t,priority:n})},size:()=>e.length,count:()=>{let t=0;if(!e.length)return 0;const n=Math.floor(e[0].priority);for(let a=0;a<e.length;a++)Math.floor(e[a].priority)===n&&(t+=1);return t},dequeue:()=>e.shift()}}(e);for(;i.size()>0;){let e=i.count();const r=[];let o=1;for(;e>0;){const{element:n,priority:s}=i.dequeue(),l=t-a-C2(n);if(r.push({...n,rowspan:null!=l?l:1,colspan:n.children?_2(n).length:1}),n.children)for(const e of n.children){const t=s%1+o/Math.pow(10,a+2);i.enqueue(e,a+l+t)}o+=1,e-=1}a+=1,n.push(r)}return{columns:e.map(e=>_2(e)).flat(),headers:n}}function E2(e){var t,n,a,i;const r=[];for(const o of e){const e={...k2(o),...o},s=null!=(t=e.key)?t:"string"==typeof e.value?e.value:null,l=null!=(a=null!=(n=e.value)?n:s)?a:null,u={...e,key:s,value:l,sortable:null!=(i=e.sortable)?i:null!=e.key||!!e.sort,children:e.children?E2(e.children):void 0};
5091r.push(u)}return r}function I2(e,t){const n=an([]),a=an([]),i=an({}),r=an({}),o=an({});Nr(()=>{var s,l,u,c;const d=(e.headers||Object.keys(null!=(s=e.items[0])?s:{}).map(e=>({key:e,title:D(e)}))).slice(),h=w2(d);(null==(l=null==t?void 0:t.groupBy)?void 0:l.value.length)&&!h.has("data-table-group")&&d.unshift({key:"data-table-group",title:"Group"}),(null==(u=null==t?void 0:t.showSelect)?void 0:u.value)&&!h.has("data-table-select")&&d.unshift({key:"data-table-select"}),(null==(c=null==t?void 0:t.showExpand)?void 0:c.value)&&!h.has("data-table-expand")&&d.push({key:"data-table-expand"});const p=E2(d);!function(e){let t=!1;function n(e,a){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"none";if(e)if("none"!==i&&(e.fixed=i),!0===e.fixed&&(e.fixed="start"),e.fixed===a)if(e.children)if("start"===a)for(let t=e.children.length-1;t>=0;t--)n(e.children[t],a,a);else for(let t=0;t<e.children.length;t++)n(e.children[t],a,a);else t||"start"!==a?t||"end"!==a?isNaN(Number(e.width))?"Multiple fixed columns should have a static width (key: ".concat(e.key,")"):e.minWidth=Math.max(Number(e.width)||0,Number(e.minWidth)||0):e.firstFixedEnd=!0:e.lastFixed=!0,t=!0;else if(e.children)if("start"===a)for(let t=e.children.length-1;t>=0;t--)n(e.children[t],a);else for(let t=0;t<e.children.length;t++)n(e.children[t],a);else t=!1}for(let r=e.length-1;r>=0;r--)n(e[r],"start");for(let r=0;r<e.length;r++)n(e[r],"end");let a=0;for(let r=0;r<e.length;r++)a=S2(e[r],a);let i=0;for(let r=e.length-1;r>=0;r--)i=T2(e[r],i)}(p);const f=Math.max(...p.map(e=>C2(e)))+1,m=A2(p,f);n.value=m.headers,a.value=m.columns;const v=m.headers.flat(1);for(const e of v)e.key&&(e.sortable&&(e.sort&&(i.value[e.key]=e.sort),e.sortRaw&&(r.value[e.key]=e.sortRaw)),e.filter&&(o.value[e.key]=e.filter))});const s={headers:n,columns:a,sortFunctions:i,sortRawFunctions:r,filterFunctions:o};return tr(g2,s),s}function x2(){const e=nr(g2);if(!e)throw new Error("Missing headers!");return e}const N2=AF({color:String,disableSort:Boolean,fixedHeader:Boolean,multiSort:Boolean,sortAscIcon:{type:zV,default:"$sortAsc"},sortDescIcon:{type:zV,default:"$sortDesc"},headerProps:{type:Object},sticky:Boolean,...DV(),...IY()},"VDataTableHeaders"),P2=DF()({name:"VDataTableHeaders",props:N2(),setup(e,t){let{slots:n}=t;const{t:a}=rV(),{toggleSort:i,sortBy:r,isSorted:o}=n2(),{someSelected:s,allSelected:l,selectAll:u,showSelectAll:c}=J1(),{columns:d,headers:h}=x2(),{loaderClasses:p}=xY(e);function f(t,n){if(!e.sticky&&!e.fixedHeader&&!t.fixed)return;const a="string"==typeof t.fixed?t.fixed:t.fixed?"start":"none";return{position:"sticky",left:"start"===a?OL(t.fixedOffset):void 0,right:"end"===a?OL(t.fixedEndOffset):void 0,top:e.sticky||e.fixedHeader?"calc(var(--v-table-header-height) * ".concat(n,")"):void 0}}function m(t){const n=r.value.find(e=>e.key===t.key);return n?"asc"===n.order?e.sortAscIcon:e.sortDescIcon:e.sortAscIcon}const{backgroundColorClasses:v,backgroundColorStyles:g}=P$(()=>e.color),{displayClasses:y,mobile:b}=LV(e),_=Zo(()=>({headers:h.value,columns:d.value,toggleSort:i,isSorted:o,sortBy:r.value,someSelected:s.value,allSelected:l.value,selectAll:u,getSortIcon:m})),w=Zo(()=>["v-data-table__th",{"v-data-table__th--sticky":e.sticky||e.fixedHeader},y.value,p.value]),k=t=>{var a,d;let{column:h,x:p,y:y}=t;const b="data-table-select"===h.key||"data-table-expand"===h.key,_="data-table-group"===h.key&&0===h.width&&!h.title,k=Io(null!=(a=e.headerProps)?a:{},null!=(d=h.headerProps)?d:{});return bo(p2,Io({tag:"th",align:h.align,class:[{"v-data-table__th--sortable":h.sortable&&!e.disableSort,"v-data-table__th--sorted":o(h),"v-data-table__th--fixed":h.fixed},...w.value],style:{width:OL(h.width),minWidth:OL(h.minWidth),maxWidth:OL(h.maxWidth),...f(h,y)},colspan:h.colspan,rowspan:h.rowspan,fixed:h.fixed,nowrap:h.nowrap,lastFixed:h.lastFixed,firstFixedEnd:h.firstFixedEnd,noPadding:b,empty:_,tabindex:h.sortable?0:void 0,onClick:h.sortable?()=>i(h):void 0,onKeydown:h.sortable?t=>function(t,n){"Enter"!==t.key||e.disableSort||i(n)}(t,h):void 0},k),{default:()=>{var t,a;const d="header.".concat(h.key),p={column:h,selectAll:u,isSorted:o,toggleSort:i,sortBy:r.value,someSelected:s.value,allSelected:l.value,getSortIcon:m};return n[d]?n[d](p):_?"":"data-table-select"===h.key?null!=(a=null==(t=n["header.data-table-select"])?void 0:t.call(n,p))?a:c.value&&bo(kJ,{modelValue:l.value,indeterminate:s.value&&!l.value,"onUpdate:modelValue":u},null):yo("div",{class:"v-data-table-header__content"},[yo("span",null,[h.title]),h.sortable&&!e.disableSort&&bo(yY,{key:"icon",class:"v-data-table-header__sort-icon",icon:m(h)}
5091,null),e.multiSort&&o(h)&&yo("div",{key:"badge",class:ne(["v-data-table-header__sort-badge",...v.value]),style:Y(g.value)},[r.value.findIndex(e=>e.key===h.key)+1])])}})},C=()=>{const t=Zo(()=>d.value.filter(t=>(null==t?void 0:t.sortable)&&!e.disableSort)),n=Zo(()=>{if(null!=d.value.find(e=>"data-table-select"===e.key))return l.value?"$checkboxOn":s.value?"$checkboxIndeterminate":"$checkboxOff"});return bo(p2,Io({tag:"th",class:[...w.value],colspan:h.value.length+1},e.headerProps),{default:()=>[yo("div",{class:"v-data-table-header__content"},[bo(JZ,{chips:!0,class:"v-data-table__td-sort-select",clearable:!0,density:"default",items:t.value,label:a("$vuetify.dataTable.sortBy"),multiple:e.multiSort,variant:"underlined","onClick:clear":()=>r.value=[],appendIcon:n.value,"onClick:append":()=>u(!l.value)},{chip:e=>{var t;return bo(QJ,{onClick:(null==(t=e.item.raw)?void 0:t.sortable)?()=>i(e.item.raw):void 0,onMousedown:e=>{e.preventDefault(),e.stopPropagation()}},{default:()=>[e.item.title,bo(yY,{class:ne(["v-data-table__td-sort-icon",o(e.item.raw)&&"v-data-table__td-sort-icon-active"]),icon:m(e.item.raw),size:"small"},null)]})}})])]})};GF(()=>b.value?yo("tr",null,[bo(C,null,null)]):yo(eo,null,[n.headers?n.headers(_.value):h.value.map((e,t)=>yo("tr",null,[e.map((e,n)=>bo(k,{column:e,x:n,y:t},null))])),e.loading&&yo("tr",{class:"v-data-table-progress"},[yo("th",{colspan:d.value.length},[bo(NY,{name:"v-data-table-progress",absolute:!0,active:!0,color:"boolean"==typeof e.loading?void 0:e.loading,indeterminate:!0},{default:n.loader})])])]))}}),M2=AF({item:{type:Object,required:!0},groupCollapseIcon:{type:zV,default:"$tableGroupCollapse"},groupExpandIcon:{type:zV,default:"$tableGroupExpand"}},"VDataTableGroupHeaderRow"),O2=DF()({name:"VDataTableGroupHeaderRow",props:M2(),setup(e,t){let{slots:n}=t;const{isGroupOpen:a,toggleGroup:i,extractRows:r}=D1(),{isSelected:o,isSomeSelected:s,select:l}=J1(),{columns:u}=x2(),c=Zo(()=>r([e.item])),d=gn(()=>u.value.length-(u.value.some(e=>"data-table-select"===e.key)?1:0));return()=>yo("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":e.item.depth}},[u.value.map(t=>{var r,u,h,p;if("data-table-group"===t.key){const t=a(e.item)?e.groupCollapseIcon:e.groupExpandIcon,o=()=>i(e.item);return null!=(u=null==(r=n["data-table-group"])?void 0:r.call(n,{item:e.item,count:c.value.length,props:{icon:t,onClick:o}}))?u:bo(p2,{class:"v-data-table-group-header-row__column",colspan:d.value},{default:()=>[bo(nJ,{size:"small",variant:"text",icon:t,onClick:o},null),yo("span",null,[e.item.value]),yo("span",null,[ko("("),c.value.length,ko(")")])]})}if("data-table-select"===t.key){const e=o(c.value),t=s(c.value)&&!e,a=e=>l(c.value,e);return null!=(p=null==(h=n["data-table-select"])?void 0:h.call(n,{props:{modelValue:e,indeterminate:t,"onUpdate:modelValue":a}}))?p:bo(p2,{class:"v-data-table__td--select-row",noPadding:!0},{default:()=>[bo(kJ,{modelValue:e,indeterminate:t,"onUpdate:modelValue":a},null)]})}return""})])}}),R2=AF({index:Number,item:Object,cellProps:[Object,Function],collapseIcon:{type:zV,default:"$collapse"},expandIcon:{type:zV,default:"$expand"},onClick:dB(),onContextmenu:dB(),onDblclick:dB(),...DV()},"VDataTableRow"),D2=DF()({name:"VDataTableRow",props:R2(),setup(e,t){let{slots:n}=t;const{displayClasses:a,mobile:i}=LV(e,"v-data-table__tr"),{isSelected:r,toggleSelect:o,someSelected:s,allSelected:l,selectAll:u}=J1(),{isExpanded:c,toggleExpand:d}=N1(),{toggleSort:h,sortBy:p,isSorted:f}=n2(),{columns:m}=x2();GF(()=>yo("tr",{class:ne(["v-data-table__tr",{"v-data-table__tr--clickable":!!(e.onClick||e.onContextmenu||e.onDblclick)},a.value]),onClick:e.onClick,onContextmenu:e.onContextmenu,onDblclick:e.onDblclick},[e.item&&m.value.map((t,a)=>{const m=e.item,v="item.".concat(t.key),g="header.".concat(t.key),y={index:e.index,item:m.raw,internalItem:m,value:NL(m.columns,t.key),column:t,isSelected:r,toggleSelect:o,isExpanded:c,toggleExpand:d},b={column:t,selectAll:u,isSorted:f,toggleSort:h,sortBy:p.value,someSelected:s.value,allSelected:l.value,getSortIcon:()=>""},_="function"==typeof e.cellProps?e.cellProps({index:y.index,item:y.item,internalItem:y.internalItem,value:y.value,column:t}):e.cellProps,w="function"==typeof t.cellProps?t.cellProps({index:y.index,item:y.item,internalItem:y.internalItem,value:y.value}):t.cellProps,k="data-table-select"===t.key||"data-table-expand"===t.key,C="data-table-group"===t.key&&0===t.width&&!t.title;return bo(p2,Io({align:t.align,indent:t.intent,class:{"v-data-table__td--expanded-row":"data-table-expand"===t.key,"v-data-table__td--select-row":"data-table-select"===t.key},fixed:t.fixed,fixedOffset:t.fixedOffset,fixedEndOffset:t.fixedEndOffset,lastFixed:t.lastFixed,firstFixedEnd:t.firstFixedEnd,maxWidth:i.value?void 0:t.maxWidth,noPadding:k,empty:C,nowrap:t.nowrap,width:i.value?void 0:t.width},_,w),{default:()=>{var a,s,l,u,h,p,f,_;if("data-table-select"===t.key)return null!=(s=null==(a=n["item.data-table-select"])?void 0:a.call(n,{...y,props:{disabled:!m.selectable,modelValue:r([m]),onClick:Dl(()=>o(m),["stop"])}}))?s:bo(kJ,{disabled:!m.selectable,modelValue:r([m]),onClick:Dl(t=>o(m,e.index,t),["stop"])},null);if("data-table-expand"===t.key)return null!=(u=null==(l=n["item.data-table-expand"])?void 0:l.call(n,{...y,props:{icon:c(m)?e.collapseIcon:e.expandIcon,size:"small",variant:"text",onClick:Dl(()=>d(m),["stop"])}}))?u:bo(nJ,{icon:c(m)?e.collapseIcon:e.expandIcon,size:"small",variant:"text",onClick:Dl(()=>d(m),["stop"])},null);if(n[v]&&!i.value)return n[v](y);const w=Te(y.value);return i.value?yo(eo,null,[yo("div",{class:"v-data-table__td-title"},[null!=(p=null==(h=n[g])?void 0:h.call(n,b))?p:t.title]),yo("div",{class:"v-data-table__td-value"},[null!=(_=null==(f=n[v])?void 0:f.call(n,y))?_:w])]):w}})})]))}}),L2=AF({loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]}
5091,noDataText:{type:String,default:"$vuetify.noDataText"},rowProps:[Object,Function],cellProps:[Object,Function],...XL(R2(),["collapseIcon","expandIcon"]),...XL(M2(),["groupCollapseIcon","groupExpandIcon"]),...DV()},"VDataTableRows"),B2=DF()({name:"VDataTableRows",inheritAttrs:!1,props:L2(),setup(e,t){let{attrs:n,slots:a}=t;const{columns:i}=x2(),{expandOnClick:r,toggleExpand:o,isExpanded:s}=N1(),{isSelected:l,toggleSelect:u}=J1(),{toggleGroup:c,isGroupOpen:d}=D1(),{t:h}=rV(),{mobile:p}=LV(e);return GF(()=>{var t,f,m,v;const g=XL(e,["groupCollapseIcon","groupExpandIcon"]);return!e.loading||e.items.length&&!a.loading?e.loading||e.items.length||e.hideNoData?yo(eo,null,[e.items.map((t,h)=>{var f,m,v,y;if("group"===t.type){const e={index:h,item:t,columns:i.value,isExpanded:s,toggleExpand:o,isSelected:l,toggleSelect:u,toggleGroup:c,isGroupOpen:d};return a["group-header"]?a["group-header"](e):bo(O2,Io({key:"group-header_".concat(t.id),item:t},UF(n,":groupHeader",()=>e),g),a)}if("group-summary"===t.type){const e={index:h,item:t,columns:i.value,toggleGroup:c};return null!=(m=null==(f=a["group-summary"])?void 0:f.call(a,e))?m:""}const b={index:h,item:t.raw,internalItem:t,columns:i.value,isExpanded:s,toggleExpand:o,isSelected:l,toggleSelect:u},_={...b,props:Io({key:"item_".concat(null!=(v=t.key)?v:t.index),onClick:r.value?()=>{o(t)}:void 0,index:h,item:t,cellProps:e.cellProps,collapseIcon:e.collapseIcon,expandIcon:e.expandIcon,mobile:p.value},UF(n,":row",()=>b),"function"==typeof e.rowProps?e.rowProps({item:b.item,index:b.index,internalItem:b.internalItem}):e.rowProps)};return yo(eo,{key:_.props.key},[a.item?a.item(_):bo(D2,_.props,a),s(t)&&(null==(y=a["expanded-row"])?void 0:y.call(a,b))])})]):yo("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[yo("td",{colspan:i.value.length},[null!=(v=null==(m=a["no-data"])?void 0:m.call(a))?v:h(e.noDataText)])]):yo("tr",{class:"v-data-table-rows-loading",key:"loading"},[yo("td",{colspan:i.value.length},[null!=(f=null==(t=a.loading)?void 0:t.call(a))?f:h(e.loadingText)])])}),{}}}),F2=AF({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,striped:{type:String,default:null,validator:e=>["even","odd"].includes(e)},...EF(),...Q$(),...Yq(),...ZV()},"VTable"),V2=DF()({name:"VTable",props:F2(),setup(e,t){let{slots:n,emit:a}=t;const{themeClasses:i}=sX(e),{densityClasses:r}=Z$(e);return GF(()=>{const t={VCheckboxBtn:{density:e.density}};return bo(e.tag,{class:ne(["v-table",{"v-table--fixed-height":!!e.height,"v-table--fixed-header":e.fixedHeader,"v-table--fixed-footer":e.fixedFooter,"v-table--has-top":!!n.top,"v-table--has-bottom":!!n.bottom,"v-table--hover":e.hover,"v-table--striped-even":"even"===e.striped,"v-table--striped-odd":"odd"===e.striped},i.value,r.value,e.class]),style:Y(e.style)},{default:()=>{var a,i;return[null==(a=n.top)?void 0:a.call(n),bo(S$,{defaults:t},{default:()=>{var t;return[n.default?yo("div",{class:"v-table__wrapper",style:{height:OL(e.height)}},[yo("table",null,[n.default()])]):null==(t=n.wrapper)?void 0:t.call(n)]}}),null==(i=n.bottom)?void 0:i.call(n)]}})}),{}}}),X2=AF({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},rowProps:[Object,Function],cellProps:[Object,Function],returnObject:Boolean},"DataTable-items");function j2(e,t,n){return t.map((t,a)=>function(e,t,n,a){const i=e.returnObject?t:PL(t,e.itemValue),r=PL(t,e.itemSelectable,!0),o=a.reduce((e,n)=>(null!=n.key&&(e[n.key]=PL(t,n.value)),e),{});return{type:"item",key:e.returnObject?PL(t,e.itemValue):i,index:n,value:i,selectable:r,columns:o,raw:t}}(e,t,a,n))}function U2(e,t){return{items:Zo(()=>j2(e,e.items,t.value))}}const H2=AF({...L2(),hideDefaultBody:Boolean,hideDefaultFooter:Boolean,hideDefaultHeader:Boolean,width:[String,Number],search:String,...E1(),...P1(),...v2(),...X2(),...q1(),...Q1(),...N2(),...F2()},"DataTable"),z2=AF({...X1(),...H2(),...e0(),...d2()},"VDataTable"),K2=DF()({name:"VDataTable",props:z2(),emits:{"update:modelValue":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>
5091!0,"update:expanded":e=>!0,"update:currentItems":e=>!0},setup(e,t){let{attrs:n,slots:a}=t;const{groupBy:i}=O1(e),{sortBy:r,multiSort:o,mustSort:s}=e2(e),{page:l,itemsPerPage:u}=U1(e),{disableSort:c}=fn(e),{columns:d,headers:h,sortFunctions:p,sortRawFunctions:f,filterFunctions:m}=I2(e,{groupBy:i,showSelect:gn(()=>e.showSelect),showExpand:gn(()=>e.showExpand)}),{items:v}=U2(e,d),g=gn(()=>e.search),{filteredItems:y}=t0(e,v,g,{transform:e=>e.columns,customKeyFilter:m}),{toggleSort:b}=t2({sortBy:r,multiSort:o,mustSort:s,page:l}),{sortByWithGroups:_,opened:w,extractRows:k,isGroupOpen:C,toggleGroup:S}=R1({groupBy:i,sortBy:r,disableSort:c}),{sortedItems:T}=a2(e,y,_,{transform:e=>({...e.raw,...e.columns}),sortFunctions:p,sortRawFunctions:f}),{flatItems:A}=F1(T,i,w,()=>!!a["group-summary"]),E=Zo(()=>A.value.length),{startIndex:I,stopIndex:x,pageCount:N,setItemsPerPage:P}=H1({page:l,itemsPerPage:u,itemsLength:E}),{paginatedItems:M}=z1({items:A,startIndex:I,stopIndex:x,itemsPerPage:u}),O=Zo(()=>k(M.value)),{isSelected:R,select:D,selectAll:L,toggleSelect:B,someSelected:F,allSelected:V}=Y1(e,{allItems:v,currentPage:O}),{isExpanded:X,toggleExpand:j}=x1(e);V1({page:l,itemsPerPage:u,sortBy:r,groupBy:i,search:g}),MF({VDataTableRows:{hideNoData:gn(()=>e.hideNoData),noDataText:gn(()=>e.noDataText),loading:gn(()=>e.loading),loadingText:gn(()=>e.loadingText)}});const U=Zo(()=>({page:l.value,itemsPerPage:u.value,sortBy:r.value,pageCount:N.value,toggleSort:b,setItemsPerPage:P,someSelected:F.value,allSelected:V.value,isSelected:R,select:D,selectAll:L,toggleSelect:B,isExpanded:X,toggleExpand:j,isGroupOpen:C,toggleGroup:S,items:O.value.map(e=>e.raw),internalItems:O.value,groupedItems:M.value,columns:d.value,headers:h.value}));return GF(()=>{const t=h2.filterProps(e),i=P2.filterProps(e),r=B2.filterProps(e),o=V2.filterProps(e);return bo(V2,Io({class:["v-data-table",{"v-data-table--show-select":e.showSelect,"v-data-table--loading":e.loading},e.class],style:e.style},o,{fixedHeader:e.fixedHeader||e.sticky}),{top:()=>{var e;return null==(e=a.top)?void 0:e.call(a,U.value)},default:()=>{var t,o,s,l,u,c;return a.default?a.default(U.value):yo(eo,null,[null==(t=a.colgroup)?void 0:t.call(a,U.value),!e.hideDefaultHeader&&yo("thead",{key:"thead"},[bo(P2,i,a)]),null==(o=a.thead)?void 0:o.call(a,U.value),!e.hideDefaultBody&&yo("tbody",null,[null==(s=a["body.prepend"])?void 0:s.call(a,U.value),a.body?a.body(U.value):bo(B2,Io(n,r,{items:M.value}),a),null==(l=a["body.append"])?void 0:l.call(a,U.value)]),null==(u=a.tbody)?void 0:u.call(a,U.value),null==(c=a.tfoot)?void 0:c.call(a,U.value)])},bottom:()=>a.bottom?a.bottom(U.value):!e.hideDefaultFooter&&yo(eo,null,[bo(eQ,null,null),bo(h2,t,{prepend:a["footer.prepend"]})])})}),{}}}),W2=AF({...UL(H2(),["hideDefaultFooter"]),...P1(),...UZ(),...e0()},"VDataTableVirtual"),G2=DF()({name:"VDataTableVirtual",props:W2(),emits:{"update:modelValue":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0},setup(e,t){let{attrs:n,slots:a}=t;const{groupBy:i}=O1(e),{sortBy:r,multiSort:o,mustSort:s}=e2(e),{disableSort:l}=fn(e),{columns:u,headers:c,filterFunctions:d,sortFunctions:h,sortRawFunctions:p}=I2(e,{groupBy:i,showSelect:gn(()=>e.showSelect),showExpand:gn(()=>e.showExpand)}),{items:f}=U2(e,u),m=gn(()=>e.search),{filteredItems:v}=t0(e,f,m,{transform:e=>e.columns,customKeyFilter:d}),{toggleSort:g}=t2({sortBy:r,multiSort:o,mustSort:s}),{sortByWithGroups:y,opened:b,extractRows:_,isGroupOpen:w,toggleGroup:k}=R1({groupBy:i,sortBy:r,disableSort:l}),{sortedItems:C}=a2(e,v,y,{transform:e=>({...e.raw,...e.columns}),sortFunctions:h,sortRawFunctions:p}),{flatItems:S}=F1(C,i,b,()=>!!a["group-summary"]),T=Zo(()=>_(S.value)),{isSelected:A,select:E,selectAll:I,toggleSelect:x,someSelected:N,allSelected:P}=Y1(e,{allItems:T,currentPage:T}),{isExpanded:M,toggleExpand:O}=x1(e),{containerRef:R,markerRef:D,paddingTop:L,paddingBottom:B,computedItems:F,handleItemResize:V,handleScroll:X,handleScrollend:j,calculateVisibleItems:U,scrollToIndex:H}=HZ(e,S),z=Zo(()=>F.value.map(e=>e.raw));V1({sortBy:r,page:rn(1),itemsPerPage:rn(-1),groupBy:i,search:m}),MF({VDataTableRows:{hideNoData:gn(()=>e.hideNoData),noDataText:gn(()=>e.noDataText),loading:gn(()=>e.loading),loadingText:gn(()=>e.loadingText)}});const K=Zo(()=>({sortBy:r.value,toggleSort:g,someSelected:N.value,allSelected:P.value,isSelected:A,select:E,selectAll:I,toggleSelect:x,isExpanded:M,toggleExpand:O,isGroupOpen:w,toggleGroup:k,items:T.value.map(e=>e.raw),internalItems:T.value,groupedItems:S.value,columns:u.value,headers:c.value}));return GF(()=>{const t=P2.filterProps(e),i=B2.filterProps(e),r=V2.filterProps(e);return bo(V2,Io({class:["v-data-table",{"v-data-table--loading":e.loading},e.class],style:e.style},r,{fixedHeader:e.fixedHeader||e.sticky}),{top:()=>{var e;return null==(e=a.top)?void 0:e.call(a,K.value)},wrapper:()=>{var r,o,s,l,c,d;return yo("div",{ref:R,onScrollPassive:X,onScrollend:j,class:"v-table__wrapper",style:{height:OL(e.height)}},[yo("table",null,[null==(r=a.colgroup)?void 0:r.call(a,K.value),!e.hideDefaultHeader&&yo("thead",{key:"thead"},[bo(P2,t,a)]),null==(o=a.thead)?void 0:o.call(a,K.value),!e.hideDefaultBody&&yo("tbody",{key:"tbody"},[yo("tr",{ref:D,style:{height:OL(L.value),border:0}},[yo("td",{colspan:u.value.length,style:{height:0,border:0}},null)]),null==(s=a["body.prepend"])?void 0:s.call(a,K.value),bo(B2,Io(n,i,{items:z.value}),{...a,item:e=>bo(jZ,{key:e.internalItem.index,renderless:!0,"onUpdate:height":t=>V(e.internalItem.index,t)},{default:t=>{var n,i;let{itemRef:r}=t;return null!=(i=null==(n=a.item)?void 0:n.call(a,{...e,itemRef:r}))?i:bo(D2,Io(e.props,{ref:r,key:e.internalItem.index,index:e.internalItem.index}),a)}})}),null==(l=a["body.append"])?void 0:l.call(a,K.value),yo("tr",{style:{height:OL(B.value),border:0}},[yo("td",{colspan:u.value.length,style:{height:0,border:0}},null)])]),null==(c=a.tbody)?void 0:c.call(a,K.value),null==(d=a.tfoot)?void 0:d.call(a,K.value)])])},bottom:()=>{var e;return null==(e=a.bottom)?void 0:e.call(a,K.value)}})}),{calculateVisibleItems:U,scrollToIndex:H}}}),q2=AF({itemsLength:{type:[Number,String],required:!0},...X1(),...H2(),...d2()},"VDataTableServer"),$2=DF()({name:"VDataTableServer",props:q2(),emits:{"update:modelValue":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>
5091!0,"update:expanded":e=>!0,"update:groupBy":e=>!0},setup(e,t){let{attrs:n,slots:a}=t;const{groupBy:i}=O1(e),{sortBy:r,multiSort:o,mustSort:s}=e2(e),{page:l,itemsPerPage:u}=U1(e),{disableSort:c}=fn(e),d=Zo(()=>parseInt(e.itemsLength,10)),{columns:h,headers:p}=I2(e,{groupBy:i,showSelect:gn(()=>e.showSelect),showExpand:gn(()=>e.showExpand)}),{items:f}=U2(e,h),{toggleSort:m}=t2({sortBy:r,multiSort:o,mustSort:s,page:l}),{opened:v,isGroupOpen:g,toggleGroup:y,extractRows:b}=R1({groupBy:i,sortBy:r,disableSort:c}),{pageCount:_,setItemsPerPage:w}=H1({page:l,itemsPerPage:u,itemsLength:d}),{flatItems:k}=F1(f,i,v,()=>!!a["group-summary"]),{isSelected:C,select:S,selectAll:T,toggleSelect:A,someSelected:E,allSelected:I}=Y1(e,{allItems:f,currentPage:f}),{isExpanded:x,toggleExpand:N}=x1(e),P=Zo(()=>b(f.value));V1({page:l,itemsPerPage:u,sortBy:r,groupBy:i,search:gn(()=>e.search)}),tr("v-data-table",{toggleSort:m,sortBy:r}),MF({VDataTableRows:{hideNoData:gn(()=>e.hideNoData),noDataText:gn(()=>e.noDataText),loading:gn(()=>e.loading),loadingText:gn(()=>e.loadingText)}});const M=Zo(()=>({page:l.value,itemsPerPage:u.value,sortBy:r.value,pageCount:_.value,toggleSort:m,setItemsPerPage:w,someSelected:E.value,allSelected:I.value,isSelected:C,select:S,selectAll:T,toggleSelect:A,isExpanded:x,toggleExpand:N,isGroupOpen:g,toggleGroup:y,items:P.value.map(e=>e.raw),internalItems:P.value,groupedItems:k.value,columns:h.value,headers:p.value}));GF(()=>{const t=h2.filterProps(e),i=P2.filterProps(e),r=B2.filterProps(e),o=V2.filterProps(e);return bo(V2,Io({class:["v-data-table",{"v-data-table--loading":e.loading},e.class],style:e.style},o,{fixedHeader:e.fixedHeader||e.sticky}),{top:()=>{var e;return null==(e=a.top)?void 0:e.call(a,M.value)},default:()=>{var t,o,s,l,u,c;return a.default?a.default(M.value):yo(eo,null,[null==(t=a.colgroup)?void 0:t.call(a,M.value),!e.hideDefaultHeader&&yo("thead",{key:"thead",class:"v-data-table__thead",role:"rowgroup"},[bo(P2,i,a)]),null==(o=a.thead)?void 0:o.call(a,M.value),!e.hideDefaultBody&&yo("tbody",{class:"v-data-table__tbody",role:"rowgroup"},[null==(s=a["body.prepend"])?void 0:s.call(a,M.value),a.body?a.body(M.value):bo(B2,Io(n,r,{items:k.value}),a),null==(l=a["body.append"])?void 0:l.call(a,M.value)]),null==(u=a.tbody)?void 0:u.call(a,M.value),null==(c=a.tfoot)?void 0:c.call(a,M.value)])},bottom:()=>a.bottom?a.bottom(M.value):!e.hideDefaultFooter&&yo(eo,null,[bo(eQ,null,null),bo(h2,t,{prepend:a["footer.prepend"]})])})})}}),Y2=AF({fluid:{type:Boolean,default:!1},...EF(),...T$(),...Yq()},"VContainer"),J2=DF()({name:"VContainer",props:Y2(),setup(e,t){let{slots:n}=t;const{rtlClasses:a}=sV(),{dimensionStyles:i}=A$(e);return GF(()=>bo(e.tag,{class:ne(["v-container",{"v-container--fluid":e.fluid},a.value,e.class]),style:Y([i.value,e.style])},n)),{}}}),Q2=IV.reduce((e,t)=>(e[t]={type:[Boolean,String,Number],default:!1},e),{}),Z2=IV.reduce((e,t)=>(e["offset"+D(t)]={type:[String,Number],default:null},e),{}),e4=IV.reduce((e,t)=>(e["order"+D(t)]={type:[String,Number],default:null},e),{}),t4={col:Object.keys(Q2),offset:Object.keys(Z2),order:Object.keys(e4)};function n4(e,t,n){let a=e;if(null!=n&&!1!==n){if(t){const n=t.replace(e,"");a+="-".concat(n)}return"col"===e&&(a="v-"+a),"col"!==e||""!==n&&!0!==n?(a+="-".concat(n),a.toLowerCase()):a.toLowerCase()}}const a4=["auto","start","end","center","baseline","stretch"],i4=AF({cols:{type:[Boolean,String,Number],default:!1},...Q2,offset:{type:[String,Number],default:null},...Z2,order:{type:[String,Number],default:null},...e4,alignSelf:{type:String,default:null,validator:e=>a4.includes(e)},...EF(),...Yq()},"VCol"),r4=DF()({name:"VCol",props:i4(),setup(e,t){let{slots:n}=t;const a=Zo(()=>{const t=[];let n;for(n in t4)t4[n].forEach(a=>{const i=e[a],r=n4(n,a,i);r&&t.push(r)});const a=t.some(e=>e.startsWith("v-col-"));return t.push({"v-col":!a||!e.cols,["v-col-".concat(e.cols)]:e.cols,["offset-".concat(e.offset)]:e.offset,["order-".concat(e.order)]:e.order,["align-self-".concat(e.alignSelf)]:e.alignSelf}),t});return()=>{var t;return es(e.tag,{class:[a.value,e.class],style:e.style},null==(t=n.default)?void 0:t.call(n))}}}),o4=["start","end","center"],s4=["space-between","space-around","space-evenly"];function l4(e,t){return IV.reduce((n,a)=>(n[e+D(a)]=t(),n),{})}const u4=[...o4,"baseline","stretch"],c4=e=>u4.includes(e),d4=l4("align",()=>({type:String,default:null,validator:c4})),h4=[...o4,...s4],p4=e=>h4.includes(e),f4=l4("justify",()=>({type:String,default:null,validator:p4})),m4=[...o4,...s4,"stretch"],v4=e=>m4.includes(e),g4=l4("alignContent",()=>({type:String,default:null,validator:v4})),y4={align:Object.keys(d4),justify:Object.keys(f4),alignContent:Object.keys(g4)},b4={align:"align",justify:"justify",alignContent:"align-content"};function _4(e,t,n){let a=b4[e];
5091if(null!=n){if(t){const n=t.replace(e,"");a+="-".concat(n)}return a+="-".concat(n),a.toLowerCase()}}const w4=AF({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:c4},...d4,justify:{type:String,default:null,validator:p4},...f4,alignContent:{type:String,default:null,validator:v4},...g4,...EF(),...Yq()},"VRow"),k4=DF()({name:"VRow",props:w4(),setup(e,t){let{slots:n}=t;const a=Zo(()=>{const t=[];let n;for(n in y4)y4[n].forEach(a=>{const i=e[a],r=_4(n,a,i);r&&t.push(r)});return t.push({"v-row--no-gutters":e.noGutters,"v-row--dense":e.dense,["align-".concat(e.align)]:e.align,["justify-".concat(e.justify)]:e.justify,["align-content-".concat(e.alignContent)]:e.alignContent}),t});return()=>{var t;return es(e.tag,{class:["v-row",a.value,e.class],style:e.style},null==(t=n.default)?void 0:t.call(n))}}}),C4=LF("v-spacer","div","VSpacer"),S4=AF({active:{type:[String,Array],default:void 0},controlHeight:[Number,String],disabled:{type:[Boolean,String,Array],default:null},nextIcon:{type:zV,default:"$next"},prevIcon:{type:zV,default:"$prev"},modeIcon:{type:zV,default:"$subgroup"},text:String,viewMode:{type:String,default:"month"}},"VDatePickerControls"),T4=DF()({name:"VDatePickerControls",props:S4(),emits:{"click:year":()=>!0,"click:month":()=>!0,"click:prev":()=>!0,"click:next":()=>!0,"click:text":()=>!0},setup(e,t){let{emit:n}=t;const{t:a}=rV(),i=Zo(()=>Array.isArray(e.disabled)?e.disabled.includes("text"):!!e.disabled),r=Zo(()=>Array.isArray(e.disabled)?e.disabled.includes("mode"):!!e.disabled),o=Zo(()=>Array.isArray(e.disabled)?e.disabled.includes("prev"):!!e.disabled),s=Zo(()=>Array.isArray(e.disabled)?e.disabled.includes("next"):!!e.disabled);function l(){n("click:prev")}function u(){n("click:next")}function c(){n("click:year")}function d(){n("click:month")}return GF(()=>yo("div",{class:ne(["v-date-picker-controls"]),style:{"--v-date-picker-controls-height":OL(e.controlHeight)}},[bo(nJ,{class:"v-date-picker-controls__month-btn","data-testid":"month-btn",disabled:i.value,text:e.text,variant:"text",rounded:!0,onClick:d},null),bo(nJ,{class:"v-date-picker-controls__mode-btn","data-testid":"year-btn",disabled:r.value,density:"comfortable",icon:e.modeIcon,variant:"text","aria-label":a("$vuetify.datePicker.ariaLabel.selectYear"),onClick:c},null),bo(C4,null,null),yo("div",{class:"v-date-picker-controls__month"},[bo(nJ,{"data-testid":"prev-month",disabled:o.value,density:"comfortable",icon:e.prevIcon,variant:"text","aria-label":a("$vuetify.datePicker.ariaLabel.previousMonth"),onClick:l},null),bo(nJ,{"data-testid":"next-month",disabled:s.value,icon:e.nextIcon,density:"comfortable",variant:"text","aria-label":a("$vuetify.datePicker.ariaLabel.nextMonth"),onClick:u},null)])])),{}}}),A4=AF({appendIcon:zV,color:String,header:String,transition:String,onClick:dB()},"VDatePickerHeader"),E4=DF()({name:"VDatePickerHeader",props:A4(),emits:{click:()=>!0,"click:append":()=>!0},setup(e,t){let{emit:n,slots:a}=t;const{backgroundColorClasses:i,backgroundColorStyles:r}=P$(()=>e.color);function o(){n("click")}function s(){n("click:append")}return GF(()=>{const t=!(!a.default&&!e.header),n=!(!a.append&&!e.appendIcon);return yo("div",{class:ne(["v-date-picker-header",{"v-date-picker-header--clickable":!!e.onClick},i.value]),style:Y(r.value),onClick:o},[a.prepend&&yo("div",{key:"prepend",class:"v-date-picker-header__prepend"},[a.prepend()]),t&&bo(D$,{key:"content",name:e.transition},{default:()=>{var t,n;return[yo("div",{key:e.header,class:"v-date-picker-header__content"},[null!=(n=null==(t=a.default)?void 0:t.call(a))?n:e.header])]}}),n&&yo("div",{class:"v-date-picker-header__append"},[a.append?bo(S$,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VBtn:{icon:e.appendIcon,variant:"text"}}},{default:()=>{var e;return[null==(e=a.append)?void 0:e.call(a)]}}):bo(nJ,{key:"append-btn",icon:e.appendIcon,variant:"text",onClick:s},null)])])}),{}}}),I4=AF({allowedDates:[Array,Function],disabled:{type:Boolean,default:null},displayValue:null,modelValue:Array,month:[Number,String],max:null,min:null,showAdjacentMonths:Boolean,year:[Number,String],weekdays:{type:Array,default:()=>[0,1,2,3,4,5,6]},weeksInMonth:{type:String,default:"dynamic"},firstDayOfWeek:{type:[Number,String],default:void 0},firstDayOfYear:{type:[Number,String],default:void 0},weekdayFormat:String},"calendar");const x4=AF({color:String,hideWeekdays:Boolean,multiple:[Boolean,Number,String],showWeek:Boolean,transition:{type:String,default:"picker-transition"},reverseTransition:{type:String,default:"picker-reverse-transition"},...UL(I4(),["displayValue"])},"VDatePickerMonth"),N4=DF()({name:"VDatePickerMonth",props:x4(),emits:{"update:modelValue":e=>!0,"update:month":e=>!0,"update:year":e=>!0},setup(e,t){let{emit:n,slots:a}=t;const i=an(),{t:r}=rV(),{daysInMonth:o,model:s,weekNumbers:l,weekdayLabels:u}=function(e){const t=EV(),n=qF(e,"modelValue",[],e=>qL(e).map(e=>t.date(e))),a=Zo(()=>
5091e.displayValue?t.date(e.displayValue):n.value.length>0?t.date(n.value[0]):e.min?t.date(e.min):Array.isArray(e.allowedDates)?t.date(e.allowedDates[0]):t.date()),i=qF(e,"year",void 0,e=>{const n=null!=e?Number(e):t.getYear(a.value);return t.startOfYear(t.setYear(t.date(),n))},e=>t.getYear(e)),r=qF(e,"month",void 0,e=>{const n=null!=e?Number(e):t.getMonth(a.value),r=t.setYear(t.startOfMonth(t.date()),t.getYear(i.value));return t.setMonth(r,n)},e=>t.getMonth(e)),o=Zo(()=>{const n=t.toJsDate(t.startOfWeek(t.date(),e.firstDayOfWeek)).getDay();return t.getWeekdays(e.firstDayOfWeek,e.weekdayFormat).filter((t,a)=>e.weekdays.includes((a+n)%7))}),s=Zo(()=>{const n=t.getWeekArray(r.value,e.firstDayOfWeek),a=n.flat();if("static"===e.weeksInMonth&&a.length<42){const e=a[a.length-1];let i=[];for(let r=1;r<=42-a.length;r++)i.push(t.addDays(e,r)),r%7==0&&(n.push(i),i=[])}return n});function l(a,i){return a.filter(n=>e.weekdays.includes(t.toJsDate(n).getDay())).map((a,o)=>{const s=t.toISO(a),l=!t.isSameMonth(a,r.value),u=t.isSameDay(a,t.startOfMonth(r.value)),c=t.isSameDay(a,t.endOfMonth(r.value)),d=t.isSameDay(a,r.value),p=e.weekdays.length;return{date:a,formatted:t.format(a,"keyboardDate"),isAdjacent:l,isDisabled:h(a),isEnd:c,isHidden:l&&!e.showAdjacentMonths,isSame:d,isSelected:n.value.some(e=>t.isSameDay(a,e)),isStart:u,isToday:t.isSameDay(a,i),isWeekEnd:o%p===p-1,isWeekStart:o%p===0,isoDate:s,localized:t.format(a,"dayOfMonth"),month:t.getMonth(a),year:t.getYear(a)}})}const u=Zo(()=>{const n=t.startOfWeek(a.value,e.firstDayOfWeek),i=[];for(let e=0;e<=6;e++)i.push(t.addDays(n,e));return l(i,t.date())}),c=Zo(()=>l(s.value.flat(),t.date())),d=Zo(()=>s.value.map(n=>n.length?t.getWeek(n[0],e.firstDayOfWeek,e.firstDayOfYear):null));function h(n){if(e.disabled)return!0;const a=t.date(n);return!((!e.min||!t.isBefore(t.endOfDay(a),t.date(e.min)))&&(!e.max||!t.isAfter(a,t.date(e.max)))&&
5091(Array.isArray(e.allowedDates)&&e.allowedDates.length>0?e.allowedDates.some(e=>t.isSameDay(t.date(e),a)):"function"!=typeof e.allowedDates||e.allowedDates(a)))}return{displayValue:a,daysInMonth:c,daysInWeek:u,genDays:l,model:n,weeksInMonth:s,weekdayLabels:o,weekNumbers:d}}(e),c=EV(),d=rn(),h=rn(),p=rn(!1),f=gn(()=>p.value?e.reverseTransition:e.transition);"range"===e.multiple&&s.value.length>0&&(d.value=s.value[0],s.value.length>1&&(h.value=s.value[s.value.length-1]));const m=Zo(()=>{const t=["number","string"].includes(typeof e.multiple)?Number(e.multiple):1/0;return s.value.length>=t});function v(e){const t=c.format(e.date,"fullDateWithWeekday"),n=e.isToday?"currentDate":"selectDate";return r("$vuetify.datePicker.ariaLabel.".concat(n),t)}function g(t){"range"===e.multiple?function(e){const t=c.startOfDay(e);if(0===s.value.length?d.value=void 0:1===s.value.length&&(d.value=s.value[0],h.value=void 0),d.value)if(h.value)d.value=e,h.value=void 0,s.value=[d.value];else{if(c.isSameDay(t,d.value))return d.value=void 0,void(s.value=[]);c.isBefore(t,d.value)?(h.value=c.endOfDay(d.value),d.value=t):h.value=c.endOfDay(t),s.value=function(e,t,n){const a=e.getDiff(e.endOfDay(null!=n?n:t),e.startOfDay(t),"days"),i=[t];for(let r=1;r<a;r++){const n=e.addDays(t,r);i.push(n)}return n&&i.push(e.endOfDay(n)),i}(c,d.value,h.value)}else d.value=t,s.value=[d.value]}(t):e.multiple?function(e){const t=s.value.findIndex(t=>c.isSameDay(t,e));if(-1===t)s.value=[...s.value,e];else{const e=[...s.value];e.splice(t,1),s.value=e}}(t):s.value=[t]}Mr(o,(e,t)=>{t&&(p.value=c.isBefore(e[0].date,t[0].date))}),GF(()=>yo("div",{class:"v-date-picker-month",style:{"--v-date-picker-days-in-week":e.weekdays.length}},[e.showWeek&&yo("div",{key:"weeks",class:"v-date-picker-month__weeks"},[!e.hideWeekdays&&yo("div",{key:"hide-week-days",class:"v-date-picker-month__day"},[ko(" ")]),l.value.map(e=>yo("div",{class:ne(["v-date-picker-month__day","v-date-picker-month__day--adjacent"])},[e]))]),bo(D$,{name:f.value},{default:()=>{var t;return[yo("div",{ref:i,key:null==(t=o.value[0].date)?void 0:t.toString(),class:"v-date-picker-month__days"},[!e.hideWeekdays&&u.value.map(e=>yo("div",{class:ne(["v-date-picker-month__day","v-date-picker-month__weekday"])},[e])),o.value.map((t,n)=>{var i,r;const o={props:{class:"v-date-picker-month__day-btn",color:t.isSelected||t.isToday?e.color:void 0,disabled:t.isDisabled,icon:!0,ripple:!1,text:t.localized,variant:t.isSelected?"flat":t.isToday?"outlined":"text","aria-label":v(t),"aria-current":t.isToday?"date":void 0,onClick:()=>g(t.date)},item:t,i:n};return m.value&&!t.isSelected&&(t.isDisabled=!0),yo("div",{class:ne(["v-date-picker-month__day",{"v-date-picker-month__day--adjacent":t.isAdjacent,"v-date-picker-month__day--hide-adjacent":t.isHidden,"v-date-picker-month__day--selected":t.isSelected,"v-date-picker-month__day--week-end":t.isWeekEnd,"v-date-picker-month__day--week-start":t.isWeekStart}]),"data-v-date":t.isDisabled?void 0:t.isoDate},[(e.showAdjacentMonths||!t.isAdjacent)&&(null!=(r=null==(i=a.day)?void 0:i.call(a,o))?r:bo(nJ,o.props,null))])})])]}})]))}}),P4=AF({color:String,height:[String,Number],min:null,max:null,modelValue:Number,year:Number,allowedMonths:[Array,Function]},"VDatePickerMonths"),M4=DF()({name:"VDatePickerMonths",props:P4(),emits:{"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:a}=t;const i=EV(),r=qF(e,"modelValue"),o=Zo(()=>{let t=i.startOfYear(i.date());return e.year&&(t=i.setYear(t,e.year)),ML(12).map(n=>{const a=i.format(t,"monthShort"),r=i.format(t,"month"),o=!!(!function(t){if(Array.isArray(e.allowedMonths)&&e.allowedMonths.length)return e.allowedMonths.includes(t);if("function"==typeof e.allowedMonths)return e.allowedMonths(t);return!0}(n)||e.min&&i.isAfter(i.startOfMonth(i.date(e.min)),t)||e.max&&i.isAfter(t,i.startOfMonth(i.date(e.max))));return t=i.getNextMonth(t),{isDisabled:o,text:a,label:r,value:n}})});return Nr(()=>{var e;r.value=null!=(e=r.value)?e:i.getMonth(i.date())}),GF(()=>yo("div",{class:"v-date-picker-months",style:{height:OL(e.height)}},[yo("div",{class:"v-date-picker-months__content"},[o.value.map((t,i)=>{var o,s;const l={active:r.value===i,ariaLabel:t.label,color:r.value===i?e.color:void 0,disabled:t.isDisabled,rounded:!0,text:t.text,variant:r.value===t.value?"flat":"text",onClick:()=>function(e){if(r.value===e)return void n("update:modelValue",r.value);r.value=e}(i)};return null!=(s=null==(o=a.month)?void 0:o.call(a,{month:t,i:i,props:l}))?s:bo(nJ,Io({key:"month"},l),null)})])])),{}}}),O4=AF({color:String,height:[String,Number],min:null,max:null,modelValue:Number,allowedYears:[Array,Function]},"VDatePickerYears"),R4=DF()({name:"VDatePickerYears",props:O4(),directives:{vIntersect:B$},emits:{"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:a}=t;const i=EV(),r=qF(e,"modelValue"),o=Zo(()=>{const t=i.getYear(i.date());let n=t-100,a=t+52;e.min&&(n=i.getYear(i.date(e.min))),e.max&&(a=i.getYear(i.date(e.max)));let r=i.startOfYear(i.date());return r=i.setYear(r,n),ML(a-n+1,n).map(e=>{const t=i.format(r,"year");return r=i.setYear(r,i.getYear(r)+1),{text:t,value:e,isDisabled:!u(e)}})});Nr(()=>{var e;r.value=null!=(e=r.value)?e:i.getYear(i.date())});const s=kB();function l(){var e,t;null==(e=s.el)||e.focus(),null==(t=s.el)||t.scrollIntoView({block:"center"})}function u(t){return Array.isArray(e.allowedYears)&&e.allowedYears.length?e.allowedYears.includes(t):"function"!=typeof e.allowedYears||e.allowedYears(t)}return GF(()=>ta(yo("div",{class:"v-date-picker-years",style:{height:OL(e.height)}},[yo("div",{class:"v-date-picker-years__content"},[o.value.map((t,i)=>{var o,l;const u={ref:r.value===t.value?s:void 0,active:r.value===t.value,color:r.value===t.value?e.color:void 0,rounded:!0,text:t.text,disabled:t.isDisabled,variant:r.value===t.value?"flat":"text",onClick:()=>{r.value!==t.value?r.value=t.value:n("update:modelValue",r.value)}};return null!=(l=null==(o=a.year)?void 0:o.call(a,{year:t,i:i,props:u}))?l:bo(nJ,Io({key:"month"},u),null)})])]),[[B$,{handler:l},null,{once:!0}]])),{}}}),D4=AF({header:{type:String,default:"$vuetify.datePicker.header"},headerColor:String,...S4(),...x4({weeksInMonth:"static"}),...UL(P4(),["modelValue"]),...UL(O4(),["modelValue"]),..._1({title:"$vuetify.datePicker.title"}),modelValue:null},"VDatePicker"),L4=DF()({name:"VDatePicker",props:D4(),emits:{"update:modelValue":e=>!0,"update:month":e=>!0,"update:year":e=>!0,"update:viewMode":e=>!0},setup(e,t){let{emit:n,slots:a}=t;const i=EV(),{t:r}=rV(),{rtlClasses:o}=sV(),s=qF(e,"modelValue",void 0,e=>qL(e).map(e=>i.date(e)),t=>e.multiple?t:t[0]),l=qF(e,"viewMode"),u=Zo(()=>{const t=i.date(e.min);return e.min&&i.isValid(t)?t:null}),c=Zo(()=>{const t=i.date(e.max);return e.max&&i.isValid(t)?t:null}),d=Zo(()=>{var e;const t=i.date();let n=t;return(null==(e=s.value)?void 0:e[0])?n=i.date(s.value[0]):u.value&&i.isBefore(t,u.value)?n=u.value:c.value&&i.isAfter(t,c.value)&&(n=c.value),n&&i.isValid(n)?n:t}),h=gn(()=>{var t;return null!=(t=e.headerColor)?t:e.color}),p=qF(e,"month"),f=Zo({get:()=>{var e;return Number(null!=(e=p.value)?e:i.getMonth(i.startOfMonth(d.value)))},set:e=>p.value=e}),m=qF(e,"year"),v=Zo({get:()=>{var e;return Number(null!=(e=m.value)?e:i.getYear(i.startOfYear(i.setMonth(d.value,f.value))))},set:e=>m.value=e}),g=rn(!1),y=Zo(()=>e.multiple&&s.value.length>1?r("$vuetify.datePicker.itemsSelected",s.value.length):s.value[0]&&i.isValid(s.value[0])?i.format(i.date(s.value[0]),"normalDateWithWeekday"):r(e.header)),b=Zo(()=>{let e=i.date();return e=i.setDate(e,1),e=i.setMonth(e,f.value),e=i.setYear(e,v.value),i.format(e,"monthAndYear")}
5091),_=gn(()=>"date-picker-header".concat(g.value?"-reverse":"","-transition")),w=Zo(()=>{if(e.disabled)return!0;const t=[];if("month"!==l.value)t.push("prev","next");else{let e=i.date();if(e=i.startOfMonth(e),e=i.setMonth(e,f.value),e=i.setYear(e,v.value),u.value){const n=i.addDays(i.startOfMonth(e),-1);i.isAfter(u.value,n)&&t.push("prev")}if(c.value){const n=i.addDays(i.endOfMonth(e),1);i.isAfter(n,c.value)&&t.push("next")}}return t}),k=Zo(()=>e.allowedYears||T),C=Zo(()=>e.allowedMonths||A);function S(t,n){const a=e.allowedDates;if("function"!=typeof a)return!0;const r=i.getDiff(n,t,"days");for(let e=0;e<r;e++)if(a(i.addDays(t,e)))return!0;return!1}function T(t){if("function"==typeof e.allowedDates){const e=i.parseISO("".concat(t,"-01-01"));return S(e,i.endOfYear(e))}if(Array.isArray(e.allowedDates)&&e.allowedDates.length){for(const n of e.allowedDates)if(i.getYear(i.date(n))===t)return!0;return!1}return!0}function A(t){if("function"==typeof e.allowedDates){const e=String(t+1).padStart(2,"0"),n=i.parseISO("".concat(v.value,"-").concat(e,"-01"));return S(n,i.endOfMonth(n))}if(Array.isArray(e.allowedDates)&&e.allowedDates.length){for(const n of e.allowedDates)if(i.getYear(i.date(n))===v.value&&i.getMonth(i.date(n))===t)return!0;return!1}return!0}function E(){f.value<11?f.value++:(v.value++,f.value=0,O()),M()}function I(){f.value>0?f.value--:(v.value--,f.value=11,O()),M()}function x(){l.value="month"}function N(){l.value="months"===l.value?"month":"months"}function P(){l.value="year"===l.value?"month":"year"}function M(){"months"===l.value&&N()}function O(){"year"===l.value&&P()}return Mr(s,(e,t)=>{const n=qL(t),a=qL(e);if(!a.length)return;const r=i.date(n[n.length-1]),o=i.date(a[a.length-1]),s=i.getMonth(o),l=i.getYear(o);s!==f.value&&(f.value=s,M()),l!==v.value&&(v.value=l,O()),g.value=i.isBefore(r,o)}),GF(()=>{const t=w1.filterProps(e),n=T4.filterProps(e),i=E4.filterProps(e),d=N4.filterProps(e),p=UL(M4.filterProps(e),["modelValue"]),m=UL(R4.filterProps(e),["modelValue"]),g={color:h.value,header:y.value,transition:_.value};return bo(w1,Io(t,{color:h.value,class:["v-date-picker","v-date-picker--".concat(l.value),{"v-date-picker--show-week":e.showWeek},o.value,e.class],style:e.style}),{title:()=>{var t,n;return null!=(n=null==(t=a.title)?void 0:t.call(a))?n:yo("div",{class:"v-date-picker__title"},[r(e.title)])},header:()=>a.header?bo(S$,{defaults:{VDatePickerHeader:{...g}}},{default:()=>{var e;return[null==(e=a.header)?void 0:e.call(a,g)]}}):bo(E4,Io({key:"header"},i,g,{onClick:"month"!==l.value?x:void 0}),{prepend:a.prepend,append:a.append}),default:()=>yo(eo,null,[bo(T4,Io(n,{disabled:w.value,text:b.value,"onClick:next":E,"onClick:prev":I,"onClick:month":N,"onClick:year":P}),null),bo(d$,{hideOnLeave:!0},{default:()=>["months"===l.value?bo(M4,Io({key:"date-picker-months"},p,{modelValue:f.value,"onUpdate:modelValue":[e=>f.value=e,M],min:u.value,max:c.value,year:v.value,allowedMonths:C.value}),{month:a.month}):"year"===l.value?bo(R4,Io({key:"date-picker-years"},m,{modelValue:v.value,"onUpdate:modelValue":[e=>v.value=e,O],min:u.value,max:c.value,allowedYears:k.value}),{year:a.year}):bo(N4,Io({key:"date-picker-month"},d,{modelValue:s.value,"onUpdate:modelValue":e=>s.value=e,month:f.value,"onUpdate:month":[e=>f.value=e,M],year:v.value,"onUpdate:year":[e=>v.value=e,O],min:u.value,max:c.value}),{day:a.day})]})]),actions:a.actions})}),{}}}),B4=AF({actionText:String,bgColor:String,color:String,icon:zV,image:String,justify:{type:String,default:"center"},headline:String,title:String,text:String,textWidth:{type:[Number,String],default:500},href:String,to:String,...EF(),...T$(),...mY({size:void 0}),...ZV()},"VEmptyState"),F4=DF()({name:"VEmptyState",props:B4(),emits:{"click:action":e=>!0},setup(e,t){let{emit:n,slots:a}=t;const{themeClasses:i}=sX(e),{backgroundColorClasses:r,backgroundColorStyles:o}=P$(()=>e.bgColor),{dimensionStyles:s}=A$(e),{displayClasses:l}=LV();function u(e){n("click:action",e)}return GF(()=>{var t,n,c,d,h,p,f;const m=!(!a.actions&&!e.actionText),v=!(!a.headline&&!e.headline),g=!(!a.title&&!e.title),y=!(!a.text&&!e.text),b=!!(a.media||e.image||e.icon),_=e.size||(e.image?200:96);return yo("div",{class:ne(["v-empty-state",{["v-empty-state--".concat(e.justify)]:!0},i.value,r.value,l.value,e.class]),style:Y([o.value,s.value,e.style])},[b&&yo("div",{key:"media",class:"v-empty-state__media"},[a.media?bo(S$,{key:"media-defaults",defaults:{VImg:{src:e.image,height:_},VIcon:{size:_,icon:e.icon}}},{default:()=>[a.media()]}):yo(eo,null,[e.image?bo(V$,{key:"image",src:e.image,height:_},null):e.icon?bo(yY,{key:"icon",color:e.color,size:_,icon:e.icon},null):void 0])]),v&&yo("div",{key:"headline",class:"v-empty-state__headline"},[null!=(n=null==(t=a.headline)?void 0:t.call(a))?n:e.headline]),g&&yo("div",{key:"title",class:"v-empty-state__title"},[null!=(d=null==(c=a.title)?void 0:c.call(a))?d:e.title]),y&&yo("div",{key:"text",class:"v-empty-state__text",style:{maxWidth:OL(e.textWidth)}},[null!=(p=null==(h=a.text)?void 0:h.call(a))?p:e.text]),a.default&&yo("div",{key:"c
5091ontent",class:"v-empty-state__content"},[a.default()]),m&&yo("div",{key:"actions",class:"v-empty-state__actions"},[bo(S$,{defaults:{VBtn:{class:"v-empty-state__action-btn",color:null!=(f=e.color)?f:"surface-variant",href:e.href,text:e.actionText,to:e.to}}},{default:()=>{var e,t;return[null!=(t=null==(e=a.actions)?void 0:e.call(a,{props:{onClick:u}}))?t:bo(nJ,{onClick:u},null)]}})])])}),{}}}),V4=Symbol.for("vuetify:v-expansion-panel"),X4=AF({...EF(),...hZ()},"VExpansionPanelText"),j4=DF()({name:"VExpansionPanelText",props:X4(),setup(e,t){let{slots:n}=t;const a=nr(V4);if(!a)throw new Error("[Vuetify] v-expansion-panel-text needs to be placed inside v-expansion-panel");const{hasContent:i,onAfterLeave:r}=pZ(e,a.isSelected);return GF(()=>bo(w$,{onAfterLeave:r},{default:()=>{var t;return[ta(yo("div",{class:ne(["v-expansion-panel-text",e.class]),style:Y(e.style)},[n.default&&i.value&&yo("div",{class:"v-expansion-panel-text__wrapper"},[null==(t=n.default)?void 0:t.call(n)])]),[[Ls,a.isSelected.value]])]}})),{}}}),U4=AF({color:String,expandIcon:{type:zV,default:"$expand"},collapseIcon:{type:zV,default:"$collapse"},hideActions:Boolean,focusable:Boolean,static:Boolean,ripple:{type:[Boolean,Object],default:!1},readonly:Boolean,...EF(),...T$()},"VExpansionPanelTitle"),H4=DF()({name:"VExpansionPanelTitle",directives:{vRipple:eJ},props:U4(),setup(e,t){let{slots:n}=t;const a=nr(V4);if(!a)throw new Error("[Vuetify] v-expansion-panel-title needs to be placed inside v-expansion-panel");const{backgroundColorClasses:i,backgroundColorStyles:r}=P$(()=>e.color),{dimensionStyles:o}=A$(e),s=Zo(()=>({collapseIcon:e.collapseIcon,disabled:a.disabled.value,expanded:a.isSelected.value,expandIcon:e.expandIcon,readonly:e.readonly})),l=gn(()=>a.isSelected.value?e.collapseIcon:e.expandIcon);return GF(()=>{var t;return ta(yo("button",{class:ne(["v-expansion-panel-title",{"v-expansion-panel-title--active":a.isSelected.value,"v-expansion-panel-title--focusable":e.focusable,"v-expansion-panel-title--static":e.static},i.value,e.class]),style:Y([r.value,o.value,e.style]),type:"button",tabindex:a.disabled.value?-1:void 0,disabled:a.disabled.value,"aria-expanded":a.isSelected.value,onClick:e.readonly?void 0:a.toggle},[yo("span",{class:"v-expansion-panel-title__overlay"},null),null==(t=n.default)?void 0:t.call(n,s.value),!e.hideActions&&bo(S$,{defaults:{VIcon:{icon:l.value}}},{default:()=>{var e,t;return[yo("span",{class:"v-expansion-panel-title__icon"},[null!=(t=null==(e=n.actions)?void 0:e.call(n,s.value))?t:bo(yY,null,null)])]}})]),[[eJ,e.ripple]])}),{}}}),z4=AF({title:String,text:String,bgColor:String,...U$(),...sY(),...M$(),...Yq(),...U4(),...X4()},"VExpansionPanel"),K4=DF()({name:"VExpansionPanel",props:z4(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const a=lY(e,V4),{backgroundColorClasses:i,backgroundColorStyles:r}=P$(()=>e.bgColor),{elevationClasses:o}
5091=H$(e),{roundedClasses:s}=O$(e),l=gn(()=>(null==a?void 0:a.disabled.value)||e.disabled),u=Zo(()=>a.group.items.value.reduce((e,t,n)=>(a.group.selected.value.includes(t.id)&&e.push(n),e),[])),c=Zo(()=>{const e=a.group.items.value.findIndex(e=>e.id===a.id);return!a.isSelected.value&&u.value.some(t=>t-e===1)}),d=Zo(()=>{const e=a.group.items.value.findIndex(e=>e.id===a.id);return!a.isSelected.value&&u.value.some(t=>t-e===-1)});return tr(V4,a),GF(()=>{const t=!(!n.text&&!e.text),u=!(!n.title&&!e.title),h=H4.filterProps(e),p=j4.filterProps(e);return bo(e.tag,{class:ne(["v-expansion-panel",{"v-expansion-panel--active":a.isSelected.value,"v-expansion-panel--before-active":c.value,"v-expansion-panel--after-active":d.value,"v-expansion-panel--disabled":l.value},s.value,i.value,e.class]),style:Y([r.value,e.style])},{default:()=>[yo("div",{class:ne(["v-expansion-panel__shadow",...o.value])},null),bo(S$,{defaults:{VExpansionPanelTitle:{...h},VExpansionPanelText:{...p}}},{default:()=>{var a;return[u&&bo(H4,{key:"title"},{default:()=>[n.title?n.title():e.title]}),t&&bo(j4,{key:"text"},{default:()=>[n.text?n.text():e.text]}),null==(a=n.default)?void 0:a.call(n)]}})]})}),{groupItem:a}}}),W4=["default","accordion","inset","popout"],G4=AF({flat:Boolean,...oY(),...XL(z4(),["bgColor","collapseIcon","color","eager","elevation","expandIcon","focusable","hideActions","readonly","ripple","rounded","tile","static"]),...ZV(),...EF(),...Yq(),variant:{type:String,default:"default",validator:e=>W4.includes(e)}},"VExpansionPanels"),q4=DF()({name:"VExpansionPanels",props:G4(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{next:a,prev:i}=uY(e,V4),{themeClasses:r}=sX(e),o=gn(()=>e.variant&&"v-expansion-panels--variant-".concat(e.variant));return MF({VExpansionPanel:{bgColor:gn(()=>e.bgColor),collapseIcon:gn(()=>e.collapseIcon),color:gn(()=>e.color),eager:gn(()=>e.eager),elevation:gn(()=>e.elevation),expandIcon:gn(()=>e.expandIcon),focusable:gn(()=>e.focusable),hideActions:gn(()=>e.hideActions),readonly:gn(()=>e.readonly),ripple:gn(()=>e.ripple),rounded:gn(()=>e.rounded),static:gn(()=>e.static)}}),GF(()=>bo(e.tag,{class:ne(["v-expansion-panels",{"v-expansion-panels--flat":e.flat,"v-expansion-panels--tile":e.tile},r.value,o.value,e.class]),style:Y(e.style)},{default:()=>{var e;return[null==(e=n.default)?void 0:e.call(n,{prev:i,next:a})]}})),{next:a,prev:i}}}),$4=AF({app:Boolean,appear:Boolean,extended:Boolean,layout:Boolean,offset:Boolean,modelValue:{type:Boolean,default:!0},...UL(tJ({active:!0}),["location","spaced"]),...pX(),...CY(),...R$({transition:"fab-transition"})},"VFab"),Y4=DF()({name:"VFab",props:$4(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const a=qF(e,"modelValue"),i=rn(56),r=an(),{resizeRef:o}=uX(e=>{e.length&&(i.value=e[0].target.clientHeight)}),s=gn(()=>e.app||e.absolute),l=Zo(()=>{var t,n;return!!s.value&&(null!=(n=null==(t=e.location)?void 0:t.split(" ").shift())?n:"bottom")}),u=Zo(()=>{var t,n;return!!s.value&&(null!=(n=null==(t=e.location)?void 0:t.split(" ")[1])?n:"end")});gL(()=>e.app,()=>{const t=mX({id:e.name,order:Zo(()=>parseInt(e.order,10)),position:l,layoutSize:Zo(()=>e.layout?i.value+24:0),elementSize:Zo(()=>i.value+24),active:Zo(()=>e.app&&a.value),absolute:gn(()=>e.absolute)});Nr(()=>{r.value=t.layoutItemStyles.value})});const c=an();return GF(()=>{const t=nJ.filterProps(e);return yo("div",{ref:c,class:ne(["v-fab",{"v-fab--absolute":e.absolute,"v-fab--app":!!e.app,"v-fab--extended":e.extended,"v-fab--offset":e.offset,["v-fab--".concat(l.value)]:s.value,["v-fab--".concat(u.value)]:s.value},e.class]),style:Y([e.app?{...r.value}:{height:e.absolute?"100%":"inherit"},e.style])},[yo("div",{class:"v-fab__container"},[bo(D$,{appear:e.appear,transition:e.transition},{default:()=>[ta(bo(nJ,Io({ref:o},t,{active:void 0,location:void 0}),n),[[Ls,e.active]])]})])])}),{}}});function J4(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new Promise((n,a)=>{if(e.isFile){e.file(e=>n([{file:e,path:t}]),a)}else if(e.isDirectory){e.createReader().readEntries(async e=>{const a=[];for(const n of e)a.push(...await J4(n,Q4(t,n)));n(a)})}})}function Q4(e,t){return t.isDirectory?"".concat(e,"/").concat(t.name):e}const Z4=AF({filterByType:String},"file-accept");const e3=AF({chips:Boolean,counter:Boolean,counterSizeString:{type:String,default:"$vuetify.fileInput.counterSize"},counterString:{type:String,default:"$vuetify.fileInput.counter"},hideInput:Boolean,multiple:Boolean,showSize:{type:[Boolean,Number,String],default:!1,validator:e=>"boolean"==typeof e||[1e3,1024].includes(Number(e))},truncateLength:{type:[Number,String],default:22},...RJ({prependIcon:"$file"}),modelValue:{type:[Array,Object],default:e=>e.multiple?[]:null,validator:e=>qL(e).every(e=>null!=e&&"object"==typeof e)},...Z4(),...MZ({clearable:!0})},"VFileInput"),t3=DF()({name:"VFileInput",inheritAttrs:!1,props:e3(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0,rejected:e=>!0},setup(e,t){let{attrs:n,emit:a,slots:i}=t;const{t:r}=rV(),{filterAccepted:o}=function(e){const t=Zo(()=>e.filterByType?function(e){const t=e.split(",").map(e=>e.trim().toLowerCase()),n=t.filter(e=>e.startsWith(".")),a=t.filter(e=>e.endsWith("/*")),i=t.filter(e=>!n.includes(e)&&!a.includes(e));return e=>{var t,r,o,s;const l=null!=(r=null==(t=e.name.split(".").at(-1))?void 0:t.toLowerCase())?r:"",u=null!=(s=null==(o=e.type.split("/").at(0))?void 0:o.toLowerCase())?s:"";return i.includes(e.type)||n.includes(".".concat(l))||a.includes("".concat(u,"/*"))}}(e.filterByType):null);return{filterAccepted:function(e){if(t.value){const n=e.filter(t.value);return{accepted:n,rejected:e.filter(e=>!n.includes(e))}}return{accepted:e,rejected:[]}}}}(e),s=qF(e,"modelValue",e.modelValue,e=>qL(e),t=>
5091!e.multiple&&Array.isArray(t)?t[0]:t),{isFocused:l,focus:u,blur:c}=EJ(e),d=Zo(()=>"boolean"!=typeof e.showSize?e.showSize:void 0),h=Zo(()=>{var e;return(null!=(e=s.value)?e:[]).reduce((e,t)=>{let{size:n=0}=t;return e+n},0)}),p=Zo(()=>eB(h.value,d.value)),f=Zo(()=>{var t;return(null!=(t=s.value)?t:[]).map(t=>{const{name:n="",size:a=0}=t,i=function(t){if(t.length<Number(e.truncateLength))return t;const n=Math.floor((Number(e.truncateLength)-1)/2);return"".concat(t.slice(0,n),"…").concat(t.slice(t.length-n))}(n);return e.showSize?"".concat(i," (").concat(eB(a,d.value),")"):i})}),m=Zo(()=>{var t,n;const a=null!=(n=null==(t=s.value)?void 0:t.length)?n:0;return e.showSize?r(e.counterSizeString,a,p.value):r(e.counterString,a)}),v=an(),g=an(),y=an(),b=gn(()=>l.value||e.active),_=Zo(()=>["plain","underlined"].includes(e.variant)),w=rn(!1),{handleDrop:k,hasFilesOrFolders:C}={handleDrop:async function(e){var t,n,a,i;const r=[],o=[...null!=(n=null==(t=e.dataTransfer)?void 0:t.items)?n:[]].filter(e=>"file"===e.kind).map(e=>e.webkitGetAsEntry()).filter(Boolean);if(o.length)for(const s of o){const e=await J4(s,Q4(".",s));r.push(...e.map(e=>e.file))}else r.push(...null!=(i=null==(a=e.dataTransfer)?void 0:a.files)?i:[]);return r},hasFilesOrFolders:function(e){var t,n,a,i;return[...null!=(n=null==(t=e.dataTransfer)?void 0:t.items)?n:[]].filter(e=>"file"===e.kind).map(e=>e.webkitGetAsEntry()).filter(Boolean).length>0||[...null!=(i=null==(a=e.dataTransfer)?void 0:a.files)?i:[]].length>0}};function S(){var e;y.value!==document.activeElement&&(null==(e=y.value)||e.focus()),l.value||u()}function T(e){var t;null==(t=y.value)||t.click()}function A(e){a("mousedown:control",e)}function E(e){var t;null==(t=y.value)||t.click(),a("click:control",e)}function I(t){t.stopPropagation(),S(),jn(()=>{s.value=[],pB(e["onClick:clear"],t)})}function x(e){e.preventDefault(),e.stopImmediatePropagation(),w.value=!0}function N(e){e.preventDefault(),w.value=!1}async function P(e){if(e.preventDefault(),e.stopImmediatePropagation(),w.value=!1,!y.value||!C(e))return;O(await k(e))}function M(t){var n;if(t.target&&!t.repack)if(e.filterByType)O([...t.target.files]);else{const e=t.target;s.value=[...null!=(n=e.files)?n:[]]}}function O(e){const t=new DataTransfer,{accepted:n,rejected:i}=o(e);i.length&&a("rejected",i);for(const a of n)t.items.add(a);y.value.files=t.files,s.value=[...t.files];const r=new Event("change",{bubbles:!0});r.repack=!0,y.value.dispatchEvent(r)}return Mr(s,e=>{(!Array.isArray(e)||!e.length)&&y.value&&(y.value.value="")}
5091),GF(()=>{var t;const a=!(!i.counter&&!e.counter),r=!(!a&&!i.details),[o,u]=GL(n),{modelValue:d,...k}=DJ.filterProps(e),C={...OZ.filterProps(e),"onClick:clear":I},O=void 0!==n.webkitdirectory&&!1!==n.webkitdirectory,R=n.accept?String(n.accept):void 0,D=O?void 0:null!=(t=e.filterByType)?t:R;return bo(DJ,Io({ref:v,modelValue:e.multiple?s.value:s.value[0],class:["v-file-input",{"v-file-input--chips":!!e.chips,"v-file-input--dragging":w.value,"v-file-input--hide":e.hideInput,"v-input--plain-underlined":_.value},e.class],style:e.style,"onClick:prepend":T},o,k,{centerAffix:!_.value,focused:l.value}),{...i,default:t=>{let{id:n,isDisabled:a,isDirty:r,isReadonly:o,isValid:d,hasDetails:m}=t;return bo(OZ,Io({ref:g,prependIcon:e.prependIcon,onMousedown:A,onClick:E,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},C,{id:n.value,active:b.value||r.value,dirty:r.value||e.dirty,disabled:a.value,focused:l.value,details:m.value,error:!1===d.value,onDragover:x,onDrop:P}),{...i,default:t=>{var n;let{props:{class:r,...l}}=t;return yo(eo,null,[yo("input",Io({ref:y,type:"file",accept:D,readonly:o.value,disabled:a.value,multiple:e.multiple,name:e.name,onClick:e=>{e.stopPropagation(),o.value&&e.preventDefault(),S()},onChange:M,onDragleave:N,onFocus:S,onBlur:c},l,u),null),yo("div",{class:ne(r)},[!!(null==(n=s.value)?void 0:n.length)&&!e.hideInput&&(i.selection?i.selection({fileNames:f.value,totalBytes:h.value,totalBytesReadable:p.value}):e.chips?f.value.map(e=>bo(QJ,{key:e,size:"small",text:e},null)):f.value.join(", "))])])}})},details:r?t=>{var n,r;return yo(eo,null,[null==(n=i.details)?void 0:n.call(i,t),a&&yo(eo,null,[yo("span",null,null),bo(IZ,{active:!!(null==(r=s.value)?void 0:r.length),value:m.value,disabled:e.disabled},i.counter)])])}:void 0})}),FJ({},v,g,y)}}),n3=AF({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...X$(),...EF(),...U$(),...pX(),...M$(),...Yq({tag:"footer"}),...ZV()},"VFooter"),a3=DF()({name:"VFooter",props:n3(),setup(e,t){let{slots:n}=t;const a=an(),{themeClasses:i}=sX(e),{backgroundColorClasses:r,backgroundColorStyles:o}=P$(()=>e.color),{borderClasses:s}=j$(e),{elevationClasses:l}
5091=H$(e),{roundedClasses:u}=O$(e),c=rn(32),{resizeRef:d}=uX(e=>{e.length&&(c.value=e[0].target.clientHeight)}),h=Zo(()=>"auto"===e.height?c.value:parseInt(e.height,10));return gL(()=>e.app,()=>{const t=mX({id:e.name,order:Zo(()=>parseInt(e.order,10)),position:gn(()=>"bottom"),layoutSize:h,elementSize:Zo(()=>"auto"===e.height?void 0:h.value),active:gn(()=>e.app),absolute:gn(()=>e.absolute)});Nr(()=>{a.value=t.layoutItemStyles.value})}),GF(()=>bo(e.tag,{ref:d,class:ne(["v-footer",i.value,r.value,s.value,l.value,u.value,e.class]),style:Y([o.value,e.app?a.value:{height:OL(e.height)},e.style])},n)),{}}}),i3=AF({...EF(),...xJ()},"VForm"),r3=DF()({name:"VForm",props:i3(),emits:{"update:modelValue":e=>!0,submit:e=>!0},setup(e,t){let{slots:n,emit:a}=t;const i=function(e){const t=qF(e,"modelValue"),n=gn(()=>e.disabled),a=gn(()=>e.readonly),i=rn(!1),r=an([]),o=an([]);return Mr(r,()=>{let e=0,n=0;const a=[];for(const t of r.value)!1===t.isValid?(n++,a.push({id:t.id,errorMessages:t.errorMessages})):!0===t.isValid&&e++;o.value=a,t.value=!(n>0)&&(e===r.value.length||null)},{deep:!0,flush:"post"}),tr(IJ,{register:e=>{let{id:t,vm:n,validate:a,reset:i,resetValidation:o}=e;r.value.some(e=>e.id===t),r.value.push({id:t,validate:a,reset:i,resetValidation:o,vm:Zt(n),isValid:null,errorMessages:[]})},unregister:e=>{r.value=r.value.filter(t=>t.id!==e)},update:(e,t,n)=>{const a=r.value.find(t=>t.id===e);a&&(a.isValid=t,a.errorMessages=n)},isDisabled:n,isReadonly:a,isValidating:i,isValid:t,items:r,validateOn:gn(()=>e.validateOn)}),{errors:o,isDisabled:n,isReadonly:a,isValidating:i,isValid:t,items:r,validate:async function(){const t=[];let n=!0;o.value=[],i.value=!0;for(const a of r.value){const i=await a.validate();if(i.length>0&&(n=!1,t.push({id:a.id,errorMessages:i})),!n&&e.fastFail)break}return o.value=t,i.value=!1,{valid:n,errors:o.value}},reset:function(){r.value.forEach(e=>e.reset())},resetValidation:function(){r.value.forEach(e=>e.resetValidation())}}}(e),r=an();function o(e){e.preventDefault(),i.reset()}function s(e){const t=e,n=i.validate();t.then=n.then.bind(n),t.catch=n.catch.bind(n),t.finally=n.finally.bind(n),a("submit",t),t.defaultPrevented||n.then(e=>{var t;let{valid:n}=e;n&&(null==(t=r.value)||t.submit())}),t.preventDefault()}return GF(()=>{var t;return yo("form",{ref:r,class:ne(["v-form",e.class]),style:Y(e.style),novalidate:!0,onReset:o,onSubmit:s},[null==(t=n.default)?void 0:t.call(n,i)])}),FJ(i,r)}}),o3=AF({disabled:Boolean,modelValue:{type:Boolean,default:null},...oZ()},"VHover"),s3=DF()({name:"VHover",props:o3(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const a=qF(e,"modelValue"),{runOpenDelay:i,runCloseDelay:r}=sZ(e,t=>!e.disabled&&(a.value=t));return()=>{var e;return null==(e=n.default)?void 0:e.call(n,{isHovering:a.value,props:{onMouseenter:i,onMouseleave:r}})}}}),l3=AF({color:String,direction:{type:String,default:"vertical",validator:e=>["vertical","horizontal"].includes(e)},side:{type:String,default:"end",validator:e=>["start","end","both"].includes(e)},mode:{type:String,default:"intersect",validator:e=>["intersect","manual"].includes(e)},margin:[Number,String],loadMoreText:{type:String,default:"$vuetify.infiniteScroll.loadMore"},emptyText:{type:String,default:"$vuetify.infiniteScroll.empty"},...T$(),...Yq()},"VInfiniteScroll"),u3=RF({name:"VInfiniteScrollIntersect",props:{side:{type:String,required:!0},rootMargin:String},emits:{intersect:(e,t)=>!0},setup(e,t){let{emit:n}=t;const{intersectionRef:a,isIntersecting:i}=bY();return Mr(i,async t=>{n("intersect",e.side,t)}),GF(()=>yo("div",{class:"v-infinite-scroll-intersect",style:{"--v-infinite-margin-size":e.rootMargin},ref:a},[ko(" ")])),{}}}),c3=DF()({name:"VInfiniteScroll",props:l3(),emits:{load:e=>!0},setup(e,t){let{slots:n,emit:a}=t;const i=an(),r=rn("ok"),o=rn("ok"),s=Zo(()=>OL(e.margin)),l=rn(!1);function u(t){if(!i.value)return;const n="vertical"===e.direction?"scrollTop":"scrollLeft";i.value[n]=t}function c(){if(!i.value)return 0;const t="vertical"===e.direction?"scrollTop":"scrollLeft";return i.value[t]}function d(){if(!i.value)return 0;const t="vertical"===e.direction?"scrollHeight":"scrollWidth";return i.value[t]}function h(e,t){"start"===e?r.value=t:"end"===e?o.value=t:"both"===e&&(r.value=t,o.value=t)}hi(()=>{i.value&&("start"===e.side?u(d()):"both"===e.side&&u(d()/2-function(){if(!i.value)return 0;const t="vertical"===e.direction?"clientHeight":"clientWidth";return i.value[t]}()/2))});let p=0;function f(e,t){l.value=t,l.value&&m(e)}function m(t){if("manual"!==e.mode&&!l.value)return;const n=function(e){return"start"===e?r.value:o.value}(t);i.value&&!["empty","loading"].includes(n)&&(p=d(),h(t,"loading"),a("load",{side:t,done:function(n){h(t,n),jn(()=>{"empty"!==n&&"error"!==n&&("ok"===n&&"start"===t&&u(d()-p+c()),"manual"!==e.mode&&jn(()=>{window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{m(t)})})})}))})}}))}const{t:v}=rV();function g(t,a){var i,r,o,s,l,u,c,d,h;if(e.side!==t&&"both"!==e.side)return;const p=()=>m(t),f={side:t,props:{onClick:p,color:e.color}};return"error"===a?null==(i=n.error)?void 0:i.call(n,f):"empty"===a?null!=(o=null==(r=n.empty)?void 0:r.call(n,f))?o:yo("div",null,[v(e.emptyText)]
5091):"manual"===e.mode?"loading"===a?null!=(l=null==(s=n.loading)?void 0:s.call(n,f))?l:bo(wY,{indeterminate:!0,color:e.color},null):null!=(c=null==(u=n["load-more"])?void 0:u.call(n,f))?c:bo(nJ,{variant:"outlined",color:e.color,onClick:p},{default:()=>[v(e.loadMoreText)]}):null!=(h=null==(d=n.loading)?void 0:d.call(n,f))?h:bo(wY,{indeterminate:!0,color:e.color},null)}const{dimensionStyles:y}=A$(e);return GF(()=>{const t=e.tag,a="start"===e.side||"both"===e.side,l="end"===e.side||"both"===e.side,u="intersect"===e.mode;return bo(t,{ref:i,class:ne(["v-infinite-scroll","v-infinite-scroll--".concat(e.direction),{"v-infinite-scroll--start":a,"v-infinite-scroll--end":l}]),style:Y(y.value)},{default:()=>{var e;return[yo("div",{class:"v-infinite-scroll__side"},[g("start",r.value)]),a&&u&&bo(u3,{key:"start",side:"start",onIntersect:f,rootMargin:s.value},null),null==(e=n.default)?void 0:e.call(n),l&&u&&bo(u3,{key:"end",side:"end",onIntersect:f,rootMargin:s.value},null),yo("div",{class:"v-infinite-scroll__side"},[g("end",o.value)])]}})}),{reset:function(t){const n=null!=t?t:e.side;h(n,"ok"),jn(()=>{u(d()-p+c()),"manual"!==e.mode&&jn(()=>{window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{"both"===n?(m("start"),m("end")):m(n)})})})})})}}}}),d3=Symbol.for("vuetify:v-item-group"),h3=AF({...EF(),...oY({selectedClass:"v-item--selected"}),...Yq(),...ZV()},"VItemGroup"),p3=DF()({name:"VItemGroup",props:h3(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:a}=sX(e),{isSelected:i,select:r,next:o,prev:s,selected:l}=uY(e,d3);return()=>bo(e.tag,{class:ne(["v-item-group",a.value,e.class]),style:Y(e.style)},{default:()=>{var e;return[null==(e=n.default)?void 0:e.call(n,{isSelected:i,select:r,next:o,prev:s,selected:l.value})]}})}}),f3=DF()({name:"VItem",props:sY(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:a,select:i,toggle:r,selectedClass:o,value:s,disabled:l}=lY(e,d3);return()=>{var e;return null==(e=n.default)?void 0:e.call(n,{isSelected:a.value,selectedClass:o.value,select:i,toggle:r,value:s.value,disabled:l.value})}}}),m3=AF({color:String,...X$(),...EF(),...M$(),...Yq({tag:"kbd"}),...ZV(),...U$()},"VKbd"),v3=DF()({name:"VKbd",props:m3(),setup(e,t){let{slots:n}=t;const{themeClasses:a}=sX(e),{borderClasses:i}
5091=j$(e),{roundedClasses:r}=O$(e),{backgroundColorClasses:o,backgroundColorStyles:s}=P$(()=>e.color),{elevationClasses:l}=H$(e);return GF(()=>bo(e.tag,{class:ne(["v-kbd",a.value,o.value,i.value,l.value,r.value,e.class]),style:Y([s.value,e.style])},n)),{}}}),g3=AF({...EF(),...T$(),...hX()},"VLayout"),y3=DF()({name:"VLayout",props:g3(),setup(e,t){let{slots:n}=t;const{layoutClasses:a,layoutStyles:i,getLayoutItem:r,items:o,layoutRef:s}=vX(e),{dimensionStyles:l}=A$(e);return GF(()=>{var t;return yo("div",{ref:s,class:ne([a.value,e.class]),style:Y([l.value,i.value,e.style])},[null==(t=n.default)?void 0:t.call(n)])}),{getLayoutItem:r,items:o}}}),b3=AF({position:{type:String,required:!0},size:{type:[Number,String],default:300},modelValue:Boolean,...EF(),...pX()},"VLayoutItem"),_3=DF()({name:"VLayoutItem",props:b3(),setup(e,t){let{slots:n}=t;const{layoutItemStyles:a}=mX({id:e.name,order:Zo(()=>parseInt(e.order,10)),position:gn(()=>e.position),elementSize:gn(()=>e.size),layoutSize:gn(()=>e.size),active:gn(()=>e.modelValue),absolute:gn(()=>e.absolute)});return()=>{var t;return yo("div",{class:ne(["v-layout-item",e.class]),style:Y([a.value,e.style])},[null==(t=n.default)?void 0:t.call(n)])}}}),w3=AF({modelValue:Boolean,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},...EF(),...T$(),...Yq(),...R$({transition:"fade-transition"})},"VLazy"),k3=DF()({name:"VLazy",directives:{vIntersect:B$},props:w3(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{dimensionStyles:a}=A$(e),i=qF(e,"modelValue");function r(e){i.value||(i.value=e)}return GF(()=>ta(bo(e.tag,{class:ne(["v-lazy",e.class]),style:Y([a.value,e.style])},{default:()=>[i.value&&bo(D$,{transition:e.transition,appear:!0},{default:()=>{var e;return[null==(e=n.default)?void 0:e.call(n)]}})]}),[[B$,{handler:r,options:e.options},null]])),{}}}),C3=AF({locale:String,fallbackLocale:String,messages:Object,rtl:{type:Boolean,default:void 0},...EF()},"VLocaleProvider"),S3=DF()({name:"VLocaleProvider",props:C3(),setup(e,t){let{slots:n}=t;const{rtlClasses:a}=oV(e);return GF(()=>{var t;return yo("div",{class:ne(["v-locale-provider",a.value,e.class]),style:Y(e.style)},[null==(t=n.default)?void 0:t.call(n)])}),{}}}),T3=AF({scrollable:Boolean,...EF(),...T$(),...Yq({tag:"main"})},"VMain"),A3=DF()({name:"VMain",props:T3(),setup(e,t){let{slots:n}=t;const{dimensionStyles:a}=A$(e),{mainStyles:i}=fX(),{ssrBootStyles:r}=q$();return GF(()=>bo(e.tag,{class:ne(["v-main",{"v-main--scrollable":e.scrollable},e.class]),style:Y([i.value,r.value,a.value,e.style])},{default:()=>{var t,a;return[e.scrollable?yo("div",{class:"v-main__scroller"},[null==(t=n.default)?void 0:t.call(n)]):null==(a=n.default)?void 0:a.call(n)]}})),{}}});function E3(e){return(e<0?-1:1)*Math.sqrt(Math.abs(e))*1.41421356237}function I3(e){if(e.length<2)return 0;if(2===e.length)return e[1].t===e[0].t?0:(e[1].d-e[0].d)/(e[1].t-e[0].t);let t=0;for(let n=e.length-1;n>0;n--){if(e[n].t===e[n-1].t)continue;const a=E3(t),i=(e[n].d-e[n-1].d)/(e[n].t-e[n-1].t);t+=(i-a)*Math.abs(i),n===e.length-1&&(t*=.5)}return 1e3*E3(t)}function x3(){const e={};return{addMovement:function(t){Array.from(t.changedTouches).forEach(n=>{var a;(null!=(a=e[n.identifier])?a:e[n.identifier]=new sB(20)).push([t.timeStamp,n])})},endTouch:function(t){Array.from(t.changedTouches).forEach(t=>{delete e[t.identifier]})},getVelocity:function(t){var n;const a=null==(n=e[t])?void 0:n.values().reverse();if(!a)throw new Error("No samples for touch id ".concat(t));const i=a[0],r=[],o=[];for(const e of a){if(i[0]-e[0]>100)break;r.push({t:e[0],d:e[1].clientX}),o.push({t:e[0],d:e[1].clientY})}return{x:I3(r),y:I3(o),get direction(){const{x:e,y:t}=this,[n,a]=[Math.abs(e),Math.abs(t)];return n>a&&e>=0?"right":n>a&&e<=0?"left":a>n&&t>=0?"down":a>n&&t<=0?"up":function(){throw new Error}()}}}}}function N3(){throw new Error}const P3=["start","end","left","right","top","bottom"],M3=AF({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null}
5091,railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,persistent:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:e=>P3.includes(e)},sticky:Boolean,...X$(),...EF(),...oZ(),...DV({mobile:null}),...U$(),...pX(),...M$(),...Yq({tag:"nav"}),...ZV()},"VNavigationDrawer"),O3=DF()({name:"VNavigationDrawer",props:M3(),emits:{"update:modelValue":e=>!0,"update:rail":e=>!0},setup(e,t){let{attrs:n,emit:a,slots:i}=t;const{isRtl:r}=sV(),{themeClasses:o}=sX(e),{borderClasses:s}=j$(e),{backgroundColorClasses:l,backgroundColorStyles:u}=P$(()=>e.color),{elevationClasses:c}=H$(e),{displayClasses:d,mobile:h}=LV(e),{roundedClasses:p}=O$(e),f=RY(),m=qF(e,"modelValue",null,e=>!!e),{ssrBootStyles:v}=q$(),{scopeId:g}=fZ(),y=an(),b=rn(!1),{runOpenDelay:_,runCloseDelay:w}=sZ(e,e=>{b.value=e}),k=Zo(()=>e.rail&&e.expandOnHover&&b.value?Number(e.width):Number(e.rail?e.railWidth:e.width)),C=Zo(()=>xB(e.location,r.value)),S=gn(()=>e.persistent),T=Zo(()=>!e.permanent&&(h.value||e.temporary)),A=Zo(()=>e.sticky&&!T.value&&"bottom"!==C.value);gL(()=>e.expandOnHover&&null!=e.rail,()=>{Mr(b,e=>a("update:rail",!e))}),gL(()=>!e.disableResizeWatcher,()=>{Mr(T,t=>!e.permanent&&jn(()=>m.value=!t))}),gL(()=>!e.disableRouteWatcher&&!!f,()=>{Mr(f.currentRoute,()=>T.value&&(m.value=!1))}),Mr(()=>e.permanent,e=>{e&&(m.value=!0)}),null!=e.modelValue||T.value||(m.value=e.permanent||!h.value);const{isDragging:E,dragProgress:I}=function(e){let{el:t,isActive:n,isTemporary:a,width:i,touchless:r,position:o}=e;hi(()=>{window.addEventListener("touchstart",y,{passive:!0}),window.addEventListener("touchmove",b,{passive:!1}),window.addEventListener("touchend",_,{passive:!0})}),mi(()=>{window.removeEventListener("touchstart",y),window.removeEventListener("touchmove",b),window.removeEventListener("touchend",_)});const s=Zo(()=>["left","right"].includes(o.value)),{addMovement:l,endTouch:u,getVelocity:c}=x3();let d=!1;const h=rn(!1),p=rn(0),f=rn(0);let m;function v(e,t){return("left"===o.value?e:"right"===o.value?document.documentElement.clientWidth-e:"top"===o.value?e:"bottom"===o.value?document.documentElement.clientHeight-e:N3())-(t?i.value:0)}function g(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n="left"===o.value?(e-f.value)/i.value:"right"===o.value?(document.documentElement.clientWidth-e-f.value)/i.value:"top"===o.value?(e-f.value)/i.value:"bottom"===o.value?(document.documentElement.clientHeight-e-f.value)/i.value:N3();return t?YL(n):n}function y(e){if(r.value)return;const t=e.changedTouches[0].clientX,c=e.changedTouches[0].clientY,h="left"===o.value?t<25:"right"===o.value?t>document.documentElement.clientWidth-25:"top"===o.value?c<25:"bottom"===o.value?c>document.documentElement.clientHeight-25:N3(),y=n.value&&("left"===o.value?t<i.value:"right"===o.value?t>document.documentElement.clientWidth-i.value:"top"===o.value?c<i.value:"bottom"===o.value?c>document.documentElement.clientHeight-i.value:N3());(h||y||n.value&&a.value)&&(m=[t,c],f.value=v(s.value?t:c,n.value),p.value=g(s.value?t:c),d=f.value>-20&&f.value<80,u(e),l(e))}function b(e){const t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY;if(d){if(!e.cancelable)return void(d=!1);const a=Math.abs(t-m[0]),i=Math.abs(n-m[1]);(s.value?a>i&&a>3:i>a&&i>3)?(h.value=!0,d=!1):(s.value?i:a)>3&&(d=!1)}if(!h.value)return;e.preventDefault(),l(e);const a=g(s.value?t:n,!1);p.value=Math.max(0,Math.min(1,a)),a>1?f.value=v(s.value?t:n,!0):a<0&&(f.value=v(s.value?t:n,!1))}function _(e){if(d=!1,!h.value)return;l(e),h.value=!1;const t=c(e.changedTouches[0].identifier),a=Math.abs(t.x),i=Math.abs(t.y),r=s.value?a>i&&a>400:i>a&&i>3;n.value=r?t.direction===({left:"right",right:"left",top:"down",bottom:"up"}[o.value]||N3()):p.value>.5}const w=Zo(()=>h.value?{transform:"left"===o.value?"translateX(calc(-100% + ".concat(p.value*i.value,"px))"):"right"===o.value?"translateX(calc(100% - ".concat(p.value*i.value,"px))"):"top"===o.value?"translateY(calc(-100% + ".concat(p.value*i.value,"px))"):"bottom"===o.value?"translateY(calc(100% - ".concat(p.value*i.value,"px))"):N3(),transition:"none"}:void 0);return gL(h,()=>{var e,n,a,i;const r=null!=(n=null==(e=t.value)?void 0:e.style.transform)?n:null,o=null!=(i=null==(a=t.value)?void 0:a.style.transition)?i:null;Nr(()=>{var e,n,a,i;null==(n=t.value)||n.style.setProperty("transform",(null==(e=w.value)?void 0:e.transform)||"none"),null==(i=t.value)||i.style.setProperty("transition",(null==(a=w.value)?void 0:a.transition)||null)}),De(()=>{var e,n;null==(e=t.value)||e.style.setProperty("transform",r),null==(n=t.value)||n.style.setProperty("transition",o)})}),{isDragging:h,dragProgress:p,dragStyles:w}}({el:y,isActive:m,isTemporary:T,width:k,touchless:gn(()=>e.touchless),position:C}),x=Zo(()=>{const t=T.value?0:e.rail&&e.expandOnHover?Number(e.railWidth):k.value;return E.value?t*I.value:t}),{layoutItemStyles:N,layoutItemScrimStyles:P}=mX({id:e.name,order:Zo(()=>parseInt(e.order,10)),position:C,layoutSize:x,elementSize:k,active:Kt(m),disableTransitions:gn(()=>E.value),absolute:Zo(()=>e.absolute||A.value&&"string"!=typeof M.value)}),{isStuck:M,stickyStyles:O}=function(e){let{rootEl:t,isSticky:n,layoutItemStyles:a}=e;const i=rn(!1),r=rn(0),o=Zo(()=>{const e="boolean"==typeof i.value?"top":i.value;return[n.value?{top:"auto",bottom:"auto",height:void 0}:void 0,i.value?{[e]:OL(r.value)}:{top:a.value.top}]});hi(()=>{Mr(n,e=>{e?window.addEventListener("scroll",l,{passive:!0}):window.removeEventListener("scroll",l)},{immediate:!0})}),mi(()=>{window.removeEventListener("scroll",l)});let s=0;function l(){var e;const n=s>window.scrollY?"up":"down",o=t.value.getBoundingClientRect(),l=parseFloat(null!=(e=a.value.top)?e:0),u=window.scrollY-Math.max(0,r.value-l),c=o.height+Math.max(r.value,l)-window.scrollY-window.innerHeight,d=parseFloat(getComputedStyle(t.value).getPropertyValue("--v-body-scroll-y"))||0;o.height<window.innerHeight-l?(i.value="top",r.value=l):"up"===n&&"bottom"===i.value||"down"===n&&"top"===i.value?(r.value=window.scrollY+o.top-d,i.value=!0):"down"===n&&c<=0?(r.value=0,i.value="bottom"):"up"===n&&u<=0&&(d?"top"!==i.value&&(r.value=-u+d+l,i.value="top"):(r.value=o.top+u,i.value="top")),s=window.scrollY}return{isStuck:i,stickyStyles:o}}({rootEl:y,isSticky:A,layoutItemStyles:N}),R=P$(()=>"string"==typeof e.scrim?e.scrim:null),D=Zo(()=>({...E.value?{opacity:.2*I.value,transition:"none"}:void 0,...P.value}));return MF({VList:{bgColor:"transparent"}}),GF(()=>{const t=i.image||e.image;return yo(eo,null,[bo(e.tag,Io({ref:y,onMouseenter:_,onMouseleave:w,
5091class:["v-navigation-drawer","v-navigation-drawer--".concat(C.value),{"v-navigation-drawer--expand-on-hover":e.expandOnHover,"v-navigation-drawer--floating":e.floating,"v-navigation-drawer--is-hovering":b.value,"v-navigation-drawer--rail":e.rail,"v-navigation-drawer--temporary":T.value,"v-navigation-drawer--persistent":S.value,"v-navigation-drawer--active":m.value,"v-navigation-drawer--sticky":A.value},o.value,l.value,s.value,d.value,c.value,p.value,e.class],style:[u.value,N.value,v.value,O.value,e.style]},g,n),{default:()=>{var n,a,r;return[t&&yo("div",{key:"image",class:"v-navigation-drawer__img"},[i.image?bo(S$,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{alt:"",cover:!0,height:"inherit",src:e.image}}},i.image):bo(V$,{key:"image-img",alt:"",cover:!0,height:"inherit",src:e.image},null)]),i.prepend&&yo("div",{class:"v-navigation-drawer__prepend"},[null==(n=i.prepend)?void 0:n.call(i)]),yo("div",{class:"v-navigation-drawer__content"},[null==(a=i.default)?void 0:a.call(i)]),i.append&&yo("div",{class:"v-navigation-drawer__append"},[null==(r=i.append)?void 0:r.call(i)])]}}),bo(_s,{name:"fade-transition"},{default:()=>[T.value&&(E.value||m.value)&&!!e.scrim&&yo("div",Io({class:["v-navigation-drawer__scrim",R.backgroundColorClasses.value],style:[D.value,R.backgroundColorStyles.value],onClick:()=>{S.value||(m.value=!1)}},g),null)]})])}),{isStuck:M}}}),R3=RF({name:"VNoSsr",setup(e,t){let{slots:n}=t;const a=dZ();return()=>{var e;return a.value&&(null==(e=n.default)?void 0:e.call(n))}}});const D3=AF({controlVariant:{type:String,default:"default"},inset:Boolean,hideInput:Boolean,modelValue:{type:Number,default:null},min:{type:Number,default:Number.MIN_SAFE_INTEGER},max:{type:Number,default:Number.MAX_SAFE_INTEGER},step:{type:Number,default:1},precision:{type:Number,default:0},minFractionDigits:{type:Number,default:null},decimalSeparator:{type:String,validator:e=>!e||1===e.length},...UL(FZ(),["modelValue","validationValue"])},"VNumberInput"),L3=DF()({name:"VNumberInput",props:{...D3()},emits:{"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const a=an(),{holdStart:i,holdStop:r}=function(e){let{toggleUpDown:t}=e,n=-1,a=-1;function i(){window.clearTimeout(n),window.clearInterval(a),window.removeEventListener("pointerup",i),document.removeEventListener("blur",i)}function r(e){t("up"===e)}return De(i),{holdStart:function(e){i(),r(e),window.addEventListener("pointerup",i),document.addEventListener("blur",i),n=window.setTimeout(()=>{a=window.setInterval(()=>r(e),50)},500)},holdStop:i}}({toggleUpDown:T}),o=NJ(e),s=Zo(()=>o.isDisabled.value||o.isReadonly.value),l=rn(e.focused),{decimalSeparator:u}=rV(),c=Zo(()=>{var t;return(null==(t=e.decimalSeparator)?void 0:t[0])||u.value});function d(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.precision,a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const i=null==n?String(t):t.toFixed(n);if(l.value&&a)return Number(i).toString().replace(".",c.value);if(null===e.minFractionDigits||null!==n&&n<e.minFractionDigits)return i.replace(".",c.value);let[r,o]=i.split(".");return o=(null!=o?o:"").padEnd(e.minFractionDigits,"0").replace(new RegExp("(?<=\\d{".concat(e.minFractionDigits,"})0+$"),"g"),""),[r,o].filter(Boolean).join(c.value)}const h=qF(e,"modelValue",null,e=>null!=e?e:null,t=>null==t?null!=t?t:null:YL(Number(t),e.min,e.max)),p=rn(null);Nr(()=>{l.value&&!s.value&&Number(p.value)===h.value||(null==h.value?p.value=null:isNaN(h.value)||(p.value=d(h.value)))});const f=Zo({get:()=>p.value,set(t){if(null===t||""===t)return h.value=null,void(p.value=null);const n=Number(t.replace(c.value,"."));!isNaN(n)&&n<=e.max&&n>=e.min&&(h.value=n,p.value=t)}}),m=Zo(()=>{var t;return!s.value&&(null!=(t=h.value)?t:0)+e.step<=e.max}),v=Zo(()=>{var t;return!s.value&&(null!=(t=h.value)?t:0)-e.step>=e.min}),g=Zo(()=>e.hideInput?"stacked":e.controlVariant),y=gn(()=>"split"===g.value?"$plus":"$collapse"),b=gn(()=>"split"===g.value?"$minus":"$expand"),_=gn(()=>"split"===g.value?"default":"small"),w=gn(()=>"stacked"===g.value?"auto":"100%"),k={props:{onClick:I,onPointerup:x,onPointerdown:N,onPointercancel:x}},C={props:{onClick:I,onPointerup:x,onPointerdown:P,onPointercancel:x}};function S(e){if(null==e)return 0;const t=e.toString(),n=t.indexOf(".");return~n?t.length-n:0}function T(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(s.value)return;if(null==h.value)return void(f.value=d(YL(0,e.min,e.max)));let n=Math.max(S(h.value),S(e.step));null!=e.precision&&(n=Math.max(n,e.precision)),t?m.value&&(f.value=d(h.value+e.step,n)):v.value&&(f.value=d(h.value-e.step,n))}function A(t){var n;if(!t.data)return;const a=t.target,{value:i,selectionStart:r,selectionEnd:o}=null!=a?a:{},s=i?i.slice(0,r)+t.data+i.slice(o):t.data,l=function(e,t,n){const a=new RegExp("[\\d\\-".concat(TB(n),"]")),i=e.split("").filter(e=>a.test(e)).filter((e,t,a)=>0===t&&/[-]/.test(e)||e===n&&t===a.indexOf(e)||/\d/.test(e)).join("");if(0===t)return i.split(n)[0];const r=new RegExp("".concat(TB(n),"\\d"));if(null!==t&&r.test(i)){const e=i.split(n);return[e[0],e[1].substring(0,t)].join(n)}return i}(s,e.precision,c.value);if(new RegExp("^-?\\d*".concat(TB(c.value),"?\\d*$")).test(s)||(t.preventDefault(),a.value=l),null!=e.precision){if((null==(n=s.split(c.value)[1])?void 0:n.length)>e.precision){t.preventDefault(),a.value=l;const e=(null!=r?r:0)+t.data.length;a.setSelectionRange(e,e)}0===e.precision&&s.includes(c.value)&&(t.preventDefault(),a.value=l)}}async function E(e){["Enter","ArrowLeft","ArrowRight","Backspace","Delete","Tab"].includes(e.ke
5091y)||e.ctrlKey||["ArrowDown","ArrowUp"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),M(),await jn(),"ArrowDown"===e.key?T(!1):T())}function I(e){e.stopPropagation()}function x(e){const t=e.currentTarget;null==t||t.releasePointerCapture(e.pointerId),e.preventDefault(),r()}function N(e){const t=e.currentTarget;null==t||t.setPointerCapture(e.pointerId),e.preventDefault(),e.stopPropagation(),i("up")}function P(e){const t=e.currentTarget;null==t||t.setPointerCapture(e.pointerId),e.preventDefault(),e.stopPropagation(),i("down")}function M(){if(s.value)return;if(!a.value)return;const t=a.value.value,n=Number(t.replace(c.value,"."));t&&!isNaN(n)?f.value=d(YL(n,e.min,e.max)):f.value=null}function O(){s.value||(f.value=null===h.value||isNaN(h.value)?null:d(h.value,e.precision,!1))}function R(){s.value||(null===h.value||isNaN(h.value)?f.value=null:f.value=h.value.toString().replace(".",c.value))}function D(){M()}return Mr(()=>e.precision,()=>O()),Mr(()=>e.minFractionDigits,()=>O()),hi(()=>{M()}),GF(()=>{const{modelValue:t,type:i,...r}=VZ.filterProps(e);function o(){return n.increment?bo(S$,{key:"increment-defaults",defaults:{VBtn:{disabled:!m.value,height:w.value,size:_.value,icon:y.value,variant:"text"}}},{default:()=>[n.increment(k)]}):bo(nJ,{"aria-hidden":"true","data-testid":"increment",disabled:!m.value,height:w.value,icon:y.value,key:"increment-btn",onClick:I,onPointerdown:N,onPointerup:x,onPointercancel:x,size:_.value,variant:"text",tabindex:"-1"},null)}function s(){return n.decrement?bo(S$,{key:"decrement-defaults",defaults:{VBtn:{disabled:!v.value,height:w.value,size:_.value,icon:b.value,variant:"text"}}},{default:()=>[n.decrement(C)]}):bo(nJ,{"aria-hidden":"true","data-testid":"decrement",disabled:!v.value,height:w.value,icon:b.value,key:"decrement-btn",onClick:I,onPointerdown:P,onPointerup:x,onPointercancel:x,size:_.value,variant:"text",tabindex:"-1"},null)}function u(){return yo("div",{class:"v-number-input__control"},[s(),bo(eQ,{vertical:"stacked"!==g.value},null),o()])}function c(){return e.hideInput||e.inset?void 0:bo(eQ,{vertical:!0},null)}const d="split"===g.value?yo("div",{class:"v-number-input__control"},[bo(eQ,{vertical:!0},null),o()]):e.reverse||"hidden"===g.value?void 0:yo(eo,null,[c(),u()]),p=n["append-inner"]||d,S="split"===g.value?yo("div",{class:"v-number-input__control"},[s(),bo(eQ,{vertical:!0},null)]):e.reverse&&"hidden"!==g.value?yo(eo,null,[u(),c()]):void 0,T=n["prepend-inner"]||S;return bo(VZ,Io({ref:a},r,{modelValue:f.value,"onUpdate:modelValue":e=>f.value=e,focused:l.value,"onUpdate:focused":e=>l.value=e,validationValue:h.value,onBeforeinput:A,onFocus:R,onBlur:D,onKeydown:E,class:["v-number-input",{"v-number-input--default":"default"===g.value,"v-number-input--hide-input":e.hideInput,"v-number-input--inset":e.inset,"v-number-input--reverse":e.reverse,"v-number-input--split":"split"===g.value,"v-number-input--stacked":"stacked"===g.value},e.class],style:e.style,inputmode:"decimal"}),{...n,"append-inner":p?function(){for(var e,t=arguments.length,a=new Array(t),i=0;i<t;i++)a[i]=arguments[i];return yo(eo,null,[null==(e=n["append-inner"])?void 0:e.call(n,...a),d])}:void 0,"prepend-inner":T?function(){for(var e,t=arguments.length,a=new Array(t),i=0;i<t;i++)a[i]=arguments[i];return yo(eo,null,[S,null==(e=n["prepend-inner"])?void 0:e.call(n,...a)])}:void 0})}),FJ({},a)}}),B3=AF({autofocus:Boolean,divider:String,focusAll:Boolean,label:{type:String,default:"$vuetify.input.otp"},length:{type:[Number,String],default:6},modelValue:{type:[Number,String],default:void 0},placeholder:String,type:{type:String,default:"number"},...T$(),...AJ(),...XL(MZ({variant:"outlined"}),["baseColor","bgColor","class","color","disabled","error","loading","rounded","style","theme","variant"])},"VOtpInput"),F3=DF()({name:"VOtpInput",props:B3(),emits:{finish:e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:a,slots:i}=t;const{dimensionStyles:r}=A$(e),{isFocused:o,focus:s,blur:l}=EJ(e),u=qF(e,"modelValue","",e=>null==e?[]:String(e).split(""),e=>e.join("")),{t:c}=rV(),d=Zo(()=>Number(e.length)),h=Zo(()=>Array(d.value).fill(0)),p=an(-1),f=an(),m=an([]),v=Zo(()=>m.value[p.value]);let g=!1;function y(){if(k(v.value.value))return void(v.value.value="");if(g)return;const e=u.value.slice(),t=v.value.value;e[p.value]=t;let n=null;p.value>u.value.length?n=u.value.length+1:p.value+1!==d.value&&(n="next"),u.value=e,n&&vB(f.value,n)}function b(){g=!1,y()}function _(e){const t=u.value.slice(),n=p.value;let a=null;
5091["ArrowLeft","ArrowRight","Backspace","Delete"].includes(e.key)&&(e.preventDefault(),"ArrowLeft"===e.key?a="prev":"ArrowRight"===e.key?a="next":["Backspace","Delete"].includes(e.key)&&(t[p.value]="",u.value=t,p.value>0&&"Backspace"===e.key?a="prev":requestAnimationFrame(()=>{var e;null==(e=m.value[n])||e.select()})),requestAnimationFrame(()=>{null!=a&&vB(f.value,a)}))}function w(){l(),p.value=-1}function k(t){return"number"===e.type&&/[^0-9]/g.test(t)}return gL(()=>e.autofocus,()=>{const e=Oe();e.run(()=>{const{intersectionRef:t,isIntersecting:n}=bY();Nr(()=>{t.value=m.value[0]}),Mr(n,n=>{var a;n&&(null==(a=t.value)||a.focus(),e.stop())})})}),MF({VField:{color:gn(()=>e.color),bgColor:gn(()=>e.color),baseColor:gn(()=>e.baseColor),disabled:gn(()=>e.disabled),error:gn(()=>e.error),variant:gn(()=>e.variant)}},{scoped:!0}),Mr(u,e=>{e.length===d.value&&a("finish",e.join(""))},{deep:!0}),Mr(p,e=>{e<0||jn(()=>{var t;null==(t=m.value[e])||t.select()})}),GF(()=>{var t;const[a,l]=GL(n);return yo("div",Io({class:["v-otp-input",{"v-otp-input--divided":!!e.divider},e.class],style:[e.style]},a),[yo("div",{ref:f,class:"v-otp-input__content",style:Y([r.value])},[h.value.map((t,n)=>yo(eo,null,[e.divider&&0!==n&&yo("span",{class:"v-otp-input__divider"},[e.divider]),bo(OZ,{focused:o.value&&e.focusAll||p.value===n,key:n},{...i,loader:void 0,default:()=>yo("input",{ref:e=>m.value[n]=e,"aria-label":c(e.label,n+1),autofocus:0===n&&e.autofocus,autocomplete:"one-time-code",class:ne(["v-otp-input__field"]),disabled:e.disabled,inputmode:"number"===e.type?"numeric":"text",min:"number"===e.type?0:void 0,maxlength:0===n?d.value:"1",placeholder:e.placeholder,type:"number"===e.type?"text":e.type,value:u.value[n],onInput:y,onFocus:e=>{return t=n,s(),void(p.value=t);var t},onBlur:w,onKeydown:_,onCompositionstart:()=>g=!0,onCompositionend:b,onPaste:e=>function(e,t){var n,a;t.preventDefault(),t.stopPropagation();const i=null!=(a=null==(n=null==t?void 0:t.clipboardData)?void 0:n.getData("Text").trim().slice(0,d.value))?a:"",r=i.length-1==-1?e:i.length-1;k(i)||(u.value=i.split(""),p.value=r)}(n,e)},null)})])),yo("input",Io({class:"v-otp-input-input",type:"hidden"},l,{value:u.value.join("")}),null),bo(SZ,{contained:!0,contentClass:"v-otp-input__loader",modelValue:!!e.loading,persistent:!0},{default:()=>{var t,n;return[null!=(n=null==(t=i.loader)?void 0:t.call(i))?n:bo(wY,{color:"boolean"==typeof e.loading?void 0:e.loading,indeterminate:!0,size:"24",width:"2"},null)]}}),null==(t=i.default)?void 0:t.call(i)])])}),{blur:()=>{var e;null==(e=m.value)||e.some(e=>e.blur())},focus:()=>{var e;null==(e=m.value)||e[0].focus()},reset:function(){u.value=[]},isFocused:o}}});const V3=AF({scale:{type:[Number,String],default:.5},...EF()},"VParallax"),X3=DF()({name:"VParallax",props:V3(),setup(e,t){let{slots:n}=t;const{intersectionRef:a,isIntersecting:i}=bY(),{resizeRef:r,contentRect:o}=uX(),{height:s}=LV(),l=an();let u;Nr(()=>{var e;a.value=r.value=null==(e=l.value)?void 0:e.$el}),Mr(i,e=>{e?(u=HF(a.value),u=u===document.scrollingElement?document:u,u.addEventListener("scroll",h,{passive:!0}),h()):u.removeEventListener("scroll",h)}),mi(()=>{null==u||u.removeEventListener("scroll",h)}),Mr(s,h),Mr(()=>{var e;return null==(e=o.value)?void 0:e.height},h);const c=Zo(()=>1-YL(Number(e.scale)));let d=-1;function h(){i.value&&!CL()&&(cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var e;const t=(null==(e=l.value)?void 0:e.$el).querySelector(".v-img__img");if(!t)return;const n=u instanceof Document?document.documentElement.clientHeight:u.clientHeight,i=u instanceof Document?window.scrollY:u.scrollTop,r=a.value.getBoundingClientRect().top+i,s=o.value.height,d=function(e){return Math.floor(Math.abs(e))*Math.sign(e)}((i-(r+(s-n)/2))*c.value),h=Math.max(1,(c.value*(n-s)+s)/s);t.style.setProperty("transform","translateY(".concat(d,"px) scale(").concat(h,")"))}))}return GF(()=>bo(V$,{class:ne(["v-parallax",{"v-parallax--active":i.value},e.class]),style:Y(e.style),ref:l,cover:!0,onLoadstart:h,onLoad:h},n)),{}}}),j3=AF({...bJ({falseIcon:"$radioOff",trueIcon:"$radioOn"})},"VRadio"),U3=DF()({name:"VRadio",props:j3(),setup(e,t){let{slots:n}=t;return GF(()=>{const t=_J.filterProps(e);return bo(_J,Io(t,{class:["v-radio",e.class],style:e.style,type:"radio"}),n)}),{}}}),H3=AF({height:{type:[Number,String],default:"auto"},...RJ(),...UL(vJ(),["multiple"]),trueIcon:{type:zV,default:"$radioOn"},falseIcon:{type:zV,default:"$radioOff"},type:{type:String,default:"radio"}}
5091,"VRadioGroup"),z3=DF()({name:"VRadioGroup",inheritAttrs:!1,props:H3(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:a}=t;const i=Pa(),r=Zo(()=>e.id||"radio-group-".concat(i)),o=qF(e,"modelValue"),s=an();return GF(()=>{const[t,i]=GL(n),l=DJ.filterProps(e),u=_J.filterProps(e),c=a.label?a.label({label:e.label,props:{for:r.value}}):e.label;return bo(DJ,Io({ref:s,class:["v-radio-group",e.class],style:e.style},t,l,{modelValue:o.value,"onUpdate:modelValue":e=>o.value=e,id:r.value}),{...a,default:t=>{let{id:n,messagesId:r,isDisabled:s,isReadonly:l}=t;return yo(eo,null,[c&&bo(fJ,{id:n.value},{default:()=>[c]}),bo(yJ,Io(u,{id:n.value,"aria-describedby":r.value,defaultsTarget:"VRadio",trueIcon:e.trueIcon,falseIcon:e.falseIcon,type:e.type,disabled:s.value,readonly:l.value,"aria-labelledby":c?n.value:void 0,multiple:!1},i,{modelValue:o.value,"onUpdate:modelValue":e=>o.value=e}),a)])}})}),FJ({},s)}}),K3=AF({...AJ(),...RJ(),...i1(),strict:Boolean,modelValue:{type:Array,default:()=>[0,0]}},"VRangeSlider"),W3=DF()({name:"VRangeSlider",props:K3(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,end:e=>!0,start:e=>!0},setup(e,t){let{slots:n,emit:a}=t;const i=an(),r=an(),o=an(),{rtlClasses:s}=sV();const l=r1(e),u=qF(e,"modelValue",void 0,e=>(null==e?void 0:e.length)?e.map(e=>l.roundValue(e)):[0,0]),{activeThumbRef:c,hasLabels:d,max:h,min:p,mousePressed:f,onSliderMousedown:m,onSliderTouchstart:v,position:g,trackContainerRef:y,readonly:b}=o1({props:e,steps:l,onSliderStart:()=>{a("start",u.value)},onSliderEnd:t=>{var n;let{value:r}=t;const o=c.value===(null==(n=i.value)?void 0:n.$el)?[r,u.value[1]]:[u.value[0],r];!e.strict&&o[0]<o[1]&&(u.value=o),a("end",u.value)},onSliderMove:t=>{var n,a,o,s;let{value:l}=t;const[d,h]=u.value;e.strict||d!==h||d===p.value||(c.value=l>d?null==(n=r.value)?void 0:n.$el:null==(a=i.value)?void 0:a.$el,null==(o=c.value)||o.focus()),c.value===(null==(s=i.value)?void 0:s.$el)?u.value=[Math.min(l,h),h]:u.value=[d,Math.max(d,l)]},getActiveThumb:function(t){if(!i.value||!r.value)return;const n=a1(t,i.value.$el,e.direction),a=a1(t,r.value.$el,e.direction),o=Math.abs(n),s=Math.abs(a);return o<s||o===s&&n<0?i.value.$el:r.value.$el}}),{isFocused:_,focus:w,blur:k}=EJ(e),C=Zo(()=>g(u.value[0])),S=Zo(()=>g(u.value[1]));return GF(()=>{const t=DJ.filterProps(e),a=!!(e.label||n.label||n.prepend);return bo(DJ,Io({class:["v-slider","v-range-slider",{"v-slider--has-labels":!!n["tick-label"]||d.value,"v-slider--focused":_.value,"v-slider--pressed":f.value,"v-slider--disabled":e.disabled},s.value,e.class],style:e.style,ref:o},t,{focused:_.value}),{...n,prepend:a?t=>{var a,i,r;return yo(eo,null,[null!=(i=null==(a=n.label)?void 0:a.call(n,t))?i:e.label?bo(fJ,{class:"v-slider__label",text:e.label},null):void 0,null==(r=n.prepend)?void 0:r.call(n,t)])}:void 0,default:t=>{var a,o;let{id:s,messagesId:l}=t;return yo("div",{class:"v-slider__container",onMousedown:b.value?void 0:m,onTouchstartPassive:b.value?void 0:v},[yo("input",{id:"".concat(s.value,"_start"),name:e.name||s.value,disabled:!!e.disabled,readonly:!!e.readonly,tabindex:"-1",value:u.value[0]},null),yo("input",{id:"".concat(s.value,"_stop"),name:e.name||s.value,disabled:!!e.disabled,readonly:!!e.readonly,tabindex:"-1",value:u.value[1]},null),bo(c1,{ref:y,start:C.value,stop:S.value},{"tick-label":n["tick-label"]}),bo(l1,{ref:i,"aria-describedby":l.value,focused:_&&c.value===(null==(a=i.value)?void 0:a.$el),modelValue:u.value[0],"onUpdate:modelValue":e=>u.value=[e,u.value[1]],onFocus:e=>{var t,n,a,o;w(),c.value=null==(t=i.value)?void 0:t.$el,h.value!==p.value&&u.value[0]===u.value[1]&&u.value[1]===p.value&&e.relatedTarget!==(null==(n=r.value)?void 0:n.$el)&&(null==(a=i.value)||a.$el.blur(),null==(o=r.value)||o.$el.focus())},onBlur:()=>{k(),c.value=void 0},min:p.value,max:u.value[1],position:C.value,ripple:e.ripple},{"thumb-label":n["thumb-label"]}),bo(l1,{ref:r,"aria-describedby":l.value,focused:_&&c.value===(null==(o=r.value)?void 0:o.$el),modelValue:u.value[1],"onUpdate:modelValue":e=>u.value=[u.value[0],e],onFocus:e=>{var t,n,a,o;w(),c.value=null==(t=r.value)?void 0:t.$el,h.value!==p.value&&u.value[0]===u.value[1]&&u.value[0]===h.value&&e.relatedTarget!==(null==(n=i.value)?void 0:n.$el)&&(null==(a=r.value)||a.$el.blur(),null==(o=i.value)||o.$el.focus())},onBlur:()=>{k(),c.value=void 0},min:u.value[0],max:h.value,position:S.value,ripple:e.ripple}
5091,{"thumb-label":n["thumb-label"]})])}})}),FJ({focus:()=>{var e;return null==(e=i.value)?void 0:e.$el.focus()}},o)}}),G3=AF({name:String,itemAriaLabel:{type:String,default:"$vuetify.rating.ariaLabel.item"},activeColor:String,color:String,clearable:Boolean,disabled:Boolean,emptyIcon:{type:zV,default:"$ratingEmpty"},fullIcon:{type:zV,default:"$ratingFull"},halfIncrements:Boolean,hover:Boolean,length:{type:[Number,String],default:5},readonly:Boolean,modelValue:{type:[Number,String],default:0},itemLabels:Array,itemLabelPosition:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},ripple:Boolean,...EF(),...Q$(),...mY(),...Yq(),...ZV()},"VRating"),q3=DF()({name:"VRating",props:G3(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{t:a}=rV(),{themeClasses:i}=sX(e),r=qF(e,"modelValue"),o=Zo(()=>YL(parseFloat(r.value),0,Number(e.length))),s=Zo(()=>ML(Number(e.length),1)),l=Zo(()=>s.value.flatMap(t=>e.halfIncrements?[t-.5,t]:[t])),u=rn(-1),c=Zo(()=>l.value.map(t=>{var n;const a=e.hover&&u.value>-1,i=o.value>=t,r=u.value>=t,s=(a?r:i)?e.fullIcon:e.emptyIcon,l=null!=(n=e.activeColor)?n:e.color;return{isFilled:i,isHovered:r,icon:s,color:i||r?l:e.color}})),d=Zo(()=>[0,...l.value].map(t=>({onMouseenter:e.hover?function(){u.value=t}:void 0,onMouseleave:e.hover?function(){u.value=-1}:void 0,onClick:function(){e.disabled||e.readonly||(r.value=o.value===t&&e.clearable?0:t)}}))),h=Pa(),p=Zo(()=>{var t;return null!=(t=e.name)?t:"v-rating-".concat(h)});function f(t){var i,r;let{value:s,index:l,showStar:u=!0}=t;const{onMouseenter:h,onMouseleave:f,onClick:m}=d.value[l+1],v="".concat(p.value,"-").concat(String(s).replace(".","-")),g={color:null==(i=c.value[l])?void 0:i.color,density:e.density,disabled:e.disabled,icon:null==(r=c.value[l])?void 0:r.icon,ripple:e.ripple,size:e.size,variant:"plain"};return yo(eo,null,[yo("label",{for:v,class:ne({"v-rating__item--half":e.halfIncrements&&s%1>0,"v-rating__item--full":e.halfIncrements&&s%1==0}),onMouseenter:h,onMouseleave:f,onClick:m},[yo("span",{class:"v-rating__hidden"},[a(e.itemAriaLabel,s,e.length)]),u?n.item?n.item({...c.value[l],props:g,value:s,index:l,rating:o.value}):bo(nJ,Io({"aria-label":a(e.itemAriaLabel,s,e.length)},g),null):void 0]),yo("input",{class:"v-rating__hidden",name:p.value,id:v,type:"radio",value:s,checked:o.value===s,tabindex:-1,readonly:e.readonly,disabled:e.disabled},null)])}function m(e){return n["item-label"]?n["item-label"](e):e.label?yo("span",null,[e.label]):yo("span",null,[ko(" ")])}return GF(()=>{var t;const a=!!(null==(t=e.itemLabels)?void 0:t.length)||n["item-label"];return bo(e.tag,{class:ne(["v-rating",{"v-rating--hover":e.hover,"v-rating--readonly":e.readonly},i.value,e.class]),style:Y(e.style)},{default:()=>[bo(f,{value:0,index:-1,showStar:!1},null),s.value.map((t,n)=>{var i,r;return yo("div",{class:"v-rating__wrapper"},[a&&"top"===e.itemLabelPosition?m({value:t,index:n,label:null==(i=e.itemLabels)?void 0:i[n]}):void 0,yo("div",{class:"v-rating__item"},[e.halfIncrements?yo(eo,null,[bo(f,{value:t-.5,index:2*n},null),bo(f,{value:t,index:2*n+1},null)]):bo(f,{value:t,index:n},null)]),a&&"bottom"===e.itemLabelPosition?m({value:t,index:n,label:null==(r=e.itemLabels)?void 0:r[n]}):void 0])})]})}),{}}}),$3={actions:"button@2",article:"heading, paragraph",avatar:"avatar",button:"button",card:"image, heading","card-avatar":"image, list-item-avatar",chip:"chip","date-picker":"list-item, heading, divider, date-picker-options, date-picker-days, actions","date-picker-options":"text, avatar@2","date-picker-days":"avatar@28",divider:"divider",heading:"heading",image:"image","list-item":"text","list-item-avatar":"avatar, text","list-item-two-line":"sentences","list-item-avatar-two-line":"avatar, sentences","list-item-three-line":"paragraph","list-item-avatar-three-line":"avatar, paragraph",ossein:"ossein",paragraph:"text@3",sentences:"text@2",subtitle:"text",table:"table-heading, table-thead, table-tbody, table-tfoot","table-heading":"chip, text","table-thead":"heading@6","table-tbody":"table-row-divider@6","table-row-divider":"table-row, divider","table-row":"text@6","table-tfoot":"text@2, avatar@2",text:"text"};function Y3(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return yo("div",{class:ne(["v-skeleton-loader__bone","v-skeleton-loader__".concat(e)
5091])},[t])}function J3(e){const[t,n]=e.split("@");return Array.from({length:n}).map(()=>Q3(t))}function Q3(e){let t=[];if(!e)return t;const n=$3[e];if(e===n);else{if(e.includes(","))return Z3(e);if(e.includes("@"))return J3(e);n.includes(",")?t=Z3(n):n.includes("@")?t=J3(n):n&&t.push(Q3(n))}return[Y3(e,t)]}function Z3(e){return e.replace(/\s/g,"").split(",").map(Q3)}const e6=AF({boilerplate:Boolean,color:String,loading:Boolean,loadingText:{type:String,default:"$vuetify.loading"},type:{type:[String,Array],default:"ossein"},...T$(),...U$(),...ZV()},"VSkeletonLoader"),t6=DF()({name:"VSkeletonLoader",inheritAttrs:!1,props:e6(),setup(e,t){let{attrs:n,slots:a}=t;const{backgroundColorClasses:i,backgroundColorStyles:r}=P$(()=>e.color),{dimensionStyles:o}=A$(e),{elevationClasses:s}=H$(e),{themeClasses:l}=sX(e),{t:u}=rV(),c=Zo(()=>Q3(qL(e.type).join(",")));return GF(()=>{var t;const d=!a.default||e.loading,h=e.boilerplate||!d?{}:{ariaLive:"polite",ariaLabel:u(e.loadingText),role:"alert"};return yo(eo,null,[d?yo("div",Io({class:["v-skeleton-loader",{"v-skeleton-loader--boilerplate":e.boilerplate},l.value,i.value,s.value],style:[r.value,o.value]},h,n),[c.value]):null==(t=a.default)?void 0:t.call(a)])}),{}}}),n6=DF()({name:"VSlideGroupItem",props:sY(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const a=lY(e,KJ);return()=>{var e;return null==(e=n.default)?void 0:e.call(n,{isSelected:a.isSelected.value,select:a.select,toggle:a.toggle,selectedClass:a.selectedClass.value})}}});const a6=AF({multiLine:Boolean,text:String,timer:[Boolean,String],timeout:{type:[Number,String],default:5e3},vertical:Boolean,...CY({location:"bottom"}),...MY(),...M$(),...nY(),...ZV(),...UL(CZ({transition:"v-snackbar-transition"}),["persistent","noClickAnimation","scrim","scrollStrategy","stickToTarget"])},"VSnackbar"),i6=DF()({name:"VSnackbar",props:a6(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const a=qF(e,"modelValue"),{positionClasses:i}=OY(e),{scopeId:r}=fZ(),{themeClasses:o}=sX(e),{colorClasses:s,colorStyles:l,variantClasses:u}
5091=aY(e),{roundedClasses:c}=O$(e),d=function(e){const t=rn(e());let n=-1;function a(){clearInterval(n)}return De(a),{clear:a,time:t,start:function(i){const r=i?getComputedStyle(i):{transitionDuration:.2},o=1e3*parseFloat(r.transitionDuration)||200;if(a(),t.value<=0)return;const s=performance.now();n=window.setInterval(()=>{const n=performance.now()-s+o;t.value=Math.max(e()-n,0),t.value<=0&&a()},o)},reset:function(){a(),jn(()=>t.value=e())}}}(()=>Number(e.timeout)),h=an(),p=an(),f=rn(!1),m=rn(0),v=an(),g=nr(cX,void 0);gL(()=>!!g,()=>{const e=fX();Nr(()=>{v.value=e.mainStyles.value})}),Mr(a,b),Mr(()=>e.timeout,b),hi(()=>{a.value&&b()});let y=-1;function b(){d.reset(),window.clearTimeout(y);const t=Number(e.timeout);if(!a.value||-1===t)return;const n=LL(p.value);d.start(n),y=window.setTimeout(()=>{a.value=!1},t)}function _(){f.value=!0,d.reset(),window.clearTimeout(y)}function w(){f.value=!1,b()}function k(e){m.value=e.touches[0].clientY}function C(e){Math.abs(m.value-e.changedTouches[0].clientY)>50&&(a.value=!1)}function S(){f.value&&w()}const T=Zo(()=>e.location.split(" ").reduce((e,t)=>(e["v-snackbar--".concat(t)]=!0,e),{}));return GF(()=>{const t=SZ.filterProps(e),m=!!(n.default||n.text||e.text);return bo(SZ,Io({ref:h,class:["v-snackbar",{"v-snackbar--active":a.value,"v-snackbar--multi-line":e.multiLine&&!e.vertical,"v-snackbar--timer":!!e.timer,"v-snackbar--vertical":e.vertical},T.value,i.value,e.class],style:[v.value,e.style]},t,{modelValue:a.value,"onUpdate:modelValue":e=>a.value=e,contentProps:Io({class:["v-snackbar__wrapper",o.value,s.value,c.value,u.value],style:[l.value],onPointerenter:_,onPointerleave:w},t.contentProps),persistent:!0,noClickAnimation:!0,scrim:!1,scrollStrategy:"none",_disableGlobalStack:!0,onTouchstartPassive:k,onTouchend:C,onAfterLeave:S},r),{default:()=>{var t,i,r;return[tY(!1,"v-snackbar"),e.timer&&!f.value&&yo("div",{key:"timer",class:"v-snackbar__timer"},[bo(EY,{ref:p,color:"string"==typeof e.timer?e.timer:"info",max:e.timeout,modelValue:d.time.value},null)]),m&&yo("div",{key:"content",class:"v-snackbar__content",role:"status","aria-live":"polite"},[null!=(i=null==(t=n.text)?void 0:t.call(n))?i:e.text,null==(r=n.default)?void 0:r.call(n)]),n.actions&&bo(S$,{defaults:{VBtn:{variant:"text",ripple:!1,slim:!0}}},{default:()=>[yo("div",{class:"v-snackbar__actions"},[n.actions({isActive:a})])]})]},activator:n.activator})}),FJ({},h)}}),r6=AF({closable:[Boolean,String],closeText:{type:String,default:"$vuetify.dismiss"},modelValue:{type:Array,default:()=>[]},...UL(a6(),["modelValue"])},"VSnackbarQueue"),o6=DF()({name:"VSnackbarQueue",props:r6(),emits:{"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:a}=t;const{t:i}=rV(),r=rn(!1),o=rn(!1),s=rn();function l(){e.modelValue.length?u():(s.value=void 0,o.value=!1)}function u(){const[t,...a]=e.modelValue;n("update:modelValue",a),s.value="string"==typeof t?{text:t}:t,jn(()=>{r.value=!0})}function c(){r.value=!1}Mr(()=>e.modelValue.length,(e,t)=>{!o.value&&e>t&&u()}),Mr(r,e=>{e&&(o.value=!0)});const d=Zo(()=>({color:"string"==typeof e.closable?e.closable:void 0,text:i(e.closeText)}));GF(()=>{const t=!(!e.closable&&!a.actions),{modelValue:n,...i}=i6.filterProps(e);return yo(eo,null,[o.value&&!!s.value&&(a.default?bo(S$,{defaults:{VSnackbar:s.value}},{default:()=>[a.default({item:s.value})]}):bo(i6,Io(i,s.value,{modelValue:r.value,"onUpdate:modelValue":e=>r.value=e,onAfterLeave:l}),{text:a.text?()=>{var e;return null==(e=a.text)?void 0:e.call(a,{item:s.value})}:void 0,actions:t?()=>yo(eo,null,[a.actions?bo(S$,{defaults:{VBtn:d.value}},{default:()=>[a.actions({item:s.value,props:{onClick:c}})]}):bo(nJ,Io(d.value,{onClick:c}),null)]):void 0}))])})}}),s6=AF({autoDraw:Boolean,autoDrawDuration:[Number,String],autoDrawEasing:{type:String,default:"ease"},color:String,gradient:{type:Array,default:()=>[]},gradientDirection:{type:String,validator:e=>["top","bottom","left","right"].includes(e),default:"top"},height:{type:[String,Number],default:75},labels:{type:Array,default:()=>[]},labelSize:{type:[Number,String],default:7},lineWidth:{type:[String,Number],default:4},id:String,itemValue:{type:String,default:"value"},modelValue:{type:Array,default:()=>[]},min:[String,Number],max:[String,Number],padding:{type:[String,Number],default:8},showLabels:Boolean,smooth:[Boolean,String,Number],width:{type:[Number,String],default:300}}
5091,"Line"),l6=AF({autoLineWidth:Boolean,...s6()},"VBarline"),u6=DF()({name:"VBarline",props:l6(),setup(e,t){let{slots:n}=t;const a=Pa(),i=Zo(()=>e.id||"barline-".concat(a)),r=Zo(()=>Number(e.autoDrawDuration)||500),o=Zo(()=>Boolean(e.showLabels||e.labels.length>0||!!(null==n?void 0:n.label))),s=Zo(()=>parseFloat(e.lineWidth)||4),l=Zo(()=>Math.max(e.modelValue.length*s.value,Number(e.width))),u=Zo(()=>({minX:0,maxX:l.value,minY:0,maxY:parseInt(e.height,10)})),c=Zo(()=>e.modelValue.map(t=>PL(t,e.itemValue,t)));function d(t,n){const{minX:a,maxX:i,minY:r,maxY:o}=n,s=t.length;let l=null!=e.max?Number(e.max):Math.max(...t),u=null!=e.min?Number(e.min):Math.min(...t);u>0&&null==e.min&&(u=0),l<0&&null==e.max&&(l=0);const c=i/(1===s?2:s),d=(o-r)/(l-u||1),h=o-Math.abs(u*d);return t.map((e,t)=>{const n=Math.abs(d*e);return{x:a+t*c,y:h-n+Number(e<0)*n,height:n,value:e}})}const h=Zo(()=>{const t=[],n=d(c.value,u.value),a=n.length;for(let i=0;t.length<a;i++){const a=n[i];let r=e.labels[i];r||(r="object"==typeof a?a.value:a),t.push({x:a.x,value:String(r)})}return t}),p=Zo(()=>d(c.value,u.value)),f=Zo(()=>1===p.value.length?(u.value.maxX-s.value)/2:(Math.abs(p.value[0].x-p.value[1].x)-s.value)/2),m=Zo(()=>"boolean"==typeof e.smooth?e.smooth?2:0:Number(e.smooth));GF(()=>{const t=e.gradient.slice().length?e.gradient.slice().reverse():[""];return yo("svg",{display:"block"},[yo("defs",null,[yo("linearGradient",{id:i.value,gradientUnits:"userSpaceOnUse",x1:"left"===e.gradientDirection?"100%":"0",y1:"top"===e.gradientDirection?"100%":"0",x2:"right"===e.gradientDirection?"100%":"0",y2:"bottom"===e.gradientDirection?"100%":"0"},[t.map((e,n)=>yo("stop",{offset:n/Math.max(t.length-1,1),"stop-color":e||"currentColor"},null))])]),yo("clipPath",{id:"".concat(i.value,"-clip")},[p.value.map(t=>yo("rect",{x:t.x+f.value,y:t.y,width:s.value,height:t.height,rx:m.value,ry:m.value},[e.autoDraw&&!CL()&&yo(eo,null,[yo("animate",{attributeName:"y",from:t.y+t.height,to:t.y,dur:"".concat(r.value,"ms"),fill:"freeze"},null),yo("animate",{attributeName:"height",from:"0",to:t.height,dur:"".concat(r.value,"ms"),fill:"freeze"},null)])]))]),o.value&&yo("g",{key:"labels",style:{textAnchor:"middle",dominantBaseline:"mathematical",fill:"currentColor"}},[h.value.map((t,a)=>{var i,r;return yo("text",{x:t.x+f.value+s.value/2,y:parseInt(e.height,10)-2+(parseInt(e.labelSize,10)||5.25),"font-size":Number(e.labelSize)||7},[null!=(r=null==(i=n.label)?void 0:i.call(n,{index:a,value:t.value}))?r:t.value])})]),yo("g",{"clip-path":"url(#".concat(i.value,"-clip)"),fill:"url(#".concat(i.value,")")},[yo("rect",{x:0,y:0,width:Math.max(e.modelValue.length*s.value,Number(e.width)),height:e.height},null)])])})}});function c6(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:75;if(0===e.length)return"";const i=e.shift(),r=e[e.length-1];return(n?"M".concat(i.x," ").concat(a-i.x+2," L").concat(i.x," ").concat(i.y):"M".concat(i.x," ").concat(i.y))+e.map((n,a)=>{const r=e[a+1],o=e[a-1]||i,s=r&&function(e,t,n){return d6(e.x+n.x)===d6(2*t.x)&&d6(e.y+n.y)===d6(2*t.y)}(r,n,o);if(!r||s)return"L".concat(n.x," ").concat(n.y);const l=Math.min(h6(o,n),h6(r,n)),u=l/2<t?l/2:t,c=p6(o,n,u),d=p6(r,n,u);return"L".concat(c.x," ").concat(c.y,"S").concat(n.x," ").concat(n.y," ").concat(d.x," ").concat(d.y)}).join("")+(n?"L".concat(r.x," ").concat(a-i.x+2," Z"):"")}function d6(e){return parseInt(e,10)}function h6(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function p6(e,t,n){const a=e.x-t.x,i=e.y-t.y,r=Math.sqrt(a*a+i*i),o=a/r,s=i/r;return{x:t.x+o*n,y:t.y+s*n}}const f6=AF({fill:Boolean,...s6()},"VTrendline"),m6=DF()({name:"VTrendline",props:f6(),setup(e,t){let{slots:n}=t;const a=Pa(),i=Zo(()=>e.id||"trendline-".concat(a)),r=Zo(()=>Number(e.autoDrawDuration)||(e.fill?500:2e3)),o=an(0),s=an(null);function l(t,n){const{minX:a,maxX:i,minY:r,maxY:o}=n;1===t.length&&(t=[t[0],t[0]]);const s=t.length,l=null!=e.max?Number(e.max):Math.max(...t),u=null!=e.min?Number(e.min):Math.min(...t),c=(i-a)/(s-1),d=(o-r)/(l-u||1);return t.map((e,t)=>({x:a+t*c,y:o-(e-u)*d,value:e}))}const u=Zo(()=>Boolean(e.showLabels||e.labels.length>0||!!(null==n?void 0:n.label))),c=Zo(()=>parseFloat(e.lineWidth)||4),d=Zo(()=>Number(e.width)),h=Zo(()=>{const t=Number(e.padding);return{minX:t,maxX:d.value-t,minY:t,maxY:parseInt(e.height,10)-t}}),p=Zo(()=>e.modelValue.map(t=>PL(t,e.itemValue,t))),f=Zo(()=>{const t=[],n=l(p.value,h.value),a=n.length;for(let i=0;t.length<a;i++){const a=n[i];let r=e.labels[i];r||(r="object"==typeof a?a.value:a),t.push({x:a.x,value:String(r)})}return t});function m(t){const n="boolean"==typeof e.smooth?e.smooth?8:0:Number(e.smooth);return c6(l(p.value,h.value),n,t,parseInt(e.height,10))}Mr(()=>e.modelValue,async()=>
5091{if(await jn(),!e.autoDraw||!s.value||CL())return;const t=s.value,n=t.getTotalLength();e.fill?(t.style.transformOrigin="bottom center",t.style.transition="none",t.style.transform="scaleY(0)",t.getBoundingClientRect(),t.style.transition="transform ".concat(r.value,"ms ").concat(e.autoDrawEasing),t.style.transform="scaleY(1)"):(t.style.strokeDasharray="".concat(n),t.style.strokeDashoffset="".concat(n),t.getBoundingClientRect(),t.style.transition="stroke-dashoffset ".concat(r.value,"ms ").concat(e.autoDrawEasing),t.style.strokeDashoffset="0"),o.value=n},{immediate:!0}),GF(()=>{var t,a,r;const o=e.gradient.slice().length?e.gradient.slice().reverse():[""];return yo("svg",{display:"block","stroke-width":null!=(t=parseFloat(e.lineWidth))?t:4},[yo("defs",null,[yo("linearGradient",{id:i.value,gradientUnits:"userSpaceOnUse",x1:"left"===e.gradientDirection?"100%":"0",y1:"top"===e.gradientDirection?"100%":"0",x2:"right"===e.gradientDirection?"100%":"0",y2:"bottom"===e.gradientDirection?"100%":"0"},[o.map((e,t)=>yo("stop",{offset:t/Math.max(o.length-1,1),"stop-color":e||"currentColor"},null))])]),u.value&&yo("g",{key:"labels",style:{textAnchor:"middle",dominantBaseline:"mathematical",fill:"currentColor"}},[f.value.map((t,a)=>{var i,r;return yo("text",{x:t.x+c.value/2+c.value/2,y:parseInt(e.height,10)-4+(parseInt(e.labelSize,10)||5.25),"font-size":Number(e.labelSize)||7},[null!=(r=null==(i=n.label)?void 0:i.call(n,{index:a,value:t.value}))?r:t.value])})]),yo("path",{ref:s,d:m(e.fill),fill:e.fill?"url(#".concat(i.value,")"):"none",stroke:e.fill?"none":"url(#".concat(i.value,")")},null),e.fill&&yo("path",{d:m(!1),fill:"none",stroke:null!=(r=e.color)?r:null==(a=e.gradient)?void 0:a[0]},null)])})}}),v6=AF({type:{type:String,default:"trend"},...l6(),...f6()},"VSparkline"),g6=DF()({name:"VSparkline",props:v6(),setup(e,t){let{slots:n}=t;const{textColorClasses:a,textColorStyles:i}=N$(()=>e.color),r=Zo(()=>Boolean(e.showLabels||e.labels.length>0||!!(null==n?void 0:n.label))),o=Zo(()=>{let t=parseInt(e.height,10);return r.value&&(t+=1.5*parseInt(e.labelSize,10)),t});GF(()=>{const t="trend"===e.type?m6:u6,r="trend"===e.type?m6.filterProps(e):u6.filterProps(e);return bo(t,Io({key:e.type,class:a.value,style:i.value,viewBox:"0 0 ".concat(e.width," ").concat(parseInt(o.value,10))},r),n)})}}),y6=AF({...EF(),...TZ({offset:8,minWidth:0,openDelay:0,closeDelay:100,location:"top center",transition:"scale-transition"})},"VSpeedDial"),b6=DF()({name:"VSpeedDial",props:y6(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const a=qF(e,"modelValue"),i=an(),r=Zo(()=>{var t,n;const[a,i="center"]=null!=(n=null==(t=e.location)?void 0:t.split(" "))?n:[];return"".concat(a," ").concat(i)}),o=Zo(()=>({["v-speed-dial__content--".concat(r.value.replace(" ","-"))]:!0}));return GF(()=>{const t=AZ.filterProps(e);return bo(AZ,Io(t,{modelValue:a.value,"onUpdate:modelValue":e=>a.value=e,class:e.class,style:e.style,contentClass:["v-speed-dial__content",o.value,e.contentClass],location:r.value,ref:i,transition:"fade-transition"}),{...n,default:t=>bo(S$,{defaults:{VBtn:{size:"small"}}},{default:()=>[bo(D$,{appear:!0,group:!0,transition:e.transition},{default:()=>{var e;return[null==(e=n.default)?void 0:e.call(n,t)]}})]})})}),{}}}),_6=Symbol.for("vuetify:v-stepper"),w6=AF({color:String,disabled:{type:[Boolean,String],default:!1},prevText:{type:String,default:"$vuetify.stepper.prev"},nextText:{type:String,default:"$vuetify.stepper.next"}},"VStepperActions"),k6=DF()({name:"VStepperActions",props:w6(),emits:{"click:prev":()=>!0,"click:next":()=>!0},setup(e,t){let{emit:n,slots:a}=t;const{t:i}=rV();function r(){n("click:prev")}function o(){n("click:next")}return GF(()=>{const t={onClick:r},n={onClick:o};return yo("div",{class:"v-stepper-actions"},[bo(S$,{defaults:{VBtn:{disabled:["prev",!0].includes(e.disabled),text:i(e.prevText),variant:"text"}}},{default:()=>{var e,n;return[null!=(n=null==(e=a.prev)?void 0:e.call(a,{props:t}))?n:bo(nJ,t,null)]}}),bo(S$,{defaults:{VBtn:{color:e.color,disabled:["next",!0].includes(e.disabled),text:i(e.nextText),variant:"tonal"}}},{default:()=>{var e,t;return[null!=(t=null==(e=a.next)?void 0:e.call(a,{props:n}))?t:bo(nJ,n,null)]}})])}),{}}}),C6=LF("v-stepper-header"),S6=AF({color:String,title:String,subtitle:String,complete:Boolean,completeIcon:{type:zV,default:"$complete"},editable:Boolean,editIcon:{type:zV,default:"$edit"},error:Boolean,errorIcon:{type:zV,default:"$error"},icon:zV,ripple:{type:[Boolean,Object],default:!0},rules:{type:Array,default:()=>[]}},"StepperItem"),T6=AF({...S6(),...sY()},"VStepperItem"),A6=DF()({name:"VStepperItem",directives:{vRipple:eJ},props:T6(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const a=lY(e,_6,!0),i=Zo(()=>{var t;return null!=(t=null==a?void 0:a.value.value)?t:e.value}),r=Zo(()=>e.rules.every(e=>!0===e())),o=Zo(()=>!e.disabled&&e.editable),s=Zo(()=>!e.disabled&&e.editable),l=Zo(()=>e.error||!r.value),u=Zo(()=>e.complete||e.rules.length>0&&r.value),c=Zo(()=>l.value?e.errorIcon:u.value?e.completeIcon:a.isSelected.value&&e.editable?e.editIcon:e.icon),d=Zo(()=>({canEdit:s.value,hasError:l.value,hasCompleted:u.value,title:e.title,subtitle:e.subtitle,step:i.value,value:e.value}));return GF(()=>{var t,r,h,p,f;const m=(!a||a.isSelected.value||u.value||s.value)&&!l.value&&!e.disabled,v=!(null==e.title&&!n.title),g=!(null==e.subt
5091itle&&!n.subtitle);return ta(yo("button",{class:ne(["v-stepper-item",{"v-stepper-item--complete":u.value,"v-stepper-item--disabled":e.disabled,"v-stepper-item--error":l.value},null==a?void 0:a.selectedClass.value]),disabled:!e.editable,type:"button",onClick:function(){null==a||a.toggle()}},[o.value&&tY(!0,"v-stepper-item"),bo(hJ,{key:"stepper-avatar",class:"v-stepper-item__avatar",color:m?e.color:void 0,size:24},{default:()=>{var e,t;return[null!=(t=null==(e=n.icon)?void 0:e.call(n,d.value))?t:c.value?bo(yY,{icon:c.value},null):i.value]}}),yo("div",{class:"v-stepper-item__content"},[v&&yo("div",{key:"title",class:"v-stepper-item__title"},[null!=(r=null==(t=n.title)?void 0:t.call(n,d.value))?r:e.title]),g&&yo("div",{key:"subtitle",class:"v-stepper-item__subtitle"},[null!=(p=null==(h=n.subtitle)?void 0:h.call(n,d.value))?p:e.subtitle]),null==(f=n.default)?void 0:f.call(n,d.value)])]),[[eJ,e.editable&&e.ripple,null]])}),{}}}),E6=AF({...UL(V0(),["continuous","nextIcon","prevIcon","showArrows","touch","mandatory"])},"VStepperWindow"),I6=DF()({name:"VStepperWindow",props:E6(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const a=nr(_6,null),i=qF(e,"modelValue"),r=Zo({get(){var e;return null==i.value&&a?null==(e=a.items.value.find(e=>a.selected.value.includes(e.id)))?void 0:e.value:i.value},set(e){i.value=e}});return GF(()=>{const t=X0.filterProps(e);return bo(X0,Io({_as:"VStepperWindow"},t,{modelValue:r.value,"onUpdate:modelValue":e=>r.value=e,class:["v-stepper-window",e.class],style:e.style,mandatory:!1,touch:!1}),n)}),{}}}),x6=AF({...H0()},"VStepperWindowItem"),N6=DF()({name:"VStepperWindowItem",props:x6(),setup(e,t){let{slots:n}=t;return GF(()=>{const t=z0.filterProps(e);return bo(z0,Io({_as:"VStepperWindowItem"},t,{class:["v-stepper-window-item",e.class],style:e.style}),n)}),{}}}),P6=AF({altLabels:Boolean,bgColor:String,completeIcon:zV,editIcon:zV,editable:Boolean,errorIcon:zV,hideActions:Boolean,items:{type:Array,default:()=>[]},itemTitle:{type:String,default:"title"},itemValue:{type:String,default:"value"},nonLinear:Boolean,flat:Boolean,...DV()},"Stepper"),M6=AF({...P6(),...oY({mandatory:"force",selectedClass:"v-stepper-item--selected"}),...y1(),...XL(w6(),["prevText","nextText"])},"VStepper"),O6=DF()({name:"VStepper",props:M6(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{items:a,next:i,prev:r,selected:o}=uY(e,_6),{displayClasses:s,mobile:l}=LV(e),{completeIcon:u,editIcon:c,errorIcon:d,color:h,editable:p,prevText:f,nextText:m}=fn(e),v=Zo(()=>e.items.map((t,n)=>({title:PL(t,e.itemTitle,t),value:PL(t,e.itemValue,n+1),raw:t}))),g=Zo(()=>a.value.findIndex(e=>o.value.includes(e.id)));return MF({VStepperItem:{editable:p,errorIcon:d,completeIcon:u,editIcon:c,prevText:f,nextText:m},VStepperActions:{color:h,disabled:Zo(()=>e.disabled?e.disabled:0===g.value?"prev":g.value===a.value.length-1&&"next"),prevText:f,nextText:m}}),GF(()=>{const t=b1.filterProps(e),a=!(!n.header&&!e.items.length),o=e.items.length>0,u=!(e.hideActions||!o&&!n.actions);return bo(b1,Io(t,{color:e.bgColor,class:["v-stepper",{"v-stepper--alt-labels":e.altLabels,"v-stepper--flat":e.flat,"v-stepper--non-linear":e.nonLinear,"v-stepper--mobile":l.value},s.value,e.class],style:e.style}),{default:()=>{var e,t,s;return[a&&bo(C6,{key:"stepper-header"},{default:()=>[v.value.map((e,t)=>{var a;let{raw:i,...r}=e;return yo(eo,null,[!!t&&bo(eQ,null,null),bo(A6,r,{default:null!=(a=n["header-item.".concat(r.value)])?a:n.header,icon:n.icon,title:n.title,subtitle:n.subtitle})])})]}),o&&bo(I6,{key:"stepper-window"},{default:()=>[v.value.map(e=>bo(N6,{value:e.value},{default:()=>{var t,a,i;return null!=(i=null==(t=n["item.".concat(e.value)])?void 0:t.call(n,e))?i:null==(a=n.item)?void 0:a.call(n,e)}}))]}),null==(e=n.default)?void 0:e.call(n,{prev:r,next:i}),u&&(null!=(s=null==(t=n.actions)?void 0:t.call(n,{next:i,prev:r}))?s:bo(k6,{key:"stepper-actions","onClick:prev":r,"onClick:next":i},n))]}})}),{prev:r,next:i}}}),R6=AF({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...RJ(),...bJ()},"VSwitch"),D6=DF()({name:"VSwitch",inheritAttrs:!1,props:R6(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,t){let{attrs:n,slots:a}=t;const i=qF(e,"indeterminate"),r=qF(e,"modelValue"),{loaderClasses:o}=xY(e),{isFocused:s,focus:l,blur:u}=EJ(e),c=an(),d=an(),h=kL&&window.matchMedia("(forced-colors: active)").matches,p=gn(()=>"string"==typeof e.loading&&""!==e.loading?e.loading:e.color),f=Pa(),m=gn(()=>e.id||"switch-".concat(f));function v(){i.value&&(i.value=!1)}function g(e){var t,n;e.stopPropagation(),e.preventDefault(),null==(n=null==(t=c.value)?void 0:t.input)||n.click()}return GF(()=>{const[t,f]=GL(n),y=DJ.filterProps(e),b=_J.filterProps(e);return bo(DJ,Io({ref:d,class:["v-switch",{"v-switch--flat":e.flat},{"v-switch--inset":e.inset},{"v-switch--indeterminate":i.value},o.value,e.class]},t,y,{modelValue:r.value,"onUpdate:modelValue":e=>r.value=e,id:m.value,focused:s.value,style:e.style}),{...a,default:t=>{let{id:n,messagesId:o,isDisabled:s,isReadonly:d,isValid:m}=t;const y={model:r,isValid:m};return bo(_J,Io({ref:c},b,{modelValue:r.value,"onUpdate:modelValue":[e=>r.value=e,v],id:n.value,"aria-describedby":o.value,type:"checkbox","aria-checked":i.value?"mixed":void 0,disabled:s.value,readonly:d.value,onFocus:l,onBlur:u},f),{...a,default:e=>{let{backgroundColorClasses:t,backgroundColorStyles:n}=e;return yo("div",{class:ne(["v-switch__track",h?void 0:t.value]),style:Y(n.value),onClick:g},[a["track-true"]&&yo("div",{key:"prepend",class:"v-switch__track-true"},[a["track-true"](y)]),a["track-false"]&&yo("div",{key:"append",class:"v-switch__track-false"},[a["track-false"](y)])])},input:t=>{let{inputNode:n,icon:i,backgroundColorClasses:r,backgroundColorStyles:o}=t;return yo(eo,null,[n,yo("div",{class:ne(["v-switch__thumb",{"v-switch__thumb--filled":i||e.loading},e.inset||h?void 0:r.value]),style:Y(e.inset?void 0:o.value)},[a.thumb?bo(S$,{defaults:{VIcon:{icon:i,size:"x-small"}}},{default:()=>[a.thumb({...y,icon:i})]}):bo(h$,null,{default:()=>[e.loading?bo(NY,{name:"v-switch",active:!0,color:!1===m.value?void 0:p.value},{default:e=>
5091a.loader?a.loader(e):bo(wY,{active:e.isActive,color:e.color,indeterminate:!0,size:"16",width:"2"},null)}):i&&bo(yY,{key:String(i),icon:i,size:"x-small"},null)]})])])}})}})}),FJ({},d)}}),L6=AF({color:String,height:[Number,String],window:Boolean,...EF(),...U$(),...pX(),...M$(),...Yq(),...ZV()},"VSystemBar"),B6=DF()({name:"VSystemBar",props:L6(),setup(e,t){let{slots:n}=t;const{themeClasses:a}=sX(e),{backgroundColorClasses:i,backgroundColorStyles:r}=P$(()=>e.color),{elevationClasses:o}=H$(e),{roundedClasses:s}=O$(e),{ssrBootStyles:l}=q$(),u=Zo(()=>{var t;return null!=(t=e.height)?t:e.window?32:24}),{layoutItemStyles:c}=mX({id:e.name,order:Zo(()=>parseInt(e.order,10)),position:rn("top"),layoutSize:u,elementSize:u,active:Zo(()=>!0),absolute:gn(()=>e.absolute)});return GF(()=>bo(e.tag,{class:ne(["v-system-bar",{"v-system-bar--window":e.window},a.value,i.value,o.value,s.value,e.class]),style:Y([r.value,c.value,l.value,e.style])},n)),{}}}),F6=Symbol.for("vuetify:v-tabs"),V6=AF({fixed:Boolean,sliderColor:String,hideSlider:Boolean,direction:{type:String,default:"horizontal"},...UL(tJ({selectedClass:"v-tab--selected",variant:"text"}),["active","block","flat","location","position","symbol"])},"VTab"),X6=DF()({name:"VTab",props:V6(),setup(e,t){let{slots:n,attrs:a}=t;const{textColorClasses:i,textColorStyles:r}=N$(()=>e.sliderColor),o=an(),s=an(),l=Zo(()=>"horizontal"===e.direction),u=Zo(()=>{var e,t,n;return null!=(n=null==(t=null==(e=o.value)?void 0:e.group)?void 0:t.isSelected.value)&&n});function c(e){var t,n;let{value:a}=e;if(a){const e=null==(n=null==(t=o.value)?void 0:t.$el.parentElement)?void 0:n.querySelector(".v-tab--selected .v-tab__slider"),a=s.value;if(!e||!a)return;const i=getComputedStyle(e).color,r=e.getBoundingClientRect(),u=a.getBoundingClientRect(),c=l.value?"x":"y",d=l.value?"X":"Y",h=l.value?"right":"bottom",p=l.value?"width":"height",f=r[c]>u[c]?r[h]-u[h]:r[c]-u[c],m=Math.sign(f)>0?l.value?"right":"bottom":Math.sign(f)<0?l.value?"left":"top":"center",v=(Math.abs(f)+(Math.sign(f)<0?r[p]:u[p]))/Math.max(r[p],u[p])||0,g=r[p]/u[p]||0,y=1.5;FB(a,{backgroundColor:[i,"currentcolor"],transform:["translate".concat(d,"(").concat(f,"px) scale").concat(d,"(").concat(g,")"),"translate".concat(d,"(").concat(f/y,"px) scale").concat(d,"(").concat((v-1)/y+1,")"),"none"],transformOrigin:Array(3).fill(m)},{duration:225,easing:FF})}}return GF(()=>{const t=nJ.filterProps(e);return bo(nJ,Io({symbol:F6,ref:o,class:["v-tab",e.class],style:e.style,tabindex:u.value?0:-1,role:"tab","aria-selected":String(u.value),active:!1},t,a,{block:e.fixed,maxWidth:e.fixed?300:void 0,"onGroup:selected":c}),{...n,default:()=>{var t,a;return yo(eo,null,[null!=(a=null==(t=n.default)?void 0:t.call(n))?a:e.text,!e.hideSlider&&yo("div",{ref:s,class:ne(["v-tab__slider",i.value]),style:Y(r.value)},null)])}})}),FJ({},o)}}),j6=AF({...UL(V0(),["continuous","nextIcon","prevIcon","showArrows","touch","mandatory"])},"VTabsWindow"),U6=DF()({name:"VTabsWindow",props:j6(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const a=nr(F6,null),i=qF(e,"modelValue"),r=Zo({get(){var e;return null==i.value&&a?null==(e=a.items.value.find(e=>a.selected.value.includes(e.id)))?void 0:e.value:i.value},set(e){i.value=e}});return GF(()=>{const t=X0.filterProps(e);return bo(X0,Io({_as:"VTabsWindow"},t,{modelValue:r.value,"onUpdate:modelValue":e=>r.value=e,class:["v-tabs-window",e.class],style:e.style,mandatory:!1,touch:!1}),n)}),{}}}),H6=AF({...H0()},"VTabsWindowItem"),z6=DF()({name:"VTabsWindowItem",props:H6(),setup(e,t){let{slots:n}=t;return GF(()=>{const t=z0.filterProps(e);return bo(z0,Io({_as:"VTabsWindowItem"},t,{class:["v-tabs-window-item",e.class],style:e.style}),n)}),{}}});const K6=AF({alignTabs:{type:String,default:"start"},color:String,fixedTabs:Boolean,items:{type:Array,default:()=>[]},stacked:Boolean,bgColor:String,grow:Boolean,height:{type:[Number,String],default:void 0},hideSlider:Boolean,sliderColor:String,...XL(V6(),["spaced"]),...WJ({mandatory:"force",selectedClass:"v-tab-item--selected"}),...Q$(),...Yq()},"VTabs"),W6=DF()({name:"VTabs",props:K6(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:a}=t;const i=qF(e,"modelValue"),r=Zo(()=>function(e){return e?e.map(e=>RL(e)?e:{text:e,value:e}):[]}(e.items)),{densityClasses:o}=Z$(e),{backgroundColorClasses:s,backgroundColorStyles:l}=P$(()=>e.bgColor),{scopeId:u}=fZ();return MF({VTab:{color:gn(()=>e.color),direction:gn(()=>e.direction),stacked:gn(()=>e.stacked),fixed:gn(()=>e.fixedTabs),sliderColor:gn(()=>e.sliderColor),hideSlider:gn(()=>e.hideSlider)}}),GF(()=>{const t=GJ.filterProps(e),c=!!(a.window||e.items.length>0);return yo(eo,null,[bo(GJ,Io(t,{modelValue:i.value,"onUpdate:modelValue":e=>i.value=e,class:["v-tabs","v-tabs--".concat(e.direction),"v-tabs--align-tabs-".concat(e.alignTabs),{"v-tabs--fixed-tabs":e.fixedTabs,"v-tabs--grow":e.grow,"v-tabs--stacked":e.stacked},o.value,s.value,e.class],style:[{"--v-tabs-height":OL(e.height)}
5091,l.value,e.style],role:"tablist",symbol:F6},u,n),{default:()=>{var t,n;return[null!=(n=null==(t=a.default)?void 0:t.call(a))?n:r.value.map(t=>{var n,i;return null!=(i=null==(n=a.tab)?void 0:n.call(a,{item:t}))?i:bo(X6,Io(t,{key:t.text,value:t.value,spaced:e.spaced}),{default:a["tab.".concat(t.value)]?()=>{var e;return null==(e=a["tab.".concat(t.value)])?void 0:e.call(a,{item:t})}:void 0})})]}}),c&&bo(U6,Io({modelValue:i.value,"onUpdate:modelValue":e=>i.value=e,key:"tabs-window"},u),{default:()=>{var e;return[r.value.map(e=>{var t,n;return null!=(n=null==(t=a.item)?void 0:t.call(a,{item:e}))?n:bo(z6,{value:e.value},{default:()=>{var t;return null==(t=a["item.".concat(e.value)])?void 0:t.call(a,{item:e})}})}),null==(e=a.window)?void 0:e.call(a)]}})])}),{}}}),G6=AF({autoGrow:Boolean,autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,noResize:Boolean,rows:{type:[Number,String],default:5,validator:e=>!isNaN(parseFloat(e))},maxRows:{type:[Number,String],validator:e=>!isNaN(parseFloat(e))},suffix:String,modelModifiers:Object,...RZ(),...RJ(),...MZ()},"VTextarea"),q6=DF()({name:"VTextarea",directives:{vIntersect:B$},inheritAttrs:!1,props:G6(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0,"update:rows":e=>!0},setup(e,t){let{attrs:n,emit:a,slots:i}=t;const r=qF(e,"modelValue"),{isFocused:o,focus:s,blur:l}=EJ(e),{onIntersect:u}=LZ(e),c=Zo(()=>"function"==typeof e.counterValue?e.counterValue(r.value):(r.value||"").toString().length),d=Zo(()=>n.maxlength?n.maxlength:!e.counter||"number"!=typeof e.counter&&"string"!=typeof e.counter?void 0:e.counter),h=an(),p=an(),f=rn(""),m=an(),v=DZ(e),g=Zo(()=>e.persistentPlaceholder||o.value||e.active);function y(){var e;v.isSuppressing.value&&v.update(),m.value!==document.activeElement&&(null==(e=m.value)||e.focus()),o.value||s()}function b(e){y(),a("click:control",e)}function _(e){a("mousedown:control",e)}function w(t){t.stopPropagation(),y(),jn(()=>{r.value="",pB(e["onClick:clear"],t)})}function k(t){var n;const a=t.target;if(r.value=a.value,null==(n=e.modelModifiers)?void 0:n.trim){const e=[a.selectionStart,a.selectionEnd];jn(()=>{a.selectionStart=e[0],a.selectionEnd=e[1]})}}const C=an(),S=an(Number(e.rows)),T=Zo(()=>["plain","underlined"].includes(e.variant));function A(){e.autoGrow&&jn(()=>{if(!C.value||!p.value)return;const t=getComputedStyle(C.value),n=getComputedStyle(p.value.$el),a=parseFloat(t.getPropertyValue("--v-field-padding-top"))+parseFloat(t.getPropertyValue("--v-input-padding-top"))+parseFloat(t.getPropertyValue("--v-field-padding-bottom")),i=C.value.scrollHeight,r=parseFloat(t.lineHeight),o=YL(null!=i?i:0,Math.max(parseFloat(e.rows)*r+a,parseFloat(n.getPropertyValue("--v-input-control-height"))),parseFloat(e.maxRows)*r+a||1/0);S.value=Math.floor((o-a)/r),f.value=OL(o)})}let E;return Nr(()=>{e.autoGrow||(S.value=Number(e.rows))}),hi(A),Mr(r,A),Mr(()=>e.rows,A),Mr(()=>e.maxRows,A),Mr(()=>e.density,A),Mr(S,e=>{a("update:rows",e)}),Mr(C,e=>{e?(E=new ResizeObserver(A),E.observe(C.value)):null==E||E.disconnect()}),mi(()=>{null==E||E.disconnect()}),GF(()=>{const t=!!(i.counter||e.counter||e.counterValue),a=!(!t&&!i.details),[s,A]=GL(n),{modelValue:E,...I}=DJ.filterProps(e),x={...OZ.filterProps(e),"onClick:clear":w};return bo(DJ,Io({ref:h,modelValue:r.value,"onUpdate:modelValue":e=>r.value=e,class:["v-textarea v-text-field",{"v-textarea--prefixed":e.prefix,"v-textarea--suffixed":e.suffix,"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-textarea--auto-grow":e.autoGrow,"v-textarea--no-resize":e.noResize||e.autoGrow,"v-input--plain-underlined":T.value},e.class],style:e.style},s,I,{centerAffix:1===S.value&&!T.value,focused:o.value}),{...i,default:t=>{let{id:n,isDisabled:a,isDirty:s,isReadonly:c,isValid:d,hasDetails:h}=t;return bo(OZ,Io({ref:p,style:{"--v-textarea-control-height":f.value},onClick:b,onMousedown:_,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},x,{id:n.value,active:g.value||s.value,centerAffix:1===S.value&&!T.value,dirty:s.value||e.dirty,disabled:a.value,focused:o.value,details:h.value,error:!1===d.value}),{...i,default:t=>{let{props:{class:n,...i}}=t;return yo(eo,null,[e.prefix&&yo("span",{class:"v-text-field__prefix"},[e.prefix]),ta(yo("textarea",Io({ref:m,class:n,value:r.value,onInput:k,autofocus:e.autofocus,readonly:c.value,disabled:a.value,placeholder:e.placeholder,rows:e.rows,name:v.fieldName.value,autocomplete:v.fieldAutocomplete.value,onFocus:y,onBlur:l},i,A),null),[[B$,{handler:u},null,{once:!0}]]),e.autoGrow&&ta(yo("textarea",{class:ne([n,"v-textarea__sizer"]),id:"".concat(i.id,"-sizer"),"onUpdate:modelValue":e=>r.value=e,ref:C,readonly:!0,"aria-hidden":"true"},null),[[kl,r.value]]),e.suffix&&yo("span",{class:"v-text-field__suffix"},[e.suffix])])}})},details:a?n=>{var a;return yo(eo,null,[null==(a=i.details)?void 0:a.call(i,n),t&&yo(eo,null,[yo("span",null,null),bo(IZ,{active:e.persistentCounter||o.value,value:c.value,max:d.value,disabled:e.disabled},i.counter)])])}:void 0})}),FJ({},h,p,m)}}
5091),$6=AF({withBackground:Boolean,...EF(),...ZV(),...Yq()},"VThemeProvider"),Y6=DF()({name:"VThemeProvider",props:$6(),setup(e,t){let{slots:n}=t;const{themeClasses:a}=sX(e);return()=>{var t;return e.withBackground?bo(e.tag,{class:ne(["v-theme-provider",a.value,e.class]),style:Y(e.style)},{default:()=>{var e;return[null==(e=n.default)?void 0:e.call(n)]}}):null==(t=n.default)?void 0:t.call(n)}}}),J6=AF({dotColor:String,fillDot:Boolean,hideDot:Boolean,icon:zV,iconColor:String,lineColor:String,...EF(),...M$(),...mY(),...U$()},"VTimelineDivider"),Q6=DF()({name:"VTimelineDivider",props:J6(),setup(e,t){let{slots:n}=t;const{sizeClasses:a,sizeStyles:i}=vY(e,"v-timeline-divider__dot"),{backgroundColorStyles:r,backgroundColorClasses:o}=P$(()=>e.dotColor),{roundedClasses:s}=O$(e,"v-timeline-divider__dot"),{elevationClasses:l}=H$(e),{backgroundColorClasses:u,backgroundColorStyles:c}=P$(()=>e.lineColor);return GF(()=>yo("div",{class:ne(["v-timeline-divider",{"v-timeline-divider--fill-dot":e.fillDot},e.class]),style:Y(e.style)},[yo("div",{class:ne(["v-timeline-divider__before",u.value]),style:Y(c.value)},null),!e.hideDot&&yo("div",{key:"dot",class:ne(["v-timeline-divider__dot",l.value,s.value,a.value]),style:Y(i.value)},[yo("div",{class:ne(["v-timeline-divider__inner-dot",o.value,s.value]),style:Y(r.value)},[n.default?bo(S$,{key:"icon-defaults",disabled:!e.icon,defaults:{VIcon:{color:e.iconColor,icon:e.icon,size:e.size}}},n.default):bo(yY,{key:"icon",color:e.iconColor,icon:e.icon,size:e.size},null)])]),yo("div",{class:ne(["v-timeline-divider__after",u.value]),style:Y(c.value)},null)])),{}}}),Z6=AF({density:String,dotColor:String,fillDot:Boolean,hideDot:Boolean,hideOpposite:{type:Boolean,default:void 0},icon:zV,iconColor:String,lineInset:[Number,String],side:{type:String,validator:e=>null==e||["start","end"].includes(e)},...EF(),...T$(),...U$(),...M$(),...mY(),...Yq()},"VTimelineItem"),e5=DF()({name:"VTimelineItem",props:Z6(),setup(e,t){let{slots:n}=t;const{dimensionStyles:a}=A$(e),i=rn(0),r=an();return Mr(r,e=>{var t,n;e&&(i.value=null!=(n=null==(t=e.$el.querySelector(".v-timeline-divider__dot"))?void 0:t.getBoundingClientRect().width)?n:0)},{flush:"post"}),GF(()=>{var t,o;return yo("div",{class:ne(["v-timeline-item",{"v-timeline-item--fill-dot":e.fillDot,"v-timeline-item--side-start":"start"===e.side,"v-timeline-item--side-end":"end"===e.side},e.class]),style:Y([{"--v-timeline-dot-size":OL(i.value),"--v-timeline-line-inset":e.lineInset?"calc(var(--v-timeline-dot-size) / 2 + ".concat(OL(e.lineInset),")"):OL(0)},e.style])},[yo("div",{class:"v-timeline-item__body",style:Y(a.value)},[null==(t=n.default)?void 0:t.call(n)]),bo(Q6,{ref:r,hideDot:e.hideDot,icon:e.icon,iconColor:e.iconColor,size:e.size,elevation:e.elevation,dotColor:e.dotColor,fillDot:e.fillDot,rounded:e.rounded},{default:n.icon}),"compact"!==e.density&&yo("div",{class:"v-timeline-item__opposite"},[!e.hideOpposite&&(null==(o=n.opposite)?void 0:o.call(n))])])}),{}}}),t5=AF({align:{type:String,default:"center",validator:e=>["center","start"].includes(e)},direction:{type:String,default:"vertical",validator:e=>["vertical","horizontal"].includes(e)},justify:{type:String,default:"auto",validator:e=>["auto","center"].includes(e)},side:{type:String,validator:e=>null==e||["start","end"].includes(e)},lineThickness:{type:[String,Number],default:2},lineColor:String,truncateLine:{type:String,validator:e=>["start","end","both"].includes(e)},...XL(Z6({lineInset:0}),["dotColor","fillDot","hideOpposite","iconColor","lineInset","size"]),...EF(),...Q$(),...Yq(),...ZV()},"VTimeline"),n5=DF()({name:"VTimeline",props:t5(),setup(e,t){let{slots:n}=t;const{themeClasses:a}=sX(e),{densityClasses:i}=Z$(e),{rtlClasses:r}=sV();MF({VTimelineDivider:{lineColor:gn(()=>e.lineColor)},VTimelineItem:{density:gn(()=>e.density),dotColor:gn(()=>e.dotColor),fillDot:gn(()=>e.fillDot),hideOpposite:gn(()=>e.hideOpposite),iconColor:gn(()=>e.iconColor),lineColor:gn(()=>e.lineColor),lineInset:gn(()=>e.lineInset),size:gn(()=>e.size)}});const o=Zo(()=>{const t=e.side?e.side:"default"!==e.density?"end":null;return t&&"v-timeline--side-".concat(t)}),s=Zo(()=>{const t=["v-timeline--truncate-line-start","v-timeline--truncate-line-end"];switch(e.truncateLine){case"both":return t;case"start":return t[0];case"end":return t[1];default:return null}});return GF(()=>bo(e.tag,{class:ne(["v-timeline","v-timeline--".concat(e.direction),"v-timeline--align-".concat(e.align),"v-timeline--justify-".concat(e.justify),s.value,{"v-timeline--inset-line":!!e.lineInset},a.value,i.value,o.value,r.value,e.class]),style:Y([{"--v-timeline-line-thickness":OL(e.lineThickness)},e.style])},n)),{}}});function a5(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return String(e).padStart(t,"0")}const i5=AF({allowedValues:Function,ampm:Boolean,color:String,disabled:Boolean,displayedValue:null,double:Boolean,format:{type:Function,default:e=>e},max:{type:Number,required:!0},min:{type:Number,required:!0},scrollable:Boolean,readonly:Boolean,rotate:{type:Number,default:0},step:{type:Number,default:1},modelValue:{type:Number}},"VTimePickerClock"),r5=DF()({name:"VTimePickerClock",props:i5(),emits:{change:e=>!0,input:e=>!0},setup(e,t){let{emit:n}=t;const a=an(null),i=an(null),r=an(void 0),o=an(!1),s=an(null),l=an(null),u=$L(e=>n("change",e),750),{textColorClasses:c,textColorStyles:d}=N$(()=>e.color),{backgroundColorClasses:h,backgroundColorStyles:p}=P$(()=>e.color),f=Zo(()=>e.max-e.min+1),m=Zo(()=>e.double?f.value/2:f.value),v=Zo(()=>360/m.value),g=Zo(()=>v.value*Math.PI/180),y=Zo(()=>null==e.modelValue?e.min:e.modelValue),b=Zo(()=>.62),_=Zo(()=>{const t=[];for(let n=e.min;n<=e.max;n+=e.step)t.push(n);return t});function w(e){r.value!==e&&(r.value=e),n("input",e)}function k(t){return!e.allowedValues||e.allowedValues(t)}function C(t){if(!e.scrollable||e.disabled)return;t.preventDefault();const n=Math.sign(-t.deltaY||1);let a=y.value;do{a+=n,a=(a-e.min+f.value)%f.value+e.min}while(!k(a)&&a!==y.value);a!==e.displayedValue&&w(a),u(a)}function S(t){return e.double&&t-e.min>=m.value}function T(e){return S(e)?b.value:1}function A(t,n){const a=(Math.round(t/v.value)+(n?m.value:0))%f.value+e.min;return t<360-v.value/2?a:n?e.max-m.value+1:e.min}function E(t){const{x:n,y:a}=function(t){const n=e.rotate*Math.PI/180;return{x:Math.sin((t-e.min)*g.value+n)*T(t),y:-Math.cos((t-e.min)*g.value+n)*T(t)}}(t);return{left:"".concat(Math.round(50+50*n),"%"),top:"".concat(Math.round(50+50*a),"%")}}function I(e,t){const n=t.x-e.x,a=t.y-e.y;return Math.sqrt(n*n+a*a)}function x(e){null===s.value&&(s.value=e),l.value=e,w(e)}function N(t){var n,r,s;if(t.preventDefault(),!o.value&&"click"!==t.type||!a.value)return;const{width:l,top:u,left:c}=null==(n=a.value)?void 0:n.getBoundingClientRect(),{width:d}=null!=(s=null==(r=i.value)?void 0:r.getBoundingClientRect())?s:{width:0},{clientX:h,clientY:p}="touches"in t?t.touches[0]:t,f={x:l/2,y:-l/2},m={x:h-c,y:u-p},g=Math.round(function(e,t){const n=2*Math.atan2(t.y-e.y-I(e,t),t.x-e.x);return Math.abs(180*n/Math.PI)}(f,m)-e.rotate+360)%360,y=e.double&&I(f,m)<(d+d*b.value)/4,_=Math.ceil(15/v.value);let w;for(let e=0;e<_;e++){if(w=A(g+e*v.value,y),k(w))return x(w);if(w=A(g-e*v.value,y),k(w))return x(w)}}function P(t){e.disabled||(t.preventDefault(),window.addEventListener("mousemove",N),window.addEventListener("touchmove",N),window.addEventListener("mouseup",M),window.addEventListener("touchend",M),s.value=null,l.value=null,o.value=!0,N(t))}function M(e){e.stopPropagation(),window.removeEventListener("mousemove",N),window.removeEventListener("touchmove",N),window.removeEventListener("mouseup",M),window.removeEventListener("touchend",M),o.value=!1,null!==l.value&&k(l.value)&&n("change",l.value)}Mr(()=>e.modelValue,e=>{r.value=e}),GF(()=>yo("div",{class:ne([{"v-time-picker-clock":!0,"v-time-picker-clock--indeterminate":null==e.modelValue,"v-time-picker-clock--readonly":e.readonly}]),onMousedown:P,onTouchstart:P,onWheel:C,ref:a},[yo("div",{class:"v-time-picker-clock__inner",ref:i},[yo("div",{class:ne([{"v-time-picker-clock__hand":!0,"v-time-picker-clock__hand--inner":S(e.modelValue)},c.value]),style:Y([{transform:"rotate(".concat(e.rotate+v.value*(y.value-e.min),"deg) scaleY(").concat(T(y.value),")")},d.value])},null),_.value.map(t=>{const n=t===y.value;return yo("div",{class:ne([{"v-time-picker-clock__item":!0,"v-time-picker-clock__item--active":n,"v-time-picker-clock__item--disabled":e.disabled||!k(t)},n&&h.value]),style:Y([E(t),n&&p.value])},[yo("span",null,[e.format(t)])])})])]))}}),o5=AF({ampm:Boolean,color:String,disabled:Boolean,hour:Number,minute:Number,second:Number,period:String,readonly:Boolean,useSeconds:Boolean,value:Number,viewMode:String},"VTimePickerControls"),s5=DF()({name:"VTimePickerControls",props:o5(),emits:{"update:period":e=>!0,"update:viewMode":e=>!0},setup(e,t){let{emit:n,slots:a}=t;const{t:i}=rV();return GF(()=>{let t=e.hour;return e.ampm&&(t=t?(t-1)%12+1:12),yo("div",{class:"v-time-picker-control
5091s"},[yo("div",{class:ne({"v-time-picker-controls__time":!0,"v-time-picker-controls__time--with-seconds":e.useSeconds})},[bo(nJ,{active:"hour"===e.viewMode,color:"hour"===e.viewMode?e.color:void 0,disabled:e.disabled,variant:"tonal",class:ne({"v-time-picker-controls__time__btn":!0,"v-time-picker-controls__time--with-ampm__btn":e.ampm,"v-time-picker-controls__time--with-seconds__btn":e.useSeconds}),text:null==e.hour?"--":a5("".concat(t)),onClick:()=>n("update:viewMode","hour")},null),yo("span",{class:ne(["v-time-picker-controls__time__separator",{"v-time-picker-controls--with-seconds__time__separator":e.useSeconds}])},[ko(":")]),bo(nJ,{active:"minute"===e.viewMode,color:"minute"===e.viewMode?e.color:void 0,class:ne({"v-time-picker-controls__time__btn":!0,"v-time-picker-controls__time__btn__active":"minute"===e.viewMode,"v-time-picker-controls__time--with-ampm__btn":e.ampm,"v-time-picker-controls__time--with-seconds__btn":e.useSeconds}),disabled:e.disabled,variant:"tonal",text:null==e.minute?"--":a5(e.minute),onClick:()=>n("update:viewMode","minute")},null),e.useSeconds&&yo("span",{class:ne(["v-time-picker-controls__time__separator",{"v-time-picker-controls--with-seconds__time__separator":e.useSeconds}]),key:"secondsDivider"},[ko(":")]),e.useSeconds&&bo(nJ,{key:"secondsVal",active:"second"===e.viewMode,color:"second"===e.viewMode?e.color:void 0,variant:"tonal",onClick:()=>n("update:viewMode","second"),class:ne({"v-time-picker-controls__time__btn":!0,"v-time-picker-controls__time__btn__active":"second"===e.viewMode,"v-time-picker-controls__time--with-seconds__btn":e.useSeconds}),disabled:e.disabled,text:null==e.second?"--":a5(e.second)},null),e.ampm&&yo("div",{class:"v-time-picker-controls__ampm"},[bo(nJ,{active:"am"===e.period,color:"am"===e.period?e.color:void 0,class:ne({"v-time-picker-controls__ampm__am":!0,"v-time-picker-controls__ampm__btn":!0,"v-time-picker-controls__ampm__btn__active":"am"===e.period}),disabled:e.disabled,text:i("$vuetify.timePicker.am"),variant:e.disabled&&"am"===e.period?"elevated":"tonal",onClick:()=>"am"!==e.period?n("update:period","am"):null},null),bo(nJ,{active:"pm"===e.period,color:"pm"===e.period?e.color:void 0,class:ne({"v-time-picker-controls__ampm__pm":!0,"v-time-picker-controls__ampm__btn":!0,"v-time-picker-controls__ampm__btn__active":"pm"===e.period}),disabled:e.disabled,text:i("$vuetify.timePicker.pm"),variant:e.disabled&&"pm"===e.period?"elevated":"tonal",onClick:()=>"pm"!==e.period?n("update:period","pm"):null},null)])])])}),{}}}),l5=ML(24),u5=ML(12),c5=u5.map(e=>e+12);ML(60);const d5=AF({allowedHours:[Function,Array],allowedMinutes:[Function,Array],allowedSeconds:[Function,Array],disabled:Boolean,format:{type:String,default:"ampm"},max:String,min:String,viewMode:{type:String,default:"hour"},period:{type:String,default:"am",validator:e=>["am","pm"].includes(e)},modelValue:null,readonly:Boolean,scrollable:Boolean,useSeconds:Boolean,...UL(_1({title:"$vuetify.timePicker.title"}),["landscape"])},"VTimePicker"),h5=DF()({name:"VTimePicker",props:d5(),emits:{"update:hour":e=>!0,"update:minute":e=>!0,"update:period":e=>!0,"update:second":e=>!0,"update:modelValue":e=>!0,"update:viewMode":e=>!0},setup(e,t){let{emit:n,slots:a}=t;const{t:i}=rV(),r=an(null),o=an(null),s=an(null),l=an(null),u=an(null),c=an(null),d=qF(e,"period","am"),h=qF(e,"viewMode","hour"),p=an(null),f=an(null),m=Zo(()=>{let t;if(t=e.allowedHours instanceof Array?t=>e.allowedHours.includes(t):e.allowedHours,!e.min&&!e.max)return t;const n=e.min?Number(e.min.split(":")[0]):0,a=e.max?Number(e.max.split(":")[0]):23;return e=>e>=Number(n)&&e<=Number(a)&&(!t||t(e))}),v=Zo(()=>{let t;const n=!m.value||null===r.value||m.value(r.value);if(t=e.allowedMinutes instanceof Array?t=>e.allowedMinutes.includes(t):e.allowedMinutes,!e.min&&!e.max)return n?t:()=>!1;const[a,i]=e.min?e.min.split(":").map(Number):[0,0],[o,s]=e.max?e.max.split(":").map(Number):[23,59],l=60*a+Number(i),u=60*o+Number(s);return e=>{const a=60*r.value+e;return a>=l&&a<=u&&n&&(!t||t(e))}}),g=Zo(()=>{let t;const n=(!m.value||null===r.value||m.value(r.value))&&(!v.value||null===o.value||v.value(o.value));if(t=e.allowedSeconds instanceof Array?t=>e.allowedSeconds.includes(t):e.allowedSeconds,!e.min&&!e.max)return n?t:()=>!1;const[a,i,s]=e.min?e.min.split(":").map(Number):[0,0,0],[l,u,c]=e.max?e.max.split(":").map(Number):[23,59,59],d=3600*a+60*i+Number(s||0),h=3600*l+60*u+Number(c||0);return e=>{const a=3600*r.value+60*o.value+e;return a>=d&&a<=h&&n&&(!t||t(e))}}),y=Zo(()=>"ampm"===e.format);function b(){return null==r.value||null==o.value||e.useSeconds&&null==s.value?null:"".concat(a5(r.value),":").concat(a5(o.value))+(e.useSeconds?":".concat(a5(s.value)):"")}function _(){const e=b();null!==e&&n("update:modelValue",e)}function w(e){return e?(e-1)%12+1:12}function k(e,t){return e%12+("pm"===t?12:0)}function C(e){if(null==e||""===e)r.value=null,o.value=null,s.value=null;else if(e instanceof Date)r.value=e.getHours(),o.value=e.getMinutes(),s.value=e.getSeconds();else{const[t,,n,,a,i]=e.trim().toLowerCase().match(/^(\d+):(\d+)(:(\d+))?([ap]m)?$/)||new Array(6);r.value=i?k(parseInt(t,10),i):parseInt(t,10),o.value=parseInt(n,10),s.value=parseInt(a||0,10)}d.value=null==r.value||r.value<12?"am":"pm"}function S(e){if(d.value=e,null!=r.value){const e=r.value+("am"===d.value?-12:12);r.value=function(e,t){const n=m.value;if(!n)return t;const a=y.value?t<12?u5:c5:l5;return((a.find(e=>n((e+t)%a.length+a[0]))||0)+t)%a.length+a[0]}(0,e)}return n("update:period",e),_(),!0}function T(e){"hour"===h.value?r.value=y.value?k(e,d.value):e:"minute"===h.value?o.value=e:s.value=e}function A(t){switch(h.value||"hour"){case"hour":n("update:hour",t);break;case"minute":n("update:minute",t);break;case"second":n("update:second",t)}const a=null!==r.value&&null!==o.value&&(!e.useSeconds||null!==s.value);if("hour"===h.value?h.value="minute":e.useSeconds&&"minute"===h.value&&(h.value="second"),r.value===l.value&&o.value===u.value&&(!e.useSeconds||s.value===c.value))return;null!==b()&&(l.value=r.value,u.value=o.value,e.useSeconds&&(c.value=s.value),a&&_())}Mr(()=>e.period,e=>S(e)),Mr(()=>e.modelValue,e=>C(e)),hi(()=>{C(e.modelValue)}),GF(()=>{const t=w1.filterProps(e),n=s5.filterProps(e),l=r5.filterProps(UL(e,["format","modelValue","min","max"]));return bo(w1,Io(t,{color:void 0,class:["v-time-picker",e.class],style:e.style}),{title:()=>{var t,n;return null!=(n=null==(t=a.title)?void 0:t.call(a))?n:yo("div",{class:"v-time-picker__title"},[i(e.title)])},header:()=>bo(s5,Io(n,{ampm:y.value,hour:r.value,minute:o.value,period:d.value,second:s.value,viewMode:h.value,"onUpdate:period":e=>S(e),"onUpdate:viewMode":e=>h.value=e,ref:p}),null),default:()=>bo(r5,Io(l,{allowedValues:"hour"===h.value?m.value:"minute"===h.value?v.value:g.value,double:"hour"===h.value&&!y.value,format:"hour"===h.value?y.value?w:e=>e:e=>a5(e,2),max:"hour"===h.value?y.value&&"am"===d.value?11:23:59,min:"hour"===h.value&&y.value&&"pm"===d.value?12:0,size:20,step:"hour"===h.value?1:5,modelValue:"hour"===h.value?r.value:"minute"===h.value?o.value:s.value,onChange:A,onInput:T,ref:f}),null),actions:a.actions})})}}),p5=AF({...EF(),...nY({variant:"text"})},"VToolbarItems"),f5=DF()({name:"VToolbarItems",props:p5(),setup(e,t){let{slots:n}=t;return MF({VBtn:{color:gn(()=>e.color),height:"inherit",variant:gn(()=>e.variant)}}),GF(()=>{var t;return yo("div",{class:ne(["v-toolbar-items",e.class]),style:Y(e.style)}
5091,[null==(t=n.default)?void 0:t.call(n)])}),{}}}),m5=AF({id:String,interactive:Boolean,text:String,...UL(CZ({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:null}),["absolute","persistent"])},"VTooltip"),v5=DF()({name:"VTooltip",props:m5(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const a=qF(e,"modelValue"),{scopeId:i}=fZ(),r=Pa(),o=gn(()=>e.id||"v-tooltip-".concat(r)),s=an(),l=Zo(()=>e.location.split(" ").length>1?e.location:e.location+" center"),u=Zo(()=>"auto"===e.origin||"overlap"===e.origin||e.origin.split(" ").length>1||e.location.split(" ").length>1?e.origin:e.origin+" center"),c=gn(()=>null!=e.transition?e.transition:a.value?"scale-transition":"fade-transition"),d=Zo(()=>Io({"aria-describedby":o.value},e.activatorProps));return GF(()=>{const t=SZ.filterProps(e);return bo(SZ,Io({ref:s,class:["v-tooltip",{"v-tooltip--interactive":e.interactive},e.class],style:e.style,id:o.value},t,{modelValue:a.value,"onUpdate:modelValue":e=>a.value=e,transition:c.value,absolute:!0,location:l.value,origin:u.value,persistent:!0,role:"tooltip",activatorProps:d.value,_disableGlobalStack:!0},i),{activator:n.activator,default:function(){for(var t,a,i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return null!=(a=null==(t=n.default)?void 0:t.call(n,...r))?a:e.text}})}),FJ({},s)}}
5091),g5=AF({...UL(yQ({collapseIcon:"$treeviewCollapse",expandIcon:"$treeviewExpand"}),["subgroup"])},"VTreeviewGroup"),y5=DF()({name:"VTreeviewGroup",props:g5(),setup(e,t){let{slots:n}=t;const a=an(),i=Zo(()=>{var t;return(null==(t=a.value)?void 0:t.isOpen)?e.collapseIcon:e.expandIcon}),r=Zo(()=>({VTreeviewItem:{prependIcon:void 0,appendIcon:void 0,toggleIcon:i.value}}));return GF(()=>{const t=bQ.filterProps(e);return bo(bQ,Io(t,{ref:a,class:["v-treeview-group",e.class],subgroup:!0}),{...n,activator:n.activator?e=>yo(eo,null,[bo(S$,{defaults:r.value},{default:()=>{var t;return[null==(t=n.activator)?void 0:t.call(n,e)]}})]):void 0})}),{}}}),b5=Symbol.for("vuetify:v-treeview"),_5=AF({loading:Boolean,hideActions:Boolean,hasCustomPrepend:Boolean,indentLines:Array,toggleIcon:zV,...CQ({slim:!0})},"VTreeviewItem"),w5=DF()({name:"VTreeviewItem",props:_5(),emits:{toggleExpand:e=>!0},setup(e,t){let{slots:n,emit:a}=t;const i=nr(b5,{visibleIds:an()}).visibleIds,r=an(),o=Zo(()=>{var e,t;return(null==(e=r.value)?void 0:e.root.activatable.value)&&(null==(t=r.value)?void 0:t.isGroupActivator)}),s=Zo(()=>{var t,n;return(null==(t=r.value)?void 0:t.link.isClickable.value)||null!=e.value&&!!(null==(n=r.value)?void 0:n.list)}),l=Zo(()=>!e.disabled&&!1!==e.link&&(e.link||s.value||o.value)),u=Zo(()=>{var e;return i.value&&!i.value.has(Qt(null==(e=r.value)?void 0:e.id))});function c(e){var t,n;l.value&&o.value&&(null==(n=r.value)||n.activate(!(null==(t=r.value)?void 0:t.isActivated),e))}function d(e){e.preventDefault(),e.stopPropagation(),a("toggleExpand",e)}return GF(()=>{var t;const a=SQ.filterProps(e),i=n.prepend||e.toggleIcon||e.indentLines||e.prependIcon||e.prependAvatar;return bo(SQ,Io({ref:r},a,{active:(null==(t=r.value)?void 0:t.isActivated)||void 0,class:["v-treeview-item",{"v-treeview-item--activatable-group-activator":o.value,"v-treeview-item--filtered":u.value},e.class],ripple:!1,onClick:c}),{...n,prepend:i?t=>{var a;return yo(eo,null,[e.indentLines&&e.indentLines.length>0?yo("div",{key:"indent-lines",class:"v-treeview-indent-lines",style:{"--v-indent-parts":e.indentLines.length}},[e.indentLines.map(e=>yo("div",{class:ne("v-treeview-indent-line v-treeview-indent-line--".concat(e))},null))]):"",!e.hideActions&&bo(UQ,{start:!0},{default:()=>[e.toggleIcon?yo(eo,null,[n.toggle?bo(S$,{key:"prepend-defaults",defaults:{VBtn:{density:"compact",icon:e.toggleIcon,variant:"text",loading:e.loading},VProgressCircular:{indeterminate:"disable-shrink",size:20,width:2}}},{default:()=>[n.toggle({...t,loading:e.loading,props:{onClick:d}})]}):bo(nJ,{key:"prepend-toggle",density:"compact",icon:e.toggleIcon,loading:e.loading,variant:"text",onClick:d},{loader:()=>bo(wY,{indeterminate:"disable-shrink",size:"20",width:"2"},null)})]):yo("div",{class:"v-treeview-item__level"},null)]}),e.hasCustomPrepend?bo(S$,{key:"prepend-defaults",defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon},VListItemAction:{start:!0}}},{default:()=>{var e;return[null==(e=n.prepend)?void 0:e.call(n,t)]}}):yo(eo,null,[null==(a=n.prepend)?void 0:a.call(n,t),e.prependAvatar&&bo(hJ,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&bo(yY,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)])])}:void 0})}),FJ({},r)}}),k5=AF({fluid:Boolean,disabled:Boolean,loadChildren:Function,loadingIcon:{type:String,default:"$loading"},items:Array,openOnClick:{type:Boolean,default:void 0},indeterminateIcon:{type:zV,default:"$checkboxIndeterminate"},falseIcon:zV,trueIcon:zV,returnObject:Boolean,activatable:Boolean,selectable:Boolean,selectedColor:String,selectStrategy:[String,Function,Object],index:Number,isLastGroup:Boolean,separateRoots:Boolean,parentIndentLines:Array,indentLinesVariant:String,path:{type:Array,default:()=>[]},...XL(_5(),["hideActions"]),...Q$()},"VTreeviewChildren"),C5=DF()({name:"VTreeviewChildren",props:k5(),setup(e,t){let{slots:n}=t;const a=Ht(new Set),i=an([]),r=Zo(()=>!e.disabled&&(null!=e.openOnClick?e.openOnClick:e.selectable&&!e.activatable));async function o(t){var n,i;try{if(!(null==(n=e.items)?void 0:n.length)||!e.loadChildren)return;0===(null==(i=null==t?void 0:t.children)?void 0:i.length)&&(a.add(t.value),await e.loadChildren(t.raw))}finally{a.delete(t.value)}}function s(t,n){e.selectable&&t(n)}return()=>{var t,l,u;return null!=(u=null==(t=n.default)?void 0:t.call(n))?u:null==(l=e.items)?void 0:l.map((t,l,u)=>{var c,d,h;const{children:p,props:f}=t,m=a.has(t.value),v=!!(null==(c=u.at(l+1))?void 0:c.children),g=null!=(h=null==(d=e.path)?void 0:d.length)?h:0,y=u.length-1===l,b={index:l,depth:g,isFirst:0===l,isLast:y,path:[...e.path,l],hideAction:e.hideActions},_=function(e){let{depth:t,isLast:n,isLastGroup:a,leafLinks:i,separateRoots:r,parentIndentLines:o,variant:s}=e;if(!o||!t)return{leaf:void 0,node:void 0,children:o};if("simple"===s)return{leaf:[...o,"line"],node:[...o,"line"],children:[...o,"line"]};const l=n&&(!a||r||t>1);return{leaf:[...o,l?"last-leaf":"leaf",...i?["leaf-link"]:[]],node:[...o,l?"last-leaf":"leaf"],children:[...o,l?"none":"line"]}}({depth:g,isLast:y,isLastGroup:e.isLastGroup,leafLinks:!e.hideActions&&!e.fluid,separateRoots:e.separateRoots,parentIndentLines:e.parentIndentLines,variant:e.indentLinesVariant}),w={toggle:n.toggle?e=>{var a;return null==(a=n.toggle)?void 0:a.call(n,{...e,...b,item:t.raw,internalItem:t,loading:m})}:void 0,prepend:a=>{var i;return yo(eo,null,[e.selectable&&(!p||p&&!["leaf","single-leaf"].includes(e.selectStrategy))&&bo(UQ,{start:!0},{default:()=>[bo(kJ,{key:t.value,modelValue:a.isSelected,disabled:e.disabled,loading:m,color:e.selectedColor,density:e.density,indeterminate:a.isIndeterminate,indeterminateIcon:e.indeterminateIcon,falseIcon:e.falseIcon,trueIcon:e.trueIcon,"onUpdate:modelValue":e=>s(a.select,e),onClick:e=>e.stopPropagation(),onKeydown:e=>
5091{["Enter","Space"].includes(e.key)&&(e.stopPropagation(),s(a.select,a.isSelected))}},null)]}),null==(i=n.prepend)?void 0:i.call(n,{...a,...b,item:t.raw,internalItem:t})])},append:n.append?e=>{var a;return null==(a=n.append)?void 0:a.call(n,{...e,...b,item:t.raw,internalItem:t})}:void 0,title:n.title?e=>{var a;return null==(a=n.title)?void 0:a.call(n,{...e,item:t.raw,internalItem:t})}:void 0,subtitle:n.subtitle?e=>{var a;return null==(a=n.subtitle)?void 0:a.call(n,{...e,item:t.raw,internalItem:t})}:void 0},k=y5.filterProps(f),C=C5.filterProps({...e,...b});return p?bo(y5,Io(k,{value:e.returnObject?t.raw:null==k?void 0:k.value,rawId:null==k?void 0:k.value}),{activator:a=>{let{props:u}=a;const c={...f,...u,value:null==f?void 0:f.value,indentLines:_.node,onToggleExpand:[()=>o(t),u.onClick],onClick:r.value?[()=>o(t),u.onClick]:()=>{var e,t;return s(null==(e=i.value[l])?void 0:e.select,!(null==(t=i.value[l])?void 0:t.isSelected))}};return wB(n.header,{props:c,item:t.raw,internalItem:t,loading:m},()=>bo(w5,Io({ref:e=>i.value[l]=e},c,{hasCustomPrepend:!!n.prepend,hideActions:e.hideActions,value:e.returnObject?t.raw:f.value,loading:m}),w))},default:()=>bo(C5,Io(C,{items:p,indentLinesVariant:e.indentLinesVariant,parentIndentLines:_.children,isLastGroup:v,returnObject:e.returnObject}),n)}):wB(n.item,{props:f,item:t.raw,internalItem:t},()=>"divider"===t.type?wB(n.divider,{props:t.raw},()=>bo(eQ,t.props,null)):"subheader"===t.type?wB(n.subheader,{props:t.raw},()=>bo(AQ,t.props,null)):bo(w5,Io(f,{hasCustomPrepend:!!n.prepend,hideActions:e.hideActions,indentLines:_.leaf,value:e.returnObject?Qt(t.raw):f.value}),w))})}}});function S5(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];for(const n of e)t.push(n),n.children&&S5(n.children,t);return t}const T5=AF({openAll:Boolean,indentLines:[Boolean,String],search:String,...e0({filterKeys:["title"]}),...UL(k5(),["index","path","indentLinesVariant","parentIndentLines","isLastGroup"]),...UL(FQ({collapseIcon:"$treeviewCollapse",expandIcon:"$treeviewExpand",slim:!0}),["nav","openStrategy"]),modelValue:Array},"VTreeview"),A5=DF()({name:"VTreeview",props:T5(),emits:{"update:opened":e=>!0,"update:activated":e=>!0,"update:selected":e=>!0,"update:modelValue":e=>!0,"click:open":e=>!0,"click:select":e=>!0},setup(e,t){let{slots:n,emit:a}=t;const{items:i}=BQ(e),r=gn(()=>e.activeColor),o=gn(()=>e.baseColor),s=gn(()=>e.color),l=qF(e,"activated"),u=qF(e,"selected"),c=Zo({get:()=>{var t;return null!=(t=e.modelValue)?t:u.value},set(e){u.value=e,a("update:modelValue",e)}}),d=an(),h=Zo(()=>e.openAll?y(i.value):e.opened),p=Zo(()=>S5(i.value)),f=gn(()=>e.search),{filteredItems:m}=t0(e,p,f),v=Zo(()=>{var t;if(!f.value)return null;const n=null==(t=d.value)?void 0:t.getPath;return n?new Set(m.value.flatMap(t=>{const a=e.returnObject?t.raw:t.props.value;return[...n(a),...g(a)].map(Qt)})):null});function g(e){var t,n,a,i;const r=[],o=(null!=(n=null==(t=d.value)?void 0:t.children.get(e))?n:[]).slice();for(;o.length;){const e=o.shift();e&&(r.push(e),o.push(...(null!=(i=null==(a=d.value)?void 0:a.children.get(e))?i:[]).slice()))}return r}function y(t){let n=[];for(const a of t)a.children&&(n.push(e.returnObject?Qt(a.raw):a.value),a.children&&(n=n.concat(y(a.children))));return n}return tr(b5,{visibleIds:v}),MF({VTreeviewGroup:{activeColor:r,baseColor:o,color:s,collapseIcon:gn(()=>e.collapseIcon),expandIcon:gn(()=>e.expandIcon)},VTreeviewItem:{activeClass:gn(()=>e.activeClass),activeColor:r,baseColor:o,color:s,density:gn(()=>e.density),disabled:gn(()=>e.disabled),lines:gn(()=>e.lines),variant:gn(()=>e.variant)}}),GF(()=>{const t=VQ.filterProps(e),a=C5.filterProps(e),r="boolean"==typeof e.indentLines?"default":e.indentLines;return bo(VQ,Io({ref:d},t,{class:["v-treeview",{"v-treeview--fluid":e.fluid},e.class],openStrategy:"multiple",style:e.style,opened:h.value,activated:l.value,"onUpdate:activated":e=>l.value=e,selected:c.value,"onUpdate:selected":e=>c.value=e}),{default:()=>[bo(C5,Io(a,{density:e.density,returnObject:e.returnObject,items:i.value,parentIndentLines:e.indentLines?[]:void 0,indentLinesVariant:r}),n)]})}),{}}}),E5=DF()({name:"VValidation",props:MJ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const a=OJ(e,"validation");return()=>{var e;return null==(e=n.default)?void 0:e.call(n,a)}}}),I5=Object.freeze(Object.defineProperty({__proto__:null,VAlert:cJ,VAlertTitle:oJ,VApp:$q,VAppBar:Y$,VAppBarNavIcon:iJ,VAppBarTitle:rJ,VAutocomplete:i0,VAvatar:hJ,VBadge:o0,VBanner:d0,VBannerActions:l0,VBannerText:u0,VBottomN
5091avigation:p0,VBottomSheet:g0,VBreadcrumbs:C0,VBreadcrumbsDivider:b0,VBreadcrumbsItem:w0,VBtn:nJ,VBtnGroup:rY,VBtnToggle:pY,VCard:R0,VCardActions:T0,VCardItem:N0,VCardSubtitle:E0,VCardText:M0,VCardTitle:I0,VCarousel:U0,VCarouselItem:W0,VCheckbox:XJ,VCheckboxBtn:kJ,VChip:QJ,VChipGroup:YJ,VClassIcon:YV,VCode:G0,VCol:r4,VColorPicker:k1,VCombobox:S1,VComponentIcon:GV,VConfirmEdit:A1,VContainer:J2,VCounter:IZ,VDataIterator:l2,VDataTable:K2,VDataTableFooter:h2,VDataTableHeaders:P2,VDataTableRow:D2,VDataTableRows:B2,VDataTableServer:$2,VDataTableVirtual:G2,VDatePicker:L4,VDatePickerControls:T4,VDatePickerHeader:E4,VDatePickerMonth:N4,VDatePickerMonths:M4,VDatePickerYears:R4,VDefaultsProvider:S$,VDialog:m0,VDialogBottomTransition:u$,VDialogTopTransition:c$,VDialogTransition:r$,VDivider:eQ,VEmptyState:F4,VExpandTransition:w$,VExpandXTransition:k$,VExpansionPanel:K4,VExpansionPanelText:j4,VExpansionPanelTitle:H4,VExpansionPanels:q4,VFab:Y4,VFabTransition:l$,VFadeTransition:d$,VField:OZ,VFieldLabel:NZ,VFileInput:t3,VFooter:a3,VForm:r3,VHover:s3,VIcon:yY,VImg:V$,VInfiniteScroll:c3,VInput:DJ,VItem:f3,VItemGroup:p3,VKbd:v3,VLabel:fJ,VLayout:y3,VLayoutItem:_3,VLazy:k3,VLigatureIcon:$V,VList:VQ,VListGroup:bQ,VListImg:XQ,VListItem:SQ,VListItemAction:UQ,VListItemMedia:zQ,VListItemSubtitle:wQ,VListItemTitle:kQ,VListSubheader:AQ,VLocaleProvider:S3,VMain:A3,VMenu:AZ,VMessages:TJ,VNavigationDrawer:O3,VNoSsr:R3,VNumberInput:L3,VOtpInput:F3,VOverlay:SZ,VPagination:c2,VParallax:X3,VProgressCircular:wY,VProgressLinear:EY,VRadio:U3,VRadioGroup:z3,VRangeSlider:W3,VRating:q3,VResponsive:I$,VRow:k4,VScaleTransition:h$,VScrollXReverseTransition:f$,VScrollXTransition:p$,VScrollYReverseTransition:v$,VScrollYTransition:m$,VSelect:JZ,VSelectionControl:_J,VSelectionControlGroup:yJ,VSheet:b1,VSkeletonLoader:t6,VSlideGroup:GJ,VSlideGroupItem:n6,VSlideXReverseTransition:y$,VSlideXTransition:g$,VSlideYReverseTransition:_$,VSlideYTransition:b$,VSlider:h1,VSnackbar:i6,VSnackbarQueue:o6,VSpacer:C4,VSparkline:g6,VSpeedDial:b6,VStepper:O6,VStepperActions:k6,VStepperHeader:C6,VStepperItem:A6,VStepperWindow:I6,VStepperWindowItem:N6,VSvgIcon:qV,VSwitch:D6,VSystemBar:B6,VTab:X6,VTable:V2,VTabs:W6,VTabsWindow:U6,VTabsWindowItem:z6,VTextField:VZ,VTextarea:q6,VThemeProvider:Y6,VTimePicker:h5,VTimePickerClock:r5,VTimePickerControls:s5,VTimeline:n5,VTimelineItem:e5,VToolbar:W$,VToolbarItems:f5,VToolbarTitle:Qq,VTooltip:v5,VTreeview:A5,VTreeviewGroup:y5,VTreeviewItem:w5,VValidation:E5,VVirtualScroll:KZ,VWindow:X0,VWindowItem:z0},Symbol.toStringTag,{value:"Module"}));function x5(e,t){var n;(null==(n=e._mutate)?void 0:n[t.instance.$.uid])&&(e._mutate[t.instance.$.uid].observer.disconnect(),delete e._mutate[t.instance.$.uid])}const N5={mounted:function(e,t){var n,a,i,r;const o=t.modifiers||{},s=t.value,{once:l,immediate:u,...c}=o,d=!Object.keys(c).length,{handler:h,options:p}="object"==typeof s?s:{handler:s,options:{attributes:null!=(n=null==c?void 0:c.attr)?n:d,characterData:null!=(a=null==c?void 0:c.char)?a:d,childList:null!=(i=null==c?void 0:c.child)?i:d,subtree:null!=(r=null==c?void 0:c.sub)?r:d}},f=new MutationObserver(function(){null==h||h(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],arguments.length>1?arguments[1]:void 0),l&&x5(e,t)});u&&(null==h||h([],f)),e._mutate=Object(e._mutate),e._mutate[t.instance.$.uid]={observer:f},f.observe(e,p)},unmounted:x5};const P5={mounted:function(e,t){var n,a;const i=t.value,r={passive:!(null==(n=t.modifiers)?void 0:n.active)};window.addEventListener("resize",i,r),e._onResize=Object(e._onResize),e._onResize[t.instance.$.uid]={handler:i,options:r},(null==(a=t.modifiers)?void 0:a.quiet)||i()},unmounted:function(e,t){var n;if(!(null==(n=e._onResize)?void 0:n[t.instance.$.uid]))return;const{handler:a,options:i}=e._onResize[t.instance.$.uid];window.removeEventListener("resize",a,i),delete e._onResize[t.instance.$.uid]}};function M5(e,t){var n;const{self:a=!1}=null!=(n=t.modifiers)?n:{},i=t.value,r="object"==typeof i&&i.options||{passive:!0},o="function"==typeof i||"handleEvent"in i?i:i.handler,s=a?e:t.arg?document.querySelector(t.arg):window;s&&(s.addEventListener("scroll",o,r),e._onScroll=Object(e._onScroll),e._onScroll[t.instance.$.uid]={handler:o,options:r,target:a?void 0:s})}function O5(e,t){var n;if(!(null==(n=e._onScroll)?void 0:n[t.instance.$.uid]))return;const{handler:a,options:i,target:r=e}=e._onScroll[t.instance.$.uid];r.removeEventListener("scroll",a,i),delete e._onScroll[t.instance.$.uid]}const R5={mounted:M5,unmounted:O5,updated:function(e,t){t.value!==t.oldValue&&(O5(e,t),M5(e,t))}};const D5=function(e,t){const n=function(e,t){return function(n,a,i){var r,o,s,l,u,c;const d="function"==typeof t?t(a):t,h=null!=(s=null!=(o=null==(r=a.value)?void 0:r.text)?o:a.value)?s:null==d?void 0:d.text,p=RL(a.value)?a.value:{},f=()=>null!=h?h:n.textContent,m=null!=(c=i.ctx===a.instance.$?null==(l=function(e,t){const n=new Set,a=t=>{var i,r;for(const o of t){if(!o)continue;if(o===e||o.el&&e.el&&o.el===e.el)return!0;let t;if(n.add(o),o.suspense?t=a([o.ssContent]):Array.isArray(o.children)?t=a(o.children):(null==(i=o.component)?void 0:i.vnode)&&(t=a([null==(r=o.component)?void 0:r.subTree])),t)return t;n.delete(o)}return!1};if(!a([t.subTree]))return t;const i=Array.from(n).reverse();for(const r of i)if(r.component)return r.component;return t}(i,a.instance.$))?void 0:l.provides:null==(u=i.ctx)?void 0:u.provides)?c:a.instance.$.provides,v=es(e,Io(d,p),f);v.appContext=Object.assign(Object.create(null),a.instance.$.appContext,{provides:m}),Hl(v,n)}}("string"==typeof e?ki(e):e,t);return{mounted:n,updated:n,unmounted(e){Hl(null,e)}}}(v5,e=>{var t;return{activator:"parent",location:null==(t=e.arg)?void 0:t.replace("-"," "),text:"boolean"==typeof e.value?void 0:e.value}}),L5=gX({components:I5,directives:Object.freeze(Object.defineProperty({__proto__:null,ClickOutside:wZ,Intersect:B$,Mutate:N5,Resize:P5,Ripple:eJ,Scroll:R5,Tooltip:D5,Touch:L0},Symbol.toStringTag,{value:"Module"})),icons:{defaultSet:"mdi",aliases:UV,sets:{mdi:HV}}}),B5={addEventListeners(e,t,n){for(let a=0,i=t.length;a<i;a++)e.addEventListener(t[a],n,{passive:!1})},removeEventListeners(e,t,n){for(let a=0,i=t.length;a<i;a++)e.removeEventListener(t[a],n,{passive:!1})},emitEvent:function(e,t,n){if(e.componentInstance)e.componentInstance.$emit(t,n);else{let a=new window.CustomEvent(t,{detail:n});e.el.dispatchEvent(a)}}},F5=["mousedown","touchstart"],V5=["mousemove","touchmove"],X5=["mouseup","touchend"],j5=function(e,t,n){let a=e,i=!0,r=window;"boolean"==typeof t.value?i=t.value:"object"==typeof t.value?("string"==typeof t.value.target?(a=e.querySelector(t.value.target),a||console.error("There is no element with the current target value.")):typeof t.value.target<"u"&&console.error("The parameter \"target\" should be either 'undefined' or 'string'."),"string"==typeof t.value.container?(r=document.querySelector(t.value.container),r||console.error("There is no element with the current container value.")):typeof t.value.container<"u"&&console.error("The parameter \"container\" should be be either 'undefined' or 'string'."),"boolean"==typeof t.value.active?i=t.value.active:typeof t.value.active<"u"&&console.error("The parameter \"active\" value should be either 'undefined', 'true' or 'false'.")):typeof t.value<"u"&&console.error("The passed value should be either 'undefined', 'true' or 'false' or 'object'.");const o=function(e,t){r===window?window.scrollBy(e,t):(r.scrollLeft+=e,r.scrollTop+=t)},s=function(){let e,i,r,s=!1;a.md=function(n){const o=n instanceof window.MouseEvent,s=o?n.pageX:n.touches[0].pageX,l=o?n.pageY:n.touches[0].pageY,u=document.elementFromPoint(s-window.pageXOffset,l-window.pageYOffset),c="nochilddrag"===t.arg,d=t.modifiers.noleft,h=t.modifiers.noright,p=t.modifiers.nomiddle,f=t.modifiers.noback,m=t.modifiers.noforward,v="firstchilddrag"===t.arg,g=u===a,y=u===a.firstChild,b=c?typeof(null==u?void 0:u.dataset.dragscroll)<"u":typeof(null==u?void 0:u.dataset.noDragscroll)>"u";if((g||b&&(!v||y))&&(0!==n.button||!d)){if(1===n.button&&p)return;if(2===n.button&&h)return;if(3===n.button&&f)return;if(4===n.button&&m)return;r=1,e=o?n.clientX:n.touches[0].clientX,i=o?n.clientY:n.touches[0].clientY}},a.mu=function(e){r=0,s&&B5.emitEvent(n,"dragscrollend"),s=!1},a.mm=function(l){const u=l instanceof window.MouseEvent;let c,d;if(r){l.preventDefault(),s||B5.emitEvent(n,"dragscrollstart"),s=!0;const r=a.scrollLeft+a.clientWidth>=a.scrollWidth||0===a.scrollLeft,h=a.scrollTop+a.clientHeight>=a.scrollHeight||0===a.scrollTop;c=-e+(e=u?l.clientX:l.touches[0].clientX),d=-i+(i=u?l.clientY:l.touches[0].clientY),t.modifiers.pass?(a.scrollLeft-=t.modifiers.y?-0:c,a.scrollTop-=t.modifiers.x?-0:d,a===document.body&&(a.scrollLeft-=t.modifiers.y?-0:c,a.scrollTop-=t.modifiers.x?-0:d),(r||t.modifiers.y)&&o(-c,0),(h||t.modifiers.x)&&o(0,-d)):(t.modifiers.x&&(d=-0),t.modifiers.y&&(c=-0),a.scrollLeft-=c,a.scrollTop-=d,a===document.body&&(a.scrollLeft-=c,a.scrollTop-=d)),B5.emitEvent(n,"dragscrollmove",{deltaX:-c,deltaY:-d})}},B5.addEventListeners(a,F5,a.md),B5.addEventListeners(window,X5,a.mu),B
50915.addEventListeners(window,V5,a.mm)};i?"complete"===document.readyState?s():window.addEventListener("load",s):(B5.removeEventListeners(a,F5,a.md),B5.removeEventListeners(window,X5,a.mu),B5.removeEventListeners(window,V5,a.mm))},U5={mounted:(e,t,n)=>j5(e,t,n),updated:(e,t,n)=>{JSON.stringify(t.value)!==JSON.stringify(t.oldValue)&&j5(e,t,n)},unmounted:e=>(e=>{const t=e;B5.removeEventListeners(t,F5,t.md),B5.removeEventListeners(window,X5,t.mu),B5.removeEventListeners(window,V5,t.mm)})(e)},H5={install(e){e.directive("dragscroll",U5)}};typeof window<"u"&&window.Vue&&(window.VueDragscroll=U5);var z5,K5={exports:{}};var W5=(z5||(z5=1,"undefined"!=typeof self&&self,K5.exports=function(e){var t={};function n(a){if(t[a])return t[a].exports;var i=t[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(a,i,function(t){return e[t]}.bind(null,i));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){(function(e){function a(e,t){const n=Object.create(null),a=e.split(",");for(let i=0;i<a.length;i++)n[a[i]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}n.d(t,"a",function(){return v}),n.d(t,"b",function(){return m}),n.d(t,"c",function(){return y}),n.d(t,"d",function(){return g}),n.d(t,"e",function(){return U}),n.d(t,"f",function(){return K}),n.d(t,"g",function(){return $}),n.d(t,"h",function(){return k}),n.d(t,"i",function(){return Q}),n.d(t,"j",function(){return G}),n.d(t,"k",function(){return T}),n.d(t,"l",function(){return z}),n.d(t,"m",function(){return q}),n.d(t,"n",function(){return A}),n.d(t,"o",function(){return N}),n.d(t,"p",function(){return i}),n.d(t,"q",function(){return d}),n.d(t,"r",function(){return F}),n.d(t,"s",function(){return E}),n.d(t,"t",function(){return w}),n.d(t,"u",function(){return O}),n.d(t,"v",function(){return _}),n.d(t,"w",function(){return R}),n.d(t,"x",function(){return V}),n.d(t,"y",function(){return h}),n.d(t,"z",function(){return I}),n.d(t,"A",function(){return r}),n.d(t,"B",function(){return P}),n.d(t,"C",function(){return M}),n.d(t,"D",function(){return p}),n.d(t,"E",function(){return f}),n.d(t,"F",function(){return a}),n.d(t,"G",function(){return c}),n.d(t,"H",function(){return o}),n.d(t,"I",function(){return C}),n.d(t,"J",function(){return W}),n.d(t,"K",function(){return Y}),n.d(t,"L",function(){return B});const i=a("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt"),r=a("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function o(e){if(A(e)){const t={};for(let n=0;n<e.length;n++){const a=e[n],i=o(P(a)?u(a):a);if(i)for(const e in i)t[e]=i[e]}return t}if(O(e))return e}const s=/;(?![^(]*\))/g,l=/:(.+)/;function u(e){const t={};return e.split(s).forEach(e=>{if(e){const n=e.split(l);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function c(e){let t="";if(P(e))t=e;else if(A(e))for(let n=0;n<e.length;n++){const a=c(e[n]);a&&(t+=a+" ")}else if(O(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const d=a("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,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,rtc,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"),h=a("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,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");function p(e,t){if(e===t)return!0;let n=x(e),a=x(t);if(n||a)return!(!n||!a)&&e.getTime()===t.getTime();if(n=A(e),a=A(t),n||a)return!(!n||!a)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let a=0;n&&a<e.length;a++)n=p(e[a],t[a]);return n}(e,t);if(n=O(e),a=O(t),n||a){if(!n||!a)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const a=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(a&&!i||!a&&i||!p(e[n],t[n]))return!1}}return String(e)===String(t)}function f(e,t){return e.findIndex(e=>p(e,t))}const m={},v=[],g=()=>{},y=()=>!1,b=/^on[^a-z]/,_=e=>b.test(e),w=e=>e.startsWith("onUpdate:"),k=Object.assign,C=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},S=Object.prototype.hasOwnProperty,T=(e,t)=>
5091S.call(e,t),A=Array.isArray,E=e=>"[object Map]"===L(e),I=e=>"[object Set]"===L(e),x=e=>e instanceof Date,N=e=>"function"==typeof e,P=e=>"string"==typeof e,M=e=>"symbol"==typeof e,O=e=>null!==e&&"object"==typeof e,R=e=>O(e)&&N(e.then)&&N(e.catch),D=Object.prototype.toString,L=e=>D.call(e),B=e=>L(e).slice(8,-1),F=e=>P(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,V=a(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),X=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},j=/-(\w)/g,U=X(e=>e.replace(j,(e,t)=>t?t.toUpperCase():"")),H=/\B([A-Z])/g,z=X(e=>e.replace(H,"-$1").toLowerCase()),K=X(e=>e.charAt(0).toUpperCase()+e.slice(1)),W=X(e=>e?"on"+K(e):""),G=(e,t)=>e!==t&&(e==e||t==t),q=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},$=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Y=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let J;const Q=()=>J||(J="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{})}).call(this,n(2))},function(e,t,n){e.exports=n(3)},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(a){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){n.r(t),n.d(t,"ShareNetwork",function(){return Ut});var a=n(0);const i=new WeakMap,r=[];let o;const s=Symbol(""),l=Symbol("");function u(e,t=a.b){var n;(n=e)&&!0===n._isEffect&&(e=e.raw);const i=function(e,t){const n=function(){if(!n.active)return t.scheduler?void 0:e();if(!r.includes(n)){h(n);try{return f.push(p),p=!0,r.push(n),o=n,e()}finally{r.pop(),v(),o=r[r.length-1]}}};return n.id=d++,n.allowRecurse=!!t.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}(e,t);return t.lazy||i(),i}function c(e){e.active&&(h(e),e.options.onStop&&e.options.onStop(),e.active=!1)}let d=0;function h(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let p=!0;const f=[];function m(){f.push(p),p=!1}function v(){const e=f.pop();p=void 0===e||e}function g(e,t,n){if(!p||void 0===o)return;let a=i.get(e);a||i.set(e,a=new Map);let r=a.get(n);r||a.set(n,r=new Set),r.has(o)||(r.add(o),o.deps.push(r))}function y(e,t,n,r,u,c){const d=i.get(e);if(!d)return;const h=new Set,p=e=>{e&&e.forEach(e=>{(e!==o||e.allowRecurse)&&h.add(e)})};if("clear"===t)d.forEach(p);else if("length"===n&&Object(a.n)(e))d.forEach((e,t)=>{("length"===t||t>=r)&&p(e)});else switch(void 0!==n&&p(d.get(n)),t){case"add":Object(a.n)(e)?Object(a.r)(n)&&p(d.get("length")):(p(d.get(s)),Object(a.s)(e)&&p(d.get(l)));break;case"delete":Object(a.n)(e)||(p(d.get(s)),Object(a.s)(e)&&p(d.get(l)));break;case"set":Object(a.s)(e)&&p(d.get(s))}
5091h.forEach(e=>{e.options.scheduler?e.options.scheduler(e):e()})}const b=Object(a.F)("__proto__,__v_isRef,__isVue"),_=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(a.C)),w=A(),k=A(!1,!0),C=A(!0),S=A(!0,!0),T={};function A(e=!1,t=!1){return function(n,i,r){if("__v_isReactive"===i)return!e;if("__v_isReadonly"===i)return e;if("__v_raw"===i&&r===(e?t?ne:te:t?ee:Z).get(n))return n;const o=Object(a.n)(n);if(!e&&o&&Object(a.k)(T,i))return Reflect.get(T,i,r);const s=Reflect.get(n,i,r);return(Object(a.C)(i)?_.has(i):b(i))?s:(e||g(n,0,i),t?s:ce(s)?o&&Object(a.r)(i)?s:s.value:Object(a.u)(s)?e?ie(s):ae(s):s)}}["includes","indexOf","lastIndexOf"].forEach(e=>{const t=Array.prototype[e];T[e]=function(...e){const n=ue(this);for(let t=0,i=this.length;t<i;t++)g(n,0,t+"");const a=t.apply(n,e);return-1===a||!1===a?t.apply(n,e.map(ue)):a}}),["push","pop","shift","unshift","splice"].forEach(e=>{const t=Array.prototype[e];T[e]=function(...e){m();const n=t.apply(this,e);return v(),n}});const E=x(),I=x(!0);function x(e=!1){return function(t,n,i,r){let o=t[n];if(!e&&(i=ue(i),o=ue(o),!Object(a.n)(t)&&ce(o)&&!ce(i)))return o.value=i,!0;const s=Object(a.n)(t)&&Object(a.r)(n)?Number(n)<t.length:Object(a.k)(t,n),l=Reflect.set(t,n,i,r);return t===ue(r)&&(s?Object(a.j)(i,o)&&y(t,"set",n,i):y(t,"add",n,i)),l}}const N={get:w,set:E,deleteProperty:function(e,t){const n=Object(a.k)(e,t),i=(e[t],Reflect.deleteProperty(e,t));return i&&n&&y(e,"delete",t,void 0),i},has:function(e,t){const n=Reflect.has(e,t);return Object(a.C)(t)&&_.has(t)||g(e,0,t),n},ownKeys:function(e){return g(e,0,Object(a.n)(e)?"length":s),Reflect.ownKeys(e)}},P={get:C,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},M=(Object(a.h)({},N,{get:k,set:I}),Object(a.h)({},P,{get:S}),e=>Object(a.u)(e)?ae(e):e),O=e=>Object(a.u)(e)?ie(e):e,R=e=>e,D=e=>Reflect.getPrototypeOf(e);function L(e,t,n=!1,a=!1){const i=ue(e=e.__v_raw),r=ue(t);t!==r&&!n&&g(i,0,t),!n&&g(i,0,r);const{has:o}=D(i),s=a?R:n?O:M;return o.call(i,t)?s(e.get(t)):o.call(i,r)?s(e.get(r)):void 0}function B(e,t=!1){const n=this.__v_raw,a=ue(n),i=ue(e);return e!==i&&!t&&g(a,0,e),!t&&g(a,0,i),e===i?n.has(e):n.has(e)||n.has(i)}function F(e,t=!1){return e=e.__v_raw,!t&&g(ue(e),0,s),Reflect.get(e,"size",e)}function V(e){e=ue(e);const t=ue(this);return D(t).has.call(t,e)||(t.add(e),y(t,"add",e,e)),this}function X(e,t){t=ue(t);const n=ue(this),{has:i,get:r}=D(n);let o=i.call(n,e);o||(e=ue(e),o=i.call(n,e));const s=r.call(n,e);return n.set(e,t),o?Object(a.j)(t,s)&&y(n,"set",e,t):y(n,"add",e,t),this}function j(e){const t=ue(this),{has:n,get:a}=D(t);let i=n.call(t,e);i||(e=ue(e),i=n.call(t,e)),a&&a.call(t,e);const r=t.delete(e);return i&&y(t,"delete",e,void 0),r}function U(){const e=ue(this),t=0!==e.size,n=e.clear();return t&&y(e,"clear",void 0,void 0),n}function H(e,t){return function(n,a){const i=this,r=i.__v_raw,o=ue(r),l=t?R:e?O:M;return!e&&g(o,0,s),r.forEach((e,t)=>n.call(a,l(e),l(t),i))}}function z(e,t,n){return function(...i){const r=this.__v_raw,o=ue(r),u=Object(a.s)(o),c="entries"===e||e===Symbol.iterator&&u,d="keys"===e&&u,h=r[e](...i),p=n?R:t?O:M;return!t&&g(o,0,d?l:s),{next(){const{value:e,done:t}=h.next();return t?{value:e,done:t}:{value:c?[p(e[0]),p(e[1])]:p(e),done:t}},[Symbol.iterator](){return this}}}}function K(e){return function(...t){return"delete"!==e&&this}}const W={get(e){return L(this,e)},get size(){return F(this)},has:B,add:V,set:X,delete:j,clear:U,forEach:H(!1,!1)},G={get(e){return L(this,e,!1,!0)},get size(){return F(this)},has:B,add:V,set:X,delete:j,clear:U,forEach:H(!1,!0)},q={get(e){return L(this,e,!0)},get size(){return F(this,!0)},has(e){return B.call(this,e,!0)},add:K("add"),set:K("set"),delete:K("delete"),clear:K("clear"),forEach:H(!0,!1)},$={get(e){return L(this,e,!0,!0)},get size(){return F(this,!0)},has(e){return B.call(this,e,!0)},add:K("add"),set:K("set"),delete:K("delete"),clear:K("clear"),forEach:H(!0,!0)};function Y(e,t){const n=t?e?$:G:e?q:W;return(t,i,r)=>"__v_isReactive"===i?!e:"__v_isReadonly"===i?e:"__v_raw"===i?t:Reflect.get(Object(a.k)(n,i)&&i in t?n:t,i,r)}
5091["keys","values","entries",Symbol.iterator].forEach(e=>{W[e]=z(e,!1,!1),q[e]=z(e,!0,!1),G[e]=z(e,!1,!0),$[e]=z(e,!0,!0)});const J={get:Y(!1,!1)},Q={get:Y(!0,!1)},Z=new WeakMap,ee=new WeakMap,te=new WeakMap,ne=new WeakMap;function ae(e){return e&&e.__v_isReadonly?e:re(e,!1,N,J,Z)}function ie(e){return re(e,!0,P,Q,te)}function re(e,t,n,i,r){if(!Object(a.u)(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const s=(l=e).__v_skip||!Object.isExtensible(l)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(Object(a.L)(l));var l;if(0===s)return e;const u=new Proxy(e,2===s?i:n);return r.set(e,u),u}function oe(e){return se(e)?oe(e.__v_raw):!(!e||!e.__v_isReactive)}function se(e){return!(!e||!e.__v_isReadonly)}function le(e){return oe(e)||se(e)}function ue(e){return e&&ue(e.__v_raw)||e}function ce(e){return Boolean(e&&!0===e.__v_isRef)}function de(e,t,n,a){let i;try{i=a?e(...a):e()}catch(r){pe(r,t,n)}return i}function he(e,t,n,i){if(Object(a.o)(e)){const r=de(e,t,n,i);return r&&Object(a.w)(r)&&r.catch(e=>{pe(e,t,n)}),r}const r=[];for(let a=0;a<e.length;a++)r.push(he(e[a],t,n,i));return r}function pe(e,t,n,a=!0){if(t&&t.vnode,t){let a=t.parent;const i=t.proxy,r=n;for(;a;){const t=a.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,i,r))return;a=a.parent}const o=t.appContext.config.errorHandler;if(o)return void de(o,null,10,[e,i,r])}var i;i=e,console.error(i)}let fe=!1,me=!1;const ve=[];let ge=0;const ye=[];let be=null,_e=0;const we=[];let ke=null,Ce=0;const Se=Promise.resolve();let Te=null,Ae=null;function Ee(e){const t=Te||Se;return e?t.then(this?e.bind(this):e):t}function Ie(e){if(!(ve.length&&ve.includes(e,fe&&e.allowRecurse?ge+1:ge)||e===Ae)){const t=function(e){let t=ge+1,n=ve.length;const a=Re(e);for(;t<n;){const e=t+n>>>1;Re(ve[e])<a?t=e+1:n=e}return t}(e);t>-1?ve.splice(t,0,e):ve.push(e),xe()}}function xe(){fe||me||(me=!0,Te=Se.then(De))}function Ne(e,t,n,i){Object(a.n)(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?i+1:i)||n.push(e),xe()}function Pe(e){Ne(e,ke,we,Ce)}function Me(e,t=null){if(ye.length){for(Ae=t,be=[...new Set(ye)],ye.length=0,_e=0;_e<be.length;_e++)be[_e]();be=null,_e=0,Ae=null,Me(e,t)}}function Oe(e){if(we.length){const e=[...new Set(we)];if(we.length=0,ke)return void ke.push(...e);for(ke=e,ke.sort((e,t)=>Re(e)-Re(t)),Ce=0;Ce<ke.length;Ce++)ke[Ce]();ke=null,Ce=0}}const Re=e=>null==e.id?1/0:e.id;function De(e){me=!1,fe=!0,Me(e),ve.sort((e,t)=>Re(e)-Re(t));try{for(ge=0;ge<ve.length;ge++){const e=ve[ge];e&&de(e,null,14)}}finally{ge=0,ve.length=0,Oe(),fe=!1,Te=null,(ve.length||we.length)&&De(e)}}let Le=0;const Be=e=>Le+=e;let Fe=null,Ve=null;function Xe(e){let t;for(let n=0;n<e.length;n++){const a=e[n];if(!tt(a))return;if(a.type!==et||"v-if"===a.children){if(t)return;t=a}}return t}function je(e){return Object(a.o)(e)&&(e=e()),Object(a.n)(e)&&(e=Xe(e)),ut(e)}function Ue(e,t){t&&t.pendingBranch?Object(a.n)(e)?t.effects.push(...e):t.effects.push(e):Pe(e)}const He={};function ze(e,t,{immediate:n,deep:i,flush:r,onTrack:o,onTrigger:s}=a.b,l=mt){let d,h,p=!1;if(ce(e)?(d=()=>e.value,p=!!e._shallow):oe(e)?(d=()=>e,i=!0):d=Object(a.n)(e)?()=>e.map(e=>ce(e)?e.value:oe(e)?We(e):Object(a.o)(e)?de(e,l,2,[l&&l.proxy]):void 0):Object(a.o)(e)?t?()=>de(e,l,2,[l&&l.proxy]):()=>{if(!l||!l.isUnmounted)return h&&h(),he(e,l,3,[f])}:a.d,t&&i){const e=d;d=()=>We(e())}let f=e=>{h=y.options.onStop=()=>{de(e,l,4)}},m=Object(a.n)(e)?[]:He;const v=()=>{if(y.active)if(t){const e=y();(i||p||Object(a.j)(e,m))&&(h&&h(),he(t,l,3,[e,m===He?void 0:m,f]),m=e)}else y()};let g;v.allowRecurse=!!t,g="sync"===r?v:"post"===r?()=>Ye(v,l&&l.suspense):()=>{!l||l.isMounted?Ne(v,be,ye,_e):v()};const y=u(d,{lazy:!0,onTrack:o,onTrigger:s,scheduler:g});return gt(y,l),t?n?v():m=y():"post"===r?Ye(y,l&&l.suspense):y(),()=>{c(y),l&&Object(a.I)(l.effects,y)}}function Ke(e,t,n){const i=this.proxy;return ze(Object(a.B)(e)?()=>i[e]:e.bind(i),t.bind(i),n,this)}function We(e,t=new Set){if(!Object(a.u)(e)||t.has(e))return e;if(t.add(e),ce(e))We(e.value,t);else if(Object(a.n)(e))for(let n=0;n<e.length;n++)We(e[n],t);
5091else if(Object(a.z)(e)||Object(a.s)(e))e.forEach(e=>{We(e,t)});else for(const n in e)We(e[n],t);return e}const Ge=[Function,Array],qe={props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ge,onEnter:Ge,onAfterEnter:Ge,onEnterCancelled:Ge,onBeforeLeave:Ge,onLeave:Ge,onAfterLeave:Ge,onLeaveCancelled:Ge,onBeforeAppear:Ge,onAppear:Ge,onAfterAppear:Ge,onAppearCancelled:Ge}};function $e(){return{app:null,config:{isNativeTag:a.c,performance:!1,globalProperties:{},optionMergeStrategies:{},isCustomElement:a.c,errorHandler:void 0,warnHandler:void 0},mixins:[],components:{},directives:{},provides:Object.create(null)}}const Ye=Ue,Je=Symbol(),Qe=Symbol(void 0),Ze=Symbol(void 0),et=Symbol(void 0);function tt(e){return!!e&&!0===e.__v_isVNode}const nt="__vInternal",at=({key:e})=>null!=e?e:null,it=({ref:e})=>null!=e?Object(a.B)(e)||ce(e)||Object(a.o)(e)?{i:Fe,r:e}:e:null,rt=ot;function ot(e,t=null,n=null,i=0,r=null,o=!1){if(e&&e!==Je||(e=et),tt(e)){const a=st(e,t,!0);return n&&ct(a,n),a}if(yt(e)&&(e=e.__vccOpts),t){(le(t)||nt in t)&&(t=Object(a.h)({},t));let{class:e,style:n}=t;e&&!Object(a.B)(e)&&(t.class=Object(a.G)(e)),Object(a.u)(n)&&(le(n)&&!Object(a.n)(n)&&(n=Object(a.h)({},n)),t.style=Object(a.H)(n))}const s=Object(a.B)(e)?1:e.__isSuspense?128:(e=>e.__isTeleport)(e)?64:Object(a.u)(e)?4:Object(a.o)(e)?2:0,l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&at(t),ref:t&&it(t),scopeId:Ve,slotScopeIds:null,children:null,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:i,dynamicProps:r,dynamicChildren:null,appContext:null};if(ct(l,n),128&s){const{content:e,fallback:t}=function(e){const{shapeFlag:t,children:n}=e;let a,i;return 32&t?(a=je(n.default),i=je(n.fallback)):(a=je(n),i=ut(null)),{content:a,fallback:i}}(l);l.ssContent=e,l.ssFallback=t}return l}function st(e,t,n=!1){const{props:i,ref:r,patchFlag:o,children:s}=e,l=t?function(...e){const t=Object(a.h)({},e[0]);for(let n=1;n<e.length;n++){const i=e[n];for(const e in i)if("class"===e)t.class!==i.class&&(t.class=Object(a.G)([t.class,i.class]));else if("style"===e)t.style=Object(a.H)([t.style,i.style]);else if(Object(a.v)(e)){const n=t[e],a=i[e];n!==a&&(t[e]=n?[].concat(n,i[e]):a)}else""!==e&&(t[e]=i[e])}return t}(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&at(l),ref:t&&t.ref?n&&r?Object(a.n)(r)?r.concat(it(t)):[r,it(t)]:it(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Qe?-1===o?16:16|o:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&st(e.ssContent),ssFallback:e.ssFallback&&st(e.ssFallback),el:e.el,anchor:e.anchor}}function lt(e=" ",t=0){return rt(Ze,null,e,t)}function ut(e){return null==e||"boolean"==typeof e?rt(et):Object(a.n)(e)?rt(Qe,null,e):"object"==typeof e?null===e.el?e:st(e):rt(Ze,null,String(e))}function ct(e,t){let n=0;const{shapeFlag:i}=e;if(null==t)t=null;else if(Object(a.n)(t))n=16;else if("object"==typeof t){if(1&i||64&i){const n=t.default;return void(n&&(n._c&&Be(1),ct(e,n()),n._c&&Be(-1)))}{n=32;const e=t._;e||nt in t||(t._ctx=Fe)}}else Object(a.o)(t)?(t={default:t,_ctx:Fe},n=32):(t=String(t),64&i?(n=16,t=[lt(t)]):n=8);e.children=t,e.shapeFlag|=n}function dt(e,t,n){const i=n.appContext.config.optionMergeStrategies,{mixins:r,extends:o}=t;o&&dt(e,o,n),r&&r.forEach(t=>dt(e,t,n));for(const s in t)i&&Object(a.k)(i,s)?e[s]=i[s](e[s],t[s],n.proxy,s):e[s]=t[s]}const ht=e=>e?vt(e)?e.exposed?e.exposed:e.proxy:ht(e.parent):null,pt=Object(a.h)(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ht(e.parent),$root:e=>ht(e.root),$emit:e=>e.emit,$options:e=>function(e){const t=e.type,{__merged:n,mixins:a,extends:i}=t;if(n)return n;const r=e.appContext.mixins;if(!r.length&&!a&&!i)return t;const o={};return r.forEach(t=>dt(o,t,e)),dt(o,t,e),t.__merged=o}(e),$forceUpdate:e=>()=>Ie(e.update),$nextTick:e=>Ee.bind(e.proxy),$watch:e=>Ke.bind(e)}),ft={get({_:e}
5091,t){const{ctx:n,setupState:i,data:r,props:o,accessCache:s,type:l,appContext:u}=e;if("__v_skip"===t)return!0;let c;if("$"!==t[0]){const l=s[t];if(void 0!==l)switch(l){case 0:return i[t];case 1:return r[t];case 3:return n[t];case 2:return o[t]}else{if(i!==a.b&&Object(a.k)(i,t))return s[t]=0,i[t];if(r!==a.b&&Object(a.k)(r,t))return s[t]=1,r[t];if((c=e.propsOptions[0])&&Object(a.k)(c,t))return s[t]=2,o[t];if(n!==a.b&&Object(a.k)(n,t))return s[t]=3,n[t];s[t]=4}}const d=pt[t];let h,p;return d?("$attrs"===t&&g(e,0,t),d(e)):(h=l.__cssModules)&&(h=h[t])?h:n!==a.b&&Object(a.k)(n,t)?(s[t]=3,n[t]):(p=u.config.globalProperties,Object(a.k)(p,t)?p[t]:void 0)},set({_:e},t,n){const{data:i,setupState:r,ctx:o}=e;if(r!==a.b&&Object(a.k)(r,t))r[t]=n;else if(i!==a.b&&Object(a.k)(i,t))i[t]=n;else if(Object(a.k)(e.props,t))return!1;return!("$"===t[0]&&t.slice(1)in e||(o[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:r,propsOptions:o}},s){let l;return void 0!==n[s]||e!==a.b&&Object(a.k)(e,s)||t!==a.b&&Object(a.k)(t,s)||(l=o[0])&&Object(a.k)(l,s)||Object(a.k)(i,s)||Object(a.k)(pt,s)||Object(a.k)(r.config.globalProperties,s)}};Object(a.h)({},ft,{get(e,t){if(t!==Symbol.unscopables)return ft.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!Object(a.p)(t)}),$e();let mt=null;function vt(e){return 4&e.vnode.shapeFlag}function gt(e,t=mt){t&&(t.effects||(t.effects=[])).push(e)}function yt(e){return Object(a.o)(e)&&"__vccOpts"in e}function bt(e,t,n){const i=arguments.length;return 2===i?Object(a.u)(t)&&!Object(a.n)(t)?tt(t)?rt(e,null,[t]):rt(e,t):rt(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):3===i&&tt(n)&&(n=[n]),rt(e,t,n))}const _t="http://www.w3.org/2000/svg",wt="undefined"!=typeof document?document:null;let kt,Ct;const St={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,a)=>{const i=t?wt.createElementNS(_t,e):wt.createElement(e,n?{is:n}:void 0);return"select"===e&&a&&null!=a.multiple&&i.setAttribute("multiple",a.multiple),i},createText:e=>wt.createTextNode(e),createComment:e=>wt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>
5091{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>wt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,a){const i=a?Ct||(Ct=wt.createElementNS(_t,"svg")):kt||(kt=wt.createElement("div"));i.innerHTML=e;const r=i.firstChild;let o=r,s=o;for(;o;)s=o,St.insert(o,t,n),o=i.firstChild;return[r,s]}},Tt=/\s*!important$/;function At(e,t,n){if(Object(a.n)(n))n.forEach(n=>At(e,t,n));else if(t.startsWith("--"))e.setProperty(t,n);else{const i=function(e,t){const n=It[t];if(n)return n;let i=Object(a.e)(t);if("filter"!==i&&i in e)return It[t]=i;i=Object(a.f)(i);for(let a=0;a<Et.length;a++){const n=Et[a]+i;if(n in e)return It[t]=n}return t}(e,t);Tt.test(n)?e.setProperty(Object(a.l)(i),n.replace(Tt,""),"important"):e[i]=n}}const Et=["Webkit","Moz","ms"],It={},xt="http://www.w3.org/1999/xlink";let Nt=Date.now,Pt=!1;if("undefined"!=typeof window){Nt()>document.createEvent("Event").timeStamp&&(Nt=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);Pt=!!(e&&Number(e[1])<=53)}let Mt=0;const Ot=Promise.resolve(),Rt=()=>{Mt=0};function Dt(e,t,n,a){e.addEventListener(t,n,a)}function Lt(e,t,n,i,r=null){const o=e._vei||(e._vei={}),s=o[t];if(i&&s)s.value=i;else{const[n,d]=function(e){let t;if(Bt.test(e)){let n;for(t={};n=e.match(Bt);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[Object(a.l)(e.slice(2)),t]}(t);i?Dt(e,n,o[t]=function(e,t){const n=e=>{const i=e.timeStamp||Nt();(Pt||i>=n.attached-1)&&he(function(e,t){if(Object(a.n)(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e(t))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Mt||(Ot.then(Rt),Mt=Nt()),n}(i,r),d):s&&(l=n,u=s,c=d,e.removeEventListener(l,u,c),o[t]=void 0)}var l,u,c}const Bt=/(?:Once|Passive|Capture)$/,Ft=/^on[a-z]/,Vt={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};Object(a.h)({},qe.props,Vt),Object(a.h)({patchProp:(e,t,n,i,r=!1,o,s,l,u)=>{switch(t){case"class":!function(e,t,n){if(null==t&&(t=""),n)e.setAttribute("class",t);else{const n=e._vtc;n&&(t=(t?[t,...n]:[...n]).join(" ")),e.className=t}}(e,i,r);break;case"style":!function(e,t,n){const i=e.style;if(n)if(Object(a.B)(n)){if(t!==n){const t=i.display;i.cssText=n,"_vod"in e&&(i.display=t)}}else{for(const e in n)At(i,e,n[e]);if(t&&!Object(a.B)(t))for(const e in t)null==n[e]&&At(i,e,"")}else e.removeAttribute("style")}(e,n,i);break;default:Object(a.v)(t)?Object(a.t)(t)||Lt(e,t,0,i,s):(c=e,d=t,h=i,(r?"innerHTML"===d||d in c&&Ft.test(d)&&Object(a.o)(h):!("spellcheck"===d||"draggable"===d||"form"===d||"list"===d&&"INPUT"===c.tagName||"type"===d&&"TEXTAREA"===c.tagName||Ft.test(d)&&Object(a.B)(h))&&d in c)?function(e,t,n,a,i,r,o){if("innerHTML"===t||"textContent"===t)return a&&o(a,i,r),void(e[t]=null==n?"":n);if("value"!==t||"PROGRESS"===e.tagName){if(""===n||null==n){const a=typeof e[t];if(""===n&&"boolean"===a)return void(e[t]=!0);if(null==n&&"string"===a)return e[t]="",void e.removeAttribute(t);if("number"===a)return e[t]=0,void e.removeAttribute(t)}try{e[t]=n}catch(s){}}else{e._value=n;const t=null==n?"":n;e.value!==t&&(e.value=t)}}(e,t,i,o,s,l,u):("true-value"===t?e._trueValue=i:"false-value"===t&&(e._falseValue=i),function(e,t,n,i){if(i&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(xt,t.slice(6,t.length)):e.setAttributeNS(xt,t,n);else{const i=Object(a.A)(t);null==n||i&&!1===n?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}(e,t,i,r)))}var c,d,h},forcePatchProp:(e,t)=>"value"===t},St);var Xt={baidu:"http://cang.baidu.com/do/add?iu=@u&it=@t",buffer:"https://bufferapp.com/add?text=@t&url=@u",email:"mailto:?subject=@t&body=@u%0D%0A@d",evernote:"https://www.evernote.com/clip.action?url=@u&title=@t",facebook:"https://www.facebook.com/sharer/sharer.php?u=@u&title=@t&description=@d&quote=@q&hashtag=@h",flipboard:"https://share.flipboard.com/bookmarklet/popout?v=2&url=@u&title=@t",hackernews:"https://news.ycombinator.com/submitlink?u=@u&t=@t",instapaper:"http://www.instapaper.com/edit?url=@u&title=@t&description=@d",line:"http://line.me/R/msg/text/?@t%0D%0A@u%0D%0A@d",linkedin:"https://www.linkedin.com/shareArticle?url=@u",messenger:"fb-messenger://share/?link=@u",odnoklassniki:"https://connect.ok.ru/dk?st.cmd=WidgetSharePreview&st.shareUrl=@u&st.comments=@t",pinterest:"https://pinterest.com/pin/create/button/?url=@u&media=@m&description=@t",pocket:"https://getpocket.com/save?url=@u&title=@t",quora:"https://www.quora.com/share?url=@u&title=@t",reddit:"https://www.reddit.com/submit?url=@u&title=@t",skype:"https://web.skype.com/share?url=@t%0D%0A@u%0D%0A@d",sms:"sms:?body=@t%0D%0A@u%0D%0A@d",stumbleupon:"https://www.stumbleupon.com/submit?url=@u&title=@t",telegram:"https://t.me/share/url?url=@u&text=@t%0D%0A@d",tumblr:"https://www.tumblr.com/share/link?url=@u&name=@t&description=@d",twitter:"https://twitter.com/intent/tweet?text=@t&url=@u&hashtags=@h@tu",viber:"viber://forward?text=@t%0D%0A@u%0D%0A@d",vk:"https://vk.com/share.php?url=@u&title=@t&description=@d&image=@m&noparse=true",weibo:"http://service.weibo.com/share/share.php?url=@u&title=@t&pic=@m",whatsapp:"https://api.whatsapp.com/se
5091nd?text=@t%0D%0A@u%0D%0A@d",wordpress:"https://wordpress.com/press-this.php?u=@u&t=@t&s=@d&i=@m",xing:"https://www.xing.com/social/share/spi?op=share&url=@u&title=@t",yammer:"https://www.yammer.com/messages/new?login=true&status=@t%0D%0A@u%0D%0A@d"},jt="undefined"!=typeof window?window:null,Ut={name:"ShareNetwork",props:{network:{type:String,required:!0},url:{type:String,required:!0},title:{type:String,required:!0},description:{type:String,default:""},quote:{type:String,default:""},hashtags:{type:String,default:""},twitterUser:{type:String,default:""},media:{type:String,default:""},tag:{type:String,default:"a"},popup:{type:Object,default:function(){return{width:626,height:436}}},options:{type:Object,default:function(){return{networks:null}}}},data:function(){return{popupTop:0,popupLeft:0,popupWindow:void 0,popupInterval:null}},computed:{networks:function(){return Object.assign(Xt,this.options.networks||{})},key:function(){return this.network.toLowerCase()},rawLink:function(){var e=navigator.userAgent.toLowerCase();return"sms"===this.key&&(e.indexOf("iphone")>-1||e.indexOf("ipad")>-1)?this.networks[this.key].replace(":?",":&"):this.networks[this.key]},shareLink:function(){var e=this.rawLink;return"twitter"===this.key&&(this.hashtags.length||(e=e.replace("&hashtags=@h","")),this.twitterUser.length||(e=e.replace("@tu",""))),e.replace(/@tu/g,"&via="+encodeURIComponent(this.twitterUser)).replace(/@u/g,encodeURIComponent(this.url)).replace(/@t/g,encodeURIComponent(this.title)).replace(/@d/g,encodeURIComponent(this.description)).replace(/@q/g,encodeURIComponent(this.quote)).replace(/@h/g,this.encodedHashtags).replace(/@m/g,encodeURIComponent(this.media))},encodedHashtags:function(){return"facebook"===this.key&&this.hashtags.length?"%23"+this.hashtags.split(",")[0]:this.hashtags}},render:function(){var e=this;if(!this.networks.hasOwnProperty(this.key))throw new Error("Network "+this.key+" does not exist");var t={class:"share-network-"+this.key,onclick:function(){return e["http"===e.rawLink.substring(0,4)?"share":"touch"]()}};return"a"===this.tag&&(t.href="javascript:void(0)"),bt(this.tag,t,"function"==typeof this.$slots.default?this.$slots.default():null)},methods:{resizePopup:function(){var e=jt.innerWidth||document.documentElement.clientWidth||jt.screenX,t=jt.innerHeight||document.documentElement.clientHeight||jt.screenY,n=e/jt.screen.availWidth;this.popupLeft=(e-this.popup.width)/2/n+(void 0!==jt.screenLeft?jt.screenLeft:jt.screenX),this.popupTop=(t-this.popup.height)/2/n+(void 0!==jt.screenTop?jt.screenTop:jt.screenY)},share:function(){var e=this;this.resizePopup(),this.popupWindow&&this.popupInterval&&(clearInterval(this.popupInterval),this.popupWindow.close(),this.emit("change")),this.popupWindow=jt.open(this.shareLink,"sharer-"+this.key,",height="+this.popup.height+",width="+this.popup.width+",left="+this.popupLeft+",top="+this.popupTop+",screenX="+this.popupLeft+",screenY="+this.popupTop),this.popupWindow&&(this.popupWindow.focus(),this.popupInterval=setInterval(function(){e.popupWindow&&!e.popupWindow.closed||(clearInterval(e.popupInterval),e.popupWindow=null,e.emit("close"))},500),this.emit("open"))},touch:function(){window.open(this.shareLink,"_blank"),this.emit("open")},emit:function(e){this.$root.$emit("share_network_"+e,this.key,this.url),this.$emit(e,this.key,this.url)}}};t.default={install:function(e,t){e.component(Ut.name,Ut)}}}])),K5.exports);const G5=ER(W5);function q5(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Y5(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$5(Object(n),!0).forEach(function(t){q5(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$5(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var J5=function e(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];if(!a.length)return t;var r=a.shift();if(A(t)&&A(r)){for(var o in r)A(r[o])?(t[o]||Object.assign(t,q5({},o,{})),e(t[o],r[o])):Object.assign(t,q5({},o,r[o]));return e.apply(void 0,[t].concat(a))}},Q5=function(){return"undefined"!=typeof window&&"undefined"!=typeof document};function Z5(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("/"),n=e.split("/");return""===t[0]&&"/"===e[e.length-1]&&t.shift(),n.join("/")+t.join("/")}var e8,t8={},n8=function(){t8=J5({bootstrap:!0,onReady:null,onError:null,onBeforeTrack:null,onAfterTrack:null,pageTrackerTemplate:null,customResourceURL:"https://www.googletagmanager.com/gtag/js",customPreconnectOrigin:"https://www.googletagmanager.com",deferScriptLoad:!1,pageTrackerExcludedRoutes:[],pageTrackerEnabled:!0,enabled:!0,disableScriptLoad:!1,pageTrackerScreenviewEnabled:!1,appName:null,pageTrackerUseFullPath:!1,pageTrackerPrependBase:!0,pageTrackerSkipSamePath:!0,globalDataLayerName:"dataLayer",globalObjectName:"gtag",defaultGroupName:"default",includes:null,config:{id:null,params:{send_page_view:!1}}},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})},a8=function(){return t8},i8=function(){var e,t=a8().globalObjectName;Q5()&&void 0!==window[t]&&(e=window)[t].apply(e,arguments)},r8=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var a=a8(),i=a.config,r=a.includes;i8.apply(void 0,["config",i.id].concat(t)),Array.isArray(r)&&r.forEach(function(e){i8.apply(void 0,["config",e.id].concat(t))})}
5091,o8=function(e,t){Q5()&&(window["ga-disable-".concat(e)]=t)},s8=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=a8(),n=t.config,a=t.includes;o8(n.id,e),Array.isArray(a)&&a.forEach(function(t){return o8(t.id,e)})},l8=function(){s8(!0)},u8=function(){return e8},c8=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=a8(),a=n.includes,i=n.defaultGroupName;null==t.send_to&&Array.isArray(a)&&a.length&&(t.send_to=a.map(function(e){return e.id}).concat(i)),i8("event",e,t)},d8=function(e){if(Q5()){var t;if("string"==typeof e)t={page_path:e};else if(e.path||e.fullPath){var n=a8(),a=n.pageTrackerUseFullPath,i=n.pageTrackerPrependBase,r=u8(),o=r&&r.options.base,s=a?e.fullPath:e.path;t=Y5(Y5({},e.name&&{page_title:e.name}),{},{page_path:i?Z5(s,o):s})}else t=e;null==t.page_location&&(t.page_location=window.location.href),null==t.send_page_view&&(t.send_page_view=!0),c8("page_view",t)}},h8=function(e){var t,n=a8().appName;e&&((t="string"==typeof e?{screen_name:e}:e).app_name=t.app_name||n,c8("screen_view",t))},p8=Object.freeze({__proto__:null,query:i8,config:r8,optOut:l8,optIn:function(){s8(!1)},pageview:d8,screenview:h8,exception:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];c8.apply(void 0,["exception"].concat(t))},linker:function(e){r8("linker",e)},time:function(e){c8("timing_complete",e)},set:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i8.apply(void 0,["set"].concat(t))},refund:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];c8.apply(void 0,["refund"].concat(t))},purchase:function(e){c8("purchase",e)},customMap:function(e){r8({custom_map:e})},event:c8}),f8=function(e){return Y5({send_page_view:!1},e)},m8=function(){var e=a8(),t=e.config,n=e.includes;i8("config",t.id,f8(t.params)),Array.isArray(n)&&n.forEach(function(e){i8("config",e.id,f8(e.params))})},v8=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=a8(),a=n.appName,i=n.pageTrackerTemplate,r=n.pageTrackerScreenviewEnabled;if(!n.pageTrackerSkipSamePath||e.path!==t.path){var o=e;y(i)?o=i(e,t):r&&(o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.app_name,e.screen_name,e}({app_name:a,screen_name:e.name})),r?h8(o):d8(o)}},g8=function(e){var t=a8().pageTrackerExcludedRoutes;return t.includes(e.path)||t.includes(e.name)},y8=function(){var e,t,n,a,i=a8(),r=i.onReady,o=i.onError,s=i.globalObjectName,l=i.globalDataLayerName,u=i.config,c=i.customResourceURL,d=i.customPreconnectOrigin,h=i.deferScriptLoad,p=i.pageTrackerEnabled,f=i.disableScriptLoad,m=Boolean(p&&u8());if(function(){if(Q5()){var e=a8(),t=e.enabled,n=e.globalObjectName,a=e.globalDataLayerName;null==window[n]&&(window[a]=window[a]||[],window[n]=function(){window[a].push(arguments)}),window[n]("js",new Date),t||l8(),window[n]}}(),m?(e=a8(),t=e.onBeforeTrack,n=e.onAfterTrack,(a=u8()).isReady().then(function(){jn().then(function(){var e=a.currentRoute;m8(),g8(e.value)||v8(e.value)}),a.afterEach(function(e,a){jn().then(function(){g8(e)||(y(t)&&t(e,a),v8(e,a),y(n)&&n(e,a))})})})):m8(),!f)return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(n,a){if("undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],r=document.createElement("script");if(r.async=!0,r.src=e,r.defer=t.defer,t.preconnectOrigin){var o=document.createElement("link");o.href=t.preconnectOrigin,o.rel="preconnect",i.appendChild(o)}i.appendChild(r),r.onload=n,r.onerror=a}})}("".concat(c,"?id=").concat(u.id,"&l=").concat(l),{preconnectOrigin:d,defer:h}).then(function(){r&&r(window[s])}).catch(function(e){return o&&o(e),e})},b8="undefined"!=typeof window?window:void 0,_8="undefined"!=typeof globalThis?globalThis:b8,w8=Array.prototype,k8=w8.forEach,C8=w8.indexOf,S8=null==_8?void 0:_8.navigator,T8=null==_8?void 0:_8.document,A8=null==_8?void 0:_8.location,E8=null==_8?void 0:_8.fetch,I8=null!=_8&&_8.XMLHttpRequest&&"withCredentials"in new _8.XMLHttpRequest?_8.XMLHttpRequest:void 0,x8
5091=null==_8?void 0:_8.AbortController,N8=null==S8?void 0:S8.userAgent,P8=null!=b8?b8:{},M8={DEBUG:!1,LIB_VERSION:"1.167.0"},O8=Array.isArray,R8=Object.prototype,D8=R8.hasOwnProperty,L8=R8.toString,B8=O8||function(e){return"[object Array]"===L8.call(e)},F8=function(e){return"function"==typeof e},V8=function(e){return e===Object(e)&&!B8(e)},X8=function(e){if(V8(e)){for(var t in e)if(D8.call(e,t))return!1;return!0}return!1},j8=function(e){return void 0===e},U8=function(e){return"[object String]"==L8.call(e)},H8=function(e){return U8(e)&&0===e.trim().length},z8=function(e){return null===e},K8=function(e){return j8(e)||z8(e)},W8=function(e){return"[object Number]"==L8.call(e)},G8=function(e){return"[object Boolean]"===L8.call(e)},q8="[PostHog.js]",$8={_log:function(e){if(b8&&(M8.DEBUG||P8.POSTHOG_DEBUG)&&!j8(b8.console)&&b8.console){for(var t=("__rrweb_original__"in b8.console[e]?b8.console[e].__rrweb_original__:b8.console[e]),n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];t.apply(void 0,[q8].concat(a))}},info:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];$8._log.apply($8,["log"].concat(t))},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];$8._log.apply($8,["warn"].concat(t))},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];$8._log.apply($8,["error"].concat(t))},critical:function(){for(var e,t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];(e=console).error.apply(e,[q8].concat(n))},uninitializedWarning:function(e){$8.error("You must initialize PostHog before calling ".concat(e))}},Y8=function(e,t,n){if(e.config.disable_external_dependency_loading)return $8.warn("".concat(t," was requested but loading of external scripts is disabled.")),n("Loading of external scripts is disabled");var a=function(){if(!T8)return n("document not found");var e=T8.createElement("script");e.type="text/javascript",e.src=t,e.onload=function(e){return n(void 0,e)},e.onerror=function(e){return n(e)};var a,i=T8.querySelectorAll("body > script");i.length>0?null===(a=i[0].parentNode)||void 0===a||a.insertBefore(e,i[0]):T8.body.appendChild(e)};null!=T8&&T8.body?a():null==T8||T8.addEventListener("DOMContentLoaded",a)};function J8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Q8(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J8(Object(n),!0).forEach(function(t){a7(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J8(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Z8(e){return(Z8="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function e7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t7(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}
5091function n7(e,t,n){return t&&t7(e.prototype,t),n&&t7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function a7(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i7(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!t||r.length!==t);o=!0);}catch(l){s=!0,i=l}finally{try{o||null==n.return||n.return()}finally{if(s)throw i}}return r}}(e,t)||o7(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r7(e){return function(e){if(Array.isArray(e))return s7(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||o7(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o7(e,t){if(e){if("string"==typeof e)return s7(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s7(e,t):void 0}}function s7(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function l7(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=o7(e))||t){n&&(e=n);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw r}}}}P8.__PosthogExtensions__=P8.__PosthogExtensions__||{},P8.__PosthogExtensions__.loadExternalDependency=function(e,t,n){var a="/static/".concat(t,".js")+"?v=".concat(e.version);if("toolbar"===t){var i=3e5,r=Math.floor(Date.now()/i)*i;a="".concat(a,"?&=").concat(r)}var o=e.requestRouter.endpointFor("assets",a);Y8(e,o,n)},P8.__PosthogExtensions__.loadSiteApp=function(e,t,n){var a=e.requestRouter.endpointFor("api",t);Y8(e,a,n)};var u7={},c7=function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};function d7(e,t,n){if(B8(e))if(k8&&e.forEach===k8)e.forEach(t,n);else if("length"in e&&e.length===+e.length)for(var a=0,i=e.length;a<i;a++)if(a in e&&t.call(n,e[a],a)===u7)return}function h7(e,t,n){if(!K8(e)){if(B8(e))return d7(e,t,n);if(function(e){return e instanceof FormData}(e)){var a,i=l7(e.entries());try{for(i.s();!(a=i.n()).done;){var r=a.value;if(t.call(n,r[1],r[0])===u7)return}}catch(s){i.e(s)}finally{i.f()}}else for(var o in e)if(D8.call(e,o)&&t.call(n,e[o],o)===u7)return}}var p7=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return d7(n,function(t){for(var n in t)void 0!==t[n]&&(e[n]=t[n])}),e};function f7(e,t){return-1!==e.indexOf(t)}function m7(e){for(var t=Object.keys(e),n=t.length,a=new Array(n);n--;)a[n]=[t[n],e[t[n]]];return a}var v7=function(e){try{return e()}catch(t){return}},g7=function(e){return function(){try{for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return e.apply(this,n)}catch(i){$8.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),$8.critical(i)}}},y7=function(e){var t={};return h7(e,function(e,n){U8(e)&&e.length>0&&(t[n]=e)}),t},b7=function(e){return e.replace(/^\$/,"")};var _7,w7,k7=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,n,a,i,r){if(t)if(t.addEventListener&&!i)t.addEventListener(n,a,!!r);else{var o="on"+n,s=t[o];t[o]=function(t,n,a){return function(i){if(i=i||e(null==b8?void 0:b8.event)){var r,o=!0;F8(a)&&(r=a(i));var s=n.call(t,i);return!1!==r&&!1!==s||(o=!1),o}}}(t,a,s)}else $8.error("No valid element provided to register_event")}}();function C7(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}(w7=_7||(_7={})).GZipJS="gzip-js",w7.Base64="base64";var S7="$people_distinct_id",T7="__alias",A7="__timers",E7="$autocapture_disabled_server_side",I7="$heatmaps_enabled_server_side",x7="$exception_capture_enabled_server_side",N7="$exception_capture_endpoint_suffix",P7="$web_vitals_enabled_server_side",M7="$web_vitals_allowed_metrics",O7="$session_recording_enabled_server_side",R7="$console_log_recording_enabled_server_side",D7="$session_recording_network_payload_capture",L7="$session_recording_canvas_recording",B7="$replay_sample_rate",F7="$replay_minimum_duration",V7="$sesid",X7="$session_is_sampled",j7="$enabled_feature_flags",U7="$early_access_features",H7="$stored_person_properties",z7="$stored_group_properties",K7="$surveys",W7="$surveys_activated",G7="$flag_call_reported",q7="$user_state",$7="$client_session_props",Y7="$capture_rate_limit",J7="$initial_campaign_params",Q7="$initial_referrer_info",Z7="$initial_person_info",e9="$epp",t9="__POSTHOG_TOOLBAR__",n9=[S7,T7,"__cmpns",A7,O7,I7,V7,j7,q7,U7,z7,H7,K7,G7,$7,Y7,J7,Q7,e9],a9="$active_feature_flags",i9="$override_feature_flags",r9="$feature_flag_payloads",o9=function(e){var t,n={},a=l7(m7(e||{}));try{for(a.s();!(t=a.n()).done;){var i=i7(t.value,2),r=i[0],o=i[1];o&&(n[r]=o)}}catch(s){a.e(s)}finally{a.f()}return n},s9=function(){function e(t){e7(this,e),this.instance=t,this._override_warning=!1,this.featureFlagEventHandlers=[],this.reloadFeatureFlagsQueued=!1,this.reloadFeatureFlagsInAction=!1}return n7(e,[{key:"getFlags",value:function(){return Object.keys(this.getFlagVariants())}},{key:"getFlagVariants",value:function(){var e=this.instance.get_property(j7),t=this.instance.get_property(i9);
5091if(!t)return e||{};for(var n=p7({},e),a=Object.keys(t),i=0;i<a.length;i++)n[a[i]]=t[a[i]];return this._override_warning||($8.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:n}),this._override_warning=!0),n}},{key:"getFlagPayloads",value:function(){return this.instance.get_property(r9)||{}}},{key:"reloadFeatureFlags",value:function(){this.reloadFeatureFlagsQueued||(this.reloadFeatureFlagsQueued=!0,this._startReloadTimer())}},{key:"setAnonymousDistinctId",value:function(e){this.$anon_distinct_id=e}},{key:"setReloadingPaused",value:function(e){this.reloadFeatureFlagsInAction=e}},{key:"resetRequestQueue",value:function(){this.reloadFeatureFlagsQueued=!1}},{key:"_startReloadTimer",value:function(){var e=this;this.reloadFeatureFlagsQueued&&!this.reloadFeatureFlagsInAction&&setTimeout(function(){!e.reloadFeatureFlagsInAction&&e.reloadFeatureFlagsQueued&&(e.reloadFeatureFlagsQueued=!1,e._reloadFeatureFlagsRequest())},5)}},{key:"_reloadFeatureFlagsRequest",value:function(){var e=this;if(!this.instance.config.advanced_disable_feature_flags){this.setReloadingPaused(!0);var t=this.instance.config.token,n=this.instance.get_property(H7),a=this.instance.get_property(z7),i={token:t,distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:n,group_properties:a,disable_flags:this.instance.config.advanced_disable_feature_flags||void 0};this.instance._send_request({method:"POST",url:this.instance.requestRouter.endpointFor("api","/decide/?v=3"),data:i,compression:this.instance.config.disable_compression?void 0:_7.Base64,timeout:this.instance.config.feature_flag_request_timeout_ms,callback:function(t){var n;e.setReloadingPaused(!1);var a=!0;200===t.statusCode&&(e.$anon_distinct_id=void 0,a=!1),e.receivedFeatureFlags(null!==(n=t.json)&&void 0!==n?n:{},a),e._startReloadTimer()}})}}},{key:"getFeatureFlag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0){var n,a=this.getFlagVariants()[e],i="".concat(a),r=this.instance.get_property(G7)||{};return!t.send_event&&"send_event"in t||e in r&&r[e].includes(i)||(B8(r[e])?r[e].push(i):r[e]=[i],null===(n=this.instance.persistence)||void 0===n||n.register(a7({},G7,r)),this.instance.capture("$feature_flag_called",{$feature_flag:e,$feature_flag_response:a})),a}$8.warn('getFeatureFlag for key "'+e+"\" failed. Feature flags didn't load in time.")}},{key:"getFeatureFlagPayload",value:function(e){return this.getFlagPayloads()[e]}},{key:"isFeatureEnabled",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0)return!!this.getFeatureFlag(e,t);$8.warn('isFeatureEnabled for key "'+e+"\" failed. Feature flags didn't load in time.")}},{key:"addFeatureFlagsHandler",value:function(e){this.featureFlagEventHandlers.push(e)}},{key:"removeFeatureFlagsHandler",value:function(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(function(t){return t!==e})}},{key:"receivedFeatureFlags",value:function(e,t){if(this.instance.persistence){this.instance.decideEndpointWasHit=!0;var n=this.getFlagVariants(),a=this.getFlagPayloads();!function(e,t){var n,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=e.featureFlags,o=e.featureFlagPayloads;if(r)if(B8(r)){var s,l={};if(r)for(var u=0;u<r.length;u++)l[r[u]]=!0;t&&t.register((a7(s={},a9,r),a7(s,j7,l),s))}else{var c=r,d=o;e.errorsWhileComputingFlags&&(c=Q8(Q8({},a),c),d=Q8(Q8({},i),d)),t&&t.register((a7(n={},a9,Object.keys(o9(c))),a7(n,j7,c||{}),a7(n,r9,d||{}),n))}}(e,this.instance.persistence,n,a),this._fireFeatureFlagsCallbacks(t)}}},{key:"override",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.instance.__loaded||!this.instance.persistence)return $8.uninitializedWarning("posthog.feature_flags.override");if(this._override_warning=t,!1===e)this.instance.persistence.unregister(i9);else if(B8(e)){for(var n={},a=0;a<e.length;a++)n[e[a]]=!0;this.instance.persistence.register(a7({},i9,n))}else this.instance.persistence.register(a7({},i9,e))}},{key:"onFeatureFlags",value:function(e){var t=this;if(this.addFeatureFlagsHandler(e),this.instance.decideEndpointWasHit){var n=this._prepareFeatureFlagsForCallbacks(),a=n.flags,i=n.flagVariants;e(a,i)}return function(){return t.removeFeatureFlagsHandler(e)}}},{key:"updateEarlyAccessFeatureEnrollment",value:function(e,t){var n,a,i=a7({},"$feature_enrollment/".concat(e),t);this.instance.capture("$feature_enrollment_update",{$feature_flag:e,$feature_enrollment:t,$set:i}),this.setPersonPropertiesForFlags(i,!1);var r=Q8(Q8({},this.getFlagVariants()),{},a7({},e,t));null===(n=this.instance.persistence)||void 0===n||n.register((a7(a={},a9,Object.keys(o9(r))),a7(a,j7,r),a)),this._fireFeatureFlagsCallbacks()}},{key:"getEarlyAccessFeatures",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=this.instance.get_property(U7);if(a&&!n)return e(a);this.instance._send_request({transport:"XHR",url:this.instance.requestRouter.endpointFor("api","/api/early_access_features/?token=".concat(this.instance.config.token)),method:"GET",callback:function(n){var a;if(n.json){var i=n.json.earlyAccessFeatures;return null===(a=t.instance.persistence)||void 0===a||a.register(a7({},U7,i)),e(i)}}})}},{key:"_prepareFeatureFlagsForCallbacks",value:function(){var e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter(function(e){return t[e]}),flagVariants:Object.keys(t).filter(function(e){return t[e]}).reduce(function(e,n){return e[n]=t[n],e},{})}}},{key:"_fireFeatureFlagsCallbacks",value:function(e){var t=this._prepareFeatureFlagsForCallbacks(),n=t.flags,a=t.flagVariants;
5091this.featureFlagEventHandlers.forEach(function(t){return t(n,a,{errorsLoading:e})})}},{key:"setPersonPropertiesForFlags",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.instance.get_property(H7)||{};this.instance.register(a7({},H7,Q8(Q8({},n),e))),t&&this.instance.reloadFeatureFlags()}},{key:"resetPersonPropertiesForFlags",value:function(){this.instance.unregister(H7)}},{key:"setGroupPropertiesForFlags",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.instance.get_property(z7)||{};0!==Object.keys(n).length&&Object.keys(n).forEach(function(t){n[t]=Q8(Q8({},n[t]),e[t]),delete e[t]}),this.instance.register(a7({},z7,Q8(Q8({},n),e))),t&&this.instance.reloadFeatureFlags()}},{key:"resetGroupPropertiesForFlags",value:function(e){if(e){var t=this.instance.get_property(z7)||{};this.instance.register(a7({},z7,Q8(Q8({},t),{},a7({},e,{}))))}else this.instance.unregister(z7)}}]),e}();Math.trunc||(Math.trunc=function(e){return e<0?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return W8(e)&&isFinite(e)&&Math.floor(e)===e});var l9="0123456789abcdef",u9=function(){function e(t){if(e7(this,e),this.bytes=t,16!==t.length)throw new TypeError("not 128-bit length")}return n7(e,[{key:"toString",value:function(){for(var e="",t=0;t<this.bytes.length;t++)e=e+l9.charAt(this.bytes[t]>>>4)+l9.charAt(15&this.bytes[t]),3!==t&&5!==t&&7!==t&&9!==t||(e+="-");if(36!==e.length)throw new Error("Invalid UUIDv7 was generated");return e}},{key:"clone",value:function(){return new e(this.bytes.slice(0))}},{key:"equals",value:function(e){return 0===this.compareTo(e)}},{key:"compareTo",value:function(e){for(var t=0;t<16;t++){var n=this.bytes[t]-e.bytes[t];if(0!==n)return Math.sign(n)}return 0}}],[{key:"fromFieldsV7",value:function(t,n,a,i){if(!Number.isInteger(t)||!Number.isInteger(n)||!Number.isInteger(a)||!Number.isInteger(i)||t<0||n<0||a<0||i<0||t>0xffffffffffff||n>4095||a>1073741823||i>4294967295)throw new RangeError("invalid field value");var r=new Uint8Array(16);return r[0]=t/Math.pow(2,40),r[1]=t/Math.pow(2,32),r[2]=t/Math.pow(2,24),r[3]=t/Math.pow(2,16),r[4]=t/Math.pow(2,8),r[5]=t,r[6]=112|n>>>8,r[7]=n,r[8]=128|a>>>24,r[9]=a>>>16,r[10]=a>>>8,r[11]=a,r[12]=i>>>24,r[13]=i>>>16,r[14]=i>>>8,r[15]=i,new e(r)}}]),e}(),c9=function(){function e(){e7(this,e),a7(this,"timestamp",0),a7(this,"counter",0),a7(this,"random",new p9)}return n7(e,[{key:"generate",value:function(){var e=this.generateOrAbort();if(j8(e)){this.timestamp=0;var t=this.generateOrAbort();if(j8(t))throw new Error("Could not generate UUID after timestamp reset");return t}return e}},{key:"generateOrAbort",value:function(){var e=Date.now();if(e>this.timestamp)this.timestamp=e,this.resetCounter();else{if(!(e+1e4>this.timestamp))return;this.counter++,this.counter>4398046511103&&(this.timestamp++,this.resetCounter())}return u9.fromFieldsV7(this.timestamp,Math.trunc(this.counter/Math.pow(2,30)),this.counter&Math.pow(2,30)-1,this.random.nextUint32())}},{key:"resetCounter",value:function(){this.counter=1024*this.random.nextUint32()+(1023&this.random.nextUint32())}}]),e}(),d9=function(e){if("undefined"!=typeof UUIDV7_DENY_WEAK_RNG&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;t<e.length;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};b8&&!j8(b8.crypto)&&crypto.getRandomValues&&(d9=function(e){return crypto.getRandomValues(e)});var h9,p9=function(){function e(){e7(this,e),a7(this,"buffer",new Uint32Array(8)),a7(this,"cursor",1/0)}return n7(e,[{key:"nextUint32",value:function(){return this.cursor>=this.buffer.length&&(d9(this.buffer),this.cursor=0),this.buffer[this.cursor++]}}]),e}(),f9=function(){return m9().toString()},m9=function(){return(h9||(h9=new c9)).generate()},v9="",g9=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i;var y9,b9={is_supported:function(){return!!T8},error:function(e){$8.error("cookieStore error: "+e)},get:function(e){if(T8){try{for(var t=e+"=",n=T8.cookie.split(";").filter(function(e){return e.length}),a=0;a<n.length;a++){for(var i=n[a];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}}catch(r){}return null}},parse:function(e){var t;try{t=JSON.parse(b9.get(e))||{}}catch(n){}return t},set:function(e,t,n,a,i){if(T8)try{var r="",o="",s=function(e,t){if(t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T8;if(v9)return v9;if(!t)return"";if(["localhost","127.0.0.1"].includes(e))return"";for(var n=e.split("."),a=Math.min(n.length,8),i="dmn_chk_"+f9(),r=new RegExp("(^|;)\\s*"+i+"=1");!v9&&a--;){var o=n.slice(a).join("."),s=i+"=1;domain=."+o;t.cookie=s,r.test(t.cookie)&&(t.cookie=s+";expires=Thu, 01 Jan 1970 00:00:00 GMT",v9=o)}return v9}(e);if(!n){var a=(i=e.match(g9))?i[0]:"";a!==n&&$8.info("Warning: cookie subdomain discovery mismatch",a,n),n=a}return n?"; domain=."+n:""}var i;return""}(T8.location.hostname,a);if(n){var l=new Date;l.setTime(l.getTime()+24*n*60*60*1e3),r="; expires="+l.toUTCString()}i&&(o="; secure");var u=e+"="+encodeURIComponent(JSON.stringify(t))+r+"; SameSite=Lax; path=/"+s+o;return u.length>3686.4&&$8.warn("cookieStore warning: large cookie, len="+u.length),T8.cookie=u,u}catch(c){return}},remove:function(e,t){try{b9.set(e,"",-1,t)}catch(n){return}}},_9=null,w9={is_supported:function(){if(!z8(_9))return _9;var e=!0;if(j8(b8))e=!1;
5091else try{var t="__mplssupport__";w9.set(t,"xyz"),'"xyz"'!==w9.get(t)&&(e=!1),w9.remove(t)}catch(w7){e=!1}return e||$8.error("localStorage unsupported; falling back to cookie store"),_9=e,e},error:function(e){$8.error("localStorage error: "+e)},get:function(e){try{return null==b8?void 0:b8.localStorage.getItem(e)}catch(w7){w9.error(w7)}return null},parse:function(e){try{return JSON.parse(w9.get(e))||{}}catch(t){}return null},set:function(e,t){try{null==b8||b8.localStorage.setItem(e,JSON.stringify(t))}catch(w7){w9.error(w7)}},remove:function(e){try{null==b8||b8.localStorage.removeItem(e)}catch(w7){w9.error(w7)}}},k9=["distinct_id",V7,X7,e9],C9=Q8(Q8({},w9),{},{parse:function(e){try{var t={};try{t=b9.parse(e)||{}}catch(a){}var n=p7(t,JSON.parse(w9.get(e)||"{}"));return w9.set(e,n),n}catch(a){}return null},set:function(e,t,n,a,i,r){try{w9.set(e,t,void 0,void 0,r);var o={};k9.forEach(function(e){t[e]&&(o[e]=t[e])}),Object.keys(o).length&&b9.set(e,o,n,a,i,r)}catch(s){w9.error(s)}},remove:function(e,t){try{null==b8||b8.localStorage.removeItem(e),b9.remove(e,t)}catch(w7){w9.error(w7)}}}),S9={},T9={is_supported:function(){return!0},error:function(e){$8.error("memoryStorage error: "+e)},get:function(e){return S9[e]||null},parse:function(e){return S9[e]||null},set:function(e,t){S9[e]=t},remove:function(e){delete S9[e]}},A9=null,E9={is_supported:function(){if(!z8(A9))return A9;if(A9=!0,j8(b8))A9=!1;else try{var e="__support__";E9.set(e,"xyz"),'"xyz"'!==E9.get(e)&&(A9=!1),E9.remove(e)}catch(w7){A9=!1}return A9},error:function(e){$8.error("sessionStorage error: ",e)},get:function(e){try{return null==b8?void 0:b8.sessionStorage.getItem(e)}catch(w7){E9.error(w7)}return null},parse:function(e){try{return JSON.parse(E9.get(e))||null}catch(t){}return null},set:function(e,t){try{null==b8||b8.sessionStorage.setItem(e,JSON.stringify(t))}catch(w7){E9.error(w7)}},remove:function(e){try{null==b8||b8.sessionStorage.removeItem(e)}catch(w7){E9.error(w7)}}},I9=["localhost","127.0.0.1"],x9=function(e){var t=null==T8?void 0:T8.createElement("a");return j8(t)?null:(t.href=e,t)},N9=function(e,t){return!!function(e){try{new RegExp(e)}catch(t){return!1}return!0}(t)&&new RegExp(t).test(e)},P9=function(e,t){for(var n,a=((e.split("#")[0]||"").split("?")[1]||"").split("&"),i=0;i<a.length;i++){var r=a[i].split("=");if(r[0]===t){n=r;break}}if(!B8(n)||n.length<2)return"";var o=n[1];try{o=decodeURIComponent(o)}catch(s){$8.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},M9=function(e,t){var n=e.match(new RegExp(t+"=([^&]*)"));return n?n[1]:null},O9="Mobile",R9="iOS",D9="Android",L9="Tablet",B9=D9+" "+L9,F9="iPad",V9="Apple",X9=V9+" Watch",j9="Safari",U9="BlackBerry",H9="Samsung",z9=H9+"Browser",K9=H9+" Internet",W9="Chrome",G9=W9+" OS",q9=W9+" "+R9,$9="Internet Explorer",Y9=$9+" "+O9,J9="Opera",Q9=J9+" Mini",Z9="Edge",eee="Microsoft "+Z9,tee="Firefox",nee=tee+" "+R9,aee="Nintendo",iee="PlayStation",ree="Xbox",oee=D9+" "+O9,see=O9+" "+j9,lee="Windows",uee=lee+" Phone",cee="Nokia",dee="Ouya",hee="Generic",pee=hee+" "+O9.toLowerCase(),fee=hee+" "+L9.toLowerCase(),mee="Konqueror",vee="(\\d+(\\.\\d+)?)",gee=new RegExp("Version/"+vee),yee=new RegExp(ree,"i"),bee=new RegExp(iee+" \\w+","i"),_ee=new RegExp(aee+" \\w+","i"),wee=new RegExp(U9+"|PlayBook|BB10","i"),kee={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},Cee=function(e,t){return t=t||"",f7(e," OPR/")&&f7(e,"Mini")?Q9:f7(e," OPR/")?J9:wee.test(e)?U9:f7(e,"IE"+O9)||f7(e,"WPDesktop")?Y9:f7(e,z9)?K9:f7(e,Z9)||f7(e,"Edg/")?eee:f7(e,"FBIOS")?"Facebook "+O9:f7(e,"UCWEB")||f7(e,"UCBrowser")?"UC Browser":f7(e,"CriOS")?q9:f7(e,"CrMo")?W9:f7(e,D9)&&f7(e,j9)?oee:f7(e,W9)?W9:f7(e,"FxiOS")?nee:f7(e.toLowerCase(),mee.toLowerCase())?mee:function(e,t){return t&&f7(t,V9)||f7(n=e,j9)&&!f7(n,W9)&&!f7(n,D9);var n}(e,t)?f7(e,O9)?see:j9:f7(e,tee)?tee:f7(e,"MSIE")||f7(e,"Trident/")?$9:f7(e,"Gecko")?tee:""},See=(a7(y9={},Y9,[new RegExp("rv:"+vee)]),a7(y9,eee,[new RegExp(Z9+"?\\/"+vee)]),a7(y9,W9,[new RegExp("("+W9+"|CrMo)\\/"+vee)]),a7(y9,q9,[new RegExp("CriOS\\/"+vee)]),a7(y9,"UC Browser",[new RegExp("(UCBrowser|UCWEB)\\/"+vee)]),a7(y9,j9,[gee]),a7(y9,see,[gee]),a7(y9,J9,[new RegExp("(Opera|OPR)\\/"+vee)]),a7(y9,tee,[new RegExp(tee+"\\/"+vee)]),a7(y9,nee,[new RegExp("FxiOS\\/"+vee)]),a7(y9,mee,[new RegExp("Konqueror[:/]?"+vee,"i")]),a7(y9,U9,[new RegExp(U9+" "+vee),gee]),a7(y9,oee,[new RegExp("android\\s"+vee,"i")]),a7(y9,K9,[new RegExp(z9+"\\/"+vee)]),a7(y9,$9,[new RegExp("(rv:|MSIE )"+vee)]),a7(y9,"Mozilla",[new RegExp("rv:"+vee)]),y9),Tee=[[new RegExp(ree+"; "+ree+" (.*?)[);]","i"),function(e){return[ree,e&&e[1]||""]}],[new RegExp(aee,"i"),[aee,""]],[new RegExp(iee,"i"),[iee,""]],[wee,[U9,""]],[new RegExp(lee,"i"),function(e,t){if(/Phone/.test(t)||/WPDesktop/.test(t))return[uee,""];if(new RegExp(O9).test(t)&&!/IEMobile\b/.test(t))return[lee+" "+O9,""];var n=/Windows NT ([0-9.]+)/i.exec(t);if(n&&n[1]){var a=n[1],i=kee[a]||"";return/arm/i.test(t)&&(i="RT"),[lee,i]}return[lee,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,function(e){if(e&&e[3]){var t=[e[3],e[4],e[5]||"0"];return[R9,t.join(".")]}return[R9,""]}],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,function(e){var t="";return e&&e.length>=3&&(t=j8(e[2])?e[3]:e[2]),["watchOS",t]}],[new RegExp("("+D9+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+D9+")","i"),function(e){if(e&&e[2]){var t=[e[2],e[3],e[4]||"0"];return[D9,t.join(".")]}return[D9,""]}],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,function(e){var t=["Mac OS X",""];if(e&&e[1]){var n=[e[1],e[2],e[3]||"0"];t[1]=n.join(".")}return t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[G9,""]],[/Linux|debian/i,["Linux",""]]],Aee=function(e){return _ee.test(e)?aee:bee.test(e)?iee:yee.test(e)?ree:new RegExp(dee,"i").test(e)?dee:new RegExp("("+uee+"|WPDesktop)","i").test(e)?uee:/iPad/.test(e)?F9:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?X9:wee.test(e)?U9:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":new RegExp(cee,"i").test(e)?cee:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?"Kindle Fire":/(Android|ZTE)/i.test(e)?!new RegExp(O9).test(e)||/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)?/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?D9:B9:D9:new RegExp("(pda|"+O9+")","i").test(e)?pee:new RegExp(L9,"i").test(e)&&!new RegExp(L9+" pc","i").test(e)?fee:""},Eee="https?://(.*)",Iee=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gclid","gad_source","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","mc_cid","igshid","ttclid","rdt_cid"],xee={campaignParams:function(e){return T8?this._campaignParamsFromUrl(T8.URL,e):{}},_campaignParamsFromUrl:function(e,t){var n=Iee.concat(t||[]),a={};return h7(n,function(t){var n=P9(e,t);n&&(a[t]=n)}),a},_searchEngine:function(e){return e?0===e.search(Eee+"google.([^/?]*)")?"google":0===e.search(Eee+"bing.com")?"bing":0===e.search(Eee+"yahoo.com")?"yahoo":0===e.search(Eee+"duckduckgo.com")?"duckduckgo":null:null},_searchInfoFromReferrer:function(e){var t=xee._searchEngine(e),n="yahoo"!=t?"q":"p",a={};if(!z8(t)){a.$search_engine=t;var i=T8?P9(T8.referrer,n):"";i.length&&(a.ph_keyword=i)}return a},searchInfo:function(){var e=null==T8?void 0:T8.referrer;return e?this._searchInfoFromReferrer(e):{}},browser:Cee,browserVersion:function(e,t){var n=Cee(e,t),a=See[n];if(j8(a))return null;for(var i=0;i<a.length;i++){var r=a[i],o=e.match(r);if(o)return parseFloat(o[o.length-2])}return null},browserLanguage:function(){return navigator.language||navigator.userLanguage},os:function(e){for(var t=0;t<Tee.length;t++){var n=i7(Tee[t],2),a=n[0],i=n[1],r=a.exec(e),o=r&&(F8(i)?i(r,e):i);if(o)return o}return["",""]},device:Aee,deviceType:function(e){var t=Aee(e);return t===F9||t===B9||"Kobo"===t||"Kindle Fire"===t||t===fee?L9
5091:t===aee||t===ree||t===iee||t===dee?"Console":t===X9?"Wearable":t?O9:"Desktop"},referrer:function(){return(null==T8?void 0:T8.referrer)||"$direct"},referringDomain:function(){var e;return null!=T8&&T8.referrer&&(null===(e=x9(T8.referrer))||void 0===e?void 0:e.host)||"$direct"},referrerInfo:function(){return{$referrer:this.referrer(),$referring_domain:this.referringDomain()}},initialPersonInfo:function(){return{r:this.referrer(),u:null==A8?void 0:A8.href}},initialPersonPropsFromInfo:function(e){var t,n=e.r,a=e.u,i={$initial_referrer:n,$initial_referring_domain:null==n?void 0:"$direct"==n?"$direct":null===(t=x9(n))||void 0===t?void 0:t.host};if(a){i.$initial_current_url=a;var r=x9(a);i.$initial_host=null==r?void 0:r.host,i.$initial_pathname=null==r?void 0:r.pathname,h7(this._campaignParamsFromUrl(a),function(e,t){i["$initial_"+b7(t)]=e})}return n&&h7(this._searchInfoFromReferrer(n),function(e,t){i["$initial_"+b7(t)]=e}),i},properties:function(){if(!N8)return{};var e=i7(xee.os(N8),2),t=e[0],n=e[1];return p7(y7({$os:t,$os_version:n,$browser:xee.browser(N8,navigator.vendor),$device:xee.device(N8),$device_type:xee.deviceType(N8)}),{$current_url:null==A8?void 0:A8.href,$host:null==A8?void 0:A8.host,$pathname:null==A8?void 0:A8.pathname,$raw_user_agent:N8.length>1e3?N8.substring(0,997)+"...":N8,$browser_version:xee.browserVersion(N8,navigator.vendor),$browser_language:xee.browserLanguage(),$screen_height:null==b8?void 0:b8.screen.height,$screen_width:null==b8?void 0:b8.screen.width,$viewport_height:null==b8?void 0:b8.innerHeight,$viewport_width:null==b8?void 0:b8.innerWidth,$lib:"web",$lib_version:M8.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})},people_properties:function(){if(!N8)return{};var e=i7(xee.os(N8),2),t=e[0],n=e[1];return p7(y7({$os:t,$os_version:n,$browser:xee.browser(N8,navigator.vendor)}),{$browser_version:xee.browserVersion(N8,navigator.vendor)})}},Nee=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"],Pee=function(){function e(t){var n,a;e7(this,e),this.config=t,this.props={},this.campaign_params_saved=!1,this.name=(a="",(n=t).token&&(a=n.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),n.persistence_name?"ph_"+n.persistence_name:"ph_"+a+"_posthog"),this.storage=this.buildStorage(t),this.load(),t.debug&&$8.info("Persistence loaded",t.persistence,Q8({},this.props)),this.update_config(t,t),this.save()}return n7(e,[{key:"buildStorage",value:function(e){-1===Nee.indexOf(e.persistence.toLowerCase())&&($8.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");var t=e.persistence.toLowerCase();return"localstorage"===t&&w9.is_supported()?w9:"localstorage+cookie"===t&&C9.is_supported()?C9:"sessionstorage"===t&&E9.is_supported()?E9:"memory"===t?T9:"cookie"===t?b9:C9.is_supported()?C9:b9}},{key:"properties",value:function(){var e={};return h7(this.props,function(t,n){if(n===j7&&V8(t))for(var a=Object.keys(t),i=0;i<a.length;i++)e["$feature/".concat(a[i])]=t[a[i]];else o=n,s=!1,(z8(r=n9)?s:C8&&r.indexOf===C8?-1!=r.indexOf(o):(h7(r,function(e){if(s||(s=e===o))return u7}),s))||(e[n]=t);var r,o,s}),e}},{key:"load",value:function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=p7({},e))}}},{key:"save",value:function(){this.disabled||this.storage.set(this.name,this.props,this.expire_days,this.cross_subdomain,this.secure,this.config.debug)}},{key:"remove",value:function(){this.storage.remove(this.name,!1),this.storage.remove(this.name,!0)}},{key:"clear",value:function(){this.remove(),this.props={}}},{key:"register_once",value:function(e,t,n){var a=this;if(V8(e)){j8(t)&&(t="None"),this.expire_days=j8(n)?this.default_expiry:n;var i=!1;if(h7(e,function(e,n){a.props.hasOwnProperty(n)&&a.props[n]!==t||(a.props[n]=e,i=!0)}),i)return this.save(),!0}return!1}},{key:"register",value:function(e,t){var n=this;if(V8(e)){this.expire_days=j8(t)?this.default_expiry:t;var a=!1;if(h7(e,function(t,i){e.hasOwnProperty(i)&&n.props[i]!==t&&(n.props[i]=t,a=!0)}),a)return this.save(),!0}return!1}},{key:"unregister",value:function(e){e in this.props&&(delete this.props[e],this.save())}},{key:"update_campaign_params",value:function(){this.campaign_params_saved||(this.register(xee.campaignParams(this.config.custom_campaign_params)),this.campaign_params_saved=!0)}},{key:"update_search_keyword",value:function(){this.register(xee.searchInfo())}},{key:"update_referrer_info",value:function(){this.register_once(xee.referrerInfo(),void 0)}},{key:"set_initial_person_info",value:function(){this.props[J7]||this.props[Q7]||this.register_once(a7({},Z7,xee.initialPersonInfo()),void 0)}},{key:"get_referrer_info",value:function(){return y7({$referrer:this.props.$referrer,$referring_domain:this.props.$referring_domain})}},{key:"get_initial_props",value:function(){var e=this,t={};h7([Q7,J7],function(n){var a=e.props[n];a&&h7(a,function(e,n){t["$initial_"+b7(n)]=e})});var n=this.props[Z7];if(n){var a=xee.initialPersonPropsFromInfo(n);p7(t,a)}return t}},{key:"safe_merge",value:function(e){return h7(this.props,function(t,n){n in e||(e[
5091n]=t)}),e}},{key:"update_config",value:function(e,t){if(this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie),e.persistence!==t.persistence){var n=this.buildStorage(e),a=this.props;this.clear(),this.storage=n,this.props=a,this.save()}}},{key:"set_disabled",value:function(e){this.disabled=e,this.disabled?this.remove():this.save()}},{key:"set_cross_subdomain",value:function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())}},{key:"get_cross_subdomain",value:function(){return!!this.cross_subdomain}},{key:"set_secure",value:function(e){e!==this.secure&&(this.secure=e,this.remove(),this.save())}},{key:"set_event_timer",value:function(e,t){var n=this.props[A7]||{};n[e]=t,this.props[A7]=n,this.save()}},{key:"remove_event_timer",value:function(e){var t=(this.props[A7]||{})[e];return j8(t)||(delete this.props[A7][e],this.save()),t}},{key:"get_property",value:function(e){return this.props[e]}},{key:"set_property",value:function(e,t){this.props[e]=t,this.save()}}]),e}();function Mee(e){var t,n;return(null===(t=JSON.stringify(e,(n=[],function(e,t){if(V8(t)){for(;n.length>0&&n.at(-1)!==this;)n.pop();return n.includes(t)?"[Circular]":(n.push(t),t)}return t})))||void 0===t?void 0:t.length)||0}function Oee(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6606028.8;if(e.size>=t&&e.data.length>1){var n=Math.floor(e.data.length/2),a=e.data.slice(0,n),i=e.data.slice(n);return[Oee({size:Mee(a),data:a,sessionId:e.sessionId,windowId:e.windowId}),Oee({size:Mee(i),data:i,sessionId:e.sessionId,windowId:e.windowId})].flatMap(function(e){return e})}return[e]}var Ree=function(e){return e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e}(Ree||{}),Dee=function(e){return e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e}(Dee||{});function Lee(e){return e?c7(e).split(/\s+/):[]}function Bee(e){var t=null==b8?void 0:b8.location.href;return!!(t&&e&&e.some(function(e){return t.match(e)}))}function Fee(e){var t="";switch(Z8(e.className)){case"string":t=e.className;break;case"object":t=(e.className&&"baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";break;default:t=""}return Lee(t)}function Vee(e){return K8(e)?null:c7(e).split(/(\s+)/).filter(function(e){return nte(e)}).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function Xee(e){var t="";return qee(e)&&!$ee(e)&&e.childNodes&&e.childNodes.length&&h7(e.childNodes,function(e){var n;zee(e)&&e.textContent&&(t+=null!==(n=Vee(e.textContent))&&void 0!==n?n:"")}),c7(t)}function jee(e){return j8(e.target)?e.srcElement||null:null!==(t=e.target)&&void 0!==t&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t}function Uee(e){return!!e&&1===e.nodeType}function Hee(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function zee(e){return!!e&&3===e.nodeType}function Kee(e){return!!e&&11===e.nodeType}var Wee=["a","button","form","input","select","textarea","label"];function Gee(e){var t=e.parentNode;return!(!t||!Uee(t))&&t}function qee(e){for(var t=e;t.parentNode&&!Hee(t,"body");t=t.parentNode){var n=Fee(t);if(f7(n,"ph-sensitive")||f7(n,"ph-no-capture"))return!1}if(f7(Fee(e),"ph-include"))return!0;var a=e.type||"";if(U8(a))switch(a.toLowerCase()){case"hidden":case"password":return!1}var i=e.name||e.id||"";return!U8(i)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(i.replace(/[^a-zA-Z0-9]/g,""))}function $ee(e){return!!(Hee(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||Hee(e,"select")||Hee(e,"textarea")||"true"===e.getAttribute("contenteditable"))}var Yee="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11}
5091)|((?:2131|1800|35[0-9]{3})[0-9]{11})",Jee=new RegExp("^(?:".concat(Yee,")$")),Qee=new RegExp(Yee),Zee="\\d{3}-?\\d{2}-?\\d{4}",ete=new RegExp("^(".concat(Zee,")$")),tte=new RegExp("(".concat(Zee,")"));function nte(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(K8(e))return!1;if(U8(e)){if(e=c7(e),(t?Jee:Qee).test((e||"").replace(/[- ]/g,"")))return!1;if((t?ete:tte).test(e))return!1}return!0}function ate(e){var t=Xee(e);return nte(t="".concat(t," ").concat(ite(e)).trim())?t:""}function ite(e){var t="";return e&&e.childNodes&&e.childNodes.length&&h7(e.childNodes,function(e){var n;if(e&&"span"===(null===(n=e.tagName)||void 0===n?void 0:n.toLowerCase()))try{var a=Xee(e);t="".concat(t," ").concat(a).trim(),e.childNodes&&e.childNodes.length&&(t="".concat(t," ").concat(ite(e)).trim())}catch(i){$8.error(i)}}),t}function rte(e){return function(e){return e.map(function(e){var t,n,a="";if(e.tag_name&&(a+=e.tag_name),e.attr_class){e.attr_class.sort();var i,r=l7(e.attr_class);try{for(r.s();!(i=r.n()).done;){var o=i.value;a+=".".concat(o.replace(/"/g,""))}}catch(u){r.e(u)}finally{r.f()}}var s=Q8(Q8(Q8(Q8({},e.text?{text:e.text}:{}),{},{"nth-child":null!==(t=e.nth_child)&&void 0!==t?t:0,"nth-of-type":null!==(n=e.nth_of_type)&&void 0!==n?n:0},e.href?{href:e.href}:{}),e.attr_id?{attr_id:e.attr_id}:{}),e.attributes),l={};return m7(s).sort(function(e,t){var n=i7(e,1)[0],a=i7(t,1)[0];return n.localeCompare(a)}).forEach(function(e){var t=i7(e,2),n=t[0],a=t[1];return l[ote(n.toString())]=ote(a.toString())}),(a+=":")+m7(s).map(function(e){var t=i7(e,2),n=t[0],a=t[1];return"".concat(n,'="').concat(a,'"')}).join("")}).join(";")}(e.map(function(e){var t,n,a={text:null===(t=e.$el_text)||void 0===t?void 0:t.slice(0,400),tag_name:e.tag_name,href:null===(n=e.attr__href)||void 0===n?void 0:n.slice(0,2048),attr_class:ste(e),attr_id:e.attr__id,nth_child:e.nth_child,nth_of_type:e.nth_of_type,attributes:{}};return m7(e).filter(function(e){return 0===i7(e,1)[0].indexOf("attr__")}).forEach(function(e){var t=i7(e,2),n=t[0],i=t[1];return a.attributes[n]=i}),a}))}function ote(e){return e.replace(/"|\\"/g,'\\"')}function ste(e){var t=e.attr__class;return t?B8(t)?t:Lee(t):void 0}var lte="[SessionRecording]",ute="redacted",cte={initiatorTypes:["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],maskRequestFn:function(e){return e},recordHeaders:!1,recordBody:!1,recordInitialRequests:!1,recordPerformance:!1,performanceEntryTypeToObserve:["first-input","navigation","paint","resource"],payloadSizeLimitBytes:1e6,payloadHostDenyList:[".lr-ingest.io",".ingest.sentry.io"]},dte=["authorization","x-forwarded-for","authorization","cookie","set-cookie","x-api-key","x-real-ip","remote-addr","forwarded","proxy-authorization","x-csrf-token","x-csrftoken","x-xsrf-token"],hte=["password","secret","passwd","api_key","apikey","auth","credentials","mysql_pwd","privatekey","private_key","token"],pte=["/s/","/e/","/i/"];function fte(e,t,n,a){if(K8(e))return e;var i=(null==t?void 0:t["content-length"])||new Blob([e]).size;return U8(i)&&(i=parseInt(i)),i>n?lte+" ".concat(a," body too large to record (").concat(i," bytes)"):e}function mte(e,t){if(K8(e))return e;var n=e;return nte(n,!1)||(n=lte+" "+t+" body "+ute),h7(hte,function(e){var a,i;null!==(a=n)&&void 0!==a&&a.length&&-1!==(null===(i=n)||void 0===i?void 0:i.indexOf(e))&&(n=lte+" "+t+" body "+ute+" as might contain: "+e)}),n}var vte=n7(function e(t){var n,a,i=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e7(this,e),a7(this,"bucketSize",100),a7(this,"refillRate",10),a7(this,"mutationBuckets",{}),a7(this,"loggedTracker",{}),a7(this,"refillBuckets",function(){Object.keys(i.mutationBuckets).forEach(function(e){i.mutationBuckets[e]=i.mutationBuckets[e]+i.refillRate,i.mutationBuckets[e]>=i.bucketSize&&delete i.mutationBuckets[e]})}),a7(this,"getNodeOrRelevantParent",function(e){var t=i.rrweb.mirror.getNode(e);if("svg"!==(null==t?void 0:t.nodeName)&&t instanceof Element){var n=t.closest("svg");if(n)return[i.rrweb.mirror.getId(n),n]}return[e,t]}),a7(this,"numberOfChanges",function(e){var t,n,a,i,r,o,s,l;return(null!==(t=null===(n=e.removes)||void 0===n?void 0:n.length)&&void 0!==t?t:0)+(null!==(a=null===(i=e.attributes)||void 0===i?void 0:i.length)&&void 0!==a?a:0)+(null!==(r=null===(o=e.texts)||void 0===o?void 0:o.length)&&void 0!==r?r:0)+(null!==(s=null===(l=e.adds)||void 0===l?void 0:l.length)&&void 0!==s?s:0)}),a7(this,"throttleMutations",function(e){if(3!==e.type||0!==e.data.source)return e;var t=e.data,n=i.numberOfChanges(t);t.attributes&&(t.attributes=t.attributes.filter(function(e){var t,n,a,r=i7(i.getNodeOrRelevantParent(e.id),2),o=r[0],s=r[1];return 0!==i.mutationBuckets[o]&&(i.mutationBuckets[o]=null!==(t=i.mutationBuckets[o])&&void 0!==t?t:i.bucketSize,i.mutationBuckets[o]=Math.max(i.mutationBuckets[o]-1,0),0===i.mutationBuckets[o]&&(i.loggedTracker[o]||(i.loggedTracker[o]=!0,null===(n=(a=i.options).onBlockedNode)||void 0===n||n.call(a,o,s))),e)}));var a=i.numberOfChanges(t);return 0!==a||n===a?e:void 0}),this.rrweb=t,this.options=r,this.refillRate=null!==(n=this.options.refillRate)&&void 0!==n?n:this.refillRate,this.bucketSize=null!==(a=this.options.bucketSize)&&void 0!==a?a:this.bucketSize,setInterval(function(){i.refillBuckets()},1e3)}),gte=Uint8Array,yte=Uint16Array,bte=Uint32Array,_te=new gte([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),wte=new gte([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),kte=new gte([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Cte=function(e,t){for(var n=new yte(31),a=0;a<31;++a)n[a]=t+=1<<e[a-1];var i=new bte(n[30]);for(a=1;a<30;++a)for(var r=n[a];r<n[a+1];++r)i[r]=r-n[a]<<5|a;return[n,i]},Ste=Cte(_te,2),Tte=Ste[0],Ate=Ste[1];Tte[28]=258,Ate[258]=28;for(var Ete=Cte(wte,0)[1],Ite=new yte(32768),xte=0;xte<32768;++xte){var Nte=(43690&xte)>>>1|(21845&xte)<<1;Nte=(61680&(Nte=(52428&Nte)>>>2|(13107&Nte)<<2))>>>4|(3855&Nte)<<4,Ite[xte]=((65280&Nte)>>>8|(255&Nte)<<8)>>>1}var Pte=function(e,t,n){for(var a=e.length,i=0,r=new yte(t);i<a;++i)++r[e[i]-1];var o,s=new yte(t);for(i=0;i<t;++i)s[i]=s[i-1]+r[i-1]<<1;
vendor: 6,170 bytes, line 5091
5091for(o=new yte(a),i=0;i<a;++i)o[i]=Ite[s[e[i]-1]++]>>>15-e[i];return o},Mte=new gte(288);for(xte=0;xte<144;++xte)Mte[xte]=8;for(xte=144;xte<256;++xte)Mte[xte]=9;for(xte=256;xte<280;++xte)Mte[xte]=7;for(xte=280;xte<288;++xte)Mte[xte]=8;var Ote=new gte(32);for(xte=0;xte<32;++xte)Ote[xte]=5;var Rte=Pte(Mte,9),Dte=Pte(Ote,5),Lte=function(e){return(e/8|0)+(7&e&&1)},Bte=function(e,t,n){(null==n||n>e.length)&&(n=e.length);var a=new(e instanceof yte?yte:e instanceof bte?bte:gte)(n-t);return a.set(e.subarray(t,n)),a},Fte=function(e,t,n){n<<=7&t;var a=t/8|0;e[a]|=n,e[a+1]|=n>>>8},Vte=function(e,t,n){n<<=7&t;var a=t/8|0;e[a]|=n,e[a+1]|=n>>>8,e[a+2]|=n>>>16},Xte=function(e,t){for(var n=[],a=0;a<e.length;++a)e[a]&&n.push({s:a,f:e[a]});var i=n.length,r=n.slice();if(!i)return[new gte(0),0];if(1==i){var o=new gte(n[0].s+1);return o[n[0].s]=1,[o,1]}n.sort(function(e,t){return e.f-t.f}),n.push({s:-1,f:25001});var s=n[0],l=n[1],u=0,c=1,d=2;for(n[0]={s:-1,f:s.f+l.f,l:s,r:l};c!=i-1;)s=n[n[u].f<n[d].f?u++:d++],l=n[u!=c&&n[u].f<n[d].f?u++:d++],n[c++]={s:-1,f:s.f+l.f,l:s,r:l};var h=r[0].s;for(a=1;a<i;++a)r[a].s>h&&(h=r[a].s);var p=new yte(h+1),f=jte(n[c-1],p,0);if(f>t){a=0;var m=0,v=f-t,g=1<<v;for(r.sort(function(e,t){return p[t.s]-p[e.s]||e.f-t.f});a<i;++a){var y=r[a].s;if(!(p[y]>t))break;m+=g-(1<<f-p[y]),p[y]=t}for(m>>>=v;m>0;){var b=r[a].s;p[b]<t?m-=1<<t-p[b]++-1:++a}for(;a>=0&&m;--a){var _=r[a].s;p[_]==t&&(--p[_],++m)}f=t}return[new gte(p),f]},jte=function e(t,n,a){return-1==t.s?Math.max(e(t.l,n,a+1),e(t.r,n,a+1)):n[t.s]=a},Ute=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new yte(++t),a=0,i=e[0],r=1,o=function(e){n[a++]=e},s=1;s<=t;++s)if(e[s]==i&&s!=t)++r;else{if(!i&&r>2){for(;r>138;r-=138)o(32754);r>2&&(o(r>10?r-11<<5|28690:r-3<<5|12305),r=0)}else if(r>3){for(o(i),--r;r>6;r-=6)o(8304);r>2&&(o(r-3<<5|8208),r=0)}for(;r--;)o(i);r=1,i=e[s]}return[n.subarray(0,a),t]},Hte=function(e,t){for(var n=0,a=0;a<t.length;++a)n+=e[a]*t[a];return n},zte=function(e,t,n){var a=n.length,i=Lte(t+2);e[i]=255&a,e[i+1]=a>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var r=0;r<a;++r)e[i+r+4]=n[r];return 8*(i+4+a)},Kte=function(e,t,n,a,i,r,o,s,l,u,c){Fte(t,c++,n),++i[256];for(var d=Xte(i,15),h=d[0],p=d[1],f=Xte(r,15),m=f[0],v=f[1],g=Ute(h),y=g[0],b=g[1],_=Ute(m),w=_[0],k=_[1],C=new yte(19),S=0;S<y.length;++S)C[31&y[S]]++;for(S=0;S<w.length;++S)C[31&w[S]]++;for(var T=Xte(C,7),A=T[0],E=T[1],I=19;I>4&&!A[kte[I-1]];--I);var x,N,P,M,O=u+5<<3,R=Hte(i,Mte)+Hte(r,Ote)+o,D=Hte(i,h)+Hte(r,m)+o+14+3*I+Hte(C,A)+(2*C[16]+3*C[17]+7*C[18]);if(O<=R&&O<=D)return zte(t,c,e.subarray(l,l+u));if(Fte(t,c,1+(D<R)),c+=2,D<R){x=Pte(h,p),N=h,P=Pte(m,v),M=m;var L=Pte(A,E);for(Fte(t,c,b-257),Fte(t,c+5,k-1),Fte(t,c+10,I-4),c+=14,S=0;S<I;++S)Fte(t,c+3*S,A[kte[S]]);c+=3*I;for(var B=[y,w],F=0;F<2;++F){var V=B[F];for(S=0;S<V.length;++S){var X=31&V[S];Fte(t,c,L[X]),c+=A[X],X>15&&(Fte(t,c,V[S]>>>5&127),c+=V[S]>>>12)}}}else x=Rte,N=Mte,P=Dte,M=Ote;for(S=0;S<s;++S)if(a[S]>255){X=a[S]>>>18&31,Vte(t,c,x[X+257]),c+=N[X+257],X>7&&(Fte(t,c,a[S]>>>23&31),c+=_te[X]);var j=31&a[S];Vte(t,c,P[j]),c+=M[j],j>3&&(Vte(t,c,a[S]>>>5&8191),c+=wte[j])}else Vte(t,c,x[a[S]]),c+=N[a[S]];return Vte(t,c,x[256]),c+N[256]},Wte=new bte([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Gte=function(){for(var e=new bte(256),t=0;t<256;++t){for(var n=t,a=9;--a;)n=(1&n&&3988292384)^n>>>1;e[t]=n}return e}(),qte=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function $te(e,t){void 0===t&&(t={});var n=function(){var e=4294967295;return{p:function(t){for(var n=e,a=0;a<t.length;++a)n=Gte[255&n^t[a]]^n>>>8;e=n},d:function(){return 4294967295^e}}}(),a=e.length;n.p(e);var i=function(e,t,n,a){return function(e,t,n,a,i){var r=e.length,o=new gte(a+r+5*(1+Math.floor(r/7e3))+i),s=o.subarray(a,o.length-i),l=0;if(!t||r<8)for(var u=0;u<=r;u+=65535){var c=u+65535;c<r?l=zte(s,l,e.subarray(u,c)):(s[u]=!0,l=zte(s,l,e.subarray(u,r)))}else{for(var d=Wte[t-1],h=d>>>13,p=8191&d,f=(1<<n)-1,m=new yte(32768),v=new yte(f+1),g=Math.ceil(n/3),y=2*g,b=function(t){return(e[t]^e[t+1]<<g^e[t+2]<<y)&f},_=new bte(25e3),w=new yte(288),k=new yte(32),C=0,S=0,T=(u=0,0),A=0,E=0;u<r;++u){var I=b(u),x=32767&u,N=v[I];if(m[x]=N,v[I]=x,A<=u){var P=r-u;if((C>7e3||T>24576)&&P>423){l=Kte(e,s,0,_,w,k,S,T,E,u-E,l),T=C=S=0,E=u;for(var M=0;M<286;++M)w[M]=0;for(M=0;M<30;++M)k[M]=0}var O=2,R=0,D=p,L=x-N&32767;if(P>2&&I==b(u-L))for(var B=Math.min(h,P)-1,F=Math.min(32767,u),V=Math.min(258,P);L<=F&&--D&&x!=N;){if(e[u+O]==e[u+O-L]){for(var X=0;X<V&&e[u+X]==e[u+X-L];++X);if(X>O){if(O=X,R=L,X>B)break;var j=Math.min(L,X-2),U=0;for(M=0;M<j;++M){var H=u-L+M+32768&32767,z=H-m[H]+32768&32767;z>U&&(U=z,N=H)}}}L+=(x=N)-(N=m[x])+32768&32767}if(R){_[T++]=268435456|Ate[O]<<18|Ete[R];var K=31&Ate[O],W=31&Ete[R];S+=_te[K]+wte[W],++w[257+K],++k[W],A=u+O,++C}else _[T++]=e[u],++w[e[u]]}}l=Kte(e,s,!0,_,w,k,S,T,E,u-E,l)}return Bte(o,0,a+Lte(l)+i)}(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,a)}(e,t,function(e){return 10+(e.filename&&e.filename.length+1||0)}(t),8),r=i.length;return function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&qte(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var a=0;a<=n.length;++a)e[a+10]=n.charCodeAt(a)}}(i,t),qte(i,r-8,n.d()),qte(i,r-4,a),i}function Yte(e,t){var n=e.length;if("undefined"!=typeof TextEncoder)return(new TextEncoder).encode(e);for(var a=new gte(e.length+(e.length>>>1)),i=0,r=function(e){a[i++]=e},o=0;o<n;++o){if(i+5>a.length){var s=new gte(i+8+(n-o<<1));s.set(a),a=s}var l=e.charCodeAt(o);l<128||t?r(l):l<2048?(r(192|l>>>6),r(128|63&l)):l>55295&&l<57344?(r(240|(l=65536+(1047552&l)|1023&e.charCodeAt(++o))>>>18),r(128|l>>>12&63),r(128|l>>>6&63),r(128|63&l)):(r(224|l>>>12),r(128|l>>>6&63),r(128|63&l))}return Bte(a,0,i)}var Jte=[Dee.MouseMove,Dee.MouseInteraction,Dee.Scroll,Dee.ViewportResize,Dee.Input,Dee.TouchMove,Dee.MediaInteraction,Dee.Drag],Qte=function(e){return{rrwebMethod:e,enqueuedAt:Date.now(),attempt:1}},Zte="[SessionRecording]";function ene(e){return function(e){for(var t="",n=0;n<e.length;){var a=e[n++];t+=String.fromCharCode(a)}return t}
5091($te(Yte(JSON.stringify(e))))}function tne(e){return e.type===Ree.Custom&&"sessionIdle"===e.data.tag}var nne,ane=function(){function e(t){var n=this;if(e7(this,e),a7(this,"queuedRRWebEvents",[]),a7(this,"isIdle",!1),a7(this,"_linkedFlagSeen",!1),a7(this,"_lastActivityTimestamp",Date.now()),a7(this,"_linkedFlag",null),a7(this,"_removePageViewCaptureHook",void 0),a7(this,"_onSessionIdListener",void 0),a7(this,"_persistDecideOnSessionListener",void 0),a7(this,"_samplingSessionListener",void 0),a7(this,"_forceAllowLocalhostNetworkCapture",!1),a7(this,"_onBeforeUnload",function(){n._flushBuffer()}),a7(this,"_onOffline",function(){n._tryAddCustomEvent("browser offline",{})}),a7(this,"_onOnline",function(){n._tryAddCustomEvent("browser online",{})}),a7(this,"_onVisibilityChange",function(){if(null!=T8&&T8.visibilityState){var e="window "+T8.visibilityState;n._tryAddCustomEvent(e,{})}}),this.instance=t,this._captureStarted=!1,this._endpoint="/s/",this.stopRrweb=void 0,this.receivedDecide=!1,!this.instance.sessionManager)throw $8.error(Zte+" started without valid sessionManager"),new Error(Zte+" started without valid sessionManager. This is a bug.");var a=this.sessionManager.checkAndGetSessionAndWindowId(),i=a.sessionId,r=a.windowId;this.sessionId=i,this.windowId=r,this.buffer=this.clearBuffer(),this.sessionIdleThresholdMilliseconds>=this.sessionManager.sessionTimeoutMs&&$8.warn(Zte+" session_idle_threshold_ms (".concat(this.sessionIdleThresholdMilliseconds,") is greater than the session timeout (").concat(this.sessionManager.sessionTimeoutMs,"). Session will never be detected as idle"))}return n7(e,[{key:"sessionIdleThresholdMilliseconds",get:function(){return this.instance.config.session_recording.session_idle_threshold_ms||3e5}},{key:"rrwebRecord",get:function(){var e,t;return null==P8||null===(e=P8.__PosthogExtensions__)||void 0===e||null===(t=e.rrweb)||void 0===t?void 0:t.record}},{key:"started",get:function(){return this._captureStarted}},{key:"sessionManager",get:function(){if(!this.instance.sessionManager)throw new Error(Zte+" must be started with a valid sessionManager.");return this.instance.sessionManager}},{key:"fullSnapshotIntervalMillis",get:function(){var e;return(null===(e=this.instance.config.session_recording)||void 0===e?void 0:e.full_snapshot_interval_millis)||3e5}},{key:"isSampled",get:function(){var e=this.instance.get_property(X7);return G8(e)?e:null}},{key:"sessionDuration",get:function(){var e,t,n=null===(e=this.buffer)||void 0===e?void 0:e.data[(null===(t=this.buffer)||void 0===t?void 0:t.data.length)-1],a=this.sessionManager.checkAndGetSessionAndWindowId(!0).sessionStartTimestamp;return n?n.timestamp-a:null}},{key:"isRecordingEnabled",get:function(){var e=!!this.instance.get_property(O7),t=!this.instance.config.disable_session_recording;return b8&&e&&t}},{key:"isConsoleLogCaptureEnabled",get:function(){var e=!!this.instance.get_property(R7),t=this.instance.config.enable_recording_console_log;return null!=t?t:e}},{key:"canvasRecording",get:function(){var e=this.instance.get_property(L7);return e&&e.fps&&e.quality?{enabled:e.enabled,fps:e.fps,quality:e.quality}:void 0}},{key:"networkPayloadCapture",get:function(){var e,t,n=this.instance.get_property(D7),a={recordHeaders:null===(e=this.instance.config.session_recording)||void 0===e?void 0:e.recordHeaders,recordBody:null===(t=this.instance.config.session_recording)||void 0===t?void 0:t.recordBody},i=(null==a?void 0:a.recordHeaders)||(null==n?void 0:n.recordHeaders),r=(null==a?void 0:a.recordBody)||(null==n?void 0:n.recordBody),o=V8(this.instance.config.capture_performance)?this.instance.config.capture_performance.network_timing:this.instance.config.capture_performance,s=!!(G8(o)?o:null==n?void 0:n.capturePerformance);return i||r||s?{recordHeaders:i,recordBody:r,recordPerformance:s}:void 0}},{key:"sampleRate",get:function(){var e=this.instance.get_property(B7);return W8(e)?e:null}},{key:"minimumDuration",get:function(){var e=this.instance.get_property(F7);return W8(e)?e:null}},{key:"status",get:function(){return this.receivedDecide?this.isRecordingEnabled?K8(this._linkedFlag)||this._linkedFlagSeen?G8(this.isSampled)?this.isSampled?"sampled":"disabled":"active":"buffering":"disabled":"buffering"}},{key:"startIfEnabledOrStop",value:function(){var e=this;this.isRecordingEnabled?(this._startCapture(),null==b8||b8.addEventListener("beforeunload",this._onBeforeUnload),null==b8||b8.addEventListener("offline",this._onOffline),null==b8||b8.addEventListener("online",this._onOnline),null==b8||b8.addEventListener("visibilitychange",this._onVisibilityChange),this._setupSampling(),K8(this._removePageViewCaptureHook)&&(this._removePageViewCaptureHook=this.instance._addCaptureHook(function(t){try{if("$pageview"===t){var n=b8?e._maskUrl(b8.location.href):"";if(!n)return;e._tryAddCustomEvent("$pageview",{href:n})}}catch(w7){$8.error("Could not add $pageview to rrweb session",w7)}})),this._onSessionIdListener||(this._onSessionIdListener=this.sessionManager.onSessionId(function(t,n,a){a&&e._tryAddCustomEvent("$session_id_change",{sessionId:t,windowId:n,changeReason:a})}))):this.stopRecording()}},{key:"stopRecording",value:function(){var e,t,n;this._captureStarted&&this.stopRrweb&&(this.stopRrweb(),this.stopRrweb=void 0,this._captureStarted=!1,null==b8||b8.removeEventListener("beforeunload",this._onBeforeUnload),null==b8||b8.removeEventListener("offline",this._onOffline),null==b8||b8.removeEventListener("online",this._onOnline),null==b8||b8.removeEventListener("visibilitychange",this._onVisibilityChange),this.clearBuffer(),clearInterval(this._fullSnapshotTimer),null===(e=this._removePageViewCaptureHook)||void 0===e||e.call(this),this._removePageViewCaptureHook=void 0,null===(t=this._onSessionIdListener)||void 0===t||t.call(this),this._onSessionIdListener=void 0,null===(n=this._samplingSessionListener)||void 0===n||n.call(this),this._samplingSessionListener=void 0,$8.info(Zte+" stopped"))}},{key:"makeSamplingDecision",value:function(e){var t,n=this.sessionId!==e,a=this.sampleRate;if(W8(a)){var i,r=this.isSampled,o=n||!G8(r);!(i=o?Math.random()<a:r)&&o&&$8.warn(Zte+" Sample rate (".concat(a,") has determined that this sessionId (").concat(e,") will not be sent to the server.")),this._tryAddCustomEvent("samplingDecisionMade",{sampleRate:a}),null===(t=this.instance.persistence)||void 0===t||t.register(a7({},X7,i))}else{var s;null===(s=this.instance.persistence)||void 0===s||s.register(a7({},X7,null))}}},{key:"afterDecideResponse",value:function(e){var t,n,a,i=this;if(this._persistDecideResponse(e),this._linkedFlag=(null===(t=e.sessionRecording)||void 0===t?void 0:t.linkedFlag)||null,
5091null!==(n=e.sessionRecording)&&void 0!==n&&n.endpoint&&(this._endpoint=null===(a=e.sessionRecording)||void 0===a?void 0:a.endpoint),this._setupSampling(),!K8(this._linkedFlag)&&!this._linkedFlagSeen){var r=U8(this._linkedFlag)?this._linkedFlag:this._linkedFlag.flag,o=U8(this._linkedFlag)?null:this._linkedFlag.variant;this.instance.onFeatureFlags(function(e,t){var n=V8(t)&&r in t,a=o?t[r]===o:n;if(a){var s={linkedFlag:r,linkedVariant:o},l="linked flag matched";$8.info(Zte+" "+l,s),i._tryAddCustomEvent(l,s)}i._linkedFlagSeen=a})}this.receivedDecide=!0,this.startIfEnabledOrStop()}},{key:"_setupSampling",value:function(){var e=this;W8(this.sampleRate)&&K8(this._samplingSessionListener)&&(this._samplingSessionListener=this.sessionManager.onSessionId(function(t){e.makeSamplingDecision(t)}))}},{key:"_persistDecideResponse",value:function(e){if(this.instance.persistence){var t,n=this.instance.persistence,a=function(){var t,a,i,r,o,s,l,u,c=null===(t=e.sessionRecording)||void 0===t?void 0:t.sampleRate,d=K8(c)?null:parseFloat(c),h=null===(a=e.sessionRecording)||void 0===a?void 0:a.minimumDurationMilliseconds;n.register((a7(u={},O7,!!e.sessionRecording),a7(u,R7,null===(i=e.sessionRecording)||void 0===i?void 0:i.consoleLogRecordingEnabled),a7(u,D7,Q8({capturePerformance:e.capturePerformance},null===(r=e.sessionRecording)||void 0===r?void 0:r.networkPayloadCapture)),a7(u,L7,{enabled:null===(o=e.sessionRecording)||void 0===o?void 0:o.recordCanvas,fps:null===(s=e.sessionRecording)||void 0===s?void 0:s.canvasFps,quality:null===(l=e.sessionRecording)||void 0===l?void 0:l.canvasQuality}),a7(u,B7,d),a7(u,F7,j8(h)?null:h),u))};a(),null===(t=this._persistDecideOnSessionListener)||void 0===t||t.call(this),this._persistDecideOnSessionListener=this.sessionManager.onSessionId(a)}}},{key:"log",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log";null===(t=this.instance.sessionRecording)||void 0===t||t.onRRwebEmit({type:6,data:{plugin:"rrweb/console@1",payload:{level:n,trace:[],payload:[JSON.stringify(e)]}},timestamp:Date.now()})}},{key:"_startCapture",value:function(){var e,t,n=this;j8(Object.assign)||this._captureStarted||this.instance.config.disable_session_recording||this.instance.consent.isOptedOut()||(this._captureStarted=!0,this.sessionManager.checkAndGetSessionAndWindowId(),this.rrwebRecord?this._onScriptLoaded():null===(e=P8.__PosthogExtensions__)||void 0===e||null===(t=e.loadExternalDependency)||void 0===t||t.call(e,this.instance,"recorder",function(e){if(e)return $8.error(Zte+" could not load recorder",e);n._onScriptLoaded()}))}},{key:"isInteractiveEvent",value:function(e){var t;return 3===e.type&&-1!==Jte.indexOf(null===(t=e.data)||void 0===t?void 0:t.source)}},{key:"_updateWindowAndSessionIds",value:function(e){var t=this.isInteractiveEvent(e);t||this.isIdle||e.timestamp-this._lastActivityTimestamp>this.sessionIdleThresholdMilliseconds&&(this.isIdle=!0,clearInterval(this._fullSnapshotTimer),this._tryAddCustomEvent("sessionIdle",{eventTimestamp:e.timestamp,lastActivityTimestamp:this._lastActivityTimestamp,threshold:this.sessionIdleThresholdMilliseconds,bufferLength:this.buffer.data.length,bufferSize:this.buffer.size}),this._flushBuffer());var n=!1;if(t&&(this._lastActivityTimestamp=e.timestamp,this.isIdle&&(this.isIdle=!1,this._tryAddCustomEvent("sessionNoLongerIdle",{reason:"user activity",type:e.type}),n=!0)),!this.isIdle){var a=this.sessionManager.checkAndGetSessionAndWindowId(!t,e.timestamp),i=a.windowId,r=a.sessionId,o=this.sessionId!==r,s=this.windowId!==i;this.windowId=i,this.sessionId=r,o||s?(this.stopRecording(),this.startIfEnabledOrStop()):n&&this._scheduleFullSnapshot()}}},{key:"_tryRRWebMethod",value:function(e){try{return e.rrwebMethod(),!0}catch(t){return this.queuedRRWebEvents.length<10?this.queuedRRWebEvents.push({enqueuedAt:e.enqueuedAt||Date.now(),attempt:e.attempt++,rrwebMethod:e.rrwebMethod}):$8.warn(Zte+" could not emit queued rrweb event.",t,e),!1}}},{key:"_tryAddCustomEvent",value:function(e,t){var n=this;return this._tryRRWebMethod(Qte(function(){return n.rrwebRecord.addCustomEvent(e,t)}))}},{key:"_tryTakeFullSnapshot",value:function(){var e=this;return this._tryRRWebMethod(Qte(function(){return e.rrwebRecord.takeFullSnapshot()}))}},{key:"_onScriptLoaded",value:function(){for(var e,t=this,n={blockClass:"ph-no-capture",blockSelector:void 0,ignoreClass:"ph-ignore-input",maskTextClass:"ph-mask",maskTextSelector:void 0,maskTextFn:void 0,maskAllInputs:!0,maskInputOptions:{password:!0},maskInputFn:void 0,slimDOMOptions:{}
5091,collectFonts:!1,inlineStylesheet:!0,recordCrossOriginIframes:!1},a=this.instance.config.session_recording,i=0,r=Object.entries(a||{});i<r.length;i++){var o=i7(r[i],2),s=o[0],l=o[1];s in n&&("maskInputOptions"===s?n.maskInputOptions=Q8({password:!0},l):n[s]=l)}if(this.canvasRecording&&this.canvasRecording.enabled&&(n.recordCanvas=!0,n.sampling={canvas:this.canvasRecording.fps},n.dataURLOptions={type:"image/webp",quality:this.canvasRecording.quality}),this.rrwebRecord){this.mutationRateLimiter=null!==(e=this.mutationRateLimiter)&&void 0!==e?e:new vte(this.rrwebRecord,{onBlockedNode:function(e,n){var a="Too many mutations on node '".concat(e,"'. Rate limiting. This could be due to SVG animations or something similar");$8.info(a,{node:n}),t.log(Zte+" "+a,"warn")}});var u=this._gatherRRWebPlugins();this.stopRrweb=this.rrwebRecord(Q8({emit:function(e){t.onRRwebEmit(e)},plugins:u},n)),this._lastActivityTimestamp=Date.now(),this.isIdle=!1,this._tryAddCustomEvent("$session_options",{sessionRecordingOptions:n,activePlugins:u.map(function(e){return null==e?void 0:e.name})}),this._tryAddCustomEvent("$posthog_config",{config:this.instance.config}),$8.info(Zte+" started",{idleThreshold:this.sessionIdleThresholdMilliseconds,maxIdleTime:this.sessionManager.sessionTimeoutMs})}else $8.error(Zte+"onScriptLoaded was called but rrwebRecord is not available. This indicates something has gone wrong.")}},{key:"_scheduleFullSnapshot",value:function(){var e=this;if(this._fullSnapshotTimer&&clearInterval(this._fullSnapshotTimer),!this.isIdle){var t=this.fullSnapshotIntervalMillis;t&&(this._fullSnapshotTimer=setInterval(function(){e._tryTakeFullSnapshot()},t))}}},{key:"_gatherRRWebPlugins",value:function(){var e,t,n,a,i=[],r=null===(e=P8.__PosthogExtensions__)||void 0===e||null===(t=e.rrwebPlugins)||void 0===t?void 0:t.getRecordConsolePlugin;r&&this.isConsoleLogCaptureEnabled&&i.push(r());var o=null===(n=P8.__PosthogExtensions__)||void 0===n||null===(a=n.rrwebPlugins)||void 0===a?void 0:a.getRecordNetworkPlugin;return this.networkPayloadCapture&&F8(o)&&(!I9.includes(location.hostname)||this._forceAllowLocalhostNetworkCapture?i.push(o(function(e,t){var n,a,i,r={payloadSizeLimitBytes:cte.payloadSizeLimitBytes,performanceEntryTypeToObserve:r7(cte.performanceEntryTypeToObserve),payloadHostDenyList:[].concat(r7(t.payloadHostDenyList||[]),r7(cte.payloadHostDenyList))},o=!1!==e.session_recording.recordHeaders&&t.recordHeaders,s=!1!==e.session_recording.recordBody&&t.recordBody,l=!1!==e.capture_performance&&t.recordPerformance,u=(n=r,i=Math.min(1e6,null!==(a=n.payloadSizeLimitBytes)&&void 0!==a?a:1e6),function(e){return null!=e&&e.requestBody&&(e.requestBody=fte(e.requestBody,e.requestHeaders,i,"Request")),null!=e&&e.responseBody&&(e.responseBody=fte(e.responseBody,e.responseHeaders,i,"Response")),e}),c=function(e){return u(function(e){var t=x9(e.name);if(!(t&&t.pathname&&pte.some(function(e){return 0===t.pathname.indexOf(e)})))return e}((n=(t=e).requestHeaders,K8(n)||h7(Object.keys(null!=n?n:{}),function(e){dte.includes(e.toLowerCase())&&(n[e]=ute)}),t)));var t,n},d=F8(e.session_recording.maskNetworkRequestFn);return d&&F8(e.session_recording.maskCapturedNetworkRequestFn)&&$8.warn("Both `maskNetworkRequestFn` and `maskCapturedNetworkRequestFn` are defined. `maskNetworkRequestFn` will be ignored."),d&&(e.session_recording.maskCapturedNetworkRequestFn=function(t){var n=e.session_recording.maskNetworkRequestFn({url:t.name});return Q8(Q8({},t),{},{name:null==n?void 0:n.url})}),r.maskRequestFn=F8(e.session_recording.maskCapturedNetworkRequestFn)?function(t){var n,a,i,r=c(t);return r&&null!==(n=null===(a=(i=e.session_recording).maskCapturedNetworkRequestFn)||void 0===a?void 0:a.call(i,r))&&void 0!==n?n:void 0}:function(e){return function(e){if(!j8(e))return e.requestBody=mte(e.requestBody,"Request"),e.responseBody=mte(e.responseBody,"Response"),e}(c(e))},Q8(Q8(Q8({},cte),r),{},{recordHeaders:o,recordBody:s,recordPerformance:l,recordInitialRequests:l})}(this.instance.config,this.networkPayloadCapture))):$8.info(Zte+" NetworkCapture not started because we are on localhost.")),i}},{key:"onRRwebEmit",value:function(e){var t;if(this._processQueuedEvents(),e&&V8(e)){if(e.type===Ree.Meta){var n=this._maskUrl(e.data.href);if(this._lastHref=n,!n)return;e.data.href=n}else this._pageViewFallBack();e.type===Ree.FullSnapshot&&this._scheduleFullSnapshot();var a=this.mutationRateLimiter?this.mutationRateLimiter.throttleMutations(e):e;if(a){var i=function(e){var t=e;if(t&&V8(t)&&6===t.type&&V8(t.data)&&"rrweb/console@1"===t.data.plugin){t.data.payload.payload.length>10&&(t.data.payload.payload=t.data.payload.payload.slice(0,10),t.data.payload.payload.push("...[truncated]"));for(var n=[],a=0;a<t.data.payload.payload.length;a++)t.data.payload.payload[a]&&t.data.payload.payload[a].length>2e3?n.push(t.data.payload.payload[a].slice(0,2e3)+"...[truncated]"):n.push(t.data.payload.payload[a]);return t.data.payload.payload=n,e}return e}(a);if(this._updateWindowAndSessionIds(i),!this.isIdle||tne(i)){if(tne(i)){var r=i.data.payload;if(r){var o=r.lastActivityTimestamp,s=r.threshold;i.timestamp=o+s}}var l=null===(t=this.instance.config.session_recording.compress_events)||void 0===t||t?function(e){if(Mee(e)<1024)return e;try{if(e.type===Ree.FullSnapshot)return Q8(Q8({},e),{},{data:ene(e.data),cv:"2024-10"});if(e.type===Ree.IncrementalSnapshot&&e.data.source===Dee.Mutation)return Q8(Q8({},e),{},{cv:"2024-10",data:Q8(Q8({},e.data),{},{texts:ene(e.data.texts),attributes:ene(e.data.attributes),removes:ene(e.data.removes),adds:ene(e.data.adds)})});if(e.type===Ree.IncrementalSnapshot&&e.data.source===Dee.StyleSheetRule)return Q8(Q8({},e),{},{cv:"2024-10",data:Q8(Q8({},e.data),{},{adds:ene(e.data.adds),removes:ene(e.data.removes)})})}catch(t){$8.error(Zte+" could not compress event - will use uncompressed event",t)}return e}(i):i,u={$snapshot_bytes:Mee(l),$snapshot_data:l,$session_id:this.sessionId,$window_id:this.windowId};"disabled"!==this.status?this._captureSnapshotBuffered(u):this.clearBuffer()}}}}},{key:"_pageViewFallBack",value:function(){if(!this.instance.config.capture_pageview&&b8){var e=this._maskUrl(b8.location.href);this._lastHref!==e&&(this._tryAddCustomEvent("$url_changed",{href:e}),this._lastHref=e)}}},{key:"_processQueuedEvents",value:function(){var e=this;if(this.queuedRRWebEvents.length){var t=r7(this.queuedRRWebEvents);this.queuedRRWebEvents=[],t.forEach(function(t){Date.now()-t.enqueuedAt<=2e3&&e._tryRRWebMethod(t)})}}},{key:"_maskUrl",value:function(e){var t=this.instance.config.session_recording;
5091if(t.maskNetworkRequestFn){var n,a={url:e};return null===(n=a=t.maskNetworkRequestFn(a))||void 0===n?void 0:n.url}return e}},{key:"clearBuffer",value:function(){return this.buffer={size:0,data:[],sessionId:this.sessionId,windowId:this.windowId},this.buffer}},{key:"_flushBuffer",value:function(){var e=this;this.flushBufferTimer&&(clearTimeout(this.flushBufferTimer),this.flushBufferTimer=void 0);var t=this.minimumDuration,n=this.sessionDuration,a=W8(n)&&n>=0,i=W8(t)&&a&&n<t;return"buffering"===this.status||i?(this.flushBufferTimer=setTimeout(function(){e._flushBuffer()},2e3),this.buffer):(this.buffer.data.length>0&&Oee(this.buffer).forEach(function(t){e._captureSnapshot({$snapshot_bytes:t.size,$snapshot_data:t.data,$session_id:t.sessionId,$window_id:t.windowId})}),this.clearBuffer())}},{key:"_captureSnapshotBuffered",value:function(e){var t,n=this,a=2+((null===(t=this.buffer)||void 0===t?void 0:t.data.length)||0);!this.isIdle&&(this.buffer.size+e.$snapshot_bytes+a>943718.4||this.buffer.sessionId!==this.sessionId)&&(this.buffer=this._flushBuffer()),this.buffer.size+=e.$snapshot_bytes,this.buffer.data.push(e.$snapshot_data),this.flushBufferTimer||this.isIdle||(this.flushBufferTimer=setTimeout(function(){n._flushBuffer()},2e3))}},{key:"_captureSnapshot",value:function(e){this.instance.capture("$snapshot",e,{_url:this.instance.requestRouter.endpointFor("api",this._endpoint),_noTruncate:!0,_batchKey:"recordings",skip_client_rate_limiting:!0})}},{key:"overrideLinkedFlag",value:function(){this._linkedFlagSeen=!0}}]),e}(),ine=function(){function e(t){e7(this,e),this.instance=t,this.instance.decideEndpointWasHit=this.instance._hasBootstrappedFeatureFlags()}return n7(e,[{key:"call",value:function(){var e=this,t={token:this.instance.config.token,distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),person_properties:this.instance.get_property(H7),group_properties:this.instance.get_property(z7),disable_flags:this.instance.config.advanced_disable_feature_flags||this.instance.config.advanced_disable_feature_flags_on_first_load||void 0};this.instance._send_request({method:"POST",url:this.instance.requestRouter.endpointFor("api","/decide/?v=3"),data:t,compression:this.instance.config.disable_compression?void 0:_7.Base64,timeout:this.instance.config.feature_flag_request_timeout_ms,callback:function(t){return e.parseDecideResponse(t.json)}})}},{key:"parseDecideResponse",value:function(e){var t=this;this.instance.featureFlags.setReloadingPaused(!1),this.instance.featureFlags._startReloadTimer();var n=!e;if(this.instance.config.advanced_disable_feature_flags_on_first_load||this.instance.config.advanced_disable_feature_flags||this.instance.featureFlags.receivedFeatureFlags(null!=e?e:{},n),n)$8.error("Failed to fetch feature flags from PostHog.");else{if(!T8||!T8.body)return $8.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(function(){t.parseDecideResponse(e)},500);if(this.instance._afterDecideResponse(e),e.siteApps)if(this.instance.config.opt_in_site_apps){var a,i=l7(e.siteApps);try{var r=function(){var e,n,i=a.value,r=i.id,o=i.url;P8["__$$ph_site_app_".concat(r)]=t.instance,null===(e=P8.__PosthogExtensions__)||void 0===e||null===(n=e.loadSiteApp)||void 0===n||n.call(e,t.instance,o,function(e){if(e)return $8.error("Error while initializing PostHog app with config id ".concat(r),e)})};for(i.s();!(a=i.n()).done;)r()}catch(o){i.e(o)}finally{i.f()}}else e.siteApps.length>0&&$8.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}}]),e}(),rne=null!=b8&&b8.location?M9(b8.location.hash,"__posthog")||M9(location.hash,"state"):null,one="_postHogToolbarParams";!function(e){e[e.UNINITIALIZED=0]="UNINITIALIZED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"}(nne||(nne={}));var sne=function(){function e(t){e7(this,e),this.instance=t}return n7(e,[{key:"setToolbarState",value:function(e){P8.ph_toolbar_state=e}},{key:"getToolbarState",value:function(){var e;return null!==(e=P8.ph_toolbar_state)&&void 0!==e?e:nne.UNINITIALIZED}},{key:"maybeLoadToolbar",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(!b8||!T8)return!1;n=null!==(e=n)&&void 0!==e?e:b8.location,i=null!==(t=i)&&void 0!==t?t:b8.history;try{if(!a){try{b8.localStorage.setItem("test","test"),b8.localStorage.removeItem("test")}catch(w7){return!1}a=null==b8?void 0:b8.localStorage}var r,o=rne||M9(n.hash,"__posthog")||M9(n.hash,"state"),s=o?v7(function(){return JSON.parse(atob(decodeURIComponent(o)))})||v7(function(){return JSON.parse(decodeURIComponent(o))}):null;return s&&"ph_authorize"===s.action?((r=s).source="url",r&&Object.keys(r).length>0&&(s.desiredHash?n.hash=s.desiredHash:i?i.replaceState(i.state,"",n.pathname+n.search):n.hash="")):((r=JSON.parse(a.getItem(one)||"{}")).source="localstorage",delete r.userIntent),!(!r.token||this.instance.config.token!==r.token||(this.loadToolbar(r),0))}catch(w7){return!1}}},{key:"_callLoadToolbar",value:function(e){(P8.ph_load_toolbar||P8.ph_load_editor)(e,this.instance)}},{key:"loadToolbar",value:function(e){var t=this,n=!(null==T8||!T8.getElementById(t9));if(!b8||n)return!1;var a="custom"===this.instance.requestRouter.region&&this.instance.config.advanced_disable_toolbar_metrics,i=Q8(Q8({token:this.instance.config.token},e),{},{apiURL:this.instance.requestRouter.endpointFor("ui")},a?{instrument:!1}:{});if(b8.localStorage.setItem(one,JSON.stringify(Q8(Q8({},i),{},{source:void 0}))),this.getToolbarState()===nne.LOADED)this._callLoadToolbar(i);else if(this.getToolbarState()===nne.UNINITIALIZED){var r,o;this.setToolbarState(nne.LOADING),null===(r=P8.__PosthogExtensions__)||void 0===r||null===(o=r.loadExternalDependency)||void 0===o||o.call(r,this.instance,"toolbar",function(e){if(e)return $8.error("Failed to load toolbar",e),void t.setToolbarState(nne.UNINITIALIZED);t.setToolbarState(nne.LOADED),t._callLoadToolbar(i)}),k7(b8,"turbolinks:load",function(){t.setToolbarState(nne.UNINITIALIZED),t.loadToolbar(i)})}return!0}},{key:"_loadEditor",value:function(e){return this.loadToolbar(e)}},{key:"maybeLoadEditor",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return this.maybeLoadToolbar(e,t,n)}}]),e}(),lne=function(){function e(t){e7(this,e),a7(this,"isPaused",!0),a7(this,"queue",[]),a7(this,"flushTimeoutMs",3e3),this.sendRequest=t}return n7(e,[{key:"enqueue",value:function(e){this.queue.push(e),this.flushTimeout||this.setFlushTimeout()}},{key:"unload",value:function(){var e=this;this.clearFlushTimeout();var t=this.queue.length>0?this.formatQueue():{},n=Object.values(t);[].concat(r7(n.filter(function(e){return 0===e.url.indexOf("/e")})),r7(n.filter(function(e){return 0!==e.url.indexOf("/e")}))).map(function(t){e.sendRequest(Q8(Q8({},t),{},{transport:"sendBeacon"}))})}},{key:"enable",value:function(){this.isPaused=!1,this.setFlushTimeout()}},{key:"setFlushTimeout",value:function(){var e=this;this.isPaused||(this.flushTimeout=setTimeout(function(){if(e.clearFlushTimeout(),e.queue.length>0){var t=e.formatQueue(),n=function(n){var a=t[n],i=(new Date).getTime();a.data&&B8(a.data)&&h7(a.data,function(e){e.offset=Math.abs(e.timestamp-i),delete e.timestamp}),e.sendRequest(a)};for(var a in t)n(a)}},this.flushTimeoutMs))}},{key:"clearFlushTimeout",value:function(){clearTimeout(this.flushTimeout),this.flushTimeout=void 0}},{key:"formatQueue",value:function(){var e={};return h7(this.queue,function(t){var n,a=t,i=(a?a.batchKey:null)||a.url;j8(e[i])&&(e[i]=Q8(Q8({},a),{},{data:[]})),null===(n=e[i].data)||void 0===n||n.push(a.data)}),this.queue=[],e}}]),e}(),une=!!I8||!!E8,cne="text/plain",dne=function(e,t){var n=i7(e.split("?"),2),a=n[0],i=n[1],r=Q8({},t);null==i||i.split("&").forEach(function(e){var t=i7(e.split("="),1)[0];delete r[t]});var o=function(e){var t,n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"&",i=[];return h7(e,function(e,a){j8(e)||j8(a)||"undefined"===a||(t=encodeURIComponent(e instanceof File?e.name:e.toString()),n=encodeURIComponent(a),i[i.length]=n+"="+t)}),i.join(a)}(r);return o=o?(i?i+"&":"")+o:i,"".concat(a,"?").concat(o)}
5091,hne=function(e){var t,n=e.data,a=e.compression;if(n){if(a===_7.GZipJS){var i=$te(Yte(JSON.stringify(n)),{mtime:0}),r=new Blob([i],{type:cne});return{contentType:cne,body:r,estimatedSize:r.size}}if(a===_7.Base64){var o=function(e){var t,n,a,i,r,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,l=0,u="",c=[];if(!e)return e;e=function(e){var t,n,a,i,r="";for(t=n=0,a=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i<a;i++){var o=e.charCodeAt(i),s=null;o<128?n++:s=o>127&&o<2048?String.fromCharCode(o>>6|192,63&o|128):String.fromCharCode(o>>12|224,o>>6&63|128,63&o|128),z8(s)||(n>t&&(r+=e.substring(t,n)),r+=s,t=n=i+1)}return n>t&&(r+=e.substring(t,e.length)),r}(e);do{t=(r=e.charCodeAt(s++)<<16|e.charCodeAt(s++)<<8|e.charCodeAt(s++))>>18&63,n=r>>12&63,a=r>>6&63,i=63&r,c[l++]=o.charAt(t)+o.charAt(n)+o.charAt(a)+o.charAt(i)}while(s<e.length);switch(u=c.join(""),e.length%3){case 1:u=u.slice(0,-2)+"==";break;case 2:u=u.slice(0,-1)+"="}return u}(JSON.stringify(n)),s=(t=o,"data="+encodeURIComponent("string"==typeof t?t:JSON.stringify(t)));return{contentType:"application/x-www-form-urlencoded",body:s,estimatedSize:new Blob([s]).size}}var l=JSON.stringify(n);return{contentType:"application/json",body:l,estimatedSize:new Blob([l]).size}}},pne=[];I8&&pne.push({transport:"XHR",method:function(e){var t,n=new I8;n.open(e.method||"GET",e.url,!0);var a=null!==(t=hne(e))&&void 0!==t?t:{},i=a.contentType,r=a.body;h7(e.headers,function(e,t){n.setRequestHeader(t,e)}),i&&n.setRequestHeader("Content-Type",i),e.timeout&&(n.timeout=e.timeout),n.withCredentials=!0,n.onreadystatechange=function(){if(4===n.readyState){var t,a={statusCode:n.status,text:n.responseText};if(200===n.status)try{a.json=JSON.parse(n.responseText)}catch(i){}null===(t=e.callback)||void 0===t||t.call(e,a)}},n.send(r)}}),E8&&pne.push({transport:"fetch",method:function(e){var t,n,a=null!==(t=hne(e))&&void 0!==t?t:{},i=a.contentType,r=a.body,o=a.estimatedSize,s=new Headers;h7(e.headers,function(e,t){s.append(t,e)}),i&&s.append("Content-Type",i);var l=e.url,u=null;if(x8){var c=new x8;u={signal:c.signal,timeout:setTimeout(function(){return c.abort()},e.timeout)}}E8(l,{method:(null==e?void 0:e.method)||"GET",headers:s,keepalive:"POST"===e.method&&(o||0)<65536,body:r,signal:null===(n=u)||void 0===n?void 0:n.signal}).then(function(t){return t.text().then(function(n){var a,i={statusCode:t.status,text:n};if(200===t.status)try{i.json=JSON.parse(n)}catch(r){$8.error(r)}null===(a=e.callback)||void 0===a||a.call(e,i)})}).catch(function(t){var n;$8.error(t),null===(n=e.callback)||void 0===n||n.call(e,{statusCode:0,text:t})}).finally(function(){return u?clearTimeout(u.timeout):null})}}),null!=S8&&S8.sendBeacon&&pne.push({transport:"sendBeacon",method:function(e){var t=dne(e.url,{beacon:"1"});try{var n,a=null!==(n=hne(e))&&void 0!==n?n:{},i=a.contentType,r=a.body,o="string"==typeof r?new Blob([r],{type:i}):r;S8.sendBeacon(t,o)}catch(s){}}});var fne,mne=["retriesPerformedSoFar"],vne=function(){function e(t){var n=this;e7(this,e),a7(this,"isPolling",!1),a7(this,"pollIntervalMs",3e3),a7(this,"queue",[]),this.instance=t,this.queue=[],this.areWeOnline=!0,!j8(b8)&&"onLine"in b8.navigator&&(this.areWeOnline=b8.navigator.onLine,b8.addEventListener("online",function(){n.areWeOnline=!0,n.flush()}),b8.addEventListener("offline",function(){n.areWeOnline=!1}))}return n7(e,[{key:"retriableRequest",value:function(e){var t=this,n=e.retriesPerformedSoFar,a=function(e,t){if(null==e)return{};var n,a,i=function(e,t){if(null==e)return{};var n,a,i={},r=Object.keys(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,mne);W8(n)&&n>0&&(a.url=dne(a.url,{retry_count:n})),this.instance._send_request(Q8(Q8({},a),{},{callback:function(e){var i;200!==e.statusCode&&(e.statusCode<400||e.statusCode>=500)&&(null!=n?n:0)<10?t.enqueue(Q8({retriesPerformedSoFar:n},a)):null===(i=a.callback)||void 0===i||i.call(a,e)}}))}},{key:"enqueue",value:function(e){var t=e.retriesPerformedSoFar||0;e.retriesPerformedSoFar=t+1;var n,a,i,r,o,s=(n=t,a=3e3*Math.pow(2,n),i=a/2,r=Math.min(18e5,a),o=(Math.random()-.5)*(r-i),Math.ceil(r+o)),l=Date.now()+s;this.queue.push({retryAt:l,requestOptions:e});var u="Enqueued failed request for retry in ".concat(s);navigator.onLine||(u+=" (Browser is offline)"),$8.warn(u),this.isPolling||(this.isPolling=!0,this.poll())}},{key:"poll",value:function(){var e=this;this.poller&&clearTimeout(this.poller),this.poller=setTimeout(function(){e.areWeOnline&&e.queue.length>0&&e.flush(),e.poll()},this.pollIntervalMs)}},{key:"flush",value:function(){var e=Date.now(),t=[],n=this.queue.filter(function(n){return n.retryAt<e||(t.push(n),!1)});if(this.queue=t,n.length>0){var a,i=l7(n);try{for(i.s();!(a=i.n()).done;){var r=a.value.requestOptions;this.retriableRequest(r)}}catch(o){i.e(o)}finally{i.f()}}}},{key:"unload",value:function(){this.poller&&(clearTimeout(this.poller),this.poller=void 0);var e,t=l7(this.queue);try{for(t.s();!(e=t.n()).done;){var n=e.value.requestOptions;try{this.instance._send_request(Q8(Q8({},n),{},{transport:"sendBeacon"}))}catch(a){$8.error(a)}}}catch(a){t.e(a)}finally{t.f()}this.queue=[]}}]),e}(),gne=1800,yne=function(){function e(t,n,a,i){var r;
5091e7(this,e),a7(this,"_sessionIdChangedHandlers",[]),this.config=t,this.persistence=n,this._windowId=void 0,this._sessionId=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this._sessionIdGenerator=a||f9,this._windowIdGenerator=i||f9;var o=t.persistence_name||t.token,s=t.session_idle_timeout_seconds||gne;if(W8(s)?s>gne?$8.warn("session_idle_timeout_seconds cannot be  greater than 30 minutes. Using 30 minutes instead."):s<60&&$8.warn("session_idle_timeout_seconds cannot be less than 60 seconds. Using 60 seconds instead."):($8.warn("session_idle_timeout_seconds must be a number. Defaulting to 30 minutes."),s=gne),this._sessionTimeoutMs=1e3*Math.min(Math.max(s,60),gne),this._window_id_storage_key="ph_"+o+"_window_id",this._primary_window_exists_storage_key="ph_"+o+"_primary_window_exists",this._canUseSessionStorage()){var l=E9.parse(this._window_id_storage_key),u=E9.parse(this._primary_window_exists_storage_key);l&&!u?this._windowId=l:E9.remove(this._window_id_storage_key),E9.set(this._primary_window_exists_storage_key,!0)}if(null!==(r=this.config.bootstrap)&&void 0!==r&&r.sessionID)try{var c=function(e){var t=e.replace(/-/g,"");if(32!==t.length)throw new Error("Not a valid UUID");if("7"!==t[12])throw new Error("Not a UUIDv7");return parseInt(t.substring(0,12),16)}(this.config.bootstrap.sessionID);this._setSessionId(this.config.bootstrap.sessionID,(new Date).getTime(),c)}catch(d){$8.error("Invalid sessionID in bootstrap",d)}this._listenToReloadWindow()}return n7(e,[{key:"sessionTimeoutMs",get:function(){return this._sessionTimeoutMs}},{key:"onSessionId",value:function(e){var t=this;return j8(this._sessionIdChangedHandlers)&&(this._sessionIdChangedHandlers=[]),this._sessionIdChangedHandlers.push(e),this._sessionId&&e(this._sessionId,this._windowId),function(){t._sessionIdChangedHandlers=t._sessionIdChangedHandlers.filter(function(t){return t!==e})}}},{key:"_canUseSessionStorage",value:function(){return"memory"!==this.config.persistence&&!this.persistence.disabled&&E9.is_supported()}},{key:"_setWindowId",value:function(e){e!==this._windowId&&(this._windowId=e,this._canUseSessionStorage()&&E9.set(this._window_id_storage_key,e))}},{key:"_getWindowId",value:function(){return this._windowId?this._windowId:this._canUseSessionStorage()?E9.parse(this._window_id_storage_key):null}},{key:"_setSessionId",value:function(e,t,n){e===this._sessionId&&t===this._sessionActivityTimestamp&&n===this._sessionStartTimestamp||(this._sessionStartTimestamp=n,this._sessionActivityTimestamp=t,this._sessionId=e,this.persistence.register(a7({},V7,[t,e,n])))}},{key:"_getSessionId",value:function(){if(this._sessionId&&this._sessionActivityTimestamp&&this._sessionStartTimestamp)return[this._sessionActivityTimestamp,this._sessionId,this._sessionStartTimestamp];var e=this.persistence.props[V7];return B8(e)&&2===e.length&&e.push(e[0]),e||[0,null,0]}},{key:"resetSessionId",value:function(){this._setSessionId(null,null,null)}},{key:"_listenToReloadWindow",value:function(){var e=this;null==b8||b8.addEventListener("beforeunload",function(){e._canUseSessionStorage()&&E9.remove(e._primary_window_exists_storage_key)})}},{key:"checkAndGetSessionAndWindowId",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)||(new Date).getTime(),n=i7(this._getSessionId(),3),a=n[0],i=n[1],r=n[2],o=this._getWindowId(),s=W8(r)&&r>0&&Math.abs(t-r)>864e5,l=!1,u=!i,c=!e&&Math.abs(t-a)>this.sessionTimeoutMs;u||c||s?(i=this._sessionIdGenerator(),o=this._windowIdGenerator(),$8.info("[SessionId] new session ID generated",{sessionId:i,windowId:o,changeReason:{noSessionId:u,activityTimeout:c,sessionPastMaximumLength:s}}),r=t,l=!0):o||(o=this._windowIdGenerator(),l=!0);var d=0===a||!e||s?t:a,h=0===r?(new Date).getTime():r;return this._setWindowId(o),this._setSessionId(i,d,h),l&&this._sessionIdChangedHandlers.forEach(function(e){return e(i,o,l?{noSessionId:u,activityTimeout:c,sessionPastMaximumLength:s}:void 0)}),{sessionId:i,windowId:o,sessionStartTimestamp:h,changeReason:l?{noSessionId:u,activityTimeout:c,sessionPastMaximumLength:s}:void 0}}}]),e}();!function(e){e.US="us",e.EU="eu",e.CUSTOM="custom"}(fne||(fne={}));var bne="i.posthog.com",_ne=function(){function e(t){e7(this,e),a7(this,"_regionCache",{}),this.instance=t}return n7(e,[{key:"apiHost",get:function(){var e=this.instance.config.api_host.trim().replace(/\/$/,"");return"https://app.posthog.com"===e?"https://us.i.posthog.com":e}},{key:"uiHost",get:function(){var e,t=null===(e=this.instance.config.ui_host)||void 0===e?void 0:e.replace(/\/$/,"");return t||(t=this.apiHost.replace(".".concat(bne),".posthog.com")),"https://app.posthog.com"===t?"https://us.posthog.com":t}},{key:"region",get:function(){return this._regionCache[this.apiHost]||(/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this._regionCache[this.apiHost]=fne.US:/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this._regionCache[this.apiHost]=fne.EU:this._regionCache[this.apiHost]=fne.CUSTOM),this._regionCache[this.apiHost]}},{key:"endpointFor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(t&&(t="/"===t[0]?t:"/".concat(t)),"ui"===e)return this.uiHost+t;if(this.region===fne.CUSTOM)return this.apiHost+t;var n=bne+t;switch(e){case"assets":return"https://".concat(this.region,"-assets.").concat(n);case"api":return"https://".concat(this.region,".").concat(n)}}}]),e}(),wne="posthog-js";function kne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
5091,n=t.organization,a=t.projectId,i=t.prefix,r=t.severityAllowList,o=void 0===r?["error"]:r;return function(t){var r,s,l,u,c;if("*"!==o&&!o.includes(t.level)||!e.__loaded)return t;t.tags||(t.tags={});var d=e.requestRouter.endpointFor("ui","/project/".concat(e.config.token,"/person/").concat(e.get_distinct_id()));t.tags["PostHog Person URL"]=d,e.sessionRecordingStarted()&&(t.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var h=(null===(r=t.exception)||void 0===r?void 0:r.values)||[],p={$exception_message:(null===(s=h[0])||void 0===s?void 0:s.value)||t.message,$exception_type:null===(l=h[0])||void 0===l?void 0:l.type,$exception_personURL:d,$exception_level:t.level,$sentry_event_id:t.event_id,$sentry_exception:t.exception,$sentry_exception_message:(null===(u=h[0])||void 0===u?void 0:u.value)||t.message,$sentry_exception_type:null===(c=h[0])||void 0===c?void 0:c.type,$sentry_tags:t.tags,$level:t.level};return n&&a&&(p.$sentry_url=(i||"https://sentry.io/organizations/")+n+"/issues/?project="+a+"&query="+t.event_id),e.exceptions.sendExceptionEvent(p),t}}var Cne=n7(function e(t,n,a,i,r){e7(this,e),this.name=wne,this.setupOnce=function(e){e(kne(t,{organization:n,projectId:a,prefix:i,severityAllowList:r}))}});var Sne,Tne,Ane,Ene=function(){function e(t){e7(this,e),this._instance=t}return n7(e,[{key:"doPageView",value:function(e){var t,n=this._previousPageViewProperties(e);return this._currentPath=null!==(t=null==b8?void 0:b8.location.pathname)&&void 0!==t?t:"",this._instance.scrollManager.resetContext(),this._prevPageviewTimestamp=e,n}},{key:"doPageLeave",value:function(e){return this._previousPageViewProperties(e)}},{key:"_previousPageViewProperties",value:function(e){var t=this._currentPath,n=this._prevPageviewTimestamp,a=this._instance.scrollManager.getContext();if(!n)return{};var i={};if(a){var r=a.maxScrollHeight,o=a.lastScrollY,s=a.maxScrollY,l=a.maxContentHeight,u=a.lastContentY,c=a.maxContentY;j8(r)||j8(o)||j8(s)||j8(l)||j8(u)||j8(c)||(r=Math.ceil(r),o=Math.ceil(o),s=Math.ceil(s),l=Math.ceil(l),u=Math.ceil(u),c=Math.ceil(c),i={$prev_pageview_last_scroll:o,$prev_pageview_last_scroll_percentage:r<=1?1:Ine(o/r,0,1),$prev_pageview_max_scroll:s,$prev_pageview_max_scroll_percentage:r<=1?1:Ine(s/r,0,1),$prev_pageview_last_content:u,$prev_pageview_last_content_percentage:l<=1?1:Ine(u/l,0,1),$prev_pageview_max_content:c,$prev_pageview_max_content_percentage:l<=1?1:Ine(c/l,0,1)})}return t&&(i.$prev_pageview_pathname=t),n&&(i.$prev_pageview_duration=(e.getTime()-n.getTime())/1e3),i}}]),e}();function Ine(e,t,n){return Math.max(t,Math.min(e,n))}!function(e){e.Popover="popover",e.API="api",e.Widget="widget"}(Sne||(Sne={})),function(e){e.Open="open",e.MultipleChoice="multiple_choice",e.SingleChoice="single_choice",e.Rating="rating",e.Link="link"}(Tne||(Tne={})),function(e){e.NextQuestion="next_question",e.End="end",e.ResponseBased="response_based",e.SpecificQuestion="specific_question"}(Ane||(Ane={}));var xne=function(){function e(){e7(this,e),a7(this,"events",{}),this.events={}}return n7(e,[{key:"on",value:function(e,t){var n=this;return this.events[e]||(this.events[e]=[]),this.events[e].push(t),function(){n.events[e]=n.events[e].filter(function(e){return e!==t})}}},{key:"emit",value:function(e,t){var n,a=l7(this.events[e]||[]);try{for(a.s();!(n=a.n()).done;)(0,n.value)(t)}catch(o){a.e(o)}finally{a.f()}var i,r=l7(this.events["*"]||[]);try{for(r.s();!(i=r.n()).done;)(0,i.value)(e,t)}catch(o){r.e(o)}finally{r.f()}}}]),e}(),Nne=function(){function e(t){var n=this;e7(this,e),a7(this,"_debugEventEmitter",new xne),a7(this,"checkStep",function(e,t){return n.checkStepEvent(e,t)&&n.checkStepUrl(e,t)&&n.checkStepElement(e,t)}),a7(this,"checkStepEvent",function(e,t){return null==t||!t.event||(null==e?void 0:e.event)===(null==t?void 0:t.event)}),this.instance=t,this.actionEvents=new Set,this.actionRegistry=new Set}return n7(e,[{key:"init",value:function(){var e,t,n=this;j8(null===(e=this.instance)||void 0===e?void 0:e._addCaptureHook)||(null===(t=this.instance)||void 0===t||t._addCaptureHook(function(e,t){n.on(e,t)}))}},{key:"register",value:function(e){var t,n,a=this;if(!j8(null===(t=this.instance)||void 0===t?void 0:t._addCaptureHook)&&(e.forEach(function(e){var t,n;null===(t=a.actionRegistry)||void 0===t||t.add(e),null===(n=e.steps)||void 0===n||n.forEac
5091h(function(e){var t;null===(t=a.actionEvents)||void 0===t||t.add((null==e?void 0:e.event)||"")})}),null!==(n=this.instance)&&void 0!==n&&n.autocapture)){var i,r=new Set;e.forEach(function(e){var t;null===(t=e.steps)||void 0===t||t.forEach(function(e){null!=e&&e.selector&&r.add(null==e?void 0:e.selector)})}),null===(i=this.instance)||void 0===i||i.autocapture.setElementSelectors(r)}}},{key:"on",value:function(e,t){var n,a=this;null!=t&&0!=e.length&&(this.actionEvents.has(e)||this.actionEvents.has(null==t?void 0:t.event))&&this.actionRegistry&&(null===(n=this.actionRegistry)||void 0===n?void 0:n.size)>0&&this.actionRegistry.forEach(function(e){a.checkAction(t,e)&&a._debugEventEmitter.emit("actionCaptured",e.name)})}},{key:"_addActionHook",value:function(e){this.onAction("actionCaptured",function(t){return e(t)})}},{key:"checkAction",value:function(e,t){if(null==(null==t?void 0:t.steps))return!1;var n,a=l7(t.steps);try{for(a.s();!(n=a.n()).done;){var i=n.value;if(this.checkStep(e,i))return!0}}catch(r){a.e(r)}finally{a.f()}return!1}},{key:"onAction",value:function(e,t){return this._debugEventEmitter.on(e,t)}},{key:"checkStepUrl",value:function(t,n){if(null!=n&&n.url){var a,i=null==t||null===(a=t.properties)||void 0===a?void 0:a.$current_url;if(!i||"string"!=typeof i)return!1;if(!e.matchString(i,null==n?void 0:n.url,(null==n?void 0:n.url_matching)||"contains"))return!1}return!0}},{key:"checkStepElement",value:function(t,n){if((null!=n&&n.href||null!=n&&n.tag_name||null!=n&&n.text)&&!this.getElementsList(t).some(function(t){return!(null!=n&&n.href&&!e.matchString(t.href||"",null==n?void 0:n.href,(null==n?void 0:n.href_matching)||"exact")||null!=n&&n.tag_name&&t.tag_name!==(null==n?void 0:n.tag_name)||null!=n&&n.text&&!e.matchString(t.text||"",null==n?void 0:n.text,(null==n?void 0:n.text_matching)||"exact")&&!e.matchString(t.$el_text||"",null==n?void 0:n.text,(null==n?void 0:n.text_matching)||"exact"))}))return!1;if(null!=n&&n.selector){var a,i=null==t||null===(a=t.properties)||void 0===a?void 0:a.$element_selectors;if(!i)return!1;if(!i.includes(null==n?void 0:n.selector))return!1}return!0}},{key:"getElementsList",value:function(e){return null==(null==e?void 0:e.properties.$elements)?[]:null==e?void 0:e.properties.$elements}}],[{key:"matchString",value:function(t,n,a){switch(a){case"regex":return!!b8&&N9(t,n);case"exact":return n===t;case"contains":var i=e.escapeStringRegexp(n).replace(/_/g,".").replace(/%/g,".*");return N9(t,i);default:return!1}}},{key:"escapeStringRegexp",value:function(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}}]),e}(),Pne=function(){function e(t){e7(this,e),this.instance=t,this.eventToSurveys=new Map,this.actionToSurveys=new Map}return n7(e,[{key:"register",value:function(e){var t;j8(null===(t=this.instance)||void 0===t?void 0:t._addCaptureHook)||(this.setupEventBasedSurveys(e),this.setupActionBasedSurveys(e))}},{key:"setupActionBasedSurveys",value:function(e){var t=this,n=e.filter(function(e){var t,n,a,i;return(null===(t=e.conditions)||void 0===t?void 0:t.actions)&&(null===(n=e.conditions)||void 0===n||null===(a=n.actions)||void 0===a||null===(i=a.values)||void 0===i?void 0:i.length)>0});0!==n.length&&(null==this.actionMatcher&&(this.actionMatcher=new Nne(this.instance),this.actionMatcher.init(),this.actionMatcher._addActionHook(function(e){t.onAction(e)})),n.forEach(function(e){var n,a,i,r,o,s,l,u,c,d;e.conditions&&null!==(n=e.conditions)&&void 0!==n&&n.actions&&null!==(a=e.conditions)&&void 0!==a&&null!==(i=a.actions)&&void 0!==i&&i.values&&(null===(r=e.conditions)||void 0===r||null===(o=r.actions)||void 0===o||null===(s=o.values)||void 0===s?void 0:s.length)>0&&(null===(l=t.actionMatcher)||void 0===l||l.register(e.conditions.actions.values),null===(u=e.conditions)||void 0===u||null===(c=u.actions)||void 0===c||null===(d=c.values)||void 0===d||d.forEach(function(n){if(n&&n.name){var a=t.actionToSurveys.get(n.name);a&&a.push(e.id),t.actionToSurveys.set(n.name,a||[e.id])}}))}))}},{key:"setupEventBasedSurveys",value:function(e){var t,n=this;0!==e.filter(function(e){var t,n,a,i;return(null===(t=e.conditions)||void 0===t?void 0:t.events)&&(null===(n=e.conditions)||void 0===n||null===(a=n.events)||void 0===a||null===(i=a.values)||void 0===i?void 0:i.length)>0}).length&&(null===(t=this.instance)||void 0===t||t._addCaptureHook(function(e,t){n.onEvent(e,t)}),e.forEach(function(e){var t,a,i;null===(t=e.conditions)||void 0===t||null===(a=t.events)||void 0===a||null===(i=a.values)||void 0===i||i.forEac
5091h(function(t){if(t&&t.name){var a=n.eventToSurveys.get(t.name);a&&a.push(e.id),n.eventToSurveys.set(t.name,a||[e.id])}})}))}},{key:"onEvent",value:function(t,n){var a,i,r=(null===(a=this.instance)||void 0===a||null===(i=a.persistence)||void 0===i?void 0:i.props[W7])||[];if(e.SURVEY_SHOWN_EVENT_NAME==t&&n&&r.length>0){var o,s=null==n||null===(o=n.properties)||void 0===o?void 0:o.$survey_id;if(s){var l=r.indexOf(s);l>=0&&(r.splice(l,1),this._updateActivatedSurveys(r))}}else this.eventToSurveys.has(t)&&this._updateActivatedSurveys(r.concat(this.eventToSurveys.get(t)||[]))}},{key:"onAction",value:function(e){var t,n,a=(null===(t=this.instance)||void 0===t||null===(n=t.persistence)||void 0===n?void 0:n.props[W7])||[];this.actionToSurveys.has(e)&&this._updateActivatedSurveys(a.concat(this.actionToSurveys.get(e)||[]))}},{key:"_updateActivatedSurveys",value:function(e){var t,n;null===(t=this.instance)||void 0===t||null===(n=t.persistence)||void 0===n||n.register(a7({},W7,r7(new Set(e))))}},{key:"getSurveys",value:function(){var e,t;return(null===(e=this.instance)||void 0===e||null===(t=e.persistence)||void 0===t?void 0:t.props[W7])||[]}},{key:"getEventToSurveys",value:function(){return this.eventToSurveys}},{key:"_getActionMatcher",value:function(){return this.actionMatcher}}]),e}();a7(Pne,"SURVEY_SHOWN_EVENT_NAME","survey shown");var Mne="[Surveys]",One={icontains:function(e){return!!b8&&b8.location.href.toLowerCase().indexOf(e.toLowerCase())>-1},not_icontains:function(e){return!!b8&&-1===b8.location.href.toLowerCase().indexOf(e.toLowerCase())},regex:function(e){return!!b8&&N9(b8.location.href,e)},not_regex:function(e){return!!b8&&!N9(b8.location.href,e)},exact:function(e){return(null==b8?void 0:b8.location.href)===e},is_not:function(e){return(null==b8?void 0:b8.location.href)!==e}},Rne=function(){function e(t){e7(this,e),this.instance=t,this._surveyEventReceiver=null}return n7(e,[{key:"afterDecideResponse",value:function(e){this._decideServerResponse=!!e.surveys,this.loadIfEnabled()}},{key:"loadIfEnabled",value:function(){var e,t,n,a=this,i=null==P8||null===(e=P8.__PosthogExtensions__)||void 0===e?void 0:e.generateSurveys;this.instance.config.disable_surveys||!this._decideServerResponse||i||(null==this._surveyEventReceiver&&(this._surveyEventReceiver=new Pne(this.instance)),null===(t=P8.__PosthogExtensions__)||void 0===t||null===(n=t.loadExternalDependency)||void 0===n||n.call(t,this.instance,"surveys",function(e){var t,n;if(e)return $8.error(Mne,"Could not load surveys script",e);a._surveyManager=null===(t=P8.__PosthogExtensions__)||void 0===t||null===(n=t.generateSurveys)||void 0===n?void 0:n.call(t,a.instance)}))}},{key:"getSurveys",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.instance.config.disable_surveys)return e([]);null==this._surveyEventReceiver&&(this._surveyEventReceiver=new Pne(this.instance));var a=this.instance.get_property(K7);if(a&&!n)return e(a);this.instance._send_request({url:this.instance.requestRouter.endpointFor("api","/api/surveys/?token=".concat(this.instance.config.token)),method:"GET",transport:"XHR",callback:function(n){var a;if(200!==n.statusCode||!n.json)return e([]);var i,r=n.json.surveys||[],o=r.filter(function(e){var t,n,a,i,r,o,s,l,u,c,d,h;return(null===(t=e.conditions)||void 0===t?void 0:t.events)&&(null===(n=e.conditions)||void 0===n||null===(a=n.events)||void 0===a?void 0:a.values)&&(null===(i=e.conditions)||void 0===i||null===(r=i.events)||void 0===r||null===(o=r.values)||void 0===o?void 0:o.length)>0||(null===(s=e.conditions)||void 0===s?void 0:s.actions)&&(null===(l=e.conditions)||void 0===l||null===(u=l.actions)||void 0===u?void 0:u.values)&&(null===(c=e.conditions)||void 0===c||null===(d=c.actions)||void 0===d||null===(h=d.values)||void 0===h?void 0:h.length)>0});return o.length>0&&(null===(i=t._surveyEventReceiver)||void 0===i||i.register(o)),null===(a=t.instance.persistence)||void 0===a||a.register(a7({},K7,r)),e(r)}})}},{key:"getActiveMatchingSurveys",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];
5091this.getSurveys(function(n){var a,i=n.filter(function(e){return!(!e.start_date||e.end_date)}).filter(function(e){var t,n,a,i;if(!e.conditions)return!0;var r=null===(t=e.conditions)||void 0===t||!t.url||One[null!==(n=null===(a=e.conditions)||void 0===a?void 0:a.urlMatchType)&&void 0!==n?n:"icontains"](e.conditions.url),o=null===(i=e.conditions)||void 0===i||!i.selector||(null==T8?void 0:T8.querySelector(e.conditions.selector));return r&&o}),r=null===(a=t._surveyEventReceiver)||void 0===a?void 0:a.getSurveys(),o=i.filter(function(e){var n,a,i,o,s,l,u,c,d,h;if(!e.linked_flag_key&&!e.targeting_flag_key&&!e.internal_targeting_flag_key)return!0;var p=!e.linked_flag_key||t.instance.featureFlags.isFeatureEnabled(e.linked_flag_key),f=!e.targeting_flag_key||t.instance.featureFlags.isFeatureEnabled(e.targeting_flag_key),m=(null===(n=e.conditions)||void 0===n?void 0:n.events)&&(null===(a=e.conditions)||void 0===a||null===(i=a.events)||void 0===i?void 0:i.values)&&(null===(o=e.conditions)||void 0===o||null===(s=o.events)||void 0===s?void 0:s.values.length)>0,v=(null===(l=e.conditions)||void 0===l?void 0:l.actions)&&(null===(u=e.conditions)||void 0===u||null===(c=u.actions)||void 0===c?void 0:c.values)&&(null===(d=e.conditions)||void 0===d||null===(h=d.actions)||void 0===h?void 0:h.values.length)>0,g=!m&&!v||(null==r?void 0:r.includes(e.id)),y=t._canActivateRepeatedly(e),b=!(e.internal_targeting_flag_key&&!y)||t.instance.featureFlags.isFeatureEnabled(e.internal_targeting_flag_key);return p&&f&&b&&g});return e(o)},n)}},{key:"getNextSurveyStep",value:function(e,t,n){var a,i=e.questions[t],r=t+1;if(null===(a=i.branching)||void 0===a||!a.type)return t===e.questions.length-1?Ane.End:r;if(i.branching.type===Ane.End)return Ane.End;if(i.branching.type===Ane.SpecificQuestion){if(Number.isInteger(i.branching.index))return i.branching.index}else if(i.branching.type===Ane.ResponseBased){if(i.type===Tne.SingleChoice){var o,s,l=i.choices.indexOf("".concat(n));if(null!==(o=i.branching)&&void 0!==o&&null!==(s=o.responseValues)&&void 0!==s&&s.hasOwnProperty(l)){var u=i.branching.responseValues[l];return Number.isInteger(u)?u:u===Ane.End?Ane.End:r}}else if(i.type===Tne.Rating){var c,d;if("number"!=typeof n||!Number.isInteger(n))throw new Error("The response type must be an integer");var h=function(e,t){if(3===t){if(e<1||e>3)throw new Error("The response must be in range 1-3");return 1===e?"negative":2===e?"neutral":"positive"}if(5===t){if(e<1||e>5)throw new Error("The response must be in range 1-5");return e<=2?"negative":3===e?"neutral":"positive"}if(7===t){if(e<1||e>7)throw new Error("The response must be in range 1-7");return e<=3?"negative":4===e?"neutral":"positive"}if(10===t){if(e<0||e>10)throw new Error("The response must be in range 0-10");return e<=6?"detractors":e<=8?"passives":"promoters"}throw new Error("The scale must be one of: 3, 5, 7, 10")}(n,i.scale);if(null!==(c=i.branching)&&void 0!==c&&null!==(d=c.responseValues)&&void 0!==d&&d.hasOwnProperty(h)){var p=i.branching.responseValues[h];return Number.isInteger(p)?p:p===Ane.End?Ane.End:r}}return r}return $8.warn(Mne,"Falling back to next question index due to unexpected branching type"),r}},{key:"_canActivateRepeatedly",value:function(e){var t;return K8(null===(t=P8.__PosthogExtensions__)||void 0===t?void 0:t.canActivateRepeatedly)?($8.warn(Mne,"canActivateRepeatedly is not defined, must init before calling"),!1):P8.__PosthogExtensions__.canActivateRepeatedly(e)}},{key:"canRenderSurvey",value:function(e){var t=this;K8(this._surveyManager)?$8.warn(Mne,"canActivateRepeatedly is not defined, must init before calling"):this.getSurveys(function(n){var a=n.filter(function(t){return t.id===e})[0];t._surveyManager.canRenderSurvey(a)})}},{key:"renderSurvey",value:function(e,t){var n=this;K8(this._surveyManager)?$8.warn(Mne,"canActivateRepeatedly is not defined, must init before calling"):this.getSurveys(function(a){var i=a.filter(function(t){return t.id===e})[0];n._surveyManager.renderSurvey(i,null==T8?void 0:T8.querySelector(t))})}}]),e}(),Dne=function(){function e(t){var n,a,i=this;e7(this,e),a7(this,"serverLimits",{}),a7(this,"lastEventRateLimited",!1),a7(this,"checkForLimiting",function(e){var t=e.text;
5091if(t&&t.length)try{(JSON.parse(t).quota_limited||[]).forEach(function(e){$8.info("[RateLimiter] ".concat(e||"events"," is quota limited.")),i.serverLimits[e]=(new Date).getTime()+6e4})}catch(n){return void $8.warn('[RateLimiter] could not rate limit - continuing. Error: "'.concat(null==n?void 0:n.message,'"'),{text:t})}}),this.instance=t,this.captureEventsPerSecond=(null===(n=t.config.rate_limiting)||void 0===n?void 0:n.events_per_second)||10,this.captureEventsBurstLimit=Math.max((null===(a=t.config.rate_limiting)||void 0===a?void 0:a.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond),this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}return n7(e,[{key:"clientRateLimitContext",value:function(){var e,t,n,a=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=(new Date).getTime(),r=null!==(e=null===(t=this.instance.persistence)||void 0===t?void 0:t.get_property(Y7))&&void 0!==e?e:{tokens:this.captureEventsBurstLimit,last:i};r.tokens+=(i-r.last)/1e3*this.captureEventsPerSecond,r.last=i,r.tokens>this.captureEventsBurstLimit&&(r.tokens=this.captureEventsBurstLimit);var o=r.tokens<1;return o||a||(r.tokens=Math.max(0,r.tokens-1)),!o||this.lastEventRateLimited||a||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to ".concat(this.captureEventsPerSecond," events per second and ").concat(this.captureEventsBurstLimit," events burst limit.")},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=o,null===(n=this.instance.persistence)||void 0===n||n.set_property(Y7,r),{isRateLimited:o,remainingTokens:r.tokens}}},{key:"isServerRateLimited",value:function(e){var t=this.serverLimits[e||"events"]||!1;return!1!==t&&(new Date).getTime()<t}}]),e}(),Lne=function(){return Q8({initialPathName:(null==A8?void 0:A8.pathname)||"",referringDomain:xee.referringDomain()},xee.campaignParams())},Bne=function(){function e(t,n,a){var i=this;e7(this,e),a7(this,"_onSessionIdCallback",function(e){var t=i._getStoredProps();if(!t||t.sessionId!==e){var n={sessionId:e,props:i._sessionSourceParamGenerator()};i._persistence.register(a7({},$7,n))}}),this._sessionIdManager=t,this._persistence=n,this._sessionSourceParamGenerator=a||Lne,this._sessionIdManager.onSessionId(this._onSessionIdCallback)}return n7(e,[{key:"_getStoredProps",value:function(){return this._persistence.props[$7]}},{key:"getSessionProps",value:function(){var e,t=null===(e=this._getStoredProps())||void 0===e?void 0:e.props;return t?{$client_session_initial_referring_host:t.referringDomain,$client_session_initial_pathname:t.initialPathName,$client_session_initial_utm_source:t.utm_source,$client_session_initial_utm_campaign:t.utm_campaign,$client_session_initial_utm_medium:t.utm_medium,$client_session_initial_utm_content:t.utm_content,$client_session_initial_utm_term:t.utm_term}:{}}}]),e}(),Fne=["ahrefsbot","ahrefssiteaudit","applebot","baiduspider","bingbot","bingpreview","bot.htm","bot.php","crawler","deepscan","duckduckbot","facebookexternal","facebookcatalog","gptbot","http://yandex.com/bots","hubspot","ia_archiver","linkedinbot","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","semrushbot","sitebulb","slurp","turnitin","twitterbot","vercelbot","yahoo! slurp","yandexbot","headlesschrome","cypress","Google-HotelAdsVerifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google","Bytespider;"],Vne=function(e,t){if(!e)return!1;var n=e.toLowerCase();return Fne.concat(t||[]).some(function(e){var t=e.toLowerCase();return-1!==n.indexOf(t)})},Xne=function(e,t){if(!e)return!1;var n=e.userAgent;if(n&&Vne(n,t))return!0;try{var a=null==e?void 0:e.userAgentData;if(null!=a&&a.brands&&a.brands.some(function(e){return Vne(null==e?void 0:e.brand,t)}))return!0}catch(i){}return!!e.webdriver},jne=function(){function e(){e7(this,e),this.clicks=[]}return n7(e,[{key:"isRageClick",value:function(e,t,n){var a=this.clicks[this.clicks.length-1];if(a&&Math.abs(e-a.x)+Math.abs(t-a.y)<30&&n-a.timestamp<1e3){if(this.clicks.push({x:e,y:t,timestamp:n}),3===this.clicks.length)return!0}else this.clicks=[{x:e,y:t,timestamp:n}];return!1}}]),e}();function Une(e){var t;return e.id===t9||!(null===(t=e.closest)||void 0===t||!t.call(e,"#"+t9))}var Hne=function(){function e(t){var n,a=this;e7(this,e),a7(this,"rageclicks",new jne),a7(this,"_enabledServerSide",!1),a7(this,"_initialized",!1),a7(this,"_flushInterval",null),this.instance=t,this._enabledServerSide=!(null===(n=this.instance.persistence)||void 0===n||!n.props[I7]),null==b8||b8.addEventListener("beforeunload",function(){a.flush()})}return n7(e,[{key:"flushIntervalMilliseconds",get:function(){var e=5e3;return V8(this.instance.config.capture_heatmaps)&&this.instance.config.capture_heatmaps.flush_interval_milliseconds&&(e=this.instance.config.capture_heatmaps.flush_interval_milliseconds),e}},{key:"isEnabled",get:function(){return j8(this.instance.config.capture_heatmaps)?j8(this.instance.config.enable_heatmaps)?this._enabledServerSide:this.instance.config.enable_heatmaps:!1!==this.instance.config.capture_heatmaps}},{key:"startIfEnabled",value:function(){if(this.isEnabled){if(this._initialized)return;$8.info("[heatmaps] starting..."),this._setupListeners(),this._flushInterval=setInterval(this.flush.bind(this),this.flushIntervalMilliseconds)}else{var e;clearInterval(null!==(e=this._flushInterval)&&void 0!==e?e:void 0),this.getAndClearBuffer()}}},{key:"afterDecideResponse",value:function(e){var t=!!e.heatmaps;this.instance.persistence&&this.instance.persistence.register(a7({},I7,t)),this._enabledServerSide=t,this.startIfEnabled()}},{key:"getAndClearBuffer",value:function(){var e=this.buffer;return this.buffer=void 0,e}},{key:"_setupListeners",value:function(){var e=this;b8&&T8&&(k7(T8,"click",function(t){return e._onClick(t||(null==b8?void 0:b8.event))},!1,!0),k7(T8,"mousemove",function(t){return e._onMouseMove(t||(null==b8?void 0:b8.event))},!1,!0),this._initialized=!0)}},{key:"_getProperties",value:function(e,t){var n=this.instance.scrollManager.scrollY(),a=this.instance.scrollManager.scrollX(),i=this.instance.scrollManager.scrollElement(),r=function(e,t,n){for(var a=e;a&&Uee(a)&&!Hee(a,"body");){if(a===n)return!1;if(f7(t,null==b8?void 0:b8.getComputedStyle(a).position))return!0;a=Gee(a)}return!1}(jee(e),["fixed","sticky"],i);return{x:e.clientX+(r?0:a),y:e.clientY+(r?0:n),target_fixed:r,type:t}}},{key:"_onClick",value:function(e){var t;if(!Une(e.target)){var n=this._getProperties(e,"click");null!==(t=this.rageclicks)&&void 0!==t&&t.isRageClick(e.clientX,e.clientY,(new Date).getTime())&&this._capture(Q8(Q8({},n),{},{type:"rageclick"})),this._capture(n)}}},{key:"_onMouseMove",value:function(e){var t=this;Une(e.target)||(clearTimeout(this._mouseMoveTimeout),this._mouseMoveTimeout=setTimeout(function(){t._capture(t._getProperties(e,"mousemove"))},500))}},{key:"_capture",value:function(e){if(b8){var t=b8.location.href;this.buffer=this.buffer||{},this.buffer[t]||(this.buffer[t]=[]),this.buffer[t].push(e)}}},{key:"flush",value:function(){this.buffer&&!X8(this.buffer)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}}]),e}(),zne=function(){function e(t){var n=this;e7(this,e),a7(this,"_updateScrollData",function(){var e,t,a,i;n.context||(n.context={});var r=n.scrollElement(),o=n.scrollY(),s=r?Math.max(0,r.scrollHeight-r.clientHeight):0,l=o+((null==r?void 0:r.clientHeight)||0),u=(null==r?void 0:r.scrollHeight)||0;n.context.lastScrollY=Math.ceil(o),n.context.maxScrollY=Math.max(o,null!==(e=n.context.maxScrollY)&&void 0!==e?e:0),n.context.maxScrollHeight=Math.max(s,null!==(t=n.context.maxScrollHeight)&&void 0!==t?t:0),n.context.lastContentY=l,n.context.maxContentY=Math.max(l,null!==(a=n.context.maxContentY)&&void 0!==a?a:0),n.context.maxContentHeight=Math.max(u,null!==(i=n.context.maxContentHeight)&&void 0!==i?i:0)}),this.instance=t}return n7(e,[{key:"getContext",value:function(){return this.context}},{key:"resetContext",value:function(){var e=this.context;return setTimeout(this._updateScrollData,0),e}},{key:"startMeasuringScrollPosition",value:function(){null==b8||b8.addEventListener("scroll",this._updateScrollData,!0),null==b8||b8.addEventListener("scrollend",this._updateScrollData,!0),null==b8||b8.addEventListener("resize",this._updateScrollData)}},{key:"scrollElement",value:function(){if(!this.instance.config.scroll_root_selector)return null==b8?void 0:b8.document.documentElement;var e,t=l7(B8(this.instance.config.scroll_root_selector)?this.instance.config.scroll_root_selector:[this.instance.config.scroll_root_selector]);try{for(t.s();!(e=t.n()).done;){var n=e.value,a=null==b8?void 0:b8.document.querySelector(n);if(a)return a}}catch(w7){t.e(w7)}finally{t.f()}}},{key:"scrollY",value:function(){if(this.instance.config.scroll_root_selector){var e=this.scrollElement();return e&&e.scrollTop||0}return b8&&(b8.scrollY||b8.pageYOffset||b8.document.documentElement.scrollTop)||0}},{key:"scrollX",value:function(){if(this.instance.config.scroll_root_selector){var e=this.scrollElement();return e&&e.scrollLeft||0}return b8&&(b8.scrollX||b8.pageXOffset||b8.document.documentElement.scrollLeft)||0}}]),e}(),Kne="$copy_autocapture";function Wne(e,t){return t.length>e?t.slice(0,e)+"...":t}var Gne,qne=function(){function e(t){e7(this,e),a7(this,"_initialized",!1),a7(this,"_isDisabledServerSide",null),a7(this,"rageclicks",new jne),a7(this,"_elementsC
5091hainAsString",!1),this.instance=t,this._elementSelectors=null}return n7(e,[{key:"config",get:function(){var e,t,n=V8(this.instance.config.autocapture)?this.instance.config.autocapture:{};return n.url_allowlist=null===(e=n.url_allowlist)||void 0===e?void 0:e.map(function(e){return new RegExp(e)}),n.url_ignorelist=null===(t=n.url_ignorelist)||void 0===t?void 0:t.map(function(e){return new RegExp(e)}),n}},{key:"_addDomEventHandlers",value:function(){var e=this;if(this.isBrowserSupported()){if(b8&&T8){var t=function(t){t=t||(null==b8?void 0:b8.event);try{e._captureEvent(t)}catch(w7){$8.error("Failed to capture event",w7)}},n=function(t){t=t||(null==b8?void 0:b8.event),e._captureEvent(t,Kne)};k7(T8,"submit",t,!1,!0),k7(T8,"change",t,!1,!0),k7(T8,"click",t,!1,!0),this.config.capture_copied_text&&(k7(T8,"copy",n,!1,!0),k7(T8,"cut",n,!1,!0))}}else $8.info("Disabling Automatic Event Collection because this browser is not supported")}},{key:"startIfEnabled",value:function(){this.isEnabled&&!this._initialized&&(this._addDomEventHandlers(),this._initialized=!0)}},{key:"afterDecideResponse",value:function(e){e.elementsChainAsString&&(this._elementsC
5091hainAsString=e.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register(a7({},E7,!!e.autocapture_opt_out)),this._isDisabledServerSide=!!e.autocapture_opt_out,this.startIfEnabled()}},{key:"setElementSelectors",value:function(e){this._elementSelectors=e}},{key:"getElementSelectors",value:function(e){var t,n=[];return null===(t=this._elementSelectors)||void 0===t||t.forEach(function(t){var a=null==T8?void 0:T8.querySelectorAll(t);null==a||a.forEach(function(a){e===a&&n.push(t)})}),n}},{key:"isEnabled",get:function(){var e,t,n=null===(e=this.instance.persistence)||void 0===e?void 0:e.props[E7],a=this._isDisabledServerSide;if(z8(a)&&!G8(n)&&!this.instance.config.advanced_disable_decide)return!1;var i=null!==(t=this._isDisabledServerSide)&&void 0!==t?t:!!n;return!!this.instance.config.autocapture&&!i}},{key:"_previousElementSibling",value:function(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do{t=t.previousSibling}while(t&&!Uee(t));return t}},{key:"_getAugmentPropertiesFromElement",value:function(e){if(!qee(e))return{};var t={};return h7(e.attributes,function(e){if(e.name&&0===e.name.indexOf("data-ph-capture-attribute")){var n=e.name.replace("data-ph-capture-attribute-",""),a=e.value;
5091n&&a&&nte(a)&&(t[n]=a)}}),t}},{key:"_getPropertiesFromElement",value:function(e,t,n){var a,i=e.tagName.toLowerCase(),r={tag_name:i};Wee.indexOf(i)>-1&&!n&&("a"===i.toLowerCase()||"button"===i.toLowerCase()?r.$el_text=Wne(1024,ate(e)):r.$el_text=Wne(1024,Xee(e)));var o=Fee(e);o.length>0&&(r.classes=o.filter(function(e){return""!==e}));var s=null===(a=this.config)||void 0===a?void 0:a.element_attribute_ignorelist;h7(e.attributes,function(n){var a;if((!$ee(e)||-1!==["name","id","class","aria-label"].indexOf(n.name))&&(null==s||!s.includes(n.name))&&!t&&nte(n.value)&&(a=n.name,!U8(a)||"_ngcontent"!==a.substring(0,10)&&"_nghost"!==a.substring(0,7))){var i=n.value;"class"===n.name&&(i=Lee(i).join(" ")),r["attr__"+n.name]=Wne(1024,i)}});for(var l=1,u=1,c=e;c=this._previousElementSibling(c);)l++,c.tagName===e.tagName&&u++;return r.nth_child=l,r.nth_of_type=u,r}},{key:"_getDefaultProperties",value:function(e){return{$event_type:e,$ce_version:1}}},{key:"_captureEvent",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$autocapture";if(this.isEnabled){var a,i=jee(e);zee(i)&&(i=i.parentNode||null),"$autocapture"===n&&"click"===e.type&&e instanceof MouseEvent&&this.instance.config.rageclick&&null!==(a=this.rageclicks)&&void 0!==a&&a.isRageClick(e.clientX,e.clientY,(new Date).getTime())&&this._captureEvent(e,"$rageclick");var r=n===Kne;if(i&&function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;if(!b8||!e||Hee(e,"html")||!Uee(e))return!1;if(null!=n&&n.url_allowlist&&!Bee(n.url_allowlist))return!1;if(null!=n&&n.url_ignorelist&&Bee(n.url_ignorelist))return!1;if(null!=n&&n.dom_event_allowlist){var r=n.dom_event_allowlist;if(r&&!r.some(function(e){return t.type===e}))return!1}for(var o=!1,s=[e],l=!0,u=e;u.parentNode&&!Hee(u,"body");)if(Kee(u.parentNode))s.push(u.parentNode.host),u=u.parentNode.host;else{if(!(l=Gee(u)))break;if(a||Wee.indexOf(l.tagName.toLowerCase())>-1)o=!0;else{var c=b8.getComputedStyle(l);c&&"pointer"===c.getPropertyValue("cursor")&&(o=!0)}s.push(l),u=l}if(!function(e,t){var n=null==t?void 0:t.element_allowlist;if(j8(n))return!0;var a,i=l7(e);try{var r=function(){var e=a.value;if(n.some(function(t){return e.tagName.toLowerCase()===t}))return{v:!0}};for(i.s();!(a=i.n()).done;){var o=r();if("object"===Z8(o))return o.v}}catch(s){i.e(s)}finally{i.f()}return!1}(s,n))return!1;if(!function(e,t){var n=null==t?void 0:t.css_selector_allowlist;if(j8(n))return!0;var a,i=l7(e);try{var r=function(){var e=a.value;if(n.some(function(t){return e.matches(t)}))return{v:!0}};for(i.s();!(a=i.n()).done;){var o=r();if("object"===Z8(o))return o.v}}catch(s){i.e(s)}finally{i.f()}return!1}(s,n))return!1;var d=b8.getComputedStyle(e);if(d&&"pointer"===d.getPropertyValue("cursor")&&"click"===t.type)return!0;var h=e.tagName.toLowerCase();switch(h){case"html":return!1;case"form":return(i||["submit"]).indexOf(t.type)>=0;case"input":case"select":case"textarea":return(i||["change","click"]).indexOf(t.type)>=0;default:return o?(i||["click"]).indexOf(t.type)>=0:(i||["click"]).indexOf(t.type)>=0&&(Wee.indexOf(h)>-1||"true"===e.getAttribute("contenteditable"))}}(i,e,this.config,r,r?["copy","cut"]:void 0)){for(var o,s,l=[i],u=i;u.parentNode&&!Hee(u,"body");)Kee(u.parentNode)?(l.push(u.parentNode.host),u=u.parentNode.host):(l.push(u.parentNode),u=u.parentNode);var c,d,h=[],p={},f=!1;if(h7(l,function(e){var n=qee(e);"a"===e.tagName.toLowerCase()&&(c=e.getAttribute("href"),c=n&&nte(c)&&c),f7(Fee(e),"ph-no-capture")&&(f=!0),h.push(t._getPropertiesFromElement(e,t.instance.config.mask_all_element_attributes,t.instance.config.mask_all_text));var a=t._getAugmentPropertiesFromElement(e);p7(p,a)}),this.instance.config.mask_all_text||("a"===i.tagName.toLowerCase()||"button"===i.tagName.toLowerCase()?h[0].$el_text=ate(i):h[0].$el_text=Xee(i)),c){var m,v;h[0].attr__href=c;var g=null===(m=x9(c))||void 0===m?void 0:m.host,y=null==b8||null===(v=b8.location)||void 0===v?void 0:v.host;g&&y&&g!==y&&(d=c)}if(f)return!1;
5091var b=p7(this._getDefaultProperties(e.type),this._elementsChainAsString?{$elements_chain:rte(h)}:{$elements:h},null!==(o=h[0])&&void 0!==o&&o.$el_text?{$el_text:null===(s=h[0])||void 0===s?void 0:s.$el_text}:{},d&&"click"===e.type?{$external_click_url:d}:{},p),_=this.getElementSelectors(i);if(_&&_.length>0&&(b.$element_selectors=_),n===Kne){var w,k=Vee(null==b8||null===(w=b8.getSelection())||void 0===w?void 0:w.toString()),C=e.type||"clipboard";if(!k)return!1;b.$selected_content=k,b.$copy_type=C}return this.instance.capture(n,b),!0}}}},{key:"isBrowserSupported",value:function(){return F8(null==T8?void 0:T8.querySelectorAll)}}]),e}(),$ne=function(){function e(t){var n=this;e7(this,e),a7(this,"_restoreXHRPatch",void 0),a7(this,"_restoreFetchPatch",void 0),a7(this,"_startCapturing",function(){var e,t,a,i;j8(n._restoreXHRPatch)&&(null===(e=P8.__PosthogExtensions__)||void 0===e||null===(t=e.tracingHeadersPatchFns)||void 0===t||t._patchXHR(n.instance.sessionManager)),j8(n._restoreFetchPatch)&&(null===(a=P8.__PosthogExtensions__)||void 0===a||null===(i=a.tracingHeadersPatchFns)||void 0===i||i._patchFetch(n.instance.sessionManager))}),this.instance=t}return n7(e,[{key:"_loadScript",value:function(e){var t,n,a;null!==(t=P8.__PosthogExtensions__)&&void 0!==t&&t.tracingHeadersPatchFns&&e(),null===(n=P8.__PosthogExtensions__)||void 0===n||null===(a=n.loadExternalDependency)||void 0===a||a.call(n,this.instance,"tracing-headers",function(t){if(t)return $8.error("[TRACING-HEADERS] failed to load script",t);e()})}},{key:"startIfEnabledOrStop",value:function(){var e,t;this.instance.config.__add_tracing_headers?this._loadScript(this._startCapturing):(null===(e=this._restoreXHRPatch)||void 0===e||e.call(this),null===(t=this._restoreFetchPatch)||void 0===t||t.call(this),this._restoreXHRPatch=void 0,this._restoreFetchPatch=void 0)}}]),e}();!function(e){e[e.PENDING=-1]="PENDING",e[e.DENIED=0]="DENIED",e[e.GRANTED=1]="GRANTED"}(Gne||(Gne={}));var Yne=function(){function e(t){e7(this,e),this.instance=t}return n7(e,[{key:"config",get:function(){return this.instance.config}},{key:"consent",get:function(){return this.getDnt()?Gne.DENIED:this.storedConsent}},{key:"isOptedOut",value:function(){return this.consent===Gne.DENIED||this.consent===Gne.PENDING&&this.config.opt_out_capturing_by_default}},{key:"isOptedIn",value:function(){return!this.isOptedOut()}},{key:"optInOut",value:function(e){this.storage.set(this.storageKey,e?1:0,this.config.cookie_expiration,this.config.cross_subdomain_cookie,this.config.secure_cookie)}},{key:"reset",value:function(){this.storage.remove(this.storageKey,this.config.cross_subdomain_cookie)}},{key:"storageKey",get:function(){var e=this.instance.config,t=e.token;return(e.opt_out_capturing_cookie_prefix||"__ph_opt_in_out_")+t}},{key:"storedConsent",get:function(){var e=this.storage.get(this.storageKey);return"1"===e?Gne.GRANTED:"0"===e?Gne.DENIED:Gne.PENDING}},{key:"storage",get:function(){if(!this._storage){var e=this.config.opt_out_capturing_persistence_type;this._storage="localStorage"===e?w9:b9;var t="localStorage"===e?b9:w9;t.get(this.storageKey)&&(this._storage.get(this.storageKey)||this.optInOut("1"===t.get(this.storageKey)),t.remove(this.storageKey,this.config.cross_subdomain_cookie))}return this._storage}},{key:"getDnt",value:function(){return!!this.config.respect_dnt&&!!C7([null==S8?void 0:S8.doNotTrack,null==S8?void 0:S8.msDoNotTrack,P8.doNotTrack],function(e){return f7([!0,1,"1","yes"],e)})}}]),e}(),Jne="[Exception Autocapture]",Qne=function(){function e(t){var n,a=this;e7(this,e),a7(this,"originalOnUnhandledRejectionHandler",void 0),a7(this,"startCapturing",function(){var e,t,n,i;if(b8&&a.isEnabled&&!a.hasHandlers&&!a.isCapturing){var r=null===(e=P8.__PosthogExtensions__)||void 0===e||null===(t=e.errorWrappingFunctions)||void 0===t?void 0:t.wrapOnError,o=null===(n=P8.__PosthogExtensions__)||void 0===n||null===(i=n.errorWrappingFunctions)||void 0===i?void 0:i.wrapUnhandledRejection;if(r&&o)try{a.unwrapOnError=r(a.captureException.bind(a)),a.unwrapUnhandledRejection=o(a.captureException.bind(a))}catch(w7){$8.error(Jne+" failed to start",w7),a.stopCapturing()}else $8.error(Jne+" failed to load error wrapping functions - cannot start")}}),this.instance=t,this.remoteEnabled=!(null===(n=this.instance.persistence)||void 0===n||!n.props[x7]),this.startIfEnabled()}return n7(e,[{key:"isEnabled",get:function(){var e;return null!==(e=this.remoteEnabled)&&void 0!==e&&e}},{key:"isCapturing",get:function(){var e;return!(null==b8||null===(e=b8.onerror)||void 0===e||!e.__POSTHOG_INSTRUMENTED__)}},{key:"hasHandlers",get:function(){return this.originalOnUnhandledRejectionHandler||this.unwrapOnError}},{key:"startIfEnabled",value:function(){this.isEnabled&&!this.isCapturing&&($8.info(Jne+" enabled, starting..."),this.loadScript(this.startCapturing))}},{key:"loadScript",value:function(e){var t,n;this.hasHandlers&&e(),null===(t=P8.__PosthogExtensions__)||void 0===t||null===(n=t.loadExternalDependency)||void 0===n||n.call(t,this.instance,"exception-autocapture",function(t){if(t)return $8.error(Jne+" failed to load script",t);e()})}},{key:"stopCapturing",value:function(){var e,t;null===(e=this.unwrapOnError)||void 0===e||e.call(this),null===(t=this.unwrapUnhandledRejection)||void 0===t||t.call(this)}},{key:"afterDecideResponse",value:function(e){var t=e.autocaptureExceptions;this.remoteEnabled=!!t||!1,this.instance.persistence&&this.instance.persistence.register(a7({},x7,this.remoteEnabled)),this.startIfEnabled()}},{key:"captureException",value:function(e){var t=this.instance.requestRouter.endpointFor("ui");e.$exception_personURL="".concat(t,"/project/").concat(this.instance.config.token,"/person/").concat(this.instance.get_distinct_id()),this.instance.exceptions.sendExceptionEvent(e)}}]),e}(),Zne=9e5,eae="[Web Vitals]",tae=function(){function e(t){var n,a=this;e7(this,e),a7(this,"_enabledServerSide",!1),a7(this,"_initialized",!1),a7(this,"buffer",{url:void 0,metrics:[],firstMetricTimestamp:void 0}),a7(this,"_flushToCapture",function(){clearTimeout(a._delayedFlushTimer),0!==a.buffer.metrics.length&&(a.instance.capture("$web_vitals",a.buffer.metrics.reduce(function(e,t){var n;return Q8(Q8({},e),{},(a7(n={},"$web_vitals_".concat(t.name,"_event"),Q8({},t)),a7(n,"$web_vitals_".concat(t.name,"_value"),t.value),n))},{})),a.buffer={url:void 0,metrics:[],firstMetricTimestamp:void 0})}),a7(this,"_addToBuffer",function(e){var t,n=null===(t=a.instance.sessionManager)||void 0===t?void 0:t.checkAndGetSessionAndWindowId(!0);if(j8(n))$8.error(eae+"Could not read session ID. Dropping metrics!");else{a.buffer=a.buffer||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var i=a._currentURL();j8(i)||(K8(null==e?void 0:e.name)||K8(null==e?void 0:e.value)?$8.error(eae+"Invalid metric received",e):a._maxAllowedValue&&e.value>=a._maxAllowedValue?$8.error(eae+"Ignoring metric with value >= "+a._maxAllowedValue,e):(a.buffer.url!==i&&(a._flushToCapture(),a._delayedFlushTimer=setTimeout(a._flushToCapture,8e3)),j8(a.buffer.url)&&(a.buffer.url=i),a.buffer.firstMetricTimestamp=j8(a.buffer.firstMetricTimestamp)?Date.now():a.buffer.firstMetricTimestamp,a.buffer.metrics.push(Q8(Q8({},e),{},{$current_url:i,$session_id:n.sessionId,$window_id:n.windowId,timestamp:Date.now()})),a.buffer.metrics.length===a.allowedMetrics.length&&a._flushToCapture()))}}),a7(this,"_startCapturing",function(){var e,t,n,i,r=P8.__PosthogExtensions__;if(!j8(r)&&!j8(r.postHogWebVitalsCallbacks)){var o=r.postHogWebVitalsCallbacks;e=o.onLCP,t=o.onCLS,n=o.onFCP,i=o.onINP}e&&t&&n&&i?(a.allowedMetrics.indexOf("LCP")>-1&&e(a._addToBuffer.bind(a)),a.allowedMetrics.indexOf("CLS")>-1&&t(a._addToBuffer.bind(a)),a.allowedMetrics.indexOf("FCP")>-1&&n(a._addToBuffer.bind(a)),a.allowedMetrics.indexOf("INP")>-1&&i(a._addToBuffer.bind(a)),a._initialized=!0):$8.error(eae+"web vitals callbacks not loaded - not starting")}),this.instance=t,this._enabledServerSide=!(null===(n=this.instance.persistence)||void 0===n||!n.props[P7]),this.startIfEnabled()}return n7(e,[{key:"allowedMetrics",get:function(){var e,t,n=V8(this.instance.config.capture_performance)?null===(e=this.instance.config.capture_performance)||void 0===e?void 0:e.web_vitals_allowed_metrics:void 0;return j8(n)?(null===(t=this.instance.persistence)||void 0===t?void 0:t.props[M7])||["CLS","FCP","INP","LCP"]:n}},{key:"_maxAllowedValue",get:function(){var e=V8(this.instance.config.capture_performance)&&W8(this.instance.config.capture_performance.__web_vitals_max_value)?this.instance.config.capture_performance.__web_vitals_max_value:Zne;return 0<e&&e<=6e4?Zne:e}},{key:"isEnabled",get:function(){var e=V8(this.instance.config.capture_performance)?this.instance.config.capture_performance.web_vitals:void 0;return G8(e)?e:this._enabledServerSide}},{key:"startIfEnabled",value:function(){this.isEnabled&&!this._initialized&&($8.info(eae+" enabled, starting..."),this.loadScript(this._startCapturing))}},{key:"afterDecideResponse",value:function(e){var t=V8(e.capturePerformance)&&!!e.capturePerformance.web_vitals,n=V8(e.capturePerformance)?e.capturePerformance.web_vitals_allowed_metrics:void 0;this.instance.persistence&&(this.instance.persistence.register(a7({},P7,t)),this.instance.persistence.register(a7({},M7,n))),this._enabledServerSide=t,this.startIfEnabled()}},{key:"loadScript",value:function(e){var t,n,a;null!==(t=P8.__PosthogExtensions__)&&void 0!==t&&t.postHogWebVitalsCallbacks&&e(),null===(n=P8.__PosthogExtensions__)||void 0===n||null===(a=n.loadExternalDependency)||void 0===a||a.call(n,this.instance,"web-vitals",function(t){t?$8.error(eae+" failed to load script",t):e()})}},{key:"_currentURL",value:function(){var e=b8?b8.location.href:void 0;return e||$8.error(eae+"Could not determine current URL"),e}}]),e}(),nae={icontains:function(e,t){return!!b8&&t.href.toLowerCase().indexOf(e.toLowerCase())>-1},not_icontains:function(e,t){return!!b8&&-1===t.href.toLowerCase().indexOf(e.toLowerCase())},regex:function(e,t){return!!b8&&N9(t.href,e)},not_regex:function(e,t){return!!b8&&!N9(t.href,e)},exact:function(e,t){return t.href===e},is_not:function(e,t){return t.href!==e}},aae=function(){function e(t){var n=this;e7(this,e),a7(this,"getWebExperimentsAndEvaluateDisplayLogic",function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];n.getWebExperiments(function(t){e.logInfo("retrieved web experiments from the server"),n._flagToExperiments=new Map,t.forEach(function(t){if(t.feature_flag_
5091key&&n._featureFlags&&n._featureFlags[t.feature_flag_key]){var a;n._flagToExperiments&&(e.logInfo("setting flag key ",t.feature_flag_key," to web experiment ",t),null===(a=n._flagToExperiments)||void 0===a||a.set(t.feature_flag_key,t));var i=n._featureFlags[t.feature_flag_key];i&&t.variants[i]&&n.applyTransforms(t.name,i,t.variants[i].transforms)}else if(t.variants)for(var r in t.variants){var o=t.variants[r];e.matchesTestVariant(o)&&n.applyTransforms(t.name,r,o.transforms)}})},t)}),this.instance=t,this.instance.onFeatureFlags&&this.instance.onFeatureFlags(function(e){n.applyFeatureFlagChanges(e)}),this._flagToExperiments=new Map}return n7(e,[{key:"applyFeatureFlagChanges",value:function(t){var n=this;K8(this._flagToExperiments)||this.instance.config.disable_web_experiments||(e.logInfo("applying feature flags",t),t.forEach(function(e){var t;if(n._flagToExperiments&&null!==(t=n._flagToExperiments)&&void 0!==t&&t.has(e)){var a,i=n.instance.getFeatureFlag(e),r=null===(a=n._flagToExperiments)||void 0===a?void 0:a.get(e);i&&null!=r&&r.variants[i]&&n.applyTransforms(r.name,i,r.variants[i].transforms)}}))}},{key:"afterDecideResponse",value:function(t){this._is_bot()?e.logInfo("Refusing to render web experiment since the viewer is a likely bot"):(this._featureFlags=t.featureFlags,this.loadIfEnabled(),this.previewWebExperiment())}},{key:"previewWebExperiment",value:function(){var t=this,n=e.getWindowLocation();if(null!=n&&n.search){var a=P9(null==n?void 0:n.search,"__experiment_id"),i=P9(null==n?void 0:n.search,"__experiment_variant");a&&i&&(e.logInfo("previewing web experiments ".concat(a," && ").concat(i)),this.getWebExperiments(function(e){t.showPreviewWebExperiment(parseInt(a),i,e)},!1,!0))}}},{key:"loadIfEnabled",value:function(){this.instance.config.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}},{key:"getWebExperiments",value:function(e,t,n){if(this.instance.config.disable_web_experiments&&!n)return e([]);var a=this.instance.get_property("$web_experiments");if(a&&!t)return e(a);this.instance._send_request({url:this.instance.requestRouter.endpointFor("api","/api/web_experiments/?token=".concat(this.instance.config.token)),method:"GET",transport:"XHR",callback:function(t){if(200!==t.statusCode||!t.json)return e([]);var n=t.json.experiments||[];return e(n)}})}},{key:"showPreviewWebExperiment",value:function(t,n,a){var i=a.filter(function(e){return e.id===t});i&&i.length>0&&(e.logInfo("Previewing web experiment [".concat(i[0].name,"] with variant [").concat(n,"]")),this.applyTransforms(i[0].name,n,i[0].variants[n].transforms,!0))}},{key:"applyTransforms",value:function(t,n,a,i){var r,o=this;this._is_bot()?e.logInfo("Refusing to render web experiment since the viewer is a likely bot"):"control"!==n?a.forEach(function(a){if(a.selector){var r;e.logInfo("applying transform of variant ".concat(n," for experiment ").concat(t," "),a);var s,l=0,u=null===(r=document)||void 0===r?void 0:r.querySelectorAll(a.selector);null==u||u.forEach(function(e){var t=e;l+=1,a.attributes&&a.attributes.forEach(function(e){switch(e.name){case"text":t.innerText=e.value;break;case"html":t.innerHTML=e.value;break;case"cssClass":t.className=e.value;break;default:t.setAttribute(e.name,e.value)}}),a.text&&(t.innerText=a.text),a.html&&(t.parentElement?t.parentElement.innerHTML=a.html:t.innerHTML=a.html),a.css&&t.setAttribute("style",a.css)}),o.instance&&o.instance.capture&&o.instance.capture("$web_experiment_applied",{$web_experiment_name:t,$web_experiment_variant:n,$web_experiment_preview:i,$web_experiment_document_url:null===(s=e.getWindowLocation())||void 0===s?void 0:s.href,$web_experiment_elements_modified:l})}}):(e.logInfo("Control variants leave the page unmodified."),this.instance&&this.instance.capture&&this.instance.capture("$web_experiment_applied",{$web_experiment_name:t,$web_experiment_preview:i,$web_experiment_variant:n,$web_experiment_document_url:null===(r=e.getWindowLocation())||void 0===r?void 0:r.href,$web_experiment_elements_modified:0}))}},{key:"_is_bot",value:function(){return S8&&this.instance?Xne(S8,this.instance.config.custom_blocked_useragents):void 0}}],[{key:"matchesTestVariant",value:function(t){return!K8(t.conditions)&&e.matchUrlConditions(t)&&e.matchUTMConditions(t)}},{key:"matchUrlConditions",value:function(t){var n;if(K8(t.conditions)||K8(null===(n=t.conditions)||void 0===n?void 0:n.url))return!0;var a,i,r,o=e.getWindowLocation();
5091return!!o&&(null===(a=t.conditions)||void 0===a||!a.url||nae[null!==(i=null===(r=t.conditions)||void 0===r?void 0:r.urlMatchType)&&void 0!==i?i:"icontains"](t.conditions.url,o))}},{key:"getWindowLocation",value:function(){return null==b8?void 0:b8.location}},{key:"matchUTMConditions",value:function(e){var t;if(K8(e.conditions)||K8(null===(t=e.conditions)||void 0===t?void 0:t.utm))return!0;var n=xee.campaignParams();if(n.utm_source){var a,i,r,o,s,l,u,c,d,h,p,f,m,v,g,y,b=null===(a=e.conditions)||void 0===a||null===(i=a.utm)||void 0===i||!i.utm_campaign||(null===(r=e.conditions)||void 0===r||null===(o=r.utm)||void 0===o?void 0:o.utm_campaign)==n.utm_campaign,_=null===(s=e.conditions)||void 0===s||null===(l=s.utm)||void 0===l||!l.utm_source||(null===(u=e.conditions)||void 0===u||null===(c=u.utm)||void 0===c?void 0:c.utm_source)==n.utm_source,w=null===(d=e.conditions)||void 0===d||null===(h=d.utm)||void 0===h||!h.utm_medium||(null===(p=e.conditions)||void 0===p||null===(f=p.utm)||void 0===f?void 0:f.utm_medium)==n.utm_medium,k=null===(m=e.conditions)||void 0===m||null===(v=m.utm)||void 0===v||!v.utm_term||(null===(g=e.conditions)||void 0===g||null===(y=g.utm)||void 0===y?void 0:y.utm_term)==n.utm_term;return b&&w&&k&&_}return!1}},{key:"logInfo",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];$8.info("[WebExperiments] ".concat(e),n)}}]),e}(),iae=function(){function e(t){var n;e7(this,e),this.instance=t,this._endpointSuffix=(null===(n=this.instance.persistence)||void 0===n?void 0:n.props[N7])||"/e/"}return n7(e,[{key:"endpoint",get:function(){return this.instance.requestRouter.endpointFor("api",this._endpointSuffix)}},{key:"afterDecideResponse",value:function(e){var t=e.autocaptureExceptions;this._endpointSuffix=V8(t)&&t.endpoint||"/e/",this.instance.persistence&&this.instance.persistence.register(a7({},N7,this._endpointSuffix))}},{key:"sendExceptionEvent",value:function(e){this.instance.capture("$exception",e,{_noTruncate:!0,_batchKey:"exceptionEvent",_url:this.endpoint})}}]),e}(),rae={},oae=function(){},sae="posthog",lae=!une&&-1===(null==N8?void 0:N8.indexOf("MSIE"))&&-1===(null==N8?void 0:N8.indexOf("Mozilla")),uae=function(){var e,t,n;return{api_host:"https://us.i.posthog.com",ui_host:null,token:"",autocapture:!0,rageclick:!0,cross_subdomain_cookie:(t=null==T8?void 0:T8.location,n=null==t?void 0:t.hostname,!!U8(n)&&"herokuapp.com"!==n.split(".").slice(-2).join(".")),persistence:"localStorage+cookie",persistence_name:"",loaded:oae,store_google:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageview:!0,capture_pageleave:"if_capture_pageview",debug:A8&&U8(null==A8?void 0:A8.search)&&-1!==A8.search.indexOf("__posthog_debug=true")||!1,verbose:!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,enable_recording_console_log:void 0,secure_cookie:"https:"===(null==b8||null===(e=b8.location)||void 0===e?void 0:e.protocol),ip:!0,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},inapp_protocol:"//",inapp_link_new_window:!1,request_batching:!0,properties_string_max_length:65535,session_recording:{},mask_all_element_attributes:!1,mask_all_text:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,on_request_error:function(e){var t="Bad HTTP status: "+e.statusCode+" "+e.text;$8.error(t)},get_device_id:function(e){return e},_onCapture:oae,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:"always",__add_tracing_headers:!1}},cae=function(e){var t={};j8(e.process_person)||(t.person_profiles=e.process_person),j8(e.xhr_headers)||(t.request_headers=e.x
5091hr_headers),j8(e.cookie_name)||(t.persistence_name=e.cookie_name),j8(e.disable_cookie)||(t.disable_persistence=e.disable_cookie);var n=p7({},t,e);return B8(e.property_blacklist)&&(j8(e.property_denylist)?n.property_denylist=e.property_blacklist:B8(e.property_denylist)?n.property_denylist=[].concat(r7(e.property_blacklist),r7(e.property_denylist)):$8.error("Invalid value for property_denylist config: "+e.property_denylist)),n},dae=function(){function e(){e7(this,e),a7(this,"__forceAllowLocalhost",!1)}return n7(e,[{key:"_forceAllowLocalhost",get:function(){return this.__forceAllowLocalhost},set:function(e){$8.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}]),e}(),hae=function(){function e(){var t=this;e7(this,e),a7(this,"webPerformance",new dae),a7(this,"version",M8.LIB_VERSION),a7(this,"_internalEventEmitter",new xne),this.config=uae(),this.decideEndpointWasHit=!1,this.SentryIntegration=Cne,this.sentryIntegration=function(e){return n=kne(t,e),{name:wne,processEvent:function(e){return n(e)}};var n},this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this._initialPageviewCaptured=!1,this.featureFlags=new s9(this),this.toolbar=new sne(this),this.scrollManager=new zne(this),this.pageViewManager=new Ene(this),this.surveys=new Rne(this),this.experiments=new aae(this),this.exceptions=new iae(this),this.rateLimiter=new Dne(this),this.requestRouter=new _ne(this),this.consent=new Yne(this),this.people={set:function(e,n,a){var i=U8(e)?a7({}
5091,e,n):e;t.setPersonProperties(i),null==a||a({})},set_once:function(e,n,a){var i=U8(e)?a7({},e,n):e;t.setPersonProperties(void 0,i),null==a||a({})}},this.on("eventCaptured",function(e){return $8.info("send",e)})}return n7(e,[{key:"init",value:function(t,n,a){if(a&&a!==sae){var i,r=null!==(i=rae[a])&&void 0!==i?i:new e;return r._init(t,n,a),rae[a]=r,rae[sae][a]=r,r}return this._init(t,n,a)}},{key:"_init",value:function(e){var t,n,a=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if(j8(e)||H8(e))return $8.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return $8.warn("You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},this._triggered_notifs=[],this.set_config(p7({},uae(),cae(i),{name:r,token:e})),this.config.on_xhr_error&&$8.error("[posthog] on_xhr_error is deprecated. Use on_request_error instead"),this.compression=i.disable_compression?void 0:_7.GZipJS,this.persistence=new Pee(this.config),this.sessionPersistence="sessionStorage"===this.config.persistence?this.persistence:new Pee(Q8(Q8({},this.config),{},{persistence:"sessionStorage"}));var o=Q8({},this.persistence.props),s=Q8({},this.sessionPersistence.props);if(this._requestQueue=new lne(function(e){return a._send_retriable_request(e)}),this._retryQueue=new vne(this),this.__request_queue=[],this.sessionManager=new yne(this.config,this.persistence),this.sessionPropsManager=new Bne(this.sessionManager,this.persistence),new $ne(this).startIfEnabledOrStop(),this.sessionRecording=new ane(this),this.sessionRecording.startIfEnabledOrStop(),this.config.disable_scroll_properties||this.scrollManager.startMeasuringScrollPosition(),this.autocapture=new qne(this),this.autocapture.startIfEnabled(),this.surveys.loadIfEnabled(),this.heatmaps=new Hne(this),this.heatmaps.startIfEnabled(),this.webVitalsAutocapture=new tae(this),this.exceptionObserver=new Qne(this),this.exceptionObserver.startIfEnabled(),M8.DEBUG=M8.DEBUG||this.config.debug,M8.DEBUG&&$8.info("Starting in debug mode",{this:this,config:i,thisC:Q8({},this.config),p:o,s:s}),this._sync_opt_out_with_persistence(),void 0!==(null===(t=i.bootstrap)||void 0===t?void 0:t.distinctID)){var l,u,c=this.config.get_device_id(f9()),d=null!==(l=i.bootstrap)&&void 0!==l&&l.isIdentifiedID?c:i.bootstrap.distinctID;this.persistence.set_property(q7,null!==(u=i.bootstrap)&&void 0!==u&&u.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:i.bootstrap.distinctID,$device_id:d})}if(this._hasBootstrappedFeatureFlags()){var h,p,f=Object.keys((null===(h=i.bootstrap)||void 0===h?void 0:h.featureFlags)||{}).filter(function(e){var t,n;return!(null===(t=i.bootstrap)||void 0===t||null===(n=t.featureFlags)||void 0===n||!n[e])}).reduce(function(e,t){var n,a;return e[t]=(null===(n=i.bootstrap)||void 0===n||null===(a=n.featureFlags)||void 0===a?void 0:a[t])||!1,e},{}),m=Object.keys((null===(p=i.bootstrap)||void 0===p?void 0:p.featureFlagPayloads)||{}).filter(function(e){return f[e]}).reduce(function(e,t){var n,a,r,o;return null!==(n=i.bootstrap)&&void 0!==n&&null!==(a=n.featureFlagPayloads)&&void 0!==a&&a[t]&&(e[t]=null===(r=i.bootstrap)||void 0===r||null===(o=r.featureFlagPayloads)||void 0===o?void 0:o[t]),e},{});this.featureFlags.receivedFeatureFlags({featureFlags:f,featureFlagPayloads:m})}if(!this.get_distinct_id()){var v=this.config.get_device_id(f9());this.register_once({distinct_id:v,$device_id:v},""),this.persistence.set_property(q7,"anonymous")}return null==b8||null===(n=b8.addEventListener)||void 0===n||n.call(b8,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this)),this.toolbar.maybeLoadToolbar(),i.segment?function(e,t){var n=e.config.segment;if(!n)return t();!function(e,t){var n=e.config.segment;if(!n)return t();var a=function(n){var a=function(){return n.anonymousId()||f9()};e.config.get_device_id=a,n.id()&&(e.register({distinct_id:n.id(),$device_id:a()}),e.persistence.set_property(q7,"identified")),t()},i=n.user();"then"in i&&F8(i.then)?i.then(function(e){return a(e)}):a(i)}(e,function(){n.register(function(e){Promise&&Promise.resolve||$8.warn("This browser does not have Promise support, and can not use the segment integration");var t=function(t,n){var a;if(!n)return t;
5091t.event.userId||t.event.anonymousId===e.get_distinct_id()||($8.info("Segment integration does not have a userId set, resetting PostHog"),e.reset()),t.event.userId&&t.event.userId!==e.get_distinct_id()&&($8.info("Segment integration has a userId set, identifying with PostHog"),e.identify(t.event.userId));var i=e._calculate_event_properties(n,null!==(a=t.event.properties)&&void 0!==a?a:{},new Date);return t.event.properties=Object.assign({},i,t.event.properties),t};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:function(e){return t(e,e.event.event)},page:function(e){return t(e,"$pageview")},identify:function(e){return t(e,"$identify")},screen:function(e){return t(e,"$screen")}}}(e)).then(function(){t()})})}(this,function(){return a._loaded()}):this._loaded(),F8(this.config._onCapture)&&this.on("eventCaptured",function(e){return a.config._onCapture(e.event,e)}),this}},{key:"_afterDecideResponse",value:function(e){var t,n,a,i,r,o,s,l,u;this.compression=void 0,e.supportedCompression&&!this.config.disable_compression&&(this.compression=f7(e.supportedCompression,_7.GZipJS)?_7.GZipJS:f7(e.supportedCompression,_7.Base64)?_7.Base64:void 0),null!==(t=e.analytics)&&void 0!==t&&t.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),null===(n=this.sessionRecording)||void 0===n||n.afterDecideResponse(e),null===(a=this.autocapture)||void 0===a||a.afterDecideResponse(e),null===(i=this.heatmaps)||void 0===i||i.afterDecideResponse(e),null===(r=this.experiments)||void 0===r||r.afterDecideResponse(e),null===(o=this.surveys)||void 0===o||o.afterDecideResponse(e),null===(s=this.webVitalsAutocapture)||void 0===s||s.afterDecideResponse(e),null===(l=this.exceptions)||void 0===l||l.afterDecideResponse(e),null===(u=this.exceptionObserver)||void 0===u||u.afterDecideResponse(e)}},{key:"_loaded",value:function(){var e=this,t=this.config.advanced_disable_decide;t||this.featureFlags.setReloadingPaused(!0);try{this.config.loaded(this)}catch(n){$8.critical("`loaded` function failed",n)}this._start_queue_if_opted_in(),this.config.capture_pageview&&setTimeout(function(){e.consent.isOptedIn()&&e._captureInitialPageview()},1),t||(new ine(this).call(),this.featureFlags.resetRequestQueue())}},{key:"_start_queue_if_opted_in",value:function(){var e;this.has_opted_out_capturing()||this.config.request_batching&&(null===(e=this._requestQueue)||void 0===e||e.enable())}},{key:"_dom_loaded",value:function(){var e=this;this.has_opted_out_capturing()||d7(this.__request_queue,function(t){return e._send_retriable_request(t)}),this.__request_queue=[],this._start_queue_if_opted_in()}},{key:"_handle_unload",value:function(){var e,t;this.config.request_batching?(this._shouldCapturePageleave()&&this.capture("$pageleave"),null===(e=this._requestQueue)||void 0===e||e.unload(),null===(t=this._retryQueue)||void 0===t||t.unload()):this._shouldCapturePageleave()&&this.capture("$pageleave",null,{transport:"sendBeacon"})}},{key:"_send_request",value:function(e){var t=this;this.__loaded&&(lae?this.__request_queue.push(e):this.rateLimiter.isServerRateLimited(e.batchKey)||(e.transport=e.transport||this.config.api_transport,e.url=dne(e.url,{ip:this.config.ip?1:0}),e.headers=Q8({},this.config.request_headers),e.compression="best-available"===e.compression?this.compression:e.compression,function(e){var t,n,a,i=Q8({},e);i.timeout=i.timeout||6e4,i.url=dne(i.url,{_:(new Date).getTime().toString(),ver:M8.LIB_VERSION,compression:i.compression});var r=null!==(t=i.transport)&&void 0!==t?t:"XHR",o=null!==(n=null===(a=C7(pne,function(e){return e.transport===r}))||void 0===a?void 0:a.method)&&void 0!==n?n:pne[0].method;if(!o)throw new Error("No available transport method");o(i)}(Q8(Q8({},e),{},{callback:function(n){var a,i,r;t.rateLimiter.checkForLimiting(n),n.statusCode>=400&&(null===(i=(r=t.config).on_request_error)||void 0===i||i.call(r,n)),null===(a=e.callback)||void 0===a||a.call(e,n)}}))))}},{key:"_send_retriable_request",value:function(e){this._retryQueue?this._retryQueue.retriableRequest(e):this._send_request(e)}},{key:"_execute_array",value:function(e){var t,n=this,a=[],i=[],r=[];
5091d7(e,function(e){e&&(t=e[0],B8(t)?r.push(e):F8(e)?e.call(n):B8(e)&&"alias"===t?a.push(e):B8(e)&&-1!==t.indexOf("capture")&&F8(n[t])?r.push(e):i.push(e))});var o=function(e,t){d7(e,function(e){if(B8(e[0])){var n=t;h7(e,function(e){n=n[e[0]].apply(n,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};o(a,this),o(i,this),o(r,this)}},{key:"_hasBootstrappedFeatureFlags",value:function(){var e,t;return(null===(e=this.config.bootstrap)||void 0===e?void 0:e.featureFlags)&&Object.keys(null===(t=this.config.bootstrap)||void 0===t?void 0:t.featureFlags).length>0||!1}},{key:"push",value:function(e){this._execute_array([e])}},{key:"capture",value:function(e,t,n){var a;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this._requestQueue){if(!this.consent.isOptedOut())if(!j8(e)&&U8(e)){if(this.config.opt_out_useragent_filter||!this._is_bot()){var i=null!=n&&n.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(null==i||!i.isRateLimited){this.sessionPersistence.update_search_keyword(),this.config.store_google&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.store_google||this.config.save_referrer)&&this.persistence.set_initial_person_info();var r=new Date,o=(null==n?void 0:n.timestamp)||r,s={uuid:f9(),event:e,properties:this._calculate_event_properties(e,t||{},o)};i&&(s.properties.$lib_rate_limit_remaining_tokens=i.remainingTokens),(null==n?void 0:n.$set)&&(s.$set=null==n?void 0:n.$set);var l=this._calculate_set_once_properties(null==n?void 0:n.$set_once);l&&(s.$set_once=l),(s=function(e,t){return n=e,a=function(e){return U8(e)&&!z8(t)?e.slice(0,t):e},i=new Set,function e(t,n){return t!==Object(t)?a?a(t):t:i.has(t)?void 0:(i.add(t),B8(t)?(r=[],d7(t,function(t){r.push(e(t))})):(r={},h7(t,function(t,n){i.has(t)||(r[n]=e(t,n))})),r);var r}(n);var n,a,i}(s,null!=n&&n._noTruncate?null:this.config.properties_string_max_length)).timestamp=o,j8(null==n?void 0:n.timestamp)||(s.properties.$event_time_override_provided=!0,s.properties.$event_time_override_system_time=r);var u=Q8(Q8({},s.properties.$set),s.$set);X8(u)||this.setPersonPropertiesForFlags(u),this._internalEventEmitter.emit("eventCaptured",s);var c={method:"POST",url:null!==(a=null==n?void 0:n._url)&&void 0!==a?a:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:s,compression:"best-available",batchKey:null==n?void 0:n._batchKey};return!this.config.request_batching||n&&(null==n||!n._batchKey)||null!=n&&n.send_instantly?this._send_retriable_request(c):this._requestQueue.enqueue(c),s}$8.critical("This capture call is ignored due to client rate limiting.")}}else $8.error("No event name provided to posthog.capture")}else $8.uninitializedWarning("posthog.capture")}},{key:"_addCaptureHook",value:function(e){return this.on("eventCaptured",function(t){return e(t.event,t)})}},{key:"_calculate_event_properties",value:function(e,t,n){if(n=n||new Date,!this.persistence||!this.sessionPersistence)return t;var a=this.persistence.remove_event_timer(e),i=Q8({},t);if(i.token=this.config.token,"$snapshot"===e){var r=Q8(Q8({},this.persistence.properties()),this.sessionPersistence.properties());return i.distinct_id=r.distinct_id,(!U8(i.distinct_id)&&!W8(i.distinct_id)||H8(i.distinct_id))&&$8.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),i}var o=xee.properties();if(this.sessionManager){var s=this.sessionManager.checkAndGetSessionAndWindowId(),l=s.sessionId,u=s.windowId;i.$session_id=l,i.$window_id=u}if(this.requestRouter.region===fne.CUSTOM&&(i.$lib_custom_api_host=this.config.api_host),this.sessionPropsManager&&this.config.__preview_send_client_session_params&&("$pageview"===e||"$pageleave"===e||"$autocapture"===e)){var c=this.sessionPropsManager.getSessionProps();i=p7(i,c)}if(!this.config.disable_scroll_properties){var d={};"$pageview"===e?d=this.pageViewManager.doPageView(n):"$pageleave"===e&&(d=this.pageViewManager.doPageLeave(n)),i=p7(i,d)}if("$pageview"===e&&T8&&(i.title=T8.title),!j8(a)){var h=n.getTime()-a;i.$duration=parseFloat((h/1e3).toFixed(3))}N8&&this.config.opt_out_useragent_filter&&(i.$browser_type=this._is_bot()?"bot":"browser"),(i=p7({},o,this.persistence.properties(),this.sessionPersistence.properties(),i)).$is_identified=this._isIdentified(),B8(this.config.property_denylist)?h7(this.config.property_denylist,function(e){delete i[e]}):$8.error("Invalid value for property_denylist config: "+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var p=this.config.sanitize_properties;return p&&(i=p(i,e)),i.$process_person_profile=this._hasPersonProcessing(),i}},{key:"_calculate_set_once_properties",value:function(e){if(!this.persistence||!this._hasPersonProcessing())return e;var t=p7({},this.persistence.get_initial_props(),e||{});return X8(t)?void 0:t}},{key:"register",value:function(e,t){var n;null===(n=this.persistence)||void 0===n||n.register(e,t)}},{key:"register_once",value:function(e,t,n){var a;null===(a=this.persistence)||void 0===a||a.register_once(e,t,n)}},{key:"register_for_session",value:function(e){var t;null===(t=this.sessionPersistence)||void 0===t||t.register(e)}},{key:"unregister",value:function(e){var t;null===(t=this.persistence)||void 0===t||t.unregister(e)}},{key:"unregister_for_session",value:function(e){var t;null===(t=this.sessionPersistence)||void 0===t||t.unregister(e)}},{key:"_register_single",value:function(e,t){this.register(a7({},e,t))}},{key:"getFeatureFlag",value:function(e,t){return this.featureFlags.getFeatureFlag(e,t)}},{key:"getFeatureFlagPayload",value:function(e){var t=this.featureFlags.getFeatureFlagPayload(e);try{return JSON.parse(t)}catch(n){return t}}},{key:"isFeatureEnabled",value:function(e,t){return this.featureFlags.isFeatureEnabled(e,t)}},{key:"reloadFeatureFlags",value:function(){this.featureFlags.reloadFeatureFlags()}},{key:"updateEarlyAccessFeatureEnrollment",value:function(e,t){this.featureFlags.updateEarlyAccessFeatureEnrollment(e,t)}},{key:"getEarlyAccessFeatures",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.featureFlags.getEarlyAccessFeatures(e,t)}},{key:"on",value:function(e,t){return this._internalEventEmitter.on(e,t)}},{key:"onFeatureFlags",value:function(e){return this.featureFlags.onFeatureFlags(e)}},{key:"onSessionId",value:function(e){var t,n;return null!==(t=null===(n=this.sessionManager)||void 0===n?void 0:n.onSessionId(e))&&void 0!==t?t:function(){}}},{key:"getSurveys",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.surveys.getSurveys(e,t)}},{key:"getActiveMatchingSurveys",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.surveys.getActiveMatchingSurveys(e,t)}},{key:"renderSurvey",value:function(e,t){this.surveys.renderSurvey(e,t)}},{key:"canRenderSurvey",value:function(e){this.surveys.canRenderSurvey(e)}},{key:"getNextSurveyStep",value:function(e,t,n){return this.surveys.getNextSurveyStep(e,t,n)}},{key:"identify",value:function(e,t,n){if(!this.__loaded||!this.persistence)return $8.uninitializedWarning("posthog.identify");if(W8(e)&&(e=e.toString(),$8.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),e){if(["distinct_id","distinctid"].includes(e.toLowerCase()))$8.critical('The string "'.concat(e,'" was set in posthog.identify which indicates an error. This ID should be unique to the user and n
5091ot a hardcoded string.'));else if(this._requirePersonProcessing("posthog.identify")){var a=this.get_distinct_id();if(this.register({$user_id:e}),!this.get_property("$device_id")){var i=a;this.register_once({$had_persisted_distinct_id:!0,$device_id:i},"")}e!==a&&e!==this.get_property(T7)&&(this.unregister(T7),this.register({distinct_id:e}));var r="anonymous"===(this.persistence.get_property(q7)||"anonymous");e!==a&&r?(this.persistence.set_property(q7,"identified"),this.setPersonPropertiesForFlags(t||{},!1),this.capture("$identify",{distinct_id:e,$anon_distinct_id:a},{$set:t||{},$set_once:n||{}}),this.featureFlags.setAnonymousDistinctId(a)):(t||n)&&this.setPersonProperties(t,n),e!==a&&(this.reloadFeatureFlags(),this.unregister(G7))}}else $8.error("Unique user id has not been set in posthog.identify")}},{key:"setPersonProperties",value:function(e,t){(e||t)&&this._requirePersonProcessing("posthog.setPersonProperties")&&(this.setPersonPropertiesForFlags(e||{}),this.capture("$set",{$set:e||{},$set_once:t||{}}))}},{key:"group",value:function(e,t,n){if(e&&t){if(this._requirePersonProcessing("posthog.group")){var a=this.getGroups();a[e]!==t&&this.resetGroupPropertiesForFlags(e),this.register({$groups:Q8(Q8({},a),{},a7({},e,t))}),n&&(this.capture("$groupidentify",{$group_type:e,$group_key:t,$group_set:n}),this.setGroupPropertiesForFlags(a7({},e,n))),a[e]===t||n||this.reloadFeatureFlags()}}else $8.error("posthog.group requires a group type and group key")}},{key:"resetGroups",value:function(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}},{key:"setPersonPropertiesForFlags",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._requirePersonProcessing("posthog.setPersonPropertiesForFlags")&&this.featureFlags.setPersonPropertiesForFlags(e,t)}},{key:"resetPersonPropertiesForFlags",value:function(){this.featureFlags.resetPersonPropertiesForFlags()}},{key:"setGroupPropertiesForFlags",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._requirePersonProcessing("posthog.setGroupPropertiesForFlags")&&this.featureFlags.setGroupPropertiesForFlags(e,t)}},{key:"resetGroupPropertiesForFlags",value:function(e){this.featureFlags.resetGroupPropertiesForFlags(e)}},{key:"reset",value:function(e){var t,n,a,i;if($8.info("reset"),!this.__loaded)return $8.uninitializedWarning("posthog.reset");var r=this.get_property("$device_id");this.consent.reset(),null===(t=this.persistence)||void 0===t||t.clear(),null===(n=this.sessionPersistence)||void 0===n||n.clear(),null===(a=this.persistence)||void 0===a||a.set_property(q7,"anonymous"),null===(i=this.sessionManager)||void 0===i||i.resetSessionId();var o=this.config.get_device_id(f9());this.register_once({distinct_id:o,$device_id:e?o:r},"")}},{key:"get_distinct_id",value:function(){return this.get_property("distinct_id")}},{key:"getGroups",value:function(){return this.get_property("$groups")||{}}},{key:"get_session_id",value:function(){var e,t;return null!==(e=null===(t=this.sessionManager)||void 0===t?void 0:t.checkAndGetSessionAndWindowId(!0).sessionId)&&void 0!==e?e:""}},{key:"get_session_replay_url",value:function(e){if(!this.sessionManager)return"";var t=this.sessionManager.checkAndGetSessionAndWindowId(!0),n=t.sessionId,a=t.sessionStartTimestamp,i=this.requestRouter.endpointFor("ui","/project/".concat(this.config.token,"/replay/").concat(n));if(null!=e&&e.withTimestamp&&a){var r,o=null!==(r=e.timestampLookBack)&&void 0!==r?r:10;if(!a)return i;var s=Math.max(Math.floor(((new Date).getTime()-a)/1e3)-o,0);i+="?t=".concat(s)}return i}},{key:"alias",value:function(e,t){return e===this.get_property(S7)?($8.critical("Attempting to create alias for existing People user - aborting."),-2):this._requirePersonProcessing("posthog.alias")?(j8(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(T7,e),this.capture("$create_alias",{alias:e,distinct_id:t})):($8.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1)):void 0}},{key:"set_config",value:function(e){var t,n,a,i,r=Q8({},this.config);V8(e)&&(p7(this.config,cae(e)),null===(t=this.persistence)||void 0===t||t.update_config(this.config,r),this.sessionPersistence="sessionStorage"===this.config.persistence?this.persistence:new Pee(Q8(Q8({},this.config),{},{persistence:"sessionStorage"})),w9.is_supported()&&"true"===w9.get("ph_debug")&&(this.config.debug=!0),this.config.debug&&(M8.DEBUG=!0,$8.info("set_config",{config:e,oldConfig:r,newConfig:Q8({},this.config)})),null===(n=this.sessionRecording)||void 0===n||n.startIfEnabledOrStop(),null===(a=this.autocapture)||void 0===a||a.startIfEnabled(),null===(i=this.heatmaps)||void 0===i||i.startIfEnabled(),this.surveys.loadIfEnabled(),this._sync_opt_out_with_persistence())}},{key:"startSessionRecording",value:function(e){var t,n=G8(e)&&e;if(n||null!=e&&e.sampling){var a,i,r=null===(a=this.sessionManager)||void 0===a?void 0:a.checkAndGetSessionAndWindowId();null===(i=this.persistence)||void 0===i||i.register(a7({},X7,!0)),$8.info("Session recording started with sampling override for session: ",null==r?void 0:r.sessionId)}(n||null!=e&&e.linked_flag)&&(null===(t=this.sessionRecording)||void 0===t||t.overrideLinkedFlag(),$8.info("Session recording started with linked_flags override")),this.set_config({disable_session_recording:!1})}},{key:"stopSessionRecording",value:function(){this.set_config({disable_session_recording:!0})}},{key:"sessionRecordingStarted",value:function(){var e;return!(null===(e=this.sessionRecording)||void 0===e||!e.started)}},{key:"captureException",value:function(e,t){var n,a=F8(null===(n=P8.__PosthogExtensions__)||void 0===n?void 0:n.parseErrorAsProperties)?P8.__PosthogExtensions__.parseErrorAsProperties([e.message,void 0,void 0,void 0,e]):Q8({$exception_type:e.name,$exception_message:e.message,$exception_level:"error"},t);this.exceptions.sendExceptionEvent(a)}},{key:"loadToolbar",value:function(e){return this.toolbar.loadToolbar(e)}},{key:"get_property",value:function(e){var t;return null===(t=this.persistence)||void 0===t?void 0:t.props[e]}},{key:"getSessionProperty",value:function(e){var t;return null===(t=this.sessionPersistence)||void 0===t?void 0:t.props[e]}},{key:"toString",value:function(){var e,t=null!==(e=this.config.name)&&void 0!==e?e:sae;return t!==sae&&(t=sae+"."+t),t}},{key:"_isIdentified",value:function(){var e,t;return"identified"===(null===(e=this.persistence)||void 0===e?void 0:e.get_property(q7))||"identified"===(null===(t=this.sessionPersistence)||void 0===t?void 0:t.get_property(q7))}},{key:"_hasPersonProcessing",value:function(){var e,t,n,a;return!("never"===this.config.person_profiles||"identified_only"===this.config.person_profiles&&
5091!this._isIdentified()&&X8(this.getGroups())&&(null===(e=this.persistence)||void 0===e||null===(t=e.props)||void 0===t||!t[T7])&&(null===(n=this.persistence)||void 0===n||null===(a=n.props)||void 0===a||!a[e9]))}},{key:"_shouldCapturePageleave",value:function(){return!0===this.config.capture_pageleave||"if_capture_pageview"===this.config.capture_pageleave&&this.config.capture_pageview}},{key:"createPersonProfile",value:function(){this._hasPersonProcessing()||this._requirePersonProcessing("posthog.createPersonProfile")&&this.setPersonProperties({},{})}},{key:"_requirePersonProcessing",value:function(e){return"never"===this.config.person_profiles?($8.error(e+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this._register_single(e9,!0),!0)}},{key:"_sync_opt_out_with_persistence",value:function(){var e,t,n,a,i=this.consent.isOptedOut(),r=this.config.opt_out_persistence_by_default,o=this.config.disable_persistence||i&&!!r;(null===(e=this.persistence)||void 0===e?void 0:e.disabled)!==o&&(null===(n=this.persistence)||void 0===n||n.set_disabled(o)),(null===(t=this.sessionPersistence)||void 0===t?void 0:t.disabled)!==o&&(null===(a=this.sessionPersistence)||void 0===a||a.set_disabled(o))}},{key:"opt_in_capturing",value:function(e){var t;this.consent.optInOut(!0),this._sync_opt_out_with_persistence(),(j8(null==e?void 0:e.captureEventName)||null!=e&&e.captureEventName)&&this.capture(null!==(t=null==e?void 0:e.captureEventName)&&void 0!==t?t:"$opt_in",null==e?void 0:e.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this._captureInitialPageview()}},{key:"opt_out_capturing",value:function(){this.consent.optInOut(!1),this._sync_opt_out_with_persistence()}},{key:"has_opted_in_capturing",value:function(){return this.consent.isOptedIn()}},{key:"has_opted_out_capturing",value:function(){return this.consent.isOptedOut()}},{key:"clear_opt_in_out_capturing",value:function(){this.consent.reset(),this._sync_opt_out_with_persistence()}},{key:"_is_bot",value:function(){return S8?Xne(S8,this.config.custom_blocked_useragents):void 0}},{key:"_captureInitialPageview",value:function(){T8&&!this._initialPageviewCaptured&&(this._initialPageviewCaptured=!0,this.capture("$pageview",{title:T8.title},{send_instantly:!0}))}},{key:"debug",value:function(e){!1===e?(null==b8||b8.console.log("You've disabled debug mode."),localStorage&&localStorage.removeItem("ph_debug"),this.set_config({debug:!1})):(null==b8||b8.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),localStorage&&localStorage.setItem("ph_debug","true"),this.set_config({debug:!0}))}}]),e}();!function(e,t){for(var n=0;n<t.length;n++)e.prototype[t[n]]=g7(e.prototype[t[n]])}(hae,["identify"]);var pae,fae,mae=(pae=rae[sae]=new hae,function(){function e(){e.done||(e.done=!0,lae=!1,h7(rae,function(e){e._dom_loaded()}))}null!=T8&&T8.addEventListener&&("complete"===T8.readyState?e():T8.addEventListener("DOMContentLoaded",e,!1)),b8&&k7(b8,"load",e,!0)}(),pae),vae={exports:{}};var gae=(fae||(fae=1,vae.exports=function(e,t,n){var a=t.prototype,i=function(e){var t=e.date,a=e.utc;return Array.isArray(t)?a?t.length?new Date(Date.UTC.apply(null,t)):new Date:1===t.length?n(String(t[0])).toDate():new(Function.prototype.bind.apply(Date,[null].concat(t))):t},r=a.parse;a.parse=function(e){e.date=i.bind(this)(e),r.bind(this)(e)}}),vae.exports);const yae=ER(gae),bae=function(e){const t=e;return t.headTags=e.resolveTags,t.addEntry=e.push,t.addHeadObjs=e.push,t.addReactiveEntry=(e,t)=>{const n=Kq(e,t);return void 0!==n?n.dispose:()=>{}},t.removeHeadObjs=()=>{},t.updateDOM=()=>{e.hooks.callHook("entries:updated",e)},t.unhead=e,t}(jq({}));nH.extend(yae);const _ae=zl(Gq),wae=function(){const e=Oe(!0),t=e.run(()=>an({}));let n=[],a=[];const i=Zt({install(e){iu(i),i._a=e,e.provide(ru,i),e.config.globalProperties.$pinia=i,a.forEach(e=>n.push(e)),a=[]},use(e){return this._a?n.push(e):a.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}(),kae=document.querySelector("#app");var Cae,Sae,Tae,Aae;Cae=e=>{kae.__vue_app__||(_ae.use(wae).use(FG).mount("#app"),Gx(vP,e),Gx(yP,e),Gx(_P,e))},bc(fP).onAuthStateChanged(Cae,Sae,Tae),_ae.use(G5).use(L5).use(bae).use(bz).use(H5).use(function(e,{firebaseApp:t,modules:n=[]}){e.provide(gU,t);
5091for(const a of n)a(t,e)},{modules:[(e,t)=>BU(t,Aae,e)]}),_ae.use(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;!function(e){e.config.globalProperties.$gtag=p8}(e),n8(t),e8=n,a8().bootstrap&&y8()},{config:{id:"G-KB9CK72QD6"}},FG),mae.init("phc_FobF3N01c1MUJNqvt9oZHD5eOEHwX0wbPqRJMlPNPwm",{api_host:"https://app.posthog.com"}),_ae.provide("postHog",mae),_ae.config.globalProperties.keyTimestamp=e=>{e=e.substring(0,8);let t=0;for(let n=0;n<e.length;n++){let a=e.charAt(n);t=64*t+"-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".indexOf(a)}return t},_ae.config.globalProperties._console=e=>{},_ae.config.globalProperties.chunk=(e,t)=>Array.from({length:Math.ceil(e.length/t)},(n,a)=>e.slice(a*t,a*t+t)),_ae.config.globalProperties.config={nrOfThrows:10},_ae.config.globalProperties.$firebaseAuth=fP;export{kl as $,gz as A,Te as B,Ja as C,ta as D,Ti as E,eo as F,wg as G,TP as H,_A as I,RT as J,kP as K,HG as L,wA as M,SP as N,Ag as O,gR as P,OR as Q,Hg as R,Ug as S,Fg as T,AP as U,bg as V,yg as W,kg as X,XG as Y,UG as Z,PX as _,t as __vite_legacy_guard,fP as a,bA as a$,Dl as a0,Al as a1,Y as a2,_g as a3,an as a4,ln as a5,nn as a6,rn as a7,Ls as a8,ij as a9,_ as aA,x as aB,D as aC,M as aD,a as aE,w as aF,L as aG,p as aH,s as aI,I as aJ,ie as aK,re as aL,oe as aM,se as aN,ee as aO,n as aP,$ as aQ,IR as aR,$l as aS,xe as aT,oR as aU,Lg as aV,Oz as aW,Rz as aX,jn as aY,Bl as aZ,xi as a_,wj as aa,Io as ab,PR as ac,Xg as ad,HO as ae,Cz as af,kz as ag,SR as ah,nH as ai,dR as aj,TR as ak,rG as al,VW as am,EP as an,yz as ao,nr as ap,kj as aq,eK as ar,Ht as as,kR as at,LV as au,ER as av,r as aw,u as ax,b as ay,o as az,vL as b,Xx as b$,OT as b0,bR as b1,mR as b2,fR as b3,pR as b4,jW as b5,zW as b6,HW as b7,Bx as b8,Fx as b9,vi as bA,Qt as bB,Jt as bC,gx as bD,Nl as bE,Hx as bF,Lx as bG,Px as bH,Kx as bI,RU as bJ,FW as bK,XW as bL,LW as bM,wR as bN,zx as bO,UW as bP,zj as bQ,Li as bR,Rg as bS,yG as bT,Wj as bU,_s as bV,wu as bW,PE as bX,CP as bY,xE as bZ,NE as b_,_z as ba,Nr as bb,pH as bc,Na as bd,gn as be,mi as bf,no as bg,ae as bh,_o as bi,Zt as bj,tr as bk,DH as bl,CH as bm,GH as bn,CR as bo,lR as bp,hR as bq,vR as br,QU as bs,Kj as bt,KU as bu,Ng as bv,Mg as bw,OU as bx,es as by,ns as bz,Zo as c,_R as c0,sR as c1,Qz as c2,fl as c3,gg as c4,Yg as c5,Si as c6,Co as c7,jx as c8,Gx as c9,Ux as ca,vP as cb,yP as cc,_P as cd,qx as ce,fI as cf,_x as cg,wx as ch,CN as ci,Vx as cj,Gj as ck,qj as cl,mg as cm,mP as cn,cR as co,oG as cp,mL as d,ho as e,bo as f,oo as g,qH as h,yR as i,CX as j,VG as k,rj as l,LP as m,po as n,hi as o,Wq as p,ea as q,ki as r,uR as s,So as t,jG as u,yo as v,Mr as w,Ii as x,ko as y,ne 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.