vendor: 1,167 bytes, lines 1-5
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/AboutView-BvUoRTiV.js","assets/AboutView-CSIvawM9.css","assets/PrivacyPolicyView-DYWQK10r.js","assets/PrivacyPolicyView-DIX2yyPD.css","assets/TermsOfServiceView-CH5OLaU7.js","assets/TermsOfServiceView-Cv8A35r5.css","assets/FAQView-RC49CaNd.js","assets/FAQView-DRL6ojp7.css"])))=>i.map(i=>d[i]); 2(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();/** 3* @vue/shared v3.5.13 4* (c) 2018-present Yuxi (Evan) You and Vue contributors 5* @license MIT
6**//*! #__NO_SIDE_EFFECTS__ */function Va(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const Ce={},Er=[],Qt=()=>{},em=()=>!1,zi=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),xa=t=>t.startsWith("onUpdate:"),ct=Object.assign,Da=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},tm=Object.prototype.hasOwnProperty,be=(t,e)=>tm.call(t,e),ae=Array.isArray,wr=t=>Hi(t)==="[object Map]",mh=t=>Hi(t)==="[object Set]",ce=t=>typeof t=="function",Be=t=>typeof t=="string",dn=t=>typeof t=="symbol",ke=t=>t!==null&&typeof t=="object",gh=t=>(ke(t)||ce(t))&&ce(t.then)&&ce(t.catch),yh=Object.prototype.toString,Hi=t=>yh.call(t),nm=t=>Hi(t).slice(8,-1),_h=t=>Hi(t)==="[object Object]",ka=t=>Be(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,ss=Va(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),qi=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},rm=/-(\w)/g,Cn=qi(t=>t.replace(rm,(e,n)=>n?n.toUpperCase():"")),sm=/\B([A-Z])/g,or=qi(t=>t.replace(sm,"-$1").toLowerCase()),vh=qi(t=>t.charAt(0).toUpperCase()+t.slice(1)),Co=qi(t=>t?`on${vh(t)}`:""),An=(t,e)=>!Object.is(t,e),Vo=(t,...e)=>{for(let n=0;n<t.length;n++)t[n](...e)},Eh=(t,e,n,r=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:r,value:n})},im=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let pc;const Ki=()=>pc||(pc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Gi(t){if(ae(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],s=Be(r)?cm(r):Gi(r);if(s)for(const o in s)e[o]=s[o]}return e}else if(Be(t)||ke(t))return t}const om=/;(?![^(]*\))/g,am=/:([^]+)/,lm=/\/\*[^]*?\*\//g;function cm(t){const e={};return t.replace(lm,"").split(om).forEach(n=>{if(n){const r=n.split(am);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function gt(t){let e="";if(Be(t))e=t;else if(ae(t))for(let n=0;n<t.length;n++){const r=gt(t[n]);r&&(e+=r+" ")}else if(ke(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const um="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",hm=Va(um);function wh(t){return!!t||t===""}const Th=t=>!!(t&&t.__v_isRef===!0),Mt=t=>Be(t)?t:t==null?"":ae(t)||ke(t)&&(t.toString===yh||!ce(t.toString))?Th(t)?Mt(t.value):JSON.stringify(t,bh,2):String(t),bh=(t,e)=>Th(e)?bh(t,e.value):wr(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,s],o)=>(n[xo(r,o)+" =>"]=s,n),{})}:mh(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>xo(n))}:dn(e)?xo(e):ke(e)&&!ae(e)&&!_h(e)?String(e):e,xo=(t,e="")=>{var n;return dn(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};/** 7* @vue/reactivity v3.5.13 8* (c) 2018-present Yuxi (Evan) You and Vue contributors 9* @license MIT
vendor: 14,390 bytes, line 10
10**/let Rt;class fm{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Rt,!e&&Rt&&(this.index=(Rt.scopes||(Rt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].pause();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].resume();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].resume()}}run(e){if(this._active){const n=Rt;try{return Rt=this,e()}finally{Rt=n}}}on(){Rt=this}off(){Rt=this.parent}stop(e){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function dm(){return Rt}let Pe;const Do=new WeakSet;class Ih{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,Rt&&Rt.active&&Rt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Do.has(this)&&(Do.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Rh(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,mc(this),Sh(this);const e=Pe,n=Bt;Pe=this,Bt=!0;try{return this.fn()}finally{Ph(this),Pe=e,Bt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Ma(e);this.deps=this.depsTail=void 0,mc(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Do.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Zo(this)&&this.run()}get dirty(){return Zo(this)}}let Ah=0,is,os;function Rh(t,e=!1){if(t.flags|=8,e){t.next=os,os=t;return}t.next=is,is=t}function Oa(){Ah++}function Na(){if(--Ah>0)return;if(os){let e=os;for(os=void 0;e;){const n=e.next;e.next=void 0,e.flags&=-9,e=n}}let t;for(;is;){let e=is;for(is=void 0;e;){const n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(r){t||(t=r)}e=n}}if(t)throw t}function Sh(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function Ph(t){let e,n=t.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Ma(r),pm(r)):e=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}t.deps=e,t.depsTail=n}function Zo(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(Ch(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function Ch(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===gs))return;t.globalVersion=gs;const e=t.dep;if(t.flags|=2,e.version>0&&!t.isSSR&&t.deps&&!Zo(t)){t.flags&=-3;return}const n=Pe,r=Bt;Pe=t,Bt=!0;try{Sh(t);const s=t.fn(t._value);(e.version===0||An(s,t._value))&&(t._value=s,e.version++)}catch(s){throw e.version++,s}finally{Pe=n,Bt=r,Ph(t),t.flags&=-3}}function Ma(t,e=!1){const{dep:n,prevSub:r,nextSub:s}=t;if(r&&(r.nextSub=s,t.prevSub=void 0),s&&(s.prevSub=r,t.nextSub=void 0),n.subs===t&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)Ma(o,!0)}!e&&!--n.sc&&n.map&&n.map.delete(n.key)}function pm(t){const{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}let Bt=!0;const Vh=[];function Mn(){Vh.push(Bt),Bt=!1}function Ln(){const t=Vh.pop();Bt=t===void 0?!0:t}function mc(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const n=Pe;Pe=void 0;try{e()}finally{Pe=n}}}let gs=0;class mm{constructor(e,n){this.sub=e,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class La{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}track(e){if(!Pe||!Bt||Pe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Pe)n=this.activeLink=new mm(Pe,this),Pe.deps?(n.prevDep=Pe.depsTail,Pe.depsTail.nextDep=n,Pe.depsTail=n):Pe.deps=Pe.depsTail=n,xh(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Pe.depsTail,n.nextDep=void 0,Pe.depsTail.nextDep=n,Pe.depsTail=n,Pe.deps===n&&(Pe.deps=r)}return n}trigger(e){this.version++,gs++,this.notify(e)}notify(e){Oa();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Na()}}}function xh(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let r=e.deps;r;r=r.nextDep)xh(r)}const n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subs=t}}const ea=new WeakMap,Qn=Symbol(""),ta=Symbol(""),ys=Symbol("");function it(t,e,n){if(Bt&&Pe){let r=ea.get(t);r||ea.set(t,r=new Map);let s=r.get(n);s||(r.set(n,s=new La),s.map=r,s.key=n),s.track()}}function an(t,e,n,r,s,o){const a=ea.get(t);if(!a){gs++;return}const l=u=>{u&&u.trigger()};if(Oa(),e==="clear")a.forEach(l);else{const u=ae(t),f=u&&ka(n);if(u&&n==="length"){const d=Number(r);a.forEach((p,_)=>{(_==="length"||_===ys||!dn(_)&&_>=d)&&l(p)})}else switch((n!==void 0||a.has(void 0))&&l(a.get(n)),f&&l(a.get(ys)),e){case"add":u?f&&l(a.get("length")):(l(a.get(Qn)),wr(t)&&l(a.get(ta)));break;case"delete":u||(l(a.get(Qn)),wr(t)&&l(a.get(ta)));break;case"set":wr(t)&&l(a.get(Qn));break}}Na()}function pr(t){const e=Te(t);return e===t?e:(it(e,"iterate",ys),kt(t)?e:e.map(ot))}function Wi(t){return it(t=Te(t),"iterate",ys),t}const gm={__proto__:null,[Symbol.iterator](){return ko(this,Symbol.iterator,ot)},concat(...t){return pr(this).concat(...t.map(e=>ae(e)?pr(e):e))},entries(){return ko(this,"entries",t=>(t[1]=ot(t[1]),t))},every(t,e){return nn(this,"every",t,e,void 0,arguments)},filter(t,e){return nn(this,"filter",t,e,n=>n.map(ot),arguments)},find(t,e){return nn(this,"find",t,e,ot,arguments)},findIndex(t,e){return nn(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return nn(this,"findLast",t,e,ot,arguments)},findLastIndex(t,e){return nn(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return nn(this,"forEach",t,e,void 0,arguments)},includes(...t){return Oo(this,"includes",t)},indexOf(...t){return Oo(this,"indexOf",t)},join(t){return pr(this).join(t)},lastIndexOf(...t){return Oo(this,"lastIndexOf",t)},map(t,e){return nn(this,"map",t,e,void 0,arguments)},pop(){return Xr(this,"pop")},push(...t){return Xr(this,"push",t)},reduce(t,...e){return gc(this,"reduce",t,e)},reduceRight(t,...e){return gc(this,"reduceRight",t,e)},shift(){return Xr(this,"shift")},some(t,e){return nn(this,"some",t,e,void 0,arguments)},splice(...t){return Xr(this,"splice",t)},toReversed(){return pr(this).toReversed()},toSorted(t){return pr(this).toSorted(t)},toSpliced(...t){return pr(this).toSpliced(...t)},unshift(...t){return Xr(this,"unshift",t)},values(){return ko(this,"values",ot)}};function ko(t,e,n){const r=Wi(t),s=r[e]();return r!==t&&!kt(t)&&(s._next=s.next,s.next=()=>{const o=s._next();return o.value&&(o.value=n(o.value)),o}),s}const ym=Array.prototype;function nn(t,e,n,r,s,o){const a=Wi(t),l=a!==t&&!kt(t),u=a[e];if(u!==ym[e]){const p=u.apply(t,o);return l?ot(p):p}let f=n;a!==t&&(l?f=function(p,_){return n.call(this,ot(p),_,t)}:n.length>2&&(f=function(p,_){return n.call(this,p,_,t)}));const d=u.call(a,f,r);return l&&s?s(d):d}function gc(t,e,n,r){const s=Wi(t);let o=n;return s!==t&&(kt(t)?n.length>3&&(o=function(a,l,u){return n.call(this,a,l,u,t)}):o=function(a,l,u){return n.call(this,a,ot(l),u,t)}),s[e](o,...r)}function Oo(t,e,n){const r=Te(t);it(r,"iterate",ys);const s=r[e](...n);return(s===-1||s===!1)&&Ua(n[0])?(n[0]=Te(n[0]),r[e](...n)):s}function Xr(t,e,n=[]){Mn(),Oa();const r=Te(t)[e].apply(t,n);return Na(),Ln(),r}const _m=Va("__proto__,__v_isRef,__isVue"),Dh=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(dn));function vm(t){dn(t)||(t=String(t));const e=Te(this);return it(e,"has",t),e.hasOwnProperty(t)}class kh{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,r){if(n==="__v_skip")return e.__v_skip;const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(s?o?Cm:Lh:o?Mh:Nh).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const a=ae(e);if(!s){let u;if(a&&(u=gm[n]))return u;if(n==="hasOwnProperty")return vm}const l=Reflect.get(e,n,lt(e)?e:r);return(dn(n)?Dh.has(n):_m(n))||(s||it(e,"get",n),o)?l:lt(l)?a&&ka(n)?l:l.value:ke(l)?s?$h(l):Qi(l):l}}class Oh extends kh{constructor(e=!1){super(!1,e)}set(e,n,r,s){let o=e[n];if(!this._isShallow){const u=Jn(o);if(!kt(r)&&!Jn(r)&&(o=Te(o),r=Te(r)),!ae(e)&<(o)&&!lt(r))return u?!1:(o.value=r,!0)}const a=ae(e)&&ka(n)?Number(n)<e.length:be(e,n),l=Reflect.set(e,n,r,lt(e)?e:s);return e===Te(s)&&(a?An(r,o)&&an(e,"set",n,r):an(e,"add",n,r)),l}deleteProperty(e,n){const r=be(e,n);e[n];const s=Reflect.deleteProperty(e,n);return s&&r&&an(e,"delete",n,void 0),s}has(e,n){const r=Reflect.has(e,n);return(!dn(n)||!Dh.has(n))&&it(e,"has",n),r}ownKeys(e){return it(e,"iterate",ae(e)?"length":Qn),Reflect.ownKeys(e)}}class Em extends kh{constructor(e=!1){super(!0,e)}set(e,n){return!0}deleteProperty(e,n){return!0}}const wm=new Oh,Tm=new Em,bm=new Oh(!0);const na=t=>t,ni=t=>Reflect.getPrototypeOf(t);function Im(t,e,n){return function(...r){const s=this.__v_raw,o=Te(s),a=wr(o),l=t==="entries"||t===Symbol.iterator&&a,u=t==="keys"&&a,f=s[t](...r),d=n?na:e?ra:ot;return!e&&it(o,"iterate",u?ta:Qn),{next(){const{value:p,done:_}=f.next();return _?{value:p,done:_}:{value:l?[d(p[0]),d(p[1])]:d(p),done:_}},[Symbol.iterator](){return this}}}}function ri(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function Am(t,e){const n={get(s){const o=this.__v_raw,a=Te(o),l=Te(s);t||(An(s,l)&&it(a,"get",s),it(a,"get",l));const{has:u}=ni(a),f=e?na:t?ra:ot;if(u.call(a,s))return f(o.get(s));if(u.call(a,l))return f(o.get(l));o!==a&&o.get(s)},get size(){const s=this.__v_raw;return!t&&it(Te(s),"iterate",Qn),Reflect.get(s,"size",s)},has(s){const o=this.__v_raw,a=Te(o),l=Te(s);return t||(An(s,l)&&it(a,"has",s),it(a,"has",l)),s===l?o.has(s):o.has(s)||o.has(l)},forEach(s,o){const a=this,l=a.__v_raw,u=Te(l),f=e?na:t?ra:ot;return!t&&it(u,"iterate",Qn),l.forEach((d,p)=>s.call(o,f(d),f(p),a))}};return ct(n,t?{add:ri("add"),set:ri("set"),delete:ri("delete"),clear:ri("clear")}:{add(s){!e&&!kt(s)&&!Jn(s)&&(s=Te(s));const o=Te(this);return ni(o).has.call(o,s)||(o.add(s),an(o,"add",s,s)),this},set(s,o){!e&&!kt(o)&&!Jn(o)&&(o=Te(o));const a=Te(this),{has:l,get:u}=ni(a);let f=l.call(a,s);f||(s=Te(s),f=l.call(a,s));const d=u.call(a,s);return a.set(s,o),f?An(o,d)&&an(a,"set",s,o):an(a,"add",s,o),this},delete(s){const o=Te(this),{has:a,get:l}=ni(o);let u=a.call(o,s);u||(s=Te(s),u=a.call(o,s)),l&&l.call(o,s);const f=o.delete(s);return u&&an(o,"delete",s,void 0),f},clear(){const s=Te(this),o=s.size!==0,a=s.clear();return o&&an(s,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Im(s,t,e)}),n}function Fa(t,e){const n=Am(t,e);return(r,s,o)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?r:Reflect.get(be(n,s)&&s in r?n:r,s,o)}const Rm={get:Fa(!1,!1)},Sm={get:Fa(!1,!0)},Pm={get:Fa(!0,!1)};const Nh=new WeakMap,Mh=new WeakMap,Lh=new WeakMap,Cm=new WeakMap;function Vm(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xm(t){return t.__v_skip||!Object.isExtensible(t)?0:Vm(nm(t))}function Qi(t){return Jn(t)?t:$a(t,!1,wm,Rm,Nh)}function Fh(t){return $a(t,!1,bm,Sm,Mh)}function $h(t){return $a(t,!0,Tm,Pm,Lh)}function $a(t,e,n,r,s){if(!ke(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const o=s.get(t);if(o)return o;const a=xm(t);if(a===0)return t;const l=new Proxy(t,a===2?r:n);return s.set(t,l),l}function Tr(t){return Jn(t)?Tr(t.__v_raw):!!(t&&t.__v_isReactive)}function Jn(t){return!!(t&&t.__v_isReadonly)}function kt(t){return!!(t&&t.__v_isShallow)}function Ua(t){return t?!!t.__v_raw:!1}function Te(t){const e=t&&t.__v_raw;return e?Te(e):t}function Dm(t){return!be(t,"__v_skip")&&Object.isExtensible(t)&&Eh(t,"__v_skip",!0),t}const ot=t=>ke(t)?Qi(t):t,ra=t=>ke(t)?$h(t):t;function lt(t){return t?t.__v_isRef===!0:!1}function sn(t){return Uh(t,!1)}function km(t){return Uh(t,!0)}function Uh(t,e){return lt(t)?t:new Om(t,e)}class Om{constructor(e,n){this.dep=new La,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:Te(e),this._value=n?e:ot(e),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(e){const n=this._rawValue,r=this.__v_isShallow||kt(e)||Jn(e);e=r?e:Te(e),An(e,n)&&(this._rawValue=e,this._value=r?e:ot(e),this.dep.trigger())}}function Ft(t){return lt(t)?t.value:t}const Nm={get:(t,e,n)=>e==="__v_raw"?t:Ft(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const s=t[e];return lt(s)&&!lt(n)?(s.value=n,!0):Reflect.set(t,e,n,r)}};function jh(t){return Tr(t)?t:new Proxy(t,Nm)}class Mm{constructor(e,n,r){this.fn=e,this.setter=n,this._value=void 0,this.dep=new La(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=gs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Pe!==this)return Rh(this,!0),!0}get value(){const e=this.dep.track();return Ch(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function Lm(t,e,n=!1){let r,s;return ce(t)?r=t:(r=t.get,s=t.set),new Mm(r,s,n)}const si={},Ei=new WeakMap;let qn;function Fm(t,e=!1,n=qn){if(n){let r=Ei.get(n);r||Ei.set(n,r=[]),r.push(t)}}function $m(t,e,n=Ce){const{immediate:r,deep:s,once:o,scheduler:a,augmentJob:l,call:u}=n,f=R=>s?R:kt(R)||s===!1||s===0?In(R,1):In(R);let d,p,_,b,x=!1,F=!1;if(lt(t)?(p=()=>t.value,x=kt(t)):Tr(t)?(p=()=>f(t),x=!0):ae(t)?(F=!0,x=t.some(R=>Tr(R)||kt(R)),p=()=>t.map(R=>{if(lt(R))return R.value;if(Tr(R))return f(R);if(ce(R))return u?u(R,2):R()})):ce(t)?e?p=u?()=>u(t,2):t:p=()=>
10{if(_){Mn();try{_()}finally{Ln()}}const R=qn;qn=d;try{return u?u(t,3,[b]):t(b)}finally{qn=R}}:p=Qt,e&&s){const R=p,oe=s===!0?1/0:s;p=()=>In(R(),oe)}const j=dm(),G=()=>{d.stop(),j&&j.active&&Da(j.effects,d)};if(o&&e){const R=e;e=(...oe)=>{R(...oe),G()}}let H=F?new Array(t.length).fill(si):si;const D=R=>{if(!(!(d.flags&1)||!d.dirty&&!R))if(e){const oe=d.run();if(s||x||(F?oe.some((Z,T)=>An(Z,H[T])):An(oe,H))){_&&_();const Z=qn;qn=d;try{const T=[oe,H===si?void 0:F&&H[0]===si?[]:H,b];u?u(e,3,T):e(...T),H=oe}finally{qn=Z}}}else d.run()};return l&&l(D),d=new Ih(p),d.scheduler=a?()=>a(D,!1):D,b=R=>Fm(R,!1,d),_=d.onStop=()=>{const R=Ei.get(d);if(R){if(u)u(R,4);else for(const oe of R)oe();Ei.delete(d)}},e?r?D(!0):H=d.run():a?a(D.bind(null,!0),!0):d.run(),G.pause=d.pause.bind(d),G.resume=d.resume.bind(d),G.stop=G,G}function In(t,e=1/0,n){if(e<=0||!ke(t)||t.__v_skip||(n=n||new Set,n.has(t)))return t;if(n.add(t),e--,lt(t))In(t.value,e,n);else if(ae(t))for(let r=0;r<t.length;r++)In(t[r],e,n);else if(mh(t)||wr(t))t.forEach(r=>{In(r,e,n)});else if(_h(t)){for(const r in t)In(t[r],e,n);for(const r of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,r)&&In(t[r],e,n)}return t}/** 11* @vue/runtime-core v3.5.13 12* (c) 2018-present Yuxi (Evan) You and Vue contributors 13* @license MIT
14**/function xs(t,e,n,r){try{return r?t(...r):t()}catch(s){Xi(s,e,n)}}function Yt(t,e,n,r){if(ce(t)){const s=xs(t,e,n,r);return s&&gh(s)&&s.catch(o=>{Xi(o,e,n)}),s}if(ae(t)){const s=[];for(let o=0;o<t.length;o++)s.push(Yt(t[o],e,n,r));return s}}function Xi(t,e,n,r=!0){const s=e?e.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:a}=e&&e.appContext.config||Ce;if(e){let l=e.parent;const u=e.proxy,f=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const d=l.ec;if(d){for(let p=0;p<d.length;p++)if(d[p](t,u,f)===!1)return}l=l.parent}if(o){Mn(),xs(o,null,10,[t,u,f]),Ln();return}}Um(t,n,s,r,a)}function Um(t,e,n,r=!0,s=!1){if(s)throw t;console.error(t)}const dt=[];let Kt=-1;const br=[];let wn=null,mr=0;const Bh=Promise.resolve();let wi=null;function zh(t){const e=wi||Bh;return t?e.then(this?t.bind(this):t):e}function jm(t){let e=Kt+1,n=dt.length;for(;e<n;){const r=e+n>>>1,s=dt[r],o=_s(s);o<t||o===t&&s.flags&2?e=r+1:n=r}return e}function ja(t){if(!(t.flags&1)){const e=_s(t),n=dt[dt.length-1];!n||!(t.flags&2)&&e>=_s(n)?dt.push(t):dt.splice(jm(e),0,t),t.flags|=1,Hh()}}function Hh(){wi||(wi=Bh.then(Kh))}function Bm(t){ae(t)?br.push(...t):wn&&t.id===-1?wn.splice(mr+1,0,t):t.flags&1||(br.push(t),t.flags|=1),Hh()}function yc(t,e,n=Kt+1){for(;n<dt.length;n++){const r=dt[n];if(r&&r.flags&2){if(t&&r.id!==t.uid)continue;dt.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function qh(t){if(br.length){const e=[...new Set(br)].sort((n,r)=>_s(n)-_s(r));if(br.length=0,wn){wn.push(...e);return}for(wn=e,mr=0;mr<wn.length;mr++){const n=wn[mr];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}wn=null,mr=0}}const _s=t=>t.id==null?t.flags&2?-1:1/0:t.id;function Kh(t){try{for(Kt=0;Kt<dt.length;Kt++){const e=dt[Kt];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),xs(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;Kt<dt.length;Kt++){const e=dt[Kt];e&&(e.flags&=-2)}Kt=-1,dt.length=0,qh(),wi=null,(dt.length||br.length)&&Kh()}}let vt=null,Gh=null;function Ti(t){const e=vt;return vt=t,Gh=t&&t.type.__scopeId||null,e}function je(t,e=vt,n){if(!e||t._n)return t;const r=(...s)=>{r._d&&Rc(-1);const o=Ti(e);let a;try{a=t(...s)}finally{Ti(o),r._d&&Rc(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function zn(t,e,n,r){const s=t.dirs,o=e&&e.dirs;for(let a=0;a<s.length;a++){const l=s[a];o&&(l.oldValue=o[a].value);let u=l.dir[r];u&&(Mn(),Yt(u,n,8,[t.el,l,t,e]),Ln())}}const zm=Symbol("_vte"),Hm=t=>t.__isTeleport;function Ba(t,e){t.shapeFlag&6&&t.component?(t.transition=e,Ba(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}/*! #__NO_SIDE_EFFECTS__ */function Ds(t,e){return ce(t)?ct({name:t.name},e,{setup:t}):t}function Wh(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function bi(t,e,n,r,s=!1){if(ae(t)){t.forEach((x,F)=>bi(x,e&&(ae(e)?e[F]:e),n,r,s));return}if(Ir(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&bi(t,e,n,r.component.subTree);return}const o=r.shapeFlag&4?qa(r.component):r.el,a=s?null:o,{i:l,r:u}=t,f=e&&e.r,d=l.refs===Ce?l.refs={}:l.refs,p=l.setupState,_=Te(p),b=p===Ce?()=>!1:x=>be(_,x);if(f!=null&&f!==u&&(Be(f)?(d[f]=null,b(f)&&(p[f]=null)):lt(f)&&(f.value=null)),ce(u))xs(u,l,12,[a,d]);else{const x=Be(u),F=lt(u);
14if(x||F){const j=()=>{if(t.f){const G=x?b(u)?p[u]:d[u]:u.value;s?ae(G)&&Da(G,o):ae(G)?G.includes(o)||G.push(o):x?(d[u]=[o],b(u)&&(p[u]=d[u])):(u.value=[o],t.k&&(d[t.k]=u.value))}else x?(d[u]=a,b(u)&&(p[u]=a)):F&&(u.value=a,t.k&&(d[t.k]=a))};a?(j.id=-1,At(j,n)):j()}}}Ki().requestIdleCallback;Ki().cancelIdleCallback;const Ir=t=>!!t.type.__asyncLoader,Qh=t=>t.type.__isKeepAlive;function qm(t,e){Xh(t,"a",e)}function Km(t,e){Xh(t,"da",e)}function Xh(t,e,n=pt){const r=t.__wdc||(t.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return t()});if(Yi(e,r,n),n){let s=n.parent;for(;s&&s.parent;)Qh(s.parent.vnode)&&Gm(r,e,n,s),s=s.parent}}function Gm(t,e,n,r){const s=Yi(e,t,r,!0);Jh(()=>{Da(r[e],s)},n)}function Yi(t,e,n=pt,r=!1){if(n){const s=n[t]||(n[t]=[]),o=e.__weh||(e.__weh=(...a)=>{Mn();const l=ks(n),u=Yt(e,n,t,a);return l(),Ln(),u});return r?s.unshift(o):s.push(o),o}}const pn=t=>(e,n=pt)=>{(!ws||t==="sp")&&Yi(t,(...r)=>e(...r),n)},Wm=pn("bm"),Yh=pn("m"),Qm=pn("bu"),Xm=pn("u"),Ym=pn("bum"),Jh=pn("um"),Jm=pn("sp"),Zm=pn("rtg"),eg=pn("rtc");function tg(t,e=pt){Yi("ec",t,e)}const ng=Symbol.for("v-ndc");function rg(t,e,n,r){let s;const o=n,a=ae(t);if(a||Be(t)){const l=a&&Tr(t);let u=!1;l&&(u=!kt(t),t=Wi(t)),s=new Array(t.length);for(let f=0,d=t.length;f<d;f++)s[f]=e(u?ot(t[f]):t[f],f,void 0,o)}else if(typeof t=="number"){s=new Array(t);for(let l=0;l<t;l++)s[l]=e(l+1,l,void 0,o)}else if(ke(t))if(t[Symbol.iterator])s=Array.from(t,(l,u)=>e(l,u,void 0,o));else{const l=Object.keys(t);s=new Array(l.length);for(let u=0,f=l.length;u<f;u++){const d=l[u];s[u]=e(t[d],d,u,o)}}else s=[];return s}function No(t,e,n={},r,s){if(vt.ce||vt.parent&&Ir(vt.parent)&&vt.parent.ce)return e!=="default"&&(n.name=e),Ee(),Ai(_t,null,[Ie("slot",n,r)],64);let o=t[e];o&&o._c&&(o._d=!1),Ee();const a=o&&Zh(o(n)),l=n.key||a&&a.key,u=Ai(_t,{key:(l&&!dn(l)?l:`_${e}`)+""},a||[],a&&t._===1?64:-2);return o&&o._c&&(o._d=!0),u}function Zh(t){return t.some(e=>Es(e)?!(e.type===Vn||e.type===_t&&!Zh(e.children)):!0)?t:null}const sa=t=>t?wf(t)?qa(t):sa(t.parent):null,as=ct(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>sa(t.parent),$root:t=>sa(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>tf(t),$forceUpdate:t=>t.f||(t.f=()=>{ja(t.update)}),$nextTick:t=>t.n||(t.n=zh.bind(t.proxy)),$watch:t=>Ig.bind(t)}),Mo=(t,e)=>t!==Ce&&!t.__isScriptSetup&&be(t,e),sg={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:o,accessCache:a,type:l,appContext:u}=t;let f;if(e[0]!=="$"){const b=a[e];if(b!==void 0)switch(b){case 1:return r[e];case 2:return s[e];case 4:return n[e];case 3:return o[e]}else{if(Mo(r,e))return a[e]=1,r[e];if(s!==Ce&&be(s,e))return a[e]=2,s[e];if((f=t.propsOptions[0])&&be(f,e))return a[e]=3,o[e];if(n!==Ce&&be(n,e))return a[e]=4,n[e];ia&&(a[e]=0)}}const d=as[e];let p,_;if(d)return e==="$attrs"&&it(t.attrs,"get",""),d(t);if((p=l.__cssModules)&&(p=p[e]))return p;if(n!==Ce&&be(n,e))return a[e]=4,n[e];if(_=u.config.globalProperties,be(_,e))return _[e]},set({_:t},e,n){const{data:r,setupState:s,ctx:o}=t;return Mo(s,e)?(s[e]=n,!0):r!==Ce&&be(r,e)?(r[e]=n,!0):be(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(o[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:s,propsOptions:o}},a){let l;return!!n[a]||t!==Ce&&be(t,a)||Mo(e,a)||(l=o[0])&&be(l,a)||be(r,a)||be(as,a)||be(s.config.globalProperties,a)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:be(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function _c(t){return ae(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let ia=!0;function ig(t){const e=tf(t),n=t.proxy,r=t.ctx;ia=!1,e.beforeCreate&&vc(e.beforeCreate,t,"bc");const{data:s,computed:o,methods:a,watch:l,provide:u,inject:f,created:d,beforeMount:p,mounted:_,beforeUpdate:b,updated:x,activated:F,deactivated:j,beforeDestroy:G,beforeUnmount:H,destroyed:D,unmounted:R,render:oe,renderTracked:Z,renderTriggered:T,errorCaptured:g,serverPrefetch:w,expose:I,inheritAttrs:A,components:P,directives:E,filters:ut}=e;if(f&&og(f,r,null),a)for(const de in a){const fe=a[de];ce(fe)&&(r[de]=fe.bind(n))}if(s){const de=s.call(n,n);ke(de)&&(t.data=Qi(de))}if(ia=!0,o)for(const de in o){const fe=o[de],Tt=ce(fe)?fe.bind(n,n):ce(fe.get)?fe.get.bind(n,n):Qt,Ot=!ce(fe)&&ce(fe.set)?fe.set.bind(n):Qt,Vt=$t({get:Tt,set:Ot});Object.defineProperty(r,de,{enumerable:!0,configurable:!0,get:()=>Vt.value,set:Oe=>Vt.value=Oe})}if(l)for(const de in l)ef(l[de],r,n,de);if(u){const de=ce(u)?u.call(n):u;Reflect.ownKeys(de).forEach(fe=>{hi(fe,de[fe])})}d&&vc(d,t,"c");function $e(de,fe){ae(fe)?fe.forEach(Tt=>de(Tt.bind(n))):fe&&de(fe.bind(n))}if($e(Wm,p),$e(Yh,_),$e(Qm,b),$e(Xm,x),$e(qm,F),$e(Km,j),$e(tg,g),$e(eg,Z),$e(Zm,T),$e(Ym,H),$e(Jh,R),$e(Jm,w),ae(
vendor: 5,856 bytes, line 14
14I))if(I.length){const de=t.exposed||(t.exposed={});I.forEach(fe=>{Object.defineProperty(de,fe,{get:()=>n[fe],set:Tt=>n[fe]=Tt})})}else t.exposed||(t.exposed={});oe&&t.render===Qt&&(t.render=oe),A!=null&&(t.inheritAttrs=A),P&&(t.components=P),E&&(t.directives=E),w&&Wh(t)}function og(t,e,n=Qt){ae(t)&&(t=oa(t));for(const r in t){const s=t[r];let o;ke(s)?"default"in s?o=ln(s.from||r,s.default,!0):o=ln(s.from||r):o=ln(s),lt(o)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):e[r]=o}}function vc(t,e,n){Yt(ae(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function ef(t,e,n,r){let s=r.includes(".")?gf(n,r):()=>n[r];if(Be(t)){const o=e[t];ce(o)&&fi(s,o)}else if(ce(t))fi(s,t.bind(n));else if(ke(t))if(ae(t))t.forEach(o=>ef(o,e,n,r));else{const o=ce(t.handler)?t.handler.bind(n):e[t.handler];ce(o)&&fi(s,o,t)}}function tf(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:s,optionsCache:o,config:{optionMergeStrategies:a}}=t.appContext,l=o.get(e);let u;return l?u=l:!s.length&&!n&&!r?u=e:(u={},s.length&&s.forEach(f=>Ii(u,f,a,!0)),Ii(u,e,a)),ke(e)&&o.set(e,u),u}function Ii(t,e,n,r=!1){const{mixins:s,extends:o}=e;o&&Ii(t,o,n,!0),s&&s.forEach(a=>Ii(t,a,n,!0));for(const a in e)if(!(r&&a==="expose")){const l=ag[a]||n&&n[a];t[a]=l?l(t[a],e[a]):e[a]}return t}const ag={data:Ec,props:wc,emits:wc,methods:ts,computed:ts,beforeCreate:ft,created:ft,beforeMount:ft,mounted:ft,beforeUpdate:ft,updated:ft,beforeDestroy:ft,beforeUnmount:ft,destroyed:ft,unmounted:ft,activated:ft,deactivated:ft,errorCaptured:ft,serverPrefetch:ft,components:ts,directives:ts,watch:cg,provide:Ec,inject:lg};function Ec(t,e){return e?t?function(){return ct(ce(t)?t.call(this,this):t,ce(e)?e.call(this,this):e)}:e:t}function lg(t,e){return ts(oa(t),oa(e))}function oa(t){if(ae(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function ft(t,e){return t?[...new Set([].concat(t,e))]:e}function ts(t,e){return t?ct(Object.create(null),t,e):e}function wc(t,e){return t?ae(t)&&ae(e)?[...new Set([...t,...e])]:ct(Object.create(null),_c(t),_c(e??{})):e}function cg(t,e){if(!t)return e;if(!e)return t;const n=ct(Object.create(null),t);for(const r in e)n[r]=ft(t[r],e[r]);return n}function nf(){return{app:null,config:{isNativeTag:em,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 ug=0;function hg(t,e){return function(r,s=null){ce(r)||(r=ct({},r)),s!=null&&!ke(s)&&(s=null);const o=nf(),a=new WeakSet,l=[];let u=!1;const f=o.app={_uid:ug++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:Hg,get config(){return o.config},set config(d){},use(d,...p){return a.has(d)||(d&&ce(d.install)?(a.add(d),d.install(f,...p)):ce(d)&&(a.add(d),d(f,...p))),f},mixin(d){return o.mixins.includes(d)||o.mixins.push(d),f},component(d,p){return p?(o.components[d]=p,f):o.components[d]},directive(d,p){return p?(o.directives[d]=p,f):o.directives[d]},mount(d,p,_){if(!u){const b=f._ceVNode||Ie(r,s);return b.appContext=o,_===!0?_="svg":_===!1&&(_=void 0),t(b,d,_),u=!0,f._container=d,d.__vue_app__=f,qa(b.component)}},onUnmount(d){l.push(d)},unmount(){u&&(Yt(l,f._instance,16),t(null,f._container),delete f._container.__vue_app__)},provide(d,p){return o.provides[d]=p,f},runWithContext(d){const p=Ar;Ar=f;try{return d()}finally{Ar=p}}};return f}}let Ar=null;function hi(t,e){if(pt){let n=pt.provides;const r=pt.parent&&pt.parent.provides;r===n&&(n=pt.provides=Object.create(r)),n[t]=e}}function ln(t,e,n=!1){const r=pt||vt;if(r||Ar){const s=Ar?Ar._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&t in s)return s[t];if(arguments.length>1)return n&&ce(e)?e.call(r&&r.proxy):e}}const rf={},sf=()=>Object.create(rf),of=t=>Object.getPrototypeOf(t)===rf;function fg(t,e,n,r=!1){const s={},o=sf();t.propsDefaults=Object.create(null),af(t,e,s,o);for(const a in t.propsOptions[0])a in s||(s[a]=void 0);n?t.props=r?s:Fh(s):t.type.props?t.props=s:t.props=o,t.attrs=o}function dg(t,e,n,r){const{props:s,attrs:o,vnode:{patchFlag:a}}=t,l=Te(s),[u]=t.propsOptions;let f=!1;if((r||a>0)&&!(a&16)){if(a&8){const d=t.vnode.dynamicProps;for(let p=0;p<d.length;p++){let _=d[p];if(Ji(t.emitsOptions,_))continue;const b=e[_];if(u)if(be(o,_))b!==o[_]&&(o[_]=b,f=!0);else{const x=Cn(_);s[x]=aa(u,l,x,b,t,!1)}else b!==o[_]&&(o[_]=b,f=!0)}}}else{af(t,e,s,o)&&(f=!0);let d;for(const p in l)(!e||!be(e,p)&&((d=or(p))===p||!be(e,d)))&&(u?n&&(n[p]!==void 0||n[d]!==void 0)&&(s[p]=aa(u,l,p,void 0,t,!0)):delete s[p]);if(o!==l)for(const p in o)(!e||!be(e,p))&&(delete o[p],f=!0)}f&&an(t.attrs,"set","")}function af(t,e,n,r){const[s,o]=t.propsOptions;let a=!1,l;if(e)for(let u in e){if(ss(u))continue;const f=e[u];let d;s&&be(s,d=Cn(u))?!o||!o.includes(d)?n[d]=f:(l||(l={}))[d]=f:Ji(t.emitsOptions,u)||(!(u in r)||f!==r[u])&&(r[u]=f,a=!0)}if(o){const u=Te(n),f=l||Ce;for(let d=0;d<o.length;d++){const p=o[d];n[p]=aa(s,u,p,f[p],t,!be(f,p))}}return a}function aa(t,e,n,r,s,o){const a=t[n];if(a!=null){const l=be(a,"default");if(l&&r===void 0){const u=a.default;if(a.type!==Function&&!a.skipFactory&&ce(u)){const{propsDefaults:f}=s;if(n in f)r=f[n];else{const d=ks(s);r=f[n]=u.call(null,e),d()}}else r=u;s.ce&&s.ce._setProp(n,r)}a[0]&&(o&&!l?r=!1:a[1]&&(r===""||r===or(n))&&(r=!0))}return r}const pg=new WeakMap;function lf(t,e,n=!1){const r=n?pg:e.propsCache,s=r.get(t);if(s)return s;const o=t.props,a={},l=[];let u=!1;if(!ce(t)){const d=p=>{u=!0;const[_,b]=lf(p,e,!0);ct(a,_),b&&l.push(...b)};!n&&e.mixins.length&&e.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}if(!o&&!u)return ke(t)&&r.set(t,Er),Er;if(ae(o))for(let d=0;d<o.length;d++){const p=Cn(o[d]);
vendor: 5,312 bytes, line 14
14Tc(p)&&(a[p]=Ce)}else if(o)for(const d in o){const p=Cn(d);if(Tc(p)){const _=o[d],b=a[p]=ae(_)||ce(_)?{type:_}:ct({},_),x=b.type;let F=!1,j=!0;if(ae(x))for(let G=0;G<x.length;++G){const H=x[G],D=ce(H)&&H.name;if(D==="Boolean"){F=!0;break}else D==="String"&&(j=!1)}else F=ce(x)&&x.name==="Boolean";b[0]=F,b[1]=j,(F||be(b,"default"))&&l.push(p)}}const f=[a,l];return ke(t)&&r.set(t,f),f}function Tc(t){return t[0]!=="$"&&!ss(t)}const cf=t=>t[0]==="_"||t==="$stable",za=t=>ae(t)?t.map(Wt):[Wt(t)],mg=(t,e,n)=>{if(e._n)return e;const r=je((...s)=>za(e(...s)),n);return r._c=!1,r},uf=(t,e,n)=>{const r=t._ctx;for(const s in t){if(cf(s))continue;const o=t[s];if(ce(o))e[s]=mg(s,o,r);else if(o!=null){const a=za(o);e[s]=()=>a}}},hf=(t,e)=>{const n=za(e);t.slots.default=()=>n},ff=(t,e,n)=>{for(const r in e)(n||r!=="_")&&(t[r]=e[r])},gg=(t,e,n)=>{const r=t.slots=sf();if(t.vnode.shapeFlag&32){const s=e._;s?(ff(r,e,n),n&&Eh(r,"_",s,!0)):uf(e,r)}else e&&hf(t,e)},yg=(t,e,n)=>{const{vnode:r,slots:s}=t;let o=!0,a=Ce;if(r.shapeFlag&32){const l=e._;l?n&&l===1?o=!1:ff(s,e,n):(o=!e.$stable,uf(e,s)),a=e}else e&&(hf(t,e),a={default:1});if(o)for(const l in s)!cf(l)&&a[l]==null&&delete s[l]},At=xg;function _g(t){return vg(t)}function vg(t,e){const n=Ki();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:a,createText:l,createComment:u,setText:f,setElementText:d,parentNode:p,nextSibling:_,setScopeId:b=Qt,insertStaticContent:x}=t,F=(y,v,S,O=null,M=null,N=null,W=void 0,q=null,z=!!v.dynamicChildren)=>{if(y===v)return;y&&!Yr(y,v)&&(O=k(y),Oe(y,M,N,!0),y=null),v.patchFlag===-2&&(z=!1,v.dynamicChildren=null);const{type:$,ref:ne,shapeFlag:X}=v;switch($){case Zi:j(y,v,S,O);break;case Vn:G(y,v,S,O);break;case di:y==null&&H(v,S,O,W);break;case _t:P(y,v,S,O,M,N,W,q,z);break;default:X&1?oe(y,v,S,O,M,N,W,q,z):X&6?E(y,v,S,O,M,N,W,q,z):(X&64||X&128)&&$.process(y,v,S,O,M,N,W,q,z,J)}ne!=null&&M&&bi(ne,y&&y.ref,N,v||y,!v)},j=(y,v,S,O)=>{if(y==null)r(v.el=l(v.children),S,O);else{const M=v.el=y.el;v.children!==y.children&&f(M,v.children)}},G=(y,v,S,O)=>{y==null?r(v.el=u(v.children||""),S,O):v.el=y.el},H=(y,v,S,O)=>{[y.el,y.anchor]=x(y.children,v,S,O,y.el,y.anchor)},D=({el:y,anchor:v},S,O)=>{let M;for(;y&&y!==v;)M=_(y),r(y,S,O),y=M;r(v,S,O)},R=({el:y,anchor:v})=>{let S;for(;y&&y!==v;)S=_(y),s(y),y=S;s(v)},oe=(y,v,S,O,M,N,W,q,z)=>{v.type==="svg"?W="svg":v.type==="math"&&(W="mathml"),y==null?Z(v,S,O,M,N,W,q,z):w(y,v,M,N,W,q,z)},Z=(y,v,S,O,M,N,W,q)=>{let z,$;const{props:ne,shapeFlag:X,transition:te,dirs:se}=y;if(z=y.el=a(y.type,N,ne&&ne.is,ne),X&8?d(z,y.children):X&16&&g(y.children,z,null,O,M,Lo(y,N),W,q),se&&zn(y,null,O,"created"),T(z,y,y.scopeId,W,O),ne){for(const le in ne)le!=="value"&&!ss(le)&&o(z,le,null,ne[le],N,O);"value"in ne&&o(z,"value",null,ne.value,N),($=ne.onVnodeBeforeMount)&&qt($,O,y)}se&&zn(y,null,O,"beforeMount");const re=Eg(M,te);re&&te.beforeEnter(z),r(z,v,S),(($=ne&&ne.onVnodeMounted)||re||se)&&At(()=>{$&&qt($,O,y),re&&te.enter(z),se&&zn(y,null,O,"mounted")},M)},T=(y,v,S,O,M)=>{if(S&&b(y,S),O)for(let N=0;N<O.length;N++)b(y,O[N]);if(M){let N=M.subTree;if(v===N||_f(N.type)&&(N.ssContent===v||N.ssFallback===v)){const W=M.vnode;T(y,W,W.scopeId,W.slotScopeIds,M.parent)}}},g=(y,v,S,O,M,N,W,q,z=0)=>{for(let $=z;$<y.length;$++){const ne=y[$]=q?Tn(y[$]):Wt(y[$]);F(null,ne,v,S,O,M,N,W,q)}},w=(y,v,S,O,M,N,W)=>{const q=v.el=y.el;let{patchFlag:z,dynamicChildren:$,dirs:ne}=v;z|=y.patchFlag&16;const X=y.props||Ce,te=v.props||Ce;let se;if(S&&Hn(S,!1),(se=te.onVnodeBeforeUpdate)&&qt(se,S,v,y),ne&&zn(v,y,S,"beforeUpdate"),S&&Hn(S,!0),(X.innerHTML&&te.innerHTML==null||X.textContent&&te.textContent==null)&&d(q,""),$?I(y.dynamicChildren,$,q,S,O,Lo(v,M),N):W||fe(y,v,q,null,S,O,Lo(v,M),N,!1),z>0){if(z&16)A(q,X,te,S,M);else if(z&2&&X.class!==te.class&&o(q,"class",null,te.class,M),z&4&&o(q,"style",X.style,te.style,M),z&8){const re=v.dynamicProps;for(let le=0;le<re.length;le++){const pe=re[le],Ze=X[pe],Ke=te[pe];(Ke!==Ze||pe==="value")&&o(q,pe,Ze,Ke,M,S)}}z&1&&y.children!==v.children&&d(q,v.children)}else!W&&$==null&&A(q,X,te,S,M);((se=te.onVnodeUpdated)||ne)&&At(()=>{se&&qt(se,S,v,y),ne&&zn(v,y,S,"updated")},O)},I=(y,v,S,O,M,N,W)=>{for(let q=0;q<v.length;q++){const z=y[q],$=v[q],ne=z.el&&(z.type===_t||!Yr(z,$)||z.shapeFlag&70)?p(z.el):S;F(z,$,ne,null,O,M,N,W,!0)}},A=(y,v,S,O,M)=>{if(v!==S){if(v!==Ce)for(const N in v)!ss(N)&&!(N in S)&&o(y,N,v[N],null,M,O);for(const N in S){if(ss(N))continue;const W=S[N],q=v[N];W!==q&&N!=="value"&&o(y,N,q,W,M,O)}"value"in S&&o(y,"value",v.value,S.value,M)}},P=(y,v,S,O,M,N,W,q,z)=>{const $=v.el=y?y.el:l(""),ne=v.anchor=y?y.anchor:l("");let{patchFlag:X,dynamicChildren:te,slotScopeIds:se}=v;se&&(q=q?q.concat(se):se),y==null?(r($,S,O),r(ne,S,O),g(v.children||[],S,ne,M,N,W,q,z)):X>0&&X&64&&te&&y.dynamicChildren?(I(y.dynamicChildren,te,S,M,N,W,q),(v.key!=null||M&&v===M.subTree)&&df(y,v,!0)):fe(y,v,S,ne,M,N,W,q,z)},E=(y,v,S,O,M,N,W,q,z)=>{v.slotScopeIds=q,y==null?v.shapeFlag&512?M.ctx.activate(v,S,O,W,z):ut(v,S,O,M,N,W,z):Ct(y,v,z)},ut=(y,v,S,O,M,N,W)=>{const q=y.component=Fg(y,O,M);if(Qh(y)&&(q.ctx.renderer=J),$g(q,!1,W),q.asyncDep){if(M&&M.registerDep(q,$e,W),!y.el){const z=q.subTree=Ie(Vn);G(null,z,v,S)}}else $e(q,y,v,S,M,N,W)},Ct=(y,v,S)=>{const O=v.component=y.component;if(Cg(y,v,S))if(O.asyncDep&&!O.asyncResolved){de(O,v,S);return}
vendor: 10,697 bytes, line 14
14else O.next=v,O.update();else v.el=y.el,O.vnode=v},$e=(y,v,S,O,M,N,W)=>{const q=()=>{if(y.isMounted){let{next:X,bu:te,u:se,parent:re,vnode:le}=y;{const et=pf(y);if(et){X&&(X.el=le.el,de(y,X,W)),et.asyncDep.then(()=>{y.isUnmounted||q()});return}}let pe=X,Ze;Hn(y,!1),X?(X.el=le.el,de(y,X,W)):X=le,te&&Vo(te),(Ze=X.props&&X.props.onVnodeBeforeUpdate)&&qt(Ze,re,X,le),Hn(y,!0);const Ke=Ic(y),xt=y.subTree;y.subTree=Ke,F(xt,Ke,p(xt.el),k(xt),y,M,N),X.el=Ke.el,pe===null&&Vg(y,Ke.el),se&&At(se,M),(Ze=X.props&&X.props.onVnodeUpdated)&&At(()=>qt(Ze,re,X,le),M)}else{let X;const{el:te,props:se}=v,{bm:re,m:le,parent:pe,root:Ze,type:Ke}=y,xt=Ir(v);Hn(y,!1),re&&Vo(re),!xt&&(X=se&&se.onVnodeBeforeMount)&&qt(X,pe,v),Hn(y,!0);{Ze.ce&&Ze.ce._injectChildStyle(Ke);const et=y.subTree=Ic(y);F(null,et,S,O,y,M,N),v.el=et.el}if(le&&At(le,M),!xt&&(X=se&&se.onVnodeMounted)){const et=v;At(()=>qt(X,pe,et),M)}(v.shapeFlag&256||pe&&Ir(pe.vnode)&&pe.vnode.shapeFlag&256)&&y.a&&At(y.a,M),y.isMounted=!0,v=S=O=null}};y.scope.on();const z=y.effect=new Ih(q);y.scope.off();const $=y.update=z.run.bind(z),ne=y.job=z.runIfDirty.bind(z);ne.i=y,ne.id=y.uid,z.scheduler=()=>ja(ne),Hn(y,!0),$()},de=(y,v,S)=>{v.component=y;const O=y.vnode.props;y.vnode=v,y.next=null,dg(y,v.props,O,S),yg(y,v.children,S),Mn(),yc(y),Ln()},fe=(y,v,S,O,M,N,W,q,z=!1)=>{const $=y&&y.children,ne=y?y.shapeFlag:0,X=v.children,{patchFlag:te,shapeFlag:se}=v;if(te>0){if(te&128){Ot($,X,S,O,M,N,W,q,z);return}else if(te&256){Tt($,X,S,O,M,N,W,q,z);return}}se&8?(ne&16&&mt($,M,N),X!==$&&d(S,X)):ne&16?se&16?Ot($,X,S,O,M,N,W,q,z):mt($,M,N,!0):(ne&8&&d(S,""),se&16&&g(X,S,O,M,N,W,q,z))},Tt=(y,v,S,O,M,N,W,q,z)=>{y=y||Er,v=v||Er;const $=y.length,ne=v.length,X=Math.min($,ne);let te;for(te=0;te<X;te++){const se=v[te]=z?Tn(v[te]):Wt(v[te]);F(y[te],se,S,null,M,N,W,q,z)}$>ne?mt(y,M,N,!0,!1,X):g(v,S,O,M,N,W,q,z,X)},Ot=(y,v,S,O,M,N,W,q,z)=>{let $=0;const ne=v.length;let X=y.length-1,te=ne-1;for(;$<=X&&$<=te;){const se=y[$],re=v[$]=z?Tn(v[$]):Wt(v[$]);if(Yr(se,re))F(se,re,S,null,M,N,W,q,z);else break;$++}for(;$<=X&&$<=te;){const se=y[X],re=v[te]=z?Tn(v[te]):Wt(v[te]);if(Yr(se,re))F(se,re,S,null,M,N,W,q,z);else break;X--,te--}if($>X){if($<=te){const se=te+1,re=se<ne?v[se].el:O;for(;$<=te;)F(null,v[$]=z?Tn(v[$]):Wt(v[$]),S,re,M,N,W,q,z),$++}}else if($>te)for(;$<=X;)Oe(y[$],M,N,!0),$++;else{const se=$,re=$,le=new Map;for($=re;$<=te;$++){const Ge=v[$]=z?Tn(v[$]):Wt(v[$]);Ge.key!=null&&le.set(Ge.key,$)}let pe,Ze=0;const Ke=te-re+1;let xt=!1,et=0;const gn=new Array(Ke);for($=0;$<Ke;$++)gn[$]=0;for($=se;$<=X;$++){const Ge=y[$];if(Ze>=Ke){Oe(Ge,M,N,!0);continue}let Dt;if(Ge.key!=null)Dt=le.get(Ge.key);else for(pe=re;pe<=te;pe++)if(gn[pe-re]===0&&Yr(Ge,v[pe])){Dt=pe;break}Dt===void 0?Oe(Ge,M,N,!0):(gn[Dt-re]=$+1,Dt>=et?et=Dt:xt=!0,F(Ge,v[Dt],S,null,M,N,W,q,z),Ze++)}const Lr=xt?wg(gn):Er;for(pe=Lr.length-1,$=Ke-1;$>=0;$--){const Ge=re+$,Dt=v[Ge],Us=Ge+1<ne?v[Ge+1].el:O;gn[$]===0?F(null,Dt,S,Us,M,N,W,q,z):xt&&(pe<0||$!==Lr[pe]?Vt(Dt,S,Us,2):pe--)}}},Vt=(y,v,S,O,M=null)=>{const{el:N,type:W,transition:q,children:z,shapeFlag:$}=y;if($&6){Vt(y.component.subTree,v,S,O);return}if($&128){y.suspense.move(v,S,O);return}if($&64){W.move(y,v,S,J);return}if(W===_t){r(N,v,S);for(let X=0;X<z.length;X++)Vt(z[X],v,S,O);r(y.anchor,v,S);return}if(W===di){D(y,v,S);return}if(O!==2&&$&1&&q)if(O===0)q.beforeEnter(N),r(N,v,S),At(()=>q.enter(N),M);else{const{leave:X,delayLeave:te,afterLeave:se}=q,re=()=>r(N,v,S),le=()=>{X(N,()=>{re(),se&&se()})};te?te(N,re,le):le()}else r(N,v,S)},Oe=(y,v,S,O=!1,M=!1)=>{const{type:N,props:W,ref:q,children:z,dynamicChildren:$,shapeFlag:ne,patchFlag:X,dirs:te,cacheIndex:se}=y;if(X===-2&&(M=!1),q!=null&&bi(q,null,S,y,!0),se!=null&&(v.renderCache[se]=void 0),ne&256){v.ctx.deactivate(y);return}const re=ne&1&&te,le=!Ir(y);let pe;if(le&&(pe=W&&W.onVnodeBeforeUnmount)&&qt(pe,v,y),ne&6)Ht(y.component,S,O);else{if(ne&128){y.suspense.unmount(S,O);return}re&&zn(y,null,v,"beforeUnmount"),ne&64?y.type.remove(y,v,S,J,O):$&&!$.hasOnce&&(N!==_t||X>0&&X&64)?mt($,v,S,!1,!0):(N===_t&&X&384||!M&&ne&16)&&mt(z,v,S),O&&Ne(y)}(le&&(pe=W&&W.onVnodeUnmounted)||re)&&At(()=>{pe&&qt(pe,v,y),re&&zn(y,null,v,"unmounted")},S)},Ne=y=>{const{type:v,el:S,anchor:O,transition:M}=y;if(v===_t){mn(S,O);return}if(v===di){R(y);return}const N=()=>{s(S),M&&!M.persisted&&M.afterLeave&&M.afterLeave()};if(y.shapeFlag&1&&M&&!M.persisted){const{leave:W,delayLeave:q}=M,z=()=>W(S,N);q?q(y.el,N,z):z()}else N()},mn=(y,v)=>{let S;for(;y!==v;)S=_(y),s(y),y=S;s(v)},Ht=(y,v,S)=>{const{bum:O,scope:M,job:N,subTree:W,um:q,m:z,a:$}=y;bc(z),bc($),O&&Vo(O),M.stop(),N&&(N.flags|=8,Oe(W,y,v,S)),q&&At(q,v),At(()=>{y.isUnmounted=!0},v),v&&v.pendingBranch&&!v.isUnmounted&&y.asyncDep&&!y.asyncResolved&&y.suspenseId===v.pendingId&&(v.deps--,v.deps===0&&v.resolve())},mt=(y,v,S,O=!1,M=!1,N=0)=>{for(let W=N;W<y.length;W++)Oe(y[W],v,S,O,M)},k=y=>{if(y.shapeFlag&6)return k(y.component.subTree);if(y.shapeFlag&128)return y.suspense.next();const v=_(y.anchor||y.el),S=v&&v[zm];return S?_(S):v};let Y=!1;const Q=(y,v,S)=>{y==null?v._vnode&&Oe(v._vnode,null,null,!0):F(v._vnode||null,y,v,null,null,null,S),v._vnode=y,Y||(Y=!0,yc(),qh(),Y=!1)},J={p:F,um:Oe,m:Vt,r:Ne,mt:ut,mc:g,pc:fe,pbc:I,n:k,o:t};return{render:Q,hydrate:void 0,createApp:hg(Q)}}function Lo({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function Hn({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function Eg(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function df(t,e,n=!1){const r=t.children,s=e.children;if(ae(r)&&ae(s))for(let o=0;o<r.length;o++){const a=r[o];let l=s[o];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=s[o]=Tn(s[o]),l.el=a.el),!n&&l.patchFlag!==-2&&df(a,l)),l.type===Zi&&(l.el=a.el)}}function wg(t){const e=t.slice(),n=[0];let r,s,o,a,l;const u=t.length;for(r=0;r<u;r++){const f=t[r];if(f!==0){if(s=n[n.length-1],t[s]<f){e[r]=s,n.push(r);continue}for(o=0,a=n.length-1;o<a;)l=o+a>>1,t[n[l]]<f?o=l+1:a=l;f<t[n[o]]&&(o>0&&(e[r]=n[o-1]),n[o]=r)}}for(o=n.length,a=n[o-1];o-- >0;)n[o]=a,a=e[a];return n}function pf(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:pf(e)}function bc(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}const Tg=Symbol.for("v-scx"),bg=()=>ln(Tg);function fi(t,e,n){return mf(t,e,n)}function mf(t,e,n=Ce){const{immediate:r,deep:s,flush:o,once:a}=n,l=ct({},n),u=e&&r||!e&&o!=="post";let f;if(ws){if(o==="sync"){const b=bg();f=b.__watcherHandles||(b.__watcherHandles=[])}else if(!u){const b=()=>{};return b.stop=Qt,b.resume=Qt,b.pause=Qt,b}}const d=pt;l.call=(b,x,F)=>Yt(b,d,x,F);let p=!1;o==="post"?l.scheduler=b=>{At(b,d&&d.suspense)}:o!=="sync"&&(p=!0,l.scheduler=(b,x)=>{x?b():ja(b)}),l.augmentJob=b=>{e&&(b.flags|=4),p&&(b.flags|=2,d&&(b.id=d.uid,b.i=d))};const _=$m(t,e,l);return ws&&(f?f.push(_):u&&_()),_}function Ig(t,e,n){const r=this.proxy,s=Be(t)?t.includes(".")?gf(r,t):()=>r[t]:t.bind(r,r);let o;ce(e)?o=e:(o=e.handler,n=e);const a=ks(this),l=mf(s,o.bind(r),n);return a(),l}function gf(t,e){const n=e.split(".");return()=>{let r=t;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}const Ag=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${Cn(e)}Modifiers`]||t[`${or(e)}Modifiers`];function Rg(t,e,...n){if(t.isUnmounted)return;const r=t.vnode.props||Ce;let s=n;const o=e.startsWith("update:"),a=o&&Ag(r,e.slice(7));a&&(a.trim&&(s=n.map(d=>Be(d)?d.trim():d)),a.number&&(s=n.map(im)));let l,u=r[l=Co(e)]||r[l=Co(Cn(e))];!u&&o&&(u=r[l=Co(or(e))]),u&&Yt(u,t,6,s);const f=r[l+"Once"];if(f){if(!t.emitted)t.emitted={};else if(t.emitted[l])return;t.emitted[l]=!0,Yt(f,t,6,s)}}function yf(t,e,n=!1){const r=e.emitsCache,s=r.get(t);if(s!==void 0)return s;const o=t.emits;let a={},l=!1;if(!ce(t)){const u=f=>{const d=yf(f,e,!0);d&&(l=!0,ct(a,d))};!n&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}return!o&&!l?(ke(t)&&r.set(t,null),null):(ae(o)?o.forEach(u=>a[u]=null):ct(a,o),ke(t)&&r.set(t,a),a)}function Ji(t,e){return!t||!zi(e)?!1:(e=e.slice(2).replace(/Once$/,""),be(t,e[0].toLowerCase()+e.slice(1))||be(t,or(e))||be(t,e))}function Ic(t){const{type:e,vnode:n,proxy:r,withProxy:s,propsOptions:[o],slots:a,attrs:l,emit:u,render:f,renderCache:d,props:p,data:_,setupState:b,ctx:x,inheritAttrs:F}=t,j=Ti(t);let G,H;try{if(n.shapeFlag&4){const R=s||r,oe=R;G=Wt(f.call(oe,R,d,p,b,_,x)),H=l}else{const R=e;G=Wt(R.length>1?R(p,{attrs:l,slots:a,emit:u}):R(p,null)),H=e.props?l:Sg(l)}}catch(R){ls.length=0,Xi(R,t,1),G=Ie(Vn)}let D=G;if(H&&F!==!1){const R=Object.keys(H),{shapeFlag:oe}=D;R.length&&oe&7&&(o&&R.some(xa)&&(H=Pg(H,o)),D=Sr(D,H,!1,!0))}return n.dirs&&(D=Sr(D,null,!1,!0),D.dirs=D.dirs?D.dirs.concat(n.dirs):n.dirs),n.transition&&Ba(D,n.transition),G=D,Ti(j),G}const Sg=t=>{let e;for(const n in t)(n==="class"||n==="style"||zi(n))&&((e||(e={}))[n]=t[n]);return e},Pg=(t,e)=>{const n={};for(const r in t)(!xa(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function Cg(t,e,n){const{props:r,children:s,component:o}=t,{props:a,children:l,patchFlag:u}=e,f=o.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return r?Ac(r,a,f):!!a;if(u&8){const d=e.dynamicProps;for(let p=0;p<d.length;p++){const _=d[p];if(a[_]!==r[_]&&!Ji(f,_))return!0}}}else return(s||l)&&(!l||!l.$stable)?!0:r===a?!1:r?a?Ac(r,a,f):!0:!!a;return!1}function Ac(t,e,n){const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!0;for(let s=0;s<r.length;s++){const o=r[s];if(e[o]!==t[o]&&!Ji(n,o))return!0}return!1}function Vg({vnode:t,parent:e},n){for(;e;){const r=e.subTree;if(r.suspense&&r.suspense.activeBranch===t&&(r.el=t.el),r===t)(t=e.vnode).el=n,e=e.parent;else break}}const _f=t=>t.__isSuspense;function xg(t,e){e&&e.pendingBranch?ae(t)?e.effects.push(...t):e.effects.push(t):Bm(t)}const _t=Symbol.for("v-fgt"),Zi=Symbol.for("v-txt"),Vn=Symbol.for("v-cmt"),di=Symbol.for("v-stc"),ls=[];let St=null;function Ee(t=!1){ls.push(St=t?null:[])}function Dg(){ls.pop(),St=ls[ls.length-1]||null}let vs=1;function Rc(t,e=!1){vs+=t,t<0&&St&&e&&(St.hasOnce=!0)}function vf(t){return t.dynamicChildren=vs>0?St||Er:null,Dg(),vs>0&&St&&St.push(t),t}function Se(t,e,n,r,s,o){return vf(B(t,e,n,r,s,o,!0))}function Ai(t,e,n,r,s){return vf(Ie(t,e,n,r,s,!0))}function Es(t){return t?t.__v_isVNode===!0:!1}function Yr(t,e){return t.type===e.type&&t.key===e.key}const Ef=({key:t})=>t??null,pi=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?Be(t)||lt(t)||ce(t)?{i:vt,r:t,k:e,f:!!n}:t:null);function B(t,e=null,n=null,r=0,s=null,o=t===_t?0:1,a=!1,l=!1){const u={__v_isVNode:!0,__v_skip:!0,t
vendor: 14,916 bytes, lines 14-22
14ype:t,props:e,key:e&&Ef(e),ref:e&&pi(e),scopeId:Gh,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:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:vt};return l?(Ha(u,n),o&128&&t.normalize(u)):n&&(u.shapeFlag|=Be(n)?8:16),vs>0&&!a&&St&&(u.patchFlag>0||o&6)&&u.patchFlag!==32&&St.push(u),u}const Ie=kg;function kg(t,e=null,n=null,r=0,s=null,o=!1){if((!t||t===ng)&&(t=Vn),Es(t)){const l=Sr(t,e,!0);return n&&Ha(l,n),vs>0&&!o&&St&&(l.shapeFlag&6?St[St.indexOf(t)]=l:St.push(l)),l.patchFlag=-2,l}if(zg(t)&&(t=t.__vccOpts),e){e=Og(e);let{class:l,style:u}=e;l&&!Be(l)&&(e.class=gt(l)),ke(u)&&(Ua(u)&&!ae(u)&&(u=ct({},u)),e.style=Gi(u))}const a=Be(t)?1:_f(t)?128:Hm(t)?64:ke(t)?4:ce(t)?2:0;return B(t,e,n,r,s,a,o,!0)}function Og(t){return t?Ua(t)||of(t)?ct({},t):t:null}function Sr(t,e,n=!1,r=!1){const{props:s,ref:o,patchFlag:a,children:l,transition:u}=t,f=e?Ng(s||{},e):s,d={__v_isVNode:!0,__v_skip:!0,type:t.type,props:f,key:f&&Ef(f),ref:e&&e.ref?n&&o?ae(o)?o.concat(pi(e)):[o,pi(e)]:pi(e):o,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:l,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==_t?a===-1?16:a|16:a,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:u,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Sr(t.ssContent),ssFallback:t.ssFallback&&Sr(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return u&&r&&Ba(d,u.clone(d)),d}function ye(t=" ",e=0){return Ie(Zi,null,t,e)}function Sc(t,e){const n=Ie(di,null,t);return n.staticCount=e,n}function It(t="",e=!1){return e?(Ee(),Ai(Vn,null,t)):Ie(Vn,null,t)}function Wt(t){return t==null||typeof t=="boolean"?Ie(Vn):ae(t)?Ie(_t,null,t.slice()):Es(t)?Tn(t):Ie(Zi,null,String(t))}function Tn(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Sr(t)}function Ha(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(ae(e))n=16;else if(typeof e=="object")if(r&65){const s=e.default;s&&(s._c&&(s._d=!1),Ha(t,s()),s._c&&(s._d=!0));return}else{n=32;const s=e._;!s&&!of(e)?e._ctx=vt:s===3&&vt&&(vt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else ce(e)?(e={default:e,_ctx:vt},n=32):(e=String(e),r&64?(n=16,e=[ye(e)]):n=8);t.children=e,t.shapeFlag|=n}function Ng(...t){const e={};for(let n=0;n<t.length;n++){const r=t[n];for(const s in r)if(s==="class")e.class!==r.class&&(e.class=gt([e.class,r.class]));else if(s==="style")e.style=Gi([e.style,r.style]);else if(zi(s)){const o=e[s],a=r[s];a&&o!==a&&!(ae(o)&&o.includes(a))&&(e[s]=o?[].concat(o,a):a)}else s!==""&&(e[s]=r[s])}return e}function qt(t,e,n,r=null){Yt(t,e,7,[n,r])}const Mg=nf();let Lg=0;function Fg(t,e,n){const r=t.type,s=(e?e.appContext:t.appContext)||Mg,o={uid:Lg++,vnode:t,type:r,parent:e,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new fm(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(s.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:lf(r,s),emitsOptions:yf(r,s),emit:null,emitted:null,propsDefaults:Ce,inheritAttrs:r.inheritAttrs,ctx:Ce,data:Ce,props:Ce,attrs:Ce,slots:Ce,refs:Ce,setupState:Ce,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=e?e.root:o,o.emit=Rg.bind(null,o),t.ce&&t.ce(o),o}let pt=null,Ri,la;{const t=Ki(),e=(n,r)=>{let s;return(s=t[n])||(s=t[n]=[]),s.push(r),o=>{s.length>1?s.forEach(a=>a(o)):s[0](o)}};Ri=e("__VUE_INSTANCE_SETTERS__",n=>pt=n),la=e("__VUE_SSR_SETTERS__",n=>ws=n)}const ks=t=>{const e=pt;return Ri(t),t.scope.on(),()=>{t.scope.off(),Ri(e)}},Pc=()=>{pt&&pt.scope.off(),Ri(null)};function wf(t){return t.vnode.shapeFlag&4}let ws=!1;function $g(t,e=!1,n=!1){e&&la(e);const{props:r,children:s}=t.vnode,o=wf(t);fg(t,r,o,e),gg(t,s,n);const a=o?Ug(t,e):void 0;return e&&la(!1),a}function Ug(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,sg);const{setup:r}=n;if(r){Mn();const s=t.setupContext=r.length>1?Bg(t):null,o=ks(t),a=xs(r,t,0,[t.props,s]),l=gh(a);if(Ln(),o(),(l||t.sp)&&!Ir(t)&&Wh(t),l){if(a.then(Pc,Pc),e)return a.then(u=>{Cc(t,u)}).catch(u=>{Xi(u,t,0)});t.asyncDep=a}else Cc(t,a)}else Tf(t)}function Cc(t,e,n){ce(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:ke(e)&&(t.setupState=jh(e)),Tf(t)}function Tf(t,e,n){const r=t.type;t.render||(t.render=r.render||Qt);{const s=ks(t);Mn();try{ig(t)}finally{Ln(),s()}}}const jg={get(t,e){return it(t,"get",""),t[e]}};function Bg(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,jg),slots:t.slots,emit:t.emit,expose:e}}function qa(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(jh(Dm(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in as)return as[n](t)},has(e,n){return n in e||n in as}})):t.proxy}function zg(t){return ce(t)&&"__vccOpts"in t}const $t=(t,e)=>Lm(t,e,ws);function bf(t,e,n){const r=arguments.length;return r===2?ke(e)&&!ae(e)?Es(e)?Ie(t,null,[e]):Ie(t,e):Ie(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Es(n)&&(n=[n]),Ie(t,e,n))}const Hg="3.5.13";/** 15* @vue/runtime-dom v3.5.13 16* (c) 2018-present Yuxi (Evan) You and Vue contributors 17* @license MIT 18**/let ca;const Vc=typeof window<"u"&&window.trustedTypes;if(Vc)try{ca=Vc.createPolicy("vue",{createHTML:t=>t})}catch{}const If=ca?t=>ca.createHTML(t):t=>t,qg="http://www.w3.org/2000/svg",Kg="http://www.w3.org/1998/Math/MathML",on=typeof document<"u"?document:null,xc=on&&on.createElement("template"),Gg={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const s=e==="svg"?on.createElementNS(qg,t):e==="mathml"?on.createElementNS(Kg,t):n?on.createElement(t,{is:n}):on.createElement(t);return t==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:t=>on.createTextNode(t),createComment:t=>on.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>on.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,s,o){const a=n?n.previousSibling:e.lastChild;if(s&&(s===o||s.nextSibling))for(;e.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{xc.innerHTML=If(r==="svg"?`<svg>${t}</svg>`:r==="mathml"?`<math>${t}</math>`:t);const l=xc.content;if(r==="svg"||r==="mathml"){const u=l.firstChild;for(;u.firstChild;)l.appendChild(u.firstChild);l.removeChild(u)}e.insertBefore(l,n)}return[a?a.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},Wg=Symbol("_vtc");function Qg(t,e,n){const r=t[Wg];r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const Dc=Symbol("_vod"),Xg=Symbol("_vsh"),Yg=Symbol(""),Jg=/(^|;)\s*display\s*:/;function Zg(t,e,n){const r=t.style,s=Be(n);let o=!1;if(n&&!s){if(e)if(Be(e))for(const a of e.split(";")){const l=a.slice(0,a.indexOf(":")).trim();n[l]==null&&mi(r,l,"")}else for(const a in e)n[a]==null&&mi(r,a,"");for(const a in n)a==="display"&&(o=!0),mi(r,a,n[a])}else if(s){if(e!==n){const a=r[Yg];a&&(n+=";"+a),r.cssText=n,o=Jg.test(n)}}else e&&t.removeAttribute("style");Dc in t&&(t[Dc]=o?r.display:"",t[Xg]&&(r.display="none"))}const kc=/\s*!important$/;function mi(t,e,n){if(ae(n))n.forEach(r=>mi(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=ey(t,e);kc.test(n)?t.setProperty(or(r),n.replace(kc,""),"important"):t[r]=n}}const Oc=["Webkit","Moz","ms"],Fo={};function ey(t,e){const n=Fo[e];if(n)return n;let r=Cn(e);if(r!=="filter"&&r in t)return Fo[e]=r;r=vh(r);for(let s=0;s<Oc.length;s++){const o=Oc[s]+r;if(o in t)return Fo[e]=o}return e}const Nc="http://www.w3.org/1999/xlink";function Mc(t,e,n,r,s,o=hm(e)){r&&e.startsWith("xlink:")?n==null?t.removeAttributeNS(Nc,e.slice(6,e.length)):t.setAttributeNS(Nc,e,n):n==null||o&&!wh(n)?t.removeAttribute(e):t.setAttribute(e,o?"":dn(n)?String(n):n)}function Lc(t,e,n,r,s){if(e==="innerHTML"||e==="textContent"){n!=null&&(t[e]=e==="innerHTML"?If(n):n);return}const o=t.tagName;if(e==="value"&&o!=="PROGRESS"&&!o.includes("-")){const l=o==="OPTION"?t.getAttribute("value")||"":t.value,u=n==null?t.type==="checkbox"?"on":"":String(n);(l!==u||!("_value"in t))&&(t.value=u),n==null&&t.removeAttribute(e),t._value=n;return}let a=!1;if(n===""||n==null){const l=typeof t[e];l==="boolean"?n=wh(n):n==null&&l==="string"?(n="",a=!0):l==="number"&&(n=0,a=!0)}try{t[e]=n}catch{}a&&t.removeAttribute(s||e)}function ty(t,e,n,r){t.addEventListener(e,n,r)}function ny(t,e,n,r){t.removeEventListener(e,n,r)}const Fc=Symbol("_vei");function ry(t,e,n,r,s=null){const o=t[Fc]||(t[Fc]={}),a=o[e];if(r&&a)a.value=r;else{const[l,u]=sy(e);if(r){const f=o[e]=ay(r,s);ty(t,l,f,u)}else a&&(ny(t,l,a,u),o[e]=void 0)}}const $c=/(?:Once|Passive|Capture)$/;function sy(t){let e;if($c.test(t)){e={};let r;for(;r=t.match($c);)t=t.slice(0,t.length-r[0].length),e[r[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):or(t.slice(2)),e]}let $o=0;const iy=Promise.resolve(),oy=()=>$o||(iy.then(()=>$o=0),$o=Date.now());function ay(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Yt(ly(r,n.value),e,5,[r])};return n.value=t,n.attached=oy(),n}function ly(t,e){if(ae(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>s=>!s._stopped&&r&&r(s))}else return e}const Uc=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,cy=(t,e,n,r,s,o)=>{const a=s==="svg";e==="class"?Qg(t,r,a):e==="style"?Zg(t,n,r):zi(e)?xa(e)||ry(t,e,n,r,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):uy(t,e,r,a))?(Lc(t,e,r),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&Mc(t,e,r,a,o,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!Be(r))?Lc(t,Cn(e),r,o,e):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),Mc(t,e,r,a))};function uy(t,e,n,r){if(r)return!!(e==="innerHTML"||e==="textContent"||e in t&&Uc(e)&&ce(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const s=t.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Uc(e)&&Be(n)?!1:e in t}const hy=ct({patchProp:cy},Gg);let jc;function fy(){return jc||(jc=_g(hy))}const dy=(...t)=>{const e=fy().createApp(...t),{mount:n}=e;return e.mount=r=>{const s=my(r);if(!s)return;const o=e._component;!ce(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const a=n(s,!1,py(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),a},e};function py(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function my(t){return Be(t)?document.querySelector(t):t}/*! 19 * vue-router v4.5.0 20 * (c) 2024 Eduardo San Martin Morote 21 * @license MIT 22 */const gr=typeof document<"u";function Af(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function gy(t){return t.__esModule||t[Symbol.toStringTag]==="Module"||t.default&&Af(t.default)}const we=Object.assign;function Uo(t,e){const n={};for(const r in e){const s=e[r];n[r]=zt(s)?s.map(t):t(s)}return n}const cs=()=>{},zt=Array.isArray,Rf=/#/g,yy=/&/g,_y=/\//g,vy=/=/g,Ey=/\?/g,Sf=/\+/g,wy=/%5B/g,Ty=/%5D/g,Pf=/%5E/g,by=/%60/g,Cf=/%7B/g,Iy=/%7C/g,Vf=/%7D/g,Ay=/%20/g;function Ka(t){return encodeURI(""+t).replace(Iy,"|").replace(wy,"[").replace(Ty,"]")}function Ry(t){return Ka(t).replace(Cf,"{").replace(Vf,"}").replace(Pf,"^")}function ua(t){return Ka(t).replace(Sf,"%2B").replace(Ay,"+").replace(Rf,"%23").replace(yy,"%26").replace(by,"`").replace(Cf,"{").replace(Vf,"}").replace(Pf,"^")}function Sy(t){return ua(t).replace(vy,"%3D")}function Py(t){return Ka(t).replace(Rf,"%23").replace(Ey,"%3F")}function Cy(t){return t==null?"":Py(t).replace(_y,"%2F")}function Ts(t){try{return decodeURIComponent(""+t)}catch{}return""+t}const Vy=/\/$/,xy=t=>t.replace(Vy,"");function jo(t,e,n="/"){let r,s={},o="",a="";const l=e.indexOf("#");let u=e.indexOf("?");return l<u&&l>=0&&(u=-1),u>-1&&(r=e.slice(0,u),o=e.slice(u+1,l>-1?l:e.length),s=t(o)),l>-1&&(r=r||e.slice(0,l),a=e.slice(l,e.length)),r=Ny(r??e,n),{fullPath:r+(o&&"?")+o+a,path:r,query:s,hash:Ts(a)}}function Dy(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function Bc(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function ky(t,e,n){const r=e.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Pr(e.matched[r],n.matched[s])&&xf(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function Pr(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function xf(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!Oy(t[n],e[n]))return!1;return!0}function Oy(t,e){return zt(t)?zc(t,e):zt(e)?zc(e,t):t===e}function zc(t,e){return zt(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t.length===1&&t[0]===e}function Ny(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),r=t.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let o=n.length-1,a,l;for(a=0;a<r.length;a++)if(l=r[a],l!==".")if(l==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(a).join("/")}const En={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var bs;(function(t){t.pop="pop",t.push="push"})(bs||(bs={}));var us;(function(t){t.back="back",t.forward="forward",t.unknown=""})(us||(us={}));function My(t){if(!t)if(gr){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),xy(t)}const Ly=/^[^#]+#/;function Fy(t,e){return t.replace(Ly,"#")+e}function $y(t,e){const n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{behavior:e.behavior,left:r.left-n.left-(e.left||0),top:r.top-n.top-(e.top||0)}}const eo=()=>({left:window.scrollX,top:window.scrollY});function Uy(t){let e;if("el"in t){const n=t.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;e=$y(s,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}
vendor: 8,862 bytes, line 22
22function Hc(t,e){return(history.state?history.state.position-e:-1)+t}const ha=new Map;function jy(t,e){ha.set(t,e)}function By(t){const e=ha.get(t);return ha.delete(t),e}let zy=()=>location.protocol+"//"+location.host;function Df(t,e){const{pathname:n,search:r,hash:s}=e,o=t.indexOf("#");if(o>-1){let l=s.includes(t.slice(o))?t.slice(o).length:1,u=s.slice(l);return u[0]!=="/"&&(u="/"+u),Bc(u,"")}return Bc(n,t)+r+s}function Hy(t,e,n,r){let s=[],o=[],a=null;const l=({state:_})=>{const b=Df(t,location),x=n.value,F=e.value;let j=0;if(_){if(n.value=b,e.value=_,a&&a===x){a=null;return}j=F?_.position-F.position:0}else r(b);s.forEach(G=>{G(n.value,x,{delta:j,type:bs.pop,direction:j?j>0?us.forward:us.back:us.unknown})})};function u(){a=n.value}function f(_){s.push(_);const b=()=>{const x=s.indexOf(_);x>-1&&s.splice(x,1)};return o.push(b),b}function d(){const{history:_}=window;_.state&&_.replaceState(we({},_.state,{scroll:eo()}),"")}function p(){for(const _ of o)_();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:u,listen:f,destroy:p}}function qc(t,e,n,r=!1,s=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:s?eo():null}}function qy(t){const{history:e,location:n}=window,r={value:Df(t,n)},s={value:e.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function o(u,f,d){const p=t.indexOf("#"),_=p>-1?(n.host&&document.querySelector("base")?t:t.slice(p))+u:zy()+t+u;try{e[d?"replaceState":"pushState"](f,"",_),s.value=f}catch(b){console.error(b),n[d?"replace":"assign"](_)}}function a(u,f){const d=we({},e.state,qc(s.value.back,u,s.value.forward,!0),f,{position:s.value.position});o(u,d,!0),r.value=u}function l(u,f){const d=we({},s.value,e.state,{forward:u,scroll:eo()});o(d.current,d,!0);const p=we({},qc(r.value,u,null),{position:d.position+1},f);o(u,p,!1),r.value=u}return{location:r,state:s,push:l,replace:a}}function Ky(t){t=My(t);const e=qy(t),n=Hy(t,e.state,e.location,e.replace);function r(o,a=!0){a||n.pauseListeners(),history.go(o)}const s=we({location:"",base:t,go:r,createHref:Fy.bind(null,t)},e,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>e.state.value}),s}function Gy(t){return typeof t=="string"||t&&typeof t=="object"}function kf(t){return typeof t=="string"||typeof t=="symbol"}const Of=Symbol("");var Kc;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(Kc||(Kc={}));function Cr(t,e){return we(new Error,{type:t,[Of]:!0},e)}function rn(t,e){return t instanceof Error&&Of in t&&(e==null||!!(t.type&e))}const Gc="[^/]+?",Wy={sensitive:!1,strict:!1,start:!0,end:!0},Qy=/[.+*?^${}()[\]/\\]/g;function Xy(t,e){const n=we({},Wy,e),r=[];let s=n.start?"^":"";const o=[];for(const f of t){const d=f.length?[]:[90];n.strict&&!f.length&&(s+="/");for(let p=0;p<f.length;p++){const _=f[p];let b=40+(n.sensitive?.25:0);if(_.type===0)p||(s+="/"),s+=_.value.replace(Qy,"\\$&"),b+=40;else if(_.type===1){const{value:x,repeatable:F,optional:j,regexp:G}=_;o.push({name:x,repeatable:F,optional:j});const H=G||Gc;if(H!==Gc){b+=10;try{new RegExp(`(${H})`)}catch(R){throw new Error(`Invalid custom RegExp for param "${x}" (${H}): `+R.message)}}let D=F?`((?:${H})(?:/(?:${H}))*)`:`(${H})`;p||(D=j&&f.length<2?`(?:/${D})`:"/"+D),j&&(D+="?"),s+=D,b+=20,j&&(b+=-8),F&&(b+=-20),H===".*"&&(b+=-50)}d.push(b)}r.push(d)}if(n.strict&&n.end){const f=r.length-1;r[f][r[f].length-1]+=.7000000000000001}n.strict||(s+="/?"),n.end?s+="$":n.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const a=new RegExp(s,n.sensitive?"":"i");function l(f){const d=f.match(a),p={};if(!d)return null;for(let _=1;_<d.length;_++){const b=d[_]||"",x=o[_-1];p[x.name]=b&&x.repeatable?b.split("/"):b}return p}function u(f){let d="",p=!1;for(const _ of t){(!p||!d.endsWith("/"))&&(d+="/"),p=!1;for(const b of _)if(b.type===0)d+=b.value;else if(b.type===1){const{value:x,repeatable:F,optional:j}=b,G=x in f?f[x]:"";if(zt(G)&&!F)throw new Error(`Provided param "${x}" is an array but it is not repeatable (* or + modifiers)`);const H=zt(G)?G.join("/"):G;if(!H)if(j)_.length<2&&(d.endsWith("/")?d=d.slice(0,-1):p=!0);else throw new Error(`Missing required param "${x}"`);d+=H}}return d||"/"}return{re:a,score:r,keys:o,parse:l,stringify:u}}function Yy(t,e){let n=0;for(;n<t.length&&n<e.length;){const r=e[n]-t[n];if(r)return r;n++}return t.length<e.length?t.length===1&&t[0]===80?-1:1:t.length>e.length?e.length===1&&e[0]===80?1:-1:0}function Nf(t,e){let n=0;const r=t.score,s=e.score;for(;n<r.length&&n<s.length;){const o=Yy(r[n],s[n]);if(o)return o;n++}if(Math.abs(s.length-r.length)===1){if(Wc(r))return 1;if(Wc(s))return-1}return s.length-r.length}function Wc(t){const e=t[t.length-1];return t.length>0&&e[e.length-1]<0}const Jy={type:0,value:""},Zy=/[a-zA-Z0-9_]/;function e_(t){if(!t)return[[]];if(t==="/")return[[Jy]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(b){throw new Error(`ERR (${n})/"${f}": ${b}`)}let n=0,r=n;const s=[];let o;function a(){o&&s.push(o),o=[]}let l=0,u,f="",d="";function p(){f&&(n===0?o.push({type:0,value:f}):n===1||n===2||n===3?(o.length>1&&(u==="*"||u==="+")&&e(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:f,regexp:d,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):e("Invalid state to consume buffer"),f="")}function _(){f+=u}for(;l<t.length;){if(u=t[l++],u==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:u==="/"?(f&&p(),a()):u===":"?(p(),n=1):_();break;case 4:_(),n=r;break;case 1:u==="("?n=2:Zy.test(u)?_():(p(),n=0,u!=="*"&&u!=="?"&&u!=="+"&&l--);break;case 2:u===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+u:n=3:d+=u;break;case 3:p(),n=0,u!=="*"&&u!=="?"&&u!=="+"&&l--,d="";break;default:e("Unknown state");break}}return n===2&&e(`Unfinished custom RegExp for param "${f}"`),p(),a(),s}function t_(t,e,n){const r=Xy(e_(t.path),n),s=we(r,{record:t,parent:e,children:[],alias:[]});return e&&!s.record.aliasOf==!e.record.aliasOf&&e.children.push(s),s}function n_(t,e){const n=[],r=new Map;e=Jc({strict:!1,end:!0,sensitive:!1},e);function s(p){return r.get(p)}function o(p,_,b){const x=!b,F=Xc(p);F.aliasOf=b&&b.record;const j=Jc(e,p),G=[F];if("alias"in p){const R=typeof p.alias=="string"?[p.alias]:p.alias;for(const oe of R)G.push(Xc(we({},F,{components:b?b.record.components:F.components,path:oe,aliasOf:b?b.record:F})))}let H,D;for(const R of G){const{path:oe}=R;if(_&&oe[0]!=="/"){const Z=_.record.path,T=Z[Z.length-1]==="/"?"":"/";R.path=_.record.path+(oe&&T+oe)}if(H=t_(R,_,j),b?b.alias.push(H):(D=D||H,D!==H&&D.alias.push(H),x&&p.name&&!Yc(H)&&a(p.name)),Mf(H)&&u(H),F.children){const Z=F.children;for(let T=0;T<Z.length;T++)o(Z[T],H,b&&b.children[T])}b=b||H}return D?()=>{a(D)}:cs}function a(p){if(kf(p)){const _=r.get(p);_&&(r.delete(p),n.splice(n.indexOf(_),1),_.children.forEach(a),_.alias.forEach(a))}else{const _=n.indexOf(p);_>-1&&(n.splice(_,1),p.record.name&&r.delete(p.record.name),p.children.forEach(a),p.alias.forEach(a))}}function l(){return n}function u(p){const _=i_(p,n);n.splice(_,0,p),p.record.name&&!Yc(p)&&r.set(p.record.name,p)}function f(p,_){let b,x={},F,j;if("name"in p&&p.name){if(b=r.get(p.name),!b)throw Cr(1,{location:p});j=b.record.name,x=we(Qc(_.params,b.keys.filter(D=>!D.optional).concat(b.parent?b.parent.keys.filter(D=>D.optional):[]).map(D=>D.name)),p.params&&Qc(p.params,b.keys.map(D=>D.name))),F=b.stringify(x)}else if(p.path!=null)F=p.path,b=n.find(D=>D.re.test(F)),b&&(x=b.parse(F),j=b.record.name);else{if(b=_.name?r.get(_.name):n.find(D=>D.re.test(_.path)),!b)throw Cr(1,{location:p,currentLocation:_});j=b.record.name,x=we({},_.params,p.params),F=b.stringify(x)}const G=[];let H=b;for(;H;)G.unshift(H.record),H=H.parent;return{name:j,path:F,params:x,matched:G,meta:s_(G)}}t.forEach(p=>o(p));function d(){n.length=0,r.clear()}return{addRoute:o,resolve:f,removeRoute:a,clearRoutes:d,getRoutes:l,getRecordMatcher:s}}function Qc(t,e){const n={};for(const r of e)r in t&&(n[r]=t[r]);return n}function Xc(t){const e={path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:t.aliasOf,beforeEnter:t.beforeEnter,props:r_(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function r_(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const r in t.components)e[r]=typeof n=="object"?n[r]:n;return e}function Yc(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function s_(t){return t.reduce((e,n)=>we(e,n.meta),{})}
vendor: 4,619 bytes, line 22
22function Jc(t,e){const n={};for(const r in t)n[r]=r in e?e[r]:t[r];return n}function i_(t,e){let n=0,r=e.length;for(;n!==r;){const o=n+r>>1;Nf(t,e[o])<0?r=o:n=o+1}const s=o_(t);return s&&(r=e.lastIndexOf(s,r-1)),r}function o_(t){let e=t;for(;e=e.parent;)if(Mf(e)&&Nf(t,e)===0)return e}function Mf({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function a_(t){const e={};if(t===""||t==="?")return e;const r=(t[0]==="?"?t.slice(1):t).split("&");for(let s=0;s<r.length;++s){const o=r[s].replace(Sf," "),a=o.indexOf("="),l=Ts(a<0?o:o.slice(0,a)),u=a<0?null:Ts(o.slice(a+1));if(l in e){let f=e[l];zt(f)||(f=e[l]=[f]),f.push(u)}else e[l]=u}return e}function Zc(t){let e="";for(let n in t){const r=t[n];if(n=Sy(n),r==null){r!==void 0&&(e+=(e.length?"&":"")+n);continue}(zt(r)?r.map(o=>o&&ua(o)):[r&&ua(r)]).forEach(o=>{o!==void 0&&(e+=(e.length?"&":"")+n,o!=null&&(e+="="+o))})}return e}function l_(t){const e={};for(const n in t){const r=t[n];r!==void 0&&(e[n]=zt(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return e}const c_=Symbol(""),eu=Symbol(""),Ga=Symbol(""),Lf=Symbol(""),fa=Symbol("");function Jr(){let t=[];function e(r){return t.push(r),()=>{const s=t.indexOf(r);s>-1&&t.splice(s,1)}}function n(){t=[]}return{add:e,list:()=>t.slice(),reset:n}}function bn(t,e,n,r,s,o=a=>a()){const a=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((l,u)=>{const f=_=>{_===!1?u(Cr(4,{from:n,to:e})):_ instanceof Error?u(_):Gy(_)?u(Cr(2,{from:e,to:_})):(a&&r.enterCallbacks[s]===a&&typeof _=="function"&&a.push(_),l())},d=o(()=>t.call(r&&r.instances[s],e,n,f));let p=Promise.resolve(d);t.length<3&&(p=p.then(f)),p.catch(_=>u(_))})}function Bo(t,e,n,r,s=o=>o()){const o=[];for(const a of t)for(const l in a.components){let u=a.components[l];if(!(e!=="beforeRouteEnter"&&!a.instances[l]))if(Af(u)){const d=(u.__vccOpts||u)[e];d&&o.push(bn(d,n,r,a,l,s))}else{let f=u();o.push(()=>f.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${l}" at "${a.path}"`);const p=gy(d)?d.default:d;a.mods[l]=d,a.components[l]=p;const b=(p.__vccOpts||p)[e];return b&&bn(b,n,r,a,l,s)()}))}}return o}function tu(t){const e=ln(Ga),n=ln(Lf),r=$t(()=>{const u=Ft(t.to);return e.resolve(u)}),s=$t(()=>{const{matched:u}=r.value,{length:f}=u,d=u[f-1],p=n.matched;if(!d||!p.length)return-1;const _=p.findIndex(Pr.bind(null,d));if(_>-1)return _;const b=nu(u[f-2]);return f>1&&nu(d)===b&&p[p.length-1].path!==b?p.findIndex(Pr.bind(null,u[f-2])):_}),o=$t(()=>s.value>-1&&d_(n.params,r.value.params)),a=$t(()=>s.value>-1&&s.value===n.matched.length-1&&xf(n.params,r.value.params));function l(u={}){if(f_(u)){const f=e[Ft(t.replace)?"replace":"push"](Ft(t.to)).catch(cs);return t.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>f),f}return Promise.resolve()}return{route:r,href:$t(()=>r.value.href),isActive:o,isExactActive:a,navigate:l}}function u_(t){return t.length===1?t[0]:t}const h_=Ds({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:tu,setup(t,{slots:e}){const n=Qi(tu(t)),{options:r}=ln(Ga),s=$t(()=>({[ru(t.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[ru(t.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=e.default&&u_(e.default(n));return t.custom?o:bf("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),ns=h_;function f_(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function d_(t,e){for(const n in e){const r=e[n],s=t[n];if(typeof r=="string"){if(r!==s)return!1}else if(!zt(s)||s.length!==r.length||r.some((o,a)=>o!==s[a]))return!1}return!0}function nu(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const ru=(t,e,n)=>t??e??n,p_=Ds({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const r=ln(fa),s=$t(()=>t.route||r.value),o=ln(eu,0),a=$t(()=>{let f=Ft(o);const{matched:d}=s.value;let p;for(;(p=d[f])&&!p.components;)f++;return f}),l=$t(()=>s.value.matched[a.value]);hi(eu,$t(()=>a.value+1)),hi(c_,l),hi(fa,s);const u=sn();return fi(()=>[u.value,l.value,t.name],([f,d,p],[_,b,x])=>
vendor: 4,113 bytes, line 22
22{d&&(d.instances[p]=f,b&&b!==d&&f&&f===_&&(d.leaveGuards.size||(d.leaveGuards=b.leaveGuards),d.updateGuards.size||(d.updateGuards=b.updateGuards))),f&&d&&(!b||!Pr(d,b)||!_)&&(d.enterCallbacks[p]||[]).forEach(F=>F(f))},{flush:"post"}),()=>{const f=s.value,d=t.name,p=l.value,_=p&&p.components[d];if(!_)return su(n.default,{Component:_,route:f});const b=p.props[d],x=b?b===!0?f.params:typeof b=="function"?b(f):b:null,j=bf(_,we({},x,e,{onVnodeUnmounted:G=>{G.component.isUnmounted&&(p.instances[d]=null)},ref:u}));return su(n.default,{Component:j,route:f})||j}}});function su(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const Ff=p_;function m_(t){const e=n_(t.routes,t),n=t.parseQuery||a_,r=t.stringifyQuery||Zc,s=t.history,o=Jr(),a=Jr(),l=Jr(),u=km(En);let f=En;gr&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=Uo.bind(null,k=>""+k),p=Uo.bind(null,Cy),_=Uo.bind(null,Ts);function b(k,Y){let Q,J;return kf(k)?(Q=e.getRecordMatcher(k),J=Y):J=k,e.addRoute(J,Q)}function x(k){const Y=e.getRecordMatcher(k);Y&&e.removeRoute(Y)}function F(){return e.getRoutes().map(k=>k.record)}function j(k){return!!e.getRecordMatcher(k)}function G(k,Y){if(Y=we({},Y||u.value),typeof k=="string"){const S=jo(n,k,Y.path),O=e.resolve({path:S.path},Y),M=s.createHref(S.fullPath);return we(S,O,{params:_(O.params),hash:Ts(S.hash),redirectedFrom:void 0,href:M})}let Q;if(k.path!=null)Q=we({},k,{path:jo(n,k.path,Y.path).path});else{const S=we({},k.params);for(const O in S)S[O]==null&&delete S[O];Q=we({},k,{params:p(S)}),Y.params=p(Y.params)}const J=e.resolve(Q,Y),_e=k.hash||"";J.params=d(_(J.params));const y=Dy(r,we({},k,{hash:Ry(_e),path:J.path})),v=s.createHref(y);return we({fullPath:y,hash:_e,query:r===Zc?l_(k.query):k.query||{}},J,{redirectedFrom:void 0,href:v})}function H(k){return typeof k=="string"?jo(n,k,u.value.path):we({},k)}function D(k,Y){if(f!==k)return Cr(8,{from:Y,to:k})}function R(k){return T(k)}function oe(k){return R(we(H(k),{replace:!0}))}function Z(k){const Y=k.matched[k.matched.length-1];if(Y&&Y.redirect){const{redirect:Q}=Y;let J=typeof Q=="function"?Q(k):Q;return typeof J=="string"&&(J=J.includes("?")||J.includes("#")?J=H(J):{path:J},J.params={}),we({query:k.query,hash:k.hash,params:J.path!=null?{}:k.params},J)}}function T(k,Y){const Q=f=G(k),J=u.value,_e=k.state,y=k.force,v=k.replace===!0,S=Z(Q);if(S)return T(we(H(S),{state:typeof S=="object"?we({},_e,S.state):_e,force:y,replace:v}),Y||Q);const O=Q;O.redirectedFrom=Y;let M;return!y&&ky(r,J,Q)&&(M=Cr(16,{to:O,from:J}),Vt(J,J,!0,!1)),(M?Promise.resolve(M):I(O,J)).catch(N=>rn(N)?rn(N,2)?N:Ot(N):fe(N,O,J)).then(N=>{if(N){if(rn(N,2))return T(we({replace:v},H(N.to),{state:typeof N.to=="object"?we({},_e,N.to.state):_e,force:y}),Y||O)}else N=P(O,J,!0,v,_e);return A(O,J,N),N})}function g(k,Y){const Q=D(k,Y);return Q?Promise.reject(Q):Promise.resolve()}function w(k){const Y=mn.values().next().value;return Y&&typeof Y.runWithContext=="function"?Y.runWithContext(k):k()}function I(k,Y){let Q;const[J,_e,y]=g_(k,Y);Q=Bo(J.reverse(),"beforeRouteLeave",k,Y);for(const S of J)S.leaveGuards.forEach(O=>{Q.push(bn(O,k,Y))});const v=g.bind(null,k,Y);return Q.push(v),mt(Q).then(()=>{Q=[];for(const S of o.list())Q.push(bn(S,k,Y));return Q.push(v),mt(Q)}).then(()=>{Q=Bo(_e,"beforeRouteUpdate",k,Y);for(const S of _e)S.updateGuards.forEach(O=>{Q.push(bn(O,k,Y))});return Q.push(v),mt(Q)}).then(()=>{Q=[];for(const S of y)if(S.beforeEnter)if(zt(S.beforeEnter))for(const O of S.beforeEnter)Q.push(bn(O,k,Y));else Q.push(bn(S.beforeEnter,k,Y));return Q.push(v),mt(Q)}).then(()=>(k.matched.forEach(S=>S.enterCallbacks={}),Q=Bo(y,"beforeRouteEnter",k,Y,w),Q.push(v),mt(Q))).then(()=>{Q=[];for(const S of a.list())Q.push(bn(S,k,Y));return Q.push(v),mt(Q)}).catch(S=>rn(S,8)?S:Promise.reject(S))}function A(k,Y,Q){l.list().forEach(J=>w(()=>J(k,Y,Q)))}function P(k,Y,Q,J,_e){const y=D(k,Y);if(y)return y;const v=Y===En,S=gr?history.state:{};Q&&(J||v?s.replace(k.fullPath,we({scroll:v&&S&&S.scroll},_e)):s.push(k.fullPath,_e)),u.value=k,Vt(k,Y,Q,v),Ot()}let E;function ut(){E||(E=s.listen((k,Y,Q)=>
22{if(!Ht.listening)return;const J=G(k),_e=Z(J);if(_e){T(we(_e,{replace:!0,force:!0}),J).catch(cs);return}f=J;const y=u.value;gr&&jy(Hc(y.fullPath,Q.delta),eo()),I(J,y).catch(v=>rn(v,12)?v:rn(v,2)?(T(we(H(v.to),{force:!0}),J).then(S=>{rn(S,20)&&!Q.delta&&Q.type===bs.pop&&s.go(-1,!1)}).catch(cs),Promise.reject()):(Q.delta&&s.go(-Q.delta,!1),fe(v,J,y))).then(v=>{v=v||P(J,y,!1),v&&(Q.delta&&!rn(v,8)?s.go(-Q.delta,!1):Q.type===bs.pop&&rn(v,20)&&s.go(-1,!1)),A(J,y,v)}).catch(cs)}))}let Ct=Jr(),$e=Jr(),de;function fe(k,Y,Q){Ot(k);const J=$e.list();return J.length?J.forEach(_e=>_e(k,Y,Q)):console.error(k),Promise.reject(k)}function Tt(){return de&&u.value!==En?Promise.resolve():new Promise((k,Y)=>{Ct.add([k,Y])})}function Ot(k){return de||(de=!k,ut(),Ct.list().forEach(([Y,Q])=>k?Q(k):Y()),Ct.reset()),k}function Vt(k,Y,Q,J){const{scrollBehavior:_e}=t;if(!gr||!_e)return Promise.resolve();const y=!Q&&By(Hc(k.fullPath,0))||(J||!Q)&&history.state&&history.state.scroll||null;return zh().then(()=>_e(k,Y,y)).then(v=>v&&Uy(v)).catch(v=>fe(v,k,Y))}const Oe=k=>s.go(k);let Ne;const mn=new Set,Ht={currentRoute:u,listening:!0,addRoute:b,removeRoute:x,clearRoutes:e.clearRoutes,hasRoute:j,getRoutes:F,resolve:G,options:t,push:R,replace:oe,go:Oe,back:()=>Oe(-1),forward:()=>Oe(1),beforeEach:o.add,beforeResolve:a.add,afterEach:l.add,onError:$e.add,isReady:Tt,install(k){const Y=this;k.component("RouterLink",ns),k.component("RouterView",Ff),k.config.globalProperties.$router=Y,Object.defineProperty(k.config.globalProperties,"$route",{enumerable:!0,get:()=>Ft(u)}),gr&&!Ne&&u.value===En&&(Ne=!0,R(s.location).catch(_e=>{}));const Q={};for(const _e in En)Object.defineProperty(Q,_e,{get:()=>u.value[_e],enumerable:!0});k.provide(Ga,Y),k.provide(Lf,Fh(Q)),k.provide(fa,u);const J=k.unmount;mn.add(k),k.unmount=function(){mn.delete(k),mn.size<1&&(f=En,E&&E(),E=null,u.value=En,Ne=!1,de=!1),J()}}};function mt(k){return k.reduce((Y,Q)=>Y.then(()=>w(Q)),Promise.resolve())}return Ht}function g_(t,e){const n=[],r=[],s=[],o=Math.max(e.matched.length,t.matched.length);for(let a=0;a<o;a++){const l=e.matched[a];l&&(t.matched.find(f=>Pr(f,l))?r.push(l):n.push(l));const u=t.matched[a];u&&(e.matched.find(f=>Pr(f,u))||s.push(u))}return[n,r,s]}const y_=()=>{};var iu={};/** 23 * @license 24 * Copyright 2017 Google LLC 25 * 26 * Licensed under the Apache License, Version 2.0 (the "License"); 27 * you may not use this file except in compliance with the License. 28 * You may obtain a copy of the License at 29 * 30 * http://www.apache.org/licenses/LICENSE-2.0 31 * 32 * Unless required by applicable law or agreed to in writing, software 33 * distributed under the License is distributed on an "AS IS" BASIS, 34 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 35 * See the License for the specific language governing permissions and 36 * limitations under the License. 37 */const $f=function(t){const e=[];let n=0;for(let r=0;r<t.length;r++){let s=t.charCodeAt(r);s<128?e[n++]=s:s<2048?(e[n++]=s>>6|192,e[n++]=s&63|128):(s&64512)===55296&&r+1<t.length&&(t.charCodeAt(r+1)&64512)===56320?(s=65536+((s&1023)<<10)+(t.charCodeAt(++r)&1023),e[n++]=s>>18|240,e[n++]=s>>12&63|128,e[n++]=s>>6&63|128,e[n++]=s&63|128):(e[n++]=s>>12|224,e[n++]=s>>6&63|128,e[n++]=s&63|128)}return e},__=function(t){const e=[];let n=0,r=0;for(;n<t.length;){const s=t[n++];if(s<128)e[r++]=String.fromCharCode(s);else if(s>191&&s<224){const o=t[n++];e[r++]=String.fromCharCode((s&31)<<6|o&63)}else if(s>239&&s<365){const o=t[n++],a=t[n++],l=t[n++],u=((s&7)<<18|(o&63)<<12|(a&63)<<6|l&63)-65536;e[r++]=String.fromCharCode(55296+(u>>10)),e[r++]=String.fromCharCode(56320+(u&1023))}else{const o=t[n++],a=t[n++];e[r++]=String.fromCharCode((s&15)<<12|(o&63)<<6|a&63)}}return e.join("")},Uf={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let s=0;s<t.length;s+=3){const o=t[s],a=s+1<t.length,l=a?t[s+1]:0,u=s+2<t.length,f=u?t[s+2]:0,d=o>>2,p=(o&3)<<4|l>>4;let _=(l&15)<<2|f>>6,b=f&63;u||(b=64,a||(_=64)),r.push(n[d],n[p],n[_],n[b])}return r.join("")},encodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray($f(t),e)},decodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):__(this.decodeStringToByteArray(t,e))},decodeStringToByteArray(t,e){this.init_();const n=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let s=0;s<t.length;){const o=n[t.charAt(s++)],l=s<t.length?n[t.charAt(s)]:0;++s;const f=s<t.length?n[t.charAt(s)]:64;++s;const p=s<t.length?n[t.charAt(s)]:64;if(++s,o==null||l==null||f==null||p==null)throw new v_;const _=o<<2|l>>4;if(r.push(_),f!==64){const b=l<<4&240|f>>2;if(r.push(b),p!==64){const x=f<<6&192|p;r.push(x)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}};
37class v_ extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const E_=function(t){const e=$f(t);return Uf.encodeByteArray(e,!0)},Si=function(t){return E_(t).replace(/\./g,"")},w_=function(t){try{return Uf.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};/** 38 * @license 39 * Copyright 2022 Google LLC 40 * 41 * Licensed under the Apache License, Version 2.0 (the "License"); 42 * you may not use this file except in compliance with the License. 43 * You may obtain a copy of the License at 44 * 45 * http://www.apache.org/licenses/LICENSE-2.0 46 * 47 * Unless required by applicable law or agreed to in writing, software 48 * distributed under the License is distributed on an "AS IS" BASIS, 49 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 50 * See the License for the specific language governing permissions and 51 * limitations under the License. 52 */function T_(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/** 53 * @license 54 * Copyright 2022 Google LLC 55 * 56 * Licensed under the Apache License, Version 2.0 (the "License"); 57 * you may not use this file except in compliance with the License. 58 * You may obtain a copy of the License at 59 * 60 * http://www.apache.org/licenses/LICENSE-2.0 61 * 62 * Unless required by applicable law or agreed to in writing, software 63 * distributed under the License is distributed on an "AS IS" BASIS, 64 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 65 * See the License for the specific language governing permissions and 66 * limitations under the License. 67 */const b_=()=>T_().__FIREBASE_DEFAULTS__,I_=()=>{if(typeof process>"u"||typeof iu>"u")return;const t=iu.__FIREBASE_DEFAULTS__;if(t)return JSON.parse(t)},A_=()=>{if(typeof document>"u")return;let t;try{t=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const e=t&&w_(t[1]);return e&&JSON.parse(e)},Wa=()=>{try{return y_()||b_()||I_()||A_()}catch(t){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`);return}},R_=t=>{var e,n;return(n=(e=Wa())===null||e===void 0?void 0:e.emulatorHosts)===null||n===void 0?void 0:n[t]},S_=t=>{const e=R_(t);if(!e)return;const n=e.lastIndexOf(":");if(n<=0||n+1===e.length)throw new Error(`Invalid host ${e} with no separate hostname and port!`);const r=parseInt(e.substring(n+1),10);return e[0]==="["?[e.substring(1,n-1),r]:[e.substring(0,n),r]},jf=()=>{var t;return(t=Wa())===null||t===void 0?void 0:t.config};/** 68 * @license 69 * Copyright 2017 Google LLC 70 * 71 * Licensed under the Apache License, Version 2.0 (the "License"); 72 * you may not use this file except in compliance with the License. 73 * You may obtain a copy of the License at 74 * 75 * http://www.apache.org/licenses/LICENSE-2.0 76 * 77 * Unless required by applicable law or agreed to in writing, software 78 * distributed under the License is distributed on an "AS IS" BASIS, 79 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 80 * See the License for the specific language governing permissions and 81 * limitations under the License. 82 */class P_{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,n)=>{this.resolve=e,this.reject=n})}wrapCallback(e){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof e=="function"&&(this.promise.catch(()=>{}),e.length===1?e(n):e(n,r))}}}/** 83 * @license 84 * Copyright 2021 Google LLC 85 * 86 * Licensed under the Apache License, Version 2.0 (the "License"); 87 * you may not use this file except in compliance with the License. 88 * You may obtain a copy of the License at 89 * 90 * http://www.apache.org/licenses/LICENSE-2.0 91 * 92 * Unless required by applicable law or agreed to in writing, software 93 * distributed under the License is distributed on an "AS IS" BASIS, 94 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 95 * See the License for the specific language governing permissions and 96 * limitations under the License. 97 */function C_(t,e){if(t.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const n={alg:"none",type:"JWT"},r=e||"demo-project",s=t.iat||0,o=t.sub||t.user_id;if(!o)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const a=Object.assign({iss:`https://securetoken.google.com/${r}`,aud:r,iat:s,exp:s+3600,auth_time:s,sub:o,user_id:o,firebase:{sign_in_provider:"custom",identities:{}}},t);return[Si(JSON.stringify(n)),Si(JSON.stringify(a)),""].join(".")}/** 98 * @license 99 * Copyright 2017 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 */function V_(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function x_(){var t;const e=(t=Wa())===null||t===void 0?void 0:t.forceEnvironment;if(e==="node")return!0;if(e==="browser")return!1;try{return Object.prototype.toString.call(global.process)==="[object process]"}catch{return!1}}function D_(){const t=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof t=="object"&&t.id!==void 0}function k_(){return!x_()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function Bf(){try{return typeof indexedDB=="object"}catch{return!1}}function zf(){return new Promise((t,e)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",s=self.indexedDB.open(r);s.onsuccess=()=>{s.result.close(),n||self.indexedDB.deleteDatabase(r),t(!0)},s.onupgradeneeded=()=>{n=!1},s.onerror=()=>{var o;e(((o=s.error)===null||o===void 0?void 0:o.message)||"")}}catch(n){e(n)}})}function O_(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}/** 113 * @license 114 * Copyright 2017 Google LLC 115 * 116 * Licensed under the Apache License, Version 2.0 (the "License"); 117 * you may not use this file except in compliance with the License. 118 * You may obtain a copy of the License at 119 * 120 * http://www.apache.org/licenses/LICENSE-2.0 121 * 122 * Unless required by applicable law or agreed to in writing, software 123 * distributed under the License is distributed on an "AS IS" BASIS, 124 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 125 * See the License for the specific language governing permissions and 126 * limitations under the License. 127 */const N_="FirebaseError";class Fn extends Error{constructor(e,n,r){super(n),this.code=e,this.customData=r,this.name=N_,Object.setPrototypeOf(this,Fn.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,to.prototype.create)}}class to{constructor(e,n,r){this.service=e,this.serviceName=n,this.errors=r}create(e,...n){const r=n[0]||{},s=`${this.service}/${e}`,o=this.errors[e],a=o?M_(o,r):"Error",l=`${this.serviceName}: ${a} (${s}).`;return new Fn(s,l,r)}}function M_(t,e){return t.replace(L_,(n,r)=>{const s=e[r];return s!=null?String(s):`<${r}?>`})}const L_=/\{\$([^}]+)}/g;function Is(t,e){if(t===e)return!0;const n=Object.keys(t),r=Object.keys(e);for(const s of n){if(!r.includes(s))return!1;const o=t[s],a=e[s];if(ou(o)&&ou(a)){if(!Is(o,a))return!1}else if(o!==a)return!1}for(const s of r)if(!n.includes(s))return!1;return!0}function ou(t){return t!==null&&typeof t=="object"}/** 128 * @license 129 * Copyright 2019 Google LLC 130 * 131 * Licensed under the Apache License, Version 2.0 (the "License"); 132 * you may not use this file except in compliance with the License. 133 * You may obtain a copy of the License at 134 * 135 * http://www.apache.org/licenses/LICENSE-2.0 136 * 137 * Unless required by applicable law or agreed to in writing, software 138 * distributed under the License is distributed on an "AS IS" BASIS, 139 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 140 * See the License for the specific language governing permissions and 141 * limitations under the License. 142 */const F_=1e3,$_=2,U_=4*60*60*1e3,j_=.5;function au(t,e=F_,n=$_){const r=e*Math.pow(n,t),s=Math.round(j_*r*(Math.random()-.5)*2);return Math.min(U_,r+s)}/** 143 * @license 144 * Copyright 2021 Google LLC 145 * 146 * Licensed under the Apache License, Version 2.0 (the "License"); 147 * you may not use this file except in compliance with the License. 148 * You may obtain a copy of the License at 149 * 150 * http://www.apache.org/licenses/LICENSE-2.0 151 * 152 * Unless required by applicable law or agreed to in writing, softw
152are 153 * distributed under the License is distributed on an "AS IS" BASIS, 154 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 155 * See the License for the specific language governing permissions and 156 * limitations under the License. 157 */function Zn(t){return t&&t._delegate?t._delegate:t}class hn{constructor(e,n,r){this.name=e,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}/** 158 * @license 159 * Copyright 2019 Google LLC 160 * 161 * Licensed under the Apache License, Version 2.0 (the "License"); 162 * you may not use this file except in compliance with the License. 163 * You may obtain a copy of the License at 164 * 165 * http://www.apache.org/licenses/LICENSE-2.0 166 * 167 * Unless required by applicable law or agreed to in writing, software 168 * distributed under the License is distributed on an "AS IS" BASIS, 169 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 170 * See the License for the specific language governing permissions and 171 * limitations under the License. 172 */const Kn="[DEFAULT]";/** 173 * @license 174 * Copyright 2019 Google LLC 175 * 176 * Licensed under the Apache License, Version 2.0 (the "License"); 177 * you may not use this file except in compliance with the License. 178 * You may obtain a copy of the License at 179 * 180 * http://www.apache.org/licenses/LICENSE-2.0 181 * 182 * Unless required by applicable law or agreed to in writing, software 183 * distributed under the License is distributed on an "AS IS" BASIS, 184 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 185 * See the License for the specific language governing permissions and 186 * limitations under the License. 187 */class B_{constructor(e,n){this.name=e,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const n=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(n)){const r=new P_;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{const s=this.getOrInitializeService({instanceIdentifier:n});s&&r.resolve(s)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(e){var n;const r=this.normalizeInstanceIdentifier(e==null?void 0:e.identifier),s=(n=e==null?void 0:e.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(o){if(s)return null;throw o}else{if(s)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,!!this.shouldAutoInitialize()){if(H_(e))try{this.getOrInitializeService({instanceIdentifier:Kn})}catch{}for(const[n,r]of this.instancesDeferred.entries()){const s=this.normalizeInstanceIdentifier(n);try{const o=this.getOrInitializeService({instanceIdentifier:s});r.resolve(o)}catch{}}}}clearInstance(e=Kn){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...e.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(e=Kn){return this.instances.has(e)}getOptions(e=Kn){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:n={}}=e,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const s=this.getOrInitializeService({instanceIdentifier:r,options:n});for(const[o,a]of this.instancesDeferred.entries()){const l=this.normalizeInstanceIdentifier(o);r===l&&a.resolve(s)}return s}onInit(e,n){var r;const s=this.normalizeInstanceIdentifier(n),o=(r=this.onInitCallbacks.get(s))!==null&&r!==void 0?r:new Set;o.add(e),this.onInitCallbacks.set(s,o);const a=this.instances.get(s);return a&&e(a,s),()=>{o.delete(e)}}invokeOnInitCallbacks(e,n){const r=this.onInitCallbacks.get(n);if(r)for(const s of r)try{s(e,n)}catch{}}getOrInitializeService({instanceIdentifier:e,options:n={}}){let r=this.instances.get(e);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:z_(e),options:n}),this.instances.set(e,r),this.instancesOptions.set(e,n),this.invokeOnInitCallbacks(r,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,r)}catch{}return r||null}normalizeInstanceIdentifier(e=Kn){return this.component?this.component.multipleInstances?e:Kn:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function z_(t){return t===Kn?void 0:t}function H_(t){return t.instantiationMode==="EAGER"}/** 188 * @license 189 * Copyright 2019 Google LLC 190 * 191 * Licensed under the Apache License, Version 2.0 (the "License");
192 * you may not use this file except in compliance with the License. 193 * You may obtain a copy of the License at 194 * 195 * http://www.apache.org/licenses/LICENSE-2.0 196 * 197 * Unless required by applicable law or agreed to in writing, software 198 * distributed under the License is distributed on an "AS IS" BASIS, 199 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 * See the License for the specific language governing permissions and 201 * limitations under the License. 202 */class q_{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const n=this.getProvider(e.name);if(n.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);n.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const n=new B_(e,this);return this.providers.set(e,n),n}getProviders(){return Array.from(this.providers.values())}}/** 203 * @license 204 * Copyright 2017 Google LLC 205 * 206 * Licensed under the Apache License, Version 2.0 (the "License"); 207 * you may not use this file except in compliance with the License. 208 * You may obtain a copy of the License at 209 * 210 * http://www.apache.org/licenses/LICENSE-2.0 211 * 212 * Unless required by applicable law or agreed to in writing, software 213 * distributed under the License is distributed on an "AS IS" BASIS, 214 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 215 * See the License for the specific language governing permissions and 216 * limitations under the License. 217 */var ge;(function(t){t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT"})(ge||(ge={}));const K_={debug:ge.DEBUG,verbose:ge.VERBOSE,info:ge.INFO,warn:ge.WARN,error:ge.ERROR,silent:ge.SILENT},G_=ge.INFO,W_={[ge.DEBUG]:"log",[ge.VERBOSE]:"log",[ge.INFO]:"info",[ge.WARN]:"warn",[ge.ERROR]:"error"},Q_=(t,e,...n)=>{if(e<t.logLevel)return;const r=new Date().toISOString(),s=W_[e];if(s)console[s](`[${r}] ${t.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`)};class Qa{constructor(e){this.name=e,this._logLevel=G_,this._logHandler=Q_,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in ge))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel=typeof e=="string"?K_[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if(typeof e!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,ge.DEBUG,...e),this._logHandler(this,ge.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,ge.VERBOSE,...e),this._logHandler(this,ge.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,ge.INFO,...e),this._logHandler(this,ge.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,ge.WARN,...e),this._logHandler(this,ge.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,ge.ERROR,...e),this._logHandler(this,ge.ERROR,...e)}}const X_=(t,e)=>e.some(n=>t instanceof n);let lu,cu;function Y_(){return lu||(lu=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function J_(){return cu||(cu=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Hf=new WeakMap,da=new WeakMap,qf=new WeakMap,zo=new WeakMap,Xa=new WeakMap;function Z_(t){const e=new Promise((n,r)=>{const s=()=>{t.removeEventListener("success",o),t.removeEventListener("error",a)},o=()=>{n(Rn(t.result)),s()},a=()=>{r(t.error),s()};t.addEventListener("success",o),t.addEventListener("error",a)});return e.then(n=>{n instanceof IDBCursor&&Hf.set(n,t)}).catch(()=>{}),Xa.set(e,t),e}function ev(t){if(da.has(t))return;const e=new Promise((n,r)=>{const s=()=>{t.removeEventListener("complete",o),t.removeEventListener("error",a),t.removeEventListener("abort",a)},o=()=>{n(),s()},a=()=>{r(t.error||new DOMException("AbortError","AbortError")),s()};t.addEventListener("complete",o),t.addEventListener("error",a),t.addEventListener("abort",a)});da.set(t,e)}let pa={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return da.get(t);if(e==="objectStoreNames")return t.objectStoreNames||qf.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Rn(t[e])},set(t,e,n){return t[e]=n,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function tv(t){pa=t(pa)}function nv(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...n){const r=t.call(Ho(this),e,...n);return qf.set(r,e.sort?e.sort():[e]),Rn(r)}:J_().includes(t)?function(...e){return t.apply(Ho(this),e),Rn(Hf.get(this))}:function(...e){return Rn(t.apply(Ho(this),e))}}function rv(t){return typeof t=="function"?nv(t):(t instanceof IDBTransaction&&ev(t),X_(t,Y_())?new Proxy(t,pa):t)}function Rn(t){if(t instanceof IDBRequest)return Z_(t);if(zo.has(t))return zo.get(t);const e=rv(t);return e!==t&&(zo.set(t,e),Xa.set(e,t)),e}const Ho=t=>Xa.get(t);function Kf(t,e,{blocked:n,upgrade:r,blocking:s,terminated:o}={}){const a=indexedDB.open(t,e),l=Rn(a);return r&&a.addEventListener("upgradeneeded",u=>{r(Rn(a.result),u.oldVersion,u.newVersion,Rn(a.transaction),u)}),n&&a.addEventListener("blocked",u=>n(u.oldVersion,u.newVersion,u)),l.then(u=>{o&&u.addEventListener("close",()=>o()),s&&u.addEventListener("versionchange",f=>s(f.oldVersion,f.newVersion,f))}).catch(()=>{}),l}const sv=["get","getKey","getAll","getAllKeys","count"],iv=["put","add","delete","clear"],qo=new Map;function uu(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(qo.get(e))return qo.get(e);const n=e.replace(/FromIndex$/,""),r=e!==n,s=iv.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(s||sv.includes(n)))return;const o=async function(a,...l){const u=this.transaction(a,s?"readwrite":"readonly");let f=u.store;
217return r&&(f=f.index(l.shift())),(await Promise.all([f[n](...l),s&&u.done]))[0]};return qo.set(e,o),o}tv(t=>({...t,get:(e,n,r)=>uu(e,n)||t.get(e,n,r),has:(e,n)=>!!uu(e,n)||t.has(e,n)}));/** 218 * @license 219 * Copyright 2019 Google LLC 220 * 221 * Licensed under the Apache License, Version 2.0 (the "License"); 222 * you may not use this file except in compliance with the License. 223 * You may obtain a copy of the License at 224 * 225 * http://www.apache.org/licenses/LICENSE-2.0 226 * 227 * Unless required by applicable law or agreed to in writing, software 228 * distributed under the License is distributed on an "AS IS" BASIS, 229 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 230 * See the License for the specific language governing permissions and 231 * limitations under the License. 232 */class ov{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(av(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function av(t){const e=t.getComponent();return(e==null?void 0:e.type)==="VERSION"}const ma="@firebase/app",hu="0.11.2";/** 233 * @license 234 * Copyright 2019 Google LLC 235 * 236 * Licensed under the Apache License, Version 2.0 (the "License"); 237 * you may not use this file except in compliance with the License. 238 * You may obtain a copy of the License at 239 * 240 * http://www.apache.org/licenses/LICENSE-2.0 241 * 242 * Unless required by applicable law or agreed to in writing, software 243 * distributed under the License is distributed on an "AS IS" BASIS, 244 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 245 * See the License for the specific language governing permissions and 246 * limitations under the License. 247 */const fn=new Qa("@firebase/app"),lv="@firebase/app-compat",cv="@firebase/analytics-compat",uv="@firebase/analytics",hv="@firebase/app-check-compat",fv="@firebase/app-check",dv="@firebase/auth",pv="@firebase/auth-compat",mv="@firebase/database",gv="@firebase/data-connect",yv="@firebase/database-compat",_v="@firebase/functions",vv="@firebase/functions-compat",Ev="@firebase/installations",wv="@firebase/installations-compat",Tv="@firebase/messaging",bv="@firebase/messaging-compat",Iv="@firebase/performance",Av="@firebase/performance-compat",Rv="@firebase/remote-config",Sv="@firebase/remote-config-compat",Pv="@firebase/storage",Cv="@firebase/storage-compat",Vv="@firebase/firestore",xv="@firebase/vertexai",Dv="@firebase/firestore-compat",kv="firebase",Ov="11.4.0";/** 248 * @license 249 * Copyright 2019 Google LLC 250 * 251 * Licensed under the Apache License, Version 2.0 (the "License"); 252 * you may not use this file except in compliance with the License. 253 * You may obtain a copy of the License at 254 * 255 * http://www.apache.org/licenses/LICENSE-2.0 256 * 257 * Unless required by applicable law or agreed to in writing, software 258 * distributed under the License is distributed on an "AS IS" BASIS, 259 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 260 * See the License for the specific language governing permissions and 261 * limitations under the License. 262 */const ga="[DEFAULT]",Nv={[ma]:"fire-core",[lv]:"fire-core-compat",[uv]:"fire-analytics",[cv]:"fire-analytics-compat",[fv]:"fire-app-check",[hv]:"fire-app-check-compat",[dv]:"fire-auth",[pv]:"fire-auth-compat",[mv]:"fire-rtdb",[gv]:"fire-data-connect",[yv]:"fire-rtdb-compat",[_v]:"fire-fn",[vv]:"fire-fn-compat",[Ev]:"fire-iid",[wv]:"fire-iid-compat",[Tv]:"fire-fcm",[bv]:"fire-fcm-compat",[Iv]:"fire-perf",[Av]:"fire-perf-compat",[Rv]:"fire-rc",[Sv]:"fire-rc-compat",[Pv]:"fire-gcs",[Cv]:"fire-gcs-compat",[Vv]:"fire-fst",[Dv]:"fire-fst-compat",[xv]:"fire-vertex","fire-js":"fire-js",[kv]:"fire-js-all"};/** 263 * @license 264 * Copyright 2019 Google LLC 265 * 266 * Licensed under the Apache License, Version 2.0 (the "License"); 267 * you may not use this file except in compliance with the License. 268 * You may obtain a copy of the License at 269 * 270 * http://www.apache.org/licenses/LICENSE-2.0 271 * 272 * Unless required by applicable law or agreed to in writing, software 273 * distributed under the License is distributed on an "AS IS" BASIS, 274 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 275 * See the License for the specific language governing permissions and 276 * limitations under the License. 277 */const Pi=new Map,Mv=new Map,ya=new Map;function fu(t,e){try{t.container.addComponent(e)}catch(n){fn.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`,n)}}function xn(t){const e=t.name;if(ya.has(e))return fn.debug(`There were multiple attempts to register component ${e}.`),!1;ya.set(e,t);for(const n of Pi.values())fu(n,t);for(const n of Mv.values())fu(n,t);return!0}function Os(t,e){const n=t.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),t.container.getProvider(e)}function Lv(t){return t==null?!1:t.settings!==void 0}/** 278 * @license 279 * Copyright 2019 Google LLC 280 * 281 * Licensed under the Apache License, Version 2.0 (the "License");
282 * you may not use this file except in compliance with the License. 283 * You may obtain a copy of the License at 284 * 285 * http://www.apache.org/licenses/LICENSE-2.0 286 * 287 * Unless required by applicable law or agreed to in writing, software 288 * distributed under the License is distributed on an "AS IS" BASIS, 289 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 290 * See the License for the specific language governing permissions and 291 * limitations under the License. 292 */const Fv={"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
292d-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."},Sn=new to("app","Firebase",Fv);/** 293 * @license 294 * Copyright 2019 Google LLC 295 * 296 * Licensed under the Apache License, Version 2.0 (the "License"); 297 * you may not use this file except in compliance with the License. 298 * You may obtain a copy of the License at 299 * 300 * http://www.apache.org/licenses/LICENSE-2.0 301 * 302 * Unless required by applicable law or agreed to in writing, software 303 * distributed under the License is distributed on an "AS IS" BASIS, 304 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 305 * See the License for the specific language governing permissions and 306 * limitations under the License. 307 */class $v{constructor(e,n,r){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new hn("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 Sn.create("app-deleted",{appName:this._name})}}/** 308 * @license 309 * Copyright 2019 Google LLC 310 * 311 * Licensed under the Apache License, Version 2.0 (the "License"); 312 * you may not use this file except in compliance with the License. 313 * You may obtain a copy of the License at 314 * 315 * http://www.apache.org/licenses/LICENSE-2.0 316 * 317 * Unless required by applicable law or agreed to in writing, software 318 * distributed under the License is distributed on an "AS IS" BASIS, 319 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 320 * See the License for the specific language governing permissions and 321 * limitations under the License. 322 */const Uv=Ov;function Gf(t,e={}){let n=t;typeof e!="object"&&(e={name:e});const r=Object.assign({name:ga,automaticDataCollectionEnabled:!1},e),s=r.name;if(typeof s!="string"||!s)throw Sn.create("bad-app-name",{appName:String(s)});if(n||(n=jf()),!n)throw Sn.create("no-options");const o=Pi.get(s);if(o){if(Is(n,o.options)&&Is(r,o.config))return o;throw Sn.create("duplicate-app",{appName:s})}const a=new q_(s);for(const u of ya.values())a.addComponent(u);const l=new $v(n,r,a);return Pi.set(s,l),l}function Wf(t=ga){const e=Pi.get(t);if(!e&&t===ga&&jf())return Gf();if(!e)throw Sn.create("no-app",{appName:t});return e}function Xt(t,e,n){var r;let s=(r=Nv[t])!==null&&r!==void 0?r:t;n&&(s+=`-${n}`);const o=s.match(/\s|\//),a=e.match(/\s|\//);if(o||a){const l=[`Unable to register library "${s}" with version "${e}":`];o&&l.push(`library name "${s}" contains illegal characters (whitespace or "/")`),o&&a&&l.push("and"),a&&l.push(`version name "${e}" contains illegal characters (whitespace or "/")`),fn.warn(l.join(" "));return}xn(new hn(`${s}-version`,()=>({library:s,version:e}),"VERSION"))}/** 323 * @license 324 * Copyright 2021 Google LLC 325 * 326 * Licensed under the Apache License, Version 2.0 (the "License"); 327 * you may not use this file except in compliance with the License. 328 * You may obtain a copy of the License at 329 * 330 * http://www.apache.org/licenses/LICENSE-2.0 331 * 332 * Unless required by applicable law or agreed to in writing, softw
332are 333 * distributed under the License is distributed on an "AS IS" BASIS, 334 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 335 * See the License for the specific language governing permissions and 336 * limitations under the License. 337 */const jv="firebase-heartbeat-database",Bv=1,As="firebase-heartbeat-store";let Ko=null;function Qf(){return Ko||(Ko=Kf(jv,Bv,{upgrade:(t,e)=>{switch(e){case 0:try{t.createObjectStore(As)}catch(n){console.warn(n)}}}}).catch(t=>{throw Sn.create("idb-open",{originalErrorMessage:t.message})})),Ko}async function zv(t){try{const n=(await Qf()).transaction(As),r=await n.objectStore(As).get(Xf(t));return await n.done,r}catch(e){if(e instanceof Fn)fn.warn(e.message);else{const n=Sn.create("idb-get",{originalErrorMessage:e==null?void 0:e.message});fn.warn(n.message)}}}async function du(t,e){try{const r=(await Qf()).transaction(As,"readwrite");await r.objectStore(As).put(e,Xf(t)),await r.done}catch(n){if(n instanceof Fn)fn.warn(n.message);else{const r=Sn.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});fn.warn(r.message)}}}function Xf(t){return`${t.name}!${t.options.appId}`}/** 338 * @license 339 * Copyright 2021 Google LLC 340 * 341 * Licensed under the Apache License, Version 2.0 (the "License"); 342 * you may not use this file except in compliance with the License. 343 * You may obtain a copy of the License at 344 * 345 * http://www.apache.org/licenses/LICENSE-2.0 346 * 347 * Unless required by applicable law or agreed to in writing, software 348 * distributed under the License is distributed on an "AS IS" BASIS, 349 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 350 * See the License for the specific language governing permissions and 351 * limitations under the License. 352 */const Hv=1024,qv=30;class Kv{constructor(e){this.container=e,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new Wv(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){var e,n;try{const s=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),o=pu();if(((e=this._heartbeatsCache)===null||e===void 0?void 0:e.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((n=this._heartbeatsCache)===null||n===void 0?void 0:n.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===o||this._heartbeatsCache.heartbeats.some(a=>a.date===o))return;if(this._heartbeatsCache.heartbeats.push({date:o,agent:s}),this._heartbeatsCache.heartbeats.length>qv){const a=Qv(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(a,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(r){fn.warn(r)}}async getHeartbeatsHeader(){var e;try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((e=this._heartbeatsCache)===null||e===void 0?void 0:e.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const n=pu(),{heartbeatsToSend:r,unsentEntries:s}=Gv(this._heartbeatsCache.heartbeats),o=Si(JSON.stringify({version:2,heartbeats:r}));return this._heartbeatsCache.lastSentHeartbeatDate=n,s.length>0?(this._heartbeatsCache.heartbeats=s,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),o}catch(n){return fn.warn(n),""}}}function pu(){return new Date().toISOString().substring(0,10)}function Gv(t,e=Hv){const n=[];let r=t.slice();for(const s of t){const o=n.find(a=>a.agent===s.agent);if(o){if(o.dates.push(s.date),mu(n)>e){o.dates.pop();break}}else if(n.push({agent:s.agent,dates:[s.date]}),mu(n)>e){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class Wv{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return Bf()?zf().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await zv(this.app);return n!=null&&n.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(e){var n;if(await this._canUseIndexedDBPromise){const s=await this.read();return du(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:s.lastSentHeartbeatDate,heartbeats:e.heartbeats})}else return}async add(e){var n;if(await this._canUseIndexedDBPromise){const s=await this.read();return du(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:s.lastSentHeartbeatDate,heartbeats:[...s.heartbeats,...e.heartbeats]})}else return}}function mu(t){return Si(JSON.stringify({version:2,heartbeats:t})).length}function Qv(t){if(t.length===0)return-1;let e=0,n=t[0].date;for(let r=1;r<t.length;r++)t[r].date<n&&(n=t[r].date,e=r);return e}/** 353 * @license 354 * Copyright 2019 Google LLC 355 * 356 * Licensed under the Apache License, Version 2.0 (the "License");
357 * you may not use this file except in compliance with the License. 358 * You may obtain a copy of the License at 359 * 360 * http://www.apache.org/licenses/LICENSE-2.0 361 * 362 * Unless required by applicable law or agreed to in writing, software 363 * distributed under the License is distributed on an "AS IS" BASIS, 364 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 365 * See the License for the specific language governing permissions and 366 * limitations under the License. 367 */function Xv(t){xn(new hn("platform-logger",e=>new ov(e),"PRIVATE")),xn(new hn("heartbeat",e=>new Kv(e),"PRIVATE")),Xt(ma,hu,t),Xt(ma,hu,"esm2017"),Xt("fire-js","")}Xv("");var Yv="firebase",Jv="11.4.0";/** 368 * @license 369 * Copyright 2020 Google LLC 370 * 371 * Licensed under the Apache License, Version 2.0 (the "License"); 372 * you may not use this file except in compliance with the License. 373 * You may obtain a copy of the License at 374 * 375 * http://www.apache.org/licenses/LICENSE-2.0 376 * 377 * Unless required by applicable law or agreed to in writing, software 378 * distributed under the License is distributed on an "AS IS" BASIS, 379 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 380 * See the License for the specific language governing permissions and 381 * limitations under the License. 382 */Xt(Yv,Jv,"app");var gu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};/** @license 383Copyright The Closure Library Authors. 384SPDX-License-Identifier: Apache-2.0 385*/var Ya;(function(){var t;/** @license 386 387 Copyright The Closure Library Authors. 388 SPDX-License-Identifier: Apache-2.0 389*/function e(T,g){function w(){}w.prototype=g.prototype,T.D=g.prototype,T.prototype=new w,T.prototype.constructor=T,T.C=function(I,A,P){for(var E=Array(arguments.length-2),ut=2;ut<arguments.length;ut++)E[ut-2]=arguments[ut];return g.prototype[A].apply(I,E)}}function n(){this.blockSize=-1}function r(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.B=Array(this.blockSize),this.o=this.h=0,this.s()}e(r,n),r.prototype.s=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.o=this.h=0};function s(T,g,w){w||(w=0);var I=Array(16);if(typeof g=="string")for(var A=0;16>A;++A)I[A]=g.charCodeAt(w++)|g.charCodeAt(w++)<<8|g.charCodeAt(w++)<<16|g.charCodeAt(w++)<<24;else for(A=0;16>A;++A)I[A]=g[w++]|g[w++]<<8|g[w++]<<16|g[w++]<<24;g=T.g[0],w=T.g[1],A=T.g[2];var P=T.g[3],E=g+(P^w&(A^P))+I[0]+3614090360&4294967295;g=w+(E<<7&4294967295|E>>>25),E=P+(A^g&(w^A))+I[1]+3905402710&4294967295,P=g+(E<<12&4294967295|E>>>20),E=A+(w^P&(g^w))+I[2]+606105819&4294967295,A=P+(E<<17&4294967295|E>>>15),E=w+(g^A&(P^g))+I[3]+3250441966&4294967295,w=A+(E<<22&4294967295|E>>>10),E=g+(P^w&(A^P))+I[4]+4118548399&4294967295,g=w+(E<<7&4294967295|E>>>25),E=P+(A^g&(w^A))+I[5]+1200080426&4294967295,P=g+(E<<12&4294967295|E>>>20),E=A+(w^P&(g^w))+I[6]+2821735955&4294967295,A=P+(E<<17&4294967295|E>>>15),E=w+(g^A&(P^g))+I[7]+4249261313&4294967295,w=A+(E<<22&4294967295|E>>>10),E=g+(P^w&(A^P))+I[8]+1770035416&4294967295,g=w+(E<<7&4294967295|E>>>25),E=P+(A^g&(w^A))+I[9]+2336552879&4294967295,P=g+(E<<12&4294967295|E>>>20),E=A+(w^P&(g^w))+I[10]+4294925233&4294967295,A=P+(E<<17&4294967295|E>>>15),E=w+(g^A&(P^g))+I[11]+2304563134&4294967295,w=A+(E<<22&4294967295|E>>>10),E=g+(P^w&(A^P))+I[12]+1804603682&4294967295,g=w+(E<<7&4294967295|E>>>25),E=P+(A^g&(w^A))+I[13]+4254626195&4294967295,P=g+(E<<12&4294967295|E>>>20),E=A+(w^P&(g^w))+I[14]+2792965006&4294967295,A=P+(E<<17&4294967295|E>>>15),E=w+(g^A&(P^g))+I[15]+1236535329&4294967295,w=A+(E<<22&4294967295|E>>>10),E=g+(A^P&(w^A))+I[1]+4129170786&4294967295,g=w+(E<<5&4294967295|E>>>27),E=P+(w^A&(g^w))+I[6]+3225465664&4294967295,P=g+(E<<9&4294967295|E>>>23),E=A+(g^w&(P^g))+I[11]+643717713&4294967295,A=P+(E<<14&4294967295|E>>>18),E=w+(P^g&(A^P))+I[0]+3921069994&4294967295,w=A+(E<<20&4294967295|E>>>12),E=g+(A^P&(w^A))+I[5]+3593408605&4294967295,g=w+(E<<5&4294967295|E>>>27),E=P+(w^A&(g^w))+I[10]+38016083&4294967295,P=g+(E<<9&4294967295|E>>>23),E=A+(g^w&(P^g))+I[15]+3634488961&4294967295,A=P+(E<<14&4294967295|E>>>18),E=w+(P^g&(A^P))+I[4]+3889429448&4294967295,w=A+(E<<20&4294967295|E>>>12),E=g+(A^P&(w^A))+I[9]+568446438&4294967295,g=w+(E<<5&4294967295|E>>>27),E=P+(w^A&(g^w))+I[14]+3275163606&4294967295,P=g+(E<<9&4294967295|E>>>23),E=A+(g^w&(P^g))+I[3]+4107603335&4294967295,A=P+(E<<14&4294967295|E>>>18),E=w+(P^g&(A^P))+I[8]+1163531501&4294967295,w=A+(E<<20&4294967295|E>>>12),E=g+(A^P&(w^A))+I[13]+2850285829&4294967295,g=w+(E<<5&4294967295|E>>>27),E=P+(w^A&(g^w))+I[2]+4243563512&4294967295,P=g+(E<<9&4294967295|E>>>23),E=A+(g^w&(P^g))+I[7]+1735328473&4294967295,A=P+(E<<14&4294967295|E>>>18),E=w+(P^g&(A^P))+I[12]+2368359562&4294967295,w=A+(E<<20&4294967295|E>>>12),E=g+(w^A^P)+I[5]+4294588738&4294967295,g=w+(E<<4&4294967295|E>>>28),E=P+(g^w^A)+I[8]+2272392833&4294967295,P=g+(E<<11&4294967295|E>>>21),E=A+(P^g^w)+I[11]+1839030562&4294967295,A=P+(E<<16&4294967295|E>>>16),E=w+(A^P^g)+I[14]+4259657740&4294967295,w=A+(E<<23&4294967295|E>>>9),E=g+(w^A^P)+I[1]+2763975236&4294967295,g=w+(E<<4&4294967295|E>>>28),E=P+(g^w^A)+I[4]+1272893353&4294967295,P=g+(E<<11&4294967295|E>>>21),E=A+(P^g^w)+I[7]+4139469664&4294967295,A=P+(E<<16&4294967295|E>>>16),E=w+(A^P^g)+I[10]+3200236656&4294967295,w=A+(E<<23&4294967295|E>>>9),E=g+(w^A^P)+I[13]+681279174&4294967295,g=w+(E<<4&4294967295|E>>>28),E=P+(g^w^A)+I[0]+3936430074&4294967295,P=g+(E<<11&4294967295|E>>>21),E=A+(P^g^w)+I[3]+3572445317&4294967295,A=P+(E<<16&4294967295|E>>>16),E=w+(A^P^g)+I[6]+76029189&4294967295,w=A+(E<<23&4294967295|E>>>9),E=g+(w^A^P)+I[9]+3654602809&4294967295,g=w+(E<<4&4294967295|E>>>28),E=P+(g^w^A)+I[12]+3873151461&4294967295,P=g+(E<<11&4294967295|E>>>21),E=A+(P^g^w)+I[15]+530742520&4294967295,A=P+(E<<16&4294967295|E>>>16),E=w+(A^P^g)+I[2]+3299628645&4294967295,w=A+(E<<23&4294967295|E>>>9),E=g+(A^(w|~P))+I[0]+4096336452&4294967295,g=w+(E<<6&4294967295|E>>>26),E=P+(w^(g|~A))+I[7]+1126891415&4294967295,P=g+(E<<10&4294967295|E>>>22),E=A+(g^(P|~w))+I[14]+2878612391&4294967295,A=P+(E<<15&4294967295|E>>>17),E=w+(P^(A|~g))+I[5]+4237533241&4294967295,w=A+(E<<21&4294967295|E>>>11),E=g+(A^(w|~P))+I[12]+1700485571&4294967295,g=w+(E<<6&4294967295|E>>>26),E=P+(w^(g|~A))+I[3]+2399980690&4294967295,P=g+(E<<10&4294967295|E>>>22),E=A+(g^(P|~w))+I[10]+4293915773&4294967295,A=P+(E<<15&4294967295|E>>>17),E=w+(P^(A|~g))+I[1]+2240044497&4294967295,w=A+(E<<21&4294967295|E>>>11),E=g+(A^(w|~P))+I[8]+1873313359&4294967295,g=w+(E<<6&4294967295|E>>>26),E=P+(w^(g|~A))+I[15]+4264355552&4294967295,P=g+(E<<10&4294967295|E>>>22),E=A+(g^(P|~w))+I[6]+2734768916&4294967295,A=P+(E<<15&4294967295|E>>>17),E=w+(P^(A|~g))+I[13]+1309151649&4294967295,w=A+(E<<21&4294967295|E>>>11),E=g+(A^(w|~P))+I[4]+4149444226&4294967295,g=w+(E<<6&4294967295|E>>>26),E=P+(w^(g|~A))+I[11]+3174756917&4294967295,P=g+(E<<10&4294967295|E>>>22),E=A+(g^(P|~w))+I[2]+718787259&4294967295,A=P+(E<<15&4294967295|E>>>17),E=w+(P^(A|~g))+I[9]+3951481745&4294967295,T.g[0]=T.g[0]+g&4294967295,T.g[1]=T.g[1]+(A+(E<<21&4294967295|E>>>11))&4294967295,T.g[2]=T.g[2]+A&4294967295,T.g[3]=T.g[3]+P&4294967295}r.prototype.u=function(T,g){g===void 0&&(g=T.length);for(var w=g-this.blockSize,I=this.B,A=this.h,P=0;P<g;){if(A==0)for(;P<=w;)s(this,T,P),P+=this.blockSize;if(typeof T=="string"){for(;P<g;)if(I[A++]=T.charCodeAt(P++),A==this.blockSize){s(this,I),A=0;break}}else for(;P<g;)if(I[A++]=T[P++],A==this.blockSize){s(this,I),A=0;break}}this.h=A,this.o+=g},r.prototype.v=function(){var T=Array((56>this.h?this.blockSize:2*this.blockSize)-this.h);T[0]=128;for(var g=1;g<T.length-8;++g)T[g]=0;var w=8*this.o;for(g=T.length-8;g<T.length;++g)T[g]=w&255,w/=256;for(this.u(T),T=Array(16),g=w=0;4>g;++g)for(var I=0;32>I;I+=8)T[w++]=this.g[g]>>>
vendor: 46,075 bytes, lines 389-408
389I&255;return T};function o(T,g){var w=l;return Object.prototype.hasOwnProperty.call(w,T)?w[T]:w[T]=g(T)}function a(T,g){this.h=g;for(var w=[],I=!0,A=T.length-1;0<=A;A--){var P=T[A]|0;I&&P==g||(w[A]=P,I=!1)}this.g=w}var l={};function u(T){return-128<=T&&128>T?o(T,function(g){return new a([g|0],0>g?-1:0)}):new a([T|0],0>T?-1:0)}function f(T){if(isNaN(T)||!isFinite(T))return p;if(0>T)return j(f(-T));for(var g=[],w=1,I=0;T>=w;I++)g[I]=T/w|0,w*=4294967296;return new a(g,0)}function d(T,g){if(T.length==0)throw Error("number format error: empty string");if(g=g||10,2>g||36<g)throw Error("radix out of range: "+g);if(T.charAt(0)=="-")return j(d(T.substring(1),g));if(0<=T.indexOf("-"))throw Error('number format error: interior "-" character');for(var w=f(Math.pow(g,8)),I=p,A=0;A<T.length;A+=8){var P=Math.min(8,T.length-A),E=parseInt(T.substring(A,A+P),g);8>P?(P=f(Math.pow(g,P)),I=I.j(P).add(f(E))):(I=I.j(w),I=I.add(f(E)))}return I}var p=u(0),_=u(1),b=u(16777216);t=a.prototype,t.m=function(){if(F(this))return-j(this).m();for(var T=0,g=1,w=0;w<this.g.length;w++){var I=this.i(w);T+=(0<=I?I:4294967296+I)*g,g*=4294967296}return T},t.toString=function(T){if(T=T||10,2>T||36<T)throw Error("radix out of range: "+T);if(x(this))return"0";if(F(this))return"-"+j(this).toString(T);for(var g=f(Math.pow(T,6)),w=this,I="";;){var A=R(w,g).g;w=G(w,A.j(g));var P=((0<w.g.length?w.g[0]:w.h)>>>0).toString(T);if(w=A,x(w))return P+I;for(;6>P.length;)P="0"+P;I=P+I}},t.i=function(T){return 0>T?0:T<this.g.length?this.g[T]:this.h};function x(T){if(T.h!=0)return!1;for(var g=0;g<T.g.length;g++)if(T.g[g]!=0)return!1;return!0}function F(T){return T.h==-1}t.l=function(T){return T=G(this,T),F(T)?-1:x(T)?0:1};function j(T){for(var g=T.g.length,w=[],I=0;I<g;I++)w[I]=~T.g[I];return new a(w,~T.h).add(_)}t.abs=function(){return F(this)?j(this):this},t.add=function(T){for(var g=Math.max(this.g.length,T.g.length),w=[],I=0,A=0;A<=g;A++){var P=I+(this.i(A)&65535)+(T.i(A)&65535),E=(P>>>16)+(this.i(A)>>>16)+(T.i(A)>>>16);I=E>>>16,P&=65535,E&=65535,w[A]=E<<16|P}return new a(w,w[w.length-1]&-2147483648?-1:0)};function G(T,g){return T.add(j(g))}t.j=function(T){if(x(this)||x(T))return p;if(F(this))return F(T)?j(this).j(j(T)):j(j(this).j(T));if(F(T))return j(this.j(j(T)));if(0>this.l(b)&&0>T.l(b))return f(this.m()*T.m());for(var g=this.g.length+T.g.length,w=[],I=0;I<2*g;I++)w[I]=0;for(I=0;I<this.g.length;I++)for(var A=0;A<T.g.length;A++){var P=this.i(I)>>>16,E=this.i(I)&65535,ut=T.i(A)>>>16,Ct=T.i(A)&65535;w[2*I+2*A]+=E*Ct,H(w,2*I+2*A),w[2*I+2*A+1]+=P*Ct,H(w,2*I+2*A+1),w[2*I+2*A+1]+=E*ut,H(w,2*I+2*A+1),w[2*I+2*A+2]+=P*ut,H(w,2*I+2*A+2)}for(I=0;I<g;I++)w[I]=w[2*I+1]<<16|w[2*I];for(I=g;I<2*g;I++)w[I]=0;return new a(w,0)};function H(T,g){for(;(T[g]&65535)!=T[g];)T[g+1]+=T[g]>>>16,T[g]&=65535,g++}function D(T,g){this.g=T,this.h=g}function R(T,g){if(x(g))throw Error("division by zero");if(x(T))return new D(p,p);if(F(T))return g=R(j(T),g),new D(j(g.g),j(g.h));if(F(g))return g=R(T,j(g)),new D(j(g.g),g.h);if(30<T.g.length){if(F(T)||F(g))throw Error("slowDivide_ only works with positive integers.");for(var w=_,I=g;0>=I.l(T);)w=oe(w),I=oe(I);var A=Z(w,1),P=Z(I,1);for(I=Z(I,2),w=Z(w,2);!x(I);){var E=P.add(I);0>=E.l(T)&&(A=A.add(w),P=E),I=Z(I,1),w=Z(w,1)}return g=G(T,A.j(g)),new D(A,g)}for(A=p;0<=T.l(g);){for(w=Math.max(1,Math.floor(T.m()/g.m())),I=Math.ceil(Math.log(w)/Math.LN2),I=48>=I?1:Math.pow(2,I-48),P=f(w),E=P.j(g);F(E)||0<E.l(T);)w-=I,P=f(w),E=P.j(g);x(P)&&(P=_),A=A.add(P),T=G(T,E)}return new D(A,T)}t.A=function(T){return R(this,T).h},t.and=function(T){for(var g=Math.max(this.g.length,T.g.length),w=[],I=0;I<g;I++)w[I]=this.i(I)&T.i(I);return new a(w,this.h&T.h)},t.or=function(T){for(var g=Math.max(this.g.length,T.g.length),w=[],I=0;I<g;I++)w[I]=this.i(I)|T.i(I);return new a(w,this.h|T.h)},t.xor=function(T){for(var g=Math.max(this.g.length,T.g.length),w=[],I=0;I<g;I++)w[I]=this.i(I)^T.i(I);return new a(w,this.h^T.h)};function oe(T){for(var g=T.g.length+1,w=[],I=0;I<g;I++)w[I]=T.i(I)<<1|T.i(I-1)>>>31;return new a(w,T.h)}function Z(T,g){var w=g>>5;g%=32;for(var I=T.g.length-w,A=[],P=0;P<I;P++)A[P]=0<g?T.i(P+w)>>>g|T.i(P+w+1)<<32-g:T.i(P+w);return new a(A,T.h)}r.prototype.digest=r.prototype.v,r.prototype.reset=r.prototype.s,r.prototype.update=r.prototype.u,a.prototype.add=a.prototype.add,a.prototype.multiply=a.prototype.j,a.prototype.modulo=a.prototype.A,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=f,a.fromString=d,Ya=a}).apply(typeof gu<"u"?gu:typeof self<"u"?self:typeof window<"u"?window:{});var ii=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};/** @license 390Copyright The Closure Library Authors. 391SPDX-License-Identifier: Apache-2.0 392*/var Yf,rs,Jf,gi,_a,Zf,ed,td;(function(){var t,e=typeof Object.defineProperties=="function"?Object.defineProperty:function(i,c,h){return i==Array.prototype||i==Object.prototype||(i[c]=h.value),i};function n(i){i=[typeof globalThis=="object"&&globalThis,i,typeof window=="object"&&window,typeof self=="object"&&self,typeof ii=="object"&&ii];for(var c=0;c<i.length;++c){var h=i[c];if(h&&h.Math==Math)return h}throw Error("Cannot find global object")}var r=n(this);function s(i,c){if(c)e:{var h=r;i=i.split(".");for(var m=0;m<i.length-1;m++){var C=i[m];if(!(C in h))break e;h=h[C]}i=i[i.length-1],m=h[i],c=c(m),c!=m&&c!=null&&e(h,i,{configurable:!0,writable:!0,value:c})}}function o(i,c){i instanceof String&&(i+="");var h=0,m=!1,C={next:function(){if(!m&&h<i.length){var V=h++;return{value:c(V,i[V]),done:!1}}return m=!0,{done:!0,value:void 0}}};return C[Symbol.iterator]=function(){return C},C}s("Array.prototype.values",function(i){return i||function(){return o(this,function(c,h){return h})}});/** @license 393 394 Copyright The Closure Library Authors. 395 SPDX-License-Identifier: Apache-2.0 396*/var a=a||{},l=this||self;function u(i){var c=typeof i;return c=c!="object"?c:i?Array.isArray(i)?"array":c:"null",c=="array"||c=="object"&&typeof i.length=="number"}function f(i){var c=typeof i;return c=="object"&&i!=null||c=="function"}function d(i,c,h){return i.call.apply(i.bind,arguments)}function p(i,c,h){if(!i)throw Error();if(2<arguments.length){var m=Array.prototype.slice.call(arguments,2);return function(){var C=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(C,m),i.apply(c,C)}}return function(){return i.apply(c,arguments)}}function _(i,c,h){return _=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?d:p,_.apply(null,arguments)}function b(i,c){var h=Array.prototype.slice.call(arguments,1);return function(){var m=h.slice();return m.push.apply(m,arguments),i.apply(this,m)}}function x(i,c){function h(){}h.prototype=c.prototype,i.aa=c.prototype,i.prototype=new h,i.prototype.constructor=i,i.Qb=function(m,C,V){for(var K=Array(arguments.length-2),Re=2;Re<arguments.length;Re++)K[Re-2]=arguments[Re];return c.prototype[C].apply(m,K)}}function F(i){const c=i.length;if(0<c){const h=Array(c);for(let m=0;m<c;m++)h[m]=i[m];return h}return[]}function j(i,c){for(let h=1;h<arguments.length;h++){const m=arguments[h];if(u(m)){const C=i.length||0,V=m.length||0;i.length=C+V;for(let K=0;K<V;K++)i[C+K]=m[K]}else i.push(m)}}class G{constructor(c,h){this.i=c,this.j=h,this.h=0,this.g=null}get(){let c;return 0<this.h?(this.h--,c=this.g,this.g=c.next,c.next=null):c=this.i(),c}}function H(i){return/^[\s\xa0]*$/.test(i)}function D(){var i=l.navigator;return i&&(i=i.userAgent)?i:""}function R(i){return R[" "](i),i}R[" "]=function(){};var oe=D().indexOf("Gecko")!=-1&&!(D().toLowerCase().indexOf("webkit")!=-1&&D().indexOf("Edge")==-1)&&!(D().indexOf("Trident")!=-1||D().indexOf("MSIE")!=-1)&&D().indexOf("Edge")==-1;function Z(i,c,h){for(const m in i)c.call(h,i[m],m,i)}function T(i,c){for(const h in i)c.call(void 0,i[h],h,i)}function g(i){const c={};for(const h in i)c[h]=i[h];return c}const w="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function I(i,c){let h,m;for(let C=1;C<arguments.length;C++){m=arguments[C];for(h in m)i[h]=m[h];for(let V=0;V<w.length;V++)h=w[V],Object.prototype.hasOwnProperty.call(m,h)&&(i[h]=m[h])}}function A(i){var c=1;i=i.split(":");const h=[];for(;0<c&&i.length;)h.push(i.shift()),c--;return i.length&&h.push(i.join(":")),h}function P(i){l.setTimeout(()=>{throw i},0)}function E(){var i=Tt;let c=null;return i.g&&(c=i.g,i.g=i.g.next,i.g||(i.h=null),c.next=null),c}class ut{constructor(){this.h=this.g=null}add(c,h){const m=Ct.get();m.set(c,h),this.h?this.h.next=m:this.g=m,this.h=m}}var Ct=new G(()=>new $e,i=>i.reset());class $e{constructor(){this.next=this.g=this.h=null}set(c,h){this.h=c,this.g=h,this.next=null}reset(){this.next=this.g=this.h=null}}let de,fe=!1,Tt=new ut,Ot=()=>{const i=l.Promise.resolve(void 0);de=()=>{i.then(Vt)}};var Vt=()=>{for(var i;i=E();){try{i.h.call(i.g)}catch(h){P(h)}var c=Ct;c.j(i),100>c.h&&(c.h++,i.next=c.g,c.g=i)}fe=!1};function Oe(){this.s=this.s,this.C=this.C}Oe.prototype.s=!1,Oe.prototype.ma=function(){this.s||(this.s=!0,this.N())},Oe.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()};function Ne(i,c){this.type=i,this.g=this.target=c,this.defaultPrevented=!1}Ne.prototype.h=function(){this.defaultPrevented=!0};var mn=function(){if(!l.addEventListener||!Object.defineProperty)return!1;var i=!1,c=Object.defineProperty({},"passive",{get:function(){i=!0}});try{const h=()=>{};l.addEventListener("test",h,c),l.removeEventListener("test",h,c)}catch{}return i}();function Ht(i,c){if(Ne.call(this,i?i.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,i){var h=this.type=i.type,m=i.changedTouches&&i.changedTouches.length?i.changedTouches[0]:null;if(this.target=i.target||i.srcElement,this.g=c,c=i.relatedTarget){if(oe){e:{try{R(c.nodeName);var C=!0;break e}catch{}C=!1}C||(c=null)}}else h=="mouseover"?c=i.fromElement:h=="mouseout"&&(c=i.toElement);this.relatedTarget=c,m?(this.clientX=m.clientX!==void 0?m.clientX:m.pageX,this.clientY=m.clientY!==void 0?m.clientY:m.pageY,this.screenX=m.screenX||0,this.screenY=m.screenY||0):(this.clientX=i.clientX!==void 0?i.clientX:i.pageX,this.clientY=i.clientY!==void 0?i.clientY:i.pageY,this.screenX=i.screenX||0,this.screenY=i.screenY||0),this.button=i.button,this.key=i.key||"",this.ctrlKey=i.ctrlKey,this.altKey=i.altKey,this.shiftKey=i.shiftKey,this.metaKey=i.metaKey,this.pointerId=i.pointerId||0,this.pointerType=typeof i.pointerType=="string"?i.pointerType:mt[i.pointerType]||"",this.state=i.state,this.i=i,i.defaultPrevented&&Ht.aa.h.call(this)}}x(Ht,Ne);var mt={2:"touch",3:"pen",4:"mouse"};Ht.prototype.h=function(){Ht.aa.h.call(this);var i=this.i;i.preventDefault?i.preventDefault():i.returnValue=!1};var k="closure_listenable_"+(1e6*Math.random()|0),Y=0;function Q(i,c,h,m,C){this.listener=i,this.proxy=null,this.src=c,this.type=h,this.capture=!!m,this.ha=C,this.key=++Y,this.da=this.fa=!1}function J(i){i.da=!0,i.listener=null,i.proxy=null,i.src=null,i.ha=null}function _e(i){this.src=i,this.g={},this.h=0}_e.prototype.add=function(i,c,h,m,C){var V=i.toString();i=this.g[V],i||(i=this.g[V]=[],this.h++);var K=v(i,c,m,C);return-1<K?(c=i[K],h||(c.fa=!1)):(c=new Q(c,this.src,V,!!m,C),c.fa=h,i.push(c)),c};function y(i,c){var h=c.type;if(h in i.g){var m=i.g[h],C=Array.prototype.indexOf.call(m,c,void 0),V;(V=0<=C)&&Array.prototype.splice.call(m,C,1),V&&(J(c),i.g[h].length==0&&(delete i.g[h],i.h--))}}function v(i,c,h,m){for(var C=0;C<i.length;++C){var V=i[C];if(!V.da&&V.listener==c&&V.capture==!!h&&V.ha==m)return C}return-1}var S="closure_lm_"+(1e6*Math.random()|0),O={};function M(i,c,h,m,C){if(Array.isArray(c)){for(var V=0;V<c.length;V++)M(i,c[V],h,m,C);return null}return h=se(h),i&&i[k]?i.K(c,h,f(m)?!!m.capture:!1,C):N(i,c,h,!1,m,C)}function N(i,c,h,m,C,V){if(!c)throw Error("Invalid event type");var K=f(C)?!!C.capture:!!C,Re=X(i);if(Re||(i[S]=Re=new _e(i)),h=Re.add(c,h,m,K,V),h.proxy)return h;if(m=W(),h.proxy=m,m.src=i,m.listener=h,i.addEventListener)mn||(C=K),C===void 0&&(C=!1),i.addEventListener(c.toString(),m,C);else if(i.attachEvent)i.attachEvent($(c.toString()),m);else if(i.addListener&&i.removeListener)i.addListener(m);else throw Error("addEventListener and attachEvent are unavailable.");return h}function W(){function i(h){return c.call(i.src,i.listener,h)}const c=ne;return i}function q(i,c,h,m,C){if(Array.isArray(c))for(var V=0;V<c.length;V++)q(i,c[V],h,m,C);else m=f(m)?!!m.capture:!!m,h=se(h),i&&i[k]?(i=i.i,c=String(c).toString(),c in i.g&&(V=i.g[c],h=v(V,h,m,C),-1<h&&(J(V[h]),Array.prototype.splice.call(V,h,1),V.length==0&&(delete i.g[c],i.h--)))):i&&(i=X(i))&&(c=i.g[c.toString()],i=-1,c&&(i=v(c,h,m,C)),(h=-1<i?c[i]:null)&&z(h))}function z(i){if(typeof i!="number"&&i&&!i.da){var c=i.src;if(c&&c[k])y(c.i,i);else{var h=i.type,m=i.proxy;c.removeEventListener?c.removeEventListener(h,m,i.capture):c.detachEvent?c.detachEvent($(h),m):c.addListener&&c.removeListener&&c.removeListener(m),(h=X(c))?(y(h,i),h.h==0&&(h.src=null,c[S]=null)):J(i)}}}function $(i){return i in O?O[i]:O[i]="on"+i}function ne(i,c){if(i.da)i=!0;else{c=new Ht(c,this);var h=i.listener,m=i.ha||i.src;i.fa&&z(i),i=h.call(m,c)}return i}function X(i){return i=i[S],i instanceof _e?i:null}var te="__closure_events_fn_"+(1e9*Math.random()>>>0);function se(i){return typeof i=="function"?i:(i[te]||(i[te]=function(c){return i.handleEvent(c)}),i[te])}function re(){Oe.call(this),this.i=new _e(this),this.M=this,this.F=null}x(re,Oe),re.prototype[k]=!0,re.prototype.removeEventListener=function(i,c,h,m){q(this,i,c,h,m)};function le(i,c){var h,m=i.F;if(m)for(h=[];m;m=m.F)h.push(m);if(i=i.M,m=c.type||c,typeof c=="string")c=new Ne(c,i);else if(c instanceof Ne)c.target=c.target||i;else{var C=c;c=new Ne(m,i),I(c,C)}if(C=!0,h)for(var V=h.length-1;0<=V;V--){var K=c.g=h[V];C=pe(K,m,!0,c)&&C}if(K=c.g=i,C=pe(K,m,!0,c)&&C,C=pe(K,m,!1,c)&&C,h)for(V=0;V<h.length;V++)K=c.g=h[V],C=pe(K,m,!1,c)&&C}re.prototype.N=function(){if(re.aa.N.call(this),this.i){var i=this.i,c;for(c in i.g){for(var h=i.g[c],m=0;m<h.length;m++)J(h[m]);delete i.g[c],i.h--}}this.F=null},re.prototype.K=function(i,c,h,m){return this.i.add(String(i),c,!1,h,m)},re.prototype.L=function(i,c,h,m){return this.i.add(String(i),c,!0,h,m)};function pe(i,c,h,m){if(c=i.i.g[String(c)],!c)return!0;c=c.concat();for(var C=!0,V=0;V<c.length;++V){var K=c[V];if(K&&!K.da&&K.capture==h){var Re=K.listener,We=K.ha||K.src;K.fa&&y(i.i,K),C=Re.call(We,m)!==!1&&C}}return C&&!m.defaultPrevented}function Ze(i,c,h){if(typeof i=="function")h&&(i=_(i,h));else if(i&&typeof i.handleEvent=="function")i=_(i.handleEvent,i);else throw Error("Invalid listener argument");return 2147483647<Number(c)?-1:l.setTimeout(i,c||0)}function Ke(i){i.g=Ze(()=>{i.g=null,i.i&&(i.i=!1,Ke(i))},i.l);const c=i.h;i.h=null,i.m.apply(null,c)}class xt extends Oe{constructor(c,h){super(),this.m=c,this.l=h,this.h=null,this.i=!1,this.g=null}j(c){this.h=arguments,this.g?this.i=!0:Ke(this)}N(){super.N(),this.g&&(l.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function et(i){Oe.call(this),this.h=i,this.g={}}x(et,Oe);var gn=[];function Lr(i){Z(i.g,function(c,h){this.g.hasOwnProperty(h)&&z(c)},i),i.g={}}et.prototype.N=function(){et.aa.N.call(this),Lr(this)},et.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var Ge=l.JSON.stringify,Dt=l.JSON.parse,Us=class{stringify(i){return l.JSON.stringify(i,void 0)}parse(i){return l.JSON.parse(i,void 0)}};function po(){}po.prototype.h=null;function bl(i){return i.h||(i.h=i.i())}function Il(){}var Fr={OPEN:"a",kb:"b",Ja:"c",wb:"d"};function mo(){Ne.call(this,"d")}x(mo,Ne);function go(){Ne.call(this,"c")}x(go,Ne);var $n={},Al=null;function js(){return Al=Al||new re}$n.La="serverreachability";function Rl(i){Ne.call(this,$n.La,i)}x(Rl,Ne);function $r(i){const c=js();le(c,new Rl(c))}$n.STAT_EVENT="statevent";function Sl(i,c){Ne.call(this,$n.STAT_EVENT,i),this.stat=c}x(Sl,Ne);function ht(i){const c=js();le(c,new Sl(c,i))}$n.Ma="timingevent";function Pl(i,c){Ne.call(this,$n.Ma,i),this.size=c}x(Pl,Ne);function Ur(i,c){if(typeof i!="function")throw Error("Fn must not be null and must be a function");return l.setTimeout(function(){i()},c)}function jr(){this.g=!0}jr.prototype.xa=function(){this.g=!1};function xp(i,c,h,m,C,V){i.info(function(){if(i.g)if(V)for(var K="",Re=V.split("&"),We=0;We<Re.length;We++){var ve=Re[We].split("=");if(1<ve.length){var tt=ve[0];ve=ve[1];var nt=tt.split("_");K=2<=nt.length&&nt[1]=="type"?K+(tt+"="+ve+"&"):K+(tt+"=redacted&")}}else K=null;else K=V;return"XMLHTTP REQ ("+m+") [attempt "+C+"]: "+c+` 397`+h+` 398`+K})}function Dp(i,c,h,m,C,V,K){i.info(function(){return"XMLHTTP RESP ("+m+") [ attempt "+C+"]: "+c+` 399`+h+` 400`+V+" "+K})}function ur(i,c,h,m){i.info(function(){return"XMLHTTP TEXT ("+c+"): "+Op(i,h)+(m?" "+m:"")})}function kp(i,c){i.info(function(){return"TIMEOUT: "+c})}jr.prototype.info=function(){};function Op(i,c){if(!i.g)return c;if(!c)return null;try{var h=JSON.parse(c);if(h){for(i=0;i<h.length;i++)if(Array.isArray(h[i])){var m=h[i];if(!(2>m.length)){var C=m[1];if(Array.isArray(C)&&!(1>C.length)){var V=C[0];if(V!="noop"&&V!="stop"&&V!="close")for(var K=1;K<C.length;K++)C[K]=""}}}}return Ge(h)}catch{return c}}var Bs={NO_ERROR:0,gb:1,tb:2,sb:3,nb:4,rb:5,ub:6,Ia:7,TIMEOUT:8,xb:9},Cl={lb:"complete",Hb:"success",Ja:"error",Ia:"abort",zb:"ready",Ab:"readystatechange",TIMEOUT:"timeout",vb:"incrementaldata",yb:"progress",ob:"downloadprogress",Pb:"uploadprogress"},yo;function zs(){}x(zs,po),zs.prototype.g=function(){return new XMLHttpRequest},zs.prototype.i=function(){return{}},yo=new zs;function yn(i,c,h,m){this.j=i,this.i=c,this.l=h,this.R=m||1,this.U=new et(this),this.I=45e3,this.H=null,this.o=!1,this.m=this.A=this.v=this.L=this.F=this.S=this.B=null,this.D=[],this.g=null,this.C=0,this.s=this.u=null,this.X=-1,this.J=!1,this.O=0,this.M=null,this.W=this.K=this.T=this.P=!1,this.h=new Vl}function Vl(){this.i=null,this.g="",this.h=!1}var xl={},_o={};function vo(i,c,h){i.L=1,i.v=Gs(en(c)),i.m=h,i.P=!0,Dl(i,null)}function Dl(i,c){i.F=Date.now(),Hs(i),i.A=en(i.v);var h=i.A,m=i.R;Array.isArray(m)||(m=[String(m)]),Kl(h.i,"t",m),i.C=0,h=i.j.J,i.h=new Vl,i.g=uc(i.j,h?c:null,!i.m),0<i.O&&(i.M=new xt(_(i.Y,i,i.g),i.O)),c=i.U,h=i.g,m=i.ca;var C="readystatechange";Array.isArray(C)||(C&&(gn[0]=C.toString()),C=gn);for(var V=0;V<C.length;V++){var K=M(h,C[V],m||c.handleEvent,!1,c.h||c);if(!K)break;c.g[K.key]=K}c=i.H?g(i.H):{},i.m?(i.u||(i.u="POST"),c["Content-Type"]="application/x-www-form-urlencoded",i.g.ea(i.A,i.u,i.m,c)):(i.u="GET",i.g.ea(i.A,i.u,null,c)),$r(),xp(i.i,i.u,i.A,i.l,i.R,i.m)}yn.prototype.ca=function(i){i=i.target;const c=this.M;c&&tn(i)==3?c.j():this.Y(i)},yn.prototype.Y=function(i){try{if(i==this.g)e:{const nt=tn(this.g);var c=this.g.Ba();const dr=this.g.Z();if(!(3>nt)&&(nt!=3||this.g&&(this.h.h||this.g.oa()||Zl(this.g)))){this.J||nt!=4||c==7||(c==8||0>=dr?$r(3):$r(2)),Eo(this);var h=this.g.Z();this.X=h;t:if(kl(this)){var m=Zl(this.g);i="";var C=m.length,V=tn(this.g)==4;if(!this.h.i){if(typeof TextDecoder>"u"){Un(this),Br(this);var K="";break t}this.h.i=new l.TextDecoder}for(c=0;c<C;c++)this.h.h=!0,i+=this.h.i.decode(m[c],{stream:!(V&&c==C-1)});m.length=0,this.h.g+=i,this.C=0,K=this.h.g}else K=this.g.oa();if(this.o=h==200,Dp(this.i,this.u,this.A,this.l,this.R,nt,h),this.o){if(this.T&&!this.K){t:{if(this.g){var Re,We=this.g;if((Re=We.g?We.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!H(Re)){var ve=Re;break t}}ve=null}if(h=ve)ur(this.i,this.l,h,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,wo(this,h);else{this.o=!1,this.s=3,ht(12),Un(this),Br(this);break e}}if(this.P){h=!0;let Nt;for(;!this.J&&this.C<K.length;)if(Nt=Np(this,K),Nt==_o){nt==4&&(this.s=4,ht(14),h=!1),ur(this.i,this.l,null,"[Incomplete Response]");break}else if(Nt==xl){this.s=4,ht(15),ur(this.i,this.l,K,"[Invalid Chunk]"),h=!1;break}else ur(this.i,this.l,Nt,null),wo(this,Nt);if(kl(this)&&this.C!=0&&(this.h.g=this.h.g.slice(this.C),this.C=0),nt!=4||K.length!=0||this.h.h||(this.s=1,ht(16),h=!1),this.o=this.o&&h,!h)ur(this.i,this.l,K,"[Invalid Chunked Response]"),Un(this),Br(this);else if(0<K.length&&!this.W){this.W=!0;var tt=this.j;tt.g==this&&tt.ba&&!tt.M&&(tt.j.info("Great, no buffering proxy detected. Bytes received: "+K.length),So(tt),tt.M=!0,ht(11))}}else ur(this.i,this.l,K,null),wo(this,K);nt==4&&Un(this),this.o&&!this.J&&(nt==4?oc(this.j,this):(this.o=!1,Hs(this)))}else Jp(this.g),h==400&&0<K.indexOf("Unknown SID")?(this.s=3,ht(12)):(this.s=0,ht(13)),Un(this),Br(this)}}}catch{}finally{}};function kl(i){return i.g?i.u=="GET"&&i.L!=2&&i.j.Ca:!1}function Np(i,c){var h=i.C,m=c.indexOf(` 401`,h);return m==-1?_o:(h=Number(c.substring(h,m)),isNaN(h)?xl:(m+=1,m+h>c.length?_o:(c=c.slice(m,m+h),i.C=m+h,c)))}yn.prototype.cancel=function(){this.J=!0,Un(this)};function Hs(i){i.S=Date.now()+i.I,Ol(i,i.I)}function Ol(i,c){if(i.B!=null)throw Error("WatchDog timer not null");i.B=Ur(_(i.ba,i),c)}function Eo(i){i.B&&(l.clearTimeout(i.B),i.B=null)}yn.prototype.ba=function(){this.B=null;const i=Date.now();0<=i-this.S?(kp(this.i,this.A),this.L!=2&&($r(),ht(17)),Un(this),this.s=2,Br(this)):Ol(this,this.S-i)};function Br(i){i.j.G==0||i.J||oc(i.j,i)}function Un(i){Eo(i);var c=i.M;c&&typeof c.ma=="function"&&c.ma(),i.M=null,Lr(i.U),i.g&&(c=i.g,i.g=null,c.abort(),c.ma())}function wo(i,c){try{var h=i.j;if(h.G!=0&&(h.g==i||To(h.h,i))){if(!i.K&&To(h.h,i)&&h.G==3){try{var m=h.Da.g.parse(c)}catch{m=null}if(Array.isArray(m)&&m.length==3){var C=m;if(C[0]==0){e:if(!h.u){if(h.g)if(h.g.F+3e3<i.F)Zs(h),Ys(h);else break e;Ro(h),ht(18)}}else h.za=C[1],0<h.za-h.T&&37500>C[2]&&h.F&&h.v==0&&!h.C&&(h.C=Ur(_(h.Za,h),6e3));if(1>=Ll(h.h)&&h.ca){try{h.ca()}catch{}h.ca=void 0}}else Bn(h,11)}else if((i.K||h.g==i)&&Zs(h),!H(c))for(C=h.Da.g.parse(c),c=0;c<C.length;c++){let ve=C[c];if(h.T=ve[0],ve=ve[1],h.G==2)if(ve[0]=="c"){h.K=ve[1],h.ia=ve[2];const tt=ve[3];tt!=null&&(h.la=tt,h.j.info("VER="+h.la));const nt=ve[4];nt!=null&&(h.Aa=nt,h.j.info("SVER="+h.Aa));const dr=ve[5];dr!=null&&typeof dr=="number"&&0<dr&&(m=1.5*dr,h.L=m,h.j.info("backChannelRequestTimeoutMs_="+m)),m=h;const Nt=i.g;if(Nt){const ti=Nt.g?Nt.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(ti){var V=m.h;V.g||ti.indexOf("spdy")==-1&&ti.indexOf("quic")==-1&&ti.indexOf("h2")==-1||(V.j=V.l,V.g=new Set,V.h&&(bo(V,V.h),V.h=null))}if(m.D){const Po=Nt.g?Nt.g.getResponseHeader("X-HTTP-Session-Id"):null;Po&&(m.ya=Po,xe(m.I,m.D,Po))}}h.G=3,h.l&&h.l.ua(),h.ba&&(h.R=Date.now()-i.F,h.j.info("Handshake RTT: "+h.R+"ms")),m=h;var K=i;if(m.qa=cc(m,m.J?m.ia:null,m.W),K.K){Fl(m.h,K);var Re=K,We=m.L;We&&(Re.I=We),Re.B&&(Eo(Re),Hs(Re)),m.g=K}else sc(m);0<h.i.length&&Js(h)}else ve[0]!="stop"&&ve[0]!="close"||Bn(h,7);else h.G==3&&(ve[0]=="stop"||ve[0]=="close"?ve[0]=="stop"?Bn(h,7):Ao(h):ve[0]!="noop"&&h.l&&h.l.ta(ve),h.v=0)}}$r(4)}catch{}}var Mp=class{constructor(i,c){this.g=i,this.map=c}};function Nl(i){this.l=i||10,l.PerformanceNavigationTiming?(i=l.performance.getEntriesByType("navigation"),i=0<i.length&&(i[0].nextHopProtocol=="hq"||i[0].nextHopProtocol=="h2")):i=!!(l.chrome&&l.chrome.loadTimes&&l.chrome.loadTimes()&&l.chrome.loadTimes().wasFetchedViaSpdy),this.j=i?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}function Ml(i){return i.h?!0:i.g?i.g.size>=i.j:!1}function Ll(i){return i.h?1:i.g?i.g.size:0}function To(i,c){return i.h?i.h==c:i.g?i.g.has(c):!1}function bo(i,c){i.g?i.g.add(c):i.h=c}function Fl(i,c){i.h&&i.h==c?i.h=null:i.g&&i.g.has(c)&&i.g.delete(c)}Nl.prototype.cancel=function(){if(this.i=$l(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&this.g.size!==0){for(const i of this.g.values())i.cancel();this.g.clear()}};function $l(i){if(i.h!=null)return i.i.concat(i.h.D);if(i.g!=null&&i.g.size!==0){let c=i.i;for(const h of i.g.values())c=c.concat(h.D);return c}return F(i.i)}function Lp(i){if(i.V&&typeof i.V=="function")return i.V();if(typeof Map<"u"&&i instanceof Map||typeof Set<"u"&&i instanceof Set)return Array.from(i.values());if(typeof i=="string")return i.split("");if(u(i)){for(var c=[],h=i.length,m=0;m<h;m++)c.push(i[m]);return c}c=[],h=0;for(m in i)c[h++]=i[m];return c}function Fp(i){if(i.na&&typeof i.na=="function")return i.na();if(!i.V||typeof i.V!="function"){if(typeof Map<"u"&&i instanceof Map)return Array.from(i.keys());if(!(typeof Set<"u"&&i instanceof Set)){if(u(i)||typeof i=="string"){var c=[];i=i.length;for(var h=0;h<i;h++)c.push(h);return c}c=[],h=0;for(const m in i)c[h++]=m;return c}}}function Ul(i,c){if(i.forEach&&typeof i.forEach=="function")i.forEach(c,void 0);else if(u(i)||typeof i=="string")Array.prototype.forEach.call(i,c,void 0);else for(var h=Fp(i),m=Lp(i),C=m.length,V=0;V<C;V++)c.call(void 0,m[V],h&&h[V],i)}var jl=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function $p(i,c){if(i){i=i.split("&");for(var h=0;h<i.length;h++){var m=i[h].indexOf("="),C=null;if(0<=m){var V=i[h].substring(0,m);C=i[h].substring(m+1)}else V=i[h];c(V,C?decodeURIComponent(C.replace(/\+/g," ")):"")}}}function jn(i){if(this.g=this.o=this.j="",this.s=null,this.m=this.l="",this.h=!1,i instanceof jn){this.h=i.h,qs(this,i.j),this.o=i.o,this.g=i.g,Ks(this,i.s),this.l=i.l;var c=i.i,h=new qr;h.i=c.i,c.g&&(h.g=new Map(c.g),h.h=c.h),Bl(this,h),this.m=i.m}else i&&(c=String(i).match(jl))?(this.h=!1,qs(this,c[1]||"",!0),this.o=zr(c[2]||""),this.g=zr(c[3]||"",!0),Ks(this,c[4]),this.l=zr(c[5]||"",!0),Bl(this,c[6]||"",!0),this.m=zr(c[7]||"")):(this.h=!1,this.i=new qr(null,this.h))}jn.prototype.toString=function(){var i=[],c=this.j;c&&i.push(Hr(c,zl,!0),":");var h=this.g;return(h||c=="file")&&(i.push("//"),(c=this.o)&&i.push(Hr(c,zl,!0),"@"),i.push(encodeURIComponent(String(h)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),h=this.s,h!=null&&i.push(":",String(h))),(h=this.l)&&(this.g&&h.charAt(0)!="/"&&i.push("/"),i.push(Hr(h,h.charAt(0)=="/"?Bp:jp,!0))),(h=this.i.toString())&&i.push("?",h),(h=this.m)&&i.push("#",Hr(h,Hp)),i.join("")};function en(i){return new jn(i)}function qs(i,c,h){i.j=h?zr(c,!0):c,i.j&&(i.j=i.j.replace(/:$/,""))}function Ks(i,c){if(c){if(c=Number(c),isNaN(c)||0>c)throw Error("Bad port number "+c);i.s=c}else i.s=null}function Bl(i,c,h){c instanceof qr?(i.i=c,qp(i.i,i.h)):(h||(c=Hr(c,zp)),i.i=new qr(c,i.h))}function xe(i,c,h){i.i.set(c,h)}function Gs(i){return xe(i,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),i}function zr(i,c){return i?c?decodeURI(i.replace(/%25/g,"%2525")):decodeURIComponent(i):""}function Hr(i,c,h){return typeof i=="string"?(i=encodeURI(i).replace(c,Up),h&&(i=i.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),i):null}function Up(i){return i=i.charCodeAt(0),"%"+(i>>4&15).toString(16)+(i&15).toString(16)}var zl=/[#\/\?@]/g,jp=/[#\?:]/g,Bp=/[#\?]/g,zp=/[#\?@]/g,Hp=/#/g;function qr(i,c){this.h=this.g=null,this.i=i||null,this.j=!!c}function _n(i){i.g||(i.g=new Map,i.h=0,i.i&&$p(i.i,function(c,h){i.add(decodeURIComponent(c.replace(/\+/g," ")),h)}))}t=qr.prototype,t.add=function(i,c){_n(this),this.i=null,i=hr(this,i);var h=this.g.get(i);return h||this.g.set(i,h=[]),h.push(c),this.h+=1,this};function Hl(i,c){_n(i),c=hr(i,c),i.g.has(c)&&(i.i=null,i.h-=i.g.get(c).length,i.g.delete(c))}function ql(i,c){return _n(i),c=hr(i,c),i.g.has(c)}t.forEach=function(i,c){_n(this),this.g.forEach(function(h,m){h.forEach(function(C){i.call(c,C,m,this)},this)},this)},t.na=function(){_n(this);const i=Array.from(this.g.values()),c=Array.from(this.g.keys()),h=[];for(let m=0;m<c.length;m++){const C=i[m];for(let V=0;V<C.length;V++)h.push(c[m])}return h},t.V=function(i){_n(this);let c=[];if(typeof i=="string")ql(this,i)&&(c=c.concat(this.g.get(hr(this,i))));else{i=Array.from(this.g.values());for(let h=0;h<i.length;h++)c=c.concat(i[h])}return c},t.set=function(i,c){return _n(this),this.i=null,i=hr(this,i),ql(this,i)&&(this.h-=this.g.get(i).length),this.g.set(i,[c]),this.h+=1,this},t.get=function(i,c){return i?(i=this.V(i),0<i.length?String(i[0]):c):c};function Kl(i,c,h){Hl(i,c),0<h.length&&(i.i=null,i.g.set(hr(i,c),F(h)),i.h+=h.length)}t.toString=function(){if(this.i)return this.i;if(!this.g)return"";const i=[],c=Array.from(this.g.keys());for(var h=0;h<c.length;h++){var m=c[h];const V=encodeURIComponent(String(m)),K=this.V(m);for(m=0;m<K.length;m++){var C=V;K[m]!==""&&(C+="="+encodeURIComponent(String(K[m]))),i.push(C)}}return this.i=i.join("&")};function hr(i,c){return c=String(c),i.j&&(c=c.toLowerCase()),c}function qp(i,c){c&&!i.j&&(_n(i),i.i=null,i.g.forEach(function(h,m){var C=m.toLowerCase();m!=C&&(Hl(this,m),Kl(this,C,h))},i)),i.j=c}function Kp(i,c){const h=new jr;if(l.Image){const m=new Image;m.onload=b(vn,h,"TestLoadImage: loaded",!0,c,m),m.onerror=b(vn,h,"TestLoadImage: error",!1,c,m),m.onabort=b(vn,h,"TestLoadImage: abort",!1,c,m),m.ontimeout=b(vn,h,"TestLoadImage: timeout",!1,c,m),l.setTimeout(function(){m.ontimeout&&m.ontimeout()},1e4),m.src=i}else c(!1)}function Gp(i,c){const h=new jr,m=new AbortController,C=setTimeout(()=>{m.abort(),vn(h,"TestPingServer: timeout",!1,c)},1e4);fetch(i,{signal:m.signal}).then(V=>{clearTimeout(C),V.ok?vn(h,"TestPingServer: ok",!0,c):vn(h,"TestPingServer: server error",!1,c)}).catch(()=>{clearTimeout(C),vn(h,"TestPingServer: error",!1,c)})}function vn(i,c,h,m,C){try{C&&(C.onload=null,C.onerror=null,C.onabort=null,C.ontimeout=null),m(h)}catch{}}function Wp(){this.g=new Us}function Qp(i,c,h){const m=h||"";try{Ul(i,function(C,V){let K=C;f(C)&&(K=Ge(C)),c.push(m+V+"="+encodeURIComponent(K))})}catch(C){throw c.push(m+"type="+encodeURIComponent("_badmap")),C}}function Ws(i){this.l=i.Ub||null,this.j=i.eb||!1}x(Ws,po),Ws.prototype.g=function(){return new Qs(this.l,this.j)},Ws.prototype.i=function(i){return function(){return i}}({});function Qs(i,c){re.call(this),this.D=i,this.o=c,this.m=void 0,this.status=this.readyState=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.u=new Headers,this.h=null,this.B="GET",this.A="",this.g=!1,this.v=this.j=this.l=null}x(Qs,re),t=Qs.prototype,t.open=function(i,c){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.B=i,this.A=c,this.readyState=1,Gr(this)},t.send=function(i){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.g=!0;const c={headers:this.u,method:this.B,credentials:this.m,cache:void 0};i&&(c.body=i),(this.D||l).fetch(new Request(this.A,c)).then(this.Sa.bind(this),this.ga.bind(this))},t.abort=function(){this.response=this.responseText="",this.u=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted.").catch(()=>{}),1<=this.readyState&&this.g&&this.readyState!=4&&(this.g=!1,Kr(this)),this.readyState=0},t.Sa=function(i){if(this.g&&(this.l=i,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=i.headers,this.readyState=2,Gr(this)),this.g&&(this.readyState=3,Gr(this),this.g)))if(this.responseType==="arraybuffer")i.arrayBuffer().then(this.Qa.bind(this),this.ga.bind(this));else if(typeof l.ReadableStream<"u"&&"body"in i){if(this.j=i.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.v=new TextDecoder;Gl(this)}else i.text().then(this.Ra.bind(this),this.ga.bind(this))};function Gl(i){i.j.read().then(i.Pa.bind(i)).catch(i.ga.bind(i))}t.Pa=function(i){if(this.g){if(this.o&&i.value)this.response.push(i.value);else if(!this.o){var c=i.value?i.value:new Uint8Array(0);(c=this.v.decode(c,{stream:!i.done}))&&(this.response=this.responseText+=c)}i.done?Kr(this):Gr(this),this.readyState==3&&Gl(this)}},t.Ra=function(i){this.g&&(this.response=this.responseText=i,Kr(this))},t.Qa=function(i){this.g&&(this.response=i,Kr(this))},t.ga=function(){this.g&&Kr(this)};function Kr(i){i.readyState=4,i.l=null,i.j=null,i.v=null,Gr(i)}t.setRequestHeader=function(i,c){this.u.append(i,c)},t.getResponseHeader=function(i){return this.h&&this.h.get(i.toLowerCase())||""},t.getAllResponseHeaders=function(){if(!this.h)return"";const i=[],c=this.h.entries();for(var h=c.next();!h.done;)h=h.value,i.push(h[0]+": "+h[1]),h=c.next();return i.join(`\r 402`)};function Gr(i){i.onreadystatechange&&i.onreadystatechange.call(i)}Object.defineProperty(Qs.prototype,"withCredentials",{get:function(){return this.m==="include"},set:function(i){this.m=i?"include":"same-origin"}});function Wl(i){let c="";return Z(i,function(h,m){c+=m,c+=":",c+=h,c+=`\r 403`}),c}function Io(i,c,h){e:{for(m in h){var m=!1;break e}m=!0}m||(h=Wl(h),typeof i=="string"?h!=null&&encodeURIComponent(String(h)):xe(i,c,h))}function Me(i){re.call(this),this.headers=new Map,this.o=i||null,this.h=!1,this.v=this.g=null,this.D="",this.m=0,this.l="",this.j=this.B=this.u=this.A=!1,this.I=null,this.H="",this.J=!1}x(Me,re);var Xp=/^https?$/i,Yp=["POST","PUT"];t=Me.prototype,t.Ha=function(i){this.J=i},t.ea=function(i,c,h,m){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+i);c=c?c.toUpperCase():"GET",this.D=i,this.l="",this.m=0,this.A=!1,this.h=!0,this.g=this.o?this.o.g():yo.g(),this.v=this.o?bl(this.o):bl(yo),this.g.onreadystatechange=_(this.Ea,this);try{this.B=!0,this.g.open(c,String(i),!0),this.B=!1}catch(V){Ql(this,V);return}if(i=h||"",h=new Map(this.headers),m)if(Object.getPrototypeOf(m)===Object.prototype)for(var C in m)h.set(C,m[C]);else if(typeof m.keys=="function"&&typeof m.get=="function")for(const V of m.keys())h.set(V,m.get(V));else throw Error("Unknown input type for opt_headers: "+String(m));m=Array.from(h.keys()).find(V=>V.toLowerCase()=="content-type"),C=l.FormData&&i instanceof l.FormData,!(0<=Array.prototype.indexOf.call(Yp,c,void 0))||m||C||h.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[V,K]of h)this.g.setRequestHeader(V,K);this.H&&(this.g.responseType=this.H),"withCredentials"in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{Jl(this),this.u=!0,this.g.send(i),this.u=!1}catch(V){Ql(this,V)}};function Ql(i,c){i.h=!1,i.g&&(i.j=!0,i.g.abort(),i.j=!1),i.l=c,i.m=5,Xl(i),Xs(i)}function Xl(i){i.A||(i.A=!0,le(i,"complete"),le(i,"error"))}t.abort=function(i){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=i||7,le(this,"complete"),le(this,"abort"),Xs(this))},t.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),Xs(this,!0)),Me.aa.N.call(this)},t.Ea=function(){this.s||(this.B||this.u||this.j?Yl(this):this.bb())},t.bb=function(){Yl(this)};function Yl(i){if(i.h&&typeof a<"u"&&(!i.v[1]||tn(i)!=4||i.Z()!=2)){if(i.u&&tn(i)==4)Ze(i.Ea,0,i);else if(le(i,"readystatechange"),tn(i)==4){i.h=!1;try{const K=i.Z();e:switch(K){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var c=!0;break e;default:c=!1}var h;if(!(h=c)){var m;if(m=K===0){var C=String(i.D).match(jl)[1]||null;!C&&l.self&&l.self.location&&(C=l.self.location.protocol.slice(0,-1)),m=!Xp.test(C?C.toLowerCase():"")}h=m}if(h)le(i,"complete"),le(i,"success");else{i.m=6;try{var V=2<tn(i)?i.g.statusText:""}catch{V=""}i.l=V+" ["+i.Z()+"]",Xl(i)}}finally{Xs(i)}}}}function Xs(i,c){if(i.g){Jl(i);const h=i.g,m=i.v[0]?()=>{}:null;i.g=null,i.v=null,c||le(i,"ready");try{h.onreadystatechange=m}catch{}}}function Jl(i){i.I&&(l.clearTimeout(i.I),i.I=null)}t.isActive=function(){return!!this.g};function tn(i){return i.g?i.g.readyState:0}t.Z=function(){try{return 2<tn(this)?this.g.status:-1}catch{return-1}},t.oa=function(){try{return this.g?this.g.responseText:""}catch{return""}},t.Oa=function(i){if(this.g){var c=this.g.responseText;return i&&c.indexOf(i)==0&&(c=c.substring(i.length)),Dt(c)}};function Zl(i){try{if(!i.g)return null;if("response"in i.g)return i.g.response;switch(i.H){case"":case"text":return i.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in i.g)return i.g.mozResponseArrayBuffer}return null}catch{return null}}function Jp(i){const c={};i=(i.g&&2<=tn(i)&&i.g.getAllResponseHeaders()||"").split(`\r 404`);for(let m=0;m<i.length;m++){if(H(i[m]))continue;var h=A(i[m]);const C=h[0];if(h=h[1],typeof h!="string")continue;h=h.trim();const V=c[C]||[];c[C]=V,V.push(h)}T(c,function(m){return m.join(", ")})}t.Ba=function(){return this.m},t.Ka=function(){return typeof this.l=="string"?this.l:String(this.l)};function Wr(i,c,h){return h&&h.internalChannelParams&&h.internalChannelParams[i]||c}function ec(i){this.Aa=0,this.i=[],this.j=new jr,this.ia=this.qa=this.I=this.W=this.g=this.ya=this.D=this.H=this.m=this.S=this.o=null,this.Ya=this.U=0,this.Va=Wr("failFast",!1,i),this.F=this.C=this.u=this.s=this.l=null,this.X=!0,this.za=this.T=-1,this.Y=this.v=this.B=0,this.Ta=Wr("baseRetryDelayMs",5e3,i),this.cb=Wr("retryDelaySeedMs",1e4,i),this.Wa=Wr("forwardChannelMaxRetries",2,i),this.wa=Wr("forwardChannelRequestTimeoutMs",2e4,i),this.pa=i&&i.xmlHttpFactory||void 0,this.Xa=i&&i.Tb||void 0,this.Ca=i&&i.useFetchStreams||!1,this.L=void 0,this.J=i&&i.supportsCrossDomainXhr||!1,this.K="",this.h=new Nl(i&&i.concurrentRequestLimit),this.Da=new Wp,this.P=i&&i.fastHandshake||!1,this.O=i&&i.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.Ua=i&&i.Rb||!1,i&&i.xa&&this.j.xa(),i&&i.forceLongPolling&&(this.X=!1),this.ba=!this.P&&this.X&&i&&i.detectBufferingProxy||!1,this.ja=void 0,i&&i.longPollingTimeout&&0<i.longPollingTimeout&&(this.ja=i.longPollingTimeout),this.ca=void 0,this.R=0,this.M=!1,this.ka=this.A=null}t=ec.prototype,t.la=8,t.G=1,t.connect=function(i,c,h,m){ht(0),this.W=i,this.H=c||{},h&&m!==void 0&&(this.H.OSID=h,this.H.OAID=m),this.F=this.X,this.I=cc(this,null,this.W),Js(this)};function Ao(i){if(tc(i),i.G==3){var c=i.U++,h=en(i.I);if(xe(h,"SID",i.K),xe(h,"RID",c),xe(h,"TYPE","terminate"),Qr(i,h),c=new yn(i,i.j,c),c.L=2,c.v=Gs(en(h)),h=!1,l.navigator&&l.navigator.sendBeacon)try{h=l.navigator.sendBeacon(c.v.toString(),"")}catch{}!h&&l.Image&&(new Image().src=c.v,h=!0),h||(c.g=uc(c.j,null),c.g.ea(c.v)),c.F=Date.now(),Hs(c)}lc(i)}function Ys(i){i.g&&(So(i),i.g.cancel(),i.g=null)}function tc(i){Ys(i),i.u&&(l.clearTimeout(i.u),i.u=null),Zs(i),i.h.cancel(),i.s&&(typeof i.s=="number"&&l.clearTimeout(i.s),i.s=null)}function Js(i){if(!Ml(i.h)&&!i.s){i.s=!0;var c=i.Ga;de||Ot(),fe||(de(),fe=!0),Tt.add(c,i),i.B=0}}function Zp(i,c){return Ll(i.h)>=i.h.j-(i.s?1:0)?!1:i.s?(i.i=c.D.concat(i.i),!0):i.G==1||i.G==2||i.B>=(i.Va?0:i.Wa)?!1:(i.s=Ur(_(i.Ga,i,c),ac(i,i.B)),i.B++,!0)}t.Ga=function(i){if(this.s)if(this.s=null,this.G==1){if(!i){this.U=Math.floor(1e5*Math.random()),i=this.U++;const C=new yn(this,this.j,i);let V=this.o;if(this.S&&(V?(V=g(V),I(V,this.S)):V=this.S),this.m!==null||this.O||(C.H=V,V=null),this.P)e:{for(var c=0,h=0;h<this.i.length;h++){t:{var m=this.i[h];if("__data__"in m.map&&(m=m.map.__data__,typeof m=="string")){m=m.length;break t}m=void 0}if(m===void 0)break;if(c+=m,4096<c){c=h;break e}if(c===4096||h===this.i.length-1){c=h+1;break e}}c=1e3}else c=1e3;c=rc(this,C,c),h=en(this.I),xe(h,"RID",i),xe(h,"CVER",22),this.D&&xe(h,"X-HTTP-Session-Id",this.D),Qr(this,h),V&&(this.O?c="headers="+encodeURIComponent(String(Wl(V)))+"&"+c:this.m&&Io(h,this.m,V)),bo(this.h,C),this.Ua&&xe(h,"TYPE","init"),this.P?(xe(h,"$req",c),xe(h,"SID","null"),C.T=!0,vo(C,h,null)):vo(C,h,c),this.G=2}}else this.G==3&&(i?nc(this,i):this.i.length==0||Ml(this.h)||nc(this))};function nc(i,c){var h;c?h=c.l:h=i.U++;const m=en(i.I);xe(m,"SID",i.K),xe(m,"RID",h),xe(m,"AID",i.T),Qr(i,m),i.m&&i.o&&Io(m,i.m,i.o),h=new yn(i,i.j,h,i.B+1),i.m===null&&(h.H=i.o),c&&(i.i=c.D.concat(i.i)),c=rc(i,h,1e3),h.I=Math.round(.5*i.wa)+Math.round(.5*i.wa*Math.random()),bo(i.h,h),vo(h,m,c)}function Qr(i,c){i.H&&Z(i.H,function(h,m){xe(c,m,h)}),i.l&&Ul({},function(h,m){xe(c,m,h)})}function rc(i,c,h){h=Math.min(i.i.length,h);var m=i.l?_(i.l.Na,i.l,i):null;e:{var C=i.i;let V=-1;for(;;){const K=["count="+h];V==-1?0<h?(V=C[0].g,K.push("ofs="+V)):V=0:K.push("ofs="+V);let Re=!0;for(let We=0;We<h;We++){let ve=C[We].g;const tt=C[We].map;if(ve-=V,0>ve)V=Math.max(0,C[We].g-100),Re=!1;else try{Qp(tt,K,"req"+ve+"_")}catch{m&&m(tt)}}if(Re){m=K.join("&");break e}}}return i=i.i.splice(0,h),c.D=i,m}function sc(i){if(!i.g&&!i.u){i.Y=1;var c=i.Fa;de||Ot(),fe||(de(),fe=!0),Tt.add(c,i),i.v=0}}function Ro(i){return i.g||i.u||3<=i.v?!1:(i.Y++,i.u=Ur(_(i.Fa,i),ac(i,i.v)),i.v++,!0)}t.Fa=function(){if(this.u=null,ic(this),this.ba&&!(this.M||this.g==null||0>=this.R)){var i=2*this.R;this.j.info("BP detection timer enabled: "+i),this.A=Ur(_(this.ab,this),i)}},t.ab=function(){this.A&&(this.A=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.M=!0,ht(10),Ys(this),ic(this))};function So(i){i.A!=null&&(l.clearTimeout(i.A),i.A=null)}function ic(i){i.g=new yn(i,i.j,"rpc",i.Y),i.m===null&&(i.g.H=i.o),i.g.O=0;var c=en(i.qa);xe(c,"RID","rpc"),xe(c,"SID",i.K),xe(c,"AID",i.T),xe(c,"CI",i.F?"0":"1"),!i.F&&i.ja&&xe(c,"TO",i.ja),xe(c,"TYPE","xmlhttp"),Qr(i,c),i.m&&i.o&&Io(c,i.m,i.o),i.L&&(i.g.I=i.L);var h=i.g;i=i.ia,h.L=1,h.v=Gs(en(c)),h.m=null,h.P=!0,Dl(h,i)}t.Za=function(){this.C!=null&&(this.C=null,Ys(this),Ro(this),ht(19))};function Zs(i){i.C!=null&&(l.clearTimeout(i.C),i.C=null)}function oc(i,c){var h=null;if(i.g==c){Zs(i),So(i),i.g=null;var m=2}else if(To(i.h,c))h=c.D,Fl(i.h,c),m=1;else return;if(i.G!=0){if(c.o)if(m==1){h=c.m?c.m.length:0,c=Date.now()-c.F;var C=i.B;m=js(),le(m,new Pl(m,h)),Js(i)}else sc(i);else if(C=c.s,C==3||C==0&&0<c.X||!(m==1&&Zp(i,c)||m==2&&Ro(i)))switch(h&&0<h.length&&(c=i.h,c.i=c.i.concat(h)),C){case 1:Bn(i,5);break;case 4:Bn(i,10);break;case 3:Bn(i,6);break;default:Bn(i,2)}}}function ac(i,c){let h=i.Ta+Math.floor(Math.random()*i.cb);return i.isActive()||(h*=2),h*c}function Bn(i,c){if(i.j.info("Error code "+c),c==2){var h=_(i.fb,i),m=i.Xa;const C=!m;m=new jn(m||"//www.google.com/images/cleardot.gif"),l.location&&l.location.protocol=="http"||qs(m,"https"),Gs(m),C?Kp(m.toString(),h):Gp(m.toString(),h)}else ht(2);i.G=0,i.l&&i.l.sa(c),lc(i),tc(i)}t.fb=function(i){i?(this.j.info("Successfully pinged google.com"),ht(2)):(this.j.info("Failed to ping google.com"),ht(1))};function lc(i){if(i.G=0,i.ka=[],i.l){const c=$l(i.h);(c.length!=0||i.i.length!=0)&&(j(i.ka,c),j(i.ka,i.i),i.h.i.length=0,F(i.i),i.i.length=0),i.l.ra()}}function cc(i,c,h){var m=h instanceof jn?en(h):new jn(h);if(m.g!="")c&&(m.g=c+"."+m.g),Ks(m,m.s);else{var C=l.location;m=C.protocol,c=c?c+"."+C.hostname:C.hostname,C=+C.port;var V=new jn(null);m&&qs(V,m),c&&(V.g=c),C&&Ks(V,C),h&&(V.l=h),m=V}return h=i.D,c=i.ya,h&&c&&xe(m,h,c),xe(m,"VER",i.la),Qr(i,m),m}function uc(i,c,h){if(c&&!i.J)throw Error("Can't create secondary domain capable XhrIo object.");return c=i.Ca&&!i.pa?new Me(new Ws({eb:h})):new Me(i.pa),c.Ha(i.J),c}t.isActive=function(){return!!this.l&&this.l.isActive(this)};function hc(){}t=hc.prototype,t.ua=function(){},t.ta=function(){},t.sa=function(){},t.ra=function(){},t.isActive=function(){return!0},t.Na=function(){};function ei(){}ei.prototype.g=function(i,c){return new bt(i,c)};function bt(i,c){re.call(this),this.g=new ec(c),this.l=i,this.h=c&&c.messageUrlParams||null,i=c&&c.messageHeaders||null,c&&c.clientProtocolHeaderRequired&&(i?i["X-Client-Protocol"]="webchannel":i={"X-Client-Protocol":"webchannel"}),this.g.o=i,i=c&&c.initMessageHeaders||null,c&&c.messageContentType&&(i?i["X-WebChannel-Content-Type"]=c.messageContentType:i={"X-WebChannel-Content-Type":c.messageContentType}),c&&c.va&&(i?i["X-WebChannel-Client-Profile"]=c.va:i={"X-WebChannel-Client-Profile":c.va}),this.g.S=i,(i=c&&c.Sb)&&!H(i)&&(this.g.m=i),this.v=c&&c.supportsCrossDomainXhr||!1,this.u=c&&c.sendRawJson||!1,(c=c&&c.httpSessionIdParam)&&!H(c)&&(this.g.D=c,i=this.h,i!==null&&c in i&&(i=this.h,c in i&&delete i[c])),this.j=new fr(this)}x(bt,re),bt.prototype.m=function(){this.g.l=this.j,this.v&&(this.g.J=!0),this.g.connect(this.l,this.h||void 0)},bt.prototype.close=function(){Ao(this.g)},bt.prototype.o=function(i){var c=this.g;if(typeof i=="string"){var h={};h.__data__=i,i=h}else this.u&&(h={},h.__data__=Ge(i),i=h);c.i.push(new Mp(c.Ya++,i)),c.G==3&&Js(c)},bt.prototype.N=function(){this.g.l=null,delete this.j,Ao(this.g),delete this.g,bt.aa.N.call(this)};function fc(i){mo.call(this),i.__headers__&&(this.headers=i.__headers__,this.statusCode=i.__status__,delete i.__headers__,delete i.__status__);var c=i.__sm__;if(c){e:{for(const h in c){i=h;break e}i=void 0}(this.i=i)&&(i=this.i,c=c!==null&&i in c?c[i]:void 0),this.data=c}else this.data=i}x(fc,mo);function dc(){go.call(this),this.status=1}x(dc,go);function fr(i){this.g=i}x(fr,hc),fr.prototype.ua=function(){le(this.g,"a")},fr.prototype.ta=function(i){le(this.g,new fc(i))},fr.prototype.sa=function(i){le(this.g,new dc)},fr.prototype.ra=function(){le(this.g,"b")},ei.prototype.createWebChannel=ei.prototype.g,bt.prototype.send=bt.prototype.o,bt.prototype.open=bt.prototype.m,bt.prototype.close=bt.prototype.close,td=function(){return new ei},ed=function(){return js()},Zf=$n,_a={mb:0,pb:1,qb:2,Jb:3,Ob:4,Lb:5,Mb:6,Kb:7,Ib:8,Nb:9,PROXY:10,NOPROXY:11,Gb:12,Cb:13,Db:14,Bb:15,Eb:16,Fb:17,ib:18,hb:19,jb:20},Bs.NO_ERROR=0,Bs.TIMEOUT=8,Bs.HTTP_ERROR=6,gi=Bs,Cl.COMPLETE="complete",Jf=Cl,Il.EventType=Fr,Fr.OPEN="a",Fr.CLOSE="b",Fr.ERROR="c",Fr.MESSAGE="d",re.prototype.listen=re.prototype.K,rs=Il,Me.prototype.listenOnce=Me.prototype.L,Me.prototype.getLastError=Me.prototype.Ka,Me.prototype.getLastErrorCode=Me.prototype.Ba,Me.prototype.getStatus=Me.prototype.Z,Me.prototype.getResponseJson=Me.prototype.Oa,Me.prototype.getResponseText=Me.prototype.oa,Me.prototype.send=Me.prototype.ea,Me.prototype.setWithCredentials=Me.prototype.Ha,Yf=Me}).apply(typeof ii<"u"?ii:typeof self<"u"?self:typeof window<"u"?window:{});const yu="@firebase/firestore",_u="4.7.9";/** 405 * @license 406 * Copyright 2017 Google LLC 407 * 408 * Licensed under the Apache License, Version 2.0 (the "License");
409 * you may not use this file except in compliance with the License. 410 * You may obtain a copy of the License at 411 * 412 * http://www.apache.org/licenses/LICENSE-2.0 413 * 414 * Unless required by applicable law or agreed to in writing, software 415 * distributed under the License is distributed on an "AS IS" BASIS, 416 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 417 * See the License for the specific language governing permissions and 418 * limitations under the License. 419 */class st{constructor(e){this.uid=e}isAuthenticated(){return this.uid!=null}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(e){return e.uid===this.uid}}st.UNAUTHENTICATED=new st(null),st.GOOGLE_CREDENTIALS=new st("google-credentials-uid"),st.FIRST_PARTY=new st("first-party-uid"),st.MOCK_USER=new st("mock-user");/** 420 * @license 421 * Copyright 2017 Google LLC 422 * 423 * Licensed under the Apache License, Version 2.0 (the "License"); 424 * you may not use this file except in compliance with the License. 425 * You may obtain a copy of the License at 426 * 427 * http://www.apache.org/licenses/LICENSE-2.0 428 * 429 * Unless required by applicable law or agreed to in writing, software 430 * distributed under the License is distributed on an "AS IS" BASIS, 431 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 432 * See the License for the specific language governing permissions and 433 * limitations under the License. 434 */let Nr="11.4.0";/** 435 * @license 436 * Copyright 2017 Google LLC 437 * 438 * Licensed under the Apache License, Version 2.0 (the "License"); 439 * you may not use this file except in compliance with the License. 440 * You may obtain a copy of the License at 441 * 442 * http://www.apache.org/licenses/LICENSE-2.0 443 * 444 * Unless required by applicable law or agreed to in writing, software 445 * distributed under the License is distributed on an "AS IS" BASIS, 446 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 447 * See the License for the specific language governing permissions and 448 * limitations under the License. 449 */const er=new Qa("@firebase/firestore");function yr(){return er.logLevel}function ee(t,...e){if(er.logLevel<=ge.DEBUG){const n=e.map(Ja);er.debug(`Firestore (${Nr}): ${t}`,...n)}}function tr(t,...e){if(er.logLevel<=ge.ERROR){const n=e.map(Ja);er.error(`Firestore (${Nr}): ${t}`,...n)}}function no(t,...e){if(er.logLevel<=ge.WARN){const n=e.map(Ja);er.warn(`Firestore (${Nr}): ${t}`,...n)}}function Ja(t){if(typeof t=="string")return t;try{/** 450* @license 451* Copyright 2020 Google LLC 452* 453* Licensed under the Apache License, Version 2.0 (the "License"); 454* you may not use this file except in compliance with the License. 455* You may obtain a copy of the License at 456* 457* http://www.apache.org/licenses/LICENSE-2.0 458* 459* Unless required by applicable law or agreed to in writing, software 460* distributed under the License is distributed on an "AS IS" BASIS, 461* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 462* See the License for the specific language governing permissions and 463* limitations under the License. 464*/return function(n){return JSON.stringify(n)}(t)}catch{return t}}/** 465 * @license 466 * Copyright 2017 Google LLC 467 * 468 * Licensed under the Apache License, Version 2.0 (the "License"); 469 * you may not use this file except in compliance with the License. 470 * You may obtain a copy of the License at 471 * 472 * http://www.apache.org/licenses/LICENSE-2.0 473 * 474 * Unless required by applicable law or agreed to in writing, software 475 * distributed under the License is distributed on an "AS IS" BASIS, 476 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 477 * See the License for the specific language governing permissions and 478 * limitations under the License. 479 */function he(t="Unexpected state"){const e=`FIRESTORE (${Nr}) INTERNAL ASSERTION FAILED: `+t;throw tr(e),new Error(e)}function Fe(t,e){t||he()}function Ve(t,e){return t}/** 480 * @license 481 * Copyright 2017 Google LLC 482 * 483 * Licensed under the Apache License, Version 2.0 (the "License"); 484 * you may not use this file except in compliance with the License. 485 * You may obtain a copy of the License at 486 * 487 * http://www.apache.org/licenses/LICENSE-2.0 488 * 489 * Unless required by applicable law or agreed to in writing, softw
489are 490 * distributed under the License is distributed on an "AS IS" BASIS, 491 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 492 * See the License for the specific language governing permissions and 493 * limitations under the License. 494 */const U={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class ie extends Fn{constructor(e,n){super(e,n),this.code=e,this.message=n,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}/** 495 * @license 496 * Copyright 2017 Google LLC 497 * 498 * Licensed under the Apache License, Version 2.0 (the "License"); 499 * you may not use this file except in compliance with the License. 500 * You may obtain a copy of the License at 501 * 502 * http://www.apache.org/licenses/LICENSE-2.0 503 * 504 * Unless required by applicable law or agreed to in writing, software 505 * distributed under the License is distributed on an "AS IS" BASIS, 506 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 507 * See the License for the specific language governing permissions and 508 * limitations under the License. 509 */class Xn{constructor(){this.promise=new Promise((e,n)=>{this.resolve=e,this.reject=n})}}/** 510 * @license 511 * Copyright 2017 Google LLC 512 * 513 * Licensed under the Apache License, Version 2.0 (the "License"); 514 * you may not use this file except in compliance with the License. 515 * You may obtain a copy of the License at 516 * 517 * http://www.apache.org/licenses/LICENSE-2.0 518 * 519 * Unless required by applicable law or agreed to in writing, software 520 * distributed under the License is distributed on an "AS IS" BASIS, 521 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 522 * See the License for the specific language governing permissions and 523 * limitations under the License. 524 */class nd{constructor(e,n){this.user=n,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${e}`)}}class Zv{getToken(){return Promise.resolve(null)}invalidateToken(){}start(e,n){e.enqueueRetryable(()=>n(st.UNAUTHENTICATED))}shutdown(){}}class e0{constructor(e){this.token=e,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(e,n){this.changeListener=n,e.enqueueRetryable(()=>n(this.token.user))}shutdown(){this.changeListener=null}}class t0{constructor(e){this.t=e,this.currentUser=st.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(e,n){Fe(this.o===void 0);let r=this.i;const s=u=>this.i!==r?(r=this.i,n(u)):Promise.resolve();let o=new Xn;this.o=()=>{this.i++,this.currentUser=this.u(),o.resolve(),o=new Xn,e.enqueueRetryable(()=>s(this.currentUser))};const a=()=>{const u=o;e.enqueueRetryable(async()=>{await u.promise,await s(this.currentUser)})},l=u=>{ee("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=u,this.o&&(this.auth.addAuthTokenListener(this.o),a())};this.t.onInit(u=>l(u)),setTimeout(()=>{if(!this.auth){const u=this.t.getImmediate({optional:!0});u?l(u):(ee("FirebaseAuthCredentialsProvider","Auth not yet detected"),o.resolve(),o=new Xn)}},0),a()}getToken(){const e=this.i,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then(r=>this.i!==e?(ee("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):r?(Fe(typeof r.accessToken=="string"),new nd(r.accessToken,this.currentUser)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.o&&this.auth.removeAuthTokenListener(this.o),this.o=void 0}u(){const e=this.auth&&this.auth.getUid();return Fe(e===null||typeof e=="string"),new st(e)}}class n0{constructor(e,n,r){this.l=e,this.h=n,this.P=r,this.type="FirstParty",this.user=st.FIRST_PARTY,this.T=new Map}I(){return this.P?this.P():null}get headers(){this.T.set("X-Goog-AuthUser",this.l);const e=this.I();return e&&this.T.set("Authorization",e),this.h&&this.T.set("X-Goog-Iam-Authorization-Token",this.h),this.T}}class r0{constructor(e,n,r){this.l=e,this.h=n,this.P=r}getToken(){return Promise.resolve(new n0(this.l,this.h,this.P))}start(e,n){e.enqueueRetryable(()=>n(st.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class vu{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 s0{constructor(e,n){this.A=n,this.forceRefresh=!1,this.appCheck=null,this.R=null,this.V=null,Lv(e)&&e.settings.appCheckToken&&(this.V=e.settings.appCheckToken)}start(e,n){Fe(this.o===void 0);const r=o=>{o.error!=null&&ee("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${o.error.message}`);const a=o.token!==this.R;return this.R=o.token,ee("FirebaseAppCheckTokenProvider",`Received ${a?"new":"existing"} token.`),a?n(o.token):Promise.resolve()};this.o=o=>{e.enqueueRetryable(()=>r(o))};const s=o=>{ee("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=o,this.o&&this.appCheck.addTokenListener(this.o)};this.A.onInit(o=>s(o)),setTimeout(()=>{if(!this.appCheck){const o=this.A.getImmediate({optional:!0});o?s(o):ee("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){if(this.V)return Promise.resolve(new vu(this.V));const e=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(e).then(n=>n?(Fe(typeof n.token=="string"),this.R=n.token,new vu(n.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.o&&this.appCheck.removeTokenListener(this.o),this.o=void 0}}/** 525 * @license 526 * Copyright 2020 Google LLC 527 * 528 * Licensed under the Apache License, Version 2.0 (the "License");
529 * you may not use this file except in compliance with the License. 530 * You may obtain a copy of the License at 531 * 532 * http://www.apache.org/licenses/LICENSE-2.0 533 * 534 * Unless required by applicable law or agreed to in writing, software 535 * distributed under the License is distributed on an "AS IS" BASIS, 536 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 537 * See the License for the specific language governing permissions and 538 * limitations under the License. 539 */function i0(t){const e=typeof self<"u"&&(self.crypto||self.msCrypto),n=new Uint8Array(t);if(e&&typeof e.getRandomValues=="function")e.getRandomValues(n);else for(let r=0;r<t;r++)n[r]=Math.floor(256*Math.random());return n}/** 540 * @license 541 * Copyright 2017 Google LLC 542 * 543 * Licensed under the Apache License, Version 2.0 (the "License"); 544 * you may not use this file except in compliance with the License. 545 * You may obtain a copy of the License at 546 * 547 * http://www.apache.org/licenses/LICENSE-2.0 548 * 549 * Unless required by applicable law or agreed to in writing, software 550 * distributed under the License is distributed on an "AS IS" BASIS, 551 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 552 * See the License for the specific language governing permissions and 553 * limitations under the License. 554 */class rd{static newId(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=62*Math.floor(4.129032258064516);let r="";for(;r.length<20;){const s=i0(40);for(let o=0;o<s.length;++o)r.length<20&&s[o]<n&&(r+=e.charAt(s[o]%62))}return r}}function Ae(t,e){return t<e?-1:t>e?1:0}function Vr(t,e,n){return t.length===e.length&&t.every((r,s)=>n(r,e[s]))}/** 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 */const Eu=-62135596800,wu=1e6;class qe{static now(){return qe.fromMillis(Date.now())}static fromDate(e){return qe.fromMillis(e.getTime())}static fromMillis(e){const n=Math.floor(e/1e3),r=Math.floor((e-1e3*n)*wu);return new qe(n,r)}constructor(e,n){if(this.seconds=e,this.nanoseconds=n,n<0)throw new ie(U.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+n);if(n>=1e9)throw new ie(U.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+n);if(e<Eu)throw new ie(U.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new ie(U.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/wu}_compareTo(e){return this.seconds===e.seconds?Ae(this.nanoseconds,e.nanoseconds):Ae(this.seconds,e.seconds)}isEqual(e){return e.seconds===this.seconds&&e.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}}valueOf(){const e=this.seconds-Eu;return String(e).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}}/** 570 * @license 571 * Copyright 2017 Google LLC 572 * 573 * Licensed under the Apache License, Version 2.0 (the "License"); 574 * you may not use this file except in compliance with the License. 575 * You may obtain a copy of the License at 576 * 577 * http://www.apache.org/licenses/LICENSE-2.0 578 * 579 * Unless required by applicable law or agreed to in writing, software 580 * distributed under the License is distributed on an "AS IS" BASIS, 581 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 582 * See the License for the specific language governing permissions and 583 * limitations under the License. 584 */class De{static fromTimestamp(e){return new De(e)}static min(){return new De(new qe(0,0))}static max(){return new De(new qe(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}}/** 585 * @license 586 * Copyright 2017 Google LLC 587 * 588 * Licensed under the Apache License, Version 2.0 (the "License");
589 * you may not use this file except in compliance with the License. 590 * You may obtain a copy of the License at 591 * 592 * http://www.apache.org/licenses/LICENSE-2.0 593 * 594 * Unless required by applicable law or agreed to in writing, software 595 * distributed under the License is distributed on an "AS IS" BASIS, 596 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 597 * See the License for the specific language governing permissions and 598 * limitations under the License. 599 */const Tu="__name__";class Gt{constructor(e,n,r){n===void 0?n=0:n>e.length&&he(),r===void 0?r=e.length-n:r>e.length-n&&he(),this.segments=e,this.offset=n,this.len=r}get length(){return this.len}isEqual(e){return Gt.comparator(this,e)===0}child(e){const n=this.segments.slice(this.offset,this.limit());return e instanceof Gt?e.forEach(r=>{n.push(r)}):n.push(e),this.construct(n)}limit(){return this.offset+this.length}popFirst(e){return e=e===void 0?1:e,this.construct(this.segments,this.offset+e,this.length-e)}popLast(){return this.construct(this.segments,this.offset,this.length-1)}firstSegment(){return this.segments[this.offset]}lastSegment(){return this.get(this.length-1)}get(e){return this.segments[this.offset+e]}isEmpty(){return this.length===0}isPrefixOf(e){if(e.length<this.length)return!1;for(let n=0;n<this.length;n++)if(this.get(n)!==e.get(n))return!1;return!0}isImmediateParentOf(e){if(this.length+1!==e.length)return!1;for(let n=0;n<this.length;n++)if(this.get(n)!==e.get(n))return!1;return!0}forEach(e){for(let n=this.offset,r=this.limit();n<r;n++)e(this.segments[n])}toArray(){return this.segments.slice(this.offset,this.limit())}static comparator(e,n){const r=Math.min(e.length,n.length);for(let s=0;s<r;s++){const o=Gt.compareSegments(e.get(s),n.get(s));if(o!==0)return o}return Math.sign(e.length-n.length)}static compareSegments(e,n){const r=Gt.isNumericId(e),s=Gt.isNumericId(n);return r&&!s?-1:!r&&s?1:r&&s?Gt.extractNumericId(e).compare(Gt.extractNumericId(n)):e<n?-1:e>n?1:0}static isNumericId(e){return e.startsWith("__id")&&e.endsWith("__")}static extractNumericId(e){return Ya.fromString(e.substring(4,e.length-2))}}class Le extends Gt{construct(e,n,r){return new Le(e,n,r)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(...e){const n=[];for(const r of e){if(r.indexOf("//")>=0)throw new ie(U.INVALID_ARGUMENT,`Invalid segment (${r}). Paths must not contain // in them.`);n.push(...r.split("/").filter(s=>s.length>0))}return new Le(n)}static emptyPath(){return new Le([])}}const o0=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class Ye extends Gt{construct(e,n,r){return new Ye(e,n,r)}static isValidIdentifier(e){return o0.test(e)}canonicalString(){return this.toArray().map(e=>(e=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),Ye.isValidIdentifier(e)||(e="`"+e+"`"),e)).join(".")}toString(){return this.canonicalString()}isKeyField(){return this.length===1&&this.get(0)===Tu}static keyField(){return new Ye([Tu])}static fromServerFormat(e){const n=[];let r="",s=0;const o=()=>{if(r.length===0)throw new ie(U.INVALID_ARGUMENT,`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);n.push(r),r=""};let a=!1;for(;s<e.length;){const l=e[s];if(l==="\\"){if(s+1===e.length)throw new ie(U.INVALID_ARGUMENT,"Path has trailing escape character: "+e);const u=e[s+1];if(u!=="\\"&&u!=="."&&u!=="`")throw new ie(U.INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);r+=u,s+=2}else l==="`"?(a=!a,s++):l!=="."||a?(r+=l,s++):(o(),s++)}if(o(),a)throw new ie(U.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new Ye(n)}static emptyPath(){return new Ye([])}}/** 600 * @license 601 * Copyright 2017 Google LLC 602 * 603 * Licensed under the Apache License, Version 2.0 (the "License"); 604 * you may not use this file except in compliance with the License. 605 * You may obtain a copy of the License at 606 * 607 * http://www.apache.org/licenses/LICENSE-2.0 608 * 609 * Unless required by applicable law or agreed to in writing, software 610 * distributed under the License is distributed on an "AS IS" BASIS, 611 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 612 * See the License for the specific language governing permissions and 613 * limitations under the License. 614 */class ue{constructor(e){this.path=e}static fromPath(e){return new ue(Le.fromString(e))}static fromName(e){return new ue(Le.fromString(e).popFirst(5))}static empty(){return new ue(Le.emptyPath())}get collectionGroup(){return this.path.popLast().lastSegment()}hasCollectionId(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(e){return e!==null&&Le.comparator(this.path,e.path)===0}toString(){return this.path.toString()}static comparator(e,n){return Le.comparator(e.path,n.path)}static isDocumentKey(e){return e.length%2==0}static fromSegments(e){return new ue(new Le(e.slice()))}}/** 615 * @license 616 * Copyright 2021 Google LLC 617 * 618 * Licensed under the Apache License, Version 2.0 (the "License");
619 * you may not use this file except in compliance with the License. 620 * You may obtain a copy of the License at 621 * 622 * http://www.apache.org/licenses/LICENSE-2.0 623 * 624 * Unless required by applicable law or agreed to in writing, software 625 * distributed under the License is distributed on an "AS IS" BASIS, 626 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 627 * See the License for the specific language governing permissions and 628 * limitations under the License. 629 */const Rs=-1;function a0(t,e){const n=t.toTimestamp().seconds,r=t.toTimestamp().nanoseconds+1,s=De.fromTimestamp(r===1e9?new qe(n+1,0):new qe(n,r));return new Dn(s,ue.empty(),e)}function l0(t){return new Dn(t.readTime,t.key,Rs)}class Dn{constructor(e,n,r){this.readTime=e,this.documentKey=n,this.largestBatchId=r}static min(){return new Dn(De.min(),ue.empty(),Rs)}static max(){return new Dn(De.max(),ue.empty(),Rs)}}function c0(t,e){let n=t.readTime.compareTo(e.readTime);return n!==0?n:(n=ue.comparator(t.documentKey,e.documentKey),n!==0?n:Ae(t.largestBatchId,e.largestBatchId))}/** 630 * @license 631 * Copyright 2020 Google LLC 632 * 633 * Licensed under the Apache License, Version 2.0 (the "License"); 634 * you may not use this file except in compliance with the License. 635 * You may obtain a copy of the License at 636 * 637 * http://www.apache.org/licenses/LICENSE-2.0 638 * 639 * Unless required by applicable law or agreed to in writing, software 640 * distributed under the License is distributed on an "AS IS" BASIS, 641 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 642 * See the License for the specific language governing permissions and 643 * limitations under the License. 644 */const u0="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class h0{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(e){this.onCommittedListeners.push(e)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(e=>e())}}/** 645 * @license 646 * Copyright 2017 Google LLC 647 * 648 * Licensed under the Apache License, Version 2.0 (the "License"); 649 * you may not use this file except in compliance with the License. 650 * You may obtain a copy of the License at 651 * 652 * http://www.apache.org/licenses/LICENSE-2.0 653 * 654 * Unless required by applicable law or agreed to in writing, software 655 * distributed under the License is distributed on an "AS IS" BASIS, 656 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 657 * See the License for the specific language governing permissions and 658 * limitations under the License. 659 */async function Za(t){if(t.code!==U.FAILED_PRECONDITION||t.message!==u0)throw t;ee("LocalStore","Unexpectedly lost primary lease")}/** 660 * @license 661 * Copyright 2017 Google LLC 662 * 663 * Licensed under the Apache License, Version 2.0 (the "License"); 664 * you may not use this file except in compliance with the License. 665 * You may obtain a copy of the License at 666 * 667 * http://www.apache.org/licenses/LICENSE-2.0 668 * 669 * Unless required by applicable law or agreed to in writing, software 670 * distributed under the License is distributed on an "AS IS" BASIS, 671 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 672 * See the License for the specific language governing permissions and 673 * limitations under the License. 674 */class L{constructor(e){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,e(n=>{this.isDone=!0,this.result=n,this.nextCallback&&this.nextCallback(n)},n=>{this.isDone=!0,this.error=n,this.catchCallback&&this.catchCallback(n)})}catch(e){return this.next(void 0,e)}next(e,n){return this.callbackAttached&&he(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(n,this.error):this.wrapSuccess(e,this.result):new L((r,s)=>{this.nextCallback=o=>{this.wrapSuccess(e,o).next(r,s)},this.catchCallback=o=>{this.wrapFailure(n,o).next(r,s)}})}toPromise(){return new Promise((e,n)=>{this.next(e,n)})}wrapUserFunction(e){try{const n=e();return n instanceof L?n:L.resolve(n)}catch(n){return L.reject(n)}}wrapSuccess(e,n){return e?this.wrapUserFunction(()=>e(n)):L.resolve(n)}wrapFailure(e,n){return e?this.wrapUserFunction(()=>e(n)):L.reject(n)}static resolve(e){return new L((n,r)=>{n(e)})}static reject(e){return new L((n,r)=>{r(e)})}static waitFor(e){return new L((n,r)=>{let s=0,o=0,a=!1;e.forEach(l=>{++s,l.next(()=>{++o,a&&o===s&&n()},u=>r(u))}),a=!0,o===s&&n()})}static or(e){let n=L.resolve(!1);for(const r of e)n=n.next(s=>s?L.resolve(s):r());return n}static forEach(e,n){const r=[];return e.forEach((s,o)=>{r.push(n.call(this,s,o))}),this.waitFor(r)}static mapArray(e,n){return new L((r,s)=>{const o=e.length,a=new Array(o);let l=0;for(let u=0;u<o;u++){const f=u;n(e[f]).next(d=>{a[f]=d,++l,l===o&&r(a)},d=>s(d))}})}static doWhile(e,n){return new L((r,s)=>{const o=()=>{e()===!0?n().next(()=>{o()},s):r()};o()})}}function f0(t){const e=t.match(/Android ([\d.]+)/i),n=e?e[1].split(".").slice(0,2).join("."):"-1";return Number(n)}function Ns(t){return t.name==="IndexedDbTransactionError"}/** 675 * @license 676 * Copyright 2018 Google LLC 677 * 678 * Licensed under the Apache License, Version 2.0 (the "License");
679 * you may not use this file except in compliance with the License. 680 * You may obtain a copy of the License at 681 * 682 * http://www.apache.org/licenses/LICENSE-2.0 683 * 684 * Unless required by applicable law or agreed to in writing, software 685 * distributed under the License is distributed on an "AS IS" BASIS, 686 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 687 * See the License for the specific language governing permissions and 688 * limitations under the License. 689 */class el{constructor(e,n){this.previousValue=e,n&&(n.sequenceNumberHandler=r=>this.oe(r),this._e=r=>n.writeSequenceNumber(r))}oe(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue}next(){const e=++this.previousValue;return this._e&&this._e(e),e}}el.ae=-1;/** 690 * @license 691 * Copyright 2017 Google LLC 692 * 693 * Licensed under the Apache License, Version 2.0 (the "License"); 694 * you may not use this file except in compliance with the License. 695 * You may obtain a copy of the License at 696 * 697 * http://www.apache.org/licenses/LICENSE-2.0 698 * 699 * Unless required by applicable law or agreed to in writing, software 700 * distributed under the License is distributed on an "AS IS" BASIS, 701 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 702 * See the License for the specific language governing permissions and 703 * limitations under the License. 704 */const tl=-1;function nl(t){return t==null}function Ci(t){return t===0&&1/t==-1/0}function d0(t){return typeof t=="number"&&Number.isInteger(t)&&!Ci(t)&&t<=Number.MAX_SAFE_INTEGER&&t>=Number.MIN_SAFE_INTEGER}/** 705 * @license 706 * Copyright 2017 Google LLC 707 * 708 * Licensed under the Apache License, Version 2.0 (the "License"); 709 * you may not use this file except in compliance with the License. 710 * You may obtain a copy of the License at 711 * 712 * http://www.apache.org/licenses/LICENSE-2.0 713 * 714 * Unless required by applicable law or agreed to in writing, software 715 * distributed under the License is distributed on an "AS IS" BASIS, 716 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 717 * See the License for the specific language governing permissions and 718 * limitations under the License. 719 */const sd="�";function p0(t){let e="";for(let n=0;n<t.length;n++)e.length>0&&(e=bu(e)),e=m0(t.get(n),e);return bu(e)}function m0(t,e){let n=e;const r=t.length;for(let s=0;s<r;s++){const o=t.charAt(s);switch(o){case"\0":n+="��";break;case sd:n+="��";break;default:n+=o}}return n}function bu(t){return t+sd+"�"}/** 720 * @license 721 * Copyright 2017 Google LLC 722 * 723 * Licensed under the Apache License, Version 2.0 (the "License"); 724 * you may not use this file except in compliance with the License. 725 * You may obtain a copy of the License at 726 * 727 * http://www.apache.org/licenses/LICENSE-2.0 728 * 729 * Unless required by applicable law or agreed to in writing, software 730 * distributed under the License is distributed on an "AS IS" BASIS, 731 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 732 * See the License for the specific language governing permissions and 733 * limitations under the License. 734 */function Iu(t){let e=0;for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}function Mr(t,e){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])}function id(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}/** 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 wt{constructor(e,n){this.comparator=e,this.root=n||Qe.EMPTY}insert(e,n){return new wt(this.comparator,this.root.insert(e,n,this.comparator).copy(null,null,Qe.BLACK,null,
749null))}remove(e){return new wt(this.comparator,this.root.remove(e,this.comparator).copy(null,null,Qe.BLACK,null,null))}get(e){let n=this.root;for(;!n.isEmpty();){const r=this.comparator(e,n.key);if(r===0)return n.value;r<0?n=n.left:r>0&&(n=n.right)}return null}indexOf(e){let n=0,r=this.root;for(;!r.isEmpty();){const s=this.comparator(e,r.key);if(s===0)return n+r.left.size;s<0?r=r.left:(n+=r.left.size+1,r=r.right)}return-1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(e){return this.root.inorderTraversal(e)}forEach(e){this.inorderTraversal((n,r)=>(e(n,r),!1))}toString(){const e=[];return this.inorderTraversal((n,r)=>(e.push(`${n}:${r}`),!1)),`{${e.join(", ")}}`}reverseTraversal(e){return this.root.reverseTraversal(e)}getIterator(){return new oi(this.root,null,this.comparator,!1)}getIteratorFrom(e){return new oi(this.root,e,this.comparator,!1)}getReverseIterator(){return new oi(this.root,null,this.comparator,!0)}getReverseIteratorFrom(e){return new oi(this.root,e,this.comparator,!0)}}class oi{constructor(e,n,r,s){this.isReverse=s,this.nodeStack=[];let o=1;for(;!e.isEmpty();)if(o=n?r(e.key,n):1,n&&s&&(o*=-1),o<0)e=this.isReverse?e.left:e.right;else{if(o===0){this.nodeStack.push(e);break}this.nodeStack.push(e),e=this.isReverse?e.right:e.left}}getNext(){let e=this.nodeStack.pop();const n={key:e.key,value:e.value};if(this.isReverse)for(e=e.left;!e.isEmpty();)this.nodeStack.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack.push(e),e=e.left;return n}hasNext(){return this.nodeStack.length>0}peek(){if(this.nodeStack.length===0)return null;const e=this.nodeStack[this.nodeStack.length-1];return{key:e.key,value:e.value}}}class Qe{constructor(e,n,r,s,o){this.key=e,this.value=n,this.color=r??Qe.RED,this.left=s??Qe.EMPTY,this.right=o??Qe.EMPTY,this.size=this.left.size+1+this.right.size}copy(e,n,r,s,o){return new Qe(e??this.key,n??this.value,r??this.color,s??this.left,o??this.right)}isEmpty(){return!1}inorderTraversal(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)}reverseTraversal(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}min(){return this.left.isEmpty()?this:this.left.min()}minKey(){return this.min().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(e,n,r){let s=this;const o=r(e,s.key);return s=o<0?s.copy(null,null,null,s.left.insert(e,n,r),null):o===0?s.copy(null,n,null,null,null):s.copy(null,null,null,null,s.right.insert(e,n,r)),s.fixUp()}removeMin(){if(this.left.isEmpty())return Qe.EMPTY;let e=this;return e.left.isRed()||e.left.left.isRed()||(e=e.moveRedLeft()),e=e.copy(null,null,null,e.left.removeMin(),null),e.fixUp()}remove(e,n){let r,s=this;if(n(e,s.key)<0)s.left.isEmpty()||s.left.isRed()||s.left.left.isRed()||(s=s.moveRedLeft()),s=s.copy(null,null,null,s.left.remove(e,n),null);else{if(s.left.isRed()&&(s=s.rotateRight()),s.right.isEmpty()||s.right.isRed()||s.right.left.isRed()||(s=s.moveRedRight()),n(e,s.key)===0){if(s.right.isEmpty())return Qe.EMPTY;r=s.right.min(),s=s.copy(r.key,r.value,null,null,s.right.removeMin())}s=s.copy(null,null,null,null,s.right.remove(e,n))}return s.fixUp()}isRed(){return this.color}fixUp(){let e=this;return e.right.isRed()&&!e.left.isRed()&&(e=e.rotateLeft()),e.left.isRed()&&e.left.left.isRed()&&(e=e.rotateRight()),e.left.isRed()&&e.right.isRed()&&(e=e.colorFlip()),e}moveRedLeft(){let e=this.colorFlip();return e.right.left.isRed()&&(e=e.copy(null,null,null,null,e.right.rotateRight()),e=e.rotateLeft(),e=e.colorFlip()),e}moveRedRight(){let e=this.colorFlip();return e.left.left.isRed()&&(e=e.rotateRight(),e=e.colorFlip()),e}rotateLeft(){const e=this.copy(null,null,Qe.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight(){const e=this.copy(null,null,Qe.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)}colorFlip(){const e=this.left.copy(null,null,!this.left.color,null,null),n=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,n)}checkMaxDepth(){const e=this.check();return Math.pow(2,e)<=this.size+1}check(){if(this.isRed()&&this.left.isRed()||this.right.isRed())throw he();const e=this.left.check();if(e!==this.right.check())throw he();return e+(this.isRed()?0:1)}}Qe.EMPTY=null,Qe.RED=!0,Qe.BLACK=!1;
749Qe.EMPTY=new class{constructor(){this.size=0}get key(){throw he()}get value(){throw he()}get color(){throw he()}get left(){throw he()}get right(){throw he()}copy(e,n,r,s,o){return this}insert(e,n,r){return new Qe(e,n)}remove(e,n){return this}isEmpty(){return!0}inorderTraversal(e){return!1}reverseTraversal(e){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};/** 750 * @license 751 * Copyright 2017 Google LLC 752 * 753 * Licensed under the Apache License, Version 2.0 (the "License"); 754 * you may not use this file except in compliance with the License. 755 * You may obtain a copy of the License at 756 * 757 * http://www.apache.org/licenses/LICENSE-2.0 758 * 759 * Unless required by applicable law or agreed to in writing, software 760 * distributed under the License is distributed on an "AS IS" BASIS, 761 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 762 * See the License for the specific language governing permissions and 763 * limitations under the License. 764 */class Je{constructor(e){this.comparator=e,this.data=new wt(this.comparator)}has(e){return this.data.get(e)!==null}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(e){return this.data.indexOf(e)}forEach(e){this.data.inorderTraversal((n,r)=>(e(n),!1))}forEachInRange(e,n){const r=this.data.getIteratorFrom(e[0]);for(;r.hasNext();){const s=r.getNext();if(this.comparator(s.key,e[1])>=0)return;n(s.key)}}forEachWhile(e,n){let r;for(r=n!==void 0?this.data.getIteratorFrom(n):this.data.getIterator();r.hasNext();)if(!e(r.getNext().key))return}firstAfterOrEqual(e){const n=this.data.getIteratorFrom(e);return n.hasNext()?n.getNext().key:null}getIterator(){return new Au(this.data.getIterator())}getIteratorFrom(e){return new Au(this.data.getIteratorFrom(e))}add(e){return this.copy(this.data.remove(e).insert(e,!0))}delete(e){return this.has(e)?this.copy(this.data.remove(e)):this}isEmpty(){return this.data.isEmpty()}unionWith(e){let n=this;return n.size<e.size&&(n=e,e=this),e.forEach(r=>{n=n.add(r)}),n}isEqual(e){if(!(e instanceof Je)||this.size!==e.size)return!1;const n=this.data.getIterator(),r=e.data.getIterator();for(;n.hasNext();){const s=n.getNext().key,o=r.getNext().key;if(this.comparator(s,o)!==0)return!1}return!0}toArray(){const e=[];return this.forEach(n=>{e.push(n)}),e}toString(){const e=[];return this.forEach(n=>e.push(n)),"SortedSet("+e.toString()+")"}copy(e){const n=new Je(this.comparator);return n.data=e,n}}class Au{constructor(e){this.iter=e}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}/** 765 * @license 766 * Copyright 2020 Google LLC 767 * 768 * Licensed under the Apache License, Version 2.0 (the "License"); 769 * you may not use this file except in compliance with the License. 770 * You may obtain a copy of the License at 771 * 772 * http://www.apache.org/licenses/LICENSE-2.0 773 * 774 * Unless required by applicable law or agreed to in writing, software 775 * distributed under the License is distributed on an "AS IS" BASIS, 776 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 777 * See the License for the specific language governing permissions and 778 * limitations under the License. 779 */class jt{constructor(e){this.fields=e,e.sort(Ye.comparator)}static empty(){return new jt([])}unionWith(e){let n=new Je(Ye.comparator);for(const r of this.fields)n=n.add(r);for(const r of e)n=n.add(r);return new jt(n.toArray())}covers(e){for(const n of this.fields)if(n.isPrefixOf(e))return!0;return!1}isEqual(e){return Vr(this.fields,e.fields,(n,r)=>n.isEqual(r))}}/** 780 * @license 781 * Copyright 2023 Google LLC 782 * 783 * Licensed under the Apache License, Version 2.0 (the "License"); 784 * you may not use this file except in compliance with the License. 785 * You may obtain a copy of the License at 786 * 787 * http://www.apache.org/licenses/LICENSE-2.0 788 * 789 * Unless required by applicable law or agreed to in writing, software 790 * distributed under the License is distributed on an "AS IS" BASIS, 791 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 792 * See the License for the specific language governing permissions and 793 * limitations under the License.
794 */class g0 extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}/** 795 * @license 796 * Copyright 2020 Google LLC 797 * 798 * Licensed under the Apache License, Version 2.0 (the "License"); 799 * you may not use this file except in compliance with the License. 800 * You may obtain a copy of the License at 801 * 802 * http://www.apache.org/licenses/LICENSE-2.0 803 * 804 * Unless required by applicable law or agreed to in writing, software 805 * distributed under the License is distributed on an "AS IS" BASIS, 806 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 807 * See the License for the specific language governing permissions and 808 * limitations under the License. 809 */class Jt{constructor(e){this.binaryString=e}static fromBase64String(e){const n=function(s){try{return atob(s)}catch(o){throw typeof DOMException<"u"&&o instanceof DOMException?new g0("Invalid base64 string: "+o):o}}(e);return new Jt(n)}static fromUint8Array(e){const n=function(s){let o="";for(let a=0;a<s.length;++a)o+=String.fromCharCode(s[a]);return o}(e);return new Jt(n)}[Symbol.iterator](){let e=0;return{next:()=>e<this.binaryString.length?{value:this.binaryString.charCodeAt(e++),done:!1}:{value:void 0,done:!0}}}toBase64(){return function(n){return btoa(n)}(this.binaryString)}toUint8Array(){return function(n){const r=new Uint8Array(n.length);for(let s=0;s<n.length;s++)r[s]=n.charCodeAt(s);return r}(this.binaryString)}approximateByteSize(){return 2*this.binaryString.length}compareTo(e){return Ae(this.binaryString,e.binaryString)}isEqual(e){return this.binaryString===e.binaryString}}Jt.EMPTY_BYTE_STRING=new Jt("");const y0=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function nr(t){if(Fe(!!t),typeof t=="string"){let e=0;const n=y0.exec(t);if(Fe(!!n),n[1]){let s=n[1];s=(s+"000000000").substr(0,9),e=Number(s)}const r=new Date(t);return{seconds:Math.floor(r.getTime()/1e3),nanos:e}}return{seconds:Xe(t.seconds),nanos:Xe(t.nanos)}}function Xe(t){return typeof t=="number"?t:typeof t=="string"?Number(t):0}function xr(t){return typeof t=="string"?Jt.fromBase64String(t):Jt.fromUint8Array(t)}/** 810 * @license 811 * Copyright 2020 Google LLC 812 * 813 * Licensed under the Apache License, Version 2.0 (the "License"); 814 * you may not use this file except in compliance with the License. 815 * You may obtain a copy of the License at 816 * 817 * http://www.apache.org/licenses/LICENSE-2.0 818 * 819 * Unless required by applicable law or agreed to in writing, software 820 * distributed under the License is distributed on an "AS IS" BASIS, 821 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 822 * See the License for the specific language governing permissions and 823 * limitations under the License. 824 */const od="server_timestamp",ad="__type__",ld="__previous_value__",cd="__local_write_time__";function rl(t){var e,n;return((n=(((e=t==null?void 0:t.mapValue)===null||e===void 0?void 0:e.fields)||{})[ad])===null||n===void 0?void 0:n.stringValue)===od}function sl(t){const e=t.mapValue.fields[ld];return rl(e)?sl(e):e}function Vi(t){const e=nr(t.mapValue.fields[cd].timestampValue);return new qe(e.seconds,e.nanos)}/** 825 * @license 826 * Copyright 2017 Google LLC 827 * 828 * Licensed under the Apache License, Version 2.0 (the "License"); 829 * you may not use this file except in compliance with the License. 830 * You may obtain a copy of the License at 831 * 832 * http://www.apache.org/licenses/LICENSE-2.0 833 * 834 * Unless required by applicable law or agreed to in writing, software 835 * distributed under the License is distributed on an "AS IS" BASIS, 836 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 837 * See the License for the specific language governing permissions and 838 * limitations under the License. 839 */class _0{constructor(e,n,r,s,o,a,l,u,f){this.databaseId=e,this.appId=n,this.persistenceKey=r,this.host=s,this.ssl=o,this.forceLongPolling=a,this.autoDetectLongPolling=l,this.longPollingOptions=u,this.useFetchStreams=f}}const xi="(default)";class Di{constructor(e,n){this.projectId=e,this.database=n||xi}static empty(){return new Di("","")}get isDefaultDatabase(){return this.database===xi}isEqual(e){return e instanceof Di&&e.projectId===this.projectId&&e.database===this.database}}/** 840 * @license 841 * Copyright 2020 Google LLC 842 * 843 * Licensed under the Apache License, Version 2.0 (the "License");
844 * you may not use this file except in compliance with the License. 845 * You may obtain a copy of the License at 846 * 847 * http://www.apache.org/licenses/LICENSE-2.0 848 * 849 * Unless required by applicable law or agreed to in writing, software 850 * distributed under the License is distributed on an "AS IS" BASIS, 851 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 852 * See the License for the specific language governing permissions and 853 * limitations under the License. 854 */const ud="__type__",v0="__max__",ai={mapValue:{}},hd="__vector__",va="value";function rr(t){return"nullValue"in t?0:"booleanValue"in t?1:"integerValue"in t||"doubleValue"in t?2:"timestampValue"in t?3:"stringValue"in t?5:"bytesValue"in t?6:"referenceValue"in t?7:"geoPointValue"in t?8:"arrayValue"in t?9:"mapValue"in t?rl(t)?4:w0(t)?9007199254740991:E0(t)?10:11:he()}function Zt(t,e){if(t===e)return!0;const n=rr(t);if(n!==rr(e))return!1;switch(n){case 0:case 9007199254740991:return!0;case 1:return t.booleanValue===e.booleanValue;case 4:return Vi(t).isEqual(Vi(e));case 3:return function(s,o){if(typeof s.timestampValue=="string"&&typeof o.timestampValue=="string"&&s.timestampValue.length===o.timestampValue.length)return s.timestampValue===o.timestampValue;const a=nr(s.timestampValue),l=nr(o.timestampValue);return a.seconds===l.seconds&&a.nanos===l.nanos}(t,e);case 5:return t.stringValue===e.stringValue;case 6:return function(s,o){return xr(s.bytesValue).isEqual(xr(o.bytesValue))}(t,e);case 7:return t.referenceValue===e.referenceValue;case 8:return function(s,o){return Xe(s.geoPointValue.latitude)===Xe(o.geoPointValue.latitude)&&Xe(s.geoPointValue.longitude)===Xe(o.geoPointValue.longitude)}(t,e);case 2:return function(s,o){if("integerValue"in s&&"integerValue"in o)return Xe(s.integerValue)===Xe(o.integerValue);if("doubleValue"in s&&"doubleValue"in o){const a=Xe(s.doubleValue),l=Xe(o.doubleValue);return a===l?Ci(a)===Ci(l):isNaN(a)&&isNaN(l)}return!1}(t,e);case 9:return Vr(t.arrayValue.values||[],e.arrayValue.values||[],Zt);case 10:case 11:return function(s,o){const a=s.mapValue.fields||{},l=o.mapValue.fields||{};if(Iu(a)!==Iu(l))return!1;for(const u in a)if(a.hasOwnProperty(u)&&(l[u]===void 0||!Zt(a[u],l[u])))return!1;return!0}(t,e);default:return he()}}function Ss(t,e){return(t.values||[]).find(n=>Zt(n,e))!==void 0}function Dr(t,e){if(t===e)return 0;const n=rr(t),r=rr(e);if(n!==r)return Ae(n,r);switch(n){case 0:case 9007199254740991:return 0;case 1:return Ae(t.booleanValue,e.booleanValue);case 2:return function(o,a){const l=Xe(o.integerValue||o.doubleValue),u=Xe(a.integerValue||a.doubleValue);return l<u?-1:l>u?1:l===u?0:isNaN(l)?isNaN(u)?0:-1:1}(t,e);case 3:return Ru(t.timestampValue,e.timestampValue);case 4:return Ru(Vi(t),Vi(e));case 5:return Ae(t.stringValue,e.stringValue);case 6:return function(o,a){const l=xr(o),u=xr(a);return l.compareTo(u)}(t.bytesValue,e.bytesValue);case 7:return function(o,a){const l=o.split("/"),u=a.split("/");for(let f=0;f<l.length&&f<u.length;f++){const d=Ae(l[f],u[f]);if(d!==0)return d}return Ae(l.length,u.length)}(t.referenceValue,e.referenceValue);case 8:return function(o,a){const l=Ae(Xe(o.latitude),Xe(a.latitude));return l!==0?l:Ae(Xe(o.longitude),Xe(a.longitude))}(t.geoPointValue,e.geoPointValue);case 9:return Su(t.arrayValue,e.arrayValue);case 10:return function(o,a){var l,u,f,d;const p=o.fields||{},_=a.fields||{},b=(l=p[va])===null||l===void 0?void 0:l.arrayValue,x=(u=_[va])===null||u===void 0?void 0:u.arrayValue,F=Ae(((f=b==null?void 0:b.values)===null||f===void 0?void 0:f.length)||0,((d=x==null?void 0:x.values)===null||d===void 0?void 0:d.length)||0);return F!==0?F:Su(b,x)}(t.mapValue,e.mapValue);case 11:return function(o,a){if(o===ai.mapValue&&a===ai.mapValue)return 0;if(o===ai.mapValue)return 1;if(a===ai.mapValue)return-1;const l=o.fields||{},u=Object.keys(l),f=a.fields||{},d=Object.keys(f);u.sort(),d.sort();for(let p=0;p<u.length&&p<d.length;++p){const _=Ae(u[p],d[p]);if(_!==0)return _;const b=Dr(l[u[p]],f[d[p]]);if(b!==0)return b}return Ae(u.length,d.length)}(t.mapValue,e.mapValue);default:throw he()}}function Ru(t,e){if(typeof t=="string"&&typeof e=="string"&&t.length===e.length)return Ae(t,e);const n=nr(t),r=nr(e),s=Ae(n.seconds,r.seconds);return s!==0?s:Ae(n.nanos,r.nanos)}function Su(t,e){const n=t.values||[],r=e.values||[];for(let s=0;s<n.length&&s<r.length;++s){const o=Dr(n[s],r[s]);if(o)return o}return Ae(n.length,r.length)}function kr(t){return Ea(t)}function Ea(t){return"nullValue"in t?"null":"booleanValue"in t?""+t.booleanValue:"integerValue"in t?""+t.integerValue:"doubleValue"in t?""+t.doubleValue:"timestampValue"in t?function(n){const r=nr(n);return`time(${r.seconds},${r.nanos})`}(t.timestampValue):"stringValue"in t?t.stringValue:"bytesValue"in t?function(n){return xr(n).toBase64()}(t.bytesValue):"referenceValue"in t?function(n){return ue.fromName(n).toString()}(t.referenceValue):"geoPointValue"in t?function(n){return`geo(${n.latitude},${n.longitude})`}(t.geoPointValue):"arrayValue"in t?function(n){let r="[",s=!0;for(const o of n.values||[])s?s=!1:r+=",",r+=Ea(o);return r+"]"}(t.arrayValue):"mapValue"in t?function(n){const r=Object.keys(n.fields||{}).sort();let s="{",o=!0;for(const a of r)o?o=!1:s+=",",s+=`${a}:${Ea(n.fields[a])}`;return s+"}"}(t.mapValue):he()}function yi(t){switch(rr(t)){case 0:case 1:return 4;case 2:return 8;case 3:case 8:return 16;case 4:const e=sl(t);return e?16+yi(e):16;case 5:return 2*t.stringValue.length;case 6:return xr(t.bytesValue).approximateByteSize();case 7:return t.referenceValue.length;case 9:return function(r){return(r.values||[]).reduce((s,o)=>s+yi(o),0)}(t.arrayValue);case 10:case 11:return function(r){let s=0;return Mr(r.fields,(o,a)=>{s+=o.length+yi(a)}),s}(t.mapValue);default:throw he()}}function wa(t){return!!t&&"integerValue"in t}function il(t){return!!t&&"arrayValue"in t}function _i(t){return!!t&&"mapValue"in t}function E0(t){var e,n;return((n=(((e=t==null?void 0:t.mapValue)===null||e===void 0?void 0:e.fields)||{}
854)[ud])===null||n===void 0?void 0:n.stringValue)===hd}function hs(t){if(t.geoPointValue)return{geoPointValue:Object.assign({},t.geoPointValue)};if(t.timestampValue&&typeof t.timestampValue=="object")return{timestampValue:Object.assign({},t.timestampValue)};if(t.mapValue){const e={mapValue:{fields:{}}};return Mr(t.mapValue.fields,(n,r)=>e.mapValue.fields[n]=hs(r)),e}if(t.arrayValue){const e={arrayValue:{values:[]}};for(let n=0;n<(t.arrayValue.values||[]).length;++n)e.arrayValue.values[n]=hs(t.arrayValue.values[n]);return e}return Object.assign({},t)}function w0(t){return(((t.mapValue||{}).fields||{}).__type__||{}).stringValue===v0}/** 855 * @license 856 * Copyright 2017 Google LLC 857 * 858 * Licensed under the Apache License, Version 2.0 (the "License"); 859 * you may not use this file except in compliance with the License. 860 * You may obtain a copy of the License at 861 * 862 * http://www.apache.org/licenses/LICENSE-2.0 863 * 864 * Unless required by applicable law or agreed to in writing, software 865 * distributed under the License is distributed on an "AS IS" BASIS, 866 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 867 * See the License for the specific language governing permissions and 868 * limitations under the License. 869 */class Ut{constructor(e){this.value=e}static empty(){return new Ut({mapValue:{}})}field(e){if(e.isEmpty())return this.value;{let n=this.value;for(let r=0;r<e.length-1;++r)if(n=(n.mapValue.fields||{})[e.get(r)],!_i(n))return null;return n=(n.mapValue.fields||{})[e.lastSegment()],n||null}}set(e,n){this.getFieldsMap(e.popLast())[e.lastSegment()]=hs(n)}setAll(e){let n=Ye.emptyPath(),r={},s=[];e.forEach((a,l)=>{if(!n.isImmediateParentOf(l)){const u=this.getFieldsMap(n);this.applyChanges(u,r,s),r={},s=[],n=l.popLast()}a?r[l.lastSegment()]=hs(a):s.push(l.lastSegment())});const o=this.getFieldsMap(n);this.applyChanges(o,r,s)}delete(e){const n=this.field(e.popLast());_i(n)&&n.mapValue.fields&&delete n.mapValue.fields[e.lastSegment()]}isEqual(e){return Zt(this.value,e.value)}getFieldsMap(e){let n=this.value;n.mapValue.fields||(n.mapValue={fields:{}});for(let r=0;r<e.length;++r){let s=n.mapValue.fields[e.get(r)];_i(s)&&s.mapValue.fields||(s={mapValue:{fields:{}}},n.mapValue.fields[e.get(r)]=s),n=s}return n.mapValue.fields}applyChanges(e,n,r){Mr(n,(s,o)=>e[s]=o);for(const s of r)delete e[s]}clone(){return new Ut(hs(this.value))}}function fd(t){const e=[];return Mr(t.fields,(n,r)=>{const s=new Ye([n]);if(_i(r)){const o=fd(r.mapValue).fields;
869if(o.length===0)e.push(s);else for(const a of o)e.push(s.child(a))}else e.push(s)}),new jt(e)}/** 870 * @license 871 * Copyright 2017 Google LLC 872 * 873 * Licensed under the Apache License, Version 2.0 (the "License"); 874 * you may not use this file except in compliance with the License. 875 * You may obtain a copy of the License at 876 * 877 * http://www.apache.org/licenses/LICENSE-2.0 878 * 879 * Unless required by applicable law or agreed to in writing, software 880 * distributed under the License is distributed on an "AS IS" BASIS, 881 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 882 * See the License for the specific language governing permissions and 883 * limitations under the License. 884 */class Lt{constructor(e,n,r,s,o,a,l){this.key=e,this.documentType=n,this.version=r,this.readTime=s,this.createTime=o,this.data=a,this.documentState=l}static newInvalidDocument(e){return new Lt(e,0,De.min(),De.min(),De.min(),Ut.empty(),0)}static newFoundDocument(e,n,r,s){return new Lt(e,1,n,De.min(),r,s,0)}static newNoDocument(e,n){return new Lt(e,2,n,De.min(),De.min(),Ut.empty(),0)}static newUnknownDocument(e,n){return new Lt(e,3,n,De.min(),De.min(),Ut.empty(),2)}convertToFoundDocument(e,n){return!this.createTime.isEqual(De.min())||this.documentType!==2&&this.documentType!==0||(this.createTime=e),this.version=e,this.documentType=1,this.data=n,this.documentState=0,this}convertToNoDocument(e){return this.version=e,this.documentType=2,this.data=Ut.empty(),this.documentState=0,this}convertToUnknownDocument(e){return this.version=e,this.documentType=3,this.data=Ut.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=De.min(),this}setReadTime(e){return this.readTime=e,this}get hasLocalMutations(){return this.documentState===1}get hasCommittedMutations(){return this.documentState===2}get hasPendingWrites(){return this.hasLocalMutations||this.hasCommittedMutations}isValidDocument(){return this.documentType!==0}isFoundDocument(){return this.documentType===1}isNoDocument(){return this.documentType===2}isUnknownDocument(){return this.documentType===3}isEqual(e){return e instanceof Lt&&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 Lt(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}toString(){return`Document(${this.key}, ${this.version}, ${JSON.stringify(this.data.value)}, {createTime: ${this.createTime}}), {documentType: ${this.documentType}}), {documentState: ${this.documentState}})`}}/** 885 * @license 886 * Copyright 2022 Google LLC 887 * 888 * Licensed under the Apache License, Version 2.0 (the "License"); 889 * you may not use this file except in compliance with the License. 890 * You may obtain a copy of the License at 891 * 892 * http://www.apache.org/licenses/LICENSE-2.0 893 * 894 * Unless required by applicable law or agreed to in writing, software 895 * distributed under the License is distributed on an "AS IS" BASIS, 896 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 897 * See the License for the specific language governing permissions and 898 * limitations under the License. 899 */class ki{constructor(e,n){this.position=e,this.inclusive=n}}function Pu(t,e,n){let r=0;for(let s=0;s<t.position.length;s++){const o=e[s],a=t.position[s];if(o.field.isKeyField()?r=ue.comparator(ue.fromName(a.referenceValue),n.key):r=Dr(a,n.data.field(o.field)),o.dir==="desc"&&(r*=-1),r!==0)break}return r}function Cu(t,e){if(t===null)return e===null;if(e===null||t.inclusive!==e.inclusive||t.position.length!==e.position.length)return!1;for(let n=0;n<t.position.length;n++)if(!Zt(t.position[n],e.position[n]))return!1;return!0}/** 900 * @license 901 * Copyright 2022 Google LLC 902 * 903 * Licensed under the Apache License, Version 2.0 (the "License"); 904 * you may not use this file except in compliance with the License. 905 * You may obtain a copy of the License at 906 * 907 * http://www.apache.org/licenses/LICENSE-2.0 908 * 909 * Unless required by applicable law or agreed to in writing, softw
909are 910 * distributed under the License is distributed on an "AS IS" BASIS, 911 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 912 * See the License for the specific language governing permissions and 913 * limitations under the License. 914 */class Oi{constructor(e,n="asc"){this.field=e,this.dir=n}}function T0(t,e){return t.dir===e.dir&&t.field.isEqual(e.field)}/** 915 * @license 916 * Copyright 2022 Google LLC 917 * 918 * Licensed under the Apache License, Version 2.0 (the "License"); 919 * you may not use this file except in compliance with the License. 920 * You may obtain a copy of the License at 921 * 922 * http://www.apache.org/licenses/LICENSE-2.0 923 * 924 * Unless required by applicable law or agreed to in writing, software 925 * distributed under the License is distributed on an "AS IS" BASIS, 926 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 927 * See the License for the specific language governing permissions and 928 * limitations under the License. 929 */class dd{}class He extends dd{constructor(e,n,r){super(),this.field=e,this.op=n,this.value=r}static create(e,n,r){return e.isKeyField()?n==="in"||n==="not-in"?this.createKeyFieldInFilter(e,n,r):new I0(e,n,r):n==="array-contains"?new S0(e,r):n==="in"?new P0(e,r):n==="not-in"?new C0(e,r):n==="array-contains-any"?new V0(e,r):new He(e,n,r)}static createKeyFieldInFilter(e,n,r){return n==="in"?new A0(e,r):new R0(e,r)}matches(e){const n=e.data.field(this.field);return this.op==="!="?n!==null&&this.matchesComparison(Dr(n,this.value)):n!==null&&rr(this.value)===rr(n)&&this.matchesComparison(Dr(n,this.value))}matchesComparison(e){switch(this.op){case"<":return e<0;case"<=":return e<=0;case"==":return e===0;case"!=":return e!==0;case">":return e>0;case">=":return e>=0;default:return he()}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class kn extends dd{constructor(e,n){super(),this.filters=e,this.op=n,this.ce=null}static create(e,n){return new kn(e,n)}matches(e){return pd(this)?this.filters.find(n=>!n.matches(e))===void 0:this.filters.find(n=>n.matches(e))!==void 0}getFlattenedFilters(){return this.ce!==null||(this.ce=this.filters.reduce((e,n)=>e.concat(n.getFlattenedFilters()),[])),this.ce}getFilters(){return Object.assign([],this.filters)}}function pd(t){return t.op==="and"}function md(t){return b0(t)&&pd(t)}function b0(t){for(const e of t.filters)if(e instanceof kn)return!1;return!0}function Ta(t){if(t instanceof He)return t.field.canonicalString()+t.op.toString()+kr(t.value);if(md(t))return t.filters.map(e=>Ta(e)).join(",");{const e=t.filters.map(n=>Ta(n)).join(",");return`${t.op}(${e})`}}function gd(t,e){return t instanceof He?function(r,s){return s instanceof He&&r.op===s.op&&r.field.isEqual(s.field)&&Zt(r.value,s.value)}(t,e):t instanceof kn?function(r,s){return s instanceof kn&&r.op===s.op&&r.filters.length===s.filters.length?r.filters.reduce((o,a,l)=>o&&gd(a,s.filters[l]),!0):!1}(t,e):void he()}function yd(t){return t instanceof He?function(n){return`${n.field.canonicalString()} ${n.op} ${kr(n.value)}`}(t):t instanceof kn?function(n){return n.op.toString()+" {"+n.getFilters().map(yd).join(" ,")+"}"}(t):"Filter"}class I0 extends He{constructor(e,n,r){super(e,n,r),this.key=ue.fromName(r.referenceValue)}matches(e){const n=ue.comparator(e.key,this.key);return this.matchesComparison(n)}}class A0 extends He{constructor(e,n){super(e,"in",n),this.keys=_d("in",n)}matches(e){return this.keys.some(n=>n.isEqual(e.key))}}class R0 extends He{constructor(e,n){super(e,"not-in",n),this.keys=_d("not-in",n)}matches(e){return!this.keys.some(n=>n.isEqual(e.key))}}function _d(t,e){var n;return(((n=e.arrayValue)===null||n===void 0?void 0:n.values)||[]).map(r=>ue.fromName(r.referenceValue))}class S0 extends He{constructor(e,n){super(e,"array-contains",n)}matches(e){const n=e.data.field(this.field);return il(n)&&Ss(n.arrayValue,this.value)}}class P0 extends He{constructor(e,n){super(e,"in",n)}matches(e){const n=e.data.field(this.field);return n!==null&&Ss(this.value.arrayValue,n)}}class C0 extends He{constructor(e,n){super(e,"not-in",n)}matches(e){if(Ss(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const n=e.data.field(this.field);return n!==null&&!Ss(this.value.arrayValue,n)}}class V0 extends He{constructor(e,n){super(e,"array-contains-any",n)}matches(e){const n=e.data.field(this.field);return!(!il(n)||!n.arrayValue.values)&&n.arrayValue.values.some(r=>Ss(this.value.arrayValue,r))}}/** 930 * @license 931 * Copyright 2019 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 */class x0{constructor(e,n=null,r=[],s=[],o=null,a=null,l=null){this.path=e,this.collectionGroup=n,this.orderBy=r,this.filters=s,this.limit=o,this.startAt=a,this.endAt=l,this.le=null}}function Vu(t,e=null,n=[],r=[],s=null,o=null,a=null){return new x0(t,e,n,r,s,o,a)}function ol(t){const e=Ve(t);if(e.le===null){let n=e.path.canonicalString();e.collectionGroup!==null&&(n+="|cg:"+e.collectionGroup),n+="|f:",n+=e.filters.map(r=>Ta(r)).join(","),n+="|ob:",n+=e.orderBy.map(r=>function(o){return o.field.canonicalString()+o.dir}(r)).join(","),nl(e.limit)||(n+="|l:",n+=e.limit),e.startAt&&(n+="|lb:",n+=e.startAt.inclusive?"b:":"a:",n+=e.startAt.position.map(r=>kr(r)).join(",")),e.endAt&&(n+="|ub:",n+=e.endAt.inclusive?"a:":"b:",n+=e.endAt.position.map(r=>kr(r)).join(",")),e.le=n}return e.le}function al(t,e){if(t.limit!==e.limit||t.orderBy.length!==e.orderBy.length)return!1;for(let n=0;n<t.orderBy.length;n++)if(!T0(t.orderBy[n],e.orderBy[n]))return!1;if(t.filters.length!==e.filters.length)return!1;for(let n=0;n<t.filters.length;n++)if(!gd(t.filters[n],e.filters[n]))return!1;return t.collectionGroup===e.collectionGroup&&!!t.path.isEqual(e.path)&&!!Cu(t.startAt,e.startAt)&&Cu(t.endAt,e.endAt)}/** 945 * @license 946 * Copyright 2017 Google LLC 947 * 948 * Licensed under the Apache License, Version 2.0 (the "License"); 949 * you may not use this file except in compliance with the License. 950 * You may obtain a copy of the License at 951 * 952 * http://www.apache.org/licenses/LICENSE-2.0 953 * 954 * Unless required by applicable law or agreed to in writing, software 955 * distributed under the License is distributed on an "AS IS" BASIS, 956 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 957 * See the License for the specific language governing permissions and 958 * limitations under the License. 959 */class ro{constructor(e,n=null,r=[],s=[],o=null,a="F",l=null,u=null){this.path=e,this.collectionGroup=n,this.explicitOrderBy=r,this.filters=s,this.limit=o,this.limitType=a,this.startAt=l,this.endAt=u,this.he=null,this.Pe=null,this.Te=null,this.startAt,this.endAt}}function D0(t,e,n,r,s,o,a,l){return new ro(t,e,n,r,s,o,a,l)}function k0(t){return new ro(t)}function xu(t){return t.filters.length===0&&t.limit===null&&t.startAt==null&&t.endAt==null&&(t.explicitOrderBy.length===0||t.explicitOrderBy.length===1&&t.explicitOrderBy[0].field.isKeyField())}function O0(t){return t.collectionGroup!==null}function fs(t){const e=Ve(t);if(e.he===null){e.he=[];const n=new Set;for(const o of e.explicitOrderBy)e.he.push(o),n.add(o.field.canonicalString());const r=e.explicitOrderBy.length>0?e.explicitOrderBy[e.explicitOrderBy.length-1].dir:"asc";(function(a){let l=new Je(Ye.comparator);return a.filters.forEach(u=>{u.getFlattenedFilters().forEach(f=>{f.isInequality()&&(l=l.add(f.field))})}),l})(e).forEach(o=>{n.has(o.canonicalString())||o.isKeyField()||e.he.push(new Oi(o,r))}),n.has(Ye.keyField().canonicalString())||e.he.push(new Oi(Ye.keyField(),r))}return e.he}function Yn(t){const e=Ve(t);return e.Pe||(e.Pe=N0(e,fs(t))),e.Pe}function N0(t,e){if(t.limitType==="F")return Vu(t.path,t.collectionGroup,e,t.filters,t.limit,t.startAt,t.endAt);{e=e.map(s=>{const o=s.dir==="desc"?"asc":"desc";return new Oi(s.field,o)});const n=t.endAt?new ki(t.endAt.position,t.endAt.inclusive):null,r=t.startAt?new ki(t.startAt.position,t.startAt.inclusive):null;return Vu(t.path,t.collectionGroup,e,t.filters,t.limit,n,r)}}function ba(t,e,n){return new ro(t.path,t.collectionGroup,t.explicitOrderBy.slice(),t.filters.slice(),e,n,t.startAt,t.endAt)}function vd(t,e){return al(Yn(t),Yn(e))&&t.limitType===e.limitType}function Ed(t){return`${ol(Yn(t))}|lt:${t.limitType}`}function Zr(t){return`Query(target=${function(n){let r=n.path.canonicalString();return n.collectionGroup!==null&&(r+=" collectionGroup="+n.collectionGroup),n.filters.length>0&&(r+=`, filters: [${n.filters.map(s=>yd(s)).join(", ")}]`),nl(n.limit)||(r+=", limit: "+n.limit),n.orderBy.length>0&&(r+=`, orderBy: [${n.orderBy.map(s=>function(a){return`${a.field.canonicalString()} (${a.dir})`}(s)).join(", ")}]`),n.startAt&&(r+=", startAt: ",r+=n.startAt.inclusive?"b:":"a:",r+=n.startAt.position.map(s=>kr(s)).join(",")),n.endAt&&(r+=", endAt: ",r+=n.endAt.inclusive?"a:":"b:",r+=n.endAt.position.map(s=>kr(s)).join(",")),`Target(${r})`}(Yn(t))}; limitType=${t.limitType})`}function ll(t,e){return e.isFoundDocument()&&function(r,s){const o=s.key.path;return r.collectionGroup!==null?s.key.hasCollectionId(r.collectionGroup)&&r.path.isPrefixOf(o):ue.isDocumentKey(r.path)?r.path.isEqual(o):r.path.isImmediateParentOf(o)}(t,e)&&function(r,s){for(const o of fs(r))if(!o.field.isKeyField()&&s.data.field(o.field)===null)return!1;return!0}(t,e)&&function(r,s){for(const o of r.filters)if(!o.matches(s))return!1;return!0}(t,e)&&function(r,s){return!(r.startAt&&!function(a,l,u){const f=Pu(a,l,u);return a.inclusive?f<=0:f<0}(r.startAt,fs(r),s)||r.endAt&&!function(a,l,u){const f=Pu(a,l,u);return a.inclusive?f>=0:f>0}(r.endAt,fs(r),s))}(t,e)}function M0(t){return(e,n)=>{let r=!1;for(const s of fs(t)){const o=L0(s,e,n);if(o!==0)return o;r=r||s.field.isKeyField()}return 0}}function L0(t,e,n){const r=t.field.isKeyField()?ue.comparator(e.key,n.key):function(o,a,l){const u=a.data.field(o),f=l.data.field(o);return u!==null&&f!==null?Dr(u,f):he()}
959(t.field,e,n);switch(t.dir){case"asc":return r;case"desc":return-1*r;default:return he()}}/** 960 * @license 961 * Copyright 2017 Google LLC 962 * 963 * Licensed under the Apache License, Version 2.0 (the "License"); 964 * you may not use this file except in compliance with the License. 965 * You may obtain a copy of the License at 966 * 967 * http://www.apache.org/licenses/LICENSE-2.0 968 * 969 * Unless required by applicable law or agreed to in writing, software 970 * distributed under the License is distributed on an "AS IS" BASIS, 971 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 972 * See the License for the specific language governing permissions and 973 * limitations under the License. 974 */class ar{constructor(e,n){this.mapKeyFn=e,this.equalsFn=n,this.inner={},this.innerSize=0}get(e){const n=this.mapKeyFn(e),r=this.inner[n];if(r!==void 0){for(const[s,o]of r)if(this.equalsFn(s,e))return o}}has(e){return this.get(e)!==void 0}set(e,n){const r=this.mapKeyFn(e),s=this.inner[r];if(s===void 0)return this.inner[r]=[[e,n]],void this.innerSize++;for(let o=0;o<s.length;o++)if(this.equalsFn(s[o][0],e))return void(s[o]=[e,n]);s.push([e,n]),this.innerSize++}delete(e){const n=this.mapKeyFn(e),r=this.inner[n];if(r===void 0)return!1;for(let s=0;s<r.length;s++)if(this.equalsFn(r[s][0],e))return r.length===1?delete this.inner[n]:r.splice(s,1),this.innerSize--,!0;return!1}forEach(e){Mr(this.inner,(n,r)=>{for(const[s,o]of r)e(s,o)})}isEmpty(){return id(this.inner)}size(){return this.innerSize}}/** 975 * @license 976 * Copyright 2017 Google LLC 977 * 978 * Licensed under the Apache License, Version 2.0 (the "License"); 979 * you may not use this file except in compliance with the License. 980 * You may obtain a copy of the License at 981 * 982 * http://www.apache.org/licenses/LICENSE-2.0 983 * 984 * Unless required by applicable law or agreed to in writing, software 985 * distributed under the License is distributed on an "AS IS" BASIS, 986 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 987 * See the License for the specific language governing permissions and 988 * limitations under the License. 989 */const F0=new wt(ue.comparator);function Ni(){return F0}const wd=new wt(ue.comparator);function li(...t){let e=wd;for(const n of t)e=e.insert(n.key,n);return e}function Td(t){let e=wd;return t.forEach((n,r)=>e=e.insert(n,r.overlayedDocument)),e}function Gn(){return ds()}function bd(){return ds()}function ds(){return new ar(t=>t.toString(),(t,e)=>t.isEqual(e))}const $0=new wt(ue.comparator),U0=new Je(ue.comparator);function at(...t){let e=U0;for(const n of t)e=e.add(n);return e}const j0=new Je(Ae);function B0(){return j0}/** 990 * @license 991 * Copyright 2020 Google LLC 992 * 993 * Licensed under the Apache License, Version 2.0 (the "License"); 994 * you may not use this file except in compliance with the License. 995 * You may obtain a copy of the License at 996 * 997 * http://www.apache.org/licenses/LICENSE-2.0 998 * 999 * Unless required by applicable law or agreed to in writing, software 1000 * distributed under the License is distributed on an "AS IS" BASIS, 1001 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1002 * See the License for the specific language governing permissions and 1003 * limitations under the License. 1004 */function cl(t,e){if(t.useProto3Json){if(isNaN(e))return{doubleValue:"NaN"};if(e===1/0)return{doubleValue:"Infinity"};if(e===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:Ci(e)?"-0":e}}function Id(t){return{integerValue:""+t}}function z0(t,e){return d0(e)?Id(e):cl(t,e)}/** 1005 * @license 1006 * Copyright 2018 Google LLC 1007 * 1008 * Licensed under the Apache License, Version 2.0 (the "License"); 1009 * you may not use this file except in compliance with the License. 1010 * You may obtain a copy of the License at 1011 * 1012 * http://www.apache.org/licenses/LICENSE-2.0 1013 * 1014 * Unless required by applicable law or agreed to in writing, software 1015 * distributed under the License is distributed on an "AS IS" BASIS, 1016 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1017 * See the License for the specific language governing permissions and 1018 * limitations under the License. 1019 */class so{constructor(){this._=void 0}}function H0(t,e,n){return t instanceof Mi?function(s,o){const a={fields:{[ad]:{stringValue:od},[cd]:{timestampValue:{seconds:s.seconds,nanos:s.nanoseconds}}}};return o&&rl(o)&&(o=sl(o)),o&&(a.fields[ld]=o),{mapValue:a}}(n,e):t instanceof Ps?Rd(t,e):t instanceof Cs?Sd(t,e):function(s,o){const a=Ad(s,o),l=Du(a)+Du(s.Ie);return wa(a)&&wa(s.Ie)?Id(l):cl(s.serializer,l)}(t,e)}function q0(t,e,n){return t instanceof Ps?Rd(t,e):t instanceof Cs?Sd(t,e):n}function Ad(t,e){return t instanceof Li?function(r){return wa(r)||function(o){return!!o&&"doubleValue"in o}(r)}(e)?e:{integerValue:0}:null}class Mi extends so{}class Ps extends so{constructor(e){super(),this.elements=e}}function Rd(t,e){const n=Pd(e);for(const r of t.elements)n.some(s=>Zt(s,r))||n.push(r);return{arrayValue:{values:n}}}class Cs extends so{constructor(e){super(),this.elements=e}}function Sd(t,e){let n=Pd(e);for(const r of t.elements)n=n.filter(s=>!Zt(s,r));return{arrayValue:{values:n}}}
1019class Li extends so{constructor(e,n){super(),this.serializer=e,this.Ie=n}}function Du(t){return Xe(t.integerValue||t.doubleValue)}function Pd(t){return il(t)&&t.arrayValue.values?t.arrayValue.values.slice():[]}function K0(t,e){return t.field.isEqual(e.field)&&function(r,s){return r instanceof Ps&&s instanceof Ps||r instanceof Cs&&s instanceof Cs?Vr(r.elements,s.elements,Zt):r instanceof Li&&s instanceof Li?Zt(r.Ie,s.Ie):r instanceof Mi&&s instanceof Mi}(t.transform,e.transform)}class G0{constructor(e,n){this.version=e,this.transformResults=n}}class cn{constructor(e,n){this.updateTime=e,this.exists=n}static none(){return new cn}static exists(e){return new cn(void 0,e)}static updateTime(e){return new cn(e)}get isNone(){return this.updateTime===void 0&&this.exists===void 0}isEqual(e){return this.exists===e.exists&&(this.updateTime?!!e.updateTime&&this.updateTime.isEqual(e.updateTime):!e.updateTime)}}function vi(t,e){return t.updateTime!==void 0?e.isFoundDocument()&&e.version.isEqual(t.updateTime):t.exists===void 0||t.exists===e.isFoundDocument()}class io{}function Cd(t,e){if(!t.hasLocalMutations||e&&e.fields.length===0)return null;if(e===null)return t.isNoDocument()?new xd(t.key,cn.none()):new Ms(t.key,t.data,cn.none());{const n=t.data,r=Ut.empty();let s=new Je(Ye.comparator);for(let o of e.fields)if(!s.has(o)){let a=n.field(o);a===null&&o.length>1&&(o=o.popLast(),a=n.field(o)),a===null?r.delete(o):r.set(o,a),s=s.add(o)}return new lr(t.key,r,new jt(s.toArray()),cn.none())}}function W0(t,e,n){t instanceof Ms?function(s,o,a){const l=s.value.clone(),u=Ou(s.fieldTransforms,o,a.transformResults);l.setAll(u),o.convertToFoundDocument(a.version,l).setHasCommittedMutations()}(t,e,n):t instanceof lr?function(s,o,a){if(!vi(s.precondition,o))return void o.convertToUnknownDocument(a.version);const l=Ou(s.fieldTransforms,o,a.transformResults),u=o.data;u.setAll(Vd(s)),u.setAll(l),o.convertToFoundDocument(a.version,u).setHasCommittedMutations()}(t,e,n):function(s,o,a){o.convertToNoDocument(a.version).setHasCommittedMutations()}(0,e,n)}function ps(t,e,n,r){return t instanceof Ms?function(o,a,l,u){if(!vi(o.precondition,a))return l;const f=o.value.clone(),d=Nu(o.fieldTransforms,u,a);return f.setAll(d),a.convertToFoundDocument(a.version,f).setHasLocalMutations(),null}(t,e,n,r):t instanceof lr?function(o,a,l,u){if(!vi(o.precondition,a))return l;const f=Nu(o.fieldTransforms,u,a),d=a.data;return d.setAll(Vd(o)),d.setAll(f),a.convertToFoundDocument(a.version,d).setHasLocalMutations(),l===null?null:l.unionWith(o.fieldMask.fields).unionWith(o.fieldTransforms.map(p=>p.field))}(t,e,n,r):function(o,a,l){return vi(o.precondition,a)?(a.convertToNoDocument(a.version).setHasLocalMutations(),null):l}(t,e,n)}function Q0(t,e){let n=null;for(const r of t.fieldTransforms){const s=e.data.field(r.field),o=Ad(r.transform,s||null);o!=null&&(n===null&&(n=Ut.empty()),n.set(r.field,o))}return n||null}function ku(t,e){return t.type===e.type&&!!t.key.isEqual(e.key)&&!!t.precondition.isEqual(e.precondition)&&!!function(r,s){return r===void 0&&s===void 0||!(!r||!s)&&Vr(r,s,(o,a)=>K0(o,a))}(t.fieldTransforms,e.fieldTransforms)&&(t.type===0?t.value.isEqual(e.value):t.type!==1||t.data.isEqual(e.data)&&t.fieldMask.isEqual(e.fieldMask))}class Ms extends io{constructor(e,n,r,s=[]){super(),this.key=e,this.value=n,this.precondition=r,this.fieldTransforms=s,this.type=0}getFieldMask(){return null}}class lr extends io{constructor(e,n,r,s,o=[]){super(),this.key=e,this.data=n,this.fieldMask=r,this.precondition=s,this.fieldTransforms=o,this.type=1}getFieldMask(){return this.fieldMask}}function Vd(t){const e=new Map;return t.fieldMask.fields.forEach(n=>{if(!n.isEmpty()){const r=t.data.field(n);e.set(n,r)}}),e}function Ou(t,e,n){const r=new Map;Fe(t.length===n.length);for(let s=0;s<n.length;s++){const o=t[s],a=o.transform,l=e.data.field(o.field);r.set(o.field,q0(a,l,n[s]))}return r}function Nu(t,e,n){const r=new Map;for(const s of t){const o=s.transform,a=n.data.field(s.field);r.set(s.field,H0(o,a,e))}return r}class xd extends io{constructor(e,n){super(),this.key=e,this.precondition=n,this.type=2,this.fieldTransforms=[]}getFieldMask(){return null}}class X0 extends io{constructor(e,n){super(),this.key=e,this.prec
1019ondition=n,this.type=3,this.fieldTransforms=[]}getFieldMask(){return null}}/** 1020 * @license 1021 * Copyright 2017 Google LLC 1022 * 1023 * Licensed under the Apache License, Version 2.0 (the "License"); 1024 * you may not use this file except in compliance with the License. 1025 * You may obtain a copy of the License at 1026 * 1027 * http://www.apache.org/licenses/LICENSE-2.0 1028 * 1029 * Unless required by applicable law or agreed to in writing, software 1030 * distributed under the License is distributed on an "AS IS" BASIS, 1031 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1032 * See the License for the specific language governing permissions and 1033 * limitations under the License. 1034 */class Y0{constructor(e,n,r,s){this.batchId=e,this.localWriteTime=n,this.baseMutations=r,this.mutations=s}applyToRemoteDocument(e,n){const r=n.mutationResults;for(let s=0;s<this.mutations.length;s++){const o=this.mutations[s];o.key.isEqual(e.key)&&W0(o,e,r[s])}}applyToLocalView(e,n){for(const r of this.baseMutations)r.key.isEqual(e.key)&&(n=ps(r,e,n,this.localWriteTime));for(const r of this.mutations)r.key.isEqual(e.key)&&(n=ps(r,e,n,this.localWriteTime));return n}applyToLocalDocumentSet(e,n){const r=bd();return this.mutations.forEach(s=>{const o=e.get(s.key),a=o.overlayedDocument;let l=this.applyToLocalView(a,o.mutatedFields);l=n.has(s.key)?null:l;const u=Cd(a,l);u!==null&&r.set(s.key,u),a.isValidDocument()||a.convertToNoDocument(De.min())}),r}keys(){return this.mutations.reduce((e,n)=>e.add(n.key),at())}isEqual(e){return this.batchId===e.batchId&&Vr(this.mutations,e.mutations,(n,r)=>ku(n,r))&&Vr(this.baseMutations,e.baseMutations,(n,r)=>ku(n,r))}}class ul{constructor(e,n,r,s){this.batch=e,this.commitVersion=n,this.mutationResults=r,this.docVersions=s}static from(e,n,r){Fe(e.mutations.length===r.length);let s=function(){return $0}();const o=e.mutations;for(let a=0;a<o.length;a++)s=s.insert(o[a].key,r[a].version);return new ul(e,n,r,s)}}/** 1035 * @license 1036 * Copyright 2022 Google LLC 1037 * 1038 * Licensed under the Apache License, Version 2.0 (the "License"); 1039 * you may not use this file except in compliance with the License. 1040 * You may obtain a copy of the License at 1041 * 1042 * http://www.apache.org/licenses/LICENSE-2.0 1043 * 1044 * Unless required by applicable law or agreed to in writing, software 1045 * distributed under the License is distributed on an "AS IS" BASIS, 1046 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1047 * See the License for the specific language governing permissions and 1048 * limitations under the License. 1049 */class J0{constructor(e,n){this.largestBatchId=e,this.mutation=n}getKey(){return this.mutation.key}isEqual(e){return e!==null&&this.mutation===e.mutation}toString(){return`Overlay{ 1050 largestBatchId: ${this.largestBatchId}, 1051 mutation: ${this.mutation.toString()} 1052 }`}}/** 1053 * @license 1054 * Copyright 2017 Google LLC 1055 * 1056 * Licensed under the Apache License, Version 2.0 (the "License"); 1057 * you may not use this file except in compliance with the License. 1058 * You may obtain a copy of the License at 1059 * 1060 * http://www.apache.org/licenses/LICENSE-2.0 1061 * 1062 * Unless required by applicable law or agreed to in writing, software 1063 * distributed under the License is distributed on an "AS IS" BASIS, 1064 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1065 * See the License for the specific language governing permissions and 1066 * limitations under the License. 1067 */var Ue,me;function Z0(t){switch(t){case U.OK:return he();case U.CANCELLED:case U.UNKNOWN:case U.DEADLINE_EXCEEDED:case U.RESOURCE_EXHAUSTED:case U.INTERNAL:case U.UNAVAILABLE:case U.UNAUTHENTICATED:return!1;case U.INVALID_ARGUMENT:case U.NOT_FOUND:case U.ALREADY_EXISTS:case U.PERMISSION_DENIED:case U.FAILED_PRECONDITION:case U.ABORTED:case U.OUT_OF_RANGE:case U.UNIMPLEMENTED:case U.DATA_LOSS:return!0;default:return he()}}function eE(t){if(t===void 0)return tr("GRPC error has no .code"),U.UNKNOWN;switch(t){case Ue.OK:return U.OK;case Ue.CANCELLED:return U.CANCELLED;case Ue.UNKNOWN:return U.UNKNOWN;case Ue.DEADLINE_EXCEEDED:return U.DEADLINE_EXCEEDED;case Ue.RESOURCE_EXHAUSTED:return U.RESOURCE_EXHAUSTED;case Ue.INTERNAL:return U.INTERNAL;case Ue.UNAVAILABLE:return U.UNAVAILABLE;case Ue.UNAUTHENTICATED:return U.UNAUTHENTICATED;case Ue.INVALID_ARGUMENT:return U.INVALID_ARGUMENT;case Ue.NOT_FOUND:return U.NOT_FOUND;case Ue.ALREADY_EXISTS:return U.ALREADY_EXISTS;case Ue.PERMISSION_DENIED:return U.PERMISSION_DENIED;case Ue.FAILED_PRECONDITION:return U.FAILED_PRECONDITION;case Ue.ABORTED:return U.ABORTED;case Ue.OUT_OF_RANGE:return U.OUT_OF_RANGE;
1067case Ue.UNIMPLEMENTED:return U.UNIMPLEMENTED;case Ue.DATA_LOSS:return U.DATA_LOSS;default:return he()}}(me=Ue||(Ue={}))[me.OK=0]="OK",me[me.CANCELLED=1]="CANCELLED",me[me.UNKNOWN=2]="UNKNOWN",me[me.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",me[me.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",me[me.NOT_FOUND=5]="NOT_FOUND",me[me.ALREADY_EXISTS=6]="ALREADY_EXISTS",me[me.PERMISSION_DENIED=7]="PERMISSION_DENIED",me[me.UNAUTHENTICATED=16]="UNAUTHENTICATED",me[me.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",me[me.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",me[me.ABORTED=10]="ABORTED",me[me.OUT_OF_RANGE=11]="OUT_OF_RANGE",me[me.UNIMPLEMENTED=12]="UNIMPLEMENTED",me[me.INTERNAL=13]="INTERNAL",me[me.UNAVAILABLE=14]="UNAVAILABLE",me[me.DATA_LOSS=15]="DATA_LOSS";/** 1068 * @license 1069 * Copyright 2022 Google LLC 1070 * 1071 * Licensed under the Apache License, Version 2.0 (the "License"); 1072 * you may not use this file except in compliance with the License. 1073 * You may obtain a copy of the License at 1074 * 1075 * http://www.apache.org/licenses/LICENSE-2.0 1076 * 1077 * Unless required by applicable law or agreed to in writing, software 1078 * distributed under the License is distributed on an "AS IS" BASIS, 1079 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1080 * See the License for the specific language governing permissions and 1081 * limitations under the License. 1082 */new Ya([4294967295,4294967295],0);class tE{constructor(e,n){this.databaseId=e,this.useProto3Json=n}}function Ia(t,e){return t.useProto3Json?`${new Date(1e3*e.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+e.nanoseconds).slice(-9)}Z`:{seconds:""+e.seconds,nanos:e.nanoseconds}}function nE(t,e){return t.useProto3Json?e.toBase64():e.toUint8Array()}function rE(t,e){return Ia(t,e.toTimestamp())}function Rr(t){return Fe(!!t),De.fromTimestamp(function(n){const r=nr(n);return new qe(r.seconds,r.nanos)}(t))}function Dd(t,e){return Aa(t,e).canonicalString()}function Aa(t,e){const n=function(s){return new Le(["projects",s.projectId,"databases",s.database])}(t).child("documents");return e===void 0?n:n.child(e)}function sE(t){const e=Le.fromString(t);return Fe(fE(e)),e}function Ra(t,e){return Dd(t.databaseId,e.path)}function iE(t){const e=sE(t);return e.length===4?Le.emptyPath():aE(e)}function oE(t){return new Le(["projects",t.databaseId.projectId,"databases",t.databaseId.database]).canonicalString()}function aE(t){return Fe(t.length>4&&t.get(4)==="documents"),t.popFirst(5)}function Mu(t,e,n){return{name:Ra(t,e),fields:n.value.mapValue.fields}}function lE(t,e){let n;if(e instanceof Ms)n={update:Mu(t,e.key,e.value)};else if(e instanceof xd)n={delete:Ra(t,e.key)};else if(e instanceof lr)n={update:Mu(t,e.key,e.data),updateMask:hE(e.fieldMask)};else{if(!(e instanceof X0))return he();n={verify:Ra(t,e.key)}}return e.fieldTransforms.length>0&&(n.updateTransforms=e.fieldTransforms.map(r=>function(o,a){const l=a.transform;if(l instanceof Mi)return{fieldPath:a.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(l instanceof Ps)return{fieldPath:a.field.canonicalString(),appendMissingElements:{values:l.elements}};if(l instanceof Cs)return{fieldPath:a.field.canonicalString(),removeAllFromArray:{values:l.elements}};if(l instanceof Li)return{fieldPath:a.field.canonicalString(),increment:l.Ie};throw he()}(0,r))),e.precondition.isNone||(n.currentDocument=function(s,o){return o.updateTime!==void 0?{updateTime:rE(s,o.updateTime)}:o.exists!==void 0?{exists:o.exists}:he()}(t,e.precondition)),n}function cE(t,e){return t&&t.length>0?(Fe(e!==void 0),t.map(n=>function(s,o){let a=s.updateTime?Rr(s.updateTime):Rr(o);return a.isEqual(De.min())&&(a=Rr(o)),new G0(a,s.transformResults||[])}(n,e))):[]}function uE(t){let e=iE(t.parent);const n=t.structuredQuery,r=n.from?n.from.length:0;let s=null;if(r>0){Fe(r===1);const d=n.from[0];d.allDescendants?s=d.collectionId:e=e.child(d.collectionId)}let o=[];n.where&&(o=function(p){const _=kd(p);return _ instanceof kn&&md(_)?_.getFilters():[_]}(n.where));let a=[];n.orderBy&&(a=function(p){return p.map(_=>function(x){return new Oi(_r(x.field),function(j){switch(j){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(x.direction))}(_))}(n.orderBy));let l=null;n.limit&&(l=function(p){let _;return _=typeof p=="object"?p.value:p,nl(_)?null:_}(n.limit));let u=null;n.startAt&&(u=function(p){const _=!!p.before,b=p.values||[];return new ki(b,_)}(n.startAt));let f=null;return n.endAt&&(f=function(p){const _=!p.before,b=p.values||[];return new ki(b,_)}(n.endAt)),D0(e,s,a,o,l,"F",u,f)}function kd(t){return t.unaryFilter!==void 0?function(n){switch(n.unaryFilter.op){case"IS_NAN":const r=_r(n.unaryFilter.field);return He.create(r,"==",{doubleValue:NaN});case"IS_NULL":const s=_r(n.unaryFilter.field);return He.create(s,"==",{nullValue:"NULL_VALUE"});
1082case"IS_NOT_NAN":const o=_r(n.unaryFilter.field);return He.create(o,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const a=_r(n.unaryFilter.field);return He.create(a,"!=",{nullValue:"NULL_VALUE"});default:return he()}}(t):t.fieldFilter!==void 0?function(n){return He.create(_r(n.fieldFilter.field),function(s){switch(s){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";default:return he()}}(n.fieldFilter.op),n.fieldFilter.value)}(t):t.compositeFilter!==void 0?function(n){return kn.create(n.compositeFilter.filters.map(r=>kd(r)),function(s){switch(s){case"AND":return"and";case"OR":return"or";default:return he()}}(n.compositeFilter.op))}(t):he()}function _r(t){return Ye.fromServerFormat(t.fieldPath)}function hE(t){const e=[];return t.fields.forEach(n=>e.push(n.canonicalString())),{fieldPaths:e}}function fE(t){return t.length>=4&&t.get(0)==="projects"&&t.get(2)==="databases"}/** 1083 * @license 1084 * Copyright 2017 Google LLC 1085 * 1086 * Licensed under the Apache License, Version 2.0 (the "License"); 1087 * you may not use this file except in compliance with the License. 1088 * You may obtain a copy of the License at 1089 * 1090 * http://www.apache.org/licenses/LICENSE-2.0 1091 * 1092 * Unless required by applicable law or agreed to in writing, software 1093 * distributed under the License is distributed on an "AS IS" BASIS, 1094 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1095 * See the License for the specific language governing permissions and 1096 * limitations under the License. 1097 */class dE{constructor(e){this.Tt=e}}function pE(t){const e=uE({parent:t.parent,structuredQuery:t.structuredQuery});return t.limitType==="LAST"?ba(e,e.limit,"L"):e}/** 1098 * @license 1099 * Copyright 2019 Google LLC 1100 * 1101 * Licensed under the Apache License, Version 2.0 (the "License"); 1102 * you may not use this file except in compliance with the License. 1103 * You may obtain a copy of the License at 1104 * 1105 * http://www.apache.org/licenses/LICENSE-2.0 1106 * 1107 * Unless required by applicable law or agreed to in writing, software 1108 * distributed under the License is distributed on an "AS IS" BASIS, 1109 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1110 * See the License for the specific language governing permissions and 1111 * limitations under the License. 1112 */class mE{constructor(){this.Tn=new gE}addToCollectionParentIndex(e,n){return this.Tn.add(n),L.resolve()}getCollectionParents(e,n){return L.resolve(this.Tn.getEntries(n))}addFieldIndex(e,n){return L.resolve()}deleteFieldIndex(e,n){return L.resolve()}deleteAllFieldIndexes(e){return L.resolve()}createTargetIndexes(e,n){return L.resolve()}getDocumentsMatchingTarget(e,n){return L.resolve(null)}getIndexType(e,n){return L.resolve(0)}getFieldIndexes(e,n){return L.resolve([])}getNextCollectionGroupToUpdate(e){return L.resolve(null)}getMinOffset(e,n){return L.resolve(Dn.min())}getMinOffsetFromCollectionGroup(e,n){return L.resolve(Dn.min())}updateCollectionGroup(e,n,r){return L.resolve()}updateIndexEntries(e,n){return L.resolve()}}class gE{constructor(){this.index={}}add(e){const n=e.lastSegment(),r=e.popLast(),s=this.index[n]||new Je(Le.comparator),o=!s.has(r);return this.index[n]=s.add(r),o}has(e){const n=e.lastSegment(),r=e.popLast(),s=this.index[n];return s&&s.has(r)}getEntries(e){return(this.index[e]||new Je(Le.comparator)).toArray()}}/** 1113 * @license 1114 * Copyright 2018 Google LLC 1115 * 1116 * Licensed under the Apache License, Version 2.0 (the "License"); 1117 * you may not use this file except in compliance with the License. 1118 * You may obtain a copy of the License at 1119 * 1120 * http://www.apache.org/licenses/LICENSE-2.0 1121 * 1122 * Unless required by applicable law or agreed to in writing, software 1123 * distributed under the License is distributed on an "AS IS" BASIS, 1124 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1125 * See the License for the specific language governing permissions and 1126 * limitations under the License. 1127 */const Lu={didRun:!1,sequenceNumbersCollected:0,targetsRemoved:0,documentsRemoved:0},Od=41943040;class yt{static withCacheSize(e){return new yt(e,yt.DEFAULT_COLLECTION_PE
1127RCENTILE,yt.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}constructor(e,n,r){this.cacheSizeCollectionThreshold=e,this.percentileToCollect=n,this.maximumSequenceNumbersToCollect=r}}/** 1128 * @license 1129 * Copyright 2017 Google LLC 1130 * 1131 * Licensed under the Apache License, Version 2.0 (the "License"); 1132 * you may not use this file except in compliance with the License. 1133 * You may obtain a copy of the License at 1134 * 1135 * http://www.apache.org/licenses/LICENSE-2.0 1136 * 1137 * Unless required by applicable law or agreed to in writing, software 1138 * distributed under the License is distributed on an "AS IS" BASIS, 1139 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1140 * See the License for the specific language governing permissions and 1141 * limitations under the License. 1142 */yt.DEFAULT_COLLECTION_PERCENTILE=10,yt.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,yt.DEFAULT=new yt(Od,yt.DEFAULT_COLLECTION_PERCENTILE,yt.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),yt.DISABLED=new yt(-1,0,0);/** 1143 * @license 1144 * Copyright 2017 Google LLC 1145 * 1146 * Licensed under the Apache License, Version 2.0 (the "License"); 1147 * you may not use this file except in compliance with the License. 1148 * You may obtain a copy of the License at 1149 * 1150 * http://www.apache.org/licenses/LICENSE-2.0 1151 * 1152 * Unless required by applicable law or agreed to in writing, software 1153 * distributed under the License is distributed on an "AS IS" BASIS, 1154 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1155 * See the License for the specific language governing permissions and 1156 * limitations under the License. 1157 */class Or{constructor(e){this.$n=e}next(){return this.$n+=2,this.$n}static Kn(){return new Or(0)}static Un(){return new Or(-1)}}/** 1158 * @license 1159 * Copyright 2020 Google LLC 1160 * 1161 * Licensed under the Apache License, Version 2.0 (the "License"); 1162 * you may not use this file except in compliance with the License. 1163 * You may obtain a copy of the License at 1164 * 1165 * http://www.apache.org/licenses/LICENSE-2.0 1166 * 1167 * Unless required by applicable law or agreed to in writing, software 1168 * distributed under the License is distributed on an "AS IS" BASIS, 1169 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1170 * See the License for the specific language governing permissions and 1171 * limitations under the License. 1172 */const Fu="LruGarbageCollector",yE=1048576;function $u([t,e],[n,r]){const s=Ae(t,n);return s===0?Ae(e,r):s}class _E{constructor(e){this.Hn=e,this.buffer=new Je($u),this.Jn=0}Yn(){return++this.Jn}Zn(e){const n=[e,this.Yn()];if(this.buffer.size<this.Hn)this.buffer=this.buffer.add(n);else{const r=this.buffer.last();$u(n,r)<0&&(this.buffer=this.buffer.delete(r).add(n))}}get maxValue(){return this.buffer.last()[0]}}class vE{constructor(e,n,r){this.garbageCollector=e,this.asyncQueue=n,this.localStore=r,this.Xn=null}start(){this.garbageCollector.params.cacheSizeCollectionThreshold!==-1&&this.er(6e4)}stop(){this.Xn&&(this.Xn.cancel(),this.Xn=null)}get started(){return this.Xn!==null}er(e){ee(Fu,`Garbage collection scheduled in ${e}ms`),this.Xn=this.asyncQueue.enqueueAfterDelay("lru_garbage_collection",e,async()=>{this.Xn=null;try{await this.localStore.collectGarbage(this.garbageCollector)}catch(n){Ns(n)?ee(Fu,"Ignoring IndexedDB error during garbage collection: ",n):await Za(n)}await this.er(3e5)})}}class EE{constructor(e,n){this.tr=e,this.params=n}calculateTargetCount(e,n){return this.tr.nr(e).next(r=>Math.floor(n/100*r))}nthSequenceNumber(e,n){if(n===0)return L.resolve(el.ae);const r=new _E(n);return this.tr.forEachTarget(e,s=>r.Zn(s.sequenceNumber)).next(()=>this.tr.rr(e,s=>r.Zn(s))).next(()=>r.maxValue)}removeTargets(e,n,r){return this.tr.removeTargets(e,n,r)}removeOrphanedDocuments(e,n){return this.tr.removeOrphanedDocuments(e,n)}collect(e,n){return this.params.cacheSizeCollectionThreshold===-1?(ee("LruGarbageCollector","Garbage collection skipped; disabled"),L.resolve(Lu)):this.getCacheSize(e).next(r=>r<this.params.cacheSizeCollectionThreshold?(ee("LruGarbageCollector",`Garbage collection skipped; Cache size ${r} is lower than threshold ${this.params.cacheSizeCollectionThreshold}`),Lu):this.ir(e,n))}getCacheSize(e){return this.tr.getCacheSize(e)}ir(e,n){let r,s,o,a,l,u,f;const d=Date.now();return this.calculateTargetCount(e,this.params.percentileToCollect).next(p=>(p>this.params.maximumSequenceNumbersToCollect?(ee("LruGarbageCollector",`C
1172apping sequence numbers to collect down to the maximum of ${this.params.maximumSequenceNumbersToCollect} from ${p}`),s=this.params.maximumSequenceNumbersToCollect):s=p,a=Date.now(),this.nthSequenceNumber(e,s))).next(p=>(r=p,l=Date.now(),this.removeTargets(e,r,n))).next(p=>(o=p,u=Date.now(),this.removeOrphanedDocuments(e,r))).next(p=>(f=Date.now(),yr()<=ge.DEBUG&&ee("LruGarbageCollector",`LRU Garbage Collection 1173 Counted targets in ${a-d}ms 1174 Determined least recently used ${s} in `+(l-a)+`ms 1175 Removed ${o} targets in `+(u-l)+`ms 1176 Removed ${p} documents in `+(f-u)+`ms 1177Total Duration: ${f-d}ms`),L.resolve({didRun:!0,sequenceNumbersCollected:s,targetsRemoved:o,documentsRemoved:p})))}}function wE(t,e){return new EE(t,e)}/** 1178 * @license 1179 * Copyright 2017 Google LLC 1180 * 1181 * Licensed under the Apache License, Version 2.0 (the "License"); 1182 * you may not use this file except in compliance with the License. 1183 * You may obtain a copy of the License at 1184 * 1185 * http://www.apache.org/licenses/LICENSE-2.0 1186 * 1187 * Unless required by applicable law or agreed to in writing, software 1188 * distributed under the License is distributed on an "AS IS" BASIS, 1189 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1190 * See the License for the specific language governing permissions and 1191 * limitations under the License. 1192 */class TE{constructor(){this.changes=new ar(e=>e.toString(),(e,n)=>e.isEqual(n)),this.changesApplied=!1}addEntry(e){this.assertNotApplied(),this.changes.set(e.key,e)}removeEntry(e,n){this.assertNotApplied(),this.changes.set(e,Lt.newInvalidDocument(e).setReadTime(n))}getEntry(e,n){this.assertNotApplied();const r=this.changes.get(n);return r!==void 0?L.resolve(r):this.getFromCache(e,n)}getEntries(e,n){return this.getAllFromCache(e,n)}apply(e){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(e)}assertNotApplied(){}}/** 1193 * @license 1194 * Copyright 2017 Google LLC 1195 * 1196 * Licensed under the Apache License, Version 2.0 (the "License"); 1197 * you may not use this file except in compliance with the License. 1198 * You may obtain a copy of the License at 1199 * 1200 * http://www.apache.org/licenses/LICENSE-2.0 1201 * 1202 * Unless required by applicable law or agreed to in writing, software 1203 * distributed under the License is distributed on an "AS IS" BASIS, 1204 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1205 * See the License for the specific language governing permissions and 1206 * limitations under the License. 1207 *//** 1208 * @license 1209 * Copyright 2022 Google LLC 1210 * 1211 * Licensed under the Apache License, Version 2.0 (the "License"); 1212 * you may not use this file except in compliance with the License. 1213 * You may obtain a copy of the License at 1214 * 1215 * http://www.apache.org/licenses/LICENSE-2.0 1216 * 1217 * Unless required by applicable law or agreed to in writing, software 1218 * distributed under the License is distributed on an "AS IS" BASIS, 1219 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1220 * See the License for the specific language governing permissions and 1221 * limitations under the License. 1222 */class bE{constructor(e,n){this.overlayedDocument=e,this.mutatedFields=n}}/** 1223 * @license 1224 * Copyright 2017 Google LLC 1225 * 1226 * Licensed under the Apache License, Version 2.0 (the "License"); 1227 * you may not use this file except in compliance with the License. 1228 * You may obtain a copy of the License at 1229 * 1230 * http://www.apache.org/licenses/LICENSE-2.0 1231 * 1232 * Unless required by applicable law or agreed to in writing, software 1233 * distributed under the License is distributed on an "AS IS" BASIS, 1234 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1235 * See the License for the specific language governing permissions and 1236 * limitations under the License. 1237 */class IE{constructor(e,n,r,s){this.remoteDocumentCache=e,this.mutationQueue=n,this.documentOverlayCache=r,this.indexManager=s}getDocument(e,n){let r=null;return this.documentOverlayCache.getOverlay(e,n).next(s=>(r=s,this.remoteDocumentCache.getEntry(e,n))).next(s=>(r!==null&&ps(r.mutation,s,jt.empty(),qe.now()),s))}getDocuments(e,n){return this.remoteDocumentCache.getEntries(e,n).next(r=>this.getLocalViewOfDocuments(e,r,at()).next(()=>r))}getLocalViewOfDocuments(e,n,r=at()){const s=Gn();return this.populateOverlays(e,s,n).next(()=>this.computeViews(e,n,s,r).next(o=>{let a=li();return o.forEach((l,u)=>{a=a.insert(l,u.overlayedDocument)}),a}))}getOverlayedDocuments(e,n){const r=Gn();return this.populateOverlays(e,r,n).next(()=>
1237this.computeViews(e,n,r,at()))}populateOverlays(e,n,r){const s=[];return r.forEach(o=>{n.has(o)||s.push(o)}),this.documentOverlayCache.getOverlays(e,s).next(o=>{o.forEach((a,l)=>{n.set(a,l)})})}computeViews(e,n,r,s){let o=Ni();const a=ds(),l=function(){return ds()}();return n.forEach((u,f)=>{const d=r.get(f.key);s.has(f.key)&&(d===void 0||d.mutation instanceof lr)?o=o.insert(f.key,f):d!==void 0?(a.set(f.key,d.mutation.getFieldMask()),ps(d.mutation,f,d.mutation.getFieldMask(),qe.now())):a.set(f.key,jt.empty())}),this.recalculateAndSaveOverlays(e,o).next(u=>(u.forEach((f,d)=>a.set(f,d)),n.forEach((f,d)=>{var p;return l.set(f,new bE(d,(p=a.get(f))!==null&&p!==void 0?p:null))}),l))}recalculateAndSaveOverlays(e,n){const r=ds();let s=new wt((a,l)=>a-l),o=at();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(e,n).next(a=>{for(const l of a)l.keys().forEach(u=>{const f=n.get(u);if(f===null)return;let d=r.get(u)||jt.empty();d=l.applyToLocalView(f,d),r.set(u,d);const p=(s.get(l.batchId)||at()).add(u);s=s.insert(l.batchId,p)})}).next(()=>{const a=[],l=s.getReverseIterator();for(;l.hasNext();){const u=l.getNext(),f=u.key,d=u.value,p=bd();d.forEach(_=>{if(!o.has(_)){const b=Cd(n.get(_),r.get(_));b!==null&&p.set(_,b),o=o.add(_)}}),a.push(this.documentOverlayCache.saveOverlays(e,f,p))}return L.waitFor(a)}).next(()=>r)}recalculateAndSaveOverlaysForDocumentKeys(e,n){return this.remoteDocumentCache.getEntries(e,n).next(r=>this.recalculateAndSaveOverlays(e,r))}getDocumentsMatchingQuery(e,n,r,s){return function(a){return ue.isDocumentKey(a.path)&&a.collectionGroup===null&&a.filters.length===0}(n)?this.getDocumentsMatchingDocumentQuery(e,n.path):O0(n)?this.getDocumentsMatchingCollectionGroupQuery(e,n,r,s):this.getDocumentsMatchingCollectionQuery(e,n,r,s)}getNextDocuments(e,n,r,s){return this.remoteDocumentCache.getAllFromCollectionGroup(e,n,r,s).next(o=>{const a=s-o.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(e,n,r.largestBatchId,s-o.size):L.resolve(Gn());let l=Rs,u=o;return a.next(f=>L.forEach(f,(d,p)=>(l<p.largestBatchId&&(l=p.largestBatchId),o.get(d)?L.resolve():this.remoteDocumentCache.getEntry(e,d).next(_=>{u=u.insert(d,_)}))).next(()=>this.populateOverlays(e,f,o)).next(()=>this.computeViews(e,u,f,at())).next(d=>({batchId:l,changes:Td(d)})))})}getDocumentsMatchingDocumentQuery(e,n){return this.getDocument(e,new ue(n)).next(r=>{let s=li();return r.isFoundDocument()&&(s=s.insert(r.key,r)),s})}getDocumentsMatchingCollectionGroupQuery(e,n,r,s){const o=n.collectionGroup;let a=li();return this.indexManager.getCollectionParents(e,o).next(l=>L.forEach(l,u=>{const f=function(p,_){return new ro(_,null,p.explicitOrderBy.slice(),p.filters.slice(),p.limit,p.limitType,p.startAt,p.endAt)}(n,u.child(o));return this.getDocumentsMatchingCollectionQuery(e,f,r,s).next(d=>{d.forEach((p,_)=>{a=a.insert(p,_)})})}).next(()=>a))}getDocumentsMatchingCollectionQuery(e,n,r,s){let o;return this.documentOverlayCache.getOverlaysForCollection(e,n.path,r.largestBatchId).next(a=>(o=a,this.remoteDocumentCache.getDocumentsMatchingQuery(e,n,r,o,s))).next(a=>{o.forEach((u,f)=>{const d=f.getKey();a.get(d)===null&&(a=a.insert(d,Lt.newInvalidDocument(d)))});let l=li();return a.forEach((u,f)=>{const d=o.get(u);d!==void 0&&ps(d.mutation,f,jt.empty(),qe.now()),ll(n,f)&&(l=l.insert(u,f))}),l})}}/** 1238 * @license 1239 * Copyright 2020 Google LLC 1240 * 1241 * Licensed under the Apache License, Version 2.0 (the "License"); 1242 * you may not use this file except in compliance with the License. 1243 * You may obtain a copy of the License at 1244 * 1245 * http://www.apache.org/licenses/LICENSE-2.0 1246 * 1247 * Unless required by applicable law or agreed to in writing, software 1248 * distributed under the License is distributed on an "AS IS" BASIS, 1249 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1250 * See the License for the specific language governing permissions and 1251 * limitations under the License. 1252 */class AE{constructor(e){this.serializer=e,this.dr=new Map,this.Ar=new Map}getBundleMetadata(e,n){return L.resolve(this.dr.get(n))}saveBundleMetadata(e,n){return this.dr.set(n.id,function(s){return{id:s.id,version:s.version,createTime:Rr(s.createTime)}}(n)),L.resolve()}getNamedQuery(e,n){return L.resolve(this.Ar.get(n))}saveNamedQuery(e,n){return this.Ar.set(n.name,function(s){return{name:s.name,query:pE(s.bundledQuery),readTime:Rr(s.readTime)}}(n)),L.resolve()}}/** 1253 * @license 1254 * Copyright 2022 Google LLC 1255 * 1256 * Licensed under the Apache License, Version 2.0 (the "License");
1257 * you may not use this file except in compliance with the License. 1258 * You may obtain a copy of the License at 1259 * 1260 * http://www.apache.org/licenses/LICENSE-2.0 1261 * 1262 * Unless required by applicable law or agreed to in writing, software 1263 * distributed under the License is distributed on an "AS IS" BASIS, 1264 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1265 * See the License for the specific language governing permissions and 1266 * limitations under the License. 1267 */class RE{constructor(){this.overlays=new wt(ue.comparator),this.Rr=new Map}getOverlay(e,n){return L.resolve(this.overlays.get(n))}getOverlays(e,n){const r=Gn();return L.forEach(n,s=>this.getOverlay(e,s).next(o=>{o!==null&&r.set(s,o)})).next(()=>r)}saveOverlays(e,n,r){return r.forEach((s,o)=>{this.Et(e,n,o)}),L.resolve()}removeOverlaysForBatchId(e,n,r){const s=this.Rr.get(r);return s!==void 0&&(s.forEach(o=>this.overlays=this.overlays.remove(o)),this.Rr.delete(r)),L.resolve()}getOverlaysForCollection(e,n,r){const s=Gn(),o=n.length+1,a=new ue(n.child("")),l=this.overlays.getIteratorFrom(a);for(;l.hasNext();){const u=l.getNext().value,f=u.getKey();if(!n.isPrefixOf(f.path))break;f.path.length===o&&u.largestBatchId>r&&s.set(u.getKey(),u)}return L.resolve(s)}getOverlaysForCollectionGroup(e,n,r,s){let o=new wt((f,d)=>f-d);const a=this.overlays.getIterator();for(;a.hasNext();){const f=a.getNext().value;if(f.getKey().getCollectionGroup()===n&&f.largestBatchId>r){let d=o.get(f.largestBatchId);d===null&&(d=Gn(),o=o.insert(f.largestBatchId,d)),d.set(f.getKey(),f)}}const l=Gn(),u=o.getIterator();for(;u.hasNext()&&(u.getNext().value.forEach((f,d)=>l.set(f,d)),!(l.size()>=s)););return L.resolve(l)}Et(e,n,r){const s=this.overlays.get(r.key);if(s!==null){const a=this.Rr.get(s.largestBatchId).delete(r.key);this.Rr.set(s.largestBatchId,a)}this.overlays=this.overlays.insert(r.key,new J0(n,r));let o=this.Rr.get(n);o===void 0&&(o=at(),this.Rr.set(n,o)),this.Rr.set(n,o.add(r.key))}}/** 1268 * @license 1269 * Copyright 2024 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 */class SE{constructor(){this.sessionToken=Jt.EMPTY_BYTE_STRING}getSessionToken(e){return L.resolve(this.sessionToken)}setSessionToken(e,n){return this.sessionToken=n,L.resolve()}}/** 1283 * @license 1284 * Copyright 2017 Google LLC 1285 * 1286 * Licensed under the Apache License, Version 2.0 (the "License"); 1287 * you may not use this file except in compliance with the License. 1288 * You may obtain a copy of the License at 1289 * 1290 * http://www.apache.org/licenses/LICENSE-2.0 1291 * 1292 * Unless required by applicable law or agreed to in writing, software 1293 * distributed under the License is distributed on an "AS IS" BASIS, 1294 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1295 * See the License for the specific language governing permissions and 1296 * limitations under the License. 1297 */class hl{constructor(){this.Vr=new Je(ze.mr),this.gr=new Je(ze.pr)}isEmpty(){return this.Vr.isEmpty()}addReference(e,n){const r=new ze(e,n);this.Vr=this.Vr.add(r),this.gr=this.gr.add(r)}yr(e,n){e.forEach(r=>this.addReference(r,n))}removeReference(e,n){this.wr(new ze(e,n))}br(e,n){e.forEach(r=>this.removeReference(r,n))}Sr(e){const n=new ue(new Le([])),r=new ze(n,e),s=new ze(n,e+1),o=[];return this.gr.forEachInRange([r,s],a=>{this.wr(a),o.push(a.key)}),o}Dr(){this.Vr.forEach(e=>this.wr(e))}wr(e){this.Vr=this.Vr.delete(e),this.gr=this.gr.delete(e)}vr(e){const n=new ue(new Le([])),r=new ze(n,e),s=new ze(n,e+1);let o=at();return this.gr.forEachInRange([r,s],a=>{o=o.add(a.key)}),o}containsKey(e){const n=new ze(e,0),r=this.Vr.firstAfterOrEqual(n);return r!==null&&e.isEqual(r.key)}}class ze{constructor(e,n){this.key=e,this.Cr=n}static mr(e,n){return ue.comparator(e.key,n.key)||Ae(e.Cr,n.Cr)}static pr(e,n){return Ae(e.Cr,n.Cr)||ue.comparator(e.key,n.key)}}/** 1298 * @license 1299 * Copyright 2017 Google LLC 1300 * 1301 * Licensed under the Apache License, Version 2.0 (the "License");
1302 * you may not use this file except in compliance with the License. 1303 * You may obtain a copy of the License at 1304 * 1305 * http://www.apache.org/licenses/LICENSE-2.0 1306 * 1307 * Unless required by applicable law or agreed to in writing, software 1308 * distributed under the License is distributed on an "AS IS" BASIS, 1309 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1310 * See the License for the specific language governing permissions and 1311 * limitations under the License. 1312 */class PE{constructor(e,n){this.indexManager=e,this.referenceDelegate=n,this.mutationQueue=[],this.Fr=1,this.Mr=new Je(ze.mr)}checkEmpty(e){return L.resolve(this.mutationQueue.length===0)}addMutationBatch(e,n,r,s){const o=this.Fr;this.Fr++,this.mutationQueue.length>0&&this.mutationQueue[this.mutationQueue.length-1];const a=new Y0(o,n,r,s);this.mutationQueue.push(a);for(const l of s)this.Mr=this.Mr.add(new ze(l.key,o)),this.indexManager.addToCollectionParentIndex(e,l.key.path.popLast());return L.resolve(a)}lookupMutationBatch(e,n){return L.resolve(this.Or(n))}getNextMutationBatchAfterBatchId(e,n){const r=n+1,s=this.Nr(r),o=s<0?0:s;return L.resolve(this.mutationQueue.length>o?this.mutationQueue[o]:null)}getHighestUnacknowledgedBatchId(){return L.resolve(this.mutationQueue.length===0?tl:this.Fr-1)}getAllMutationBatches(e){return L.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(e,n){const r=new ze(n,0),s=new ze(n,Number.POSITIVE_INFINITY),o=[];return this.Mr.forEachInRange([r,s],a=>{const l=this.Or(a.Cr);o.push(l)}),L.resolve(o)}getAllMutationBatchesAffectingDocumentKeys(e,n){let r=new Je(Ae);return n.forEach(s=>{const o=new ze(s,0),a=new ze(s,Number.POSITIVE_INFINITY);this.Mr.forEachInRange([o,a],l=>{r=r.add(l.Cr)})}),L.resolve(this.Br(r))}getAllMutationBatchesAffectingQuery(e,n){const r=n.path,s=r.length+1;let o=r;ue.isDocumentKey(o)||(o=o.child(""));const a=new ze(new ue(o),0);let l=new Je(Ae);return this.Mr.forEachWhile(u=>{const f=u.key.path;return!!r.isPrefixOf(f)&&(f.length===s&&(l=l.add(u.Cr)),!0)},a),L.resolve(this.Br(l))}Br(e){const n=[];return e.forEach(r=>{const s=this.Or(r);s!==null&&n.push(s)}),n}removeMutationBatch(e,n){Fe(this.Lr(n.batchId,"removed")===0),this.mutationQueue.shift();let r=this.Mr;return L.forEach(n.mutations,s=>{const o=new ze(s.key,n.batchId);return r=r.delete(o),this.referenceDelegate.markPotentiallyOrphaned(e,s.key)}).next(()=>{this.Mr=r})}qn(e){}containsKey(e,n){const r=new ze(n,0),s=this.Mr.firstAfterOrEqual(r);return L.resolve(n.isEqual(s&&s.key))}performConsistencyCheck(e){return this.mutationQueue.length,L.resolve()}Lr(e,n){return this.Nr(e)}Nr(e){return this.mutationQueue.length===0?0:e-this.mutationQueue[0].batchId}Or(e){const n=this.Nr(e);return n<0||n>=this.mutationQueue.length?null:this.mutationQueue[n]}}/** 1313 * @license 1314 * Copyright 2017 Google LLC 1315 * 1316 * Licensed under the Apache License, Version 2.0 (the "License"); 1317 * you may not use this file except in compliance with the License. 1318 * You may obtain a copy of the License at 1319 * 1320 * http://www.apache.org/licenses/LICENSE-2.0 1321 * 1322 * Unless required by applicable law or agreed to in writing, software 1323 * distributed under the License is distributed on an "AS IS" BASIS, 1324 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1325 * See the License for the specific language governing permissions and 1326 * limitations under the License. 1327 */class CE{constructor(e){this.kr=e,this.docs=function(){return new wt(ue.comparator)}(),this.size=0}setIndexManager(e){this.indexManager=e}addEntry(e,n){const r=n.key,s=this.docs.get(r),o=s?s.size:0,a=this.kr(n);return this.docs=this.docs.insert(r,{document:n.mutableCopy(),size:a}),this.size+=a-o,this.indexManager.addToCollectionParentIndex(e,r.path.popLast())}removeEntry(e){const n=this.docs.get(e);n&&(this.docs=this.docs.remove(e),this.size-=n.size)}getEntry(e,n){const r=this.docs.get(n);return L.resolve(r?r.document.mutableCopy():Lt.newInvalidDocument(n))}getEntries(e,n){let r=Ni();return n.forEach(s=>{const o=this.docs.get(s);r=r.insert(s,o?o.document.mutableCopy():Lt.newInvalidDocument(s))}),L.resolve(r)}
1327getDocumentsMatchingQuery(e,n,r,s){let o=Ni();const a=n.path,l=new ue(a.child("__id-9223372036854775808__")),u=this.docs.getIteratorFrom(l);for(;u.hasNext();){const{key:f,value:{document:d}}=u.getNext();if(!a.isPrefixOf(f.path))break;f.path.length>a.length+1||c0(l0(d),r)<=0||(s.has(d.key)||ll(n,d))&&(o=o.insert(d.key,d.mutableCopy()))}return L.resolve(o)}getAllFromCollectionGroup(e,n,r,s){he()}qr(e,n){return L.forEach(this.docs,r=>n(r))}newChangeBuffer(e){return new VE(this)}getSize(e){return L.resolve(this.size)}}class VE extends TE{constructor(e){super(),this.Ir=e}applyChanges(e){const n=[];return this.changes.forEach((r,s)=>{s.isValidDocument()?n.push(this.Ir.addEntry(e,s)):this.Ir.removeEntry(r)}),L.waitFor(n)}getFromCache(e,n){return this.Ir.getEntry(e,n)}getAllFromCache(e,n){return this.Ir.getEntries(e,n)}}/** 1328 * @license 1329 * Copyright 2017 Google LLC 1330 * 1331 * Licensed under the Apache License, Version 2.0 (the "License"); 1332 * you may not use this file except in compliance with the License. 1333 * You may obtain a copy of the License at 1334 * 1335 * http://www.apache.org/licenses/LICENSE-2.0 1336 * 1337 * Unless required by applicable law or agreed to in writing, software 1338 * distributed under the License is distributed on an "AS IS" BASIS, 1339 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1340 * See the License for the specific language governing permissions and 1341 * limitations under the License. 1342 */class xE{constructor(e){this.persistence=e,this.Qr=new ar(n=>ol(n),al),this.lastRemoteSnapshotVersion=De.min(),this.highestTargetId=0,this.$r=0,this.Kr=new hl,this.targetCount=0,this.Ur=Or.Kn()}forEachTarget(e,n){return this.Qr.forEach((r,s)=>n(s)),L.resolve()}getLastRemoteSnapshotVersion(e){return L.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(e){return L.resolve(this.$r)}allocateTargetId(e){return this.highestTargetId=this.Ur.next(),L.resolve(this.highestTargetId)}setTargetsMetadata(e,n,r){return r&&(this.lastRemoteSnapshotVersion=r),n>this.$r&&(this.$r=n),L.resolve()}zn(e){this.Qr.set(e.target,e);const n=e.targetId;n>this.highestTargetId&&(this.Ur=new Or(n),this.highestTargetId=n),e.sequenceNumber>this.$r&&(this.$r=e.sequenceNumber)}addTargetData(e,n){return this.zn(n),this.targetCount+=1,L.resolve()}updateTargetData(e,n){return this.zn(n),L.resolve()}removeTargetData(e,n){return this.Qr.delete(n.target),this.Kr.Sr(n.targetId),this.targetCount-=1,L.resolve()}removeTargets(e,n,r){let s=0;const o=[];return this.Qr.forEach((a,l)=>{l.sequenceNumber<=n&&r.get(l.targetId)===null&&(this.Qr.delete(a),o.push(this.removeMatchingKeysForTargetId(e,l.targetId)),s++)}),L.waitFor(o).next(()=>s)}getTargetCount(e){return L.resolve(this.targetCount)}getTargetData(e,n){const r=this.Qr.get(n)||null;return L.resolve(r)}addMatchingKeys(e,n,r){return this.Kr.yr(n,r),L.resolve()}removeMatchingKeys(e,n,r){this.Kr.br(n,r);const s=this.persistence.referenceDelegate,o=[];return s&&n.forEach(a=>{o.push(s.markPotentiallyOrphaned(e,a))}),L.waitFor(o)}removeMatchingKeysForTargetId(e,n){return this.Kr.Sr(n),L.resolve()}getMatchingKeysForTargetId(e,n){const r=this.Kr.vr(n);return L.resolve(r)}containsKey(e,n){return L.resolve(this.Kr.containsKey(n))}}/** 1343 * @license 1344 * Copyright 2017 Google LLC 1345 * 1346 * Licensed under the Apache License, Version 2.0 (the "License"); 1347 * you may not use this file except in compliance with the License. 1348 * You may obtain a copy of the License at 1349 * 1350 * http://www.apache.org/licenses/LICENSE-2.0 1351 * 1352 * Unless required by applicable law or agreed to in writing, software 1353 * distributed under the License is distributed on an "AS IS" BASIS, 1354 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1355 * See the License for the specific language governing permissions and 1356 * limitations under the License. 1357 */class Nd{constructor(e,n){this.Wr={},this.overlays={},this.Gr=new el(0),this.zr=!1,this.zr=!0,this.jr=new SE,this.referenceDelegate=e(this),this.Hr=new xE(this),this.indexManager=new mE,this.remoteDocumentCache=function(s){return new CE(s)}(r=>this.referenceDelegate.Jr(r)),this.serializer=new dE(n),this.Yr=new AE(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.zr=!1,Promise.resolve()}get started(){return this.zr}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(e){return this.indexManager}getDocumentOverlayCache(e){let n=this.overlays[e.toKey()];return n||(n=new RE,this.overlays[e.toKey()]=n),n}getMutationQueue(e,n){let r=this.Wr[e.toKey()];return r||(r=new PE(n,this.referenceDelegate),this.Wr[e.toKey()]=r),r}getGlobalsCache(){return this.jr}getTargetCache(){return this.Hr}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.Yr}runTransaction(e,n,r){ee("MemoryPersistence","Starting transaction:",e);const s=new DE(this.Gr.next());return this.referenceDelegate.Zr(),r(s).next(o=>this.referenceDelegate.Xr(s).next(()=>o)).toPromise().then(o=>(s.raiseOnCommittedEvent(),o))}ei(e,n){return L.or(Object.values(this.Wr).map(r=>()=>r.containsKey(e,n)))}}class DE extends h0{constructor(e){super(),this.currentSequenceNumber=e}}class fl{constructor(e){this.persistence=e,this.ti=new hl,this.ni=null}static ri(e){return new fl(e)}get ii(){if(this.ni)return this.ni;throw he()}addReference(e,n,r){return this.ti.addReference(r,n),this.ii.delete(r.toString()),L.resolve()}removeReference(e,n,r){return this.ti.removeReference(r,n),this.ii.add(r.toString()),L.resolve()}markPotentiallyOrphaned(e,n){return this.ii.add(n.toString()),L.resolve()}
1357removeTarget(e,n){this.ti.Sr(n.targetId).forEach(s=>this.ii.add(s.toString()));const r=this.persistence.getTargetCache();return r.getMatchingKeysForTargetId(e,n.targetId).next(s=>{s.forEach(o=>this.ii.add(o.toString()))}).next(()=>r.removeTargetData(e,n))}Zr(){this.ni=new Set}Xr(e){const n=this.persistence.getRemoteDocumentCache().newChangeBuffer();return L.forEach(this.ii,r=>{const s=ue.fromPath(r);return this.si(e,s).next(o=>{o||n.removeEntry(s,De.min())})}).next(()=>(this.ni=null,n.apply(e)))}updateLimboDocument(e,n){return this.si(e,n).next(r=>{r?this.ii.delete(n.toString()):this.ii.add(n.toString())})}Jr(e){return 0}si(e,n){return L.or([()=>L.resolve(this.ti.containsKey(n)),()=>this.persistence.getTargetCache().containsKey(e,n),()=>this.persistence.ei(e,n)])}}class Fi{constructor(e,n){this.persistence=e,this.oi=new ar(r=>p0(r.path),(r,s)=>r.isEqual(s)),this.garbageCollector=wE(this,n)}static ri(e,n){return new Fi(e,n)}Zr(){}Xr(e){return L.resolve()}forEachTarget(e,n){return this.persistence.getTargetCache().forEachTarget(e,n)}nr(e){const n=this.sr(e);return this.persistence.getTargetCache().getTargetCount(e).next(r=>n.next(s=>r+s))}sr(e){let n=0;return this.rr(e,r=>{n++}).next(()=>n)}rr(e,n){return L.forEach(this.oi,(r,s)=>this.ar(e,r,s).next(o=>o?L.resolve():n(s)))}removeTargets(e,n,r){return this.persistence.getTargetCache().removeTargets(e,n,r)}removeOrphanedDocuments(e,n){let r=0;const s=this.persistence.getRemoteDocumentCache(),o=s.newChangeBuffer();return s.qr(e,a=>this.ar(e,a,n).next(l=>{l||(r++,o.removeEntry(a,De.min()))})).next(()=>o.apply(e)).next(()=>r)}markPotentiallyOrphaned(e,n){return this.oi.set(n,e.currentSequenceNumber),L.resolve()}removeTarget(e,n){const r=n.withSequenceNumber(e.currentSequenceNumber);return this.persistence.getTargetCache().updateTargetData(e,r)}addReference(e,n,r){return this.oi.set(r,e.currentSequenceNumber),L.resolve()}removeReference(e,n,r){return this.oi.set(r,e.currentSequenceNumber),L.resolve()}updateLimboDocument(e,n){return this.oi.set(n,e.currentSequenceNumber),L.resolve()}Jr(e){let n=e.key.toString().length;return e.isFoundDocument()&&(n+=yi(e.data.value)),n}ar(e,n,r){return L.or([()=>this.persistence.ei(e,n),()=>this.persistence.getTargetCache().containsKey(e,n),()=>{const s=this.oi.get(n);return L.resolve(s!==void 0&&s>r)}])}getCacheSize(e){return this.persistence.getRemoteDocumentCache().getSize(e)}}/** 1358 * @license 1359 * Copyright 2017 Google LLC 1360 * 1361 * Licensed under the Apache License, Version 2.0 (the "License"); 1362 * you may not use this file except in compliance with the License. 1363 * You may obtain a copy of the License at 1364 * 1365 * http://www.apache.org/licenses/LICENSE-2.0 1366 * 1367 * Unless required by applicable law or agreed to in writing, software 1368 * distributed under the License is distributed on an "AS IS" BASIS, 1369 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1370 * See the License for the specific language governing permissions and 1371 * limitations under the License. 1372 */class dl{constructor(e,n,r,s){this.targetId=e,this.fromCache=n,this.Hi=r,this.Ji=s}static Yi(e,n){let r=at(),s=at();for(const o of n.docChanges)switch(o.type){case 0:r=r.add(o.doc.key);break;case 1:s=s.add(o.doc.key)}return new dl(e,n.fromCache,r,s)}}/** 1373 * @license 1374 * Copyright 2023 Google LLC 1375 * 1376 * Licensed under the Apache License, Version 2.0 (the "License"); 1377 * you may not use this file except in compliance with the License. 1378 * You may obtain a copy of the License at 1379 * 1380 * http://www.apache.org/licenses/LICENSE-2.0 1381 * 1382 * Unless required by applicable law or agreed to in writing, software 1383 * distributed under the License is distributed on an "AS IS" BASIS, 1384 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1385 * See the License for the specific language governing permissions and 1386 * limitations under the License. 1387 */class kE{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(e){this._documentReadCount+=e}}/** 1388 * @license 1389 * Copyright 2019 Google LLC 1390 * 1391 * Licensed under the Apache License, Version 2.0 (the "License");
1392 * you may not use this file except in compliance with the License. 1393 * You may obtain a copy of the License at 1394 * 1395 * http://www.apache.org/licenses/LICENSE-2.0 1396 * 1397 * Unless required by applicable law or agreed to in writing, software 1398 * distributed under the License is distributed on an "AS IS" BASIS, 1399 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1400 * See the License for the specific language governing permissions and 1401 * limitations under the License. 1402 */class OE{constructor(){this.Zi=!1,this.Xi=!1,this.es=100,this.ts=function(){return k_()?8:f0(V_())>0?6:4}()}initialize(e,n){this.ns=e,this.indexManager=n,this.Zi=!0}getDocumentsMatchingQuery(e,n,r,s){const o={result:null};return this.rs(e,n).next(a=>{o.result=a}).next(()=>{if(!o.result)return this.ss(e,n,s,r).next(a=>{o.result=a})}).next(()=>{if(o.result)return;const a=new kE;return this._s(e,n,a).next(l=>{if(o.result=l,this.Xi)return this.us(e,n,a,l.size)})}).next(()=>o.result)}us(e,n,r,s){return r.documentReadCount<this.es?(yr()<=ge.DEBUG&&ee("QueryEngine","SDK will not create cache indexes for query:",Zr(n),"since it only creates cache indexes for collection contains","more than or equal to",this.es,"documents"),L.resolve()):(yr()<=ge.DEBUG&&ee("QueryEngine","Query:",Zr(n),"scans",r.documentReadCount,"local documents and returns",s,"documents as results."),r.documentReadCount>this.ts*s?(yr()<=ge.DEBUG&&ee("QueryEngine","The SDK decides to create cache indexes for query:",Zr(n),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(e,Yn(n))):L.resolve())}rs(e,n){if(xu(n))return L.resolve(null);let r=Yn(n);return this.indexManager.getIndexType(e,r).next(s=>s===0?null:(n.limit!==null&&s===1&&(n=ba(n,null,"F"),r=Yn(n)),this.indexManager.getDocumentsMatchingTarget(e,r).next(o=>{const a=at(...o);return this.ns.getDocuments(e,a).next(l=>this.indexManager.getMinOffset(e,r).next(u=>{const f=this.cs(n,l);return this.ls(n,f,a,u.readTime)?this.rs(e,ba(n,null,"F")):this.hs(e,f,n,u)}))})))}ss(e,n,r,s){return xu(n)||s.isEqual(De.min())?L.resolve(null):this.ns.getDocuments(e,r).next(o=>{const a=this.cs(n,o);return this.ls(n,a,r,s)?L.resolve(null):(yr()<=ge.DEBUG&&ee("QueryEngine","Re-using previous result from %s to execute query: %s",s.toString(),Zr(n)),this.hs(e,a,n,a0(s,Rs)).next(l=>l))})}cs(e,n){let r=new Je(M0(e));return n.forEach((s,o)=>{ll(e,o)&&(r=r.add(o))}),r}ls(e,n,r,s){if(e.limit===null)return!1;if(r.size!==n.size)return!0;const o=e.limitType==="F"?n.last():n.first();return!!o&&(o.hasPendingWrites||o.version.compareTo(s)>0)}_s(e,n,r){return yr()<=ge.DEBUG&&ee("QueryEngine","Using full collection scan to execute query:",Zr(n)),this.ns.getDocumentsMatchingQuery(e,n,Dn.min(),r)}hs(e,n,r,s){return this.ns.getDocumentsMatchingQuery(e,r,s).next(o=>(n.forEach(a=>{o=o.insert(a.key,a)}),o))}}/** 1403 * @license 1404 * Copyright 2020 Google LLC 1405 * 1406 * Licensed under the Apache License, Version 2.0 (the "License"); 1407 * you may not use this file except in compliance with the License. 1408 * You may obtain a copy of the License at 1409 * 1410 * http://www.apache.org/licenses/LICENSE-2.0 1411 * 1412 * Unless required by applicable law or agreed to in writing, software 1413 * distributed under the License is distributed on an "AS IS" BASIS, 1414 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1415 * See the License for the specific language governing permissions and 1416 * limitations under the License. 1417 */const NE="LocalStore";class ME{constructor(e,n,r,s){this.persistence=e,this.Ps=n,this.serializer=s,this.Ts=new wt(Ae),this.Is=new ar(o=>ol(o),al),this.Es=new Map,this.ds=e.getRemoteDocumentCache(),this.Hr=e.getTargetCache(),this.Yr=e.getBundleCache(),this.As(r)}As(e){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(e),this.indexManager=this.persistence.getIndexManager(e),this.mutationQueue=this.persistence.getMutationQueue(e,this.indexManager),this.localDocuments=new IE(this.ds,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.ds.setIndexManager(this.indexManager),this.Ps.initialize(this.localDocuments,this.indexManager)}collectGarbage(e){return this.persistence.runTransaction("Collect garbage","readwrite-primary",n=>e.collect(n,this.Ts))}}function LE(t,e,n,r){return new ME(t,e,n,r)}async function Md(t,e){const n=Ve(t);return await n.persistence.runTransaction("Handle user change","readonly",r=>{let s;
1417return n.mutationQueue.getAllMutationBatches(r).next(o=>(s=o,n.As(e),n.mutationQueue.getAllMutationBatches(r))).next(o=>{const a=[],l=[];let u=at();for(const f of s){a.push(f.batchId);for(const d of f.mutations)u=u.add(d.key)}for(const f of o){l.push(f.batchId);for(const d of f.mutations)u=u.add(d.key)}return n.localDocuments.getDocuments(r,u).next(f=>({Rs:f,removedBatchIds:a,addedBatchIds:l}))})})}function FE(t,e){const n=Ve(t);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",r=>{const s=e.batch.keys(),o=n.ds.newChangeBuffer({trackRemovals:!0});return function(l,u,f,d){const p=f.batch,_=p.keys();let b=L.resolve();return _.forEach(x=>{b=b.next(()=>d.getEntry(u,x)).next(F=>{const j=f.docVersions.get(x);Fe(j!==null),F.version.compareTo(j)<0&&(p.applyToRemoteDocument(F,f),F.isValidDocument()&&(F.setReadTime(f.commitVersion),d.addEntry(F)))})}),b.next(()=>l.mutationQueue.removeMutationBatch(u,p))}(n,r,e,o).next(()=>o.apply(r)).next(()=>n.mutationQueue.performConsistencyCheck(r)).next(()=>n.documentOverlayCache.removeOverlaysForBatchId(r,s,e.batch.batchId)).next(()=>n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(r,function(l){let u=at();for(let f=0;f<l.mutationResults.length;++f)l.mutationResults[f].transformResults.length>0&&(u=u.add(l.batch.mutations[f].key));return u}(e))).next(()=>n.localDocuments.getDocuments(r,s))})}function $E(t){const e=Ve(t);return e.persistence.runTransaction("Get last remote snapshot version","readonly",n=>e.Hr.getLastRemoteSnapshotVersion(n))}function UE(t,e){const n=Ve(t);return n.persistence.runTransaction("Get next mutation batch","readonly",r=>(e===void 0&&(e=tl),n.mutationQueue.getNextMutationBatchAfterBatchId(r,e)))}class Uu{constructor(){this.activeTargetIds=B0()}Ds(e){this.activeTargetIds=this.activeTargetIds.add(e)}vs(e){this.activeTargetIds=this.activeTargetIds.delete(e)}Ss(){const e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)}}class jE{constructor(){this.ho=new Uu,this.Po={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(e){}updateMutationState(e,n,r){}addLocalQueryTarget(e,n=!0){return n&&this.ho.Ds(e),this.Po[e]||"not-current"}updateQueryState(e,n,r){this.Po[e]=n}removeLocalQueryTarget(e){this.ho.vs(e)}isLocalQueryTarget(e){return this.ho.activeTargetIds.has(e)}clearQueryState(e){delete this.Po[e]}getAllActiveQueryTargets(){return this.ho.activeTargetIds}isActiveQueryTarget(e){return this.ho.activeTargetIds.has(e)}start(){return this.ho=new Uu,Promise.resolve()}handleUserChange(e,n,r){}setOnlineState(e){}shutdown(){}writeSequenceNumber(e){}notifyBundleLoaded(e){}}/** 1418 * @license 1419 * Copyright 2019 Google LLC 1420 * 1421 * Licensed under the Apache License, Version 2.0 (the "License"); 1422 * you may not use this file except in compliance with the License. 1423 * You may obtain a copy of the License at 1424 * 1425 * http://www.apache.org/licenses/LICENSE-2.0 1426 * 1427 * Unless required by applicable law or agreed to in writing, software 1428 * distributed under the License is distributed on an "AS IS" BASIS, 1429 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1430 * See the License for the specific language governing permissions and 1431 * limitations under the License. 1432 */class BE{To(e){}shutdown(){}}/** 1433 * @license 1434 * Copyright 2019 Google LLC 1435 * 1436 * Licensed under the Apache License, Version 2.0 (the "License"); 1437 * you may not use this file except in compliance with the License. 1438 * You may obtain a copy of the License at 1439 * 1440 * http://www.apache.org/licenses/LICENSE-2.0 1441 * 1442 * Unless required by applicable law or agreed to in writing, software 1443 * distributed under the License is distributed on an "AS IS" BASIS, 1444 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1445 * See the License for the specific language governing permissions and 1446 * limitations under the License. 1447 */const ju="ConnectivityMonitor";class Bu{constructor(){this.Io=()=>this.Eo(),this.Ao=()=>this.Ro(),this.Vo=[],this.mo()}To(e){this.Vo.push(e)}shutdown(){window.removeEventListener("online",this.Io),window.removeEventListener("offline",this.Ao)}mo(){window.addEventListener("online",this.Io),window.addEventListener("offline",this.Ao)}Eo(){ee(ju,"Network connectivity changed: AVAILABLE");for(const e of this.Vo)e(0)}Ro(){ee(ju,"Network connectivity changed: UNAVAILABLE");for(const e of this.Vo)e(1)}static D(){return typeof window<"u"&&window.addEventListener!==void 0&&window.removeEventListener!==void 0}}/** 1448 * @license 1449 * Copyright 2023 Google LLC 1450 * 1451 * Licensed under the Apache License, Version 2.0 (the "License");
1452 * you may not use this file except in compliance with the License. 1453 * You may obtain a copy of the License at 1454 * 1455 * http://www.apache.org/licenses/LICENSE-2.0 1456 * 1457 * Unless required by applicable law or agreed to in writing, software 1458 * distributed under the License is distributed on an "AS IS" BASIS, 1459 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1460 * See the License for the specific language governing permissions and 1461 * limitations under the License. 1462 */let ci=null;function Sa(){return ci===null?ci=function(){return 268435456+Math.round(2147483648*Math.random())}():ci++,"0x"+ci.toString(16)}/** 1463 * @license 1464 * Copyright 2020 Google LLC 1465 * 1466 * Licensed under the Apache License, Version 2.0 (the "License"); 1467 * you may not use this file except in compliance with the License. 1468 * You may obtain a copy of the License at 1469 * 1470 * http://www.apache.org/licenses/LICENSE-2.0 1471 * 1472 * Unless required by applicable law or agreed to in writing, software 1473 * distributed under the License is distributed on an "AS IS" BASIS, 1474 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1475 * See the License for the specific language governing permissions and 1476 * limitations under the License. 1477 */const Go="RestConnection",zE={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery"};class HE{get fo(){return!1}constructor(e){this.databaseInfo=e,this.databaseId=e.databaseId;const n=e.ssl?"https":"http",r=encodeURIComponent(this.databaseId.projectId),s=encodeURIComponent(this.databaseId.database);this.po=n+"://"+e.host,this.yo=`projects/${r}/databases/${s}`,this.wo=this.databaseId.database===xi?`project_id=${r}`:`project_id=${r}&database_id=${s}`}bo(e,n,r,s,o){const a=Sa(),l=this.So(e,n.toUriEncodedString());ee(Go,`Sending RPC '${e}' ${a}:`,l,r);const u={"google-cloud-resource-prefix":this.yo,"x-goog-request-params":this.wo};return this.Do(u,s,o),this.vo(e,l,u,r).then(f=>(ee(Go,`Received RPC '${e}' ${a}: `,f),f),f=>{throw no(Go,`RPC '${e}' ${a} failed with error: `,f,"url: ",l,"request:",r),f})}Co(e,n,r,s,o,a){return this.bo(e,n,r,s,o)}Do(e,n,r){e["X-Goog-Api-Client"]=function(){return"gl-js/ fire/"+Nr}(),e["Content-Type"]="text/plain",this.databaseInfo.appId&&(e["X-Firebase-GMPID"]=this.databaseInfo.appId),n&&n.headers.forEach((s,o)=>e[o]=s),r&&r.headers.forEach((s,o)=>e[o]=s)}So(e,n){const r=zE[e];return`${this.po}/v1/${n}:${r}`}terminate(){}}/** 1478 * @license 1479 * Copyright 2017 Google LLC 1480 * 1481 * Licensed under the Apache License, Version 2.0 (the "License"); 1482 * you may not use this file except in compliance with the License. 1483 * You may obtain a copy of the License at 1484 * 1485 * http://www.apache.org/licenses/LICENSE-2.0 1486 * 1487 * Unless required by applicable law or agreed to in writing, software 1488 * distributed under the License is distributed on an "AS IS" BASIS, 1489 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1490 * See the License for the specific language governing permissions and 1491 * limitations under the License. 1492 */class qE{constructor(e){this.Fo=e.Fo,this.Mo=e.Mo}xo(e){this.Oo=e}No(e){this.Bo=e}Lo(e){this.ko=e}onMessage(e){this.qo=e}close(){this.Mo()}send(e){this.Fo(e)}Qo(){this.Oo()}$o(){this.Bo()}Ko(e){this.ko(e)}Uo(e){this.qo(e)}}/** 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 */const rt="WebChannelConnection";class KE extends HE{constructor(e){super(e),this.forceLongPolling=e.forceLongPolling,this.autoDetectLongPolling=e.autoDetectLongPolling,this.useFetchStreams=e.useFetchStreams,this.longPollingOptions=e.longPollingOptions}
1507vo(e,n,r,s){const o=Sa();return new Promise((a,l)=>{const u=new Yf;u.setWithCredentials(!0),u.listenOnce(Jf.COMPLETE,()=>{try{switch(u.getLastErrorCode()){case gi.NO_ERROR:const d=u.getResponseJson();ee(rt,`XHR for RPC '${e}' ${o} received:`,JSON.stringify(d)),a(d);break;case gi.TIMEOUT:ee(rt,`RPC '${e}' ${o} timed out`),l(new ie(U.DEADLINE_EXCEEDED,"Request time out"));break;case gi.HTTP_ERROR:const p=u.getStatus();if(ee(rt,`RPC '${e}' ${o} failed with status:`,p,"response text:",u.getResponseText()),p>0){let _=u.getResponseJson();Array.isArray(_)&&(_=_[0]);const b=_==null?void 0:_.error;if(b&&b.status&&b.message){const x=function(j){const G=j.toLowerCase().replace(/_/g,"-");return Object.values(U).indexOf(G)>=0?G:U.UNKNOWN}(b.status);l(new ie(x,b.message))}else l(new ie(U.UNKNOWN,"Server responded with status "+u.getStatus()))}else l(new ie(U.UNAVAILABLE,"Connection failed."));break;default:he()}}finally{ee(rt,`RPC '${e}' ${o} completed.`)}});const f=JSON.stringify(s);ee(rt,`RPC '${e}' ${o} sending request:`,s),u.send(n,"POST",f,r,15)})}Wo(e,n,r){const s=Sa(),o=[this.po,"/","google.firestore.v1.Firestore","/",e,"/channel"],a=td(),l=ed(),u={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:`projects/${this.databaseId.projectId}/databases/${this.databaseId.database}`},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling},f=this.longPollingOptions.timeoutSeconds;f!==void 0&&(u.longPollingTimeout=Math.round(1e3*f)),this.useFetchStreams&&(u.useFetchStreams=!0),this.Do(u.initMessageHeaders,n,r),u.encodeInitMessageHeaders=!0;const d=o.join("");ee(rt,`Creating RPC '${e}' stream ${s}: ${d}`,u);const p=a.createWebChannel(d,u);let _=!1,b=!1;const x=new qE({Fo:j=>{b?ee(rt,`Not sending because RPC '${e}' stream ${s} is closed:`,j):(_||(ee(rt,`Opening RPC '${e}' stream ${s} transport.`),p.open(),_=!0),ee(rt,`RPC '${e}' stream ${s} sending:`,j),p.send(j))},Mo:()=>p.close()}),F=(j,G,H)=>{j.listen(G,D=>{try{H(D)}catch(R){setTimeout(()=>{throw R},0)}})};return F(p,rs.EventType.OPEN,()=>{b||(ee(rt,`RPC '${e}' stream ${s} transport opened.`),x.Qo())}),F(p,rs.EventType.CLOSE,()=>{b||(b=!0,ee(rt,`RPC '${e}' stream ${s} transport closed`),x.Ko())}),F(p,rs.EventType.ERROR,j=>{b||(b=!0,no(rt,`RPC '${e}' stream ${s} transport errored:`,j),x.Ko(new ie(U.UNAVAILABLE,"The operation could not be completed")))}),F(p,rs.EventType.MESSAGE,j=>{var G;if(!b){const H=j.data[0];Fe(!!H);const D=H,R=(D==null?void 0:D.error)||((G=D[0])===null||G===void 0?void 0:G.error);if(R){ee(rt,`RPC '${e}' stream ${s} received error:`,R);const oe=R.status;let Z=function(w){const I=Ue[w];if(I!==void 0)return eE(I)}(oe),T=R.message;Z===void 0&&(Z=U.INTERNAL,T="Unknown error status: "+oe+" with message "+R.message),b=!0,x.Ko(new ie(Z,T)),p.close()}else ee(rt,`RPC '${e}' stream ${s} received:`,H),x.Uo(H)}}),F(l,Zf.STAT_EVENT,j=>{j.stat===_a.PROXY?ee(rt,`RPC '${e}' stream ${s} detected buffering proxy`):j.stat===_a.NOPROXY&&ee(rt,`RPC '${e}' stream ${s} detected no buffering proxy`)}),setTimeout(()=>{x.$o()},0),x}}function Wo(){return typeof document<"u"?document:null}/** 1508 * @license 1509 * Copyright 2020 Google LLC 1510 * 1511 * Licensed under the Apache License, Version 2.0 (the "License"); 1512 * you may not use this file except in compliance with the License. 1513 * You may obtain a copy of the License at 1514 * 1515 * http://www.apache.org/licenses/LICENSE-2.0 1516 * 1517 * Unless required by applicable law or agreed to in writing, software 1518 * distributed under the License is distributed on an "AS IS" BASIS, 1519 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1520 * See the License for the specific language governing permissions and 1521 * limitations under the License. 1522 */function oo(t){return new tE(t,!0)}/** 1523 * @license 1524 * Copyright 2017 Google LLC 1525 * 1526 * Licensed under the Apache License, Version 2.0 (the "License"); 1527 * you may not use this file except in compliance with the License. 1528 * You may obtain a copy of the License at 1529 * 1530 * http://www.apache.org/licenses/LICENSE-2.0 1531 * 1532 * Unless required by applicable law or agreed to in writing, softw
1532are 1533 * distributed under the License is distributed on an "AS IS" BASIS, 1534 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1535 * See the License for the specific language governing permissions and 1536 * limitations under the License. 1537 */class Ld{constructor(e,n,r=1e3,s=1.5,o=6e4){this.Ti=e,this.timerId=n,this.Go=r,this.zo=s,this.jo=o,this.Ho=0,this.Jo=null,this.Yo=Date.now(),this.reset()}reset(){this.Ho=0}Zo(){this.Ho=this.jo}Xo(e){this.cancel();const n=Math.floor(this.Ho+this.e_()),r=Math.max(0,Date.now()-this.Yo),s=Math.max(0,n-r);s>0&&ee("ExponentialBackoff",`Backing off for ${s} ms (base delay: ${this.Ho} ms, delay with jitter: ${n} ms, last attempt: ${r} ms ago)`),this.Jo=this.Ti.enqueueAfterDelay(this.timerId,s,()=>(this.Yo=Date.now(),e())),this.Ho*=this.zo,this.Ho<this.Go&&(this.Ho=this.Go),this.Ho>this.jo&&(this.Ho=this.jo)}t_(){this.Jo!==null&&(this.Jo.skipDelay(),this.Jo=null)}cancel(){this.Jo!==null&&(this.Jo.cancel(),this.Jo=null)}e_(){return(Math.random()-.5)*this.Ho}}/** 1538 * @license 1539 * Copyright 2017 Google LLC 1540 * 1541 * Licensed under the Apache License, Version 2.0 (the "License"); 1542 * you may not use this file except in compliance with the License. 1543 * You may obtain a copy of the License at 1544 * 1545 * http://www.apache.org/licenses/LICENSE-2.0 1546 * 1547 * Unless required by applicable law or agreed to in writing, software 1548 * distributed under the License is distributed on an "AS IS" BASIS, 1549 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1550 * See the License for the specific language governing permissions and 1551 * limitations under the License. 1552 */const zu="PersistentStream";class GE{constructor(e,n,r,s,o,a,l,u){this.Ti=e,this.n_=r,this.r_=s,this.connection=o,this.authCredentialsProvider=a,this.appCheckCredentialsProvider=l,this.listener=u,this.state=0,this.i_=0,this.s_=null,this.o_=null,this.stream=null,this.__=0,this.a_=new Ld(e,n)}u_(){return this.state===1||this.state===5||this.c_()}c_(){return this.state===2||this.state===3}start(){this.__=0,this.state!==4?this.auth():this.l_()}async stop(){this.u_()&&await this.close(0)}h_(){this.state=0,this.a_.reset()}P_(){this.c_()&&this.s_===null&&(this.s_=this.Ti.enqueueAfterDelay(this.n_,6e4,()=>this.T_()))}I_(e){this.E_(),this.stream.send(e)}async T_(){if(this.c_())return this.close(0)}E_(){this.s_&&(this.s_.cancel(),this.s_=null)}d_(){this.o_&&(this.o_.cancel(),this.o_=null)}async close(e,n){this.E_(),this.d_(),this.a_.cancel(),this.i_++,e!==4?this.a_.reset():n&&n.code===U.RESOURCE_EXHAUSTED?(tr(n.toString()),tr("Using maximum backoff delay to prevent overloading the backend."),this.a_.Zo()):n&&n.code===U.UNAUTHENTICATED&&this.state!==3&&(this.authCredentialsProvider.invalidateToken(),this.appCheckCredentialsProvider.invalidateToken()),this.stream!==null&&(this.A_(),this.stream.close(),this.stream=null),this.state=e,await this.listener.Lo(n)}A_(){}auth(){this.state=1;const e=this.R_(this.i_),n=this.i_;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then(([r,s])=>{this.i_===n&&this.V_(r,s)},r=>{e(()=>{const s=new ie(U.UNKNOWN,"Fetching auth token failed: "+r.message);return this.m_(s)})})}V_(e,n){const r=this.R_(this.i_);this.stream=this.f_(e,n),this.stream.xo(()=>{r(()=>this.listener.xo())}),this.stream.No(()=>{r(()=>(this.state=2,this.o_=this.Ti.enqueueAfterDelay(this.r_,1e4,()=>(this.c_()&&(this.state=3),Promise.resolve())),this.listener.No()))}),this.stream.Lo(s=>{r(()=>this.m_(s))}),this.stream.onMessage(s=>{r(()=>++this.__==1?this.g_(s):this.onNext(s))})}l_(){this.state=5,this.a_.Xo(async()=>{this.state=0,this.start()})}m_(e){return ee(zu,`close with error: ${e}`),this.stream=null,this.close(4,e)}R_(e){return n=>{this.Ti.enqueueAndForget(()=>this.i_===e?n():(ee(zu,"stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}}class WE extends GE{constructor(e,n,r,s,o,a){super(e,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",n,r,s,a),this.serializer=o}get b_(){return this.__>0}start(){this.lastStreamToken=void 0,super.start()}A_(){this.b_&&this.S_([])}f_(e,n){return this.connection.Wo("Write",e,n)}g_(e){return Fe(!!e.streamToken),this.lastStreamToken=e.streamToken,Fe(!e.writeResults||e.writeResults.length===0),this.listener.D_()}onNext(e){Fe(!!e.streamToken),this.lastStreamToken=e.streamToken,this.a_.reset();const n=cE(e.writeResults,e.commitTime),r=Rr(e.commitTime);return this.listener.v_(r,n)}C_(){const e={};e.database=oE(this.serializer),this.I_(e)}S_(e){const n={streamToken:this.lastStreamToken,writes:e.map(r=>lE(this.serializer,r))};this.I_(n)}}/** 1553 * @license 1554 * Copyright 2017 Google LLC 1555 * 1556 * Licensed under the Apache License, Version 2.0 (the "License");
1557 * you may not use this file except in compliance with the License. 1558 * You may obtain a copy of the License at 1559 * 1560 * http://www.apache.org/licenses/LICENSE-2.0 1561 * 1562 * Unless required by applicable law or agreed to in writing, software 1563 * distributed under the License is distributed on an "AS IS" BASIS, 1564 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1565 * See the License for the specific language governing permissions and 1566 * limitations under the License. 1567 */class QE{}class XE extends QE{constructor(e,n,r,s){super(),this.authCredentials=e,this.appCheckCredentials=n,this.connection=r,this.serializer=s,this.F_=!1}M_(){if(this.F_)throw new ie(U.FAILED_PRECONDITION,"The client has already been terminated.")}bo(e,n,r,s){return this.M_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([o,a])=>this.connection.bo(e,Aa(n,r),s,o,a)).catch(o=>{throw o.name==="FirebaseError"?(o.code===U.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),o):new ie(U.UNKNOWN,o.toString())})}Co(e,n,r,s,o){return this.M_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([a,l])=>this.connection.Co(e,Aa(n,r),s,a,l,o)).catch(a=>{throw a.name==="FirebaseError"?(a.code===U.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),a):new ie(U.UNKNOWN,a.toString())})}terminate(){this.F_=!0,this.connection.terminate()}}class YE{constructor(e,n){this.asyncQueue=e,this.onlineStateHandler=n,this.state="Unknown",this.x_=0,this.O_=null,this.N_=!0}B_(){this.x_===0&&(this.L_("Unknown"),this.O_=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,()=>(this.O_=null,this.k_("Backend didn't respond within 10 seconds."),this.L_("Offline"),Promise.resolve())))}q_(e){this.state==="Online"?this.L_("Unknown"):(this.x_++,this.x_>=1&&(this.Q_(),this.k_(`Connection failed 1 times. Most recent error: ${e.toString()}`),this.L_("Offline")))}set(e){this.Q_(),this.x_=0,e==="Online"&&(this.N_=!1),this.L_(e)}L_(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))}k_(e){const n=`Could not reach Cloud Firestore backend. ${e} 1568This 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.N_?(tr(n),this.N_=!1):ee("OnlineStateTracker",n)}Q_(){this.O_!==null&&(this.O_.cancel(),this.O_=null)}}/** 1569 * @license 1570 * Copyright 2017 Google LLC 1571 * 1572 * Licensed under the Apache License, Version 2.0 (the "License"); 1573 * you may not use this file except in compliance with the License. 1574 * You may obtain a copy of the License at 1575 * 1576 * http://www.apache.org/licenses/LICENSE-2.0 1577 * 1578 * Unless required by applicable law or agreed to in writing, software 1579 * distributed under the License is distributed on an "AS IS" BASIS, 1580 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1581 * See the License for the specific language governing permissions and 1582 * limitations under the License. 1583 */const Ls="RemoteStore";class JE{constructor(e,n,r,s,o){this.localStore=e,this.datastore=n,this.asyncQueue=r,this.remoteSyncer={},this.K_=[],this.U_=new Map,this.W_=new Set,this.G_=[],this.z_=o,this.z_.To(a=>{r.enqueueAndForget(async()=>{$s(this)&&(ee(Ls,"Restarting streams for network reachability change."),await async function(u){const f=Ve(u);f.W_.add(4),await Fs(f),f.j_.set("Unknown"),f.W_.delete(4),await ao(f)}(this))})}),this.j_=new YE(r,s)}}async function ao(t){if($s(t))for(const e of t.G_)await e(!0)}async function Fs(t){for(const e of t.G_)await e(!1)}function $s(t){return Ve(t).W_.size===0}async function Fd(t,e,n){if(!Ns(e))throw e;t.W_.add(1),await Fs(t),t.j_.set("Offline"),n||(n=()=>$E(t.localStore)),t.asyncQueue.enqueueRetryable(async()=>{ee(Ls,"Retrying IndexedDB access"),await n(),t.W_.delete(1),await ao(t)})}function $d(t,e){return e().catch(n=>Fd(t,n,e))}async function lo(t){const e=Ve(t),n=On(e);let r=e.K_.length>0?e.K_[e.K_.length-1].batchId:tl;for(;ZE(e);)try{const s=await UE(e.localStore,r);if(s===null){e.K_.length===0&&n.P_();break}r=s.batchId,e1(e,s)}catch(s){await Fd(e,s)}Ud(e)&&jd(e)}function ZE(t){return $s(t)&&t.K_.length<10}function e1(t,e){t.K_.push(e);const n=On(t);n.c_()&&n.b_&&n.S_(e.mutations)}function Ud(t){return $s(t)&&!On(t).u_()&&t.K_.length>0}
1583function jd(t){On(t).start()}async function t1(t){On(t).C_()}async function n1(t){const e=On(t);for(const n of t.K_)e.S_(n.mutations)}async function r1(t,e,n){const r=t.K_.shift(),s=ul.from(r,e,n);await $d(t,()=>t.remoteSyncer.applySuccessfulWrite(s)),await lo(t)}async function s1(t,e){e&&On(t).b_&&await async function(r,s){if(function(a){return Z0(a)&&a!==U.ABORTED}(s.code)){const o=r.K_.shift();On(r).h_(),await $d(r,()=>r.remoteSyncer.rejectFailedWrite(o.batchId,s)),await lo(r)}}(t,e),Ud(t)&&jd(t)}async function Hu(t,e){const n=Ve(t);n.asyncQueue.verifyOperationInProgress(),ee(Ls,"RemoteStore received new credentials");const r=$s(n);n.W_.add(3),await Fs(n),r&&n.j_.set("Unknown"),await n.remoteSyncer.handleCredentialChange(e),n.W_.delete(3),await ao(n)}async function i1(t,e){const n=Ve(t);e?(n.W_.delete(2),await ao(n)):e||(n.W_.add(2),await Fs(n),n.j_.set("Unknown"))}function On(t){return t.Y_||(t.Y_=function(n,r,s){const o=Ve(n);return o.M_(),new WE(r,o.connection,o.authCredentials,o.appCheckCredentials,o.serializer,s)}(t.datastore,t.asyncQueue,{xo:()=>Promise.resolve(),No:t1.bind(null,t),Lo:s1.bind(null,t),D_:n1.bind(null,t),v_:r1.bind(null,t)}),t.G_.push(async e=>{e?(t.Y_.h_(),await lo(t)):(await t.Y_.stop(),t.K_.length>0&&(ee(Ls,`Stopping write stream with ${t.K_.length} pending writes`),t.K_=[]))})),t.Y_}/** 1584 * @license 1585 * Copyright 2017 Google LLC 1586 * 1587 * Licensed under the Apache License, Version 2.0 (the "License"); 1588 * you may not use this file except in compliance with the License. 1589 * You may obtain a copy of the License at 1590 * 1591 * http://www.apache.org/licenses/LICENSE-2.0 1592 * 1593 * Unless required by applicable law or agreed to in writing, software 1594 * distributed under the License is distributed on an "AS IS" BASIS, 1595 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1596 * See the License for the specific language governing permissions and 1597 * limitations under the License. 1598 */class pl{constructor(e,n,r,s,o){this.asyncQueue=e,this.timerId=n,this.targetTimeMs=r,this.op=s,this.removalCallback=o,this.deferred=new Xn,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(a=>{})}get promise(){return this.deferred.promise}static createAndSchedule(e,n,r,s,o){const a=Date.now()+r,l=new pl(e,n,a,s,o);return l.start(r),l}start(e){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),e)}skipDelay(){return this.handleDelayElapsed()}cancel(e){this.timerHandle!==null&&(this.clearTimeout(),this.deferred.reject(new ie(U.CANCELLED,"Operation cancelled"+(e?": "+e:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget(()=>this.timerHandle!==null?(this.clearTimeout(),this.op().then(e=>this.deferred.resolve(e))):Promise.resolve())}clearTimeout(){this.timerHandle!==null&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function Bd(t,e){if(tr("AsyncQueue",`${e}: ${t}`),Ns(t))return new ie(U.UNAVAILABLE,`${e}: ${t}`);throw t}class o1{constructor(){this.queries=qu(),this.onlineState="Unknown",this.ia=new Set}terminate(){(function(n,r){const s=Ve(n),o=s.queries;s.queries=qu(),o.forEach((a,l)=>{for(const u of l.ta)u.onError(r)})})(this,new ie(U.ABORTED,"Firestore shutting down"))}}function qu(){return new ar(t=>Ed(t),vd)}function a1(t){t.ia.forEach(e=>{e.next()})}var Ku,Gu;(Gu=Ku||(Ku={}))._a="default",Gu.Cache="cache";const l1="SyncEngine";class c1{constructor(e,n,r,s,o,a){this.localStore=e,this.remoteStore=n,this.eventManager=r,this.sharedClientState=s,this.currentUser=o,this.maxConcurrentLimboResolutions=a,this.La={},this.ka=new ar(l=>Ed(l),vd),this.qa=new Map,this.Qa=new Set,this.$a=new wt(ue.comparator),this.Ka=new Map,this.Ua=new hl,this.Wa={},this.Ga=new Map,this.za=Or.Un(),this.onlineState="Unknown",this.ja=void 0}get isPrimaryClient(){return this.ja===!0}}async function u1(t,e,n){const r=p1(t);try{const s=await function(a,l){const u=Ve(a),f=qe.now(),d=l.reduce((b,x)=>b.add(x.key),at());let p,_;return u.persistence.runTransaction("Locally write mutations","readwrite",b=>{let x=Ni(),F=at();return u.ds.getEntries(b,d).next(j=>{x=j,x.forEach((G,H)=>{H.isValidDocument()||(F=F.add(G))})}).next(()=>u.localDocuments.getOverlayedDocuments(b,x)).next(j=>{p=j;const G=[];for(const H of l){const D=Q0(H,p.get(H.key).overlayedDocument);D!=null&&G.push(new lr(H.key,D,fd(D.value.mapValue),cn.exists(!0)))}
1598return u.mutationQueue.addMutationBatch(b,f,G,l)}).next(j=>{_=j;const G=j.applyToLocalDocumentSet(p,F);return u.documentOverlayCache.saveOverlays(b,j.batchId,G)})}).then(()=>({batchId:_.batchId,changes:Td(p)}))}(r.localStore,e);r.sharedClientState.addPendingMutation(s.batchId),function(a,l,u){let f=a.Wa[a.currentUser.toKey()];f||(f=new wt(Ae)),f=f.insert(l,u),a.Wa[a.currentUser.toKey()]=f}(r,s.batchId,n),await co(r,s.changes),await lo(r.remoteStore)}catch(s){const o=Bd(s,"Failed to persist write");n.reject(o)}}function Wu(t,e,n){const r=Ve(t);if(r.isPrimaryClient&&n===0||!r.isPrimaryClient&&n===1){const s=[];r.ka.forEach((o,a)=>{const l=a.view.sa(e);l.snapshot&&s.push(l.snapshot)}),function(a,l){const u=Ve(a);u.onlineState=l;let f=!1;u.queries.forEach((d,p)=>{for(const _ of p.ta)_.sa(l)&&(f=!0)}),f&&a1(u)}(r.eventManager,e),s.length&&r.La.p_(s),r.onlineState=e,r.isPrimaryClient&&r.sharedClientState.setOnlineState(e)}}async function h1(t,e){const n=Ve(t),r=e.batch.batchId;try{const s=await FE(n.localStore,e);Hd(n,r,null),zd(n,r),n.sharedClientState.updateMutationState(r,"acknowledged"),await co(n,s)}catch(s){await Za(s)}}async function f1(t,e,n){const r=Ve(t);try{const s=await function(a,l){const u=Ve(a);return u.persistence.runTransaction("Reject batch","readwrite-primary",f=>{let d;return u.mutationQueue.lookupMutationBatch(f,l).next(p=>(Fe(p!==null),d=p.keys(),u.mutationQueue.removeMutationBatch(f,p))).next(()=>u.mutationQueue.performConsistencyCheck(f)).next(()=>u.documentOverlayCache.removeOverlaysForBatchId(f,d,l)).next(()=>u.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(f,d)).next(()=>u.localDocuments.getDocuments(f,d))})}(r.localStore,e);Hd(r,e,n),zd(r,e),r.sharedClientState.updateMutationState(e,"rejected",n),await co(r,s)}catch(s){await Za(s)}}function zd(t,e){(t.Ga.get(e)||[]).forEach(n=>{n.resolve()}),t.Ga.delete(e)}function Hd(t,e,n){const r=Ve(t);let s=r.Wa[r.currentUser.toKey()];if(s){const o=s.get(e);o&&(n?o.reject(n):o.resolve(),s=s.remove(e)),r.Wa[r.currentUser.toKey()]=s}}async function co(t,e,n){const r=Ve(t),s=[],o=[],a=[];r.ka.isEmpty()||(r.ka.forEach((l,u)=>{a.push(r.Ha(u,e,n).then(f=>{var d;if((f||n)&&r.isPrimaryClient){const p=f?!f.fromCache:(d=void 0)===null||d===void 0?void 0:d.current;
1598r.sharedClientState.updateQueryState(u.targetId,p?"current":"not-current")}if(f){s.push(f);const p=dl.Yi(u.targetId,f);o.push(p)}}))}),await Promise.all(a),r.La.p_(s),await async function(u,f){const d=Ve(u);try{await d.persistence.runTransaction("notifyLocalViewChanges","readwrite",p=>L.forEach(f,_=>L.forEach(_.Hi,b=>d.persistence.referenceDelegate.addReference(p,_.targetId,b)).next(()=>L.forEach(_.Ji,b=>d.persistence.referenceDelegate.removeReference(p,_.targetId,b)))))}catch(p){if(!Ns(p))throw p;ee(NE,"Failed to update sequence numbers: "+p)}for(const p of f){const _=p.targetId;if(!p.fromCache){const b=d.Ts.get(_),x=b.snapshotVersion,F=b.withLastLimboFreeSnapshotVersion(x);d.Ts=d.Ts.insert(_,F)}}}(r.localStore,o))}async function d1(t,e){const n=Ve(t);if(!n.currentUser.isEqual(e)){ee(l1,"User change. New user:",e.toKey());const r=await Md(n.localStore,e);n.currentUser=e,function(o,a){o.Ga.forEach(l=>{l.forEach(u=>{u.reject(new ie(U.CANCELLED,a))})}),o.Ga.clear()}(n,"'waitForPendingWrites' promise is rejected due to a user change."),n.sharedClientState.handleUserChange(e,r.removedBatchIds,r.addedBatchIds),await co(n,r.Rs)}}function p1(t){const e=Ve(t);return e.remoteStore.remoteSyncer.applySuccessfulWrite=h1.bind(null,e),e.remoteStore.remoteSyncer.rejectFailedWrite=f1.bind(null,e),e}class $i{constructor(){this.kind="memory",this.synchronizeTabs=!1}async initialize(e){this.serializer=oo(e.databaseInfo.databaseId),this.sharedClientState=this.Za(e),this.persistence=this.Xa(e),await this.persistence.start(),this.localStore=this.eu(e),this.gcScheduler=this.tu(e,this.localStore),this.indexBackfillerScheduler=this.nu(e,this.localStore)}tu(e,n){return null}nu(e,n){return null}eu(e){return LE(this.persistence,new OE,e.initialUser,this.serializer)}Xa(e){return new Nd(fl.ri,this.serializer)}Za(e){return new jE}async terminate(){var e,n;(e=this.gcScheduler)===null||e===void 0||e.stop(),(n=this.indexBackfillerScheduler)===null||n===void 0||n.stop(),this.sharedClientState.shutdown(),await this.persistence.shutdown()}}$i.provider={build:()=>new $i};class m1 extends $i{constructor(e){super(),this.cacheSizeBytes=e}tu(e,n){Fe(this.persistence.referenceDelegate instanceof Fi);const r=this.persistence.referenceDelegate.garbageCollector;return new vE(r,e.asyncQueue,n)}Xa(e){const n=this.cacheSizeBytes!==void 0?yt.withCacheSize(this.cacheSizeBytes):yt.DEFAULT;return new Nd(r=>Fi.ri(r,n),this.serializer)}}class Pa{async initialize(e,n){this.localStore||(this.localStore=e.localStore,this.sharedClientState=e.sharedClientState,this.datastore=this.createDatastore(n),this.remoteStore=this.createRemoteStore(n),this.eventManager=this.createEventManager(n),this.syncEngine=this.createSyncEngine(n,!e.synchronizeTabs),this.sharedClientState.onlineStateHandler=r=>Wu(this.syncEngine,r,1),this.remoteStore.remoteSyncer.handleCredentialChange=d1.bind(null,this.syncEngine),await i1(this.remoteStore,this.syncEngine.isPrimaryClient))}createEventManager(e){return function(){return new o1}()}createDatastore(e){const n=oo(e.databaseInfo.databaseId),r=function(o){return new KE(o)}(e.databaseInfo);return function(o,a,l,u){return new XE(o,a,l,u)}(e.authCredentials,e.appCheckCredentials,r,n)}createRemoteStore(e){return function(r,s,o,a,l){return new JE(r,s,o,a,l)}(this.localStore,this.datastore,e.asyncQueue,n=>Wu(this.syncEngine,n,0),function(){return Bu.D()?new Bu:new BE}())}createSyncEngine(e,n){return function(s,o,a,l,u,f,d){const p=new c1(s,o,a,l,u,f);return d&&(p.ja=!0),p}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,e.initialUser,e.maxConcurrentLimboResolutions,n)}async terminate(){var e,n;await async function(s){const o=Ve(s);ee(Ls,"RemoteStore shutting down."),o.W_.add(5),await Fs(o),o.z_.shutdown(),o.j_.set("Unknown")}(this.remoteStore),(e=this.datastore)===null||e===void 0||e.terminate(),(n=this.eventManager)===null||n===void 0||n.terminate()}}Pa.provider={build:()=>new Pa};/** 1599 * @license 1600 * Copyright 2017 Google LLC 1601 * 1602 * Licensed under the Apache License, Version 2.0 (the "License"); 1603 * you may not use this file except in compliance with the License. 1604 * You may obtain a copy of the License at 1605 * 1606 * http://www.apache.org/licenses/LICENSE-2.0 1607 * 1608 * Unless required by applicable law or agreed to in writing, softw
1608are 1609 * distributed under the License is distributed on an "AS IS" BASIS, 1610 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1611 * See the License for the specific language governing permissions and 1612 * limitations under the License. 1613 */const Nn="FirestoreClient";class g1{constructor(e,n,r,s,o){this.authCredentials=e,this.appCheckCredentials=n,this.asyncQueue=r,this.databaseInfo=s,this.user=st.UNAUTHENTICATED,this.clientId=rd.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this._uninitializedComponentsProvider=o,this.authCredentials.start(r,async a=>{ee(Nn,"Received user=",a.uid),await this.authCredentialListener(a),this.user=a}),this.appCheckCredentials.start(r,a=>(ee(Nn,"Received new app check token=",a),this.appCheckCredentialListener(a,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 Xn;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted(async()=>{try{this._onlineComponents&&await this._onlineComponents.terminate(),this._offlineComponents&&await this._offlineComponents.terminate(),this.authCredentials.shutdown(),this.appCheckCredentials.shutdown(),e.resolve()}catch(n){const r=Bd(n,"Failed to shutdown persistence");e.reject(r)}}),e.promise}}async function Qo(t,e){t.asyncQueue.verifyOperationInProgress(),ee(Nn,"Initializing OfflineComponentProvider");const n=t.configuration;await e.initialize(n);let r=n.initialUser;t.setCredentialChangeListener(async s=>{r.isEqual(s)||(await Md(e.localStore,s),r=s)}),e.persistence.setDatabaseDeletedListener(()=>t.terminate()),t._offlineComponents=e}async function Qu(t,e){t.asyncQueue.verifyOperationInProgress();const n=await y1(t);ee(Nn,"Initializing OnlineComponentProvider"),await e.initialize(n,t.configuration),t.setCredentialChangeListener(r=>Hu(e.remoteStore,r)),t.setAppCheckTokenChangeListener((r,s)=>Hu(e.remoteStore,s)),t._onlineComponents=e}async function y1(t){if(!t._offlineComponents)if(t._uninitializedComponentsProvider){ee(Nn,"Using user provided OfflineComponentProvider");try{await Qo(t,t._uninitializedComponentsProvider._offline)}catch(e){const n=e;if(!function(s){return s.name==="FirebaseError"?s.code===U.FAILED_PRECONDITION||s.code===U.UNIMPLEMENTED:!(typeof DOMException<"u"&&s instanceof DOMException)||s.code===22||s.code===20||s.code===11}(n))throw n;no("Error using user provided cache. Falling back to memory cache: "+n),await Qo(t,new $i)}}else ee(Nn,"Using default OfflineComponentProvider"),await Qo(t,new m1(void 0));return t._offlineComponents}async function _1(t){return t._onlineComponents||(t._uninitializedComponentsProvider?(ee(Nn,"Using user provided OnlineComponentProvider"),await Qu(t,t._uninitializedComponentsProvider._online)):(ee(Nn,"Using default OnlineComponentProvider"),await Qu(t,new Pa))),t._onlineComponents}function v1(t){return _1(t).then(e=>e.syncEngine)}/** 1614 * @license 1615 * Copyright 2023 Google LLC 1616 * 1617 * Licensed under the Apache License, Version 2.0 (the "License"); 1618 * you may not use this file except in compliance with the License. 1619 * You may obtain a copy of the License at 1620 * 1621 * http://www.apache.org/licenses/LICENSE-2.0 1622 * 1623 * Unless required by applicable law or agreed to in writing, software 1624 * distributed under the License is distributed on an "AS IS" BASIS, 1625 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1626 * See the License for the specific language governing permissions and 1627 * limitations under the License. 1628 */function qd(t){const e={};return t.timeoutSeconds!==void 0&&(e.timeoutSeconds=t.timeoutSeconds),e}/** 1629 * @license 1630 * Copyright 2020 Google LLC 1631 * 1632 * Licensed under the Apache License, Version 2.0 (the "License");
1633 * you may not use this file except in compliance with the License. 1634 * You may obtain a copy of the License at 1635 * 1636 * http://www.apache.org/licenses/LICENSE-2.0 1637 * 1638 * Unless required by applicable law or agreed to in writing, software 1639 * distributed under the License is distributed on an "AS IS" BASIS, 1640 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1641 * See the License for the specific language governing permissions and 1642 * limitations under the License. 1643 */const Xu=new Map;/** 1644 * @license 1645 * Copyright 2017 Google LLC 1646 * 1647 * Licensed under the Apache License, Version 2.0 (the "License"); 1648 * you may not use this file except in compliance with the License. 1649 * You may obtain a copy of the License at 1650 * 1651 * http://www.apache.org/licenses/LICENSE-2.0 1652 * 1653 * Unless required by applicable law or agreed to in writing, software 1654 * distributed under the License is distributed on an "AS IS" BASIS, 1655 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1656 * See the License for the specific language governing permissions and 1657 * limitations under the License. 1658 */function Kd(t,e,n){if(!n)throw new ie(U.INVALID_ARGUMENT,`Function ${t}() cannot be called with an empty ${e}.`)}function E1(t,e,n,r){if(e===!0&&r===!0)throw new ie(U.INVALID_ARGUMENT,`${t} and ${n} cannot be used together.`)}function Yu(t){if(!ue.isDocumentKey(t))throw new ie(U.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${t} has ${t.length}.`)}function Ju(t){if(ue.isDocumentKey(t))throw new ie(U.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${t} has ${t.length}.`)}function ml(t){if(t===void 0)return"undefined";if(t===null)return"null";if(typeof t=="string")return t.length>20&&(t=`${t.substring(0,20)}...`),JSON.stringify(t);if(typeof t=="number"||typeof t=="boolean")return""+t;if(typeof t=="object"){if(t instanceof Array)return"an array";{const e=function(r){return r.constructor?r.constructor.name:null}(t);return e?`a custom ${e} object`:"an object"}}return typeof t=="function"?"a function":he()}function Gd(t,e){if("_delegate"in t&&(t=t._delegate),!(t instanceof e)){if(e.name===t.constructor.name)throw new ie(U.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const n=ml(t);throw new ie(U.INVALID_ARGUMENT,`Expected type '${e.name}', but it was: ${n}`)}}return t}/** 1659 * @license 1660 * Copyright 2020 Google LLC 1661 * 1662 * Licensed under the Apache License, Version 2.0 (the "License"); 1663 * you may not use this file except in compliance with the License. 1664 * You may obtain a copy of the License at 1665 * 1666 * http://www.apache.org/licenses/LICENSE-2.0 1667 * 1668 * Unless required by applicable law or agreed to in writing, software 1669 * distributed under the License is distributed on an "AS IS" BASIS, 1670 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1671 * See the License for the specific language governing permissions and 1672 * limitations under the License. 1673 */const Wd="firestore.googleapis.com",Zu=!0;class eh{constructor(e){var n,r;if(e.host===void 0){if(e.ssl!==void 0)throw new ie(U.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host=Wd,this.ssl=Zu}else this.host=e.host,this.ssl=(n=e.ssl)!==null&&n!==void 0?n:Zu;if(this.credentials=e.credentials,this.ignoreUndefinedProperties=!!e.ignoreUndefinedProperties,this.localCache=e.localCache,e.cacheSizeBytes===void 0)this.cacheSizeBytes=Od;else{if(e.cacheSizeBytes!==-1&&e.cacheSizeBytes<yE)throw new ie(U.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=e.cacheSizeBytes}E1("experimentalForceLongPolling",e.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",e.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!e.experimentalForceLongPolling,this.experimentalForceLongPolling?this.experimentalAutoDetectLongPolling=!1:e.experimentalAutoDetectLongPolling===void 0?this.experimentalAutoDetectLongPolling=!0:this.experimentalAutoDetectLongPolling=!!e.experimentalAutoDetectLongPolling,this.experimentalLongPollingOptions=qd((r=e.experimentalLongPollingOptions)!==null&&r!==void 0?r:{}
1673),function(o){if(o.timeoutSeconds!==void 0){if(isNaN(o.timeoutSeconds))throw new ie(U.INVALID_ARGUMENT,`invalid long polling timeout: ${o.timeoutSeconds} (must not be NaN)`);if(o.timeoutSeconds<5)throw new ie(U.INVALID_ARGUMENT,`invalid long polling timeout: ${o.timeoutSeconds} (minimum allowed value is 5)`);if(o.timeoutSeconds>30)throw new ie(U.INVALID_ARGUMENT,`invalid long polling timeout: ${o.timeoutSeconds} (maximum allowed value is 30)`)}}(this.experimentalLongPollingOptions),this.useFetchStreams=!!e.useFetchStreams}isEqual(e){return this.host===e.host&&this.ssl===e.ssl&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.experimentalForceLongPolling===e.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===e.experimentalAutoDetectLongPolling&&function(r,s){return r.timeoutSeconds===s.timeoutSeconds}(this.experimentalLongPollingOptions,e.experimentalLongPollingOptions)&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams}}class uo{constructor(e,n,r,s){this._authCredentials=e,this._appCheckCredentials=n,this._databaseId=r,this._app=s,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new eh({}),this._settingsFrozen=!1,this._emulatorOptions={},this._terminateTask="notTerminated"}get app(){if(!this._app)throw new ie(U.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return this._terminateTask!=="notTerminated"}_setSettings(e){if(this._settingsFrozen)throw new ie(U.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 eh(e),this._emulatorOptions=e.emulatorOptions||{},e.credentials!==void 0&&(this._authCredentials=function(r){if(!r)return new Zv;switch(r.type){case"firstParty":return new r0(r.sessionIndex||"0",r.iamToken||null,r.authTokenFactory||null);case"provider":return r.client;default:throw new ie(U.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invalid credential type")}}(e.credentials))}_getSettings(){return this._settings}_getEmulatorOptions(){return this._emulatorOptions}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return this._terminateTask==="notTerminated"&&(this._terminateTask=this._terminate()),this._terminateTask}async _restart(){this._terminateTask==="notTerminated"?await this._terminate():this._terminateTask="notTerminated"}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return function(n){const r=Xu.get(n);r&&(ee("ComponentProvider","Removing Datastore"),Xu.delete(n),r.terminate())}(this),Promise.resolve()}}function w1(t,e,n,r={}){var s;const o=(t=Gd(t,uo))._getSettings(),a=Object.assign(Object.assign({},o),{emulatorOptions:t._getEmulatorOptions()}),l=`${e}:${n}`;o.host!==Wd&&o.host!==l&&no("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used.");const u=Object.assign(Object.assign({},o),{host:l,ssl:!1,emulatorOptions:r});if(!Is(u,a)&&(t._setSettings(u),r.mockUserToken)){let f,d;if(typeof r.mockUserToken=="string")f=r.mockUserToken,d=st.MOCK_USER;else{f=C_(r.mockUserToken,(s=t._app)===null||s===void 0?void 0:s.options.projectId);const p=r.mockUserToken.sub||r.mockUserToken.user_id;if(!p)throw new ie(U.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");d=new st(p)}t._authCredentials=new e0(new nd(f,d))}}/** 1674 * @license 1675 * Copyright 2020 Google LLC 1676 * 1677 * Licensed under the Apache License, Version 2.0 (the "License"); 1678 * you may not use this file except in compliance with the License. 1679 * You may obtain a copy of the License at 1680 * 1681 * http://www.apache.org/licenses/LICENSE-2.0 1682 * 1683 * Unless required by applicable law or agreed to in writing, software 1684 * distributed under the License is distributed on an "AS IS" BASIS, 1685 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1686 * See the License for the specific language governing permissions and 1687 * limitations under the License. 1688 */class gl{constructor(e,n,r){this.converter=n,this._query=r,this.type="query",this.firestore=e}withConverter(e){return new gl(this.firestore,e,this._query)}}class un{constructor(e,n,r){this.converter=n,this._key=r,this.type="document",this.firestore=e}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}
1688get path(){return this._key.path.canonicalString()}get parent(){return new Pn(this.firestore,this.converter,this._key.path.popLast())}withConverter(e){return new un(this.firestore,e,this._key)}}class Pn extends gl{constructor(e,n,r){super(e,n,k0(r)),this._path=r,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const e=this._path.popLast();return e.isEmpty()?null:new un(this.firestore,null,new ue(e))}withConverter(e){return new Pn(this.firestore,e,this._path)}}function th(t,e,...n){if(t=Zn(t),Kd("collection","path",e),t instanceof uo){const r=Le.fromString(e,...n);return Ju(r),new Pn(t,null,r)}{if(!(t instanceof un||t instanceof Pn))throw new ie(U.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const r=t._path.child(Le.fromString(e,...n));return Ju(r),new Pn(t.firestore,null,r)}}function T1(t,e,...n){if(t=Zn(t),arguments.length===1&&(e=rd.newId()),Kd("doc","path",e),t instanceof uo){const r=Le.fromString(e,...n);return Yu(r),new un(t,null,new ue(r))}{if(!(t instanceof un||t instanceof Pn))throw new ie(U.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const r=t._path.child(Le.fromString(e,...n));return Yu(r),new un(t.firestore,t instanceof Pn?t.converter:null,new ue(r))}}/** 1689 * @license 1690 * Copyright 2020 Google LLC 1691 * 1692 * Licensed under the Apache License, Version 2.0 (the "License"); 1693 * you may not use this file except in compliance with the License. 1694 * You may obtain a copy of the License at 1695 * 1696 * http://www.apache.org/licenses/LICENSE-2.0 1697 * 1698 * Unless required by applicable law or agreed to in writing, software 1699 * distributed under the License is distributed on an "AS IS" BASIS, 1700 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1701 * See the License for the specific language governing permissions and 1702 * limitations under the License. 1703 */const nh="AsyncQueue";class rh{constructor(e=Promise.resolve()){this.Vu=[],this.mu=!1,this.fu=[],this.gu=null,this.pu=!1,this.yu=!1,this.wu=[],this.a_=new Ld(this,"async_queue_retry"),this.bu=()=>{const r=Wo();r&&ee(nh,"Visibility state changed to "+r.visibilityState),this.a_.t_()},this.Su=e;const n=Wo();n&&typeof n.addEventListener=="function"&&n.addEventListener("visibilitychange",this.bu)}get isShuttingDown(){return this.mu}enqueueAndForget(e){this.enqueue(e)}enqueueAndForgetEvenWhileRestricted(e){this.Du(),this.vu(e)}enterRestrictedMode(e){if(!this.mu){this.mu=!0,this.yu=e||!1;const n=Wo();n&&typeof n.removeEventListener=="function"&&n.removeEventListener("visibilitychange",this.bu)}}enqueue(e){if(this.Du(),this.mu)return new Promise(()=>{});const n=new Xn;return this.vu(()=>this.mu&&this.yu?Promise.resolve():(e().then(n.resolve,n.reject),n.promise)).then(()=>n.promise)}enqueueRetryable(e){this.enqueueAndForget(()=>(this.Vu.push(e),this.Cu()))}async Cu(){if(this.Vu.length!==0){try{await this.Vu[0](),this.Vu.shift(),this.a_.reset()}catch(e){if(!Ns(e))throw e;ee(nh,"Operation failed with retryable error: "+e)}this.Vu.length>0&&this.a_.Xo(()=>this.Cu())}}vu(e){const n=this.Su.then(()=>(this.pu=!0,e().catch(r=>{this.gu=r,this.pu=!1;const s=function(a){let l=a.message||"";return a.stack&&(l=a.stack.includes(a.message)?a.stack:a.message+` 1704`+a.stack),l}(r);throw tr("INTERNAL UNHANDLED ERROR: ",s),r}).then(r=>(this.pu=!1,r))));return this.Su=n,n}enqueueAfterDelay(e,n,r){this.Du(),this.wu.indexOf(e)>-1&&(n=0);const s=pl.createAndSchedule(this,e,n,r,o=>this.Fu(o));return this.fu.push(s),s}Du(){this.gu&&he()}verifyOperationInProgress(){}async Mu(){let e;do e=this.Su,await e;while(e!==this.Su)}xu(e){for(const n of this.fu)if(n.timerId===e)return!0;return!1}Ou(e){return this.Mu().then(()=>{this.fu.sort((n,r)=>n.targetTimeMs-r.targetTimeMs);for(const n of this.fu)if(n.skipDelay(),e!=="all"&&n.timerId===e)break;return this.Mu()})}Nu(e){this.wu.push(e)}Fu(e){const n=this.fu.indexOf(e);this.fu.splice(n,1)}}class Qd extends uo{constructor(e,n,r,s){super(e,n,r,s),this.type="firestore",this._queue=new rh,this._persistenceKey=(s==null?void 0:s.name)||"[DEFAULT]"}async _terminate(){if(this._firestoreClient){const e=this._firestoreClient.terminate();this._queue=new rh(e),this._firestoreClient=void 0,await e}}}function b1(t,e){const n=typeof t=="object"?t:Wf(),r=typeof t=="string"?t:xi,s=Os(n,"firestore").getImmediate({identifier:r});if(!s._initialized){const o=S_("firestore");o&&w1(s,...o)}return s}function I1(t){if(t._terminated)throw new ie(U.FAILED_PRECONDITION,"The client has already been terminated.");return t._firestoreClient||A1(t),t._firestoreClient}function A1(t){var e,n,r;const s=t._freezeSettings(),o=function(l,u,f,d){return new _0(l,u,f,d.host,d.ssl,d.experimentalForceLongPolling,d.experimentalAutoDetectLongPolling,qd(d.experimentalLongPollingOptions),d.useFetchStreams)}(t._databaseId,((e=t._app)===null||e===void 0?void 0:e.options.appId)||"",t._persistenceKey,s);t._componentsProvider||!((n=s.localCache)===null||n===void 0)&&n._offlineComponentProvider&&(!((r=s.localCache)===null||r===void 0)&&r._onlineComponentProvider)&&(t._componentsProvider={_offline:s.localCache._offlineComponentProvider,_online:s.localCache._onlineComponentProvider}),t._firestoreClient=new g1(t._authCredentials,t._appCheckCredentials,t._queue,o,t._
1704componentsProvider&&function(l){const u=l==null?void 0:l._online.build();return{_offline:l==null?void 0:l._offline.build(u),_online:u}}(t._componentsProvider))}/** 1705 * @license 1706 * Copyright 2020 Google LLC 1707 * 1708 * Licensed under the Apache License, Version 2.0 (the "License"); 1709 * you may not use this file except in compliance with the License. 1710 * You may obtain a copy of the License at 1711 * 1712 * http://www.apache.org/licenses/LICENSE-2.0 1713 * 1714 * Unless required by applicable law or agreed to in writing, software 1715 * distributed under the License is distributed on an "AS IS" BASIS, 1716 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1717 * See the License for the specific language governing permissions and 1718 * limitations under the License. 1719 */class Vs{constructor(e){this._byteString=e}static fromBase64String(e){try{return new Vs(Jt.fromBase64String(e))}catch(n){throw new ie(U.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+n)}}static fromUint8Array(e){return new Vs(Jt.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)}}/** 1720 * @license 1721 * Copyright 2020 Google LLC 1722 * 1723 * Licensed under the Apache License, Version 2.0 (the "License"); 1724 * you may not use this file except in compliance with the License. 1725 * You may obtain a copy of the License at 1726 * 1727 * http://www.apache.org/licenses/LICENSE-2.0 1728 * 1729 * Unless required by applicable law or agreed to in writing, software 1730 * distributed under the License is distributed on an "AS IS" BASIS, 1731 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1732 * See the License for the specific language governing permissions and 1733 * limitations under the License. 1734 */class Xd{constructor(...e){for(let n=0;n<e.length;++n)if(e[n].length===0)throw new ie(U.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new Ye(e)}isEqual(e){return this._internalPath.isEqual(e._internalPath)}}/** 1735 * @license 1736 * Copyright 2020 Google LLC 1737 * 1738 * Licensed under the Apache License, Version 2.0 (the "License"); 1739 * you may not use this file except in compliance with the License. 1740 * You may obtain a copy of the License at 1741 * 1742 * http://www.apache.org/licenses/LICENSE-2.0 1743 * 1744 * Unless required by applicable law or agreed to in writing, software 1745 * distributed under the License is distributed on an "AS IS" BASIS, 1746 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1747 * See the License for the specific language governing permissions and 1748 * limitations under the License. 1749 */class Yd{constructor(e){this._methodName=e}}/** 1750 * @license 1751 * Copyright 2017 Google LLC 1752 * 1753 * Licensed under the Apache License, Version 2.0 (the "License"); 1754 * you may not use this file except in compliance with the License. 1755 * You may obtain a copy of the License at 1756 * 1757 * http://www.apache.org/licenses/LICENSE-2.0 1758 * 1759 * Unless required by applicable law or agreed to in writing, software 1760 * distributed under the License is distributed on an "AS IS" BASIS, 1761 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1762 * See the License for the specific language governing permissions and 1763 * limitations under the License. 1764 */class Jd{constructor(e,n){if(!isFinite(e)||e<-90||e>90)throw new ie(U.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(n)||n<-180||n>180)throw new ie(U.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+n);this._lat=e,this._long=n}get latitude(){return this._lat}get longitude(){return this._long}isEqual(e){return this._lat===e._lat&&this._long===e._long}toJSON(){return{latitude:this._lat,longitude:this._long}}_compareTo(e){return Ae(this._lat,e._lat)||Ae(this._long,e._long)}}/** 1765 * @license 1766 * Copyright 2024 Google LLC 1767 * 1768 * Licensed under the Apache License, Version 2.0 (the "License"); 1769 * you may not use this file except in compliance with the License. 1770 * You may obtain a copy of the License at 1771 * 1772 * http://www.apache.org/licenses/LICENSE-2.0 1773 * 1774 * Unless required by applicable law or agreed to in writing, softw
1774are 1775 * distributed under the License is distributed on an "AS IS" BASIS, 1776 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1777 * See the License for the specific language governing permissions and 1778 * limitations under the License. 1779 */class Zd{constructor(e){this._values=(e||[]).map(n=>n)}toArray(){return this._values.map(e=>e)}isEqual(e){return function(r,s){if(r.length!==s.length)return!1;for(let o=0;o<r.length;++o)if(r[o]!==s[o])return!1;return!0}(this._values,e._values)}}/** 1780 * @license 1781 * Copyright 2017 Google LLC 1782 * 1783 * Licensed under the Apache License, Version 2.0 (the "License"); 1784 * you may not use this file except in compliance with the License. 1785 * You may obtain a copy of the License at 1786 * 1787 * http://www.apache.org/licenses/LICENSE-2.0 1788 * 1789 * Unless required by applicable law or agreed to in writing, software 1790 * distributed under the License is distributed on an "AS IS" BASIS, 1791 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1792 * See the License for the specific language governing permissions and 1793 * limitations under the License. 1794 */const R1=/^__.*__$/;class S1{constructor(e,n,r){this.data=e,this.fieldMask=n,this.fieldTransforms=r}toMutation(e,n){return this.fieldMask!==null?new lr(e,this.data,this.fieldMask,n,this.fieldTransforms):new Ms(e,this.data,n,this.fieldTransforms)}}function ep(t){switch(t){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw he()}}class yl{constructor(e,n,r,s,o,a){this.settings=e,this.databaseId=n,this.serializer=r,this.ignoreUndefinedProperties=s,o===void 0&&this.Bu(),this.fieldTransforms=o||[],this.fieldMask=a||[]}get path(){return this.settings.path}get Lu(){return this.settings.Lu}ku(e){return new yl(Object.assign(Object.assign({},this.settings),e),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}qu(e){var n;const r=(n=this.path)===null||n===void 0?void 0:n.child(e),s=this.ku({path:r,Qu:!1});return s.$u(e),s}Ku(e){var n;const r=(n=this.path)===null||n===void 0?void 0:n.child(e),s=this.ku({path:r,Qu:!1});return s.Bu(),s}Uu(e){return this.ku({path:void 0,Qu:!0})}Wu(e){return Ui(e,this.settings.methodName,this.settings.Gu||!1,this.path,this.settings.zu)}contains(e){return this.fieldMask.find(n=>e.isPrefixOf(n))!==void 0||this.fieldTransforms.find(n=>e.isPrefixOf(n.field))!==void 0}Bu(){if(this.path)for(let e=0;e<this.path.length;e++)this.$u(this.path.get(e))}$u(e){if(e.length===0)throw this.Wu("Document fields must not be empty");if(ep(this.Lu)&&R1.test(e))throw this.Wu('Document fields cannot begin and end with "__"')}}class P1{constructor(e,n,r){this.databaseId=e,this.ignoreUndefinedProperties=n,this.serializer=r||oo(e)}ju(e,n,r,s=!1){return new yl({Lu:e,methodName:n,zu:r,path:Ye.emptyPath(),Qu:!1,Gu:s},this.databaseId,this.serializer,this.ignoreUndefinedProperties)}}function C1(t){const e=t._freezeSettings(),n=oo(t._databaseId);return new P1(t._databaseId,!!e.ignoreUndefinedProperties,n)}function V1(t,e,n,r,s,o={}){const a=t.ju(o.merge||o.mergeFields?2:0,e,n,s);sp("Data must be an object, but it was:",a,r);const l=np(r,a);let u,f;if(o.merge)u=new jt(a.fieldMask),f=a.fieldTransforms;else if(o.mergeFields){const d=[];for(const p of o.mergeFields){const _=x1(e,p,n);if(!a.contains(_))throw new ie(U.INVALID_ARGUMENT,`Field '${_}' is specified in your field mask but missing from your input data.`);O1(d,_)||d.push(_)}u=new jt(d),f=a.fieldTransforms.filter(p=>u.covers(p.field))}else u=null,f=a.fieldTransforms;return new S1(new Ut(l),u,f)}function tp(t,e){if(rp(t=Zn(t)))return sp("Unsupported field value:",e,t),np(t,e);if(t instanceof Yd)return function(r,s){if(!ep(s.Lu))throw s.Wu(`${r._methodName}() can only be used with update() and set()`);if(!s.path)throw s.Wu(`${r._methodName}() is not currently supported inside arrays`);const o=r._toFieldTransform(s);o&&s.fieldTransforms.push(o)}(t,e),null;if(t===void 0&&e.ignoreUndefinedProperties)return null;if(e.path&&e.fieldMask.push(e.path),t instanceof Array){if(e.settings.Qu&&e.Lu!==4)throw e.Wu("Nested arrays are not supported");return function(r,s){const o=[];let a=0;for(const l of r){let u=tp(l,s.Uu(a));u==null&&(u={nullValue:"NULL_VALUE"}),o.push(u),a++}return{arrayValue:{values:o}}}(t,e)}return function(r,s){if((r=Zn(r))===null)return{nullValue:"NULL_VALUE"};if(typeof r=="number")return z0(s.serializer,r);if(typeof r=="boolean")return{booleanValue:r};if(typeof r=="string")return{stringValue:r};if(r instanceof Date){const o=qe.fromDate(r);return{timestampValue:Ia(s.serializer,o)}}if(r instanceof qe){const o=new qe(r.seconds,1e3*Math.floor(r.nanoseconds/1e3));return{timestampValue:Ia(s.serializer,o)}}if(r instanceof Jd)return{geoPointValue:{latitude:r.latitude,longitude:r.longitude}};if(r instanceof Vs)return{bytesValue:nE(s.serializer,r._byteString)};if(r instanceof un){const o=s.databaseId,a=r.firestore._databaseId;if(!a.isEqual(o))throw s.Wu(`Document reference is for database ${a.projectId}/${a.database} but should be for database ${o.projectId}/${o.database}`);return{referenceValue:Dd(r.firestore._databaseId||s.databaseId,r._key.path)}}if(r instanceof Zd)return function(a,l){return{mapValue:{fields:{[ud]:{stringValue:hd},[va]:{arrayValue:{values:a.toArray().map(f=>
1794{if(typeof f!="number")throw l.Wu("VectorValues must only contain numeric values.");return cl(l.serializer,f)})}}}}}}(r,s);throw s.Wu(`Unsupported field value: ${ml(r)}`)}(t,e)}function np(t,e){const n={};return id(t)?e.path&&e.path.length>0&&e.fieldMask.push(e.path):Mr(t,(r,s)=>{const o=tp(s,e.qu(r));o!=null&&(n[r]=o)}),{mapValue:{fields:n}}}function rp(t){return!(typeof t!="object"||t===null||t instanceof Array||t instanceof Date||t instanceof qe||t instanceof Jd||t instanceof Vs||t instanceof un||t instanceof Yd||t instanceof Zd)}function sp(t,e,n){if(!rp(n)||!function(s){return typeof s=="object"&&s!==null&&(Object.getPrototypeOf(s)===Object.prototype||Object.getPrototypeOf(s)===null)}(n)){const r=ml(n);throw r==="an object"?e.Wu(t+" a custom object"):e.Wu(t+" "+r)}}function x1(t,e,n){if((e=Zn(e))instanceof Xd)return e._internalPath;if(typeof e=="string")return k1(t,e);throw Ui("Field path arguments must be of type string or ",t,!1,void 0,n)}const D1=new RegExp("[~\\*/\\[\\]]");function k1(t,e,n){if(e.search(D1)>=0)throw Ui(`Invalid field path (${e}). Paths must not contain '~', '*', '/', '[', or ']'`,t,!1,void 0,n);try{return new Xd(...e.split("."))._internalPath}catch{throw Ui(`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,t,!1,void 0,n)}}function Ui(t,e,n,r,s){const o=r&&!r.isEmpty(),a=s!==void 0;let l=`Function ${e}() called with invalid data`;n&&(l+=" (via `toFirestore()`)"),l+=". ";let u="";return(o||a)&&(u+=" (found",o&&(u+=` in field ${r}`),a&&(u+=` in document ${s}`),u+=")"),new ie(U.INVALID_ARGUMENT,l+t+u)}function O1(t,e){return t.some(n=>n.isEqual(e))}/** 1795 * @license 1796 * Copyright 2020 Google LLC 1797 * 1798 * Licensed under the Apache License, Version 2.0 (the "License"); 1799 * you may not use this file except in compliance with the License. 1800 * You may obtain a copy of the License at 1801 * 1802 * http://www.apache.org/licenses/LICENSE-2.0 1803 * 1804 * Unless required by applicable law or agreed to in writing, software 1805 * distributed under the License is distributed on an "AS IS" BASIS, 1806 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1807 * See the License for the specific language governing permissions and 1808 * limitations under the License. 1809 */function N1(t,e,n){let r;return r=t?t.toFirestore(e):e,r}function sh(t,e){const n=Gd(t.firestore,Qd),r=T1(t),s=N1(t.converter,e);return M1(n,[V1(C1(t.firestore),"addDoc",r._key,s,t.converter!==null,{}).toMutation(r._key,cn.exists(!1))]).then(()=>r)}function M1(t,e){return function(r,s){const o=new Xn;return r.asyncQueue.enqueueAndForget(async()=>u1(await v1(r),s,o)),o.promise}(I1(t),e)}(function(e,n=!0){(function(s){Nr=s})(Uv),xn(new hn("firestore",(r,{instanceIdentifier:s,options:o})=>{const a=r.getProvider("app").getImmediate(),l=new Qd(new t0(r.getProvider("auth-internal")),new s0(a,r.getProvider("app-check-internal")),function(f,d){if(!Object.prototype.hasOwnProperty.apply(f.options,["projectId"]))throw new ie(U.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new Di(f.options.projectId,d)}(a,s),a);return o=Object.assign({useFetchStreams:n},o),l._setSettings(o),l},"PUBLIC").setMultipleInstances(!0)),Xt(yu,_u,e),Xt(yu,_u,"esm2017")})();const ip="@firebase/installations",_l="0.6.13";/** 1810 * @license 1811 * Copyright 2019 Google LLC 1812 * 1813 * Licensed under the Apache License, Version 2.0 (the "License"); 1814 * you may not use this file except in compliance with the License. 1815 * You may obtain a copy of the License at 1816 * 1817 * http://www.apache.org/licenses/LICENSE-2.0 1818 * 1819 * Unless required by applicable law or agreed to in writing, software 1820 * distributed under the License is distributed on an "AS IS" BASIS, 1821 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1822 * See the License for the specific language governing permissions and 1823 * limitations under the License. 1824 */const op=1e4,ap=`w:${_l}`,lp="FIS_v2",L1="https://firebaseinstallations.googleapis.com/v1",F1=60*60*1e3,$1="installations",U1="Installations";/** 1825 * @license 1826 * Copyright 2019 Google LLC 1827 * 1828 * Licensed under the Apache License, Version 2.0 (the "License");
1829 * you may not use this file except in compliance with the License. 1830 * You may obtain a copy of the License at 1831 * 1832 * http://www.apache.org/licenses/LICENSE-2.0 1833 * 1834 * Unless required by applicable law or agreed to in writing, software 1835 * distributed under the License is distributed on an "AS IS" BASIS, 1836 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1837 * See the License for the specific language governing permissions and 1838 * limitations under the License. 1839 */const j1={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."},sr=new to($1,U1,j1);function cp(t){return t instanceof Fn&&t.code.includes("request-failed")}/** 1840 * @license 1841 * Copyright 2019 Google LLC 1842 * 1843 * Licensed under the Apache License, Version 2.0 (the "License"); 1844 * you may not use this file except in compliance with the License. 1845 * You may obtain a copy of the License at 1846 * 1847 * http://www.apache.org/licenses/LICENSE-2.0 1848 * 1849 * Unless required by applicable law or agreed to in writing, software 1850 * distributed under the License is distributed on an "AS IS" BASIS, 1851 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1852 * See the License for the specific language governing permissions and 1853 * limitations under the License. 1854 */function up({projectId:t}){return`${L1}/projects/${t}/installations`}function hp(t){return{token:t.token,requestStatus:2,expiresIn:z1(t.expiresIn),creationTime:Date.now()}}async function fp(t,e){const r=(await e.json()).error;return sr.create("request-failed",{requestName:t,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})}function dp({apiKey:t}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t})}function B1(t,{refreshToken:e}){const n=dp(t);return n.append("Authorization",H1(e)),n}async function pp(t){const e=await t();return e.status>=500&&e.status<600?t():e}function z1(t){return Number(t.replace("s","000"))}function H1(t){return`${lp} ${t}`}/** 1855 * @license 1856 * Copyright 2019 Google LLC 1857 * 1858 * Licensed under the Apache License, Version 2.0 (the "License"); 1859 * you may not use this file except in compliance with the License. 1860 * You may obtain a copy of the License at 1861 * 1862 * http://www.apache.org/licenses/LICENSE-2.0 1863 * 1864 * Unless required by applicable law or agreed to in writing, software 1865 * distributed under the License is distributed on an "AS IS" BASIS, 1866 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1867 * See the License for the specific language governing permissions and 1868 * limitations under the License. 1869 */async function q1({appConfig:t,heartbeatServiceProvider:e},{fid:n}){const r=up(t),s=dp(t),o=e.getImmediate({optional:!0});if(o){const f=await o.getHeartbeatsHeader();f&&s.append("x-firebase-client",f)}const a={fid:n,authVersion:lp,appId:t.appId,sdkVersion:ap},l={method:"POST",headers:s,body:JSON.stringify(a)},u=await pp(()=>fetch(r,l));if(u.ok){const f=await u.json();return{fid:f.fid||n,registrationStatus:2,refreshToken:f.refreshToken,authToken:hp(f.authToken)}}else throw await fp("Create Installation",u)}/** 1870 * @license 1871 * Copyright 2019 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 mp(t){return new Promise(e=>{setTimeout(e,t)})}/** 1885 * @license 1886 * Copyright 2019 Google LLC 1887 * 1888 * Licensed under the Apache License, Version 2.0 (the "License");
1889 * you may not use this file except in compliance with the License. 1890 * You may obtain a copy of the License at 1891 * 1892 * http://www.apache.org/licenses/LICENSE-2.0 1893 * 1894 * Unless required by applicable law or agreed to in writing, software 1895 * distributed under the License is distributed on an "AS IS" BASIS, 1896 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1897 * See the License for the specific language governing permissions and 1898 * limitations under the License. 1899 */function K1(t){return btoa(String.fromCharCode(...t)).replace(/\+/g,"-").replace(/\//g,"_")}/** 1900 * @license 1901 * Copyright 2019 Google LLC 1902 * 1903 * Licensed under the Apache License, Version 2.0 (the "License"); 1904 * you may not use this file except in compliance with the License. 1905 * You may obtain a copy of the License at 1906 * 1907 * http://www.apache.org/licenses/LICENSE-2.0 1908 * 1909 * Unless required by applicable law or agreed to in writing, software 1910 * distributed under the License is distributed on an "AS IS" BASIS, 1911 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1912 * See the License for the specific language governing permissions and 1913 * limitations under the License. 1914 */const G1=/^[cdef][\w-]{21}$/,Ca="";function W1(){try{const t=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(t),t[0]=112+t[0]%16;const n=Q1(t);return G1.test(n)?n:Ca}catch{return Ca}}function Q1(t){return K1(t).substr(0,22)}/** 1915 * @license 1916 * Copyright 2019 Google LLC 1917 * 1918 * Licensed under the Apache License, Version 2.0 (the "License"); 1919 * you may not use this file except in compliance with the License. 1920 * You may obtain a copy of the License at 1921 * 1922 * http://www.apache.org/licenses/LICENSE-2.0 1923 * 1924 * Unless required by applicable law or agreed to in writing, software 1925 * distributed under the License is distributed on an "AS IS" BASIS, 1926 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1927 * See the License for the specific language governing permissions and 1928 * limitations under the License. 1929 */function ho(t){return`${t.appName}!${t.appId}`}/** 1930 * @license 1931 * Copyright 2019 Google LLC 1932 * 1933 * Licensed under the Apache License, Version 2.0 (the "License"); 1934 * you may not use this file except in compliance with the License. 1935 * You may obtain a copy of the License at 1936 * 1937 * http://www.apache.org/licenses/LICENSE-2.0 1938 * 1939 * Unless required by applicable law or agreed to in writing, software 1940 * distributed under the License is distributed on an "AS IS" BASIS, 1941 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1942 * See the License for the specific language governing permissions and 1943 * limitations under the License. 1944 */const gp=new Map;function yp(t,e){const n=ho(t);_p(n,e),X1(n,e)}function _p(t,e){const n=gp.get(t);if(n)for(const r of n)r(e)}function X1(t,e){const n=Y1();n&&n.postMessage({key:t,fid:e}),J1()}let Wn=null;function Y1(){return!Wn&&"BroadcastChannel"in self&&(Wn=new BroadcastChannel("[Firebase] FID Change"),Wn.onmessage=t=>{_p(t.data.key,t.data.fid)}),Wn}function J1(){gp.size===0&&Wn&&(Wn.close(),Wn=null)}/** 1945 * @license 1946 * Copyright 2019 Google LLC 1947 * 1948 * Licensed under the Apache License, Version 2.0 (the "License"); 1949 * you may not use this file except in compliance with the License. 1950 * You may obtain a copy of the License at 1951 * 1952 * http://www.apache.org/licenses/LICENSE-2.0 1953 * 1954 * Unless required by applicable law or agreed to in writing, software 1955 * distributed under the License is distributed on an "AS IS" BASIS, 1956 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1957 * See the License for the specific language governing permissions and 1958 * limitations under the License. 1959 */const Z1="firebase-installations-database",ew=1,ir="firebase-installations-store";let Xo=null;function vl(){return Xo||(Xo=Kf(Z1,ew,{upgrade:(t,e)=>{switch(e){case 0:t.createObjectStore(ir)}}})),Xo}async function ji(t,e){const n=ho(t),s=(await vl()).transaction(ir,"readwrite"),o=s.objectStore(ir),a=await o.get(n);return await o.put(e,n),await s.done,(!a||a.fid!==e.fid)&&yp(t,e.fid),e}async function vp(t){const e=ho(t),r=(await vl()).transaction(ir,"readwrite");await r.objectStore(ir).delete(e),await r.done}async function fo(t,e){const n=ho(t),s=(await vl()).transaction(ir,"readwrite"),o=s.objectStore(ir),a=await o.get(n),l=e(a);return l===void 0?await o.delete(n):await o.put(l,n),await s.done,l&&(!a||a.fid!==l.fid)&&yp(t,l.fid),l}/** 1960 * @license 1961 * Copyright 2019 Google LLC 1962 * 1963 * Licensed under the Apache License, Version 2.0 (the "License");
1964 * you may not use this file except in compliance with the License. 1965 * You may obtain a copy of the License at 1966 * 1967 * http://www.apache.org/licenses/LICENSE-2.0 1968 * 1969 * Unless required by applicable law or agreed to in writing, software 1970 * distributed under the License is distributed on an "AS IS" BASIS, 1971 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1972 * See the License for the specific language governing permissions and 1973 * limitations under the License. 1974 */async function El(t){let e;const n=await fo(t.appConfig,r=>{const s=tw(r),o=nw(t,s);return e=o.registrationPromise,o.installationEntry});return n.fid===Ca?{installationEntry:await e}:{installationEntry:n,registrationPromise:e}}function tw(t){const e=t||{fid:W1(),registrationStatus:0};return Ep(e)}function nw(t,e){if(e.registrationStatus===0){if(!navigator.onLine){const s=Promise.reject(sr.create("app-offline"));return{installationEntry:e,registrationPromise:s}}const n={fid:e.fid,registrationStatus:1,registrationTime:Date.now()},r=rw(t,n);return{installationEntry:n,registrationPromise:r}}else return e.registrationStatus===1?{installationEntry:e,registrationPromise:sw(t)}:{installationEntry:e}}async function rw(t,e){try{const n=await q1(t,e);return ji(t.appConfig,n)}catch(n){throw cp(n)&&n.customData.serverCode===409?await vp(t.appConfig):await ji(t.appConfig,{fid:e.fid,registrationStatus:0}),n}}async function sw(t){let e=await ih(t.appConfig);for(;e.registrationStatus===1;)await mp(100),e=await ih(t.appConfig);if(e.registrationStatus===0){const{installationEntry:n,registrationPromise:r}=await El(t);return r||n}return e}function ih(t){return fo(t,e=>{if(!e)throw sr.create("installation-not-found");return Ep(e)})}function Ep(t){return iw(t)?{fid:t.fid,registrationStatus:0}:t}function iw(t){return t.registrationStatus===1&&t.registrationTime+op<Date.now()}/** 1975 * @license 1976 * Copyright 2019 Google LLC 1977 * 1978 * Licensed under the Apache License, Version 2.0 (the "License"); 1979 * you may not use this file except in compliance with the License. 1980 * You may obtain a copy of the License at 1981 * 1982 * http://www.apache.org/licenses/LICENSE-2.0 1983 * 1984 * Unless required by applicable law or agreed to in writing, software 1985 * distributed under the License is distributed on an "AS IS" BASIS, 1986 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1987 * See the License for the specific language governing permissions and 1988 * limitations under the License. 1989 */async function ow({appConfig:t,heartbeatServiceProvider:e},n){const r=aw(t,n),s=B1(t,n),o=e.getImmediate({optional:!0});if(o){const f=await o.getHeartbeatsHeader();f&&s.append("x-firebase-client",f)}const a={installation:{sdkVersion:ap,appId:t.appId}},l={method:"POST",headers:s,body:JSON.stringify(a)},u=await pp(()=>fetch(r,l));if(u.ok){const f=await u.json();return hp(f)}else throw await fp("Generate Auth Token",u)}function aw(t,{fid:e}){return`${up(t)}/${e}/authTokens:generate`}/** 1990 * @license 1991 * Copyright 2019 Google LLC 1992 * 1993 * Licensed under the Apache License, Version 2.0 (the "License"); 1994 * you may not use this file except in compliance with the License. 1995 * You may obtain a copy of the License at 1996 * 1997 * http://www.apache.org/licenses/LICENSE-2.0 1998 * 1999 * Unless required by applicable law or agreed to in writing, software 2000 * distributed under the License is distributed on an "AS IS" BASIS, 2001 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2002 * See the License for the specific language governing permissions and 2003 * limitations under the License. 2004 */async function wl(t,e=!1){let n;const r=await fo(t.appConfig,o=>{if(!wp(o))throw sr.create("not-registered");const a=o.authToken;if(!e&&uw(a))return o;if(a.requestStatus===1)return n=lw(t,e),o;{if(!navigator.onLine)throw sr.create("app-offline");const l=fw(o);return n=cw(t,l),l}});return n?await n:r.authToken}async function lw(t,e){let n=await oh(t.appConfig);for(;n.authToken.requestStatus===1;)await mp(100),n=await oh(t.appConfig);const r=n.authToken;return r.requestStatus===0?wl(t,e):r}function oh(t){return fo(t,e=>{if(!wp(e))throw sr.create("not-registered");const n=e.authToken;return dw(n)?Object.assign(Object.assign({},e),{authToken:{requestStatus:0}}):e})}async function cw(t,e){try{const n=await ow(t,e),r=Object.assign(Object.assign({},e),{authToken:n});return await ji(t.appConfig,r),n}catch(n){if(cp(n)&&(n.customData.serverCode===401||n.customData.serverCode===404))await vp(t.appConfig);else{const r=Object.assign(Object.assign({},e),{authToken:{requestStatus:0}});await ji(t.appConfig,r)}throw n}}function wp(t){return t!==void 0&&t.registrationStatus===2}function uw(t){return t.requestStatus===2&&!hw(t)}function hw(t){const e=Date.now();
2004return e<t.creationTime||t.creationTime+t.expiresIn<e+F1}function fw(t){const e={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},t),{authToken:e})}function dw(t){return t.requestStatus===1&&t.requestTime+op<Date.now()}/** 2005 * @license 2006 * Copyright 2019 Google LLC 2007 * 2008 * Licensed under the Apache License, Version 2.0 (the "License"); 2009 * you may not use this file except in compliance with the License. 2010 * You may obtain a copy of the License at 2011 * 2012 * http://www.apache.org/licenses/LICENSE-2.0 2013 * 2014 * Unless required by applicable law or agreed to in writing, software 2015 * distributed under the License is distributed on an "AS IS" BASIS, 2016 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2017 * See the License for the specific language governing permissions and 2018 * limitations under the License. 2019 */async function pw(t){const e=t,{installationEntry:n,registrationPromise:r}=await El(e);return r?r.catch(console.error):wl(e).catch(console.error),n.fid}/** 2020 * @license 2021 * Copyright 2019 Google LLC 2022 * 2023 * Licensed under the Apache License, Version 2.0 (the "License"); 2024 * you may not use this file except in compliance with the License. 2025 * You may obtain a copy of the License at 2026 * 2027 * http://www.apache.org/licenses/LICENSE-2.0 2028 * 2029 * Unless required by applicable law or agreed to in writing, software 2030 * distributed under the License is distributed on an "AS IS" BASIS, 2031 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2032 * See the License for the specific language governing permissions and 2033 * limitations under the License. 2034 */async function mw(t,e=!1){const n=t;return await gw(n),(await wl(n,e)).token}async function gw(t){const{registrationPromise:e}=await El(t);e&&await e}/** 2035 * @license 2036 * Copyright 2019 Google LLC 2037 * 2038 * Licensed under the Apache License, Version 2.0 (the "License"); 2039 * you may not use this file except in compliance with the License. 2040 * You may obtain a copy of the License at 2041 * 2042 * http://www.apache.org/licenses/LICENSE-2.0 2043 * 2044 * Unless required by applicable law or agreed to in writing, software 2045 * distributed under the License is distributed on an "AS IS" BASIS, 2046 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2047 * See the License for the specific language governing permissions and 2048 * limitations under the License. 2049 */function yw(t){if(!t||!t.options)throw Yo("App Configuration");if(!t.name)throw Yo("App Name");const e=["projectId","apiKey","appId"];for(const n of e)if(!t.options[n])throw Yo(n);return{appName:t.name,projectId:t.options.projectId,apiKey:t.options.apiKey,appId:t.options.appId}}function Yo(t){return sr.create("missing-app-config-values",{valueName:t})}/** 2050 * @license 2051 * Copyright 2020 Google LLC 2052 * 2053 * Licensed under the Apache License, Version 2.0 (the "License"); 2054 * you may not use this file except in compliance with the License. 2055 * You may obtain a copy of the License at 2056 * 2057 * http://www.apache.org/licenses/LICENSE-2.0 2058 * 2059 * Unless required by applicable law or agreed to in writing, software 2060 * distributed under the License is distributed on an "AS IS" BASIS, 2061 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2062 * See the License for the specific language governing permissions and 2063 * limitations under the License. 2064 */const Tp="installations",_w="installations-internal",vw=t=>{const e=t.getProvider("app").getImmediate(),n=yw(e),r=Os(e,"heartbeat");return{app:e,appConfig:n,heartbeatServiceProvider:r,_delete:()=>Promise.resolve()}},Ew=t=>{const e=t.getProvider("app").getImmediate(),n=Os(e,Tp).getImmediate();return{getId:()=>pw(n),getToken:s=>mw(n,s)}};function ww(){xn(new hn(Tp,vw,"PUBLIC")),xn(new hn(_w,Ew,"PRIVATE"))}ww();Xt(ip,_l);Xt(ip,_l,"esm2017");/** 2065 * @license 2066 * Copyright 2019 Google LLC 2067 * 2068 * Licensed under the Apache License, Version 2.0 (the "License"); 2069 * you may not use this file except in compliance with the License. 2070 * You may obtain a copy of the License at 2071 * 2072 * http://www.apache.org/licenses/LICENSE-2.0 2073 * 2074 * Unless required by applicable law or agreed to in writing, softw
2074are 2075 * distributed under the License is distributed on an "AS IS" BASIS, 2076 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2077 * See the License for the specific language governing permissions and 2078 * limitations under the License. 2079 */const Bi="analytics",Tw="firebase_id",bw="origin",Iw=60*1e3,Aw="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig",Tl="https://www.googletagmanager.com/gtag/js";/** 2080 * @license 2081 * Copyright 2019 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 */const Et=new Qa("@firebase/analytics");/** 2095 * @license 2096 * Copyright 2019 Google LLC 2097 * 2098 * Licensed under the Apache License, Version 2.0 (the "License"); 2099 * you may not use this file except in compliance with the License. 2100 * You may obtain a copy of the License at 2101 * 2102 * http://www.apache.org/licenses/LICENSE-2.0 2103 * 2104 * Unless required by applicable law or agreed to in writing, software 2105 * distributed under the License is distributed on an "AS IS" BASIS, 2106 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2107 * See the License for the specific language governing permissions and 2108 * limitations under the License. 2109 */const Rw={"already-exists":"A Firebase Analytics instance with the appId {$id} already exists. Only one Firebase Analytics instance can be created for each appId.","already-initialized":"initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-initialized instance.","already-initialized-settings":"Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.","interop-component-reg-failed":"Firebase Analytics Interop Component failed to instantiate: {$reason}","invalid-analytics-context":"Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","indexeddb-unavailable":"IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","fetch-throttle":"The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.","config-fetch-failed":"Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',"no-app-id":'The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',"no-client-id":'The "client_id" field is empty.',"invalid-gtag-resource":"Trusted Types detected an invalid gtag resource: {$gtagURL}."},Pt=new to("analytics","Analytics",Rw);/** 2110 * @license 2111 * Copyright 2019 Google LLC 2112 * 2113 * Licensed under the Apache License, Version 2.0 (the "License"); 2114 * you may not use this file except in compliance with the License. 2115 * You may obtain a copy of the License at 2116 * 2117 * http://www.apache.org/licenses/LICENSE-2.0 2118 * 2119 * Unless required by applicable law or agreed to in writing, software 2120 * distributed under the License is distributed on an "AS IS" BASIS, 2121 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2122 * See the License for the specific language governing permissions and 2123 * limitations under the License. 2124 */function Sw(t){if(!t.startsWith(Tl)){const e=Pt.create("invalid-gtag-resource",{gtagURL:t});return Et.warn(e.message),""}return t}function bp(t){return Promise.all(t.map(e=>e.catch(n=>n)))}function Pw(t,e){let n;return window.trustedTypes&&(n=window.trustedTypes.createPolicy(t,e)),n}function Cw(t,e){const n=Pw("firebase-js-sdk-policy",{createScriptURL:Sw}),r=document.createElement("script"),s=`${Tl}?l=${t}&id=${e}`;r.src=n?n==null?void 0:n.createScriptURL(s):s,r.async=!0,document.head.appendChild(r)}function Vw(t){let e=[];return Array.isArray(window[t])?e=window[t]:window[t]=e,e}async function xw(t,e,n,r,s,o){const a=r[s];try{if(a)await e[a];else{const u=(await bp(n)).find(f=>f.measurementId===s);u&&await e[u.appId]}}catch(l){Et.error(l)}t("config",s,o)}async function Dw(t,e,n,r,s){try{let o=[];if(s&&s.send_to){let a=s.send_to;
2124Array.isArray(a)||(a=[a]);const l=await bp(n);for(const u of a){const f=l.find(p=>p.measurementId===u),d=f&&e[f.appId];if(d)o.push(d);else{o=[];break}}}o.length===0&&(o=Object.values(e)),await Promise.all(o),t("event",r,s||{})}catch(o){Et.error(o)}}function kw(t,e,n,r){async function s(o,...a){try{if(o==="event"){const[l,u]=a;await Dw(t,e,n,l,u)}else if(o==="config"){const[l,u]=a;await xw(t,e,n,r,l,u)}else if(o==="consent"){const[l,u]=a;t("consent",l,u)}else if(o==="get"){const[l,u,f]=a;t("get",l,u,f)}else if(o==="set"){const[l]=a;t("set",l)}else t(o,...a)}catch(l){Et.error(l)}}return s}function Ow(t,e,n,r,s){let o=function(...a){window[r].push(arguments)};return window[s]&&typeof window[s]=="function"&&(o=window[s]),window[s]=kw(o,t,e,n),{gtagCore:o,wrappedGtag:window[s]}}function Nw(t){const e=window.document.getElementsByTagName("script");for(const n of Object.values(e))if(n.src&&n.src.includes(Tl)&&n.src.includes(t))return n;return null}/** 2125 * @license 2126 * Copyright 2020 Google LLC 2127 * 2128 * Licensed under the Apache License, Version 2.0 (the "License"); 2129 * you may not use this file except in compliance with the License. 2130 * You may obtain a copy of the License at 2131 * 2132 * http://www.apache.org/licenses/LICENSE-2.0 2133 * 2134 * Unless required by applicable law or agreed to in writing, software 2135 * distributed under the License is distributed on an "AS IS" BASIS, 2136 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2137 * See the License for the specific language governing permissions and 2138 * limitations under the License. 2139 */const Mw=30,Lw=1e3;class Fw{constructor(e={},n=Lw){this.throttleMetadata=e,this.intervalMillis=n}getThrottleMetadata(e){return this.throttleMetadata[e]}setThrottleMetadata(e,n){this.throttleMetadata[e]=n}deleteThrottleMetadata(e){delete this.throttleMetadata[e]}}const Ip=new Fw;function $w(t){return new Headers({Accept:"application/json","x-goog-api-key":t})}async function Uw(t){var e;const{appId:n,apiKey:r}=t,s={method:"GET",headers:$w(r)},o=Aw.replace("{app-id}",n),a=await fetch(o,s);if(a.status!==200&&a.status!==304){let l="";try{const u=await a.json();!((e=u.error)===null||e===void 0)&&e.message&&(l=u.error.message)}catch{}throw Pt.create("config-fetch-failed",{httpStatus:a.status,responseMessage:l})}return a.json()}async function jw(t,e=Ip,n){const{appId:r,apiKey:s,measurementId:o}=t.options;if(!r)throw Pt.create("no-app-id");if(!s){if(o)return{measurementId:o,appId:r};throw Pt.create("no-api-key")}const a=e.getThrottleMetadata(r)||{backoffCount:0,throttleEndTimeMillis:Date.now()},l=new Hw;return setTimeout(async()=>{l.abort()},Iw),Ap({appId:r,apiKey:s,measurementId:o},a,l,e)}async function Ap(t,{throttleEndTimeMillis:e,backoffCount:n},r,s=Ip){var o;const{appId:a,measurementId:l}=t;try{await Bw(r,e)}catch(u){if(l)return Et.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${l} provided in the "measurementId" field in the local Firebase config. [${u==null?void 0:u.message}]`),{appId:a,measurementId:l};throw u}try{const u=await Uw(t);return s.deleteThrottleMetadata(a),u}catch(u){const f=u;if(!zw(f)){if(s.deleteThrottleMetadata(a),l)return Et.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${l} provided in the "measurementId" field in the local Firebase config. [${f==null?void 0:f.message}]`),{appId:a,measurementId:l};throw u}const d=Number((o=f==null?void 0:f.customData)===null||o===void 0?void 0:o.httpStatus)===503?au(n,s.intervalMillis,Mw):au(n,s.intervalMillis),p={throttleEndTimeMillis:Date.now()+d,backoffCount:n+1};return s.setThrottleMetadata(a,p),Et.debug(`Calling attemptFetch again in ${d} millis`),Ap(t,p,r,s)}}function Bw(t,e){return new Promise((n,r)=>{const s=Math.max(e-Date.now(),0),o=setTimeout(n,s);t.addEventListener(()=>{clearTimeout(o),r(Pt.create("fetch-throttle",{throttleEndTimeMillis:e}))})})}function zw(t){if(!(t instanceof Fn)||!t.customData)return!1;const e=Number(t.customData.httpStatus);return e===429||e===500||e===503||e===504}class Hw{constructor(){this.listeners=[]}addEventListener(e){this.listeners.push(e)}
2139abort(){this.listeners.forEach(e=>e())}}async function qw(t,e,n,r,s){if(s&&s.global){t("event",n,r);return}else{const o=await e,a=Object.assign(Object.assign({},r),{send_to:o});t("event",n,a)}}/** 2140 * @license 2141 * Copyright 2020 Google LLC 2142 * 2143 * Licensed under the Apache License, Version 2.0 (the "License"); 2144 * you may not use this file except in compliance with the License. 2145 * You may obtain a copy of the License at 2146 * 2147 * http://www.apache.org/licenses/LICENSE-2.0 2148 * 2149 * Unless required by applicable law or agreed to in writing, software 2150 * distributed under the License is distributed on an "AS IS" BASIS, 2151 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2152 * See the License for the specific language governing permissions and 2153 * limitations under the License. 2154 */async function Kw(){if(Bf())try{await zf()}catch(t){return Et.warn(Pt.create("indexeddb-unavailable",{errorInfo:t==null?void 0:t.toString()}).message),!1}else return Et.warn(Pt.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;return!0}async function Gw(t,e,n,r,s,o,a){var l;const u=jw(t);u.then(b=>{n[b.measurementId]=b.appId,t.options.measurementId&&b.measurementId!==t.options.measurementId&&Et.warn(`The measurement ID in the local Firebase config (${t.options.measurementId}) does not match the measurement ID fetched from the server (${b.measurementId}). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.`)}).catch(b=>Et.error(b)),e.push(u);const f=Kw().then(b=>{if(b)return r.getId()}),[d,p]=await Promise.all([u,f]);Nw(o)||Cw(o,d.measurementId),s("js",new Date);const _=(l=a==null?void 0:a.config)!==null&&l!==void 0?l:{};return _[bw]="firebase",_.update=!0,p!=null&&(_[Tw]=p),s("config",d.measurementId,_),d.measurementId}/** 2155 * @license 2156 * Copyright 2019 Google LLC 2157 * 2158 * Licensed under the Apache License, Version 2.0 (the "License"); 2159 * you may not use this file except in compliance with the License. 2160 * You may obtain a copy of the License at 2161 * 2162 * http://www.apache.org/licenses/LICENSE-2.0 2163 * 2164 * Unless required by applicable law or agreed to in writing, software 2165 * distributed under the License is distributed on an "AS IS" BASIS, 2166 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2167 * See the License for the specific language governing permissions and 2168 * limitations under the License. 2169 */class Ww{constructor(e){this.app=e}_delete(){return delete ms[this.app.options.appId],Promise.resolve()}}let ms={},ah=[];const lh={};let Jo="dataLayer",Qw="gtag",ch,Rp,uh=!1;function Xw(){const t=[];if(D_()&&t.push("This is a browser extension environment."),O_()||t.push("Cookies are not available."),t.length>0){const e=t.map((r,s)=>`(${s+1}) ${r}`).join(" "),n=Pt.create("invalid-analytics-context",{errorInfo:e});Et.warn(n.message)}}function Yw(t,e,n){Xw();const r=t.options.appId;if(!r)throw Pt.create("no-app-id");if(!t.options.apiKey)if(t.options.measurementId)Et.warn(`The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID ${t.options.measurementId} provided in the "measurementId" field in the local Firebase config.`);else throw Pt.create("no-api-key");if(ms[r]!=null)throw Pt.create("already-exists",{id:r});if(!uh){Vw(Jo);const{wrappedGtag:o,gtagCore:a}=Ow(ms,ah,lh,Jo,Qw);Rp=o,ch=a,uh=!0}return ms[r]=Gw(t,ah,lh,e,ch,Jo,n),new Ww(t)}function Jw(t=Wf()){t=Zn(t);const e=Os(t,Bi);return e.isInitialized()?e.getImmediate():Zw(t)}function Zw(t,e={}){const n=Os(t,Bi);if(n.isInitialized()){const s=n.getImmediate();if(Is(e,n.getOptions()))return s;throw Pt.create("already-initialized")}return n.initialize({options:e})}function Sp(t,e,n,r){t=Zn(t),qw(Rp,ms[t.app.options.appId],e,n,r).catch(s=>Et.error(s))}const hh="@firebase/analytics",fh="0.10.12";function eT(){xn(new hn(Bi,(e,{options:n})=>{const r=e.getProvider("app").getImmediate(),s=e.getProvider("installations-internal").getImmediate();return Yw(r,s,n)},"PUBLIC")),xn(new hn("analytics-internal",t,"PRIVATE")),Xt(hh,fh),Xt(hh,fh,"esm2017");function t(e){try{const n=e.getProvider(Bi).getImmediate();return{logEvent:(r,s,o)=>Sp(n,r,s,o)}}catch(n){throw Pt.create("interop-component-reg-failed",{reason:n})}}}eT();const tT={apiKey:"AIzaSyDL9ZVGM9zh1WWwjq-SVei7fAVW3uua1-g",authDomain:"unfuckit-8bdf1.firebaseapp.com",projectId:"unfuckit-8bdf1",storageBucket:"unfuckit-8bdf1.appspot.com",messagingSenderId:"930390134469",appId:"1:930390134469:web:39bd34e367ecb72c4daaac",measurementId:"G-HWNV7FPDF9"},Pp=Gf(tT),dh=b1(Pp),nT=Jw(Pp),rT=console.error;console.error=function(...t){t[0]&&typeof t[0]=="string"&&t[0].includes("@firebase/firestore")&&console.log("Firestore Error Details:",JSON.stringify(t,null,2)),rT.apply(console,t)};const vr=(t,e={})=>{Sp(nT,t,e)},sT={class:"app-container"},iT={class:"header-content"},oT={key:0,class:"tagline"},aT={key:1},lT={class:"hero"},cT={class:"hero-overlay"},uT=["innerHTML"],hT={class:"forms-section"},fT={class:"form-container business-form"},dT={key:0,class:"success-message"},pT={class:"form-group"},mT={key:0,class:"error-message"},gT={class:"form-group"},yT={key:0,class:"error-message"},_T={class:"form-group"},vT={key:0,class:"error-message"},ET={class:"form-group"},wT={class:"textarea-with-counter"},TT={key:0,class:"checkmark"},bT={key:0,class:"error-message"},IT={class:"form-container dev-form"},AT={key:0,class:"success-message"},RT={class:"form-group"},ST={key:0,class:"error-message"},PT={class:"form-group"},CT={key:0,class:"error-message"},VT={class:"form-group"},xT={key:0,class:"error-message"},DT={class:"form-group"},kT={class:"textarea-with-counter"},OT={key:0,class:"checkmark"},NT={key:0,class:"error-message"},MT={class:"footer-links"},LT=Ds({__name:"App",setup(t){const e=sn([{image:"/code.webp",text:'Has your junior developer just "vibe-coded" 50,000 lines into production?'},{image:"/desk.webp",text:"Is your CTO crying in the server room... again?"},{image:"/laptop_dark.webp",text:"ChatGPT apologizing and Claude building features you never requested?"},{image:"/fingers.webp",text:"We've seen worse."},{image:"/developers.webp",text:"<em>Probably</em>"},{image:"/prism.webp",text:"Vibe-code it today, UnFuckIt.AI tomorrow."}]),n=sn({}),r=sn({}),s=sn(!1),o=sn(!1),a=sn(0),l=sn(0),u=D=>{const R=D.target;a.value=R.value.length},f=D=>{const R=D.target;l.value=R.value.length},d=sn(0);Yh(()=>{vr("page_view",{page_title:"Home",page_path:"/",page_location:window.location.href}),setInterval(()=>{const D=(d.value+1)%e.value.length;d.value=D,vr("hero_carousel_change",{panel_index:D,panel_text:e.value[D].text.replace(/<\/?[^>]+(>|$)/g,"")})},5e3)});const p=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,_=/^(\+\d{1,3}[\s.-]?)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}$/,b=D=>{const R={};return!D.name||D.name.trim()===""?R.name="Name is required":D.name.trim().includes(" ")||(R.name="Please enter both first and last name"),D.email?p.test(D.email)||(R.email="Please enter a valid email address"):R.email="Email is required",D.phone?_.test(D.phone)||(R.phone="Please enter a valid phone number (e.g., 123-456-7890)"):R.phone="Phone number is required",!D.projectDescription||D.projectDescription.trim()===""?R.projectDescription="Project description is required":D.projectDescription.trim().length<100&&(R.projectDescription="Project description must be at least 100 characters"),n.value=R,Object.keys(R).length===0},x=D=>{const R={};return!D.name||D.name.trim()===""?R.name="Name is required":D.name.trim().includes(" ")||(R.name="Please enter both first and last name"),D.email?p.test(D.email)||(R.email="Please enter a valid email address"):R.email="Email is required",D.phone?_.test(D.phone)||(R.phone="Please enter a valid phone number (e.g., 123-456-7890)"):R.phone="Phone number is required",!D.skills||D.skills.trim()===""?R.skills="Skills & experience is required":D.skills.trim().length<100&&(R.skills="Skills & experience must be at least 100 characters"),r.value=R,Object.keys(R).length===0},F=D=>{const R={};return D.forEach((oe,Z)=>{R[Z]=oe}),R},j=async D=>{D.preventDefault();const R=D.target,oe=new FormData(R),Z=F(oe);if(b(Z))try{console.log("Submitting business admin form data:",Z);const T={name:Z.name,email:Z.email,phone:Z.phone,projectDescription:Z.projectDescription,techStack:Z.techStack||"",fired:Z.fired||"none",found:Z.found||[],sorry:Z.sorry||"maybe",timestamp:new Date().toISOString(),date:new Date().toLocaleDateString(),time:new Date().toLocaleTimeString(),timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,userAgent:navigator.userAgent,language:navigator.language,platform:navigator.platform,screenSize:`${window.screen.width}x${window.screen.height}`,referrer:document.referrer||"direct",formType:"businessAdmin"},g=await sh(th(dh,"businessAdmins"),T);console.log("Document written with ID: ",g.id),vr("form_submission",{form_type:"business_admin",form_id:g.id}),s.value=!0,R.reset()}catch(T){console.error("Error adding document: ",T),T instanceof Error&&(console.error("Error details:",T.message),"code"in T&&console.error("Error code:",T.code)),alert("Error submitting form. Please try again.")}},G=D=>{vr("link_click",{link_name:D,page_path:window.location.pathname})},H=async D=>{D.preventDefault();const R=D.target,oe=new FormData(R),Z=F(oe);if(x(Z))try{console.log("Submitting senior dev form data:",Z);let T=Z.website||"";T&&!T.startsWith("http://")&&!T.startsWith("https://")&&(T=`https://${T}`);const g={name:Z.name,email:Z.email,phone:Z.phone,website:T,skills:Z.skills,years:Z.years||"too-many",specialty:Z.specialty||[],patient:Z.patient||"yes",timestamp:new Date().toISOString(),date:new Date().toLocaleDateString(),time:new Date().toLocaleTimeString(),timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,userAgent:navigator.userAgent,language:navigator.language,platform:navigator.platform,screenSize:`${window.screen.width}x${window.screen.height}`,referrer:document.referrer||"direct",formType:"seniorDev",skillsLength:Z.skills?Z.skills.length:0},w=await sh(th(dh,"seniorDevs"),g);console.log("Document written with ID: ",w.id),vr("form_submission",{form_type:"senior_dev",form_id:w.id}),o.value=!0,R.reset()}catch(T){console.error("Error adding document: ",T),T instanceof Error&&(console.error("Error details:",T.message),"code"in T&&console.error("Error code:",T.code)),alert("Error submitting form. Please try again.")}};return(D,R)=>(Ee(),Se("div",sT,[B("header",null,[B("div",iT,[Ie(Ft(ns),{to:"/",class:"home-link"},{default:je(()=>R[3]||(R[3]=[B("h1",null,"UnFuckIt.AI",-1)])),_:1}),D.$route.path==="/"?(Ee(),Se("p",oT,"Vibe-code it today, UnFuckIt.AI tomorrow.")):It
2169("",!0)])]),D.$route.path!=="/"?(Ee(),Ai(Ft(Ff),{key:0,class:"router-view"})):It("",!0),D.$route.path==="/"?(Ee(),Se("div",aT,[B("div",lT,[(Ee(!0),Se(_t,null,rg(e.value,(oe,Z)=>(Ee(),Se("div",{key:Z,class:gt(["hero-panel",{active:Z===d.value}]),style:Gi({backgroundImage:`url(${oe.image})`})},[B("div",cT,[B("h2",{innerHTML:oe.text},null,8,uT)])],6))),128))]),R[25]||(R[25]=B("div",{class:"intro-text"},[B("p",null,"Regretting your AI-driven junior dev hires? We'll get your code back on track. Whether you're drowning in unsalvageable commits or your project is on fire, a senior dev might rescue you.")],-1)),B("div",hT,[B("div",fT,[R[12]||(R[12]=B("h3",null,"For Business Leaders",-1)),R[13]||(R[13]=B("p",{class:"form-subtitle"},"Tell us what happened.",-1)),s.value?(Ee(),Se("div",dT,R[4]||(R[4]=[B("p",null,"Thank you! Your request has been submitted successfully. We'll be in touch soon.",-1)]))):(Ee(),Se("form",{key:1,onSubmit:j},[B("div",pT,[R[5]||(R[5]=B("label",{for:"business-name"},"Name",-1)),B("input",{type:"text",id:"business-name",name:"name",placeholder:"First and Last Name",class:gt({error:n.value.name})},null,2),n.value.name?(Ee(),Se("span",mT,Mt(n.value.name),1)):It("",!0)]),B("div",gT,[R[6]||(R[6]=B("label",{for:"business-email"},"Email",-1)),B("input",{type:"email",id:"business-email",name:"email",placeholder:"[email protected]",class:gt({error:n.value.email})},null,2),n.value.email?(Ee(),Se("span",yT,Mt(n.value.email),1)):It("",!0)]),B("div",_T,[R[7]||(R[7]=B("label",{for:"business-phone"},"Phone Number",-1)),B("input",{type:"tel",id:"business-phone",name:"phone",placeholder:"911-911-9111",pattern:"(\\+\\d{1,3}[\\s.-]?)?\\(?\\d{3}\\)?[\\s.-]?\\d{3}[\\s.-]?\\d{4}",class:gt({error:n.value.phone})},null,2),n.value.phone?(Ee(),Se("span",vT,Mt(n.value.phone),1)):It("",!0),R[8]||(R[8]=B("small",{class:"form-hint"},"Format: 123-456-7890 or (123) 456-7890",-1))]),B("div",ET,[R[9]||(R[9]=B("label",{for:"business-project-description"},"Project Description",-1)),B("div",wT,[B("textarea",{id:"business-project-description",name:"projectDescription",rows:"4",placeholder:"Tell us how your AI dev ruined everything (minimum 100 characters of despair)",class:gt({error:n.value.projectDescription}),onInput:u},null,34),B("div",{class:gt(["character-counter",{met:a.value>=100}])},[B("span",null,Mt(a.value)+"/100",1),a.value>=100?(Ee(),Se("span",TT,"â")):It("",!0)],2)]),n.value.projectDescription?(Ee(),Se("span",bT,Mt(n.value.projectDescription),1)):It("",!0),R[10]||(R[10]=B("small",{class:"form-hint"},"Please provide at least 100 characters describing your project and the issues you're facing",-1))]),R[11]||(R[11]=Sc('<div class="form-group" data-v-62f69ce5><label for="business-tech-stack" data-v-62f69ce5>Tech Stack</label><select id="business-tech-stack" name="techStack" class="form-select" data-v-62f69ce5><option value="i-dont-know" data-v-62f69ce5>I don't know</option><option value="mern-plus" data-v-62f69ce5>MERN+ Distributed Architecture</option><option value="reactive-micro" data-v-62f69ce5>Reactive Microservices Framework</option><option value="edge-compute" data-v-62f69ce5>Containerized Edge Computing Platform</option><option value="hybrid-cloud" data-v-62f69ce5>Hybrid Cloud Native Solution</option><option value="pwa-suite" data-v-62f69ce5>Progressive Web Application Suite</option><option value="distributed-ledger" data-v-62f69ce5>Distributed Ledger Technology Stack</option><option value="scalable-serverless" data-v-62f69ce5>Scalable Serverless Architecture</option><option value="cross-platform" data-v-62f69ce5>Cross-Platform Development Environment</option></select></div><div class="form-group" data-v-62f69ce5><label for="business-fired" data-v-62f69ce5>How many developers did you fire today?</label><select id="business-fired" name="fired" class="form-select" data-v-62f69ce5><option value="none" data-v-62f69ce5>None yet</option><option value="working" data-v-62f69ce5>Working on it</option><option value="1-3" data-v-62f69ce5>1-3</option><option value="4+" data-v-62f69ce5>4+</option><option value="waiting" data-v-62f69ce5>Waiting for legal</option><option value="all" data-v-62f69ce5>
2169All of them</option><option value="not-enough" data-v-62f69ce5>Not enough</option><option value="quit" data-v-62f69ce5>They quit before I could</option></select></div><div class="form-group" data-v-62f69ce5><label data-v-62f69ce5>How did you find us?</label><div class="checkbox-group" data-v-62f69ce5><div class="checkbox-item" data-v-62f69ce5><input type="checkbox" id="found-google" name="found" value="google" data-v-62f69ce5><label for="found-google" data-v-62f69ce5>Google</label></div><div class="checkbox-item" data-v-62f69ce5><input type="checkbox" id="found-linkedin" name="found" value="linkedin" data-v-62f69ce5><label for="found-linkedin" data-v-62f69ce5>LinkedIn</label></div><div class="checkbox-item" data-v-62f69ce5><input type="checkbox" id="found-memes" name="found" value="memes" data-v-62f69ce5><label for="found-memes" data-v-62f69ce5>Memes</label></div><div class="checkbox-item" data-v-62f69ce5><input type="checkbox" id="found-desperate" name="found" value="desperate" data-v-62f69ce5><label for="found-desperate" data-v-62f69ce5>Desperate 3 AM Google search</label></div><div class="checkbox-item" data-v-62f69ce5><input type="checkbox" id="found-crying" name="found" value="crying" data-v-62f69ce5><label for="found-crying" data-v-62f69ce5>Crying in bathroom stall</label></div><div class="checkbox-item" data-v-62f69ce5><input type="checkbox" id="found-reddit" name="found" value="reddit" data-v-62f69ce5><label for="found-reddit" data-v-62f69ce5>Reddit horror stories</label></div><div class="checkbox-item" data-v-62f69ce5><input type="checkbox" id="found-therapist" name="found" value="therapist" data-v-62f69ce5><label for="found-therapist" data-v-62f69ce5>My therapist recommended you</label></div></div></div><div class="form-group" data-v-62f69ce5><label for="business-sorry" data-v-62f69ce5>Are you very sorry?</label><select id="business-sorry" name="sorry" class="form-select" data-v-62f69ce5><option value="yes" data-v-62f69ce5>Yes</option><option value="no" data-v-62f69ce5>No</option><option value="fuck-you" data-v-62f69ce5>Fuck you</option></select></div><button type="submit" class="submit-button" data-v-62f69ce5>Fix My Project</button>',5))],32))]),B("div",IT,[R[23]||(R[23]=B("h3",null,"For Senior Developers",-1)),R[24]||(R[24]=B("p",{class:"form-subtitle"},"Must have at least 10 pre-AI coding years and at least 10 post-AI coding years experience ",-1)),o.value?(Ee(),Se("div",AT,R[14]||(R[14]=[B("p",null,"Thank you for your interest! We'll review your application and contact you soon.",-1)]))):(Ee(),Se("form",{key:1,onSubmit:H},[B("div",RT,[R[15]||(R[15]=B("label",{for:"dev-name"},"Name",-1)),B("input",{type:"text",id:"dev-name",name:"name",placeholder:"First and Last Name",class:gt({error:r.value.name})},null,2),r.value.name?(Ee(),Se("span",ST,Mt(r.value.name),1)):It("",!0)]),B("div",PT,[R[16]||(R[16]=B("label",{for:"dev-email"},"Email",-1)),B("input",{type:"email",id:"dev-email",name:"email",placeholder:"burnt.out.dev@stillco
2169ding.hell",class:gt({error:r.value.email})},null,2),r.value.email?(Ee(),Se("span",CT,Mt(r.value.email),1)):It("",!0)]),B("div",VT,[R[17]||(R[17]=B("label",{for:"dev-phone"},"Phone Number",-1)),B("input",{type:"tel",id:"dev-phone",name:"phone",placeholder:"666-777-8888",pattern:"(\\+\\d{1,3}[\\s.-]?)?\\(?\\d{3}\\)?[\\s.-]?\\d{3}[\\s.-]?\\d{4}",class:gt({error:r.value.phone})},null,2),r.value.phone?(Ee(),Se("span",xT,Mt(r.value.phone),1)):It("",!0),R[18]||(R[18]=B("small",{class:"form-hint"},"Format: 123-456-7890 or (123) 456-7890",-1))]),R[21]||(R[21]=B("div",{class:"form-group"},[B("label",{for:"dev-website"},"Website (optional)"),B("input",{type:"url",id:"dev-website",name:"website",placeholder:"https://my-portfolio-from-2005.geocities.com",pattern:"https?://.+|.*"}),B("small",{class:"form-hint"},"Include http:// or https:// at the beginning")],-1)),B("div",DT,[R[19]||(R[19]=B("label",{for:"dev-skills"},"Skills & Experience",-1)),B("div",kT,[B("textarea",{id:"dev-skills",name:"skills",rows:"4",class:gt({error:r.value.skills}),placeholder:"List all the programming languages you've watched die (minimum 100 characters of trauma)",onInput:f},null,34),B("div",{class:gt(["character-counter",{met:l.value>=100}])},[B("span",null,Mt(l.value)+"/100",1),l.value>=100?(Ee(),Se("span",OT,"â")):It("",!0)],2)]),r.value.skills?(Ee(),Se("span",NT,Mt(r.value.skills),1)):It("",!0),R[20]||(R[20]=B("small",{class:"form-hint"},"Please provide at least 100 characters describing your skills and experience",-1))]),R[22]||(R[22]=Sc('<div class="form-group" data-v-62f69ce5><label for="dev-years" data-v-62f69ce5>Years spent fixing other people's code:</label><select id="dev-years" name="years" class="form-select" data-v-62f69ce5><option value="too-many" data-v-62f69ce5>Too many</option><option value="entire-career" data-v-62f69ce5>My entire career</option><option value="pre-stackoverflow" data-v-62f69ce5>Since before Stack Overflow existed</option><option value="punch-cards" data-v-62f69ce5>Since punch cards</option><option value="longer" data-v-62f69ce5>Longer than I've been alive</option><option value="time-circle" data-v-62f69ce5>Time is a flat circle of bugs</option></select></div><div class="form-group" data-v-62f69ce5><label data-v-62f69ce5>Specialty:</label><div class="checkbox-group" data-v-62f69ce5><div class="checkbox-item" data-v-62f69ce5><input type="checkbox" id="specialty-necromancy" name="specialty" value="necromancy" data-v-62f69ce5><label for="specialty-necromancy" data-v-62f69ce5>Legacy code necromancy</label></div><div class="checkbox-item" data-v-62f69ce5><input type="checkbox" id="specialty-miracles" name="specialty" value="miracles" data-v-62f69ce5><label for="specialty-miracles" data-v-62f69ce5>Deadline miracles</label></div><div class="checkbox-item" data-v-62f69ce5><input type="checkbox" id="specialty-debt" name="specialty" value="debt" data-v-62f69ce5><label for="specialty-debt" data-v-62f69ce5>Explaining technical debt to executives</label></div><div class="checkbox-item" data-v-62f69ce5><input type="checkbox" id="specialty-promises" name="specialty" value="promises" data-v-62f69ce5><label for="specialty-promises" data-v-62f69ce5>Making impossible promises sound reasonable</label></div><div class="checkbox-item" data-v-62f69ce5><input type="checkbox" id="specialty-caffeine" name="specialty" value="caffeine" data-v-62f69ce5><label for="specialty-caffeine" data-v-62f69ce5>Turning caffeine into code</label></div><div class="checkbox-item" data-v-62f69ce5><input type="checkbox" id="specialty-archaeology" name="specialty" value="archaeology" data-v-62f69ce5><label for="specialty-archaeology" data-v-62f69ce5>Archaeological code excavation</label></div><div class="checkbox-item" data-v-62f69ce5><input type="checkbox" id="specialty-ai-translation" name="specialty" value="ai-translation" data-v-62f69ce5><label for="specialty-ai-translation" data-v-62f69ce5>Translating AI gibberish to human code</label></div><div class="checkbox-item" data-v-62f69ce5><input type="checkbox" id="specialty-pretending" name="specialty" value="pretending" data-v-62f69ce5><label for="specialty-pretending" data-v-62f69ce5>Pretending to understand the codebase</label></div></div></div><div class="form-group" data-v-62f69ce5><label for="dev-patient" data-v-62f69ce5>Are you very patient?</label><select id="dev-patient" name="patient" class="form-select" data-v-62f69ce5><option value="yes" data-v-62f69ce5>Yes</option><option value="maybe" data-v-62f69ce5>Maybe</option><option value="fuck_you" data-v-62f69ce5>Fuck you</option></select></div><button type="submit" class="submit-button dev-submit-button" data-v-62f69ce5>Join Our Network</button>',4))],32))])])])):It("",!0),B("footer",null,[R[29]||(R[29]=B("p",null,"The AI fuck up fixers",-1)),B("div",MT,[Ie(Ft(ns),{to:"/faq",onClick:R[0]||(R[0]=oe=>G("faq"))},{default:je(()=>R[26]||(R[26]=[ye("FAQ")])),_:1}),Ie(Ft(ns),{to:"/privacy-policy",onClick:R[1]||(R[1]=oe=>G("privacy_policy"))},{default:je(()=>R[27]||(R[27]=[ye("Privacy Policy")])),_:1}),Ie(Ft(ns),{to:"/terms-of-service",onClick:R[2]||(R[2]=oe=>G("terms_of_service"))},{default:je(()=>R[28]||(R[28]=[ye("Terms of Service")])),_:1})]),R[30]||(R[30]=B("p",{class:"disclaimer"},"Disclaimer: This site was vibe-coded by a senior dev. It's' funny because its true. ",-1))])]))}}),cr=(t,e)=>{const n=t.__vccOpts||t;for(const[r,s]of e)n[r]=s;return n},FT=cr(LT,[["__scopeId","data-v-62f69ce5"]]),$T="modulepreload",UT=function(t){return"/"+t},ph={},ui=function(e,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));s=Promise.allSettled(n.map(u=>{if(u=UT(u),u in ph)return;ph[u]=!0;const f=u.endsWith(".css"),d=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${d}`))return;const p=document.createElement("link");if(p.rel=f?"stylesheet":$T,f||(p.as="script"),p.crossOrigin="",p.href=u,l&&p.setAttribute("nonce",l),document.head.appendChild(p),f)return new Promise((_,b)=>{p.addEventListener("load",_),p.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(a){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=a,window.dispatchEvent(l),!l.defaultPrevented)throw a}return s.then(a=>{for(const l of a||[])l.status==="rejected"&&o(l.reason);return e().catch(o)})},jT={},BT={class:"item"},zT={class:"details"};function HT(t,e){return Ee(),Se("div",BT,[B("i",null,[No(t.$slots,"icon",{},void 0)]),B("div",zT,[B("h3",null,[No(t.$slots,"heading",{},void 0)]),No(t.$slots,"default",{},void 0)])])}const es=cr(jT,[["render",HT],["__scopeId","data-v-fd0742eb"]]),qT={},KT={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"17",fill:"currentColor"};function GT(t,e){return Ee(),Se("svg",KT,e[0]||(e[0]=[B("path",{d:"M11 2.253a1 1 0 1 0-2 0h2zm-2 13a1 1 0 1 0 2 0H9zm.447-12.167a1 1 0 1 0 1.107-1.666L9.447 3.086zM1 2.253L.447 1.42A1 1 0 0 0 0 2.253h1zm0 13H0a1 1 0 0 0 1.553.833L1 15.253zm8.447.833a1 1 0 1 0 1.107-1.666l-1.107 1.666zm0-14.666a1 1 0 1 0 1.107 1.666L9.447 1.42zM19 2.253h1a1 1 0 0 0-.447-.833L19 2.253zm0 13l-.553.833A1 1 0 0 0 20 15.253h-1zm-9.553-.833a1 1 0 1 0 1.107 1.666L9.447 14.42zM9 2.253v13h2v-13H9zm1.553-.833C9.203.523 7.42 0 5.5 0v2c1.572 0 2.961.431 3.947 1.086l1.107-1.666zM5.5 0C3.58 0 1.797.523.447 1.42l1.107 1.666C2.539 2.431 3.928 2 5.5 2V0zM0 2.253v13h2v-13H0zm1.553 13.833C2.539 15.431 3.928 15 5.5 15v-2c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM5.5 15c1.572 0 2.961.431 3.947 1.086l1.107-1.666C9.203 13.523 7.42 13 5.5 13v2zm5.
2169053-11.914C11.539 2.431 12.928 2 14.5 2V0c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM14.5 2c1.573 0 2.961.431 3.947 1.086l1.107-1.666C18.203.523 16.421 0 14.5 0v2zm3.5.253v13h2v-13h-2zm1.553 12.167C18.203 13.523 16.421 13 14.5 13v2c1.573 0 2.961.431 3.947 1.086l1.107-1.666zM14.5 13c-1.92 0-3.703.523-5.053 1.42l1.107 1.666C11.539 15.431 12.928 15 14.5 15v-2z"},null,-1)]))}const WT=cr(qT,[["render",GT]]),QT={},XT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",class:"iconify iconify--mdi",width:"24",height:"24",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24"};function YT(t,e){return Ee(),Se("svg",XT,e[0]||(e[0]=[B("path",{d:"M20 18v-4h-3v1h-2v-1H9v1H7v-1H4v4h16M6.33 8l-1.74 4H7v-1h2v1h6v-1h2v1h2.41l-1.74-4H6.33M9 5v1h6V5H9m12.84 7.61c.1.22.16.48.16.8V18c0 .53-.21 1-.6 1.41c-.4.4-.85.59-1.4.59H4c-.55 0-1-.19-1.4-.59C2.21 19 2 18.53 2 18v-4.59c0-.32.06-.58.16-.8L4.5 7.22C4.84 6.41 5.45 6 6.33 6H7V5c0-.55.18-1 .57-1.41C7.96 3.2 8.44 3 9 3h6c.56 0 1.04.2 1.43.59c.39.41.57.86.57 1.41v1h.67c.88 0 1.49.41 1.83 1.22l2.34 5.39z",fill:"currentColor"},null,-1)]))}const JT=cr(QT,[["render",YT]]),ZT={},eb={xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"currentColor"};function tb(t,e){return Ee(),Se("svg",eb,e[0]||(e[0]=[B("path",{d:"M11.447 8.894a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm0 1.789a1 1 0 1 0 .894-1.789l-.894 1.789zM7.447 7.106a1 1 0 1 0-.894 1.789l.894-1.789zM10 9a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0H8zm9.447-5.606a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm2 .789a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zM18 5a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0h-2zm-5.447-4.606a1 1 0 1 0 .894-1.789l-.894 1.789zM9 1l.447-.894a1 1 0 0 0-.894 0L9 1zm-2.447.106a1 1 0 1 0 .894 1.789l-.894-1.789zm-6 3a1 1 0 1 0 .894 1.789L.553 4.106zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zm-2-.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 2.789a1 1 0 1 0 .894-1.789l-.894 1.789zM2 5a1 1 0 1 0-2 0h2zM0 7.5a1 1 0 1 0 2 0H0zm8.553 12.394a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 1a1 1 0 1 0 .894 1.789l-.894-1.789zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zM8 19a1 1 0 1 0 2 0H8zm2-2.5a1 1 0 1 0-2 0h2zm-7.447.394a1 1 0 1 0 .894-1.789l-.894 1.789zM1 15H0a1 1 0 0 0 .553.894L1 15zm1-2.5a1 1 0 1 0-2 0h2zm12.553 2.606a1 1 0 1 0 .894 1.789l-.894-1.789zM17 15l.447.894A1 1 0 0 0 18 15h-1zm1-2.5a1 1 0 1 0-2 0h2zm-7.447-5.394l-2 1 .894 1.789 2-1-.894-1.789zm-1.106 1l-2-1-.894 1.789 2 1 .894-1.789zM8 9v2.5h2V9H8zm8.553-4.894l-2 1 .894 1.789 2-1-.894-1.789zm.894 0l-2-1-.894 1.789 2 1 .894-1.789zM16 5v2.5h2V5h-2zm-4.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zm-2.894-1l-2 1 .894 1.789 2-1L8.553.106zM1.447 5.894l2-1-.894-1.789-2 1 .894 1.789zm-.894 0l2 1 .894-1.789-2-1-.894 1.789zM0 5v2.5h2V5H0zm9.447 13.106l-2-1-.894 1.789 2 1 .894-1.789zm0 1.789l2-1-.894-1.789-2 1 .894 1.789zM10 19v-2.5H8V19h2zm-6.553
2169-3.894l-2-1-.894 1.789 2 1 .894-1.789zM2 15v-2.5H0V15h2zm13.447 1.894l2-1-.894-1.789-2 1 .894 1.789zM18 15v-2.5h-2V15h2z"},null,-1)]))}const nb=cr(ZT,[["render",tb]]),rb={},sb={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"currentColor"};function ib(t,e){return Ee(),Se("svg",sb,e[0]||(e[0]=[B("path",{d:"M15 4a1 1 0 1 0 0 2V4zm0 11v-1a1 1 0 0 0-1 1h1zm0 4l-.707.707A1 1 0 0 0 16 19h-1zm-4-4l.707-.707A1 1 0 0 0 11 14v1zm-4.707-1.293a1 1 0 0 0-1.414 1.414l1.414-1.414zm-.707.707l-.707-.707.707.707zM9 11v-1a1 1 0 0 0-.707.293L9 11zm-4 0h1a1 1 0 0 0-1-1v1zm0 4H4a1 1 0 0 0 1.707.707L5 15zm10-9h2V4h-2v2zm2 0a1 1 0 0 1 1 1h2a3 3 0 0 0-3-3v2zm1 1v6h2V7h-2zm0 6a1 1 0 0 1-1 1v2a3 3 0 0 0 3-3h-2zm-1 1h-2v2h2v-2zm-3 1v4h2v-4h-2zm1.707 3.293l-4-4-1.414 1.414 4 4 1.414-1.414zM11 14H7v2h4v-2zm-4 0c-.276 0-.525-.111-.707-.293l-1.414 1.414C5.42 15.663 6.172 16 7 16v-2zm-.707 1.121l3.414-3.414-1.414-1.414-3.414 3.414 1.414 1.414zM9 12h4v-2H9v2zm4 0a3 3 0 0 0 3-3h-2a1 1 0 0 1-1 1v2zm3-3V3h-2v6h2zm0-6a3 3 0 0 0-3-3v2a1 1 0 0 1 1 1h2zm-3-3H3v2h10V0zM3 0a3 3 0 0 0-3 3h2a1 1 0 0 1 1-1V0zM0 3v6h2V3H0zm0 6a3 3 0 0 0 3 3v-2a1 1 0 0 1-1-1H0zm3 3h2v-2H3v2zm1-1v4h2v-4H4zm1.707 4.707l.586-.586-1.414-1.414-.586.586 1.414 1.414z"},null,-1)]))}const ob=cr(rb,[["render",ib]]),ab={},lb={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"currentColor"};function cb(t,e){return Ee(),Se("svg",lb,e[0]||(e[0]=[B("path",{d:"M10 3.22l-.61-.6a5.5 5.5 0 0 0-7.666.105 5.5 5.5 0 0 0-.114 7.665L10 18.78l8.39-8.4a5.5 5.5 0 0 0-.114-7.665 5.5 5.5 0 0 0-7.666-.105l-.61.61z"},null,-1)]))}const ub=cr(ab,[["render",cb]]),hb=Ds({__name:"TheWelcome",setup(t){const e=()=>fetch("/__open-in-editor?file=README.md");return(n,r)=>(Ee(),Se(_t,null,[Ie(es,null,{icon:je(()=>[Ie(WT)]),heading:je(()=>r[0]||(r[0]=[ye("Documentation")])),default:je(()=>[r[1]||(r[1]=ye(" Vueâs ")),r[2]||(r[2]=B("a",{href:"https://vuejs.org/",target:"_blank",rel:"noopener"},"official documentation",-1)),r[3]||(r[3]=ye(" provides you with all information you need to get started. "))]),_:1}),Ie(es,null,{icon:je(()=>[Ie(JT)]),heading:je(()=>r[4]||(r[4]=[ye("Tooling")])),default:je(()=>[r[6]||(r[6]=ye(" This project is served and bundled with ")),r[7]||(r[7]=B("a",{href:"https://vite.dev/guide/features.html",target:"_blank",rel:"noopener"},"Vite",-1)),r[8]||(r[8]=ye(". The recommended IDE setup is ")),r[9]||(r[9]=B("a",{href:"https://code.visualstudio.com/",target:"_blank",rel:"noopener"},"VSCode",-1)),r[10]||(r[10]=ye(" + ")),r[11]||(r[11]=B("a",{href:"https://github.com/johnsoncodehk/volar",target:"_blank",rel:"noopener"},"Volar",-1)),r[12]||(r[12]=ye(". If you need to test your components and web pages, check out ")),r[13]||(r[13]=B("a",{href:"https://vitest.dev/",target:"_blank",rel:"noopener"},"Vitest",-1)),r[14]||(r[14]=ye(" and ")),r[15]||(r[15]=B("a",{href:"https://www.cypress.io/",target:"_blank",rel:"noopener"},"Cypress",-1)),r[16]||(r[16]=ye(" / ")),r[17]||(r[17]=B("a",{href:"https://playwright.dev/",target:"_blank",rel:"noopener"},"Playwright",-1)),r[18]||(r[18]=ye(". ")),r[19]||(r[19]=B("br",null,null,-1)),r[20]||(r[20]=ye(" More instructions are available in ")),B("a",{href:"javascript:void(0)",onClick:e},r[5]||(r[5]=[B("code",null,"README.md",-1)])),r[21]||(r[21]=ye(". "))]),_:1}),Ie(es,null,{icon:je(()=>[Ie(nb)]),heading:je(()=>r[22]||(r[22]=[ye("Ecosystem")])),default:je(()=>[r[23]||(r[23]=ye(" Get official tools and libraries for your project: ")),r[24]||(r[24]=B("a",{href:"https://pinia.vuejs.org/",target:"_blank",rel:"noopener"},"Pinia",-1)),r[25]||(r[25]=ye(", ")),r[26]||(r[26]=B("a",{href:"https://router.vuejs.org/",target:"_blank",rel:"noopener"},"Vue Router",-1)),r[27]||(r[27]=ye(", ")),r[28]||(r[28]=B("a",{href:"https://test-utils.vuejs.org/",target:"_blank",rel:"noopener"},"Vue Test Utils",-1)),r[29]||(r[29]=ye(", and ")),r[30]||(r[30]=B("a",{href:"https://github.com/vuejs/devtools",target:"_blank",rel:"noopener"},"Vue Dev Tools",-1)),r[31]||(r[31]=ye(". If you need more resources, we suggest paying ")),r[32]||(r[32]=B("a",{href:"https://github.com/vuejs/awesome-vue",target:"_blank",rel:"noopener"},"Awesome Vue",-1)),r[33]||(r[33]=ye(" a visit. "))]),_:1}),Ie(es,null,{icon:je(()=>[Ie(ob)]),heading:je(()=>r[34]||(r[34]=[ye("Community")])),default:je(()=>[r[35]||(r[35]=ye(" Got stuck? Ask your question on ")),r[36]||(r[36]=B("a",{href:"https://chat.vuejs.org",target:"_blank",rel:"noopener"},"Vue Land",-1)),r[37]||(r[37]=ye(" (our official Discord server), or ")),r[38]||(r[38]=B("a",{href:"https://stackoverflow.com/questions/tagged/vue.js",target:"_blank",rel:"noopener"},"StackOverflow",-1)),r[39]||(r[39]=ye(". You should also follow the official ")),r[40]||(r[40]=B("a",{href:"https://bsky.app/profile/vuejs.org",target:"_blank",rel:"noopener"},"@vuejs.org",-1)),r[41]||(r[41]=ye(" Bluesky account or the ")),r[42]||(r[42]=B("a",{href:"https://x.com/vuejs",target:"_blank",rel:"noopener"},"@vuejs",-1)),r[43]||(r[43]=ye(" X account for latest news in the Vue world. "))]),_:1}),Ie(es,null,{icon:je(()=>[Ie(ub)]),heading:je(()=>r[44]||(r[44]=[ye("Support Vue")])),default:je(()=>
2169[r[45]||(r[45]=ye(" As an independent project, Vue relies on community backing for its sustainability. You can help us by ")),r[46]||(r[46]=B("a",{href:"https://vuejs.org/sponsor/",target:"_blank",rel:"noopener"},"becoming a sponsor",-1)),r[47]||(r[47]=ye(". "))]),_:1})],64))}}),fb=Ds({__name:"HomeView",setup(t){return(e,n)=>(Ee(),Se("main",null,[Ie(hb)]))}}),Cp=m_({history:Ky("/"),routes:[{path:"/",name:"home",component:fb},{path:"/about",name:"about",component:()=>ui(()=>import("./AboutView-BvUoRTiV.js"),__vite__mapDeps([0,1]))},{path:"/privacy-policy",name:"privacy-policy",component:()=>ui(()=>import("./PrivacyPolicyView-DYWQK10r.js"),__vite__mapDeps([2,3]))},{path:"/terms-of-service",name:"terms-of-service",component:()=>ui(()=>import("./TermsOfServiceView-CH5OLaU7.js"),__vite__mapDeps([4,5]))},{path:"/faq",name:"faq",component:()=>ui(()=>import("./FAQView-RC49CaNd.js"),__vite__mapDeps([6,7]))}]}),Vp=dy(FT);Vp.use(Cp);Cp.beforeEach((t,e)=>{vr("page_view",{page_title:t.name,page_path:t.path,page_location:window.location.href})});Vp.mount("#app");export{_t as F,cr as _,B as a,Sc as b,Se as c,Ds as d,rg as e,gt as n,Ee as o,sn as r,Mt as t};
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.