mirror of
https://github.com/KarolChang/jm-expense-vue-ts.git
synced 2024-12-26 03:38:35 +00:00
1443 lines
459 KiB
JavaScript
1443 lines
459 KiB
JavaScript
var Qg=Object.defineProperty,Zg=Object.defineProperties;var ev=Object.getOwnPropertyDescriptors;var Ac=Object.getOwnPropertySymbols;var tv=Object.prototype.hasOwnProperty,nv=Object.prototype.propertyIsEnumerable;var Ic=(t,e,n)=>e in t?Qg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ye=(t,e)=>{for(var n in e||(e={}))tv.call(e,n)&&Ic(t,n,e[n]);if(Ac)for(var n of Ac(e))nv.call(e,n)&&Ic(t,n,e[n]);return t},Ys=(t,e)=>Zg(t,ev(e));function vu(t,e){const n=Object.create(null),r=t.split(",");for(let i=0;i<r.length;i++)n[r[i]]=!0;return e?i=>!!n[i.toLowerCase()]:i=>!!n[i]}const rv="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",iv=vu(rv);function Sh(t){return!!t||t===""}function _n(t){if(le(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],i=Xe(r)?av(r):_n(r);if(i)for(const s in i)e[s]=i[s]}return e}else{if(Xe(t))return t;if(Ye(t))return t}}const sv=/;(?![^(]*\))/g,ov=/:(.+)/;function av(t){const e={};return t.split(sv).forEach(n=>{if(n){const r=n.split(ov);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function Ne(t){let e="";if(Xe(t))e=t;else if(le(t))for(let n=0;n<t.length;n++){const r=Ne(t[n]);r&&(e+=r+" ")}else if(Ye(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}function En(t){if(!t)return null;let{class:e,style:n}=t;return e&&!Xe(e)&&(t.class=Ne(e)),n&&(t.style=_n(n)),t}function lv(t,e){if(t.length!==e.length)return!1;let n=!0;for(let r=0;n&&r<t.length;r++)n=Ds(t[r],e[r]);return n}function Ds(t,e){if(t===e)return!0;let n=Oc(t),r=Oc(e);if(n||r)return n&&r?t.getTime()===e.getTime():!1;if(n=le(t),r=le(e),n||r)return n&&r?lv(t,e):!1;if(n=Ye(t),r=Ye(e),n||r){if(!n||!r)return!1;const i=Object.keys(t).length,s=Object.keys(e).length;if(i!==s)return!1;for(const o in t){const a=t.hasOwnProperty(o),l=e.hasOwnProperty(o);if(a&&!l||!a&&l||!Ds(t[o],e[o]))return!1}}return String(t)===String(e)}function _u(t,e){return t.findIndex(n=>Ds(n,e))}const Qe=t=>t==null?"":le(t)||Ye(t)&&(t.toString===Oh||!be(t.toString))?JSON.stringify(t,Ah,2):String(t),Ah=(t,e)=>e&&e.__v_isRef?Ah(t,e.value):ii(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,i])=>(n[`${r} =>`]=i,n),{})}:Ci(e)?{[`Set(${e.size})`]:[...e.values()]}:Ye(e)&&!le(e)&&!kh(e)?String(e):e,$e={},ri=[],Ut=()=>{},uv=()=>!1,cv=/^on[^a-z]/,Ko=t=>cv.test(t),yu=t=>t.startsWith("onUpdate:"),nt=Object.assign,bu=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},dv=Object.prototype.hasOwnProperty,Oe=(t,e)=>dv.call(t,e),le=Array.isArray,ii=t=>Yo(t)==="[object Map]",Ci=t=>Yo(t)==="[object Set]",Oc=t=>t instanceof Date,be=t=>typeof t=="function",Xe=t=>typeof t=="string",wu=t=>typeof t=="symbol",Ye=t=>t!==null&&typeof t=="object",Ih=t=>Ye(t)&&be(t.then)&&be(t.catch),Oh=Object.prototype.toString,Yo=t=>Oh.call(t),fv=t=>Yo(t).slice(8,-1),kh=t=>Yo(t)==="[object Object]",Eu=t=>Xe(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,co=vu(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),zo=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},hv=/-(\w)/g,dn=zo(t=>t.replace(hv,(e,n)=>n?n.toUpperCase():"")),pv=/\B([A-Z])/g,Rr=zo(t=>t.replace(pv,"-$1").toLowerCase()),Go=zo(t=>t.charAt(0).toUpperCase()+t.slice(1)),Ma=zo(t=>t?`on${Go(t)}`:""),gs=(t,e)=>!Object.is(t,e),fo=(t,e)=>{for(let n=0;n<t.length;n++)t[n](e)},Eo=(t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},vs=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let kc;const mv=()=>kc||(kc=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let tn;const zs=[];class Dh{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&tn&&(this.parent=tn,this.index=(tn.scopes||(tn.scopes=[])).push(this)-1)}run(e){if(this.active)try{return this.on(),e()}finally{this.off()}}on(){this.active&&(zs.push(this),tn=this)}off(){this.active&&(zs.pop(),tn=zs[zs.length-1])}stop(e){if(this.active){if(this.effects.forEach(n=>n.stop()),this.cleanups.forEach(n=>n()),this.scopes&&this.scopes.forEach(n=>n.stop(!0)),this.parent&&!e){const n=this.parent.scopes.pop();n&&n!==this&&(this.parent.scopes[this.index]=n,n.index=this.index)}this.active=!1}}}function Ph(t){return new Dh(t)}function gv(t,e){e=e||tn,e&&e.active&&e.effects.push(t)}function vv(){return tn}function _v(t){tn&&tn.cleanups.push(t)}const Tu=t=>{const e=new Set(t);return e.w=0,e.n=0,e},Nh=t=>(t.w&zn)>0,Mh=t=>(t.n&zn)>0,yv=({deps:t})=>{if(t.length)for(let e=0;e<t.length;e++)t[e].w|=zn},bv=t=>{const{deps:e}=t;if(e.length){let n=0;for(let r=0;r<e.length;r++){const i=e[r];Nh(i)&&!Mh(i)?i.delete(t):e[n++]=i,i.w&=~zn,i.n&=~zn}e.length=n}},Tl=new WeakMap;let Gi=0,zn=1;const Cl=30,jr=[];let yr;const br=Symbol(""),Sl=Symbol("");class Cu{constructor(e,n=null,r){this.fn=e,this.scheduler=n,this.active=!0,this.deps=[],gv(this,r)}run(){if(!this.active)return this.fn();if(!jr.length||!jr.includes(this))try{return jr.push(yr=this),wv(),zn=1<<++Gi,Gi<=Cl?yv(this):Dc(this),this.fn()}finally{Gi<=Cl&&bv(this),zn=1<<--Gi,Lr(),jr.pop();const e=jr.length;yr=e>0?jr[e-1]:void 0}}stop(){this.active&&(Dc(this),this.onStop&&this.onStop(),this.active=!1)}}function Dc(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}let di=!0;const Su=[];function Si(){Su.push(di),di=!1}function wv(){Su.push(di),di=!0}function Lr(){const t=Su.pop();di=t===void 0?!0:t}function Tt(t,e,n){if(!xh())return;let r=Tl.get(t);r||Tl.set(t,r=new Map);let i=r.get(n);i||r.set(n,i=Tu()),Rh(i)}function xh(){return di&&yr!==void 0}function Rh(t,e){let n=!1;Gi<=Cl?Mh(t)||(t.n|=zn,n=!Nh(t)):n=!t.has(yr),n&&(t.add(yr),yr.deps.push(t))}function Tn(t,e,n,r,i,s){const o=Tl.get(t);if(!o)return;let a=[];if(e==="clear")a=[...o.values()];else if(n==="length"&&le(t))o.forEach((l,u)=>{(u==="length"||u>=r)&&a.push(l)});else switch(n!==void 0&&a.push(o.get(n)),e){case"add":le(t)?Eu(n)&&a.push(o.get("length")):(a.push(o.get(br)),ii(t)&&a.push(o.get(Sl)));break;case"delete":le(t)||(a.push(o.get(br)),ii(t)&&a.push(o.get(Sl)));break;case"set":ii(t)&&a.push(o.get(br));break}if(a.length===1)a[0]&&Al(a[0]);else{const l=[];for(const u of a)u&&l.push(...u);Al(Tu(l))}}function Al(t,e){for(const n of le(t)?t:[...t])(n!==yr||n.allowRecurse)&&(n.scheduler?n.scheduler():n.run())}const Ev=vu("__proto__,__v_isRef,__isVue"),Lh=new Set(Object.getOwnPropertyNames(Symbol).map(t=>Symbol[t]).filter(wu)),Tv=Au(),Cv=Au(!1,!0),Sv=Au(!0),Pc=Av();function Av(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const r=De(this);for(let s=0,o=this.length;s<o;s++)Tt(r,"get",s+"");const i=r[e](...n);return i===-1||i===!1?r[e](...n.map(De)):i}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...n){Si();const r=De(this)[e].apply(this,n);return Lr(),r}}),t}function Au(t=!1,e=!1){return function(r,i,s){if(i==="__v_isReactive")return!t;if(i==="__v_isReadonly")return t;if(i==="__v_isShallow")return e;if(i==="__v_raw"&&s===(t?e?Vv:Fh:e?Hh:Uh).get(r))return r;const o=le(r);if(!t&&o&&Oe(Pc,i))return Reflect.get(Pc,i,s);const a=Reflect.get(r,i,s);return(wu(i)?Lh.has(i):Ev(i))||(t||Tt(r,"get",i),e)?a:je(a)?!o||!Eu(i)?a.value:a:Ye(a)?t?Vh(a):Ai(a):a}}const Iv=$h(),Ov=$h(!0);function $h(t=!1){return function(n,r,i,s){let o=n[r];if(_s(o)&&je(o)&&!je(i))return!1;if(!t&&!_s(i)&&(jh(i)||(i=De(i),o=De(o)),!le(n)&&je(o)&&!je(i)))return o.value=i,!0;const a=le(n)&&Eu(r)?Number(r)<n.length:Oe(n,r),l=Reflect.set(n,r,i,s);return n===De(s)&&(a?gs(i,o)&&Tn(n,"set",r,i):Tn(n,"add",r,i)),l}}function kv(t,e){const n=Oe(t,e);t[e];const r=Reflect.deleteProperty(t,e);return r&&n&&Tn(t,"delete",e,void 0),r}function Dv(t,e){const n=Reflect.has(t,e);return(!wu(e)||!Lh.has(e))&&Tt(t,"has",e),n}function Pv(t){return Tt(t,"iterate",le(t)?"length":br),Reflect.ownKeys(t)}const Bh={get:Tv,set:Iv,deleteProperty:kv,has:Dv,ownKeys:Pv},Nv={get:Sv,set(t,e){return!0},deleteProperty(t,e){return!0}},Mv=nt({},Bh,{get:Cv,set:Ov}),Iu=t=>t,Xo=t=>Reflect.getPrototypeOf(t);function Gs(t,e,n=!1,r=!1){t=t.__v_raw;const i=De(t),s=De(e);e!==s&&!n&&Tt(i,"get",e),!n&&Tt(i,"get",s);const{has:o}=Xo(i),a=r?Iu:n?Du:ys;if(o.call(i,e))return a(t.get(e));if(o.call(i,s))return a(t.get(s));t!==i&&t.get(e)}function Xs(t,e=!1){const n=this.__v_raw,r=De(n),i=De(t);return t!==i&&!e&&Tt(r,"has",t),!e&&Tt(r,"has",i),t===i?n.has(t):n.has(t)||n.has(i)}function Js(t,e=!1){return t=t.__v_raw,!e&&Tt(De(t),"iterate",br),Reflect.get(t,"size",t)}function Nc(t){t=De(t);const e=De(this);return Xo(e).has.call(e,t)||(e.add(t),Tn(e,"add",t,t)),this}function Mc(t,e){e=De(e);const n=De(this),{has:r,get:i}=Xo(n);let s=r.call(n,t);s||(t=De(t),s=r.call(n,t));const o=i.call(n,t);return n.set(t,e),s?gs(e,o)&&Tn(n,"set",t,e):Tn(n,"add",t,e),this}function xc(t){const e=De(this),{has:n,get:r}=Xo(e);let i=n.call(e,t);i||(t=De(t),i=n.call(e,t)),r&&r.call(e,t);const s=e.delete(t);return i&&Tn(e,"delete",t,void 0),s}function Rc(){const t=De(this),e=t.size!==0,n=t.clear();return e&&Tn(t,"clear",void 0,void 0),n}function Qs(t,e){return function(r,i){const s=this,o=s.__v_raw,a=De(o),l=e?Iu:t?Du:ys;return!t&&Tt(a,"iterate",br),o.forEach((u,c)=>r.call(i,l(u),l(c),s))}}function Zs(t,e,n){return function(...r){const i=this.__v_raw,s=De(i),o=ii(s),a=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,u=i[t](...r),c=n?Iu:e?Du:ys;return!e&&Tt(s,"iterate",l?Sl:br),{next(){const{value:d,done:h}=u.next();return h?{value:d,done:h}:{value:a?[c(d[0]),c(d[1])]:c(d),done:h}},[Symbol.iterator](){return this}}}}function An(t){return function(...e){return t==="delete"?!1:this}}function xv(){const t={get(s){return Gs(this,s)},get size(){return Js(this)},has:Xs,add:Nc,set:Mc,delete:xc,clear:Rc,forEach:Qs(!1,!1)},e={get(s){return Gs(this,s,!1,!0)},get size(){return Js(this)},has:Xs,add:Nc,set:Mc,delete:xc,clear:Rc,forEach:Qs(!1,!0)},n={get(s){return Gs(this,s,!0)},get size(){return Js(this,!0)},has(s){return Xs.call(this,s,!0)},add:An("add"),set:An("set"),delete:An("delete"),clear:An("clear"),forEach:Qs(!0,!1)},r={get(s){return Gs(this,s,!0,!0)},get size(){return Js(this,!0)},has(s){return Xs.call(this,s,!0)},add:An("add"),set:An("set"),delete:An("delete"),clear:An("clear"),forEach:Qs(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{t[s]=Zs(s,!1,!1),n[s]=Zs(s,!0,!1),e[s]=Zs(s,!1,!0),r[s]=Zs(s,!0,!0)}),[t,n,e,r]}const[Rv,Lv,$v,Bv]=xv();function Ou(t,e){const n=e?t?Bv:$v:t?Lv:Rv;return(r,i,s)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?r:Reflect.get(Oe(n,i)&&i in r?n:r,i,s)}const Uv={get:Ou(!1,!1)},Hv={get:Ou(!1,!0)},Fv={get:Ou(!0,!1)},Uh=new WeakMap,Hh=new WeakMap,Fh=new WeakMap,Vv=new WeakMap;function jv(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Wv(t){return t.__v_skip||!Object.isExtensible(t)?0:jv(fv(t))}function Ai(t){return _s(t)?t:ku(t,!1,Bh,Uv,Uh)}function qv(t){return ku(t,!1,Mv,Hv,Hh)}function Vh(t){return ku(t,!0,Nv,Fv,Fh)}function ku(t,e,n,r,i){if(!Ye(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const s=i.get(t);if(s)return s;const o=Wv(t);if(o===0)return t;const a=new Proxy(t,o===2?r:n);return i.set(t,a),a}function qn(t){return _s(t)?qn(t.__v_raw):!!(t&&t.__v_isReactive)}function _s(t){return!!(t&&t.__v_isReadonly)}function jh(t){return!!(t&&t.__v_isShallow)}function Wh(t){return qn(t)||_s(t)}function De(t){const e=t&&t.__v_raw;return e?De(e):t}function fi(t){return Eo(t,"__v_skip",!0),t}const ys=t=>Ye(t)?Ai(t):t,Du=t=>Ye(t)?Vh(t):t;function qh(t){xh()&&(t=De(t),t.dep||(t.dep=Tu()),Rh(t.dep))}function Kh(t,e){t=De(t),t.dep&&Al(t.dep)}function je(t){return Boolean(t&&t.__v_isRef===!0)}function ge(t){return Yh(t,!1)}function Kv(t){return Yh(t,!0)}function Yh(t,e){return je(t)?t:new Yv(t,e)}class Yv{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:De(e),this._value=n?e:ys(e)}get value(){return qh(this),this._value}set value(e){e=this.__v_isShallow?e:De(e),gs(e,this._rawValue)&&(this._rawValue=e,this._value=this.__v_isShallow?e:ys(e),Kh(this))}}function b(t){return je(t)?t.value:t}const zv={get:(t,e,n)=>b(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const i=t[e];return je(i)&&!je(n)?(i.value=n,!0):Reflect.set(t,e,n,r)}};function zh(t){return qn(t)?t:new Proxy(t,zv)}function Gv(t){const e=le(t)?new Array(t.length):{};for(const n in t)e[n]=To(t,n);return e}class Xv{constructor(e,n,r){this._object=e,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}}function To(t,e,n){const r=t[e];return je(r)?r:new Xv(t,e,n)}class Jv{constructor(e,n,r,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new Cu(e,()=>{this._dirty||(this._dirty=!0,Kh(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}get value(){const e=De(this);return qh(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Qv(t,e,n=!1){let r,i;const s=be(t);return s?(r=t,i=Ut):(r=t.get,i=t.set),new Jv(r,i,s||!i,n)}Promise.resolve();function Kn(t,e,n,r){let i;try{i=r?t(...r):t()}catch(s){Jo(s,e,n)}return i}function Dt(t,e,n,r){if(be(t)){const s=Kn(t,e,n,r);return s&&Ih(s)&&s.catch(o=>{Jo(o,e,n)}),s}const i=[];for(let s=0;s<t.length;s++)i.push(Dt(t[s],e,n,r));return i}function Jo(t,e,n,r=!0){const i=e?e.vnode:null;if(e){let s=e.parent;const o=e.proxy,a=n;for(;s;){const u=s.ec;if(u){for(let c=0;c<u.length;c++)if(u[c](t,o,a)===!1)return}s=s.parent}const l=e.appContext.config.errorHandler;if(l){Kn(l,null,10,[t,o,a]);return}}Zv(t,n,i,r)}function Zv(t,e,n,r=!0){console.error(t)}let Co=!1,Il=!1;const wt=[];let vn=0;const es=[];let Xi=null,Jr=0;const ts=[];let xn=null,Qr=0;const Gh=Promise.resolve();let Pu=null,Ol=null;function Qo(t){const e=Pu||Gh;return t?e.then(this?t.bind(this):t):e}function e_(t){let e=vn+1,n=wt.length;for(;e<n;){const r=e+n>>>1;bs(wt[r])<t?e=r+1:n=r}return e}function Xh(t){(!wt.length||!wt.includes(t,Co&&t.allowRecurse?vn+1:vn))&&t!==Ol&&(t.id==null?wt.push(t):wt.splice(e_(t.id),0,t),Jh())}function Jh(){!Co&&!Il&&(Il=!0,Pu=Gh.then(ep))}function t_(t){const e=wt.indexOf(t);e>vn&&wt.splice(e,1)}function Qh(t,e,n,r){le(t)?n.push(...t):(!e||!e.includes(t,t.allowRecurse?r+1:r))&&n.push(t),Jh()}function n_(t){Qh(t,Xi,es,Jr)}function r_(t){Qh(t,xn,ts,Qr)}function Nu(t,e=null){if(es.length){for(Ol=e,Xi=[...new Set(es)],es.length=0,Jr=0;Jr<Xi.length;Jr++)Xi[Jr]();Xi=null,Jr=0,Ol=null,Nu(t,e)}}function Zh(t){if(ts.length){const e=[...new Set(ts)];if(ts.length=0,xn){xn.push(...e);return}for(xn=e,xn.sort((n,r)=>bs(n)-bs(r)),Qr=0;Qr<xn.length;Qr++)xn[Qr]();xn=null,Qr=0}}const bs=t=>t.id==null?1/0:t.id;function ep(t){Il=!1,Co=!0,Nu(t),wt.sort((n,r)=>bs(n)-bs(r));const e=Ut;try{for(vn=0;vn<wt.length;vn++){const n=wt[vn];n&&n.active!==!1&&Kn(n,null,14)}}finally{vn=0,wt.length=0,Zh(),Co=!1,Pu=null,(wt.length||es.length||ts.length)&&ep(t)}}function i_(t,e,...n){const r=t.vnode.props||$e;let i=n;const s=e.startsWith("update:"),o=s&&e.slice(7);if(o&&o in r){const c=`${o==="modelValue"?"model":o}Modifiers`,{number:d,trim:h}=r[c]||$e;h?i=n.map(f=>f.trim()):d&&(i=n.map(vs))}let a,l=r[a=Ma(e)]||r[a=Ma(dn(e))];!l&&s&&(l=r[a=Ma(Rr(e))]),l&&Dt(l,t,6,i);const u=r[a+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,Dt(u,t,6,i)}}function tp(t,e,n=!1){const r=e.emitsCache,i=r.get(t);if(i!==void 0)return i;const s=t.emits;let o={},a=!1;if(!be(t)){const l=u=>{const c=tp(u,e,!0);c&&(a=!0,nt(o,c))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!s&&!a?(r.set(t,null),null):(le(s)?s.forEach(l=>o[l]=null):nt(o,s),r.set(t,o),o)}function Mu(t,e){return!t||!Ko(e)?!1:(e=e.slice(2).replace(/Once$/,""),Oe(t,e[0].toLowerCase()+e.slice(1))||Oe(t,Rr(e))||Oe(t,e))}let Et=null,Zo=null;function So(t){const e=Et;return Et=t,Zo=t&&t.type.__scopeId||null,e}function sN(t){Zo=t}function oN(){Zo=null}function ke(t,e=Et,n){if(!e||t._n)return t;const r=(...i)=>{r._d&&Yc(-1);const s=So(e),o=t(...i);return So(s),r._d&&Yc(1),o};return r._n=!0,r._c=!0,r._d=!0,r}function xa(t){const{type:e,vnode:n,proxy:r,withProxy:i,props:s,propsOptions:[o],slots:a,attrs:l,emit:u,render:c,renderCache:d,data:h,setupState:f,ctx:E,inheritAttrs:w}=t;let T,C;const O=So(t);try{if(n.shapeFlag&4){const x=i||r;T=nn(c.call(x,x,d,s,f,h,E)),C=l}else{const x=e;T=nn(x.length>1?x(s,{attrs:l,slots:a,emit:u}):x(s,null)),C=e.props?l:s_(l)}}catch(x){rs.length=0,Jo(x,t,1),T=qe(Ft)}let _=T;if(C&&w!==!1){const x=Object.keys(C),{shapeFlag:W}=_;x.length&&W&7&&(o&&x.some(yu)&&(C=o_(C,o)),_=hi(_,C))}return n.dirs&&(_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),T=_,So(O),T}const s_=t=>{let e;for(const n in t)(n==="class"||n==="style"||Ko(n))&&((e||(e={}))[n]=t[n]);return e},o_=(t,e)=>{const n={};for(const r in t)(!yu(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function a_(t,e,n){const{props:r,children:i,component:s}=t,{props:o,children:a,patchFlag:l}=e,u=s.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Lc(r,o,u):!!o;if(l&8){const c=e.dynamicProps;for(let d=0;d<c.length;d++){const h=c[d];if(o[h]!==r[h]&&!Mu(u,h))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:r===o?!1:r?o?Lc(r,o,u):!0:!!o;return!1}function Lc(t,e,n){const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!0;for(let i=0;i<r.length;i++){const s=r[i];if(e[s]!==t[s]&&!Mu(n,s))return!0}return!1}function l_({vnode:t,parent:e},n){for(;e&&e.subTree===t;)(t=e.vnode).el=n,e=e.parent}const u_=t=>t.__isSuspense;function c_(t,e){e&&e.pendingBranch?le(t)?e.effects.push(...t):e.effects.push(t):r_(t)}function wr(t,e){if(Ze){let n=Ze.provides;const r=Ze.parent&&Ze.parent.provides;r===n&&(n=Ze.provides=Object.create(r)),n[t]=e}}function at(t,e,n=!1){const r=Ze||Et;if(r){const i=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(i&&t in i)return i[t];if(arguments.length>1)return n&&be(e)?e.call(r.proxy):e}}const $c={};function on(t,e,n){return np(t,e,n)}function np(t,e,{immediate:n,deep:r,flush:i,onTrack:s,onTrigger:o}=$e){const a=Ze;let l,u=!1,c=!1;if(je(t)?(l=()=>t.value,u=jh(t)):qn(t)?(l=()=>t,r=!0):le(t)?(c=!0,u=t.some(qn),l=()=>t.map(C=>{if(je(C))return C.value;if(qn(C))return vr(C);if(be(C))return Kn(C,a,2)})):be(t)?e?l=()=>Kn(t,a,2):l=()=>{if(!(a&&a.isUnmounted))return d&&d(),Dt(t,a,3,[h])}:l=Ut,e&&r){const C=l;l=()=>vr(C())}let d,h=C=>{d=T.onStop=()=>{Kn(C,a,4)}};if(ws)return h=Ut,e?n&&Dt(e,a,3,[l(),c?[]:void 0,h]):l(),Ut;let f=c?[]:$c;const E=()=>{if(!!T.active)if(e){const C=T.run();(r||u||(c?C.some((O,_)=>gs(O,f[_])):gs(C,f)))&&(d&&d(),Dt(e,a,3,[C,f===$c?void 0:f,h]),f=C)}else T.run()};E.allowRecurse=!!e;let w;i==="sync"?w=E:i==="post"?w=()=>ft(E,a&&a.suspense):w=()=>{!a||a.isMounted?n_(E):E()};const T=new Cu(l,w);return e?n?E():f=T.run():i==="post"?ft(T.run.bind(T),a&&a.suspense):T.run(),()=>{T.stop(),a&&a.scope&&bu(a.scope.effects,T)}}function d_(t,e,n){const r=this.proxy,i=Xe(t)?t.includes(".")?rp(r,t):()=>r[t]:t.bind(r,r);let s;be(e)?s=e:(s=e.handler,n=e);const o=Ze;pi(this);const a=np(i,s.bind(r),n);return o?pi(o):Tr(),a}function rp(t,e){const n=e.split(".");return()=>{let r=t;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}function vr(t,e){if(!Ye(t)||t.__v_skip||(e=e||new Set,e.has(t)))return t;if(e.add(t),je(t))vr(t.value,e);else if(le(t))for(let n=0;n<t.length;n++)vr(t[n],e);else if(Ci(t)||ii(t))t.forEach(n=>{vr(n,e)});else if(kh(t))for(const n in t)vr(t[n],e);return t}function f_(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return $r(()=>{t.isMounted=!0}),up(()=>{t.isUnmounting=!0}),t}const At=[Function,Array],h_={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:At,onEnter:At,onAfterEnter:At,onEnterCancelled:At,onBeforeLeave:At,onLeave:At,onAfterLeave:At,onLeaveCancelled:At,onBeforeAppear:At,onAppear:At,onAfterAppear:At,onAppearCancelled:At},setup(t,{slots:e}){const n=ia(),r=f_();let i;return()=>{const s=e.default&&op(e.default(),!0);if(!s||!s.length)return;const o=De(t),{mode:a}=o,l=s[0];if(r.isLeaving)return Ra(l);const u=Bc(l);if(!u)return Ra(l);const c=kl(u,o,r,n);Dl(u,c);const d=n.subTree,h=d&&Bc(d);let f=!1;const{getTransitionKey:E}=u.type;if(E){const w=E();i===void 0?i=w:w!==i&&(i=w,f=!0)}if(h&&h.type!==Ft&&(!pr(u,h)||f)){const w=kl(h,o,r,n);if(Dl(h,w),a==="out-in")return r.isLeaving=!0,w.afterLeave=()=>{r.isLeaving=!1,n.update()},Ra(l);a==="in-out"&&u.type!==Ft&&(w.delayLeave=(T,C,O)=>{const _=sp(r,h);_[String(h.key)]=h,T._leaveCb=()=>{C(),T._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=O})}return l}}},ip=h_;function sp(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function kl(t,e,n,r){const{appear:i,mode:s,persisted:o=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:d,onLeave:h,onAfterLeave:f,onLeaveCancelled:E,onBeforeAppear:w,onAppear:T,onAfterAppear:C,onAppearCancelled:O}=e,_=String(t.key),x=sp(n,t),W=(m,P)=>{m&&Dt(m,r,9,P)},X={mode:s,persisted:o,beforeEnter(m){let P=a;if(!n.isMounted)if(i)P=w||a;else return;m._leaveCb&&m._leaveCb(!0);const R=x[_];R&&pr(t,R)&&R.el._leaveCb&&R.el._leaveCb(),W(P,[m])},enter(m){let P=l,R=u,B=c;if(!n.isMounted)if(i)P=T||l,R=C||u,B=O||c;else return;let v=!1;const y=m._enterCb=U=>{v||(v=!0,U?W(B,[m]):W(R,[m]),X.delayedLeave&&X.delayedLeave(),m._enterCb=void 0)};P?(P(m,y),P.length<=1&&y()):y()},leave(m,P){const R=String(t.key);if(m._enterCb&&m._enterCb(!0),n.isUnmounting)return P();W(d,[m]);let B=!1;const v=m._leaveCb=y=>{B||(B=!0,P(),y?W(E,[m]):W(f,[m]),m._leaveCb=void 0,x[R]===t&&delete x[R])};x[R]=t,h?(h(m,v),h.length<=1&&v()):v()},clone(m){return kl(m,e,n,r)}};return X}function Ra(t){if(ea(t))return t=hi(t),t.children=null,t}function Bc(t){return ea(t)?t.children?t.children[0]:void 0:t}function Dl(t,e){t.shapeFlag&6&&t.component?Dl(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function op(t,e=!1){let n=[],r=0;for(let i=0;i<t.length;i++){const s=t[i];s.type===Se?(s.patchFlag&128&&r++,n=n.concat(op(s.children,e))):(e||s.type!==Ft)&&n.push(s)}if(r>1)for(let i=0;i<n.length;i++)n[i].patchFlag=-2;return n}function qt(t){return be(t)?{setup:t,name:t.name}:t}const Pl=t=>!!t.type.__asyncLoader,ea=t=>t.type.__isKeepAlive;function p_(t,e){ap(t,"a",e)}function m_(t,e){ap(t,"da",e)}function ap(t,e,n=Ze){const r=t.__wdc||(t.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(ta(e,r,n),n){let i=n.parent;for(;i&&i.parent;)ea(i.parent.vnode)&&g_(r,e,n,i),i=i.parent}}function g_(t,e,n,r){const i=ta(e,t,r,!0);na(()=>{bu(r[e],i)},n)}function ta(t,e,n=Ze,r=!1){if(n){const i=n[t]||(n[t]=[]),s=e.__weh||(e.__weh=(...o)=>{if(n.isUnmounted)return;Si(),pi(n);const a=Dt(e,n,t,o);return Tr(),Lr(),a});return r?i.unshift(s):i.push(s),s}}const Sn=t=>(e,n=Ze)=>(!ws||t==="sp")&&ta(t,e,n),v_=Sn("bm"),$r=Sn("m"),lp=Sn("bu"),__=Sn("u"),up=Sn("bum"),na=Sn("um"),y_=Sn("sp"),b_=Sn("rtg"),w_=Sn("rtc");function E_(t,e=Ze){ta("ec",t,e)}let Nl=!0;function T_(t){const e=dp(t),n=t.proxy,r=t.ctx;Nl=!1,e.beforeCreate&&Uc(e.beforeCreate,t,"bc");const{data:i,computed:s,methods:o,watch:a,provide:l,inject:u,created:c,beforeMount:d,mounted:h,beforeUpdate:f,updated:E,activated:w,deactivated:T,beforeDestroy:C,beforeUnmount:O,destroyed:_,unmounted:x,render:W,renderTracked:X,renderTriggered:m,errorCaptured:P,serverPrefetch:R,expose:B,inheritAttrs:v,components:y,directives:U,filters:q}=e;if(u&&C_(u,r,null,t.appContext.config.unwrapInjectedRef),o)for(const ne in o){const ue=o[ne];be(ue)&&(r[ne]=ue.bind(n))}if(i){const ne=i.call(n,n);Ye(ne)&&(t.data=Ai(ne))}if(Nl=!0,s)for(const ne in s){const ue=s[ne],Ie=be(ue)?ue.bind(n,n):be(ue.get)?ue.get.bind(n,n):Ut,Ge=!be(ue)&&be(ue.set)?ue.set.bind(n):Ut,Fe=te({get:Ie,set:Ge});Object.defineProperty(r,ne,{enumerable:!0,configurable:!0,get:()=>Fe.value,set:Je=>Fe.value=Je})}if(a)for(const ne in a)cp(a[ne],r,n,ne);if(l){const ne=be(l)?l.call(n):l;Reflect.ownKeys(ne).forEach(ue=>{wr(ue,ne[ue])})}c&&Uc(c,t,"c");function Z(ne,ue){le(ue)?ue.forEach(Ie=>ne(Ie.bind(n))):ue&&ne(ue.bind(n))}if(Z(v_,d),Z($r,h),Z(lp,f),Z(__,E),Z(p_,w),Z(m_,T),Z(E_,P),Z(w_,X),Z(b_,m),Z(up,O),Z(na,x),Z(y_,R),le(B))if(B.length){const ne=t.exposed||(t.exposed={});B.forEach(ue=>{Object.defineProperty(ne,ue,{get:()=>n[ue],set:Ie=>n[ue]=Ie})})}else t.exposed||(t.exposed={});W&&t.render===Ut&&(t.render=W),v!=null&&(t.inheritAttrs=v),y&&(t.components=y),U&&(t.directives=U)}function C_(t,e,n=Ut,r=!1){le(t)&&(t=Ml(t));for(const i in t){const s=t[i];let o;Ye(s)?"default"in s?o=at(s.from||i,s.default,!0):o=at(s.from||i):o=at(s),je(o)&&r?Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):e[i]=o}}function Uc(t,e,n){Dt(le(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function cp(t,e,n,r){const i=r.includes(".")?rp(n,r):()=>n[r];if(Xe(t)){const s=e[t];be(s)&&on(i,s)}else if(be(t))on(i,t.bind(n));else if(Ye(t))if(le(t))t.forEach(s=>cp(s,e,n,r));else{const s=be(t.handler)?t.handler.bind(n):e[t.handler];be(s)&&on(i,s,t)}}function dp(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:i,optionsCache:s,config:{optionMergeStrategies:o}}=t.appContext,a=s.get(e);let l;return a?l=a:!i.length&&!n&&!r?l=e:(l={},i.length&&i.forEach(u=>Ao(l,u,o,!0)),Ao(l,e,o)),s.set(e,l),l}function Ao(t,e,n,r=!1){const{mixins:i,extends:s}=e;s&&Ao(t,s,n,!0),i&&i.forEach(o=>Ao(t,o,n,!0));for(const o in e)if(!(r&&o==="expose")){const a=S_[o]||n&&n[o];t[o]=a?a(t[o],e[o]):e[o]}return t}const S_={data:Hc,props:ur,emits:ur,methods:ur,computed:ur,beforeCreate:dt,created:dt,beforeMount:dt,mounted:dt,beforeUpdate:dt,updated:dt,beforeDestroy:dt,beforeUnmount:dt,destroyed:dt,unmounted:dt,activated:dt,deactivated:dt,errorCaptured:dt,serverPrefetch:dt,components:ur,directives:ur,watch:I_,provide:Hc,inject:A_};function Hc(t,e){return e?t?function(){return nt(be(t)?t.call(this,this):t,be(e)?e.call(this,this):e)}:e:t}function A_(t,e){return ur(Ml(t),Ml(e))}function Ml(t){if(le(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function dt(t,e){return t?[...new Set([].concat(t,e))]:e}function ur(t,e){return t?nt(nt(Object.create(null),t),e):e}function I_(t,e){if(!t)return e;if(!e)return t;const n=nt(Object.create(null),t);for(const r in e)n[r]=dt(t[r],e[r]);return n}function O_(t,e,n,r=!1){const i={},s={};Eo(s,ra,1),t.propsDefaults=Object.create(null),fp(t,e,i,s);for(const o in t.propsOptions[0])o in i||(i[o]=void 0);n?t.props=r?i:qv(i):t.type.props?t.props=i:t.props=s,t.attrs=s}function k_(t,e,n,r){const{props:i,attrs:s,vnode:{patchFlag:o}}=t,a=De(i),[l]=t.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=t.vnode.dynamicProps;for(let d=0;d<c.length;d++){let h=c[d];const f=e[h];if(l)if(Oe(s,h))f!==s[h]&&(s[h]=f,u=!0);else{const E=dn(h);i[E]=xl(l,a,E,f,t,!1)}else f!==s[h]&&(s[h]=f,u=!0)}}}else{fp(t,e,i,s)&&(u=!0);let c;for(const d in a)(!e||!Oe(e,d)&&((c=Rr(d))===d||!Oe(e,c)))&&(l?n&&(n[d]!==void 0||n[c]!==void 0)&&(i[d]=xl(l,a,d,void 0,t,!0)):delete i[d]);if(s!==a)for(const d in s)(!e||!Oe(e,d)&&!0)&&(delete s[d],u=!0)}u&&Tn(t,"set","$attrs")}function fp(t,e,n,r){const[i,s]=t.propsOptions;let o=!1,a;if(e)for(let l in e){if(co(l))continue;const u=e[l];let c;i&&Oe(i,c=dn(l))?!s||!s.includes(c)?n[c]=u:(a||(a={}))[c]=u:Mu(t.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,o=!0)}if(s){const l=De(n),u=a||$e;for(let c=0;c<s.length;c++){const d=s[c];n[d]=xl(i,l,d,u[d],t,!Oe(u,d))}}return o}function xl(t,e,n,r,i,s){const o=t[n];if(o!=null){const a=Oe(o,"default");if(a&&r===void 0){const l=o.default;if(o.type!==Function&&be(l)){const{propsDefaults:u}=i;n in u?r=u[n]:(pi(i),r=u[n]=l.call(null,e),Tr())}else r=l}o[0]&&(s&&!a?r=!1:o[1]&&(r===""||r===Rr(n))&&(r=!0))}return r}function hp(t,e,n=!1){const r=e.propsCache,i=r.get(t);if(i)return i;const s=t.props,o={},a=[];let l=!1;if(!be(t)){const c=d=>{l=!0;const[h,f]=hp(d,e,!0);nt(o,h),f&&a.push(...f)};!n&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}if(!s&&!l)return r.set(t,ri),ri;if(le(s))for(let c=0;c<s.length;c++){const d=dn(s[c]);Fc(d)&&(o[d]=$e)}else if(s)for(const c in s){const d=dn(c);if(Fc(d)){const h=s[c],f=o[d]=le(h)||be(h)?{type:h}:h;if(f){const E=Wc(Boolean,f.type),w=Wc(String,f.type);f[0]=E>-1,f[1]=w<0||E<w,(E>-1||Oe(f,"default"))&&a.push(d)}}}const u=[o,a];return r.set(t,u),u}function Fc(t){return t[0]!=="$"}function Vc(t){const e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:t===null?"null":""}function jc(t,e){return Vc(t)===Vc(e)}function Wc(t,e){return le(e)?e.findIndex(n=>jc(n,t)):be(e)&&jc(e,t)?0:-1}const pp=t=>t[0]==="_"||t==="$stable",xu=t=>le(t)?t.map(nn):[nn(t)],D_=(t,e,n)=>{const r=ke((...i)=>xu(e(...i)),n);return r._c=!1,r},mp=(t,e,n)=>{const r=t._ctx;for(const i in t){if(pp(i))continue;const s=t[i];if(be(s))e[i]=D_(i,s,r);else if(s!=null){const o=xu(s);e[i]=()=>o}}},gp=(t,e)=>{const n=xu(e);t.slots.default=()=>n},P_=(t,e)=>{if(t.vnode.shapeFlag&32){const n=e._;n?(t.slots=De(e),Eo(e,"_",n)):mp(e,t.slots={})}else t.slots={},e&&gp(t,e);Eo(t.slots,ra,1)},N_=(t,e,n)=>{const{vnode:r,slots:i}=t;let s=!0,o=$e;if(r.shapeFlag&32){const a=e._;a?n&&a===1?s=!1:(nt(i,e),!n&&a===1&&delete i._):(s=!e.$stable,mp(e,i)),o=e}else e&&(gp(t,e),o={default:1});if(s)for(const a in i)!pp(a)&&!(a in o)&&delete i[a]};function aN(t,e){const n=Et;if(n===null)return t;const r=n.proxy,i=t.dirs||(t.dirs=[]);for(let s=0;s<e.length;s++){let[o,a,l,u=$e]=e[s];be(o)&&(o={mounted:o,updated:o}),o.deep&&vr(a),i.push({dir:o,instance:r,value:a,oldValue:void 0,arg:l,modifiers:u})}return t}function tr(t,e,n,r){const i=t.dirs,s=e&&e.dirs;for(let o=0;o<i.length;o++){const a=i[o];s&&(a.oldValue=s[o].value);let l=a.dir[r];l&&(Si(),Dt(l,n,8,[t.el,a,t,e]),Lr())}}function vp(){return{app:null,config:{isNativeTag:uv,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 M_=0;function x_(t,e){return function(r,i=null){i!=null&&!Ye(i)&&(i=null);const s=vp(),o=new Set;let a=!1;const l=s.app={_uid:M_++,_component:r,_props:i,_container:null,_context:s,_instance:null,version:ey,get config(){return s.config},set config(u){},use(u,...c){return o.has(u)||(u&&be(u.install)?(o.add(u),u.install(l,...c)):be(u)&&(o.add(u),u(l,...c))),l},mixin(u){return s.mixins.includes(u)||s.mixins.push(u),l},component(u,c){return c?(s.components[u]=c,l):s.components[u]},directive(u,c){return c?(s.directives[u]=c,l):s.directives[u]},mount(u,c,d){if(!a){const h=qe(r,i);return h.appContext=s,c&&e?e(h,u):t(h,u,d),a=!0,l._container=u,u.__vue_app__=l,Uu(h.component)||h.component.proxy}},unmount(){a&&(t(null,l._container),delete l._container.__vue_app__)},provide(u,c){return s.provides[u]=c,l}};return l}}function Rl(t,e,n,r,i=!1){if(le(t)){t.forEach((h,f)=>Rl(h,e&&(le(e)?e[f]:e),n,r,i));return}if(Pl(r)&&!i)return;const s=r.shapeFlag&4?Uu(r.component)||r.component.proxy:r.el,o=i?null:s,{i:a,r:l}=t,u=e&&e.r,c=a.refs===$e?a.refs={}:a.refs,d=a.setupState;if(u!=null&&u!==l&&(Xe(u)?(c[u]=null,Oe(d,u)&&(d[u]=null)):je(u)&&(u.value=null)),be(l))Kn(l,a,12,[o,c]);else{const h=Xe(l),f=je(l);if(h||f){const E=()=>{if(t.f){const w=h?c[l]:l.value;i?le(w)&&bu(w,s):le(w)?w.includes(s)||w.push(s):h?c[l]=[s]:(l.value=[s],t.k&&(c[t.k]=l.value))}else h?(c[l]=o,Oe(d,l)&&(d[l]=o)):je(l)&&(l.value=o,t.k&&(c[t.k]=o))};o?(E.id=-1,ft(E,n)):E()}}}const ft=c_;function R_(t){return L_(t)}function L_(t,e){const n=mv();n.__VUE__=!0;const{insert:r,remove:i,patchProp:s,createElement:o,createText:a,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:h,setScopeId:f=Ut,cloneNode:E,insertStaticContent:w}=t,T=(p,g,S,I=null,D=null,j=null,J=!1,K=null,Y=!!g.dynamicChildren)=>{if(p===g)return;p&&!pr(p,g)&&(I=Q(p),Ue(p,D,j,!0),p=null),g.patchFlag===-2&&(Y=!1,g.dynamicChildren=null);const{type:A,ref:F,shapeFlag:N}=g;switch(A){case $u:C(p,g,S,I);break;case Ft:O(p,g,S,I);break;case La:p==null&&_(g,S,I,J);break;case Se:U(p,g,S,I,D,j,J,K,Y);break;default:N&1?X(p,g,S,I,D,j,J,K,Y):N&6?q(p,g,S,I,D,j,J,K,Y):(N&64||N&128)&&A.process(p,g,S,I,D,j,J,K,Y,pe)}F!=null&&D&&Rl(F,p&&p.ref,j,g||p,!g)},C=(p,g,S,I)=>{if(p==null)r(g.el=a(g.children),S,I);else{const D=g.el=p.el;g.children!==p.children&&u(D,g.children)}},O=(p,g,S,I)=>{p==null?r(g.el=l(g.children||""),S,I):g.el=p.el},_=(p,g,S,I)=>{[p.el,p.anchor]=w(p.children,g,S,I,p.el,p.anchor)},x=({el:p,anchor:g},S,I)=>{let D;for(;p&&p!==g;)D=h(p),r(p,S,I),p=D;r(g,S,I)},W=({el:p,anchor:g})=>{let S;for(;p&&p!==g;)S=h(p),i(p),p=S;i(g)},X=(p,g,S,I,D,j,J,K,Y)=>{J=J||g.type==="svg",p==null?m(g,S,I,D,j,J,K,Y):B(p,g,D,j,J,K,Y)},m=(p,g,S,I,D,j,J,K)=>{let Y,A;const{type:F,props:N,shapeFlag:G,transition:se,patchFlag:Ce,dirs:Ve}=p;if(p.el&&E!==void 0&&Ce===-1)Y=p.el=E(p.el);else{if(Y=p.el=o(p.type,j,N&&N.is,N),G&8?c(Y,p.children):G&16&&R(p.children,Y,null,I,D,j&&F!=="foreignObject",J,K),Ve&&tr(p,null,I,"created"),N){for(const He in N)He!=="value"&&!co(He)&&s(Y,He,null,N[He],j,p.children,I,D,V);"value"in N&&s(Y,"value",null,N.value),(A=N.onVnodeBeforeMount)&&zt(A,I,p)}P(Y,p,p.scopeId,J,I)}Ve&&tr(p,null,I,"beforeMount");const Re=(!D||D&&!D.pendingBranch)&&se&&!se.persisted;Re&&se.beforeEnter(Y),r(Y,g,S),((A=N&&N.onVnodeMounted)||Re||Ve)&&ft(()=>{A&&zt(A,I,p),Re&&se.enter(Y),Ve&&tr(p,null,I,"mounted")},D)},P=(p,g,S,I,D)=>{if(S&&f(p,S),I)for(let j=0;j<I.length;j++)f(p,I[j]);if(D){let j=D.subTree;if(g===j){const J=D.vnode;P(p,J,J.scopeId,J.slotScopeIds,D.parent)}}},R=(p,g,S,I,D,j,J,K,Y=0)=>{for(let A=Y;A<p.length;A++){const F=p[A]=K?Ln(p[A]):nn(p[A]);T(null,F,g,S,I,D,j,J,K)}},B=(p,g,S,I,D,j,J)=>{const K=g.el=p.el;let{patchFlag:Y,dynamicChildren:A,dirs:F}=g;Y|=p.patchFlag&16;const N=p.props||$e,G=g.props||$e;let se;S&&nr(S,!1),(se=G.onVnodeBeforeUpdate)&&zt(se,S,g,p),F&&tr(g,p,S,"beforeUpdate"),S&&nr(S,!0);const Ce=D&&g.type!=="foreignObject";if(A?v(p.dynamicChildren,A,K,S,I,Ce,j):J||Ie(p,g,K,null,S,I,Ce,j,!1),Y>0){if(Y&16)y(K,g,N,G,S,I,D);else if(Y&2&&N.class!==G.class&&s(K,"class",null,G.class,D),Y&4&&s(K,"style",N.style,G.style,D),Y&8){const Ve=g.dynamicProps;for(let Re=0;Re<Ve.length;Re++){const He=Ve[Re],Lt=N[He],Vr=G[He];(Vr!==Lt||He==="value")&&s(K,He,Lt,Vr,D,p.children,S,I,V)}}Y&1&&p.children!==g.children&&c(K,g.children)}else!J&&A==null&&y(K,g,N,G,S,I,D);((se=G.onVnodeUpdated)||F)&&ft(()=>{se&&zt(se,S,g,p),F&&tr(g,p,S,"updated")},I)},v=(p,g,S,I,D,j,J)=>{for(let K=0;K<g.length;K++){const Y=p[K],A=g[K],F=Y.el&&(Y.type===Se||!pr(Y,A)||Y.shapeFlag&70)?d(Y.el):S;T(Y,A,F,null,I,D,j,J,!0)}},y=(p,g,S,I,D,j,J)=>{if(S!==I){for(const K in I){if(co(K))continue;const Y=I[K],A=S[K];Y!==A&&K!=="value"&&s(p,K,A,Y,J,g.children,D,j,V)}if(S!==$e)for(const K in S)!co(K)&&!(K in I)&&s(p,K,S[K],null,J,g.children,D,j,V);"value"in I&&s(p,"value",S.value,I.value)}},U=(p,g,S,I,D,j,J,K,Y)=>{const A=g.el=p?p.el:a(""),F=g.anchor=p?p.anchor:a("");let{patchFlag:N,dynamicChildren:G,slotScopeIds:se}=g;se&&(K=K?K.concat(se):se),p==null?(r(A,S,I),r(F,S,I),R(g.children,S,F,D,j,J,K,Y)):N>0&&N&64&&G&&p.dynamicChildren?(v(p.dynamicChildren,G,S,D,j,J,K),(g.key!=null||D&&g===D.subTree)&&Ru(p,g,!0)):Ie(p,g,S,F,D,j,J,K,Y)},q=(p,g,S,I,D,j,J,K,Y)=>{g.slotScopeIds=K,p==null?g.shapeFlag&512?D.ctx.activate(g,S,I,J,Y):re(g,S,I,D,j,J,Y):Z(p,g,Y)},re=(p,g,S,I,D,j,J)=>{const K=p.component=Y_(p,I,D);if(ea(p)&&(K.ctx.renderer=pe),z_(K),K.asyncDep){if(D&&D.registerDep(K,ne),!p.el){const Y=K.subTree=qe(Ft);O(null,Y,g,S)}return}ne(K,p,g,S,D,j,J)},Z=(p,g,S)=>{const I=g.component=p.component;if(a_(p,g,S))if(I.asyncDep&&!I.asyncResolved){ue(I,g,S);return}else I.next=g,t_(I.update),I.update();else g.component=p.component,g.el=p.el,I.vnode=g},ne=(p,g,S,I,D,j,J)=>{const K=()=>{if(p.isMounted){let{next:F,bu:N,u:G,parent:se,vnode:Ce}=p,Ve=F,Re;nr(p,!1),F?(F.el=Ce.el,ue(p,F,J)):F=Ce,N&&fo(N),(Re=F.props&&F.props.onVnodeBeforeUpdate)&&zt(Re,se,F,Ce),nr(p,!0);const He=xa(p),Lt=p.subTree;p.subTree=He,T(Lt,He,d(Lt.el),Q(Lt),p,D,j),F.el=He.el,Ve===null&&l_(p,He.el),G&&ft(G,D),(Re=F.props&&F.props.onVnodeUpdated)&&ft(()=>zt(Re,se,F,Ce),D)}else{let F;const{el:N,props:G}=g,{bm:se,m:Ce,parent:Ve}=p,Re=Pl(g);if(nr(p,!1),se&&fo(se),!Re&&(F=G&&G.onVnodeBeforeMount)&&zt(F,Ve,g),nr(p,!0),N&&ce){const He=()=>{p.subTree=xa(p),ce(N,p.subTree,p,D,null)};Re?g.type.__asyncLoader().then(()=>!p.isUnmounted&&He()):He()}else{const He=p.subTree=xa(p);T(null,He,S,I,p,D,j),g.el=He.el}if(Ce&&ft(Ce,D),!Re&&(F=G&&G.onVnodeMounted)){const He=g;ft(()=>zt(F,Ve,He),D)}g.shapeFlag&256&&p.a&&ft(p.a,D),p.isMounted=!0,g=S=I=null}},Y=p.effect=new Cu(K,()=>Xh(p.update),p.scope),A=p.update=Y.run.bind(Y);A.id=p.uid,nr(p,!0),A()},ue=(p,g,S)=>{g.component=p;const I=p.vnode.props;p.vnode=g,p.next=null,k_(p,g.props,I,S),N_(p,g.children,S),Si(),Nu(void 0,p.update),Lr()},Ie=(p,g,S,I,D,j,J,K,Y=!1)=>{const A=p&&p.children,F=p?p.shapeFlag:0,N=g.children,{patchFlag:G,shapeFlag:se}=g;if(G>0){if(G&128){Fe(A,N,S,I,D,j,J,K,Y);return}else if(G&256){Ge(A,N,S,I,D,j,J,K,Y);return}}se&8?(F&16&&V(A,D,j),N!==A&&c(S,N)):F&16?se&16?Fe(A,N,S,I,D,j,J,K,Y):V(A,D,j,!0):(F&8&&c(S,""),se&16&&R(N,S,I,D,j,J,K,Y))},Ge=(p,g,S,I,D,j,J,K,Y)=>{p=p||ri,g=g||ri;const A=p.length,F=g.length,N=Math.min(A,F);let G;for(G=0;G<N;G++){const se=g[G]=Y?Ln(g[G]):nn(g[G]);T(p[G],se,S,null,D,j,J,K,Y)}A>F?V(p,D,j,!0,!1,N):R(g,S,I,D,j,J,K,Y,N)},Fe=(p,g,S,I,D,j,J,K,Y)=>{let A=0;const F=g.length;let N=p.length-1,G=F-1;for(;A<=N&&A<=G;){const se=p[A],Ce=g[A]=Y?Ln(g[A]):nn(g[A]);if(pr(se,Ce))T(se,Ce,S,null,D,j,J,K,Y);else break;A++}for(;A<=N&&A<=G;){const se=p[N],Ce=g[G]=Y?Ln(g[G]):nn(g[G]);if(pr(se,Ce))T(se,Ce,S,null,D,j,J,K,Y);else break;N--,G--}if(A>N){if(A<=G){const se=G+1,Ce=se<F?g[se].el:I;for(;A<=G;)T(null,g[A]=Y?Ln(g[A]):nn(g[A]),S,Ce,D,j,J,K,Y),A++}}else if(A>G)for(;A<=N;)Ue(p[A],D,j,!0),A++;else{const se=A,Ce=A,Ve=new Map;for(A=Ce;A<=G;A++){const vt=g[A]=Y?Ln(g[A]):nn(g[A]);vt.key!=null&&Ve.set(vt.key,A)}let Re,He=0;const Lt=G-Ce+1;let Vr=!1,Tc=0;const Li=new Array(Lt);for(A=0;A<Lt;A++)Li[A]=0;for(A=se;A<=N;A++){const vt=p[A];if(He>=Lt){Ue(vt,D,j,!0);continue}let Yt;if(vt.key!=null)Yt=Ve.get(vt.key);else for(Re=Ce;Re<=G;Re++)if(Li[Re-Ce]===0&&pr(vt,g[Re])){Yt=Re;break}Yt===void 0?Ue(vt,D,j,!0):(Li[Yt-Ce]=A+1,Yt>=Tc?Tc=Yt:Vr=!0,T(vt,g[Yt],S,null,D,j,J,K,Y),He++)}const Cc=Vr?$_(Li):ri;for(Re=Cc.length-1,A=Lt-1;A>=0;A--){const vt=Ce+A,Yt=g[vt],Sc=vt+1<F?g[vt+1].el:I;Li[A]===0?T(null,Yt,S,Sc,D,j,J,K,Y):Vr&&(Re<0||A!==Cc[Re]?Je(Yt,S,Sc,2):Re--)}}},Je=(p,g,S,I,D=null)=>{const{el:j,type:J,transition:K,children:Y,shapeFlag:A}=p;if(A&6){Je(p.component.subTree,g,S,I);return}if(A&128){p.suspense.move(g,S,I);return}if(A&64){J.move(p,g,S,pe);return}if(J===Se){r(j,g,S);for(let N=0;N<Y.length;N++)Je(Y[N],g,S,I);r(p.anchor,g,S);return}if(J===La){x(p,g,S);return}if(I!==2&&A&1&&K)if(I===0)K.beforeEnter(j),r(j,g,S),ft(()=>K.enter(j),D);else{const{leave:N,delayLeave:G,afterLeave:se}=K,Ce=()=>r(j,g,S),Ve=()=>{N(j,()=>{Ce(),se&&se()})};G?G(j,Ce,Ve):Ve()}else r(j,g,S)},Ue=(p,g,S,I=!1,D=!1)=>{const{type:j,props:J,ref:K,children:Y,dynamicChildren:A,shapeFlag:F,patchFlag:N,dirs:G}=p;if(K!=null&&Rl(K,null,S,p,!0),F&256){g.ctx.deactivate(p);return}const se=F&1&&G,Ce=!Pl(p);let Ve;if(Ce&&(Ve=J&&J.onVnodeBeforeUnmount)&&zt(Ve,g,p),F&6)z(p.component,S,I);else{if(F&128){p.suspense.unmount(S,I);return}se&&tr(p,null,g,"beforeUnmount"),F&64?p.type.remove(p,g,S,D,pe,I):A&&(j!==Se||N>0&&N&64)?V(A,g,S,!1,!0):(j===Se&&N&384||!D&&F&16)&&V(Y,g,S),I&&mn(p)}(Ce&&(Ve=J&&J.onVnodeUnmounted)||se)&&ft(()=>{Ve&&zt(Ve,g,p),se&&tr(p,null,g,"unmounted")},S)},mn=p=>{const{type:g,el:S,anchor:I,transition:D}=p;if(g===Se){$(S,I);return}if(g===La){W(p);return}const j=()=>{i(S),D&&!D.persisted&&D.afterLeave&&D.afterLeave()};if(p.shapeFlag&1&&D&&!D.persisted){const{leave:J,delayLeave:K}=D,Y=()=>J(S,j);K?K(p.el,j,Y):Y()}else j()},$=(p,g)=>{let S;for(;p!==g;)S=h(p),i(p),p=S;i(g)},z=(p,g,S)=>{const{bum:I,scope:D,update:j,subTree:J,um:K}=p;I&&fo(I),D.stop(),j&&(j.active=!1,Ue(J,p,g,S)),K&&ft(K,g),ft(()=>{p.isUnmounted=!0},g),g&&g.pendingBranch&&!g.isUnmounted&&p.asyncDep&&!p.asyncResolved&&p.suspenseId===g.pendingId&&(g.deps--,g.deps===0&&g.resolve())},V=(p,g,S,I=!1,D=!1,j=0)=>{for(let J=j;J<p.length;J++)Ue(p[J],g,S,I,D)},Q=p=>p.shapeFlag&6?Q(p.component.subTree):p.shapeFlag&128?p.suspense.next():h(p.anchor||p.el),Te=(p,g,S)=>{p==null?g._vnode&&Ue(g._vnode,null,null,!0):T(g._vnode||null,p,g,null,null,null,S),Zh(),g._vnode=p},pe={p:T,um:Ue,m:Je,r:mn,mt:re,mc:R,pc:Ie,pbc:v,n:Q,o:t};let fe,ce;return e&&([fe,ce]=e(pe)),{render:Te,hydrate:fe,createApp:x_(Te,fe)}}function nr({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function Ru(t,e,n=!1){const r=t.children,i=e.children;if(le(r)&&le(i))for(let s=0;s<r.length;s++){const o=r[s];let a=i[s];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[s]=Ln(i[s]),a.el=o.el),n||Ru(o,a))}}function $_(t){const e=t.slice(),n=[0];let r,i,s,o,a;const l=t.length;for(r=0;r<l;r++){const u=t[r];if(u!==0){if(i=n[n.length-1],t[i]<u){e[r]=i,n.push(r);continue}for(s=0,o=n.length-1;s<o;)a=s+o>>1,t[n[a]]<u?s=a+1:o=a;u<t[n[s]]&&(s>0&&(e[r]=n[s-1]),n[s]=r)}}for(s=n.length,o=n[s-1];s-- >0;)n[s]=o,o=e[o];return n}const B_=t=>t.__isTeleport,ns=t=>t&&(t.disabled||t.disabled===""),qc=t=>typeof SVGElement!="undefined"&&t instanceof SVGElement,Ll=(t,e)=>{const n=t&&t.to;return Xe(n)?e?e(n):null:n},U_={__isTeleport:!0,process(t,e,n,r,i,s,o,a,l,u){const{mc:c,pc:d,pbc:h,o:{insert:f,querySelector:E,createText:w,createComment:T}}=u,C=ns(e.props);let{shapeFlag:O,children:_,dynamicChildren:x}=e;if(t==null){const W=e.el=w(""),X=e.anchor=w("");f(W,n,r),f(X,n,r);const m=e.target=Ll(e.props,E),P=e.targetAnchor=w("");m&&(f(P,m),o=o||qc(m));const R=(B,v)=>{O&16&&c(_,B,v,i,s,o,a,l)};C?R(n,X):m&&R(m,P)}else{e.el=t.el;const W=e.anchor=t.anchor,X=e.target=t.target,m=e.targetAnchor=t.targetAnchor,P=ns(t.props),R=P?n:X,B=P?W:m;if(o=o||qc(X),x?(h(t.dynamicChildren,x,R,i,s,o,a),Ru(t,e,!0)):l||d(t,e,R,B,i,s,o,a,!1),C)P||eo(e,n,W,u,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const v=e.target=Ll(e.props,E);v&&eo(e,v,null,u,0)}else P&&eo(e,X,m,u,1)}},remove(t,e,n,r,{um:i,o:{remove:s}},o){const{shapeFlag:a,children:l,anchor:u,targetAnchor:c,target:d,props:h}=t;if(d&&s(c),(o||!ns(h))&&(s(u),a&16))for(let f=0;f<l.length;f++){const E=l[f];i(E,e,n,!0,!!E.dynamicChildren)}},move:eo,hydrate:H_};function eo(t,e,n,{o:{insert:r},m:i},s=2){s===0&&r(t.targetAnchor,e,n);const{el:o,anchor:a,shapeFlag:l,children:u,props:c}=t,d=s===2;if(d&&r(o,e,n),(!d||ns(c))&&l&16)for(let h=0;h<u.length;h++)i(u[h],e,n,2);d&&r(a,e,n)}function H_(t,e,n,r,i,s,{o:{nextSibling:o,parentNode:a,querySelector:l}},u){const c=e.target=Ll(e.props,l);if(c){const d=c._lpa||c.firstChild;e.shapeFlag&16&&(ns(e.props)?(e.anchor=u(o(t),e,a(t),n,r,i,s),e.targetAnchor=d):(e.anchor=o(t),e.targetAnchor=u(d,e,c,n,r,i,s)),c._lpa=e.targetAnchor&&o(e.targetAnchor))}return e.anchor&&o(e.anchor)}const F_=U_,Lu="components";function lN(t,e){return yp(Lu,t,!0,e)||t}const _p=Symbol();function $l(t){return Xe(t)?yp(Lu,t,!1)||t:t||_p}function yp(t,e,n=!0,r=!1){const i=Et||Ze;if(i){const s=i.type;if(t===Lu){const a=J_(s);if(a&&(a===e||a===dn(e)||a===Go(dn(e))))return s}const o=Kc(i[t]||s[t],e)||Kc(i.appContext[t],e);return!o&&r?s:o}}function Kc(t,e){return t&&(t[e]||t[dn(e)]||t[Go(dn(e))])}const Se=Symbol(void 0),$u=Symbol(void 0),Ft=Symbol(void 0),La=Symbol(void 0),rs=[];let Er=null;function L(t=!1){rs.push(Er=t?null:[])}function V_(){rs.pop(),Er=rs[rs.length-1]||null}let Io=1;function Yc(t){Io+=t}function bp(t){return t.dynamicChildren=Io>0?Er||ri:null,V_(),Io>0&&Er&&Er.push(t),t}function ee(t,e,n,r,i,s){return bp(ie(t,e,n,r,i,s,!0))}function Ee(t,e,n,r,i){return bp(qe(t,e,n,r,i,!0))}function Oo(t){return t?t.__v_isVNode===!0:!1}function pr(t,e){return t.type===e.type&&t.key===e.key}const ra="__vInternal",wp=({key:t})=>t!=null?t:null,ho=({ref:t,ref_key:e,ref_for:n})=>t!=null?Xe(t)||je(t)||be(t)?{i:Et,r:t,k:e,f:!!n}:t:null;function ie(t,e=null,n=null,r=0,i=null,s=t===Se?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&wp(e),ref:e&&ho(e),scopeId:Zo,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null};return a?(Bu(l,n),s&128&&t.normalize(l)):n&&(l.shapeFlag|=Xe(n)?8:16),Io>0&&!o&&Er&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&Er.push(l),l}const qe=j_;function j_(t,e=null,n=null,r=0,i=null,s=!1){if((!t||t===_p)&&(t=Ft),Oo(t)){const a=hi(t,e,!0);return n&&Bu(a,n),a}if(Q_(t)&&(t=t.__vccOpts),e){e=an(e);let{class:a,style:l}=e;a&&!Xe(a)&&(e.class=Ne(a)),Ye(l)&&(Wh(l)&&!le(l)&&(l=nt({},l)),e.style=_n(l))}const o=Xe(t)?1:u_(t)?128:B_(t)?64:Ye(t)?4:be(t)?2:0;return ie(t,e,n,r,i,o,s,!0)}function an(t){return t?Wh(t)||ra in t?nt({},t):t:null}function hi(t,e,n=!1){const{props:r,ref:i,patchFlag:s,children:o}=t,a=e?pt(r||{},e):r;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:a,key:a&&wp(a),ref:e&&e.ref?n&&i?le(i)?i.concat(ho(e)):[i,ho(e)]:ho(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Se?s===-1?16:s|16:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&hi(t.ssContent),ssFallback:t.ssFallback&&hi(t.ssFallback),el:t.el,anchor:t.anchor}}function Ht(t=" ",e=0){return qe($u,null,t,e)}function M(t="",e=!1){return e?(L(),Ee(Ft,null,t)):qe(Ft,null,t)}function nn(t){return t==null||typeof t=="boolean"?qe(Ft):le(t)?qe(Se,null,t.slice()):typeof t=="object"?Ln(t):qe($u,null,String(t))}function Ln(t){return t.el===null||t.memo?t:hi(t)}function Bu(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(le(e))n=16;else if(typeof e=="object")if(r&65){const i=e.default;i&&(i._c&&(i._d=!1),Bu(t,i()),i._c&&(i._d=!0));return}else{n=32;const i=e._;!i&&!(ra in e)?e._ctx=Et:i===3&&Et&&(Et.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else be(e)?(e={default:e,_ctx:Et},n=32):(e=String(e),r&64?(n=16,e=[Ht(e)]):n=8);t.children=e,t.shapeFlag|=n}function pt(...t){const e={};for(let n=0;n<t.length;n++){const r=t[n];for(const i in r)if(i==="class")e.class!==r.class&&(e.class=Ne([e.class,r.class]));else if(i==="style")e.style=_n([e.style,r.style]);else if(Ko(i)){const s=e[i],o=r[i];o&&s!==o&&!(le(s)&&s.includes(o))&&(e[i]=s?[].concat(s,o):o)}else i!==""&&(e[i]=r[i])}return e}function zt(t,e,n,r=null){Dt(t,e,7,[n,r])}function it(t,e,n,r){let i;const s=n&&n[r];if(le(t)||Xe(t)){i=new Array(t.length);for(let o=0,a=t.length;o<a;o++)i[o]=e(t[o],o,void 0,s&&s[o])}else if(typeof t=="number"){i=new Array(t);for(let o=0;o<t;o++)i[o]=e(o+1,o,void 0,s&&s[o])}else if(Ye(t))if(t[Symbol.iterator])i=Array.from(t,(o,a)=>e(o,a,void 0,s&&s[a]));else{const o=Object.keys(t);i=new Array(o.length);for(let a=0,l=o.length;a<l;a++){const u=o[a];i[a]=e(t[u],u,a,s&&s[a])}}else i=[];return n&&(n[r]=i),i}function st(t,e){for(let n=0;n<e.length;n++){const r=e[n];if(le(r))for(let i=0;i<r.length;i++)t[r[i].name]=r[i].fn;else r&&(t[r.name]=r.fn)}return t}function oe(t,e,n={},r,i){if(Et.isCE)return qe("slot",e==="default"?null:{name:e},r&&r());let s=t[e];s&&s._c&&(s._d=!1),L();const o=s&&Ep(s(n)),a=Ee(Se,{key:n.key||`_${e}`},o||(r?r():[]),o&&t._===1?64:-2);return!i&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function Ep(t){return t.some(e=>Oo(e)?!(e.type===Ft||e.type===Se&&!Ep(e.children)):!0)?t:null}const Bl=t=>t?Tp(t)?Uu(t)||t.proxy:Bl(t.parent):null,ko=nt(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=>Bl(t.parent),$root:t=>Bl(t.root),$emit:t=>t.emit,$options:t=>dp(t),$forceUpdate:t=>()=>Xh(t.update),$nextTick:t=>Qo.bind(t.proxy),$watch:t=>d_.bind(t)}),W_={get({_:t},e){const{ctx:n,setupState:r,data:i,props:s,accessCache:o,type:a,appContext:l}=t;let u;if(e[0]!=="$"){const f=o[e];if(f!==void 0)switch(f){case 1:return r[e];case 2:return i[e];case 4:return n[e];case 3:return s[e]}else{if(r!==$e&&Oe(r,e))return o[e]=1,r[e];if(i!==$e&&Oe(i,e))return o[e]=2,i[e];if((u=t.propsOptions[0])&&Oe(u,e))return o[e]=3,s[e];if(n!==$e&&Oe(n,e))return o[e]=4,n[e];Nl&&(o[e]=0)}}const c=ko[e];let d,h;if(c)return e==="$attrs"&&Tt(t,"get",e),c(t);if((d=a.__cssModules)&&(d=d[e]))return d;if(n!==$e&&Oe(n,e))return o[e]=4,n[e];if(h=l.config.globalProperties,Oe(h,e))return h[e]},set({_:t},e,n){const{data:r,setupState:i,ctx:s}=t;if(i!==$e&&Oe(i,e))i[e]=n;else if(r!==$e&&Oe(r,e))r[e]=n;else if(Oe(t.props,e))return!1;return e[0]==="$"&&e.slice(1)in t?!1:(s[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:i,propsOptions:s}},o){let a;return!!n[o]||t!==$e&&Oe(t,o)||e!==$e&&Oe(e,o)||(a=s[0])&&Oe(a,o)||Oe(r,o)||Oe(ko,o)||Oe(i.config.globalProperties,o)}},q_=vp();let K_=0;function Y_(t,e,n){const r=t.type,i=(e?e.appContext:t.appContext)||q_,s={uid:K_++,vnode:t,type:r,parent:e,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Dh(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:hp(r,i),emitsOptions:tp(r,i),emit:null,emitted:null,propsDefaults:$e,inheritAttrs:r.inheritAttrs,ctx:$e,data:$e,props:$e,attrs:$e,slots:$e,refs:$e,setupState:$e,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 s.ctx={_:s},s.root=e?e.root:s,s.emit=i_.bind(null,s),t.ce&&t.ce(s),s}let Ze=null;const ia=()=>Ze||Et,pi=t=>{Ze=t,t.scope.on()},Tr=()=>{Ze&&Ze.scope.off(),Ze=null};function Tp(t){return t.vnode.shapeFlag&4}let ws=!1;function z_(t,e=!1){ws=e;const{props:n,children:r}=t.vnode,i=Tp(t);O_(t,n,i,e),P_(t,r);const s=i?G_(t,e):void 0;return ws=!1,s}function G_(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=fi(new Proxy(t.ctx,W_));const{setup:r}=n;if(r){const i=t.setupContext=r.length>1?Sp(t):null;pi(t),Si();const s=Kn(r,t,0,[t.props,i]);if(Lr(),Tr(),Ih(s)){if(s.then(Tr,Tr),e)return s.then(o=>{zc(t,o,e)}).catch(o=>{Jo(o,t,0)});t.asyncDep=s}else zc(t,s,e)}else Cp(t,e)}function zc(t,e,n){be(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Ye(e)&&(t.setupState=zh(e)),Cp(t,n)}let Gc;function Cp(t,e,n){const r=t.type;if(!t.render){if(!e&&Gc&&!r.render){const i=r.template;if(i){const{isCustomElement:s,compilerOptions:o}=t.appContext.config,{delimiters:a,compilerOptions:l}=r,u=nt(nt({isCustomElement:s,delimiters:a},o),l);r.render=Gc(i,u)}}t.render=r.render||Ut}pi(t),Si(),T_(t),Lr(),Tr()}function X_(t){return new Proxy(t.attrs,{get(e,n){return Tt(t,"get","$attrs"),e[n]}})}function Sp(t){const e=r=>{t.exposed=r||{}};let n;return{get attrs(){return n||(n=X_(t))},slots:t.slots,emit:t.emit,expose:e}}function Uu(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(zh(fi(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in ko)return ko[n](t)}}))}function J_(t){return be(t)&&t.displayName||t.name}function Q_(t){return be(t)&&"__vccOpts"in t}const te=(t,e)=>Qv(t,e,ws);function Ps(){return Z_().slots}function Z_(){const t=ia();return t.setupContext||(t.setupContext=Sp(t))}function Hu(t,e,n){const r=arguments.length;return r===2?Ye(e)&&!le(e)?Oo(e)?qe(t,null,[e]):qe(t,e):qe(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Oo(n)&&(n=[n]),qe(t,e,n))}const ey="3.2.29",ty="http://www.w3.org/2000/svg",mr=typeof document!="undefined"?document:null,Xc=mr&&mr.createElement("template"),ny={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 i=e?mr.createElementNS(ty,t):mr.createElement(t,n?{is:n}:void 0);return t==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:t=>mr.createTextNode(t),createComment:t=>mr.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>mr.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},cloneNode(t){const e=t.cloneNode(!0);return"_value"in t&&(e._value=t._value),e},insertStaticContent(t,e,n,r,i,s){const o=n?n.previousSibling:e.lastChild;if(i&&(i===s||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),n),!(i===s||!(i=i.nextSibling)););else{Xc.innerHTML=r?`<svg>${t}</svg>`:t;const a=Xc.content;if(r){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}};function ry(t,e,n){const r=t._vtc;r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}function iy(t,e,n){const r=t.style,i=Xe(n);if(n&&!i){for(const s in n)Ul(r,s,n[s]);if(e&&!Xe(e))for(const s in e)n[s]==null&&Ul(r,s,"")}else{const s=r.display;i?e!==n&&(r.cssText=n):e&&t.removeAttribute("style"),"_vod"in t&&(r.display=s)}}const Jc=/\s*!important$/;function Ul(t,e,n){if(le(n))n.forEach(r=>Ul(t,e,r));else if(e.startsWith("--"))t.setProperty(e,n);else{const r=sy(t,e);Jc.test(n)?t.setProperty(Rr(r),n.replace(Jc,""),"important"):t[r]=n}}const Qc=["Webkit","Moz","ms"],$a={};function sy(t,e){const n=$a[e];if(n)return n;let r=dn(e);if(r!=="filter"&&r in t)return $a[e]=r;r=Go(r);for(let i=0;i<Qc.length;i++){const s=Qc[i]+r;if(s in t)return $a[e]=s}return e}const Zc="http://www.w3.org/1999/xlink";function oy(t,e,n,r,i){if(r&&e.startsWith("xlink:"))n==null?t.removeAttributeNS(Zc,e.slice(6,e.length)):t.setAttributeNS(Zc,e,n);else{const s=iv(e);n==null||s&&!Sh(n)?t.removeAttribute(e):t.setAttribute(e,s?"":n)}}function ay(t,e,n,r,i,s,o){if(e==="innerHTML"||e==="textContent"){r&&o(r,i,s),t[e]=n==null?"":n;return}if(e==="value"&&t.tagName!=="PROGRESS"&&!t.tagName.includes("-")){t._value=n;const a=n==null?"":n;(t.value!==a||t.tagName==="OPTION")&&(t.value=a),n==null&&t.removeAttribute(e);return}if(n===""||n==null){const a=typeof t[e];if(a==="boolean"){t[e]=Sh(n);return}else if(n==null&&a==="string"){t[e]="",t.removeAttribute(e);return}else if(a==="number"){try{t[e]=0}catch{}t.removeAttribute(e);return}}try{t[e]=n}catch{}}let Do=Date.now,Ap=!1;if(typeof window!="undefined"){Do()>document.createEvent("Event").timeStamp&&(Do=()=>performance.now());const t=navigator.userAgent.match(/firefox\/(\d+)/i);Ap=!!(t&&Number(t[1])<=53)}let Hl=0;const ly=Promise.resolve(),uy=()=>{Hl=0},cy=()=>Hl||(ly.then(uy),Hl=Do());function Un(t,e,n,r){t.addEventListener(e,n,r)}function dy(t,e,n,r){t.removeEventListener(e,n,r)}function fy(t,e,n,r,i=null){const s=t._vei||(t._vei={}),o=s[e];if(r&&o)o.value=r;else{const[a,l]=hy(e);if(r){const u=s[e]=py(r,i);Un(t,a,u,l)}else o&&(dy(t,a,o,l),s[e]=void 0)}}const ed=/(?:Once|Passive|Capture)$/;function hy(t){let e;if(ed.test(t)){e={};let n;for(;n=t.match(ed);)t=t.slice(0,t.length-n[0].length),e[n[0].toLowerCase()]=!0}return[Rr(t.slice(2)),e]}function py(t,e){const n=r=>{const i=r.timeStamp||Do();(Ap||i>=n.attached-1)&&Dt(my(r,n.value),e,5,[r])};return n.value=t,n.attached=cy(),n}function my(t,e){if(le(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>i=>!i._stopped&&r&&r(i))}else return e}const td=/^on[a-z]/,gy=(t,e,n,r,i=!1,s,o,a,l)=>{e==="class"?ry(t,r,i):e==="style"?iy(t,n,r):Ko(e)?yu(e)||fy(t,e,n,r,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):vy(t,e,r,i))?ay(t,e,r,s,o,a,l):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),oy(t,e,r,i))};function vy(t,e,n,r){return r?!!(e==="innerHTML"||e==="textContent"||e in t&&td.test(e)&&be(n)):e==="spellcheck"||e==="draggable"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||td.test(e)&&Xe(n)?!1:e in t}const In="transition",$i="animation",ln=(t,{slots:e})=>Hu(ip,_y(t),e);ln.displayName="Transition";const Ip={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};ln.props=nt({},ip.props,Ip);const rr=(t,e=[])=>{le(t)?t.forEach(n=>n(...e)):t&&t(...e)},nd=t=>t?le(t)?t.some(e=>e.length>1):t.length>1:!1;function _y(t){const e={};for(const y in t)y in Ip||(e[y]=t[y]);if(t.css===!1)return e;const{name:n="v",type:r,duration:i,enterFromClass:s=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:u=o,appearToClass:c=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=t,E=yy(i),w=E&&E[0],T=E&&E[1],{onBeforeEnter:C,onEnter:O,onEnterCancelled:_,onLeave:x,onLeaveCancelled:W,onBeforeAppear:X=C,onAppear:m=O,onAppearCancelled:P=_}=e,R=(y,U,q)=>{Wr(y,U?c:a),Wr(y,U?u:o),q&&q()},B=(y,U)=>{Wr(y,f),Wr(y,h),U&&U()},v=y=>(U,q)=>{const re=y?m:O,Z=()=>R(U,y,q);rr(re,[U,Z]),rd(()=>{Wr(U,y?l:s),On(U,y?c:a),nd(re)||id(U,r,w,Z)})};return nt(e,{onBeforeEnter(y){rr(C,[y]),On(y,s),On(y,o)},onBeforeAppear(y){rr(X,[y]),On(y,l),On(y,u)},onEnter:v(!1),onAppear:v(!0),onLeave(y,U){const q=()=>B(y,U);On(y,d),Ey(),On(y,h),rd(()=>{Wr(y,d),On(y,f),nd(x)||id(y,r,T,q)}),rr(x,[y,q])},onEnterCancelled(y){R(y,!1),rr(_,[y])},onAppearCancelled(y){R(y,!0),rr(P,[y])},onLeaveCancelled(y){B(y),rr(W,[y])}})}function yy(t){if(t==null)return null;if(Ye(t))return[Ba(t.enter),Ba(t.leave)];{const e=Ba(t);return[e,e]}}function Ba(t){return vs(t)}function On(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t._vtc||(t._vtc=new Set)).add(e)}function Wr(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.remove(r));const{_vtc:n}=t;n&&(n.delete(e),n.size||(t._vtc=void 0))}function rd(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let by=0;function id(t,e,n,r){const i=t._endId=++by,s=()=>{i===t._endId&&r()};if(n)return setTimeout(s,n);const{type:o,timeout:a,propCount:l}=wy(t,e);if(!o)return r();const u=o+"end";let c=0;const d=()=>{t.removeEventListener(u,h),s()},h=f=>{f.target===t&&++c>=l&&d()};setTimeout(()=>{c<l&&d()},a+1),t.addEventListener(u,h)}function wy(t,e){const n=window.getComputedStyle(t),r=E=>(n[E]||"").split(", "),i=r(In+"Delay"),s=r(In+"Duration"),o=sd(i,s),a=r($i+"Delay"),l=r($i+"Duration"),u=sd(a,l);let c=null,d=0,h=0;e===In?o>0&&(c=In,d=o,h=s.length):e===$i?u>0&&(c=$i,d=u,h=l.length):(d=Math.max(o,u),c=d>0?o>u?In:$i:null,h=c?c===In?s.length:l.length:0);const f=c===In&&/\b(transform|all)(,|$)/.test(n[In+"Property"]);return{type:c,timeout:d,propCount:h,hasTransform:f}}function sd(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,r)=>od(n)+od(t[r])))}function od(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function Ey(){return document.body.offsetHeight}const mi=t=>{const e=t.props["onUpdate:modelValue"];return le(e)?n=>fo(e,n):e};function Ty(t){t.target.composing=!0}function ad(t){const e=t.target;e.composing&&(e.composing=!1,Cy(e,"input"))}function Cy(t,e){const n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}const uN={created(t,{modifiers:{lazy:e,trim:n,number:r}},i){t._assign=mi(i);const s=r||i.props&&i.props.type==="number";Un(t,e?"change":"input",o=>{if(o.target.composing)return;let a=t.value;n?a=a.trim():s&&(a=vs(a)),t._assign(a)}),n&&Un(t,"change",()=>{t.value=t.value.trim()}),e||(Un(t,"compositionstart",Ty),Un(t,"compositionend",ad),Un(t,"change",ad))},mounted(t,{value:e}){t.value=e==null?"":e},beforeUpdate(t,{value:e,modifiers:{lazy:n,trim:r,number:i}},s){if(t._assign=mi(s),t.composing||document.activeElement===t&&(n||r&&t.value.trim()===e||(i||t.type==="number")&&vs(t.value)===e))return;const o=e==null?"":e;t.value!==o&&(t.value=o)}},cN={deep:!0,created(t,e,n){t._assign=mi(n),Un(t,"change",()=>{const r=t._modelValue,i=Es(t),s=t.checked,o=t._assign;if(le(r)){const a=_u(r,i),l=a!==-1;if(s&&!l)o(r.concat(i));else if(!s&&l){const u=[...r];u.splice(a,1),o(u)}}else if(Ci(r)){const a=new Set(r);s?a.add(i):a.delete(i),o(a)}else o(Op(t,s))})},mounted:ld,beforeUpdate(t,e,n){t._assign=mi(n),ld(t,e,n)}};function ld(t,{value:e,oldValue:n},r){t._modelValue=e,le(e)?t.checked=_u(e,r.props.value)>-1:Ci(e)?t.checked=e.has(r.props.value):e!==n&&(t.checked=Ds(e,Op(t,!0)))}const dN={deep:!0,created(t,{value:e,modifiers:{number:n}},r){const i=Ci(e);Un(t,"change",()=>{const s=Array.prototype.filter.call(t.options,o=>o.selected).map(o=>n?vs(Es(o)):Es(o));t._assign(t.multiple?i?new Set(s):s:s[0])}),t._assign=mi(r)},mounted(t,{value:e}){ud(t,e)},beforeUpdate(t,e,n){t._assign=mi(n)},updated(t,{value:e}){ud(t,e)}};function ud(t,e){const n=t.multiple;if(!(n&&!le(e)&&!Ci(e))){for(let r=0,i=t.options.length;r<i;r++){const s=t.options[r],o=Es(s);if(n)le(e)?s.selected=_u(e,o)>-1:s.selected=e.has(o);else if(Ds(Es(s),e)){t.selectedIndex!==r&&(t.selectedIndex=r);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function Es(t){return"_value"in t?t._value:t.value}function Op(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const Sy=["ctrl","shift","alt","meta"],Ay={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>Sy.some(n=>t[`${n}Key`]&&!e.includes(n))},Fl=(t,e)=>(n,...r)=>{for(let i=0;i<e.length;i++){const s=Ay[e[i]];if(s&&s(n,e))return}return t(n,...r)},Iy={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Pe=(t,e)=>n=>{if(!("key"in n))return;const r=Rr(n.key);if(e.some(i=>i===r||Iy[i]===r))return t(n)},fN={beforeMount(t,{value:e},{transition:n}){t._vod=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):Bi(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:r}){!e!=!n&&(r?e?(r.beforeEnter(t),Bi(t,!0),r.enter(t)):r.leave(t,()=>{Bi(t,!1)}):Bi(t,e))},beforeUnmount(t,{value:e}){Bi(t,e)}};function Bi(t,e){t.style.display=e?t._vod:"none"}const Oy=nt({patchProp:gy},ny);let cd;function ky(){return cd||(cd=R_(Oy))}const hN=(...t)=>{const e=ky().createApp(...t),{mount:n}=e;return e.mount=r=>{const i=Dy(r);if(!i)return;const s=e._component;!be(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.innerHTML="";const o=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},e};function Dy(t){return Xe(t)?document.querySelector(t):t}const Ii=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),kp="SweetAlert2:",Py=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},Dp=t=>t.charAt(0).toUpperCase()+t.slice(1),Nt=t=>Array.prototype.slice.call(t),gt=t=>{console.warn(`${kp} ${typeof t=="object"?t.join(" "):t}`)},Oi=t=>{console.error(`${kp} ${t}`)},dd=[],Ny=t=>{dd.includes(t)||(dd.push(t),gt(t))},My=(t,e)=>{Ny(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},Fu=t=>typeof t=="function"?t():t,Vu=t=>t&&typeof t.toPromise=="function",Ns=t=>Vu(t)?t.toPromise():Promise.resolve(t),ju=t=>t&&Promise.resolve(t)===t,xy=t=>typeof t=="object"&&t.jquery,fd=t=>t instanceof Element||xy(t),Ry=t=>{const e={};return typeof t[0]=="object"&&!fd(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,r)=>{const i=t[r];typeof i=="string"||fd(i)?e[n]=i:i!==void 0&&Oi(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof i}`)}),e},Ly="swal2-",Pp=t=>{const e={};for(const n in t)e[t[n]]=Ly+t[n];return e},k=Pp(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),is=Pp(["success","warning","info","question","error"]),lt=()=>document.body.querySelector(`.${k.container}`),Ms=t=>{const e=lt();return e?e.querySelector(t):null},Mt=t=>Ms(`.${t}`),Me=()=>Mt(k.popup),xs=()=>Mt(k.icon),Np=()=>Mt(k.title),Po=()=>Mt(k["html-container"]),Mp=()=>Mt(k.image),xp=()=>Mt(k["progress-steps"]),sa=()=>Mt(k["validation-message"]),Vt=()=>Ms(`.${k.actions} .${k.confirm}`),Gn=()=>Ms(`.${k.actions} .${k.deny}`),$y=()=>Mt(k["input-label"]),ki=()=>Ms(`.${k.loader}`),kr=()=>Ms(`.${k.actions} .${k.cancel}`),oa=()=>Mt(k.actions),Rp=()=>Mt(k.footer),aa=()=>Mt(k["timer-progress-bar"]),Wu=()=>Mt(k.close),By=`
|
|
a[href],
|
|
area[href],
|
|
input:not([disabled]),
|
|
select:not([disabled]),
|
|
textarea:not([disabled]),
|
|
button:not([disabled]),
|
|
iframe,
|
|
object,
|
|
embed,
|
|
[tabindex="0"],
|
|
[contenteditable],
|
|
audio[controls],
|
|
video[controls],
|
|
summary
|
|
`,qu=()=>{const t=Nt(Me().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((n,r)=>(n=parseInt(n.getAttribute("tabindex")),r=parseInt(r.getAttribute("tabindex")),n>r?1:n<r?-1:0)),e=Nt(Me().querySelectorAll(By)).filter(n=>n.getAttribute("tabindex")!=="-1");return Py(t.concat(e)).filter(n=>Pt(n))},Ku=()=>!Xn(document.body,k["toast-shown"])&&!Xn(document.body,k["no-backdrop"]),la=()=>Me()&&Xn(Me(),k.toast),Uy=()=>Me().hasAttribute("data-loading"),si={previousBodyPadding:null},ot=(t,e)=>{if(t.textContent="",e){const r=new DOMParser().parseFromString(e,"text/html");Nt(r.querySelector("head").childNodes).forEach(i=>{t.appendChild(i)}),Nt(r.querySelector("body").childNodes).forEach(i=>{t.appendChild(i)})}},Xn=(t,e)=>{if(!e)return!1;const n=e.split(/\s+/);for(let r=0;r<n.length;r++)if(!t.classList.contains(n[r]))return!1;return!0},Hy=(t,e)=>{Nt(t.classList).forEach(n=>{!Object.values(k).includes(n)&&!Object.values(is).includes(n)&&!Object.values(e.showClass).includes(n)&&t.classList.remove(n)})},jt=(t,e,n)=>{if(Hy(t,e),e.customClass&&e.customClass[n]){if(typeof e.customClass[n]!="string"&&!e.customClass[n].forEach)return gt(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof e.customClass[n]}"`);Ae(t,e.customClass[n])}},Yu=(t,e)=>{if(!e)return null;switch(e){case"select":case"textarea":case"file":return sn(t,k[e]);case"checkbox":return t.querySelector(`.${k.checkbox} input`);case"radio":return t.querySelector(`.${k.radio} input:checked`)||t.querySelector(`.${k.radio} input:first-child`);case"range":return t.querySelector(`.${k.range} input`);default:return sn(t,k.input)}},Lp=t=>{if(t.focus(),t.type!=="file"){const e=t.value;t.value="",t.value=e}},$p=(t,e,n)=>{!t||!e||(typeof e=="string"&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(r=>{t.forEach?t.forEach(i=>{n?i.classList.add(r):i.classList.remove(r)}):n?t.classList.add(r):t.classList.remove(r)}))},Ae=(t,e)=>{$p(t,e,!0)},fn=(t,e)=>{$p(t,e,!1)},sn=(t,e)=>{for(let n=0;n<t.childNodes.length;n++)if(Xn(t.childNodes[n],e))return t.childNodes[n]},ss=(t,e,n)=>{n===`${parseInt(n)}`&&(n=parseInt(n)),n||parseInt(n)===0?t.style[e]=typeof n=="number"?`${n}px`:n:t.style.removeProperty(e)},rt=(t,e="flex")=>{t.style.display=e},ut=t=>{t.style.display="none"},hd=(t,e,n,r)=>{const i=t.querySelector(e);i&&(i.style[n]=r)},ua=(t,e,n)=>{e?rt(t,n):ut(t)},Pt=t=>!!(t&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),Fy=()=>!Pt(Vt())&&!Pt(Gn())&&!Pt(kr()),pd=t=>t.scrollHeight>t.clientHeight,Bp=t=>{const e=window.getComputedStyle(t),n=parseFloat(e.getPropertyValue("animation-duration")||"0"),r=parseFloat(e.getPropertyValue("transition-duration")||"0");return n>0||r>0},zu=(t,e=!1)=>{const n=aa();Pt(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${t/1e3}s linear`,n.style.width="0%"},10))},Vy=()=>{const t=aa(),e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";const n=parseInt(window.getComputedStyle(t).width),r=parseInt(e/n*100);t.style.removeProperty("transition"),t.style.width=`${r}%`},Up=()=>typeof window=="undefined"||typeof document=="undefined",jy=`
|
|
<div aria-labelledby="${k.title}" aria-describedby="${k["html-container"]}" class="${k.popup}" tabindex="-1">
|
|
<button type="button" class="${k.close}"></button>
|
|
<ul class="${k["progress-steps"]}"></ul>
|
|
<div class="${k.icon}"></div>
|
|
<img class="${k.image}" />
|
|
<h2 class="${k.title}" id="${k.title}"></h2>
|
|
<div class="${k["html-container"]}" id="${k["html-container"]}"></div>
|
|
<input class="${k.input}" />
|
|
<input type="file" class="${k.file}" />
|
|
<div class="${k.range}">
|
|
<input type="range" />
|
|
<output></output>
|
|
</div>
|
|
<select class="${k.select}"></select>
|
|
<div class="${k.radio}"></div>
|
|
<label for="${k.checkbox}" class="${k.checkbox}">
|
|
<input type="checkbox" />
|
|
<span class="${k.label}"></span>
|
|
</label>
|
|
<textarea class="${k.textarea}"></textarea>
|
|
<div class="${k["validation-message"]}" id="${k["validation-message"]}"></div>
|
|
<div class="${k.actions}">
|
|
<div class="${k.loader}"></div>
|
|
<button type="button" class="${k.confirm}"></button>
|
|
<button type="button" class="${k.deny}"></button>
|
|
<button type="button" class="${k.cancel}"></button>
|
|
</div>
|
|
<div class="${k.footer}"></div>
|
|
<div class="${k["timer-progress-bar-container"]}">
|
|
<div class="${k["timer-progress-bar"]}"></div>
|
|
</div>
|
|
</div>
|
|
`.replace(/(^|\n)\s*/g,""),Wy=()=>{const t=lt();return t?(t.remove(),fn([document.documentElement,document.body],[k["no-backdrop"],k["toast-shown"],k["has-column"]]),!0):!1},ir=()=>{vi.isVisible()&&vi.resetValidationMessage()},qy=()=>{const t=Me(),e=sn(t,k.input),n=sn(t,k.file),r=t.querySelector(`.${k.range} input`),i=t.querySelector(`.${k.range} output`),s=sn(t,k.select),o=t.querySelector(`.${k.checkbox} input`),a=sn(t,k.textarea);e.oninput=ir,n.onchange=ir,s.onchange=ir,o.onchange=ir,a.oninput=ir,r.oninput=()=>{ir(),i.value=r.value},r.onchange=()=>{ir(),r.nextSibling.value=r.value}},Ky=t=>typeof t=="string"?document.querySelector(t):t,Yy=t=>{const e=Me();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},zy=t=>{window.getComputedStyle(t).direction==="rtl"&&Ae(lt(),k.rtl)},Gy=t=>{const e=Wy();if(Up()){Oi("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=k.container,e&&Ae(n,k["no-transition"]),ot(n,jy);const r=Ky(t.target);r.appendChild(n),Yy(t),zy(r),qy()},Gu=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):typeof t=="object"?Xy(t,e):t&&ot(e,t)},Xy=(t,e)=>{t.jquery?Jy(e,t):ot(e,t.toString())},Jy=(t,e)=>{if(t.textContent="",0 in e)for(let n=0;n in e;n++)t.appendChild(e[n].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},Ts=(()=>{if(Up())return!1;const t=document.createElement("div"),e={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&typeof t.style[n]!="undefined")return e[n];return!1})(),Qy=()=>{const t=document.createElement("div");t.className=k["scrollbar-measure"],document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},Zy=(t,e)=>{const n=oa(),r=ki();!e.showConfirmButton&&!e.showDenyButton&&!e.showCancelButton?ut(n):rt(n),jt(n,e,"actions"),eb(n,r,e),ot(r,e.loaderHtml),jt(r,e,"loader")};function eb(t,e,n){const r=Vt(),i=Gn(),s=kr();Ua(r,"confirm",n),Ua(i,"deny",n),Ua(s,"cancel",n),tb(r,i,s,n),n.reverseButtons&&(n.toast?(t.insertBefore(s,r),t.insertBefore(i,r)):(t.insertBefore(s,e),t.insertBefore(i,e),t.insertBefore(r,e)))}function tb(t,e,n,r){if(!r.buttonsStyling)return fn([t,e,n],k.styled);Ae([t,e,n],k.styled),r.confirmButtonColor&&(t.style.backgroundColor=r.confirmButtonColor,Ae(t,k["default-outline"])),r.denyButtonColor&&(e.style.backgroundColor=r.denyButtonColor,Ae(e,k["default-outline"])),r.cancelButtonColor&&(n.style.backgroundColor=r.cancelButtonColor,Ae(n,k["default-outline"]))}function Ua(t,e,n){ua(t,n[`show${Dp(e)}Button`],"inline-block"),ot(t,n[`${e}ButtonText`]),t.setAttribute("aria-label",n[`${e}ButtonAriaLabel`]),t.className=k[e],jt(t,n,`${e}Button`),Ae(t,n[`${e}ButtonClass`])}function nb(t,e){typeof e=="string"?t.style.background=e:e||Ae([document.documentElement,document.body],k["no-backdrop"])}function rb(t,e){e in k?Ae(t,k[e]):(gt('The "position" parameter is not valid, defaulting to "center"'),Ae(t,k.center))}function ib(t,e){if(e&&typeof e=="string"){const n=`grow-${e}`;n in k&&Ae(t,k[n])}}const sb=(t,e)=>{const n=lt();!n||(nb(n,e.backdrop),rb(n,e.position),ib(n,e.grow),jt(n,e,"container"))};var we={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const ob=["input","file","range","select","radio","checkbox","textarea"],ab=(t,e)=>{const n=Me(),r=we.innerParams.get(t),i=!r||e.input!==r.input;ob.forEach(s=>{const o=k[s],a=sn(n,o);cb(s,e.inputAttributes),a.className=o,i&&ut(a)}),e.input&&(i&&lb(e),db(e))},lb=t=>{if(!ht[t.input])return Oi(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${t.input}"`);const e=Hp(t.input),n=ht[t.input](e,t);rt(n),setTimeout(()=>{Lp(n)})},ub=t=>{for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;["type","value","style"].includes(n)||t.removeAttribute(n)}},cb=(t,e)=>{const n=Yu(Me(),t);if(!!n){ub(n);for(const r in e)n.setAttribute(r,e[r])}},db=t=>{const e=Hp(t.input);t.customClass&&Ae(e,t.customClass.input)},Xu=(t,e)=>{(!t.placeholder||e.inputPlaceholder)&&(t.placeholder=e.inputPlaceholder)},Rs=(t,e,n)=>{if(n.inputLabel){t.id=k.input;const r=document.createElement("label"),i=k["input-label"];r.setAttribute("for",t.id),r.className=i,Ae(r,n.customClass.inputLabel),r.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",r)}},Hp=t=>{const e=k[t]?k[t]:k.input;return sn(Me(),e)},ht={};ht.text=ht.email=ht.password=ht.number=ht.tel=ht.url=(t,e)=>(typeof e.inputValue=="string"||typeof e.inputValue=="number"?t.value=e.inputValue:ju(e.inputValue)||gt(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e.inputValue}"`),Rs(t,t,e),Xu(t,e),t.type=e.input,t);ht.file=(t,e)=>(Rs(t,t,e),Xu(t,e),t);ht.range=(t,e)=>{const n=t.querySelector("input"),r=t.querySelector("output");return n.value=e.inputValue,n.type=e.input,r.value=e.inputValue,Rs(n,t,e),t};ht.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const n=document.createElement("option");ot(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return Rs(t,t,e),t};ht.radio=t=>(t.textContent="",t);ht.checkbox=(t,e)=>{const n=Yu(Me(),"checkbox");n.value=1,n.id=k.checkbox,n.checked=Boolean(e.inputValue);const r=t.querySelector("span");return ot(r,e.inputPlaceholder),t};ht.textarea=(t,e)=>{t.value=e.inputValue,Xu(t,e),Rs(t,t,e);const n=r=>parseInt(window.getComputedStyle(r).marginLeft)+parseInt(window.getComputedStyle(r).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const r=parseInt(window.getComputedStyle(Me()).width),i=()=>{const s=t.offsetWidth+n(t);s>r?Me().style.width=`${s}px`:Me().style.width=null};new MutationObserver(i).observe(t,{attributes:!0,attributeFilter:["style"]})}}),t};const fb=(t,e)=>{const n=Po();jt(n,e,"htmlContainer"),e.html?(Gu(e.html,n),rt(n,"block")):e.text?(n.textContent=e.text,rt(n,"block")):ut(n),ab(t,e)},hb=(t,e)=>{const n=Rp();ua(n,e.footer),e.footer&&Gu(e.footer,n),jt(n,e,"footer")},pb=(t,e)=>{const n=Wu();ot(n,e.closeButtonHtml),jt(n,e,"closeButton"),ua(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel)},mb=(t,e)=>{const n=we.innerParams.get(t),r=xs();if(n&&e.icon===n.icon){gd(r,e),md(r,e);return}if(!e.icon&&!e.iconHtml)return ut(r);if(e.icon&&Object.keys(is).indexOf(e.icon)===-1)return Oi(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),ut(r);rt(r),gd(r,e),md(r,e),Ae(r,e.showClass.icon)},md=(t,e)=>{for(const n in is)e.icon!==n&&fn(t,is[n]);Ae(t,is[e.icon]),vb(t,e),gb(),jt(t,e,"icon")},gb=()=>{const t=Me(),e=window.getComputedStyle(t).getPropertyValue("background-color"),n=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let r=0;r<n.length;r++)n[r].style.backgroundColor=e},gd=(t,e)=>{t.textContent="",e.iconHtml?ot(t,vd(e.iconHtml)):e.icon==="success"?ot(t,`
|
|
<div class="swal2-success-circular-line-left"></div>
|
|
<span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
|
|
<div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
|
|
<div class="swal2-success-circular-line-right"></div>
|
|
`):e.icon==="error"?ot(t,`
|
|
<span class="swal2-x-mark">
|
|
<span class="swal2-x-mark-line-left"></span>
|
|
<span class="swal2-x-mark-line-right"></span>
|
|
</span>
|
|
`):ot(t,vd({question:"?",warning:"!",info:"i"}[e.icon]))},vb=(t,e)=>{if(!!e.iconColor){t.style.color=e.iconColor,t.style.borderColor=e.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])hd(t,n,"backgroundColor",e.iconColor);hd(t,".swal2-success-ring","borderColor",e.iconColor)}},vd=t=>`<div class="${k["icon-content"]}">${t}</div>`,_b=(t,e)=>{const n=Mp();if(!e.imageUrl)return ut(n);rt(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt),ss(n,"width",e.imageWidth),ss(n,"height",e.imageHeight),n.className=k.image,jt(n,e,"image")},yb=t=>{const e=document.createElement("li");return Ae(e,k["progress-step"]),ot(e,t),e},bb=t=>{const e=document.createElement("li");return Ae(e,k["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e},wb=(t,e)=>{const n=xp();if(!e.progressSteps||e.progressSteps.length===0)return ut(n);rt(n),n.textContent="",e.currentProgressStep>=e.progressSteps.length&>("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((r,i)=>{const s=yb(r);if(n.appendChild(s),i===e.currentProgressStep&&Ae(s,k["active-progress-step"]),i!==e.progressSteps.length-1){const o=bb(e);n.appendChild(o)}})},Eb=(t,e)=>{const n=Np();ua(n,e.title||e.titleText,"block"),e.title&&Gu(e.title,n),e.titleText&&(n.innerText=e.titleText),jt(n,e,"title")},Tb=(t,e)=>{const n=lt(),r=Me();e.toast?(ss(n,"width",e.width),r.style.width="100%",r.insertBefore(ki(),xs())):ss(r,"width",e.width),ss(r,"padding",e.padding),e.color&&(r.style.color=e.color),e.background&&(r.style.background=e.background),ut(sa()),Cb(r,e)},Cb=(t,e)=>{t.className=`${k.popup} ${Pt(t)?e.showClass.popup:""}`,e.toast?(Ae([document.documentElement,document.body],k["toast-shown"]),Ae(t,k.toast)):Ae(t,k.modal),jt(t,e,"popup"),typeof e.customClass=="string"&&Ae(t,e.customClass),e.icon&&Ae(t,k[`icon-${e.icon}`])},Fp=(t,e)=>{Tb(t,e),sb(t,e),wb(t,e),mb(t,e),_b(t,e),Eb(t,e),pb(t,e),fb(t,e),Zy(t,e),hb(t,e),typeof e.didRender=="function"&&e.didRender(Me())},Sb=()=>Pt(Me()),Vp=()=>Vt()&&Vt().click(),Ab=()=>Gn()&&Gn().click(),Ib=()=>kr()&&kr().click();function Ob(...t){const e=this;return new e(...t)}function kb(t){class e extends this{_main(r,i){return super._main(r,Object.assign({},t,i))}}return e}const gi=t=>{let e=Me();e||vi.fire(),e=Me();const n=ki();la()?ut(xs()):Db(e,t),rt(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},Db=(t,e)=>{const n=oa(),r=ki();!e&&Pt(Vt())&&(e=Vt()),rt(n),e&&(ut(e),r.setAttribute("data-button-to-replace",e.className)),r.parentNode.insertBefore(r,e),Ae([t,n],k.loading)},Pb=100,ve={},Nb=()=>{ve.previousActiveElement&&ve.previousActiveElement.focus?(ve.previousActiveElement.focus(),ve.previousActiveElement=null):document.body&&document.body.focus()},Mb=t=>new Promise(e=>{if(!t)return e();const n=window.scrollX,r=window.scrollY;ve.restoreFocusTimeout=setTimeout(()=>{Nb(),e()},Pb),window.scrollTo(n,r)}),xb=()=>ve.timeout&&ve.timeout.getTimerLeft(),jp=()=>{if(ve.timeout)return Vy(),ve.timeout.stop()},Wp=()=>{if(ve.timeout){const t=ve.timeout.start();return zu(t),t}},Rb=()=>{const t=ve.timeout;return t&&(t.running?jp():Wp())},Lb=t=>{if(ve.timeout){const e=ve.timeout.increase(t);return zu(e,!0),e}},$b=()=>ve.timeout&&ve.timeout.isRunning();let _d=!1;const Vl={};function Bb(t="data-swal-template"){Vl[t]=this,_d||(document.body.addEventListener("click",Ub),_d=!0)}const Ub=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in Vl){const r=e.getAttribute(n);if(r){Vl[n].fire({template:r});return}}},oi={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},Hb=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],Fb={},Vb=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],qp=t=>Object.prototype.hasOwnProperty.call(oi,t),jb=t=>Hb.indexOf(t)!==-1,jl=t=>Fb[t],Wb=t=>{qp(t)||gt(`Unknown parameter "${t}"`)},qb=t=>{Vb.includes(t)&>(`The parameter "${t}" is incompatible with toasts`)},Kb=t=>{jl(t)&&My(t,jl(t))},Yb=t=>{!t.backdrop&&t.allowOutsideClick&>('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)Wb(e),t.toast&&qb(e),Kb(e)};var zb=Object.freeze(Object.defineProperty({__proto__:null,isValidParameter:qp,isUpdatableParameter:jb,isDeprecatedParameter:jl,argsToParams:Ry,getContainer:lt,getPopup:Me,getTitle:Np,getHtmlContainer:Po,getImage:Mp,getIcon:xs,getInputLabel:$y,getCloseButton:Wu,getActions:oa,getConfirmButton:Vt,getDenyButton:Gn,getCancelButton:kr,getLoader:ki,getFooter:Rp,getTimerProgressBar:aa,getFocusableElements:qu,getValidationMessage:sa,isLoading:Uy,isVisible:Sb,clickConfirm:Vp,clickDeny:Ab,clickCancel:Ib,fire:Ob,mixin:kb,showLoading:gi,enableLoading:gi,getTimerLeft:xb,stopTimer:jp,resumeTimer:Wp,toggleTimer:Rb,increaseTimer:Lb,isTimerRunning:$b,bindClickHandler:Bb},Symbol.toStringTag,{value:"Module"}));function yd(){const t=we.innerParams.get(this);if(!t)return;const e=we.domCache.get(this);ut(e.loader),la()?t.icon&&rt(xs()):Gb(e),fn([e.popup,e.actions],k.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const Gb=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?rt(e[0],"inline-block"):Fy()&&ut(t.actions)};function Xb(t){const e=we.innerParams.get(t||this),n=we.domCache.get(t||this);return n?Yu(n.popup,e.input):null}const Jb=()=>{si.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(si.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${si.previousBodyPadding+Qy()}px`)},Qb=()=>{si.previousBodyPadding!==null&&(document.body.style.paddingRight=`${si.previousBodyPadding}px`,si.previousBodyPadding=null)},Zb=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!Xn(document.body,k.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,Ae(document.body,k.iosfix),tw(),ew()}},ew=()=>{!navigator.userAgent.match(/(CriOS|FxiOS|EdgiOS|YaBrowser|UCBrowser)/i)&&Me().scrollHeight>window.innerHeight-44&&(lt().style.paddingBottom=`${44}px`)},tw=()=>{const t=lt();let e;t.ontouchstart=n=>{e=nw(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},nw=t=>{const e=t.target,n=lt();return rw(t)||iw(t)?!1:e===n||!pd(n)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(pd(Po())&&Po().contains(e))},rw=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",iw=t=>t.touches&&t.touches.length>1,sw=()=>{if(Xn(document.body,k.iosfix)){const t=parseInt(document.body.style.top,10);fn(document.body,k.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},ow=()=>{Nt(document.body.children).forEach(e=>{e===lt()||e.contains(lt())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))})},Kp=()=>{Nt(document.body.children).forEach(e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})};var Cs={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};function Yp(t,e,n,r){la()?bd(t,r):(Mb(n).then(()=>bd(t,r)),ve.keydownTarget.removeEventListener("keydown",ve.keydownHandler,{capture:ve.keydownListenerCapture}),ve.keydownHandlerAdded=!1),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),Ku()&&(Qb(),sw(),Kp()),aw()}function aw(){fn([document.documentElement,document.body],[k.shown,k["height-auto"],k["no-backdrop"],k["toast-shown"]])}function to(t){t=dw(t);const e=Cs.swalPromiseResolve.get(this),n=uw(this);this.isAwaitingPromise()?t.isDismissed||(zp(this),e(t)):n&&e(t)}function lw(){return!!we.awaitingPromise.get(this)}const uw=t=>{const e=Me();if(!e)return!1;const n=we.innerParams.get(t);if(!n||Xn(e,n.hideClass.popup))return!1;fn(e,n.showClass.popup),Ae(e,n.hideClass.popup);const r=lt();return fn(r,n.showClass.backdrop),Ae(r,n.hideClass.backdrop),fw(t,e,n),!0};function cw(t){const e=Cs.swalPromiseReject.get(this);zp(this),e&&e(t)}const zp=t=>{t.isAwaitingPromise()&&(we.awaitingPromise.delete(t),we.innerParams.get(t)||t._destroy())},dw=t=>typeof t=="undefined"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),fw=(t,e,n)=>{const r=lt(),i=Ts&&Bp(e);typeof n.willClose=="function"&&n.willClose(e),i?hw(t,e,r,n.returnFocus,n.didClose):Yp(t,r,n.returnFocus,n.didClose)},hw=(t,e,n,r,i)=>{ve.swalCloseEventFinishedCallback=Yp.bind(null,t,n,r,i),e.addEventListener(Ts,function(s){s.target===e&&(ve.swalCloseEventFinishedCallback(),delete ve.swalCloseEventFinishedCallback)})},bd=(t,e)=>{setTimeout(()=>{typeof e=="function"&&e.bind(t.params)(),t._destroy()})};function Gp(t,e,n){const r=we.domCache.get(t);e.forEach(i=>{r[i].disabled=n})}function Xp(t,e){if(!t)return!1;if(t.type==="radio"){const r=t.parentNode.parentNode.querySelectorAll("input");for(let i=0;i<r.length;i++)r[i].disabled=e}else t.disabled=e}function pw(){Gp(this,["confirmButton","denyButton","cancelButton"],!1)}function mw(){Gp(this,["confirmButton","denyButton","cancelButton"],!0)}function gw(){return Xp(this.getInput(),!1)}function vw(){return Xp(this.getInput(),!0)}function _w(t){const e=we.domCache.get(this),n=we.innerParams.get(this);ot(e.validationMessage,t),e.validationMessage.className=k["validation-message"],n.customClass&&n.customClass.validationMessage&&Ae(e.validationMessage,n.customClass.validationMessage),rt(e.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid",!0),r.setAttribute("aria-describedby",k["validation-message"]),Lp(r),Ae(r,k.inputerror))}function yw(){const t=we.domCache.get(this);t.validationMessage&&ut(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),fn(e,k.inputerror))}function bw(){return we.domCache.get(this).progressSteps}class ww{constructor(e,n){this.callback=e,this.remaining=n,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date-this.started),this.remaining}increase(e){const n=this.running;return n&&this.stop(),this.remaining+=e,n&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}var wd={email:(t,e)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid email address"),url:(t,e)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid URL")};function Ew(t){t.inputValidator||Object.keys(wd).forEach(e=>{t.input===e&&(t.inputValidator=wd[e])})}function Tw(t){(!t.target||typeof t.target=="string"&&!document.querySelector(t.target)||typeof t.target!="string"&&!t.target.appendChild)&&(gt('Target parameter is not valid, defaulting to "body"'),t.target="body")}function Cw(t){Ew(t),t.showLoaderOnConfirm&&!t.preConfirm&>(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
|
|
showLoaderOnConfirm should be used together with preConfirm, see usage example:
|
|
https://sweetalert2.github.io/#ajax-request`),Tw(t),typeof t.title=="string"&&(t.title=t.title.split(`
|
|
`).join("<br />")),Gy(t)}const Jp=["swal-title","swal-html","swal-footer"],Sw=t=>{const e=typeof t.template=="string"?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return Nw(n),Object.assign(Aw(n),Iw(n),Ow(n),kw(n),Dw(n),Pw(n,Jp))},Aw=t=>{const e={};return Nt(t.querySelectorAll("swal-param")).forEach(n=>{Dr(n,["name","value"]);const r=n.getAttribute("name");let i=n.getAttribute("value");typeof oi[r]=="boolean"&&i==="false"&&(i=!1),typeof oi[r]=="object"&&(i=JSON.parse(i)),e[r]=i}),e},Iw=t=>{const e={};return Nt(t.querySelectorAll("swal-button")).forEach(n=>{Dr(n,["type","color","aria-label"]);const r=n.getAttribute("type");e[`${r}ButtonText`]=n.innerHTML,e[`show${Dp(r)}Button`]=!0,n.hasAttribute("color")&&(e[`${r}ButtonColor`]=n.getAttribute("color")),n.hasAttribute("aria-label")&&(e[`${r}ButtonAriaLabel`]=n.getAttribute("aria-label"))}),e},Ow=t=>{const e={},n=t.querySelector("swal-image");return n&&(Dr(n,["src","width","height","alt"]),n.hasAttribute("src")&&(e.imageUrl=n.getAttribute("src")),n.hasAttribute("width")&&(e.imageWidth=n.getAttribute("width")),n.hasAttribute("height")&&(e.imageHeight=n.getAttribute("height")),n.hasAttribute("alt")&&(e.imageAlt=n.getAttribute("alt"))),e},kw=t=>{const e={},n=t.querySelector("swal-icon");return n&&(Dr(n,["type","color"]),n.hasAttribute("type")&&(e.icon=n.getAttribute("type")),n.hasAttribute("color")&&(e.iconColor=n.getAttribute("color")),e.iconHtml=n.innerHTML),e},Dw=t=>{const e={},n=t.querySelector("swal-input");n&&(Dr(n,["type","label","placeholder","value"]),e.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(e.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(e.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(e.inputValue=n.getAttribute("value")));const r=t.querySelectorAll("swal-input-option");return r.length&&(e.inputOptions={},Nt(r).forEach(i=>{Dr(i,["value"]);const s=i.getAttribute("value"),o=i.innerHTML;e.inputOptions[s]=o})),e},Pw=(t,e)=>{const n={};for(const r in e){const i=e[r],s=t.querySelector(i);s&&(Dr(s,[]),n[i.replace(/^swal-/,"")]=s.innerHTML.trim())}return n},Nw=t=>{const e=Jp.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Nt(t.children).forEach(n=>{const r=n.tagName.toLowerCase();e.indexOf(r)===-1&>(`Unrecognized element <${r}>`)})},Dr=(t,e)=>{Nt(t.attributes).forEach(n=>{e.indexOf(n.name)===-1&>([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},Qp=10,Mw=t=>{const e=lt(),n=Me();typeof t.willOpen=="function"&&t.willOpen(n);const i=window.getComputedStyle(document.body).overflowY;Lw(e,n,t),setTimeout(()=>{xw(e,n)},Qp),Ku()&&(Rw(e,t.scrollbarPadding,i),ow()),!la()&&!ve.previousActiveElement&&(ve.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),fn(e,k["no-transition"])},Zp=t=>{const e=Me();if(t.target!==e)return;const n=lt();e.removeEventListener(Ts,Zp),n.style.overflowY="auto"},xw=(t,e)=>{Ts&&Bp(e)?(t.style.overflowY="hidden",e.addEventListener(Ts,Zp)):t.style.overflowY="auto"},Rw=(t,e,n)=>{Zb(),e&&n!=="hidden"&&Jb(),setTimeout(()=>{t.scrollTop=0})},Lw=(t,e,n)=>{Ae(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),rt(e,"grid"),setTimeout(()=>{Ae(e,n.showClass.popup),e.style.removeProperty("opacity")},Qp),Ae([document.documentElement,document.body],k.shown),n.heightAuto&&n.backdrop&&!n.toast&&Ae([document.documentElement,document.body],k["height-auto"])},$w=(t,e)=>{e.input==="select"||e.input==="radio"?Vw(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(Vu(e.inputValue)||ju(e.inputValue))&&(gi(Vt()),jw(t,e))},Bw=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return Uw(n);case"radio":return Hw(n);case"file":return Fw(n);default:return e.inputAutoTrim?n.value.trim():n.value}},Uw=t=>t.checked?1:0,Hw=t=>t.checked?t.value:null,Fw=t=>t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,Vw=(t,e)=>{const n=Me(),r=i=>Ww[e.input](n,Wl(i),e);Vu(e.inputOptions)||ju(e.inputOptions)?(gi(Vt()),Ns(e.inputOptions).then(i=>{t.hideLoading(),r(i)})):typeof e.inputOptions=="object"?r(e.inputOptions):Oi(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},jw=(t,e)=>{const n=t.getInput();ut(n),Ns(e.inputValue).then(r=>{n.value=e.input==="number"?parseFloat(r)||0:`${r}`,rt(n),n.focus(),t.hideLoading()}).catch(r=>{Oi(`Error in inputValue promise: ${r}`),n.value="",rt(n),n.focus(),t.hideLoading()})},Ww={select:(t,e,n)=>{const r=sn(t,k.select),i=(s,o,a)=>{const l=document.createElement("option");l.value=a,ot(l,o),l.selected=Ed(a,n.inputValue),s.appendChild(l)};e.forEach(s=>{const o=s[0],a=s[1];if(Array.isArray(a)){const l=document.createElement("optgroup");l.label=o,l.disabled=!1,r.appendChild(l),a.forEach(u=>i(l,u[1],u[0]))}else i(r,a,o)}),r.focus()},radio:(t,e,n)=>{const r=sn(t,k.radio);e.forEach(s=>{const o=s[0],a=s[1],l=document.createElement("input"),u=document.createElement("label");l.type="radio",l.name=k.radio,l.value=o,Ed(o,n.inputValue)&&(l.checked=!0);const c=document.createElement("span");ot(c,a),c.className=k.label,u.appendChild(l),u.appendChild(c),r.appendChild(u)});const i=r.querySelectorAll("input");i.length&&i[0].focus()}},Wl=t=>{const e=[];return typeof Map!="undefined"&&t instanceof Map?t.forEach((n,r)=>{let i=n;typeof i=="object"&&(i=Wl(i)),e.push([r,i])}):Object.keys(t).forEach(n=>{let r=t[n];typeof r=="object"&&(r=Wl(r)),e.push([n,r])}),e},Ed=(t,e)=>e&&e.toString()===t.toString(),qw=t=>{const e=we.innerParams.get(t);t.disableButtons(),e.input?em(t,"confirm"):Qu(t,!0)},Kw=t=>{const e=we.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?em(t,"deny"):Ju(t,!1)},Yw=(t,e)=>{t.disableButtons(),e(Ii.cancel)},em=(t,e)=>{const n=we.innerParams.get(t),r=Bw(t,n);n.inputValidator?zw(t,r,e):t.getInput().checkValidity()?e==="deny"?Ju(t,r):Qu(t,r):(t.enableButtons(),t.showValidationMessage(n.validationMessage))},zw=(t,e,n)=>{const r=we.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>Ns(r.inputValidator(e,r.validationMessage))).then(s=>{t.enableButtons(),t.enableInput(),s?t.showValidationMessage(s):n==="deny"?Ju(t,e):Qu(t,e)})},Ju=(t,e)=>{const n=we.innerParams.get(t||globalThis);n.showLoaderOnDeny&&gi(Gn()),n.preDeny?(we.awaitingPromise.set(t||globalThis,!0),Promise.resolve().then(()=>Ns(n.preDeny(e,n.validationMessage))).then(i=>{i===!1?t.hideLoading():t.closePopup({isDenied:!0,value:typeof i=="undefined"?e:i})}).catch(i=>tm(t||globalThis,i))):t.closePopup({isDenied:!0,value:e})},Td=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},tm=(t,e)=>{t.rejectPromise(e)},Qu=(t,e)=>{const n=we.innerParams.get(t||globalThis);n.showLoaderOnConfirm&&gi(),n.preConfirm?(t.resetValidationMessage(),we.awaitingPromise.set(t||globalThis,!0),Promise.resolve().then(()=>Ns(n.preConfirm(e,n.validationMessage))).then(i=>{Pt(sa())||i===!1?t.hideLoading():Td(t,typeof i=="undefined"?e:i)}).catch(i=>tm(t||globalThis,i))):Td(t,e)},Gw=(t,e,n,r)=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1),n.toast||(e.keydownHandler=i=>Jw(t,i,r),e.keydownTarget=n.keydownListenerCapture?window:Me(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},ql=(t,e,n)=>{const r=qu();if(r.length)return e=e+n,e===r.length?e=0:e===-1&&(e=r.length-1),r[e].focus();Me().focus()},nm=["ArrowRight","ArrowDown"],Xw=["ArrowLeft","ArrowUp"],Jw=(t,e,n)=>{const r=we.innerParams.get(t);!r||(r.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?Qw(t,e,r):e.key==="Tab"?Zw(e,r):[...nm,...Xw].includes(e.key)?e0(e.key):e.key==="Escape"&&t0(e,r,n))},Qw=(t,e,n)=>{if(!e.isComposing&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;Vp(),e.preventDefault()}},Zw=(t,e)=>{const n=t.target,r=qu();let i=-1;for(let s=0;s<r.length;s++)if(n===r[s]){i=s;break}t.shiftKey?ql(e,i,-1):ql(e,i,1),t.stopPropagation(),t.preventDefault()},e0=t=>{const e=Vt(),n=Gn(),r=kr();if(![e,n,r].includes(document.activeElement))return;const i=nm.includes(t)?"nextElementSibling":"previousElementSibling",s=document.activeElement[i];s&&s.focus()},t0=(t,e,n)=>{Fu(e.allowEscapeKey)&&(t.preventDefault(),n(Ii.esc))},n0=(t,e,n)=>{we.innerParams.get(t).toast?r0(t,e,n):(i0(e),s0(e),o0(t,e,n))},r0=(t,e,n)=>{e.popup.onclick=()=>{const r=we.innerParams.get(t);r.showConfirmButton||r.showDenyButton||r.showCancelButton||r.showCloseButton||r.timer||r.input||n(Ii.close)}};let No=!1;const i0=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(No=!0)}}},s0=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(No=!0)}}},o0=(t,e,n)=>{e.container.onclick=r=>{const i=we.innerParams.get(t);if(No){No=!1;return}r.target===e.container&&Fu(i.allowOutsideClick)&&n(Ii.backdrop)}};function a0(t,e={}){Yb(Object.assign({},e,t)),ve.currentInstance&&(ve.currentInstance._destroy(),Ku()&&Kp()),ve.currentInstance=this;const n=l0(t,e);Cw(n),Object.freeze(n),ve.timeout&&(ve.timeout.stop(),delete ve.timeout),clearTimeout(ve.restoreFocusTimeout);const r=c0(this);return Fp(this,n),we.innerParams.set(this,n),u0(this,r,n)}const l0=(t,e)=>{const n=Sw(t),r=Object.assign({},oi,e,n,t);return r.showClass=Object.assign({},oi.showClass,r.showClass),r.hideClass=Object.assign({},oi.hideClass,r.hideClass),r},u0=(t,e,n)=>new Promise((r,i)=>{const s=o=>{t.closePopup({isDismissed:!0,dismiss:o})};Cs.swalPromiseResolve.set(t,r),Cs.swalPromiseReject.set(t,i),e.confirmButton.onclick=()=>qw(t),e.denyButton.onclick=()=>Kw(t),e.cancelButton.onclick=()=>Yw(t,s),e.closeButton.onclick=()=>s(Ii.close),n0(t,e,s),Gw(t,ve,n,s),$w(t,n),Mw(n),d0(ve,n,s),f0(e,n),setTimeout(()=>{e.container.scrollTop=0})}),c0=t=>{const e={popup:Me(),container:lt(),actions:oa(),confirmButton:Vt(),denyButton:Gn(),cancelButton:kr(),loader:ki(),closeButton:Wu(),validationMessage:sa(),progressSteps:xp()};return we.domCache.set(t,e),e},d0=(t,e,n)=>{const r=aa();ut(r),e.timer&&(t.timeout=new ww(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(rt(r),setTimeout(()=>{t.timeout&&t.timeout.running&&zu(e.timer)})))},f0=(t,e)=>{if(!e.toast){if(!Fu(e.allowEnterKey))return p0();h0(t,e)||ql(e,-1,1)}},h0=(t,e)=>e.focusDeny&&Pt(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&Pt(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&Pt(t.confirmButton)?(t.confirmButton.focus(),!0):!1,p0=()=>{document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};function m0(t){const e=Me(),n=we.innerParams.get(this);if(!e||Xn(e,n.hideClass.popup))return gt("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const r={};Object.keys(t).forEach(s=>{vi.isUpdatableParameter(s)?r[s]=t[s]:gt(`Invalid parameter to update: "${s}". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js
|
|
|
|
If you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md`)});const i=Object.assign({},n,r);Fp(this,i),we.innerParams.set(this,i),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}function g0(){const t=we.domCache.get(this),e=we.innerParams.get(this);if(!e){rm(this);return}t.popup&&ve.swalCloseEventFinishedCallback&&(ve.swalCloseEventFinishedCallback(),delete ve.swalCloseEventFinishedCallback),ve.deferDisposalTimer&&(clearTimeout(ve.deferDisposalTimer),delete ve.deferDisposalTimer),typeof e.didDestroy=="function"&&e.didDestroy(),v0(this)}const v0=t=>{rm(t),delete t.params,delete ve.keydownHandler,delete ve.keydownTarget,delete ve.currentInstance},rm=t=>{t.isAwaitingPromise()?(Ha(we,t),we.awaitingPromise.set(t,!0)):(Ha(Cs,t),Ha(we,t))},Ha=(t,e)=>{for(const n in t)t[n].delete(e)};var im=Object.freeze(Object.defineProperty({__proto__:null,hideLoading:yd,disableLoading:yd,getInput:Xb,close:to,isAwaitingPromise:lw,rejectPromise:cw,closePopup:to,closeModal:to,closeToast:to,enableButtons:pw,disableButtons:mw,enableInput:gw,disableInput:vw,showValidationMessage:_w,resetValidationMessage:yw,getProgressSteps:bw,_main:a0,update:m0,_destroy:g0},Symbol.toStringTag,{value:"Module"}));let Kl;class Di{constructor(...e){if(typeof window=="undefined")return;Kl=this;const n=Object.freeze(this.constructor.argsToParams(e));Object.defineProperties(this,{params:{value:n,writable:!1,enumerable:!0,configurable:!0}});const r=this._main(this.params);we.promise.set(this,r)}then(e){return we.promise.get(this).then(e)}finally(e){return we.promise.get(this).finally(e)}}Object.assign(Di.prototype,im);Object.assign(Di,zb);Object.keys(im).forEach(t=>{Di[t]=function(...e){if(Kl)return Kl[t](...e)}});Di.DismissReason=Ii;Di.version="11.3.0";const vi=Di;vi.default=vi;/*!
|
|
* vue-router v4.0.12
|
|
* (c) 2021 Eduardo San Martin Morote
|
|
* @license MIT
|
|
*/const sm=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Pi=t=>sm?Symbol(t):"_vr_"+t,_0=Pi("rvlm"),Cd=Pi("rvd"),ca=Pi("r"),Zu=Pi("rl"),Yl=Pi("rvl"),Zr=typeof window!="undefined";function y0(t){return t.__esModule||sm&&t[Symbol.toStringTag]==="Module"}const Le=Object.assign;function Fa(t,e){const n={};for(const r in e){const i=e[r];n[r]=Array.isArray(i)?i.map(t):t(i)}return n}const os=()=>{},b0=/\/$/,w0=t=>t.replace(b0,"");function Va(t,e,n="/"){let r,i={},s="",o="";const a=e.indexOf("?"),l=e.indexOf("#",a>-1?a:0);return a>-1&&(r=e.slice(0,a),s=e.slice(a+1,l>-1?l:e.length),i=t(s)),l>-1&&(r=r||e.slice(0,l),o=e.slice(l,e.length)),r=S0(r!=null?r:e,n),{fullPath:r+(s&&"?")+s+o,path:r,query:i,hash:o}}function E0(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function Sd(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function T0(t,e,n){const r=e.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&_i(e.matched[r],n.matched[i])&&om(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function _i(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function om(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!C0(t[n],e[n]))return!1;return!0}function C0(t,e){return Array.isArray(t)?Ad(t,e):Array.isArray(e)?Ad(e,t):t===e}function Ad(t,e){return Array.isArray(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t.length===1&&t[0]===e}function S0(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),r=t.split("/");let i=n.length-1,s,o;for(s=0;s<r.length;s++)if(o=r[s],!(i===1||o==="."))if(o==="..")i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(s-(s===r.length?1:0)).join("/")}var Ss;(function(t){t.pop="pop",t.push="push"})(Ss||(Ss={}));var as;(function(t){t.back="back",t.forward="forward",t.unknown=""})(as||(as={}));function A0(t){if(!t)if(Zr){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),w0(t)}const I0=/^[^#]+#/;function O0(t,e){return t.replace(I0,"#")+e}function k0(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 da=()=>({left:window.pageXOffset,top:window.pageYOffset});function D0(t){let e;if("el"in t){const n=t.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;e=k0(i,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function Id(t,e){return(history.state?history.state.position-e:-1)+t}const zl=new Map;function P0(t,e){zl.set(t,e)}function N0(t){const e=zl.get(t);return zl.delete(t),e}let M0=()=>location.protocol+"//"+location.host;function am(t,e){const{pathname:n,search:r,hash:i}=e,s=t.indexOf("#");if(s>-1){let a=i.includes(t.slice(s))?t.slice(s).length:1,l=i.slice(a);return l[0]!=="/"&&(l="/"+l),Sd(l,"")}return Sd(n,t)+r+i}function x0(t,e,n,r){let i=[],s=[],o=null;const a=({state:h})=>{const f=am(t,location),E=n.value,w=e.value;let T=0;if(h){if(n.value=f,e.value=h,o&&o===E){o=null;return}T=w?h.position-w.position:0}else r(f);i.forEach(C=>{C(n.value,E,{delta:T,type:Ss.pop,direction:T?T>0?as.forward:as.back:as.unknown})})};function l(){o=n.value}function u(h){i.push(h);const f=()=>{const E=i.indexOf(h);E>-1&&i.splice(E,1)};return s.push(f),f}function c(){const{history:h}=window;!h.state||h.replaceState(Le({},h.state,{scroll:da()}),"")}function d(){for(const h of s)h();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",c),{pauseListeners:l,listen:u,destroy:d}}function Od(t,e,n,r=!1,i=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:i?da():null}}function R0(t){const{history:e,location:n}=window,r={value:am(t,n)},i={value:e.state};i.value||s(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function s(l,u,c){const d=t.indexOf("#"),h=d>-1?(n.host&&document.querySelector("base")?t:t.slice(d))+l:M0()+t+l;try{e[c?"replaceState":"pushState"](u,"",h),i.value=u}catch(f){console.error(f),n[c?"replace":"assign"](h)}}function o(l,u){const c=Le({},e.state,Od(i.value.back,l,i.value.forward,!0),u,{position:i.value.position});s(l,c,!0),r.value=l}function a(l,u){const c=Le({},i.value,e.state,{forward:l,scroll:da()});s(c.current,c,!0);const d=Le({},Od(r.value,l,null),{position:c.position+1},u);s(l,d,!1),r.value=l}return{location:r,state:i,push:a,replace:o}}function pN(t){t=A0(t);const e=R0(t),n=x0(t,e.state,e.location,e.replace);function r(s,o=!0){o||n.pauseListeners(),history.go(s)}const i=Le({location:"",base:t,go:r,createHref:O0.bind(null,t)},e,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>e.state.value}),i}function L0(t){return typeof t=="string"||t&&typeof t=="object"}function lm(t){return typeof t=="string"||typeof t=="symbol"}const kn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},um=Pi("nf");var kd;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(kd||(kd={}));function yi(t,e){return Le(new Error,{type:t,[um]:!0},e)}function sr(t,e){return t instanceof Error&&um in t&&(e==null||!!(t.type&e))}const Dd="[^/]+?",$0={sensitive:!1,strict:!1,start:!0,end:!0},B0=/[.+*?^${}()[\]/\\]/g;function U0(t,e){const n=Le({},$0,e),r=[];let i=n.start?"^":"";const s=[];for(const u of t){const c=u.length?[]:[90];n.strict&&!u.length&&(i+="/");for(let d=0;d<u.length;d++){const h=u[d];let f=40+(n.sensitive?.25:0);if(h.type===0)d||(i+="/"),i+=h.value.replace(B0,"\\$&"),f+=40;else if(h.type===1){const{value:E,repeatable:w,optional:T,regexp:C}=h;s.push({name:E,repeatable:w,optional:T});const O=C||Dd;if(O!==Dd){f+=10;try{new RegExp(`(${O})`)}catch(x){throw new Error(`Invalid custom RegExp for param "${E}" (${O}): `+x.message)}}let _=w?`((?:${O})(?:/(?:${O}))*)`:`(${O})`;d||(_=T&&u.length<2?`(?:/${_})`:"/"+_),T&&(_+="?"),i+=_,f+=20,T&&(f+=-8),w&&(f+=-20),O===".*"&&(f+=-50)}c.push(f)}r.push(c)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&(i+="(?:/|$)");const o=new RegExp(i,n.sensitive?"":"i");function a(u){const c=u.match(o),d={};if(!c)return null;for(let h=1;h<c.length;h++){const f=c[h]||"",E=s[h-1];d[E.name]=f&&E.repeatable?f.split("/"):f}return d}function l(u){let c="",d=!1;for(const h of t){(!d||!c.endsWith("/"))&&(c+="/"),d=!1;for(const f of h)if(f.type===0)c+=f.value;else if(f.type===1){const{value:E,repeatable:w,optional:T}=f,C=E in u?u[E]:"";if(Array.isArray(C)&&!w)throw new Error(`Provided param "${E}" is an array but it is not repeatable (* or + modifiers)`);const O=Array.isArray(C)?C.join("/"):C;if(!O)if(T)h.length<2&&(c.endsWith("/")?c=c.slice(0,-1):d=!0);else throw new Error(`Missing required param "${E}"`);c+=O}}return c}return{re:o,score:r,keys:s,parse:a,stringify:l}}function H0(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]===40+40?-1:1:t.length>e.length?e.length===1&&e[0]===40+40?1:-1:0}function F0(t,e){let n=0;const r=t.score,i=e.score;for(;n<r.length&&n<i.length;){const s=H0(r[n],i[n]);if(s)return s;n++}return i.length-r.length}const V0={type:0,value:""},j0=/[a-zA-Z0-9_]/;function W0(t){if(!t)return[[]];if(t==="/")return[[V0]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(f){throw new Error(`ERR (${n})/"${u}": ${f}`)}let n=0,r=n;const i=[];let s;function o(){s&&i.push(s),s=[]}let a=0,l,u="",c="";function d(){!u||(n===0?s.push({type:0,value:u}):n===1||n===2||n===3?(s.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),u="")}function h(){u+=l}for(;a<t.length;){if(l=t[a++],l==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:l==="/"?(u&&d(),o()):l===":"?(d(),n=1):h();break;case 4:h(),n=r;break;case 1:l==="("?n=2:j0.test(l)?h():(d(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case 2:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:n=3:c+=l;break;case 3:d(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--,c="";break;default:e("Unknown state");break}}return n===2&&e(`Unfinished custom RegExp for param "${u}"`),d(),o(),i}function q0(t,e,n){const r=U0(W0(t.path),n),i=Le(r,{record:t,parent:e,children:[],alias:[]});return e&&!i.record.aliasOf==!e.record.aliasOf&&e.children.push(i),i}function K0(t,e){const n=[],r=new Map;e=Nd({strict:!1,end:!0,sensitive:!1},e);function i(c){return r.get(c)}function s(c,d,h){const f=!h,E=z0(c);E.aliasOf=h&&h.record;const w=Nd(e,c),T=[E];if("alias"in c){const _=typeof c.alias=="string"?[c.alias]:c.alias;for(const x of _)T.push(Le({},E,{components:h?h.record.components:E.components,path:x,aliasOf:h?h.record:E}))}let C,O;for(const _ of T){const{path:x}=_;if(d&&x[0]!=="/"){const W=d.record.path,X=W[W.length-1]==="/"?"":"/";_.path=d.record.path+(x&&X+x)}if(C=q0(_,d,w),h?h.alias.push(C):(O=O||C,O!==C&&O.alias.push(C),f&&c.name&&!Pd(C)&&o(c.name)),"children"in E){const W=E.children;for(let X=0;X<W.length;X++)s(W[X],C,h&&h.children[X])}h=h||C,l(C)}return O?()=>{o(O)}:os}function o(c){if(lm(c)){const d=r.get(c);d&&(r.delete(c),n.splice(n.indexOf(d),1),d.children.forEach(o),d.alias.forEach(o))}else{const d=n.indexOf(c);d>-1&&(n.splice(d,1),c.record.name&&r.delete(c.record.name),c.children.forEach(o),c.alias.forEach(o))}}function a(){return n}function l(c){let d=0;for(;d<n.length&&F0(c,n[d])>=0;)d++;n.splice(d,0,c),c.record.name&&!Pd(c)&&r.set(c.record.name,c)}function u(c,d){let h,f={},E,w;if("name"in c&&c.name){if(h=r.get(c.name),!h)throw yi(1,{location:c});w=h.record.name,f=Le(Y0(d.params,h.keys.filter(O=>!O.optional).map(O=>O.name)),c.params),E=h.stringify(f)}else if("path"in c)E=c.path,h=n.find(O=>O.re.test(E)),h&&(f=h.parse(E),w=h.record.name);else{if(h=d.name?r.get(d.name):n.find(O=>O.re.test(d.path)),!h)throw yi(1,{location:c,currentLocation:d});w=h.record.name,f=Le({},d.params,c.params),E=h.stringify(f)}const T=[];let C=h;for(;C;)T.unshift(C.record),C=C.parent;return{name:w,path:E,params:f,matched:T,meta:X0(T)}}return t.forEach(c=>s(c)),{addRoute:s,resolve:u,removeRoute:o,getRoutes:a,getRecordMatcher:i}}function Y0(t,e){const n={};for(const r of e)r in t&&(n[r]=t[r]);return n}function z0(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:G0(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||{}:{default:t.component}}}function G0(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=="boolean"?n:n[r];return e}function Pd(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function X0(t){return t.reduce((e,n)=>Le(e,n.meta),{})}function Nd(t,e){const n={};for(const r in t)n[r]=r in e?e[r]:t[r];return n}const cm=/#/g,J0=/&/g,Q0=/\//g,Z0=/=/g,eE=/\?/g,dm=/\+/g,tE=/%5B/g,nE=/%5D/g,fm=/%5E/g,rE=/%60/g,hm=/%7B/g,iE=/%7C/g,pm=/%7D/g,sE=/%20/g;function ec(t){return encodeURI(""+t).replace(iE,"|").replace(tE,"[").replace(nE,"]")}function oE(t){return ec(t).replace(hm,"{").replace(pm,"}").replace(fm,"^")}function Gl(t){return ec(t).replace(dm,"%2B").replace(sE,"+").replace(cm,"%23").replace(J0,"%26").replace(rE,"`").replace(hm,"{").replace(pm,"}").replace(fm,"^")}function aE(t){return Gl(t).replace(Z0,"%3D")}function lE(t){return ec(t).replace(cm,"%23").replace(eE,"%3F")}function uE(t){return t==null?"":lE(t).replace(Q0,"%2F")}function Mo(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function cE(t){const e={};if(t===""||t==="?")return e;const r=(t[0]==="?"?t.slice(1):t).split("&");for(let i=0;i<r.length;++i){const s=r[i].replace(dm," "),o=s.indexOf("="),a=Mo(o<0?s:s.slice(0,o)),l=o<0?null:Mo(s.slice(o+1));if(a in e){let u=e[a];Array.isArray(u)||(u=e[a]=[u]),u.push(l)}else e[a]=l}return e}function Md(t){let e="";for(let n in t){const r=t[n];if(n=aE(n),r==null){r!==void 0&&(e+=(e.length?"&":"")+n);continue}(Array.isArray(r)?r.map(s=>s&&Gl(s)):[r&&Gl(r)]).forEach(s=>{s!==void 0&&(e+=(e.length?"&":"")+n,s!=null&&(e+="="+s))})}return e}function dE(t){const e={};for(const n in t){const r=t[n];r!==void 0&&(e[n]=Array.isArray(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return e}function Ui(){let t=[];function e(r){return t.push(r),()=>{const i=t.indexOf(r);i>-1&&t.splice(i,1)}}function n(){t=[]}return{add:e,list:()=>t,reset:n}}function $n(t,e,n,r,i){const s=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((o,a)=>{const l=d=>{d===!1?a(yi(4,{from:n,to:e})):d instanceof Error?a(d):L0(d)?a(yi(2,{from:e,to:d})):(s&&r.enterCallbacks[i]===s&&typeof d=="function"&&s.push(d),o())},u=t.call(r&&r.instances[i],e,n,l);let c=Promise.resolve(u);t.length<3&&(c=c.then(l)),c.catch(d=>a(d))})}function ja(t,e,n,r){const i=[];for(const s of t)for(const o in s.components){let a=s.components[o];if(!(e!=="beforeRouteEnter"&&!s.instances[o]))if(fE(a)){const u=(a.__vccOpts||a)[e];u&&i.push($n(u,n,r,s,o))}else{let l=a();i.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${s.path}"`));const c=y0(u)?u.default:u;s.components[o]=c;const h=(c.__vccOpts||c)[e];return h&&$n(h,n,r,s,o)()}))}}return i}function fE(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function xd(t){const e=at(ca),n=at(Zu),r=te(()=>e.resolve(b(t.to))),i=te(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],d=n.matched;if(!c||!d.length)return-1;const h=d.findIndex(_i.bind(null,c));if(h>-1)return h;const f=Rd(l[u-2]);return u>1&&Rd(c)===f&&d[d.length-1].path!==f?d.findIndex(_i.bind(null,l[u-2])):h}),s=te(()=>i.value>-1&&gE(n.params,r.value.params)),o=te(()=>i.value>-1&&i.value===n.matched.length-1&&om(n.params,r.value.params));function a(l={}){return mE(l)?e[b(t.replace)?"replace":"push"](b(t.to)).catch(os):Promise.resolve()}return{route:r,href:te(()=>r.value.href),isActive:s,isExactActive:o,navigate:a}}const hE=qt({name:"RouterLink",props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:xd,setup(t,{slots:e}){const n=Ai(xd(t)),{options:r}=at(ca),i=te(()=>({[Ld(t.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ld(t.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=e.default&&e.default(n);return t.custom?s:Hu("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},s)}}}),pE=hE;function mE(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 gE(t,e){for(const n in e){const r=e[n],i=t[n];if(typeof r=="string"){if(r!==i)return!1}else if(!Array.isArray(i)||i.length!==r.length||r.some((s,o)=>s!==i[o]))return!1}return!0}function Rd(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const Ld=(t,e,n)=>t!=null?t:e!=null?e:n,vE=qt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},setup(t,{attrs:e,slots:n}){const r=at(Yl),i=te(()=>t.route||r.value),s=at(Cd,0),o=te(()=>i.value.matched[s]);wr(Cd,s+1),wr(_0,o),wr(Yl,i);const a=ge();return on(()=>[a.value,o.value,t.name],([l,u,c],[d,h,f])=>{u&&(u.instances[c]=l,h&&h!==u&&l&&l===d&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),l&&u&&(!h||!_i(u,h)||!d)&&(u.enterCallbacks[c]||[]).forEach(E=>E(l))},{flush:"post"}),()=>{const l=i.value,u=o.value,c=u&&u.components[t.name],d=t.name;if(!c)return $d(n.default,{Component:c,route:l});const h=u.props[t.name],f=h?h===!0?l.params:typeof h=="function"?h(l):h:null,w=Hu(c,Le({},f,e,{onVnodeUnmounted:T=>{T.component.isUnmounted&&(u.instances[d]=null)},ref:a}));return $d(n.default,{Component:w,route:l})||w}}});function $d(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const _E=vE;function mN(t){const e=K0(t.routes,t),n=t.parseQuery||cE,r=t.stringifyQuery||Md,i=t.history,s=Ui(),o=Ui(),a=Ui(),l=Kv(kn);let u=kn;Zr&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Fa.bind(null,$=>""+$),d=Fa.bind(null,uE),h=Fa.bind(null,Mo);function f($,z){let V,Q;return lm($)?(V=e.getRecordMatcher($),Q=z):Q=$,e.addRoute(Q,V)}function E($){const z=e.getRecordMatcher($);z&&e.removeRoute(z)}function w(){return e.getRoutes().map($=>$.record)}function T($){return!!e.getRecordMatcher($)}function C($,z){if(z=Le({},z||l.value),typeof $=="string"){const ce=Va(n,$,z.path),p=e.resolve({path:ce.path},z),g=i.createHref(ce.fullPath);return Le(ce,p,{params:h(p.params),hash:Mo(ce.hash),redirectedFrom:void 0,href:g})}let V;if("path"in $)V=Le({},$,{path:Va(n,$.path,z.path).path});else{const ce=Le({},$.params);for(const p in ce)ce[p]==null&&delete ce[p];V=Le({},$,{params:d($.params)}),z.params=d(z.params)}const Q=e.resolve(V,z),Te=$.hash||"";Q.params=c(h(Q.params));const pe=E0(r,Le({},$,{hash:oE(Te),path:Q.path})),fe=i.createHref(pe);return Le({fullPath:pe,hash:Te,query:r===Md?dE($.query):$.query||{}},Q,{redirectedFrom:void 0,href:fe})}function O($){return typeof $=="string"?Va(n,$,l.value.path):Le({},$)}function _($,z){if(u!==$)return yi(8,{from:z,to:$})}function x($){return m($)}function W($){return x(Le(O($),{replace:!0}))}function X($){const z=$.matched[$.matched.length-1];if(z&&z.redirect){const{redirect:V}=z;let Q=typeof V=="function"?V($):V;return typeof Q=="string"&&(Q=Q.includes("?")||Q.includes("#")?Q=O(Q):{path:Q},Q.params={}),Le({query:$.query,hash:$.hash,params:$.params},Q)}}function m($,z){const V=u=C($),Q=l.value,Te=$.state,pe=$.force,fe=$.replace===!0,ce=X(V);if(ce)return m(Le(O(ce),{state:Te,force:pe,replace:fe}),z||V);const p=V;p.redirectedFrom=z;let g;return!pe&&T0(r,Q,V)&&(g=yi(16,{to:p,from:Q}),Ge(Q,Q,!0,!1)),(g?Promise.resolve(g):R(p,Q)).catch(S=>sr(S)?S:ne(S,p,Q)).then(S=>{if(S){if(sr(S,2))return m(Le(O(S.to),{state:Te,force:pe,replace:fe}),z||p)}else S=v(p,Q,!0,fe,Te);return B(p,Q,S),S})}function P($,z){const V=_($,z);return V?Promise.reject(V):Promise.resolve()}function R($,z){let V;const[Q,Te,pe]=yE($,z);V=ja(Q.reverse(),"beforeRouteLeave",$,z);for(const ce of Q)ce.leaveGuards.forEach(p=>{V.push($n(p,$,z))});const fe=P.bind(null,$,z);return V.push(fe),qr(V).then(()=>{V=[];for(const ce of s.list())V.push($n(ce,$,z));return V.push(fe),qr(V)}).then(()=>{V=ja(Te,"beforeRouteUpdate",$,z);for(const ce of Te)ce.updateGuards.forEach(p=>{V.push($n(p,$,z))});return V.push(fe),qr(V)}).then(()=>{V=[];for(const ce of $.matched)if(ce.beforeEnter&&!z.matched.includes(ce))if(Array.isArray(ce.beforeEnter))for(const p of ce.beforeEnter)V.push($n(p,$,z));else V.push($n(ce.beforeEnter,$,z));return V.push(fe),qr(V)}).then(()=>($.matched.forEach(ce=>ce.enterCallbacks={}),V=ja(pe,"beforeRouteEnter",$,z),V.push(fe),qr(V))).then(()=>{V=[];for(const ce of o.list())V.push($n(ce,$,z));return V.push(fe),qr(V)}).catch(ce=>sr(ce,8)?ce:Promise.reject(ce))}function B($,z,V){for(const Q of a.list())Q($,z,V)}function v($,z,V,Q,Te){const pe=_($,z);if(pe)return pe;const fe=z===kn,ce=Zr?history.state:{};V&&(Q||fe?i.replace($.fullPath,Le({scroll:fe&&ce&&ce.scroll},Te)):i.push($.fullPath,Te)),l.value=$,Ge($,z,V,fe),Ie()}let y;function U(){y=i.listen(($,z,V)=>{const Q=C($),Te=X(Q);if(Te){m(Le(Te,{replace:!0}),Q).catch(os);return}u=Q;const pe=l.value;Zr&&P0(Id(pe.fullPath,V.delta),da()),R(Q,pe).catch(fe=>sr(fe,12)?fe:sr(fe,2)?(m(fe.to,Q).then(ce=>{sr(ce,20)&&!V.delta&&V.type===Ss.pop&&i.go(-1,!1)}).catch(os),Promise.reject()):(V.delta&&i.go(-V.delta,!1),ne(fe,Q,pe))).then(fe=>{fe=fe||v(Q,pe,!1),fe&&(V.delta?i.go(-V.delta,!1):V.type===Ss.pop&&sr(fe,20)&&i.go(-1,!1)),B(Q,pe,fe)}).catch(os)})}let q=Ui(),re=Ui(),Z;function ne($,z,V){Ie($);const Q=re.list();return Q.length?Q.forEach(Te=>Te($,z,V)):console.error($),Promise.reject($)}function ue(){return Z&&l.value!==kn?Promise.resolve():new Promise(($,z)=>{q.add([$,z])})}function Ie($){Z||(Z=!0,U(),q.list().forEach(([z,V])=>$?V($):z()),q.reset())}function Ge($,z,V,Q){const{scrollBehavior:Te}=t;if(!Zr||!Te)return Promise.resolve();const pe=!V&&N0(Id($.fullPath,0))||(Q||!V)&&history.state&&history.state.scroll||null;return Qo().then(()=>Te($,z,pe)).then(fe=>fe&&D0(fe)).catch(fe=>ne(fe,$,z))}const Fe=$=>i.go($);let Je;const Ue=new Set;return{currentRoute:l,addRoute:f,removeRoute:E,hasRoute:T,getRoutes:w,resolve:C,options:t,push:x,replace:W,go:Fe,back:()=>Fe(-1),forward:()=>Fe(1),beforeEach:s.add,beforeResolve:o.add,afterEach:a.add,onError:re.add,isReady:ue,install($){const z=this;$.component("RouterLink",pE),$.component("RouterView",_E),$.config.globalProperties.$router=z,Object.defineProperty($.config.globalProperties,"$route",{enumerable:!0,get:()=>b(l)}),Zr&&!Je&&l.value===kn&&(Je=!0,x(i.location).catch(Te=>{}));const V={};for(const Te in kn)V[Te]=te(()=>l.value[Te]);$.provide(ca,z),$.provide(Zu,Ai(V)),$.provide(Yl,l);const Q=$.unmount;Ue.add($),$.unmount=function(){Ue.delete($),Ue.size<1&&(u=kn,y&&y(),l.value=kn,Je=!1,Z=!1),Q()}}}}function qr(t){return t.reduce((e,n)=>e.then(()=>n()),Promise.resolve())}function yE(t,e){const n=[],r=[],i=[],s=Math.max(e.matched.length,t.matched.length);for(let o=0;o<s;o++){const a=e.matched[o];a&&(t.matched.find(u=>_i(u,a))?r.push(a):n.push(a));const l=t.matched[o];l&&(e.matched.find(u=>_i(u,l))||i.push(l))}return[n,r,i]}function gN(){return at(ca)}function vN(){return at(Zu)}var bE=!1;/*!
|
|
* pinia v2.0.6
|
|
* (c) 2021 Eduardo San Martin Morote
|
|
* @license MIT
|
|
*/let mm;const fa=t=>mm=t,gm=Symbol();function Xl(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var ls;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(ls||(ls={}));function _N(){const t=Ph(!0),e=t.run(()=>ge({}));let n=[],r=[];const i=fi({install(s){fa(i),i._a=s,s.provide(gm,i),s.config.globalProperties.$pinia=i,r.forEach(o=>n.push(o)),r=[]},use(s){return!this._a&&!bE?r.push(s):n.push(s),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return i}function Bd(t,e,n){t.push(e);const r=()=>{const i=t.indexOf(e);i>-1&&t.splice(i,1)};return!n&&ia()&&na(r),r}function Ud(t,...e){t.forEach(n=>{n(...e)})}function Jl(t,e){for(const n in e){const r=e[n],i=t[n];Xl(i)&&Xl(r)&&!je(r)&&!qn(r)?t[n]=Jl(i,r):t[n]=r}return t}const wE=Symbol();function EE(t){return!Xl(t)||!t.hasOwnProperty(wE)}const{assign:gn}=Object;function TE(t){return!!(je(t)&&t.effect)}function CE(t,e,n,r){const{state:i,actions:s,getters:o}=e,a=n.state.value[t];let l;function u(){a||(n.state.value[t]=i?i():{});const c=Gv(n.state.value[t]);return gn(c,s,Object.keys(o||{}).reduce((d,h)=>(d[h]=fi(te(()=>{fa(n);const f=n._s.get(t);return o[h].call(f,f)})),d),{}))}return l=vm(t,u,e,n),l.$reset=function(){const d=i?i():{};this.$patch(h=>{gn(h,d)})},l}const Wa=()=>{};function vm(t,e,n={},r,i){let s;const o=n.state,a=gn({actions:{}},n),l={deep:!0};let u,c=fi([]),d=fi([]),h;const f=r.state.value[t];!o&&!f&&(r.state.value[t]={}),ge({});function E(W){let X;u=!1,typeof W=="function"?(W(r.state.value[t]),X={type:ls.patchFunction,storeId:t,events:h}):(Jl(r.state.value[t],W),X={type:ls.patchObject,payload:W,storeId:t,events:h}),u=!0,Ud(c,X,r.state.value[t])}const w=Wa;function T(){s.stop(),c=[],d=[],r._s.delete(t)}function C(W,X){return function(){fa(r);const m=Array.from(arguments);let P=Wa,R=Wa;function B(q){P=q}function v(q){R=q}Ud(d,{args:m,name:W,store:_,after:B,onError:v});let y;try{y=X.apply(this&&this.$id===t?this:_,m)}catch(q){if(R(q)!==!1)throw q}if(y instanceof Promise)return y.then(q=>{const re=P(q);return re===void 0?q:re}).catch(q=>{if(R(q)!==!1)return Promise.reject(q)});const U=P(y);return U===void 0?y:U}}const O={_p:r,$id:t,$onAction:Bd.bind(null,d),$patch:E,$reset:w,$subscribe(W,X={}){const m=Bd(c,W,X.detached),P=s.run(()=>on(()=>r.state.value[t],B=>{u&&W({storeId:t,type:ls.direct,events:h},B)},gn({},l,X)));return()=>{P(),m()}},$dispose:T},_=Ai(gn({},O));r._s.set(t,_);const x=r._e.run(()=>(s=Ph(),s.run(()=>e())));for(const W in x){const X=x[W];if(je(X)&&!TE(X)||qn(X))o||(f&&EE(X)&&(je(X)?X.value=f[W]:Jl(X,f[W])),r.state.value[t][W]=X);else if(typeof X=="function"){const m=C(W,X);x[W]=m,a.actions[W]=X}}return gn(_,x),gn(De(_),x),Object.defineProperty(_,"$state",{get:()=>r.state.value[t],set:W=>{E(X=>{gn(X,W)})}}),r._p.forEach(W=>{gn(_,s.run(()=>W({store:_,app:r._a,pinia:r,options:a})))}),f&&o&&n.hydrate&&n.hydrate(_.$state,f),u=!0,_}function yN(t,e,n){let r,i;const s=typeof e=="function";typeof t=="string"?(r=t,i=s?n:e):(i=t,r=t.id);function o(a,l){const u=ia();return a=a||u&&at(gm),a&&fa(a),a=mm,a._s.has(r)||(s?vm(r,e,i,a):CE(r,i,a)),a._s.get(r)}return o.$id=r,o}var bN=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},tc={exports:{}},_m=function(e,n){return function(){for(var i=new Array(arguments.length),s=0;s<i.length;s++)i[s]=arguments[s];return e.apply(n,i)}},SE=_m,Br=Object.prototype.toString;function nc(t){return Br.call(t)==="[object Array]"}function Ql(t){return typeof t=="undefined"}function AE(t){return t!==null&&!Ql(t)&&t.constructor!==null&&!Ql(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function IE(t){return Br.call(t)==="[object ArrayBuffer]"}function OE(t){return typeof FormData!="undefined"&&t instanceof FormData}function kE(t){var e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function DE(t){return typeof t=="string"}function PE(t){return typeof t=="number"}function ym(t){return t!==null&&typeof t=="object"}function po(t){if(Br.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function NE(t){return Br.call(t)==="[object Date]"}function ME(t){return Br.call(t)==="[object File]"}function xE(t){return Br.call(t)==="[object Blob]"}function bm(t){return Br.call(t)==="[object Function]"}function RE(t){return ym(t)&&bm(t.pipe)}function LE(t){return typeof URLSearchParams!="undefined"&&t instanceof URLSearchParams}function $E(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function BE(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function rc(t,e){if(!(t===null||typeof t=="undefined"))if(typeof t!="object"&&(t=[t]),nc(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}function Zl(){var t={};function e(i,s){po(t[s])&&po(i)?t[s]=Zl(t[s],i):po(i)?t[s]=Zl({},i):nc(i)?t[s]=i.slice():t[s]=i}for(var n=0,r=arguments.length;n<r;n++)rc(arguments[n],e);return t}function UE(t,e,n){return rc(e,function(i,s){n&&typeof i=="function"?t[s]=SE(i,n):t[s]=i}),t}function HE(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}var Ct={isArray:nc,isArrayBuffer:IE,isBuffer:AE,isFormData:OE,isArrayBufferView:kE,isString:DE,isNumber:PE,isObject:ym,isPlainObject:po,isUndefined:Ql,isDate:NE,isFile:ME,isBlob:xE,isFunction:bm,isStream:RE,isURLSearchParams:LE,isStandardBrowserEnv:BE,forEach:rc,merge:Zl,extend:UE,trim:$E,stripBOM:HE},Kr=Ct;function Hd(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var wm=function(e,n,r){if(!n)return e;var i;if(r)i=r(n);else if(Kr.isURLSearchParams(n))i=n.toString();else{var s=[];Kr.forEach(n,function(l,u){l===null||typeof l=="undefined"||(Kr.isArray(l)?u=u+"[]":l=[l],Kr.forEach(l,function(d){Kr.isDate(d)?d=d.toISOString():Kr.isObject(d)&&(d=JSON.stringify(d)),s.push(Hd(u)+"="+Hd(d))}))}),i=s.join("&")}if(i){var o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e},FE=Ct;function ha(){this.handlers=[]}ha.prototype.use=function(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1};ha.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};ha.prototype.forEach=function(e){FE.forEach(this.handlers,function(r){r!==null&&e(r)})};var VE=ha,jE=Ct,WE=function(e,n){jE.forEach(e,function(i,s){s!==n&&s.toUpperCase()===n.toUpperCase()&&(e[n]=i,delete e[s])})},Em=function(e,n,r,i,s){return e.config=n,r&&(e.code=r),e.request=i,e.response=s,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e},qE=Em,Tm=function(e,n,r,i,s){var o=new Error(e);return qE(o,n,r,i,s)},KE=Tm,YE=function(e,n,r){var i=r.config.validateStatus;!r.status||!i||i(r.status)?e(r):n(KE("Request failed with status code "+r.status,r.config,null,r.request,r))},no=Ct,zE=no.isStandardBrowserEnv()?function(){return{write:function(n,r,i,s,o,a){var l=[];l.push(n+"="+encodeURIComponent(r)),no.isNumber(i)&&l.push("expires="+new Date(i).toGMTString()),no.isString(s)&&l.push("path="+s),no.isString(o)&&l.push("domain="+o),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){var r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),GE=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)},XE=function(e,n){return n?e.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):e},JE=GE,QE=XE,ZE=function(e,n){return e&&!JE(n)?QE(e,n):n},qa=Ct,eT=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],tT=function(e){var n={},r,i,s;return e&&qa.forEach(e.split(`
|
|
`),function(a){if(s=a.indexOf(":"),r=qa.trim(a.substr(0,s)).toLowerCase(),i=qa.trim(a.substr(s+1)),r){if(n[r]&&eT.indexOf(r)>=0)return;r==="set-cookie"?n[r]=(n[r]?n[r]:[]).concat([i]):n[r]=n[r]?n[r]+", "+i:i}}),n},Fd=Ct,nT=Fd.isStandardBrowserEnv()?function(){var e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),r;function i(s){var o=s;return e&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(o){var a=Fd.isString(o)?i(o):o;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function ic(t){this.message=t}ic.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};ic.prototype.__CANCEL__=!0;var pa=ic,ro=Ct,rT=YE,iT=zE,sT=wm,oT=ZE,aT=tT,lT=nT,Ka=Tm,uT=ga,cT=pa,Vd=function(e){return new Promise(function(r,i){var s=e.data,o=e.headers,a=e.responseType,l;function u(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}ro.isFormData(s)&&delete o["Content-Type"];var c=new XMLHttpRequest;if(e.auth){var d=e.auth.username||"",h=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.Authorization="Basic "+btoa(d+":"+h)}var f=oT(e.baseURL,e.url);c.open(e.method.toUpperCase(),sT(f,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function E(){if(!!c){var T="getAllResponseHeaders"in c?aT(c.getAllResponseHeaders()):null,C=!a||a==="text"||a==="json"?c.responseText:c.response,O={data:C,status:c.status,statusText:c.statusText,headers:T,config:e,request:c};rT(function(x){r(x),u()},function(x){i(x),u()},O),c=null}}if("onloadend"in c?c.onloadend=E:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(E)},c.onabort=function(){!c||(i(Ka("Request aborted",e,"ECONNABORTED",c)),c=null)},c.onerror=function(){i(Ka("Network Error",e,null,c)),c=null},c.ontimeout=function(){var C=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",O=e.transitional||uT.transitional;e.timeoutErrorMessage&&(C=e.timeoutErrorMessage),i(Ka(C,e,O.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},ro.isStandardBrowserEnv()){var w=(e.withCredentials||lT(f))&&e.xsrfCookieName?iT.read(e.xsrfCookieName):void 0;w&&(o[e.xsrfHeaderName]=w)}"setRequestHeader"in c&&ro.forEach(o,function(C,O){typeof s=="undefined"&&O.toLowerCase()==="content-type"?delete o[O]:c.setRequestHeader(O,C)}),ro.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),a&&a!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",e.onDownloadProgress),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(l=function(T){!c||(i(!T||T&&T.type?new cT("canceled"):T),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l))),s||(s=null),c.send(s)})},et=Ct,jd=WE,dT=Em,fT={"Content-Type":"application/x-www-form-urlencoded"};function Wd(t,e){!et.isUndefined(t)&&et.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function hT(){var t;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(t=Vd),t}function pT(t,e,n){if(et.isString(t))try{return(e||JSON.parse)(t),et.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}var ma={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:hT(),transformRequest:[function(e,n){return jd(n,"Accept"),jd(n,"Content-Type"),et.isFormData(e)||et.isArrayBuffer(e)||et.isBuffer(e)||et.isStream(e)||et.isFile(e)||et.isBlob(e)?e:et.isArrayBufferView(e)?e.buffer:et.isURLSearchParams(e)?(Wd(n,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):et.isObject(e)||n&&n["Content-Type"]==="application/json"?(Wd(n,"application/json"),pT(e)):e}],transformResponse:[function(e){var n=this.transitional||ma.transitional,r=n&&n.silentJSONParsing,i=n&&n.forcedJSONParsing,s=!r&&this.responseType==="json";if(s||i&&et.isString(e)&&e.length)try{return JSON.parse(e)}catch(o){if(s)throw o.name==="SyntaxError"?dT(o,this,"E_JSON_PARSE"):o}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};et.forEach(["delete","get","head"],function(e){ma.headers[e]={}});et.forEach(["post","put","patch"],function(e){ma.headers[e]=et.merge(fT)});var ga=ma,mT=Ct,gT=ga,vT=function(e,n,r){var i=this||gT;return mT.forEach(r,function(o){e=o.call(i,e,n)}),e},Cm=function(e){return!!(e&&e.__CANCEL__)},qd=Ct,Ya=vT,_T=Cm,yT=ga,bT=pa;function za(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new bT("canceled")}var wT=function(e){za(e),e.headers=e.headers||{},e.data=Ya.call(e,e.data,e.headers,e.transformRequest),e.headers=qd.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),qd.forEach(["delete","get","head","post","put","patch","common"],function(i){delete e.headers[i]});var n=e.adapter||yT.adapter;return n(e).then(function(i){return za(e),i.data=Ya.call(e,i.data,i.headers,e.transformResponse),i},function(i){return _T(i)||(za(e),i&&i.response&&(i.response.data=Ya.call(e,i.response.data,i.response.headers,e.transformResponse))),Promise.reject(i)})},_t=Ct,Sm=function(e,n){n=n||{};var r={};function i(c,d){return _t.isPlainObject(c)&&_t.isPlainObject(d)?_t.merge(c,d):_t.isPlainObject(d)?_t.merge({},d):_t.isArray(d)?d.slice():d}function s(c){if(_t.isUndefined(n[c])){if(!_t.isUndefined(e[c]))return i(void 0,e[c])}else return i(e[c],n[c])}function o(c){if(!_t.isUndefined(n[c]))return i(void 0,n[c])}function a(c){if(_t.isUndefined(n[c])){if(!_t.isUndefined(e[c]))return i(void 0,e[c])}else return i(void 0,n[c])}function l(c){if(c in n)return i(e[c],n[c]);if(c in e)return i(void 0,e[c])}var u={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l};return _t.forEach(Object.keys(e).concat(Object.keys(n)),function(d){var h=u[d]||s,f=h(d);_t.isUndefined(f)&&h!==l||(r[d]=f)}),r},Am={version:"0.24.0"},ET=Am.version,sc={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){sc[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});var Kd={};sc.transitional=function(e,n,r){function i(s,o){return"[Axios v"+ET+"] Transitional option '"+s+"'"+o+(r?". "+r:"")}return function(s,o,a){if(e===!1)throw new Error(i(o," has been removed"+(n?" in "+n:"")));return n&&!Kd[o]&&(Kd[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(s,o,a):!0}};function TT(t,e,n){if(typeof t!="object")throw new TypeError("options must be an object");for(var r=Object.keys(t),i=r.length;i-- >0;){var s=r[i],o=e[s];if(o){var a=t[s],l=a===void 0||o(a,s,t);if(l!==!0)throw new TypeError("option "+s+" must be "+l);continue}if(n!==!0)throw Error("Unknown option "+s)}}var CT={assertOptions:TT,validators:sc},Im=Ct,ST=wm,Yd=VE,zd=wT,va=Sm,Om=CT,Yr=Om.validators;function Ls(t){this.defaults=t,this.interceptors={request:new Yd,response:new Yd}}Ls.prototype.request=function(e){typeof e=="string"?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=va(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var n=e.transitional;n!==void 0&&Om.assertOptions(n,{silentJSONParsing:Yr.transitional(Yr.boolean),forcedJSONParsing:Yr.transitional(Yr.boolean),clarifyTimeoutError:Yr.transitional(Yr.boolean)},!1);var r=[],i=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(e)===!1||(i=i&&h.synchronous,r.unshift(h.fulfilled,h.rejected))});var s=[];this.interceptors.response.forEach(function(h){s.push(h.fulfilled,h.rejected)});var o;if(!i){var a=[zd,void 0];for(Array.prototype.unshift.apply(a,r),a=a.concat(s),o=Promise.resolve(e);a.length;)o=o.then(a.shift(),a.shift());return o}for(var l=e;r.length;){var u=r.shift(),c=r.shift();try{l=u(l)}catch(d){c(d);break}}try{o=zd(l)}catch(d){return Promise.reject(d)}for(;s.length;)o=o.then(s.shift(),s.shift());return o};Ls.prototype.getUri=function(e){return e=va(this.defaults,e),ST(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};Im.forEach(["delete","get","head","options"],function(e){Ls.prototype[e]=function(n,r){return this.request(va(r||{},{method:e,url:n,data:(r||{}).data}))}});Im.forEach(["post","put","patch"],function(e){Ls.prototype[e]=function(n,r,i){return this.request(va(i||{},{method:e,url:n,data:r}))}});var AT=Ls,IT=pa;function bi(t){if(typeof t!="function")throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(i){e=i});var n=this;this.promise.then(function(r){if(!!n._listeners){var i,s=n._listeners.length;for(i=0;i<s;i++)n._listeners[i](r);n._listeners=null}}),this.promise.then=function(r){var i,s=new Promise(function(o){n.subscribe(o),i=o}).then(r);return s.cancel=function(){n.unsubscribe(i)},s},t(function(i){n.reason||(n.reason=new IT(i),e(n.reason))})}bi.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};bi.prototype.subscribe=function(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]};bi.prototype.unsubscribe=function(e){if(!!this._listeners){var n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}};bi.source=function(){var e,n=new bi(function(i){e=i});return{token:n,cancel:e}};var OT=bi,kT=function(e){return function(r){return e.apply(null,r)}},DT=function(e){return typeof e=="object"&&e.isAxiosError===!0},Gd=Ct,PT=_m,mo=AT,NT=Sm,MT=ga;function km(t){var e=new mo(t),n=PT(mo.prototype.request,e);return Gd.extend(n,mo.prototype,e),Gd.extend(n,e),n.create=function(i){return km(NT(t,i))},n}var hn=km(MT);hn.Axios=mo;hn.Cancel=pa;hn.CancelToken=OT;hn.isCancel=Cm;hn.VERSION=Am.version;hn.all=function(e){return Promise.all(e)};hn.spread=kT;hn.isAxiosError=DT;tc.exports=hn;tc.exports.default=hn;var wN=tc.exports;/**
|
|
* @license
|
|
* Copyright 2017 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*//**
|
|
* @license
|
|
* Copyright 2017 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const xT=function(t){const e=[];let n=0;for(let r=0;r<t.length;r++){let i=t.charCodeAt(r);i<128?e[n++]=i:i<2048?(e[n++]=i>>6|192,e[n++]=i&63|128):(i&64512)===55296&&r+1<t.length&&(t.charCodeAt(r+1)&64512)===56320?(i=65536+((i&1023)<<10)+(t.charCodeAt(++r)&1023),e[n++]=i>>18|240,e[n++]=i>>12&63|128,e[n++]=i>>6&63|128,e[n++]=i&63|128):(e[n++]=i>>12|224,e[n++]=i>>6&63|128,e[n++]=i&63|128)}return e},RT=function(t){const e=[];let n=0,r=0;for(;n<t.length;){const i=t[n++];if(i<128)e[r++]=String.fromCharCode(i);else if(i>191&&i<224){const s=t[n++];e[r++]=String.fromCharCode((i&31)<<6|s&63)}else if(i>239&&i<365){const s=t[n++],o=t[n++],a=t[n++],l=((i&7)<<18|(s&63)<<12|(o&63)<<6|a&63)-65536;e[r++]=String.fromCharCode(55296+(l>>10)),e[r++]=String.fromCharCode(56320+(l&1023))}else{const s=t[n++],o=t[n++];e[r++]=String.fromCharCode((i&15)<<12|(s&63)<<6|o&63)}}return e.join("")},LT={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 i=0;i<t.length;i+=3){const s=t[i],o=i+1<t.length,a=o?t[i+1]:0,l=i+2<t.length,u=l?t[i+2]:0,c=s>>2,d=(s&3)<<4|a>>4;let h=(a&15)<<2|u>>6,f=u&63;l||(f=64,o||(h=64)),r.push(n[c],n[d],n[h],n[f])}return r.join("")},encodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(xT(t),e)},decodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):RT(this.decodeStringToByteArray(t,e))},decodeStringToByteArray(t,e){this.init_();const n=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<t.length;){const s=n[t.charAt(i++)],a=i<t.length?n[t.charAt(i)]:0;++i;const u=i<t.length?n[t.charAt(i)]:64;++i;const d=i<t.length?n[t.charAt(i)]:64;if(++i,s==null||a==null||u==null||d==null)throw Error();const h=s<<2|a>>4;if(r.push(h),u!==64){const f=a<<4&240|u>>2;if(r.push(f),d!==64){const E=u<<6&192|d;r.push(E)}}}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)}}},$T=function(t){try{return LT.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};/**
|
|
* @license
|
|
* Copyright 2017 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class BT{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))}}}/**
|
|
* @license
|
|
* Copyright 2017 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function ct(){return typeof navigator!="undefined"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function UT(){return typeof window!="undefined"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(ct())}function HT(){const t=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof t=="object"&&t.id!==void 0}function FT(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function VT(){const t=ct();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0}/**
|
|
* @license
|
|
* Copyright 2017 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const jT="FirebaseError";class Ni extends Error{constructor(e,n,r){super(n);this.code=e,this.customData=r,this.name=jT,Object.setPrototypeOf(this,Ni.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,$s.prototype.create)}}class $s{constructor(e,n,r){this.service=e,this.serviceName=n,this.errors=r}create(e,...n){const r=n[0]||{},i=`${this.service}/${e}`,s=this.errors[e],o=s?WT(s,r):"Error",a=`${this.serviceName}: ${o} (${i}).`;return new Ni(i,a,r)}}function WT(t,e){return t.replace(qT,(n,r)=>{const i=e[r];return i!=null?String(i):`<${r}?>`})}const qT=/\{\$([^}]+)}/g;function KT(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}function xo(t,e){if(t===e)return!0;const n=Object.keys(t),r=Object.keys(e);for(const i of n){if(!r.includes(i))return!1;const s=t[i],o=e[i];if(Xd(s)&&Xd(o)){if(!xo(s,o))return!1}else if(s!==o)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function Xd(t){return t!==null&&typeof t=="object"}/**
|
|
* @license
|
|
* Copyright 2017 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function Bs(t){const e=[];for(const[n,r]of Object.entries(t))Array.isArray(r)?r.forEach(i=>{e.push(encodeURIComponent(n)+"="+encodeURIComponent(i))}):e.push(encodeURIComponent(n)+"="+encodeURIComponent(r));return e.length?"&"+e.join("&"):""}function Ji(t){const e={};return t.replace(/^\?/,"").split("&").forEach(r=>{if(r){const[i,s]=r.split("=");e[decodeURIComponent(i)]=decodeURIComponent(s)}}),e}function Qi(t){const e=t.indexOf("?");if(!e)return"";const n=t.indexOf("#",e);return t.substring(e,n>0?n:void 0)}function YT(t,e){const n=new zT(t,e);return n.subscribe.bind(n)}class zT{constructor(e,n){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=n,this.task.then(()=>{e(this)}).catch(r=>{this.error(r)})}next(e){this.forEachObserver(n=>{n.next(e)})}error(e){this.forEachObserver(n=>{n.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,n,r){let i;if(e===void 0&&n===void 0&&r===void 0)throw new Error("Missing Observer.");GT(e,["next","error","complete"])?i=e:i={next:e,error:n,complete:r},i.next===void 0&&(i.next=Ga),i.error===void 0&&(i.error=Ga),i.complete===void 0&&(i.complete=Ga);const s=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?i.error(this.finalError):i.complete()}catch{}}),this.observers.push(i),s}unsubscribeOne(e){this.observers===void 0||this.observers[e]===void 0||(delete this.observers[e],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let n=0;n<this.observers.length;n++)this.sendOne(n,e)}sendOne(e,n){this.task.then(()=>{if(this.observers!==void 0&&this.observers[e]!==void 0)try{n(this.observers[e])}catch(r){typeof console!="undefined"&&console.error&&console.error(r)}})}close(e){this.finalized||(this.finalized=!0,e!==void 0&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function GT(t,e){if(typeof t!="object"||t===null)return!1;for(const n of e)if(n in t&&typeof t[n]=="function")return!0;return!1}function Ga(){}/**
|
|
* @license
|
|
* Copyright 2021 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function Ur(t){return t&&t._delegate?t._delegate:t}class As{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}}/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const cr="[DEFAULT]";/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class XT{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 BT;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{const i=this.getOrInitializeService({instanceIdentifier:n});i&&r.resolve(i)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(e){var n;const r=this.normalizeInstanceIdentifier(e==null?void 0:e.identifier),i=(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(s){if(i)return null;throw s}else{if(i)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(QT(e))try{this.getOrInitializeService({instanceIdentifier:cr})}catch{}for(const[n,r]of this.instancesDeferred.entries()){const i=this.normalizeInstanceIdentifier(n);try{const s=this.getOrInitializeService({instanceIdentifier:i});r.resolve(s)}catch{}}}}clearInstance(e=cr){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=cr){return this.instances.has(e)}getOptions(e=cr){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 i=this.getOrInitializeService({instanceIdentifier:r,options:n});for(const[s,o]of this.instancesDeferred.entries()){const a=this.normalizeInstanceIdentifier(s);r===a&&o.resolve(i)}return i}onInit(e,n){var r;const i=this.normalizeInstanceIdentifier(n),s=(r=this.onInitCallbacks.get(i))!==null&&r!==void 0?r:new Set;s.add(e),this.onInitCallbacks.set(i,s);const o=this.instances.get(i);return o&&e(o,i),()=>{s.delete(e)}}invokeOnInitCallbacks(e,n){const r=this.onInitCallbacks.get(n);if(!!r)for(const i of r)try{i(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:JT(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=cr){return this.component?this.component.multipleInstances?e:cr:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function JT(t){return t===cr?void 0:t}function QT(t){return t.instantiationMode==="EAGER"}/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class ZT{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 XT(e,this);return this.providers.set(e,n),n}getProviders(){return Array.from(this.providers.values())}}/**
|
|
* @license
|
|
* Copyright 2017 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/var Be;(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"})(Be||(Be={}));const eC={debug:Be.DEBUG,verbose:Be.VERBOSE,info:Be.INFO,warn:Be.WARN,error:Be.ERROR,silent:Be.SILENT},tC=Be.INFO,nC={[Be.DEBUG]:"log",[Be.VERBOSE]:"log",[Be.INFO]:"info",[Be.WARN]:"warn",[Be.ERROR]:"error"},rC=(t,e,...n)=>{if(e<t.logLevel)return;const r=new Date().toISOString(),i=nC[e];if(i)console[i](`[${r}] ${t.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`)};class Dm{constructor(e){this.name=e,this._logLevel=tC,this._logHandler=rC,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in Be))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel=typeof e=="string"?eC[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,Be.DEBUG,...e),this._logHandler(this,Be.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,Be.VERBOSE,...e),this._logHandler(this,Be.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,Be.INFO,...e),this._logHandler(this,Be.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,Be.WARN,...e),this._logHandler(this,Be.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,Be.ERROR,...e),this._logHandler(this,Be.ERROR,...e)}}/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class iC{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(sC(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function sC(t){const e=t.getComponent();return(e==null?void 0:e.type)==="VERSION"}const eu="@firebase/app",Jd="0.7.13";/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const oc=new Dm("@firebase/app"),oC="@firebase/app-compat",aC="@firebase/analytics-compat",lC="@firebase/analytics",uC="@firebase/app-check-compat",cC="@firebase/app-check",dC="@firebase/auth",fC="@firebase/auth-compat",hC="@firebase/database",pC="@firebase/database-compat",mC="@firebase/functions",gC="@firebase/functions-compat",vC="@firebase/installations",_C="@firebase/installations-compat",yC="@firebase/messaging",bC="@firebase/messaging-compat",wC="@firebase/performance",EC="@firebase/performance-compat",TC="@firebase/remote-config",CC="@firebase/remote-config-compat",SC="@firebase/storage",AC="@firebase/storage-compat",IC="@firebase/firestore",OC="@firebase/firestore-compat",kC="firebase",DC="9.6.3";/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const Pm="[DEFAULT]",PC={[eu]:"fire-core",[oC]:"fire-core-compat",[lC]:"fire-analytics",[aC]:"fire-analytics-compat",[cC]:"fire-app-check",[uC]:"fire-app-check-compat",[dC]:"fire-auth",[fC]:"fire-auth-compat",[hC]:"fire-rtdb",[pC]:"fire-rtdb-compat",[mC]:"fire-fn",[gC]:"fire-fn-compat",[vC]:"fire-iid",[_C]:"fire-iid-compat",[yC]:"fire-fcm",[bC]:"fire-fcm-compat",[wC]:"fire-perf",[EC]:"fire-perf-compat",[TC]:"fire-rc",[CC]:"fire-rc-compat",[SC]:"fire-gcs",[AC]:"fire-gcs-compat",[IC]:"fire-fst",[OC]:"fire-fst-compat","fire-js":"fire-js",[kC]:"fire-js-all"};/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const Ro=new Map,tu=new Map;function NC(t,e){try{t.container.addComponent(e)}catch(n){oc.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`,n)}}function Lo(t){const e=t.name;if(tu.has(e))return oc.debug(`There were multiple attempts to register component ${e}.`),!1;tu.set(e,t);for(const n of Ro.values())NC(n,t);return!0}function Nm(t,e){return t.container.getProvider(e)}/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const MC={["no-app"]:"No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",["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",["invalid-app-argument"]:"firebase.{$appName}() takes either no argument or a Firebase App instance.",["invalid-log-argument"]:"First argument to `onLog` must be null or a function."},$o=new $s("app","Firebase",MC);/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class xC{constructor(e,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 As("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 $o.create("app-deleted",{appName:this._name})}}/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const _a=DC;function EN(t,e={}){typeof e!="object"&&(e={name:e});const n=Object.assign({name:Pm,automaticDataCollectionEnabled:!1},e),r=n.name;if(typeof r!="string"||!r)throw $o.create("bad-app-name",{appName:String(r)});const i=Ro.get(r);if(i){if(xo(t,i.options)&&xo(n,i.config))return i;throw $o.create("duplicate-app",{appName:r})}const s=new ZT(r);for(const a of tu.values())s.addComponent(a);const o=new xC(t,n,s);return Ro.set(r,o),o}function RC(t=Pm){const e=Ro.get(t);if(!e)throw $o.create("no-app",{appName:t});return e}function ai(t,e,n){var r;let i=(r=PC[t])!==null&&r!==void 0?r:t;n&&(i+=`-${n}`);const s=i.match(/\s|\//),o=e.match(/\s|\//);if(s||o){const a=[`Unable to register library "${i}" with version "${e}":`];s&&a.push(`library name "${i}" contains illegal characters (whitespace or "/")`),s&&o&&a.push("and"),o&&a.push(`version name "${e}" contains illegal characters (whitespace or "/")`),oc.warn(a.join(" "));return}Lo(new As(`${i}-version`,()=>({library:i,version:e}),"VERSION"))}/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function LC(t){Lo(new As("platform-logger",e=>new iC(e),"PRIVATE")),ai(eu,Jd,t),ai(eu,Jd,"esm2017"),ai("fire-js","")}LC("");/*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation.
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
purpose with or without fee is hereby granted.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
PERFORMANCE OF THIS SOFTWARE.
|
|
***************************************************************************** */function ac(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function Mm(){return{["dependent-sdk-initialized-before-auth"]:"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}const $C=Mm,xm=new $s("auth","Firebase",Mm());/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const Qd=new Dm("@firebase/auth");function go(t,...e){Qd.logLevel<=Be.ERROR&&Qd.error(`Auth (${_a}): ${t}`,...e)}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function Wt(t,...e){throw lc(t,...e)}function un(t,...e){return lc(t,...e)}function BC(t,e,n){const r=Object.assign(Object.assign({},$C()),{[e]:n});return new $s("auth","Firebase",r).create(e,{appName:t.name})}function lc(t,...e){if(typeof t!="string"){const n=e[0],r=[...e.slice(1)];return r[0]&&(r[0].appName=t.name),t._errorFactory.create(n,...r)}return xm.create(t,...e)}function me(t,e,...n){if(!t)throw lc(e,...n)}function yn(t){const e="INTERNAL ASSERTION FAILED: "+t;throw go(e),new Error(e)}function Cn(t,e){t||yn(e)}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const Zd=new Map;function bn(t){Cn(t instanceof Function,"Expected a class definition");let e=Zd.get(t);return e?(Cn(e instanceof t,"Instance stored in cache mismatched with class"),e):(e=new t,Zd.set(t,e),e)}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function UC(t,e){const n=Nm(t,"auth");if(n.isInitialized()){const i=n.getImmediate(),s=n.getOptions();if(xo(s,e!=null?e:{}))return i;Wt(i,"already-initialized")}return n.initialize({options:e})}function HC(t,e){const n=(e==null?void 0:e.persistence)||[],r=(Array.isArray(n)?n:[n]).map(bn);e!=null&&e.errorMap&&t._updateErrorMap(e.errorMap),t._initializeWithPersistence(r,e==null?void 0:e.popupRedirectResolver)}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function nu(){var t;return typeof self!="undefined"&&((t=self.location)===null||t===void 0?void 0:t.href)||""}function FC(){return ef()==="http:"||ef()==="https:"}function ef(){var t;return typeof self!="undefined"&&((t=self.location)===null||t===void 0?void 0:t.protocol)||null}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function VC(){return typeof navigator!="undefined"&&navigator&&"onLine"in navigator&&typeof navigator.onLine=="boolean"&&(FC()||HT()||"connection"in navigator)?navigator.onLine:!0}function jC(){if(typeof navigator=="undefined")return null;const t=navigator;return t.languages&&t.languages[0]||t.language||null}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class Us{constructor(e,n){this.shortDelay=e,this.longDelay=n,Cn(n>e,"Short delay should be less than long delay!"),this.isMobile=UT()||FT()}get(){return VC()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function uc(t,e){Cn(t.emulator,"Emulator should always be set here");const{url:n}=t.emulator;return e?`${n}${e.startsWith("/")?e.slice(1):e}`:n}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class Rm{static initialize(e,n,r){this.fetchImpl=e,n&&(this.headersImpl=n),r&&(this.responseImpl=r)}static fetch(){if(this.fetchImpl)return this.fetchImpl;if(typeof self!="undefined"&&"fetch"in self)return self.fetch;yn("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){if(this.headersImpl)return this.headersImpl;if(typeof self!="undefined"&&"Headers"in self)return self.Headers;yn("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){if(this.responseImpl)return this.responseImpl;if(typeof self!="undefined"&&"Response"in self)return self.Response;yn("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const WC={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"internal-error",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error"};/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const qC=new Us(3e4,6e4);function ya(t,e){return t.tenantId&&!e.tenantId?Object.assign(Object.assign({},e),{tenantId:t.tenantId}):e}async function Hs(t,e,n,r,i={}){return Lm(t,i,async()=>{let s={},o={};r&&(e==="GET"?o=r:s={body:JSON.stringify(r)});const a=Bs(Object.assign({key:t.config.apiKey},o)).slice(1),l=await t._getAdditionalHeaders();return l["Content-Type"]="application/json",t.languageCode&&(l["X-Firebase-Locale"]=t.languageCode),Rm.fetch()($m(t,t.config.apiHost,n,a),Object.assign({method:e,headers:l,referrerPolicy:"no-referrer"},s))})}async function Lm(t,e,n){t._canInitEmulator=!1;const r=Object.assign(Object.assign({},WC),e);try{const i=new KC(t),s=await Promise.race([n(),i.promise]);i.clearNetworkTimeout();const o=await s.json();if("needConfirmation"in o)throw Xa(t,"account-exists-with-different-credential",o);if(s.ok&&!("errorMessage"in o))return o;{const a=s.ok?o.errorMessage:o.error.message,[l,u]=a.split(" : ");if(l==="FEDERATED_USER_ID_ALREADY_LINKED")throw Xa(t,"credential-already-in-use",o);if(l==="EMAIL_EXISTS")throw Xa(t,"email-already-in-use",o);const c=r[l]||l.toLowerCase().replace(/[_\s]+/g,"-");if(u)throw BC(t,c,u);Wt(t,c)}}catch(i){if(i instanceof Ni)throw i;Wt(t,"network-request-failed")}}async function ba(t,e,n,r,i={}){const s=await Hs(t,e,n,r,i);return"mfaPendingCredential"in s&&Wt(t,"multi-factor-auth-required",{_serverResponse:s}),s}function $m(t,e,n,r){const i=`${e}${n}?${r}`;return t.config.emulator?uc(t.config,i):`${t.config.apiScheme}://${i}`}class KC{constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((n,r)=>{this.timer=setTimeout(()=>r(un(this.auth,"timeout")),qC.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function Xa(t,e,n){const r={appName:t.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const i=un(t,e,r);return i.customData._tokenResponse=n,i}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/async function YC(t,e){return Hs(t,"POST","/v1/accounts:delete",e)}async function zC(t,e){return Hs(t,"POST","/v1/accounts:lookup",e)}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function us(t){if(!!t)try{const e=new Date(Number(t));if(!isNaN(e.getTime()))return e.toUTCString()}catch{}}async function GC(t,e=!1){const n=Ur(t),r=await n.getIdToken(e),i=cc(r);me(i&&i.exp&&i.auth_time&&i.iat,n.auth,"internal-error");const s=typeof i.firebase=="object"?i.firebase:void 0,o=s==null?void 0:s.sign_in_provider;return{claims:i,token:r,authTime:us(Ja(i.auth_time)),issuedAtTime:us(Ja(i.iat)),expirationTime:us(Ja(i.exp)),signInProvider:o||null,signInSecondFactor:(s==null?void 0:s.sign_in_second_factor)||null}}function Ja(t){return Number(t)*1e3}function cc(t){const[e,n,r]=t.split(".");if(e===void 0||n===void 0||r===void 0)return go("JWT malformed, contained fewer than 3 sections"),null;try{const i=$T(n);return i?JSON.parse(i):(go("Failed to decode base64 JWT payload"),null)}catch(i){return go("Caught error parsing JWT payload as JSON",i),null}}function XC(t){const e=cc(t);return me(e,"internal-error"),me(typeof e.exp!="undefined","internal-error"),me(typeof e.iat!="undefined","internal-error"),Number(e.exp)-Number(e.iat)}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/async function Is(t,e,n=!1){if(n)return e;try{return await e}catch(r){throw r instanceof Ni&&JC(r)&&t.auth.currentUser===t&&await t.auth.signOut(),r}}function JC({code:t}){return t==="auth/user-disabled"||t==="auth/user-token-expired"}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class QC{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){!this.isRunning||(this.isRunning=!1,this.timerId!==null&&clearTimeout(this.timerId))}getInterval(e){var n;if(e){const r=this.errorBackoff;return this.errorBackoff=Math.min(this.errorBackoff*2,96e4),r}else{this.errorBackoff=3e4;const i=((n=this.user.stsTokenManager.expirationTime)!==null&&n!==void 0?n:0)-Date.now()-3e5;return Math.max(0,i)}}schedule(e=!1){if(!this.isRunning)return;const n=this.getInterval(e);this.timerId=setTimeout(async()=>{await this.iteration()},n)}async iteration(){try{await this.user.getIdToken(!0)}catch(e){e.code==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()}}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class Bm{constructor(e,n){this.createdAt=e,this.lastLoginAt=n,this._initializeTime()}_initializeTime(){this.lastSignInTime=us(this.lastLoginAt),this.creationTime=us(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/async function Bo(t){var e;const n=t.auth,r=await t.getIdToken(),i=await Is(t,zC(n,{idToken:r}));me(i==null?void 0:i.users.length,n,"internal-error");const s=i.users[0];t._notifyReloadListener(s);const o=!((e=s.providerUserInfo)===null||e===void 0)&&e.length?tS(s.providerUserInfo):[],a=eS(t.providerData,o),l=t.isAnonymous,u=!(t.email&&s.passwordHash)&&!(a!=null&&a.length),c=l?u:!1,d={uid:s.localId,displayName:s.displayName||null,photoURL:s.photoUrl||null,email:s.email||null,emailVerified:s.emailVerified||!1,phoneNumber:s.phoneNumber||null,tenantId:s.tenantId||null,providerData:a,metadata:new Bm(s.createdAt,s.lastLoginAt),isAnonymous:c};Object.assign(t,d)}async function ZC(t){const e=Ur(t);await Bo(e),await e.auth._persistUserIfCurrent(e),e.auth._notifyListenersIfCurrent(e)}function eS(t,e){return[...t.filter(r=>!e.some(i=>i.providerId===r.providerId)),...e]}function tS(t){return t.map(e=>{var{providerId:n}=e,r=ac(e,["providerId"]);return{providerId:n,uid:r.rawId||"",displayName:r.displayName||null,email:r.email||null,phoneNumber:r.phoneNumber||null,photoURL:r.photoUrl||null}})}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/async function nS(t,e){const n=await Lm(t,{},async()=>{const r=Bs({grant_type:"refresh_token",refresh_token:e}).slice(1),{tokenApiHost:i,apiKey:s}=t.config,o=$m(t,i,"/v1/token",`key=${s}`),a=await t._getAdditionalHeaders();return a["Content-Type"]="application/x-www-form-urlencoded",Rm.fetch()(o,{method:"POST",headers:a,body:r})});return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class Os{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){me(e.idToken,"internal-error"),me(typeof e.idToken!="undefined","internal-error"),me(typeof e.refreshToken!="undefined","internal-error");const n="expiresIn"in e&&typeof e.expiresIn!="undefined"?Number(e.expiresIn):XC(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,n)}async getToken(e,n=!1){return me(!this.accessToken||this.refreshToken,e,"user-token-expired"),!n&&this.accessToken&&!this.isExpired?this.accessToken:this.refreshToken?(await this.refresh(e,this.refreshToken),this.accessToken):null}clearRefreshToken(){this.refreshToken=null}async refresh(e,n){const{accessToken:r,refreshToken:i,expiresIn:s}=await nS(e,n);this.updateTokensAndExpiration(r,i,Number(s))}updateTokensAndExpiration(e,n,r){this.refreshToken=n||null,this.accessToken=e||null,this.expirationTime=Date.now()+r*1e3}static fromJSON(e,n){const{refreshToken:r,accessToken:i,expirationTime:s}=n,o=new Os;return r&&(me(typeof r=="string","internal-error",{appName:e}),o.refreshToken=r),i&&(me(typeof i=="string","internal-error",{appName:e}),o.accessToken=i),s&&(me(typeof s=="number","internal-error",{appName:e}),o.expirationTime=s),o}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new Os,this.toJSON())}_performRefresh(){return yn("not implemented")}}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function Dn(t,e){me(typeof t=="string"||typeof t=="undefined","internal-error",{appName:e})}class Cr{constructor(e){var{uid:n,auth:r,stsTokenManager:i}=e,s=ac(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.emailVerified=!1,this.isAnonymous=!1,this.tenantId=null,this.providerData=[],this.proactiveRefresh=new QC(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=n,this.auth=r,this.stsTokenManager=i,this.accessToken=i.accessToken,this.displayName=s.displayName||null,this.email=s.email||null,this.emailVerified=s.emailVerified||!1,this.phoneNumber=s.phoneNumber||null,this.photoURL=s.photoURL||null,this.isAnonymous=s.isAnonymous||!1,this.tenantId=s.tenantId||null,this.metadata=new Bm(s.createdAt||void 0,s.lastLoginAt||void 0)}async getIdToken(e){const n=await Is(this,this.stsTokenManager.getToken(this.auth,e));return me(n,this.auth,"internal-error"),this.accessToken!==n&&(this.accessToken=n,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),n}getIdTokenResult(e){return GC(this,e)}reload(){return ZC(this)}_assign(e){this!==e&&(me(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(n=>Object.assign({},n)),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){return new Cr(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}))}_onReload(e){me(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e,n=!1){let r=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),r=!0),n&&await Bo(this),await this.auth._persistUserIfCurrent(this),r&&this.auth._notifyListenersIfCurrent(this)}async delete(){const e=await this.getIdToken();return await Is(this,YC(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(e=>Object.assign({},e)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,n){var r,i,s,o,a,l,u,c;const d=(r=n.displayName)!==null&&r!==void 0?r:void 0,h=(i=n.email)!==null&&i!==void 0?i:void 0,f=(s=n.phoneNumber)!==null&&s!==void 0?s:void 0,E=(o=n.photoURL)!==null&&o!==void 0?o:void 0,w=(a=n.tenantId)!==null&&a!==void 0?a:void 0,T=(l=n._redirectEventId)!==null&&l!==void 0?l:void 0,C=(u=n.createdAt)!==null&&u!==void 0?u:void 0,O=(c=n.lastLoginAt)!==null&&c!==void 0?c:void 0,{uid:_,emailVerified:x,isAnonymous:W,providerData:X,stsTokenManager:m}=n;me(_&&m,e,"internal-error");const P=Os.fromJSON(this.name,m);me(typeof _=="string",e,"internal-error"),Dn(d,e.name),Dn(h,e.name),me(typeof x=="boolean",e,"internal-error"),me(typeof W=="boolean",e,"internal-error"),Dn(f,e.name),Dn(E,e.name),Dn(w,e.name),Dn(T,e.name),Dn(C,e.name),Dn(O,e.name);const R=new Cr({uid:_,auth:e,email:h,emailVerified:x,displayName:d,isAnonymous:W,photoURL:E,phoneNumber:f,tenantId:w,stsTokenManager:P,createdAt:C,lastLoginAt:O});return X&&Array.isArray(X)&&(R.providerData=X.map(B=>Object.assign({},B))),T&&(R._redirectEventId=T),R}static async _fromIdTokenResponse(e,n,r=!1){const i=new Os;i.updateFromServerResponse(n);const s=new Cr({uid:n.localId,auth:e,stsTokenManager:i,isAnonymous:r});return await Bo(s),s}}/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class Um{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(e,n){this.storage[e]=n}async _get(e){const n=this.storage[e];return n===void 0?null:n}async _remove(e){delete this.storage[e]}_addListener(e,n){}_removeListener(e,n){}}Um.type="NONE";const tf=Um;/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function vo(t,e,n){return`firebase:${t}:${e}:${n}`}class li{constructor(e,n,r){this.persistence=e,this.auth=n,this.userKey=r;const{config:i,name:s}=this.auth;this.fullUserKey=vo(this.userKey,i.apiKey,s),this.fullPersistenceKey=vo("persistence",i.apiKey,s),this.boundEventHandler=n._onStorageEvent.bind(n),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){const e=await this.persistence._get(this.fullUserKey);return e?Cr._fromJSON(this.auth,e):null}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;const n=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=e,n)return this.setCurrentUser(n)}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(e,n,r="authUser"){if(!n.length)return new li(bn(tf),e,r);const i=(await Promise.all(n.map(async u=>{if(await u._isAvailable())return u}))).filter(u=>u);let s=i[0]||bn(tf);const o=vo(r,e.config.apiKey,e.name);let a=null;for(const u of n)try{const c=await u._get(o);if(c){const d=Cr._fromJSON(e,c);u!==s&&(a=d),s=u;break}}catch{}const l=i.filter(u=>u._shouldAllowMigration);return!s._shouldAllowMigration||!l.length?new li(s,e,r):(s=l[0],a&&await s._set(o,a.toJSON()),await Promise.all(n.map(async u=>{if(u!==s)try{await u._remove(o)}catch{}})),new li(s,e,r))}}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function nf(t){const e=t.toLowerCase();if(e.includes("opera/")||e.includes("opr/")||e.includes("opios/"))return"Opera";if(Vm(e))return"IEMobile";if(e.includes("msie")||e.includes("trident/"))return"IE";if(e.includes("edge/"))return"Edge";if(Hm(e))return"Firefox";if(e.includes("silk/"))return"Silk";if(Wm(e))return"Blackberry";if(qm(e))return"Webos";if(dc(e))return"Safari";if((e.includes("chrome/")||Fm(e))&&!e.includes("edge/"))return"Chrome";if(jm(e))return"Android";{const n=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,r=t.match(n);if((r==null?void 0:r.length)===2)return r[1]}return"Other"}function Hm(t=ct()){return/firefox\//i.test(t)}function dc(t=ct()){const e=t.toLowerCase();return e.includes("safari/")&&!e.includes("chrome/")&&!e.includes("crios/")&&!e.includes("android")}function Fm(t=ct()){return/crios\//i.test(t)}function Vm(t=ct()){return/iemobile/i.test(t)}function jm(t=ct()){return/android/i.test(t)}function Wm(t=ct()){return/blackberry/i.test(t)}function qm(t=ct()){return/webos/i.test(t)}function wa(t=ct()){return/iphone|ipad|ipod/i.test(t)}function rS(t=ct()){var e;return wa(t)&&!!(!((e=window.navigator)===null||e===void 0)&&e.standalone)}function iS(){return VT()&&document.documentMode===10}function Km(t=ct()){return wa(t)||jm(t)||qm(t)||Wm(t)||/windows phone/i.test(t)||Vm(t)}function sS(){try{return!!(window&&window!==window.top)}catch{return!1}}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function Ym(t,e=[]){let n;switch(t){case"Browser":n=nf(ct());break;case"Worker":n=`${nf(ct())}-${t}`;break;default:n=t}const r=e.length?e.join(","):"FirebaseCore-web";return`${n}/JsCore/${_a}/${r}`}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class oS{constructor(e,n){this.app=e,this.config=n,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new rf(this),this.idTokenSubscription=new rf(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=xm,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=n.sdkClientVersion}_initializeWithPersistence(e,n){return n&&(this._popupRedirectResolver=bn(n)),this._initializationPromise=this.queue(async()=>{var r,i;if(!this._deleted&&(this.persistenceManager=await li.create(this,e),!this._deleted)){if(!((r=this._popupRedirectResolver)===null||r===void 0)&&r._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch{}await this.initializeCurrentUser(n),this.lastNotifiedUid=((i=this.currentUser)===null||i===void 0?void 0:i.uid)||null,!this._deleted&&(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const e=await this.assertedPersistence.getCurrentUser();if(!(!this.currentUser&&!e)){if(this.currentUser&&e&&this.currentUser.uid===e.uid){this._currentUser._assign(e),await this.currentUser.getIdToken();return}await this._updateCurrentUser(e)}}async initializeCurrentUser(e){var n;let r=await this.assertedPersistence.getCurrentUser();if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const i=(n=this.redirectUser)===null||n===void 0?void 0:n._redirectEventId,s=r==null?void 0:r._redirectEventId,o=await this.tryRedirectSignIn(e);(!i||i===s)&&(o==null?void 0:o.user)&&(r=o.user)}return r?r._redirectEventId?(me(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===r._redirectEventId?this.directlySetCurrentUser(r):this.reloadAndSetCurrentUserOrClear(r)):this.reloadAndSetCurrentUserOrClear(r):this.directlySetCurrentUser(null)}async tryRedirectSignIn(e){let n=null;try{n=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch{await this._setRedirectUser(null)}return n}async reloadAndSetCurrentUserOrClear(e){try{await Bo(e)}catch(n){if(n.code!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=jC()}async _delete(){this._deleted=!0}async updateCurrentUser(e){const n=e?Ur(e):null;return n&&me(n.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(n&&n._clone(this))}async _updateCurrentUser(e){if(!this._deleted)return e&&me(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),this.queue(async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners()})}async signOut(){return(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null)}setPersistence(e){return this.queue(async()=>{await this.assertedPersistence.setPersistence(bn(e))})}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(e){this._errorFactory=new $s("auth","Firebase",e())}onAuthStateChanged(e,n,r){return this.registerStateListener(this.authStateSubscription,e,n,r)}onIdTokenChanged(e,n,r){return this.registerStateListener(this.idTokenSubscription,e,n,r)}toJSON(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:(e=this._currentUser)===null||e===void 0?void 0:e.toJSON()}}async _setRedirectUser(e,n){const r=await this.getOrInitRedirectPersistenceManager(n);return e===null?r.removeCurrentUser():r.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){const n=e&&bn(e)||this._popupRedirectResolver;me(n,this,"argument-error"),this.redirectPersistenceManager=await li.create(this,[bn(n._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){var n,r;return this._isInitialized&&await this.queue(async()=>{}),((n=this._currentUser)===null||n===void 0?void 0:n._redirectEventId)===e?this._currentUser:((r=this.redirectUser)===null||r===void 0?void 0:r._redirectEventId)===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(e))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var e,n;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const r=(n=(e=this.currentUser)===null||e===void 0?void 0:e.uid)!==null&&n!==void 0?n:null;this.lastNotifiedUid!==r&&(this.lastNotifiedUid=r,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,n,r,i){if(this._deleted)return()=>{};const s=typeof n=="function"?n:n.next.bind(n),o=this._isInitialized?Promise.resolve():this._initializationPromise;return me(o,this,"internal-error"),o.then(()=>s(this.currentUser)),typeof n=="function"?e.addObserver(n,r,i):e.addObserver(n)}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&(this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh()),this.currentUser=e,e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return me(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){!e||this.frameworks.includes(e)||(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=Ym(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){const e={["X-Client-Version"]:this.clientVersion};return this.app.options.appId&&(e["X-Firebase-gmpid"]=this.app.options.appId),e}}function fc(t){return Ur(t)}class rf{constructor(e){this.auth=e,this.observer=null,this.addObserver=YT(n=>this.observer=n)}get next(){return me(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class hc{constructor(e,n){this.providerId=e,this.signInMethod=n}toJSON(){return yn("not implemented")}_getIdTokenResponse(e){return yn("not implemented")}_linkToIdToken(e,n){return yn("not implemented")}_getReauthenticationResolver(e){return yn("not implemented")}}async function aS(t,e){return Hs(t,"POST","/v1/accounts:update",e)}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/async function lS(t,e){return ba(t,"POST","/v1/accounts:signInWithPassword",ya(t,e))}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/async function uS(t,e){return ba(t,"POST","/v1/accounts:signInWithEmailLink",ya(t,e))}async function cS(t,e){return ba(t,"POST","/v1/accounts:signInWithEmailLink",ya(t,e))}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class ks extends hc{constructor(e,n,r,i=null){super("password",r);this._email=e,this._password=n,this._tenantId=i}static _fromEmailAndPassword(e,n){return new ks(e,n,"password")}static _fromEmailAndCode(e,n,r=null){return new ks(e,n,"emailLink",r)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(e){const n=typeof e=="string"?JSON.parse(e):e;if((n==null?void 0:n.email)&&(n==null?void 0:n.password)){if(n.signInMethod==="password")return this._fromEmailAndPassword(n.email,n.password);if(n.signInMethod==="emailLink")return this._fromEmailAndCode(n.email,n.password,n.tenantId)}return null}async _getIdTokenResponse(e){switch(this.signInMethod){case"password":return lS(e,{returnSecureToken:!0,email:this._email,password:this._password});case"emailLink":return uS(e,{email:this._email,oobCode:this._password});default:Wt(e,"internal-error")}}async _linkToIdToken(e,n){switch(this.signInMethod){case"password":return aS(e,{idToken:n,returnSecureToken:!0,email:this._email,password:this._password});case"emailLink":return cS(e,{idToken:n,email:this._email,oobCode:this._password});default:Wt(e,"internal-error")}}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/async function ui(t,e){return ba(t,"POST","/v1/accounts:signInWithIdp",ya(t,e))}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const dS="http://localhost";class Pr extends hc{constructor(){super(...arguments);this.pendingToken=null}static _fromParams(e){const n=new Pr(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(n.idToken=e.idToken),e.accessToken&&(n.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&(n.nonce=e.nonce),e.pendingToken&&(n.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(n.accessToken=e.oauthToken,n.secret=e.oauthTokenSecret):Wt("argument-error"),n}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){const n=typeof e=="string"?JSON.parse(e):e,{providerId:r,signInMethod:i}=n,s=ac(n,["providerId","signInMethod"]);if(!r||!i)return null;const o=new Pr(r,i);return o.idToken=s.idToken||void 0,o.accessToken=s.accessToken||void 0,o.secret=s.secret,o.nonce=s.nonce,o.pendingToken=s.pendingToken||null,o}_getIdTokenResponse(e){const n=this.buildRequest();return ui(e,n)}_linkToIdToken(e,n){const r=this.buildRequest();return r.idToken=n,ui(e,r)}_getReauthenticationResolver(e){const n=this.buildRequest();return n.autoCreate=!1,ui(e,n)}buildRequest(){const e={requestUri:dS,returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{const n={};this.idToken&&(n.id_token=this.idToken),this.accessToken&&(n.access_token=this.accessToken),this.secret&&(n.oauth_token_secret=this.secret),n.providerId=this.providerId,this.nonce&&!this.pendingToken&&(n.nonce=this.nonce),e.postBody=Bs(n)}return e}}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function fS(t){switch(t){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}function hS(t){const e=Ji(Qi(t)).link,n=e?Ji(Qi(e)).deep_link_id:null,r=Ji(Qi(t)).deep_link_id;return(r?Ji(Qi(r)).link:null)||r||n||e||t}class pc{constructor(e){var n,r,i,s,o,a;const l=Ji(Qi(e)),u=(n=l.apiKey)!==null&&n!==void 0?n:null,c=(r=l.oobCode)!==null&&r!==void 0?r:null,d=fS((i=l.mode)!==null&&i!==void 0?i:null);me(u&&c&&d,"argument-error"),this.apiKey=u,this.operation=d,this.code=c,this.continueUrl=(s=l.continueUrl)!==null&&s!==void 0?s:null,this.languageCode=(o=l.languageCode)!==null&&o!==void 0?o:null,this.tenantId=(a=l.tenantId)!==null&&a!==void 0?a:null}static parseLink(e){const n=hS(e);try{return new pc(n)}catch{return null}}}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class Mi{constructor(){this.providerId=Mi.PROVIDER_ID}static credential(e,n){return ks._fromEmailAndPassword(e,n)}static credentialWithLink(e,n){const r=pc.parseLink(n);return me(r,"argument-error"),ks._fromEmailAndCode(e,r.code,r.tenantId)}}Mi.PROVIDER_ID="password";Mi.EMAIL_PASSWORD_SIGN_IN_METHOD="password";Mi.EMAIL_LINK_SIGN_IN_METHOD="emailLink";/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class zm{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}}/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class Fs extends zm{constructor(){super(...arguments);this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class Hn extends Fs{constructor(){super("facebook.com")}static credential(e){return Pr._fromParams({providerId:Hn.PROVIDER_ID,signInMethod:Hn.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return Hn.credentialFromTaggedObject(e)}static credentialFromError(e){return Hn.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return Hn.credential(e.oauthAccessToken)}catch{return null}}}Hn.FACEBOOK_SIGN_IN_METHOD="facebook.com";Hn.PROVIDER_ID="facebook.com";/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class Fn extends Fs{constructor(){super("google.com");this.addScope("profile")}static credential(e,n){return Pr._fromParams({providerId:Fn.PROVIDER_ID,signInMethod:Fn.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:n})}static credentialFromResult(e){return Fn.credentialFromTaggedObject(e)}static credentialFromError(e){return Fn.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthIdToken:n,oauthAccessToken:r}=e;if(!n&&!r)return null;try{return Fn.credential(n,r)}catch{return null}}}Fn.GOOGLE_SIGN_IN_METHOD="google.com";Fn.PROVIDER_ID="google.com";/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class Vn extends Fs{constructor(){super("github.com")}static credential(e){return Pr._fromParams({providerId:Vn.PROVIDER_ID,signInMethod:Vn.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return Vn.credentialFromTaggedObject(e)}static credentialFromError(e){return Vn.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return Vn.credential(e.oauthAccessToken)}catch{return null}}}Vn.GITHUB_SIGN_IN_METHOD="github.com";Vn.PROVIDER_ID="github.com";/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class jn extends Fs{constructor(){super("twitter.com")}static credential(e,n){return Pr._fromParams({providerId:jn.PROVIDER_ID,signInMethod:jn.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:n})}static credentialFromResult(e){return jn.credentialFromTaggedObject(e)}static credentialFromError(e){return jn.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthAccessToken:n,oauthTokenSecret:r}=e;if(!n||!r)return null;try{return jn.credential(n,r)}catch{return null}}}jn.TWITTER_SIGN_IN_METHOD="twitter.com";jn.PROVIDER_ID="twitter.com";/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class wi{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(e,n,r,i=!1){const s=await Cr._fromIdTokenResponse(e,r,i),o=sf(r);return new wi({user:s,providerId:o,_tokenResponse:r,operationType:n})}static async _forOperation(e,n,r){await e._updateTokensIfNecessary(r,!0);const i=sf(r);return new wi({user:e,providerId:i,_tokenResponse:r,operationType:n})}}function sf(t){return t.providerId?t.providerId:"phoneNumber"in t?"phone":null}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class Uo extends Ni{constructor(e,n,r,i){var s;super(n.code,n.message);this.operationType=r,this.user=i,Object.setPrototypeOf(this,Uo.prototype),this.customData={appName:e.name,tenantId:(s=e.tenantId)!==null&&s!==void 0?s:void 0,_serverResponse:n.customData._serverResponse,operationType:r}}static _fromErrorAndOperation(e,n,r,i){return new Uo(e,n,r,i)}}function Gm(t,e,n,r){return(e==="reauthenticate"?n._getReauthenticationResolver(t):n._getIdTokenResponse(t)).catch(s=>{throw s.code==="auth/multi-factor-auth-required"?Uo._fromErrorAndOperation(t,s,e,r):s})}async function pS(t,e,n=!1){const r=await Is(t,e._linkToIdToken(t.auth,await t.getIdToken()),n);return wi._forOperation(t,"link",r)}/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/async function mS(t,e,n=!1){const{auth:r}=t,i="reauthenticate";try{const s=await Is(t,Gm(r,i,e,t),n);me(s.idToken,r,"internal-error");const o=cc(s.idToken);me(o,r,"internal-error");const{sub:a}=o;return me(t.uid===a,r,"user-mismatch"),wi._forOperation(t,i,s)}catch(s){throw(s==null?void 0:s.code)==="auth/user-not-found"&&Wt(r,"user-mismatch"),s}}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/async function Xm(t,e,n=!1){const r="signIn",i=await Gm(t,r,e),s=await wi._fromIdTokenResponse(t,r,i);return n||await t._updateCurrentUser(s.user),s}async function gS(t,e){return Xm(fc(t),e)}function TN(t,e,n){return gS(Ur(t),Mi.credential(e,n))}function CN(t,e,n,r){return Ur(t).onAuthStateChanged(e,n,r)}function SN(t){return Ur(t).signOut()}const Ho="__sak";/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class Jm{constructor(e,n){this.storageRetriever=e,this.type=n}_isAvailable(){try{return this.storage?(this.storage.setItem(Ho,"1"),this.storage.removeItem(Ho),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(e,n){return this.storage.setItem(e,JSON.stringify(n)),Promise.resolve()}_get(e){const n=this.storage.getItem(e);return Promise.resolve(n?JSON.parse(n):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function vS(){const t=ct();return dc(t)||wa(t)}const _S=1e3,yS=10;class Qm extends Jm{constructor(){super(()=>window.localStorage,"LOCAL");this.boundEventHandler=(e,n)=>this.onStorageEvent(e,n),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=vS()&&sS(),this.fallbackToPolling=Km(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(const n of Object.keys(this.listeners)){const r=this.storage.getItem(n),i=this.localCache[n];r!==i&&e(n,i,r)}}onStorageEvent(e,n=!1){if(!e.key){this.forAllChangedKeys((o,a,l)=>{this.notifyListeners(o,l)});return}const r=e.key;if(n?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const o=this.storage.getItem(r);if(e.newValue!==o)e.newValue!==null?this.storage.setItem(r,e.newValue):this.storage.removeItem(r);else if(this.localCache[r]===e.newValue&&!n)return}const i=()=>{const o=this.storage.getItem(r);!n&&this.localCache[r]===o||this.notifyListeners(r,o)},s=this.storage.getItem(r);iS()&&s!==e.newValue&&e.newValue!==e.oldValue?setTimeout(i,yS):i()}notifyListeners(e,n){this.localCache[e]=n;const r=this.listeners[e];if(r)for(const i of Array.from(r))i(n&&JSON.parse(n))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((e,n,r)=>{this.onStorageEvent(new StorageEvent("storage",{key:e,oldValue:n,newValue:r}),!0)})},_S)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(e,n){Object.keys(this.listeners).length===0&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(n)}_removeListener(e,n){this.listeners[e]&&(this.listeners[e].delete(n),this.listeners[e].size===0&&delete this.listeners[e]),Object.keys(this.listeners).length===0&&(this.detachListener(),this.stopPolling())}async _set(e,n){await super._set(e,n),this.localCache[e]=JSON.stringify(n)}async _get(e){const n=await super._get(e);return this.localCache[e]=JSON.stringify(n),n}async _remove(e){await super._remove(e),delete this.localCache[e]}}Qm.type="LOCAL";const bS=Qm;/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class Zm extends Jm{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(e,n){}_removeListener(e,n){}}Zm.type="SESSION";const eg=Zm;/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function wS(t){return Promise.all(t.map(async e=>{try{const n=await e;return{fulfilled:!0,value:n}}catch(n){return{fulfilled:!1,reason:n}}}))}/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class Ea{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){const n=this.receivers.find(i=>i.isListeningto(e));if(n)return n;const r=new Ea(e);return this.receivers.push(r),r}isListeningto(e){return this.eventTarget===e}async handleEvent(e){const n=e,{eventId:r,eventType:i,data:s}=n.data,o=this.handlersMap[i];if(!(o!=null&&o.size))return;n.ports[0].postMessage({status:"ack",eventId:r,eventType:i});const a=Array.from(o).map(async u=>u(n.origin,s)),l=await wS(a);n.ports[0].postMessage({status:"done",eventId:r,eventType:i,response:l})}_subscribe(e,n){Object.keys(this.handlersMap).length===0&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(n)}_unsubscribe(e,n){this.handlersMap[e]&&n&&this.handlersMap[e].delete(n),(!n||this.handlersMap[e].size===0)&&delete this.handlersMap[e],Object.keys(this.handlersMap).length===0&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}Ea.receivers=[];/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function mc(t="",e=10){let n="";for(let r=0;r<e;r++)n+=Math.floor(Math.random()*10);return t+n}/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class ES{constructor(e){this.target=e,this.handlers=new Set}removeMessageHandler(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}async _send(e,n,r=50){const i=typeof MessageChannel!="undefined"?new MessageChannel:null;if(!i)throw new Error("connection_unavailable");let s,o;return new Promise((a,l)=>{const u=mc("",20);i.port1.start();const c=setTimeout(()=>{l(new Error("unsupported_event"))},r);o={messageChannel:i,onMessage(d){const h=d;if(h.data.eventId===u)switch(h.data.status){case"ack":clearTimeout(c),s=setTimeout(()=>{l(new Error("timeout"))},3e3);break;case"done":clearTimeout(s),a(h.data.response);break;default:clearTimeout(c),clearTimeout(s),l(new Error("invalid_response"));break}}},this.handlers.add(o),i.port1.addEventListener("message",o.onMessage),this.target.postMessage({eventType:e,eventId:u,data:n},[i.port2])}).finally(()=>{o&&this.removeMessageHandler(o)})}}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function cn(){return window}function TS(t){cn().location.href=t}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function tg(){return typeof cn().WorkerGlobalScope!="undefined"&&typeof cn().importScripts=="function"}async function CS(){if(!(navigator!=null&&navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch{return null}}function SS(){var t;return((t=navigator==null?void 0:navigator.serviceWorker)===null||t===void 0?void 0:t.controller)||null}function AS(){return tg()?self:null}/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const ng="firebaseLocalStorageDb",IS=1,Fo="firebaseLocalStorage",rg="fbase_key";class Vs{constructor(e){this.request=e}toPromise(){return new Promise((e,n)=>{this.request.addEventListener("success",()=>{e(this.request.result)}),this.request.addEventListener("error",()=>{n(this.request.error)})})}}function Ta(t,e){return t.transaction([Fo],e?"readwrite":"readonly").objectStore(Fo)}function OS(){const t=indexedDB.deleteDatabase(ng);return new Vs(t).toPromise()}function ru(){const t=indexedDB.open(ng,IS);return new Promise((e,n)=>{t.addEventListener("error",()=>{n(t.error)}),t.addEventListener("upgradeneeded",()=>{const r=t.result;try{r.createObjectStore(Fo,{keyPath:rg})}catch(i){n(i)}}),t.addEventListener("success",async()=>{const r=t.result;r.objectStoreNames.contains(Fo)?e(r):(r.close(),await OS(),e(await ru()))})})}async function of(t,e,n){const r=Ta(t,!0).put({[rg]:e,value:n});return new Vs(r).toPromise()}async function kS(t,e){const n=Ta(t,!1).get(e),r=await new Vs(n).toPromise();return r===void 0?null:r.value}function af(t,e){const n=Ta(t,!0).delete(e);return new Vs(n).toPromise()}const DS=800,PS=3;class ig{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}async _openDb(){return this.db?this.db:(this.db=await ru(),this.db)}async _withRetries(e){let n=0;for(;;)try{const r=await this._openDb();return await e(r)}catch(r){if(n++>PS)throw r;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return tg()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=Ea._getInstance(AS()),this.receiver._subscribe("keyChanged",async(e,n)=>({keyProcessed:(await this._poll()).includes(n.key)})),this.receiver._subscribe("ping",async(e,n)=>["keyChanged"])}async initializeSender(){var e,n;if(this.activeServiceWorker=await CS(),!this.activeServiceWorker)return;this.sender=new ES(this.activeServiceWorker);const r=await this.sender._send("ping",{},800);!r||((e=r[0])===null||e===void 0?void 0:e.fulfilled)&&((n=r[0])===null||n===void 0?void 0:n.value.includes("keyChanged"))&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(e){if(!(!this.sender||!this.activeServiceWorker||SS()!==this.activeServiceWorker))try{await this.sender._send("keyChanged",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch{}}async _isAvailable(){try{if(!indexedDB)return!1;const e=await ru();return await of(e,Ho,"1"),await af(e,Ho),!0}catch{}return!1}async _withPendingWrite(e){this.pendingWrites++;try{await e()}finally{this.pendingWrites--}}async _set(e,n){return this._withPendingWrite(async()=>(await this._withRetries(r=>of(r,e,n)),this.localCache[e]=n,this.notifyServiceWorker(e)))}async _get(e){const n=await this._withRetries(r=>kS(r,e));return this.localCache[e]=n,n}async _remove(e){return this._withPendingWrite(async()=>(await this._withRetries(n=>af(n,e)),delete this.localCache[e],this.notifyServiceWorker(e)))}async _poll(){const e=await this._withRetries(i=>{const s=Ta(i,!1).getAll();return new Vs(s).toPromise()});if(!e)return[];if(this.pendingWrites!==0)return[];const n=[],r=new Set;for(const{fbase_key:i,value:s}of e)r.add(i),JSON.stringify(this.localCache[i])!==JSON.stringify(s)&&(this.notifyListeners(i,s),n.push(i));for(const i of Object.keys(this.localCache))this.localCache[i]&&!r.has(i)&&(this.notifyListeners(i,null),n.push(i));return n}notifyListeners(e,n){this.localCache[e]=n;const r=this.listeners[e];if(r)for(const i of Array.from(r))i(n)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),DS)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(e,n){Object.keys(this.listeners).length===0&&this.startPolling(),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(n)}_removeListener(e,n){this.listeners[e]&&(this.listeners[e].delete(n),this.listeners[e].size===0&&delete this.listeners[e]),Object.keys(this.listeners).length===0&&this.stopPolling()}}ig.type="LOCAL";const NS=ig;/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function MS(){var t,e;return(e=(t=document.getElementsByTagName("head"))===null||t===void 0?void 0:t[0])!==null&&e!==void 0?e:document}function xS(t){return new Promise((e,n)=>{const r=document.createElement("script");r.setAttribute("src",t),r.onload=e,r.onerror=i=>{const s=un("internal-error");s.customData=i,n(s)},r.type="text/javascript",r.charset="UTF-8",MS().appendChild(r)})}function RS(t){return`__${t}${Math.floor(Math.random()*1e6)}`}new Us(3e4,6e4);/**
|
|
* @license
|
|
* Copyright 2021 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function LS(t,e){return e?bn(e):(me(t._popupRedirectResolver,t,"argument-error"),t._popupRedirectResolver)}/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class gc extends hc{constructor(e){super("custom","custom");this.params=e}_getIdTokenResponse(e){return ui(e,this._buildIdpRequest())}_linkToIdToken(e,n){return ui(e,this._buildIdpRequest(n))}_getReauthenticationResolver(e){return ui(e,this._buildIdpRequest())}_buildIdpRequest(e){const n={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(n.idToken=e),n}}function $S(t){return Xm(t.auth,new gc(t),t.bypassAuthState)}function BS(t){const{auth:e,user:n}=t;return me(n,e,"internal-error"),mS(n,new gc(t),t.bypassAuthState)}async function US(t){const{auth:e,user:n}=t;return me(n,e,"internal-error"),pS(n,new gc(t),t.bypassAuthState)}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class sg{constructor(e,n,r,i,s=!1){this.auth=e,this.resolver=r,this.user=i,this.bypassAuthState=s,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(n)?n:[n]}execute(){return new Promise(async(e,n)=>{this.pendingPromise={resolve:e,reject:n};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(r){this.reject(r)}})}async onAuthEvent(e){const{urlResponse:n,sessionId:r,postBody:i,tenantId:s,error:o,type:a}=e;if(o){this.reject(o);return}const l={auth:this.auth,requestUri:n,sessionId:r,tenantId:s||void 0,postBody:i||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(a)(l))}catch(u){this.reject(u)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return $S;case"linkViaPopup":case"linkViaRedirect":return US;case"reauthViaPopup":case"reauthViaRedirect":return BS;default:Wt(this.auth,"internal-error")}}resolve(e){Cn(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){Cn(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const HS=new Us(2e3,1e4);class ti extends sg{constructor(e,n,r,i,s){super(e,n,i,s);this.provider=r,this.authWindow=null,this.pollId=null,ti.currentPopupAction&&ti.currentPopupAction.cancel(),ti.currentPopupAction=this}async executeNotNull(){const e=await this.execute();return me(e,this.auth,"internal-error"),e}async onExecution(){Cn(this.filter.length===1,"Popup operations only handle one event");const e=mc();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],e),this.authWindow.associatedEvent=e,this.resolver._originValidation(this.auth).catch(n=>{this.reject(n)}),this.resolver._isIframeWebStorageSupported(this.auth,n=>{n||this.reject(un(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){var e;return((e=this.authWindow)===null||e===void 0?void 0:e.associatedEvent)||null}cancel(){this.reject(un(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,ti.currentPopupAction=null}pollUserCancellation(){const e=()=>{var n,r;if(!((r=(n=this.authWindow)===null||n===void 0?void 0:n.window)===null||r===void 0)&&r.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(un(this.auth,"popup-closed-by-user"))},2e3);return}this.pollId=window.setTimeout(e,HS.get())};e()}}ti.currentPopupAction=null;/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const FS="pendingRedirect",Qa=new Map;class VS extends sg{constructor(e,n,r=!1){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],n,void 0,r);this.eventId=null}async execute(){let e=Qa.get(this.auth._key());if(!e){try{const r=await jS(this.resolver,this.auth)?await super.execute():null;e=()=>Promise.resolve(r)}catch(n){e=()=>Promise.reject(n)}Qa.set(this.auth._key(),e)}return this.bypassAuthState||Qa.set(this.auth._key(),()=>Promise.resolve(null)),e()}async onAuthEvent(e){if(e.type==="signInViaRedirect")return super.onAuthEvent(e);if(e.type==="unknown"){this.resolve(null);return}if(e.eventId){const n=await this.auth._redirectUserForId(e.eventId);if(n)return this.user=n,super.onAuthEvent(e);this.resolve(null)}}async onExecution(){}cleanUp(){}}async function jS(t,e){const n=qS(e),r=WS(t);if(!await r._isAvailable())return!1;const i=await r._get(n)==="true";return await r._remove(n),i}function WS(t){return bn(t._redirectPersistence)}function qS(t){return vo(FS,t.config.apiKey,t.name)}async function KS(t,e,n=!1){const r=fc(t),i=LS(r,e),o=await new VS(r,i,n).execute();return o&&!n&&(delete o.user._redirectEventId,await r._persistUserIfCurrent(o.user),await r._setRedirectUser(null,e)),o}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const YS=10*60*1e3;class zS{constructor(e){this.auth=e,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(e){this.consumers.delete(e)}onEvent(e){if(this.hasEventBeenHandled(e))return!1;let n=!1;return this.consumers.forEach(r=>{this.isEventForConsumer(e,r)&&(n=!0,this.sendToConsumer(e,r),this.saveEventToCache(e))}),this.hasHandledPotentialRedirect||!GS(e)||(this.hasHandledPotentialRedirect=!0,n||(this.queuedRedirectEvent=e,n=!0)),n}sendToConsumer(e,n){var r;if(e.error&&!og(e)){const i=((r=e.error.code)===null||r===void 0?void 0:r.split("auth/")[1])||"internal-error";n.onError(un(this.auth,i))}else n.onAuthEvent(e)}isEventForConsumer(e,n){const r=n.eventId===null||!!e.eventId&&e.eventId===n.eventId;return n.filter.includes(e.type)&&r}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=YS&&this.cachedEventUids.clear(),this.cachedEventUids.has(lf(e))}saveEventToCache(e){this.cachedEventUids.add(lf(e)),this.lastProcessedEventTime=Date.now()}}function lf(t){return[t.type,t.eventId,t.sessionId,t.tenantId].filter(e=>e).join("-")}function og({type:t,error:e}){return t==="unknown"&&(e==null?void 0:e.code)==="auth/no-auth-event"}function GS(t){switch(t.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return og(t);default:return!1}}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/async function XS(t,e={}){return Hs(t,"GET","/v1/projects",e)}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const JS=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,QS=/^https?/;async function ZS(t){if(t.config.emulator)return;const{authorizedDomains:e}=await XS(t);for(const n of e)try{if(eA(n))return}catch{}Wt(t,"unauthorized-domain")}function eA(t){const e=nu(),{protocol:n,hostname:r}=new URL(e);if(t.startsWith("chrome-extension://")){const o=new URL(t);return o.hostname===""&&r===""?n==="chrome-extension:"&&t.replace("chrome-extension://","")===e.replace("chrome-extension://",""):n==="chrome-extension:"&&o.hostname===r}if(!QS.test(n))return!1;if(JS.test(t))return r===t;const i=t.replace(/\./g,"\\.");return new RegExp("^(.+\\."+i+"|"+i+")$","i").test(r)}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const tA=new Us(3e4,6e4);function uf(){const t=cn().___jsl;if(t!=null&&t.H){for(const e of Object.keys(t.H))if(t.H[e].r=t.H[e].r||[],t.H[e].L=t.H[e].L||[],t.H[e].r=[...t.H[e].L],t.CP)for(let n=0;n<t.CP.length;n++)t.CP[n]=null}}function nA(t){return new Promise((e,n)=>{var r,i,s;function o(){uf(),gapi.load("gapi.iframes",{callback:()=>{e(gapi.iframes.getContext())},ontimeout:()=>{uf(),n(un(t,"network-request-failed"))},timeout:tA.get()})}if(!((i=(r=cn().gapi)===null||r===void 0?void 0:r.iframes)===null||i===void 0)&&i.Iframe)e(gapi.iframes.getContext());else if(!((s=cn().gapi)===null||s===void 0)&&s.load)o();else{const a=RS("iframefcb");return cn()[a]=()=>{gapi.load?o():n(un(t,"network-request-failed"))},xS(`https://apis.google.com/js/api.js?onload=${a}`).catch(l=>n(l))}}).catch(e=>{throw _o=null,e})}let _o=null;function rA(t){return _o=_o||nA(t),_o}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const iA=new Us(5e3,15e3),sA="__/auth/iframe",oA="emulator/auth/iframe",aA={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},lA=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function uA(t){const e=t.config;me(e.authDomain,t,"auth-domain-config-required");const n=e.emulator?uc(e,oA):`https://${t.config.authDomain}/${sA}`,r={apiKey:e.apiKey,appName:t.name,v:_a},i=lA.get(t.config.apiHost);i&&(r.eid=i);const s=t._getFrameworks();return s.length&&(r.fw=s.join(",")),`${n}?${Bs(r).slice(1)}`}async function cA(t){const e=await rA(t),n=cn().gapi;return me(n,t,"internal-error"),e.open({where:document.body,url:uA(t),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:aA,dontclear:!0},r=>new Promise(async(i,s)=>{await r.restyle({setHideOnLeave:!1});const o=un(t,"network-request-failed"),a=cn().setTimeout(()=>{s(o)},iA.get());function l(){cn().clearTimeout(a),i(r)}r.ping(l).then(l,()=>{s(o)})}))}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const dA={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},fA=500,hA=600,pA="_blank",mA="http://localhost";class cf{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}function gA(t,e,n,r=fA,i=hA){const s=Math.max((window.screen.availHeight-i)/2,0).toString(),o=Math.max((window.screen.availWidth-r)/2,0).toString();let a="";const l=Object.assign(Object.assign({},dA),{width:r.toString(),height:i.toString(),top:s,left:o}),u=ct().toLowerCase();n&&(a=Fm(u)?pA:n),Hm(u)&&(e=e||mA,l.scrollbars="yes");const c=Object.entries(l).reduce((h,[f,E])=>`${h}${f}=${E},`,"");if(rS(u)&&a!=="_self")return vA(e||"",a),new cf(null);const d=window.open(e||"",a,c);me(d,t,"popup-blocked");try{d.focus()}catch{}return new cf(d)}function vA(t,e){const n=document.createElement("a");n.href=t,n.target=e;const r=document.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}/**
|
|
* @license
|
|
* Copyright 2021 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const _A="__/auth/handler",yA="emulator/auth/handler";function df(t,e,n,r,i,s){me(t.config.authDomain,t,"auth-domain-config-required"),me(t.config.apiKey,t,"invalid-api-key");const o={apiKey:t.config.apiKey,appName:t.name,authType:n,redirectUrl:r,v:_a,eventId:i};if(e instanceof zm){e.setDefaultLanguage(t.languageCode),o.providerId=e.providerId||"",KT(e.getCustomParameters())||(o.customParameters=JSON.stringify(e.getCustomParameters()));for(const[l,u]of Object.entries(s||{}))o[l]=u}if(e instanceof Fs){const l=e.getScopes().filter(u=>u!=="");l.length>0&&(o.scopes=l.join(","))}t.tenantId&&(o.tid=t.tenantId);const a=o;for(const l of Object.keys(a))a[l]===void 0&&delete a[l];return`${bA(t)}?${Bs(a).slice(1)}`}function bA({config:t}){return t.emulator?uc(t,yA):`https://${t.authDomain}/${_A}`}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/const Za="webStorageSupport";class wA{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=eg,this._completeRedirectFn=KS}async _openPopup(e,n,r,i){var s;Cn((s=this.eventManagers[e._key()])===null||s===void 0?void 0:s.manager,"_initialize() not called before _openPopup()");const o=df(e,n,r,nu(),i);return gA(e,o,mc())}async _openRedirect(e,n,r,i){return await this._originValidation(e),TS(df(e,n,r,nu(),i)),new Promise(()=>{})}_initialize(e){const n=e._key();if(this.eventManagers[n]){const{manager:i,promise:s}=this.eventManagers[n];return i?Promise.resolve(i):(Cn(s,"If manager is not set, promise should be"),s)}const r=this.initAndGetManager(e);return this.eventManagers[n]={promise:r},r.catch(()=>{delete this.eventManagers[n]}),r}async initAndGetManager(e){const n=await cA(e),r=new zS(e);return n.register("authEvent",i=>(me(i==null?void 0:i.authEvent,e,"invalid-auth-event"),{status:r.onEvent(i.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:r},this.iframes[e._key()]=n,r}_isIframeWebStorageSupported(e,n){this.iframes[e._key()].send(Za,{type:Za},i=>{var s;const o=(s=i==null?void 0:i[0])===null||s===void 0?void 0:s[Za];o!==void 0&&n(!!o),Wt(e,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){const n=e._key();return this.originValidationPromises[n]||(this.originValidationPromises[n]=ZS(e)),this.originValidationPromises[n]}get _shouldInitProactively(){return Km()||dc()||wa()}}const EA=wA;var ff="@firebase/auth",hf="0.19.5";/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/class TA{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){var e;return this.assertAuthConfigured(),((e=this.auth.currentUser)===null||e===void 0?void 0:e.uid)||null}async getToken(e){return this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser?{accessToken:await this.auth.currentUser.getIdToken(e)}:null}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;const n=this.auth.onIdTokenChanged(r=>{var i;e(((i=r)===null||i===void 0?void 0:i.stsTokenManager.accessToken)||null)});this.internalListeners.set(e,n),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();const n=this.internalListeners.get(e);!n||(this.internalListeners.delete(e),n(),this.updateProactiveRefresh())}assertAuthConfigured(){me(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function CA(t){switch(t){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";default:return}}function SA(t){Lo(new As("auth",(e,{options:n})=>{const r=e.getProvider("app").getImmediate(),{apiKey:i,authDomain:s}=r.options;return(o=>{me(i&&!i.includes(":"),"invalid-api-key",{appName:o.name}),me(!(s!=null&&s.includes(":")),"argument-error",{appName:o.name});const a={apiKey:i,authDomain:s,clientPlatform:t,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:Ym(t)},l=new oS(o,a);return HC(l,n),l})(r)},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,n,r)=>{e.getProvider("auth-internal").initialize()})),Lo(new As("auth-internal",e=>{const n=fc(e.getProvider("auth").getImmediate());return(r=>new TA(r))(n)},"PRIVATE").setInstantiationMode("EXPLICIT")),ai(ff,hf,CA(t)),ai(ff,hf,"esm2017")}/**
|
|
* @license
|
|
* Copyright 2021 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/function AN(t=RC()){const e=Nm(t,"auth");return e.isInitialized()?e.getImmediate():UC(t,{popupRedirectResolver:EA,persistence:[NS,bS,eg]})}SA("Browser");var AA="firebase",IA="9.6.3";/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/ai(AA,IA,"app");function ae(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function de(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function _e(t){de(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||typeof t=="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(new Error().stack)),new Date(NaN))}function Sr(t,e){de(2,arguments);var n=_e(t),r=ae(e);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function js(t,e){de(2,arguments);var n=_e(t),r=ae(e);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),s=new Date(n.getTime());s.setMonth(n.getMonth()+r+1,0);var o=s.getDate();return i>=o?s:(n.setFullYear(s.getFullYear(),s.getMonth(),i),n)}function OA(t,e){if(de(2,arguments),!e||typeof e!="object")return new Date(NaN);var n=e.years?ae(e.years):0,r=e.months?ae(e.months):0,i=e.weeks?ae(e.weeks):0,s=e.days?ae(e.days):0,o=e.hours?ae(e.hours):0,a=e.minutes?ae(e.minutes):0,l=e.seconds?ae(e.seconds):0,u=_e(t),c=r||n?js(u,r+n*12):u,d=s||i?Sr(c,s+i*7):c,h=a+o*60,f=l+h*60,E=f*1e3,w=new Date(d.getTime()+E);return w}function kA(t,e){de(2,arguments);var n=_e(t).getTime(),r=ae(e);return new Date(n+r)}function ag(t,e){de(1,arguments);var n=e||{},r=n.locale,i=r&&r.options&&r.options.weekStartsOn,s=i==null?0:ae(i),o=n.weekStartsOn==null?s:ae(n.weekStartsOn);if(!(o>=0&&o<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var a=_e(t),l=a.getDay(),u=(l<o?7:0)+l-o;return a.setDate(a.getDate()-u),a.setHours(0,0,0,0),a}function Vo(t){return de(1,arguments),ag(t,{weekStartsOn:1})}function DA(t){de(1,arguments);var e=_e(t),n=e.getFullYear(),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var i=Vo(r),s=new Date(0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);var o=Vo(s);return e.getTime()>=i.getTime()?n+1:e.getTime()>=o.getTime()?n:n-1}function PA(t){de(1,arguments);var e=DA(t),n=new Date(0);n.setFullYear(e,0,4),n.setHours(0,0,0,0);var r=Vo(n);return r}function lg(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}function ug(t){return de(1,arguments),t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function cs(t){if(de(1,arguments),!ug(t)&&typeof t!="number")return!1;var e=_e(t);return!isNaN(Number(e))}var NA={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},MA=function(t,e,n){var r,i=NA[t];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},xA=MA;function el(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth,r=t.formats[n]||t.formats[t.defaultWidth];return r}}var RA={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},LA={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},$A={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},BA={date:el({formats:RA,defaultWidth:"full"}),time:el({formats:LA,defaultWidth:"full"}),dateTime:el({formats:$A,defaultWidth:"full"})},UA=BA,HA={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},FA=function(t,e,n,r){return HA[t]},VA=FA;function Hi(t){return function(e,n){var r=n||{},i=r.context?String(r.context):"standalone",s;if(i==="formatting"&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,a=r.width?String(r.width):o;s=t.formattingValues[a]||t.formattingValues[o]}else{var l=t.defaultWidth,u=r.width?String(r.width):t.defaultWidth;s=t.values[u]||t.values[l]}var c=t.argumentCallback?t.argumentCallback(e):e;return s[c]}}var jA={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},WA={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},qA={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},KA={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},YA={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},zA={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},GA=function(t,e){var n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},XA={ordinalNumber:GA,era:Hi({values:jA,defaultWidth:"wide"}),quarter:Hi({values:WA,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Hi({values:qA,defaultWidth:"wide"}),day:Hi({values:KA,defaultWidth:"wide"}),dayPeriod:Hi({values:YA,defaultWidth:"wide",formattingValues:zA,defaultFormattingWidth:"wide"})},JA=XA;function Fi(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],s=e.match(i);if(!s)return null;var o=s[0],a=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?ZA(a,function(d){return d.test(o)}):QA(a,function(d){return d.test(o)}),u;u=t.valueCallback?t.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;var c=e.slice(o.length);return{value:u,rest:c}}}function QA(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function ZA(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}function eI(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(t.matchPattern);if(!r)return null;var i=r[0],s=e.match(t.parsePattern);if(!s)return null;var o=t.valueCallback?t.valueCallback(s[0]):s[0];o=n.valueCallback?n.valueCallback(o):o;var a=e.slice(i.length);return{value:o,rest:a}}}var tI=/^(\d+)(th|st|nd|rd)?/i,nI=/\d+/i,rI={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},iI={any:[/^b/i,/^(a|c)/i]},sI={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},oI={any:[/1/i,/2/i,/3/i,/4/i]},aI={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},lI={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},uI={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},cI={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},dI={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},fI={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},hI={ordinalNumber:eI({matchPattern:tI,parsePattern:nI,valueCallback:function(t){return parseInt(t,10)}}),era:Fi({matchPatterns:rI,defaultMatchWidth:"wide",parsePatterns:iI,defaultParseWidth:"any"}),quarter:Fi({matchPatterns:sI,defaultMatchWidth:"wide",parsePatterns:oI,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Fi({matchPatterns:aI,defaultMatchWidth:"wide",parsePatterns:lI,defaultParseWidth:"any"}),day:Fi({matchPatterns:uI,defaultMatchWidth:"wide",parsePatterns:cI,defaultParseWidth:"any"}),dayPeriod:Fi({matchPatterns:dI,defaultMatchWidth:"any",parsePatterns:fI,defaultParseWidth:"any"})},pI=hI,mI={code:"en-US",formatDistance:xA,formatLong:UA,formatRelative:VA,localize:JA,match:pI,options:{weekStartsOn:0,firstWeekContainsDate:1}},cg=mI;function dg(t,e){de(2,arguments);var n=ae(e);return kA(t,-n)}var gI=864e5;function vI(t){de(1,arguments);var e=_e(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),i=n-r;return Math.floor(i/gI)+1}function Ei(t){de(1,arguments);var e=1,n=_e(t),r=n.getUTCDay(),i=(r<e?7:0)+r-e;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function fg(t){de(1,arguments);var e=_e(t),n=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=Ei(r),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var o=Ei(s);return e.getTime()>=i.getTime()?n+1:e.getTime()>=o.getTime()?n:n-1}function _I(t){de(1,arguments);var e=fg(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var r=Ei(n);return r}var yI=6048e5;function hg(t){de(1,arguments);var e=_e(t),n=Ei(e).getTime()-_I(e).getTime();return Math.round(n/yI)+1}function Ar(t,e){de(1,arguments);var n=e||{},r=n.locale,i=r&&r.options&&r.options.weekStartsOn,s=i==null?0:ae(i),o=n.weekStartsOn==null?s:ae(n.weekStartsOn);if(!(o>=0&&o<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var a=_e(t),l=a.getUTCDay(),u=(l<o?7:0)+l-o;return a.setUTCDate(a.getUTCDate()-u),a.setUTCHours(0,0,0,0),a}function vc(t,e){de(1,arguments);var n=_e(t),r=n.getUTCFullYear(),i=e||{},s=i.locale,o=s&&s.options&&s.options.firstWeekContainsDate,a=o==null?1:ae(o),l=i.firstWeekContainsDate==null?a:ae(i.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=new Date(0);u.setUTCFullYear(r+1,0,l),u.setUTCHours(0,0,0,0);var c=Ar(u,e),d=new Date(0);d.setUTCFullYear(r,0,l),d.setUTCHours(0,0,0,0);var h=Ar(d,e);return n.getTime()>=c.getTime()?r+1:n.getTime()>=h.getTime()?r:r-1}function bI(t,e){de(1,arguments);var n=e||{},r=n.locale,i=r&&r.options&&r.options.firstWeekContainsDate,s=i==null?1:ae(i),o=n.firstWeekContainsDate==null?s:ae(n.firstWeekContainsDate),a=vc(t,e),l=new Date(0);l.setUTCFullYear(a,0,o),l.setUTCHours(0,0,0,0);var u=Ar(l,e);return u}var wI=6048e5;function pg(t,e){de(1,arguments);var n=_e(t),r=Ar(n,e).getTime()-bI(n,e).getTime();return Math.round(r/wI)+1}function xe(t,e){for(var n=t<0?"-":"",r=Math.abs(t).toString();r.length<e;)r="0"+r;return n+r}var EI={y:function(t,e){var n=t.getUTCFullYear(),r=n>0?n:1-n;return xe(e==="yy"?r%100:r,e.length)},M:function(t,e){var n=t.getUTCMonth();return e==="M"?String(n+1):xe(n+1,2)},d:function(t,e){return xe(t.getUTCDate(),e.length)},a:function(t,e){var n=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(t,e){return xe(t.getUTCHours()%12||12,e.length)},H:function(t,e){return xe(t.getUTCHours(),e.length)},m:function(t,e){return xe(t.getUTCMinutes(),e.length)},s:function(t,e){return xe(t.getUTCSeconds(),e.length)},S:function(t,e){var n=e.length,r=t.getUTCMilliseconds(),i=Math.floor(r*Math.pow(10,n-3));return xe(i,e.length)}},Pn=EI,zr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},TI={G:function(t,e,n){var r=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){var r=t.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Pn.y(t,e)},Y:function(t,e,n,r){var i=vc(t,r),s=i>0?i:1-i;if(e==="YY"){var o=s%100;return xe(o,2)}return e==="Yo"?n.ordinalNumber(s,{unit:"year"}):xe(s,e.length)},R:function(t,e){var n=fg(t);return xe(n,e.length)},u:function(t,e){var n=t.getUTCFullYear();return xe(n,e.length)},Q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return xe(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return xe(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){var r=t.getUTCMonth();switch(e){case"M":case"MM":return Pn.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){var r=t.getUTCMonth();switch(e){case"L":return String(r+1);case"LL":return xe(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){var i=pg(t,r);return e==="wo"?n.ordinalNumber(i,{unit:"week"}):xe(i,e.length)},I:function(t,e,n){var r=hg(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):xe(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):Pn.d(t,e)},D:function(t,e,n){var r=vI(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):xe(r,e.length)},E:function(t,e,n){var r=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){var i=t.getUTCDay(),s=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return xe(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){var i=t.getUTCDay(),s=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return xe(s,e.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,n){var r=t.getUTCDay(),i=r===0?7:r;switch(e){case"i":return String(i);case"ii":return xe(i,e.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){var r=t.getUTCHours(),i=r/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,e,n){var r=t.getUTCHours(),i;switch(r===12?i=zr.noon:r===0?i=zr.midnight:i=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,e,n){var r=t.getUTCHours(),i;switch(r>=17?i=zr.evening:r>=12?i=zr.afternoon:r>=4?i=zr.morning:i=zr.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){var r=t.getUTCHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Pn.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Pn.H(t,e)},K:function(t,e,n){var r=t.getUTCHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):xe(r,e.length)},k:function(t,e,n){var r=t.getUTCHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):xe(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Pn.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Pn.s(t,e)},S:function(t,e){return Pn.S(t,e)},X:function(t,e,n,r){var i=r._originalDate||t,s=i.getTimezoneOffset();if(s===0)return"Z";switch(e){case"X":return mf(s);case"XXXX":case"XX":return dr(s);case"XXXXX":case"XXX":default:return dr(s,":")}},x:function(t,e,n,r){var i=r._originalDate||t,s=i.getTimezoneOffset();switch(e){case"x":return mf(s);case"xxxx":case"xx":return dr(s);case"xxxxx":case"xxx":default:return dr(s,":")}},O:function(t,e,n,r){var i=r._originalDate||t,s=i.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+pf(s,":");case"OOOO":default:return"GMT"+dr(s,":")}},z:function(t,e,n,r){var i=r._originalDate||t,s=i.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+pf(s,":");case"zzzz":default:return"GMT"+dr(s,":")}},t:function(t,e,n,r){var i=r._originalDate||t,s=Math.floor(i.getTime()/1e3);return xe(s,e.length)},T:function(t,e,n,r){var i=r._originalDate||t,s=i.getTime();return xe(s,e.length)}};function pf(t,e){var n=t>0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),s=r%60;if(s===0)return n+String(i);var o=e||"";return n+String(i)+o+xe(s,2)}function mf(t,e){if(t%60===0){var n=t>0?"-":"+";return n+xe(Math.abs(t)/60,2)}return dr(t,e)}function dr(t,e){var n=e||"",r=t>0?"-":"+",i=Math.abs(t),s=xe(Math.floor(i/60),2),o=xe(i%60,2);return r+s+n+o}var CI=TI;function gf(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}}function mg(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}}function SI(t,e){var n=t.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return gf(t,e);var s;switch(r){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;case"PPPP":default:s=e.dateTime({width:"full"});break}return s.replace("{{date}}",gf(r,e)).replace("{{time}}",mg(i,e))}var AI={p:mg,P:SI},gg=AI,II=["D","DD"],OI=["YY","YYYY"];function vg(t){return II.indexOf(t)!==-1}function _g(t){return OI.indexOf(t)!==-1}function jo(t,e,n){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}var kI=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,DI=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,PI=/^'([^]*?)'?$/,NI=/''/g,MI=/[a-zA-Z]/;function vf(t,e,n){de(2,arguments);var r=String(e),i=n||{},s=i.locale||cg,o=s.options&&s.options.firstWeekContainsDate,a=o==null?1:ae(o),l=i.firstWeekContainsDate==null?a:ae(i.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=s.options&&s.options.weekStartsOn,c=u==null?0:ae(u),d=i.weekStartsOn==null?c:ae(i.weekStartsOn);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!s.localize)throw new RangeError("locale must contain localize property");if(!s.formatLong)throw new RangeError("locale must contain formatLong property");var h=_e(t);if(!cs(h))throw new RangeError("Invalid time value");var f=lg(h),E=dg(h,f),w={firstWeekContainsDate:l,weekStartsOn:d,locale:s,_originalDate:h},T=r.match(DI).map(function(C){var O=C[0];if(O==="p"||O==="P"){var _=gg[O];return _(C,s.formatLong,w)}return C}).join("").match(kI).map(function(C){if(C==="''")return"'";var O=C[0];if(O==="'")return xI(C);var _=CI[O];if(_)return!i.useAdditionalWeekYearTokens&&_g(C)&&jo(C,e,t),!i.useAdditionalDayOfYearTokens&&vg(C)&&jo(C,e,t),_(E,C,s.localize,w);if(O.match(MI))throw new RangeError("Format string contains an unescaped latin alphabet character `"+O+"`");return C}).join("");return T}function xI(t){return t.match(PI)[1].replace(NI,"'")}function RI(t,e){if(t==null)throw new TypeError("assign requires that input parameter not be null or undefined");e=e||{};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function LI(t){de(1,arguments);var e=_e(t),n=e.getDay();return n}function $I(t){de(1,arguments);var e=_e(t),n=e.getFullYear(),r=e.getMonth(),i=new Date(0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}function $t(t){de(1,arguments);var e=_e(t),n=e.getHours();return n}var BI=6048e5;function UI(t){de(1,arguments);var e=_e(t),n=Vo(e).getTime()-PA(e).getTime();return Math.round(n/BI)+1}function Bt(t){de(1,arguments);var e=_e(t),n=e.getMinutes();return n}function bt(t){de(1,arguments);var e=_e(t),n=e.getMonth();return n}function Wn(t){de(1,arguments);var e=_e(t),n=e.getSeconds();return n}function rn(t){return de(1,arguments),_e(t).getFullYear()}function HI(t,e){de(2,arguments);var n=ae(e);return Sr(t,-n)}function yg(t,e){de(2,arguments);var n=ae(e);return js(t,-n)}function FI(t,e){if(de(2,arguments),!e||typeof e!="object")return new Date(NaN);var n=e.years?ae(e.years):0,r=e.months?ae(e.months):0,i=e.weeks?ae(e.weeks):0,s=e.days?ae(e.days):0,o=e.hours?ae(e.hours):0,a=e.minutes?ae(e.minutes):0,l=e.seconds?ae(e.seconds):0,u=yg(t,r+n*12),c=HI(u,s+i*7),d=a+o*60,h=l+d*60,f=h*1e3,E=new Date(c.getTime()-f);return E}function VI(t,e){de(2,arguments);var n=_e(t),r=_e(e);return n.getTime()>r.getTime()}function jI(t,e){de(2,arguments);var n=_e(t),r=_e(e);return n.getTime()<r.getTime()}function WI(t,e){de(2,arguments);var n=_e(t),r=_e(e);return n.getTime()===r.getTime()}function tl(t,e,n){de(2,arguments);var r=n||{},i=r.locale,s=i&&i.options&&i.options.weekStartsOn,o=s==null?0:ae(s),a=r.weekStartsOn==null?o:ae(r.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=_e(t),u=ae(e),c=l.getUTCDay(),d=u%7,h=(d+7)%7,f=(h<a?7:0)+u-c;return l.setUTCDate(l.getUTCDate()+f),l}function qI(t,e){de(2,arguments);var n=ae(e);n%7===0&&(n=n-7);var r=1,i=_e(t),s=i.getUTCDay(),o=n%7,a=(o+7)%7,l=(a<r?7:0)+n-s;return i.setUTCDate(i.getUTCDate()+l),i}function KI(t,e){de(2,arguments);var n=_e(t),r=ae(e),i=hg(n)-r;return n.setUTCDate(n.getUTCDate()-i*7),n}function YI(t,e,n){de(2,arguments);var r=_e(t),i=ae(e),s=pg(r,n)-i;return r.setUTCDate(r.getUTCDate()-s*7),r}var zI=36e5,GI=6e4,XI=1e3,ze={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Gt={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function We(t,e,n){var r=e.match(t);if(!r)return null;var i=parseInt(r[0],10);return{value:n?n(i):i,rest:e.slice(r[0].length)}}function Xt(t,e){var n=e.match(t);if(!n)return null;if(n[0]==="Z")return{value:0,rest:e.slice(1)};var r=n[1]==="+"?1:-1,i=n[2]?parseInt(n[2],10):0,s=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(i*zI+s*GI+o*XI),rest:e.slice(n[0].length)}}function _f(t,e){return We(ze.anyDigitsSigned,t,e)}function Ke(t,e,n){switch(t){case 1:return We(ze.singleDigit,e,n);case 2:return We(ze.twoDigits,e,n);case 3:return We(ze.threeDigits,e,n);case 4:return We(ze.fourDigits,e,n);default:return We(new RegExp("^\\d{1,"+t+"}"),e,n)}}function io(t,e,n){switch(t){case 1:return We(ze.singleDigitSigned,e,n);case 2:return We(ze.twoDigitsSigned,e,n);case 3:return We(ze.threeDigitsSigned,e,n);case 4:return We(ze.fourDigitsSigned,e,n);default:return We(new RegExp("^-?\\d{1,"+t+"}"),e,n)}}function nl(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function yf(t,e){var n=e>0,r=n?e:1-e,i;if(r<=50)i=t||100;else{var s=r+50,o=Math.floor(s/100)*100,a=t>=s%100;i=t+o-(a?100:0)}return n?i:1-i}var JI=[31,28,31,30,31,30,31,31,30,31,30,31],QI=[31,29,31,30,31,30,31,31,30,31,30,31];function bf(t){return t%400===0||t%4===0&&t%100!==0}var ZI={G:{priority:140,parse:function(t,e,n,r){switch(e){case"G":case"GG":case"GGG":return n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"});case"GGGGG":return n.era(t,{width:"narrow"});case"GGGG":default:return n.era(t,{width:"wide"})||n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"})}},set:function(t,e,n,r){return e.era=n,t.setUTCFullYear(n,0,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(t,e,n,r){var i=function(s){return{year:s,isTwoDigitYear:e==="yy"}};switch(e){case"y":return Ke(4,t,i);case"yo":return n.ordinalNumber(t,{unit:"year",valueCallback:i});default:return Ke(e.length,t,i)}},validate:function(t,e,n){return e.isTwoDigitYear||e.year>0},set:function(t,e,n,r){var i=t.getUTCFullYear();if(n.isTwoDigitYear){var s=yf(n.year,i);return t.setUTCFullYear(s,0,1),t.setUTCHours(0,0,0,0),t}var o=!("era"in e)||e.era===1?n.year:1-n.year;return t.setUTCFullYear(o,0,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(t,e,n,r){var i=function(s){return{year:s,isTwoDigitYear:e==="YY"}};switch(e){case"Y":return Ke(4,t,i);case"Yo":return n.ordinalNumber(t,{unit:"year",valueCallback:i});default:return Ke(e.length,t,i)}},validate:function(t,e,n){return e.isTwoDigitYear||e.year>0},set:function(t,e,n,r){var i=vc(t,r);if(n.isTwoDigitYear){var s=yf(n.year,i);return t.setUTCFullYear(s,0,r.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Ar(t,r)}var o=!("era"in e)||e.era===1?n.year:1-n.year;return t.setUTCFullYear(o,0,r.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Ar(t,r)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(t,e,n,r){return io(e==="R"?4:e.length,t)},set:function(t,e,n,r){var i=new Date(0);return i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0),Ei(i)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(t,e,n,r){return io(e==="u"?4:e.length,t)},set:function(t,e,n,r){return t.setUTCFullYear(n,0,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(t,e,n,r){switch(e){case"Q":case"QQ":return Ke(e.length,t);case"Qo":return n.ordinalNumber(t,{unit:"quarter"});case"QQQ":return n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(t,{width:"wide",context:"formatting"})||n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,n){return e>=1&&e<=4},set:function(t,e,n,r){return t.setUTCMonth((n-1)*3,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(t,e,n,r){switch(e){case"q":case"qq":return Ke(e.length,t);case"qo":return n.ordinalNumber(t,{unit:"quarter"});case"qqq":return n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(t,{width:"wide",context:"standalone"})||n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,n){return e>=1&&e<=4},set:function(t,e,n,r){return t.setUTCMonth((n-1)*3,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(t,e,n,r){var i=function(s){return s-1};switch(e){case"M":return We(ze.month,t,i);case"MM":return Ke(2,t,i);case"Mo":return n.ordinalNumber(t,{unit:"month",valueCallback:i});case"MMM":return n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(t,{width:"wide",context:"formatting"})||n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,n){return e>=0&&e<=11},set:function(t,e,n,r){return t.setUTCMonth(n,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(t,e,n,r){var i=function(s){return s-1};switch(e){case"L":return We(ze.month,t,i);case"LL":return Ke(2,t,i);case"Lo":return n.ordinalNumber(t,{unit:"month",valueCallback:i});case"LLL":return n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(t,{width:"wide",context:"standalone"})||n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,n){return e>=0&&e<=11},set:function(t,e,n,r){return t.setUTCMonth(n,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(t,e,n,r){switch(e){case"w":return We(ze.week,t);case"wo":return n.ordinalNumber(t,{unit:"week"});default:return Ke(e.length,t)}},validate:function(t,e,n){return e>=1&&e<=53},set:function(t,e,n,r){return Ar(YI(t,n,r),r)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(t,e,n,r){switch(e){case"I":return We(ze.week,t);case"Io":return n.ordinalNumber(t,{unit:"week"});default:return Ke(e.length,t)}},validate:function(t,e,n){return e>=1&&e<=53},set:function(t,e,n,r){return Ei(KI(t,n,r),r)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,subPriority:1,parse:function(t,e,n,r){switch(e){case"d":return We(ze.date,t);case"do":return n.ordinalNumber(t,{unit:"date"});default:return Ke(e.length,t)}},validate:function(t,e,n){var r=t.getUTCFullYear(),i=bf(r),s=t.getUTCMonth();return i?e>=1&&e<=QI[s]:e>=1&&e<=JI[s]},set:function(t,e,n,r){return t.setUTCDate(n),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,subPriority:1,parse:function(t,e,n,r){switch(e){case"D":case"DD":return We(ze.dayOfYear,t);case"Do":return n.ordinalNumber(t,{unit:"date"});default:return Ke(e.length,t)}},validate:function(t,e,n){var r=t.getUTCFullYear(),i=bf(r);return i?e>=1&&e<=366:e>=1&&e<=365},set:function(t,e,n,r){return t.setUTCMonth(0,n),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(t,e,n,r){switch(e){case"E":case"EE":case"EEE":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,n){return e>=0&&e<=6},set:function(t,e,n,r){return t=tl(t,n,r),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(t,e,n,r){var i=function(s){var o=Math.floor((s-1)/7)*7;return(s+r.weekStartsOn+6)%7+o};switch(e){case"e":case"ee":return Ke(e.length,t,i);case"eo":return n.ordinalNumber(t,{unit:"day",valueCallback:i});case"eee":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeeee":return n.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,n){return e>=0&&e<=6},set:function(t,e,n,r){return t=tl(t,n,r),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(t,e,n,r){var i=function(s){var o=Math.floor((s-1)/7)*7;return(s+r.weekStartsOn+6)%7+o};switch(e){case"c":case"cc":return Ke(e.length,t,i);case"co":return n.ordinalNumber(t,{unit:"day",valueCallback:i});case"ccc":return n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"ccccc":return n.day(t,{width:"narrow",context:"standalone"});case"cccccc":return n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(t,{width:"wide",context:"standalone"})||n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,n){return e>=0&&e<=6},set:function(t,e,n,r){return t=tl(t,n,r),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(t,e,n,r){var i=function(s){return s===0?7:s};switch(e){case"i":case"ii":return Ke(e.length,t);case"io":return n.ordinalNumber(t,{unit:"day"});case"iii":return n.day(t,{width:"abbreviated",context:"formatting",valueCallback:i})||n.day(t,{width:"short",context:"formatting",valueCallback:i})||n.day(t,{width:"narrow",context:"formatting",valueCallback:i});case"iiiii":return n.day(t,{width:"narrow",context:"formatting",valueCallback:i});case"iiiiii":return n.day(t,{width:"short",context:"formatting",valueCallback:i})||n.day(t,{width:"narrow",context:"formatting",valueCallback:i});case"iiii":default:return n.day(t,{width:"wide",context:"formatting",valueCallback:i})||n.day(t,{width:"abbreviated",context:"formatting",valueCallback:i})||n.day(t,{width:"short",context:"formatting",valueCallback:i})||n.day(t,{width:"narrow",context:"formatting",valueCallback:i})}},validate:function(t,e,n){return e>=1&&e<=7},set:function(t,e,n,r){return t=qI(t,n,r),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(t,e,n,r){switch(e){case"a":case"aa":case"aaa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}},set:function(t,e,n,r){return t.setUTCHours(nl(n),0,0,0),t},incompatibleTokens:["b","B","H","k","t","T"]},b:{priority:80,parse:function(t,e,n,r){switch(e){case"b":case"bb":case"bbb":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}},set:function(t,e,n,r){return t.setUTCHours(nl(n),0,0,0),t},incompatibleTokens:["a","B","H","k","t","T"]},B:{priority:80,parse:function(t,e,n,r){switch(e){case"B":case"BB":case"BBB":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}},set:function(t,e,n,r){return t.setUTCHours(nl(n),0,0,0),t},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(t,e,n,r){switch(e){case"h":return We(ze.hour12h,t);case"ho":return n.ordinalNumber(t,{unit:"hour"});default:return Ke(e.length,t)}},validate:function(t,e,n){return e>=1&&e<=12},set:function(t,e,n,r){var i=t.getUTCHours()>=12;return i&&n<12?t.setUTCHours(n+12,0,0,0):!i&&n===12?t.setUTCHours(0,0,0,0):t.setUTCHours(n,0,0,0),t},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(t,e,n,r){switch(e){case"H":return We(ze.hour23h,t);case"Ho":return n.ordinalNumber(t,{unit:"hour"});default:return Ke(e.length,t)}},validate:function(t,e,n){return e>=0&&e<=23},set:function(t,e,n,r){return t.setUTCHours(n,0,0,0),t},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(t,e,n,r){switch(e){case"K":return We(ze.hour11h,t);case"Ko":return n.ordinalNumber(t,{unit:"hour"});default:return Ke(e.length,t)}},validate:function(t,e,n){return e>=0&&e<=11},set:function(t,e,n,r){var i=t.getUTCHours()>=12;return i&&n<12?t.setUTCHours(n+12,0,0,0):t.setUTCHours(n,0,0,0),t},incompatibleTokens:["h","H","k","t","T"]},k:{priority:70,parse:function(t,e,n,r){switch(e){case"k":return We(ze.hour24h,t);case"ko":return n.ordinalNumber(t,{unit:"hour"});default:return Ke(e.length,t)}},validate:function(t,e,n){return e>=1&&e<=24},set:function(t,e,n,r){var i=n<=24?n%24:n;return t.setUTCHours(i,0,0,0),t},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(t,e,n,r){switch(e){case"m":return We(ze.minute,t);case"mo":return n.ordinalNumber(t,{unit:"minute"});default:return Ke(e.length,t)}},validate:function(t,e,n){return e>=0&&e<=59},set:function(t,e,n,r){return t.setUTCMinutes(n,0,0),t},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(t,e,n,r){switch(e){case"s":return We(ze.second,t);case"so":return n.ordinalNumber(t,{unit:"second"});default:return Ke(e.length,t)}},validate:function(t,e,n){return e>=0&&e<=59},set:function(t,e,n,r){return t.setUTCSeconds(n,0),t},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(t,e,n,r){var i=function(s){return Math.floor(s*Math.pow(10,-e.length+3))};return Ke(e.length,t,i)},set:function(t,e,n,r){return t.setUTCMilliseconds(n),t},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(t,e,n,r){switch(e){case"X":return Xt(Gt.basicOptionalMinutes,t);case"XX":return Xt(Gt.basic,t);case"XXXX":return Xt(Gt.basicOptionalSeconds,t);case"XXXXX":return Xt(Gt.extendedOptionalSeconds,t);case"XXX":default:return Xt(Gt.extended,t)}},set:function(t,e,n,r){return e.timestampIsSet?t:new Date(t.getTime()-n)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(t,e,n,r){switch(e){case"x":return Xt(Gt.basicOptionalMinutes,t);case"xx":return Xt(Gt.basic,t);case"xxxx":return Xt(Gt.basicOptionalSeconds,t);case"xxxxx":return Xt(Gt.extendedOptionalSeconds,t);case"xxx":default:return Xt(Gt.extended,t)}},set:function(t,e,n,r){return e.timestampIsSet?t:new Date(t.getTime()-n)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(t,e,n,r){return _f(t)},set:function(t,e,n,r){return[new Date(n*1e3),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(t,e,n,r){return _f(t)},set:function(t,e,n,r){return[new Date(n),{timestampIsSet:!0}]},incompatibleTokens:"*"}},eO=ZI,tO=10,nO=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,rO=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,iO=/^'([^]*?)'?$/,sO=/''/g,oO=/\S/,aO=/[a-zA-Z]/;function lO(t,e,n,r){de(3,arguments);var i=String(t),s=String(e),o=r||{},a=o.locale||cg;if(!a.match)throw new RangeError("locale must contain match property");var l=a.options&&a.options.firstWeekContainsDate,u=l==null?1:ae(l),c=o.firstWeekContainsDate==null?u:ae(o.firstWeekContainsDate);if(!(c>=1&&c<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var d=a.options&&a.options.weekStartsOn,h=d==null?0:ae(d),f=o.weekStartsOn==null?h:ae(o.weekStartsOn);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(s==="")return i===""?_e(n):new Date(NaN);var E={firstWeekContainsDate:c,weekStartsOn:f,locale:a},w=[{priority:tO,subPriority:-1,set:uO,index:0}],T,C=s.match(rO).map(function(ne){var ue=ne[0];if(ue==="p"||ue==="P"){var Ie=gg[ue];return Ie(ne,a.formatLong,E)}return ne}).join("").match(nO),O=[];for(T=0;T<C.length;T++){var _=C[T];!o.useAdditionalWeekYearTokens&&_g(_)&&jo(_,s,t),!o.useAdditionalDayOfYearTokens&&vg(_)&&jo(_,s,t);var x=_[0],W=eO[x];if(W){var X=W.incompatibleTokens;if(Array.isArray(X)){for(var m=void 0,P=0;P<O.length;P++){var R=O[P].token;if(X.indexOf(R)!==-1||R===x){m=O[P];break}}if(m)throw new RangeError("The format string mustn't contain `".concat(m.fullToken,"` and `").concat(_,"` at the same time"))}else if(W.incompatibleTokens==="*"&&O.length)throw new RangeError("The format string mustn't contain `".concat(_,"` and any other token at the same time"));O.push({token:x,fullToken:_});var B=W.parse(i,_,a.match,E);if(!B)return new Date(NaN);w.push({priority:W.priority,subPriority:W.subPriority||0,set:W.set,validate:W.validate,value:B.value,index:w.length}),i=B.rest}else{if(x.match(aO))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");if(_==="''"?_="'":x==="'"&&(_=cO(_)),i.indexOf(_)===0)i=i.slice(_.length);else return new Date(NaN)}}if(i.length>0&&oO.test(i))return new Date(NaN);var v=w.map(function(ne){return ne.priority}).sort(function(ne,ue){return ue-ne}).filter(function(ne,ue,Ie){return Ie.indexOf(ne)===ue}).map(function(ne){return w.filter(function(ue){return ue.priority===ne}).sort(function(ue,Ie){return Ie.subPriority-ue.subPriority})}).map(function(ne){return ne[0]}),y=_e(n);if(isNaN(y))return new Date(NaN);var U=dg(y,lg(y)),q={};for(T=0;T<v.length;T++){var re=v[T];if(re.validate&&!re.validate(U,re.value,E))return new Date(NaN);var Z=re.set(U,q,re.value,E);Z[0]?(U=Z[0],RI(q,Z[1])):U=Z}return U}function uO(t,e){if(e.timestampIsSet)return t;var n=new Date(0);return n.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),n.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),n}function cO(t){return t.match(iO)[1].replace(sO,"'")}function Ca(t,e){de(2,arguments);var n=_e(t),r=ae(e),i=n.getFullYear(),s=n.getDate(),o=new Date(0);o.setFullYear(i,r,15),o.setHours(0,0,0,0);var a=$I(o);return n.setMonth(r,Math.min(s,a)),n}function Sa(t,e){if(de(2,arguments),typeof e!="object"||e===null)throw new RangeError("values parameter must be an object");var n=_e(t);return isNaN(n.getTime())?new Date(NaN):(e.year!=null&&n.setFullYear(e.year),e.month!=null&&(n=Ca(n,e.month)),e.date!=null&&n.setDate(ae(e.date)),e.hours!=null&&n.setHours(ae(e.hours)),e.minutes!=null&&n.setMinutes(ae(e.minutes)),e.seconds!=null&&n.setSeconds(ae(e.seconds)),e.milliseconds!=null&&n.setMilliseconds(ae(e.milliseconds)),n)}function bg(t,e){de(2,arguments);var n=_e(t),r=ae(e);return n.setHours(r),n}function dO(t,e){de(2,arguments);var n=_e(t),r=ae(e);return n.setMilliseconds(r),n}function wg(t,e){de(2,arguments);var n=_e(t),r=ae(e);return n.setMinutes(r),n}function Eg(t,e){de(2,arguments);var n=_e(t),r=ae(e);return n.setSeconds(r),n}function _c(t,e){de(2,arguments);var n=_e(t),r=ae(e);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function Yn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function iu(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Tg(t,e){if(t){if(typeof t=="string")return iu(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?iu(t,e):void 0}}function fO(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,r){var i=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(i!=null){var s,o,a=[],l=!0,u=!1;try{for(i=i.call(n);!(l=(s=i.next()).done)&&(a.push(s.value),!r||a.length!==r);l=!0);}catch(c){u=!0,o=c}finally{try{l||i.return==null||i.return()}finally{if(u)throw o}}return a}}(t,e)||Tg(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var hO={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",class:"dp__icon"},pO=[ie("path",{d:"M29.333 8c0-2.208-1.792-4-4-4h-18.667c-2.208 0-4 1.792-4 4v18.667c0 2.208 1.792 4 4 4h18.667c2.208 0 4-1.792 4-4v-18.667zM26.667 8v18.667c0 0.736-0.597 1.333-1.333 1.333 0 0-18.667 0-18.667 0-0.736 0-1.333-0.597-1.333-1.333 0 0 0-18.667 0-18.667 0-0.736 0.597-1.333 1.333-1.333 0 0 18.667 0 18.667 0 0.736 0 1.333 0.597 1.333 1.333z"},null,-1),ie("path",{d:"M20 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"},null,-1),ie("path",{d:"M9.333 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"},null,-1),ie("path",{d:"M4 14.667h24c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-24c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z"},null,-1)],ds={render:function(t,e){return L(),ee("svg",hO,pO)}},mO={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",class:"dp__icon"},gO=[ie("path",{d:"M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"},null,-1),ie("path",{d:"M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"},null,-1)],vO={render:function(t,e){return L(),ee("svg",mO,gO)}},_O={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",class:"dp__icon"},yO=[ie("path",{d:"M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"},null,-1)],wf={render:function(t,e){return L(),ee("svg",_O,yO)}},bO={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",class:"dp__icon"},wO=[ie("path",{d:"M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"},null,-1)],Ef={render:function(t,e){return L(),ee("svg",bO,wO)}},EO={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",class:"dp__icon"},TO=[ie("path",{d:"M16 1.333c-8.095 0-14.667 6.572-14.667 14.667s6.572 14.667 14.667 14.667c8.095 0 14.667-6.572 14.667-14.667s-6.572-14.667-14.667-14.667zM16 4c6.623 0 12 5.377 12 12s-5.377 12-12 12c-6.623 0-12-5.377-12-12s5.377-12 12-12z"},null,-1),ie("path",{d:"M14.667 8v8c0 0.505 0.285 0.967 0.737 1.193l5.333 2.667c0.658 0.329 1.46 0.062 1.789-0.596s0.062-1.46-0.596-1.789l-4.596-2.298c0 0 0-7.176 0-7.176 0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"},null,-1)],yo={render:function(t,e){return L(),ee("svg",EO,TO)}},CO={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",class:"dp__icon"},SO=[ie("path",{d:"M24.943 19.057l-8-8c-0.521-0.521-1.365-0.521-1.885 0l-8 8c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l7.057-7.057c0 0 7.057 7.057 7.057 7.057 0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"},null,-1)],rl={render:function(t,e){return L(),ee("svg",CO,SO)}},AO={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",class:"dp__icon"},IO=[ie("path",{d:"M7.057 12.943l8 8c0.521 0.521 1.365 0.521 1.885 0l8-8c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-7.057 7.057c0 0-7.057-7.057-7.057-7.057-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"},null,-1)],il={render:function(t,e){return L(),ee("svg",AO,IO)}},Jt=function(t){var e=6e4*t.getTimezoneOffset();return new Date(t.getTime()-e)},sl=function(t,e){var n=lO(t,e.slice(0,t.length),new Date);return cs(n)&&ug(n)?n:null},Jn=function(t){var e=new Date(JSON.parse(JSON.stringify(t)));return e=bg(e,0),e=wg(e,0),e=Eg(e,0),e=dO(e,0)},su=function(t){return Array.isArray(t)?cs(t[0])&&(!t[1]||cs(t[1])):!!t&&cs(t)},yt=function(t,e,n,r){var i=t?new Date(t):new Date;return(e||e===0)&&(i=bg(i,+e)),(n||n===0)&&(i=wg(i,+n)),(r||r===0)&&(i=Eg(i,+r)),i},Vi=function(t){var e=js(t,1);return{month:bt(e),year:rn(e)}},Ir=function(t,e,n){var r=t?new Date(t):new Date;return(e||e===0)&&(r=Ca(r,e)),n&&(r=_c(r,n)),r},Tf=function(t,e){return t?"HH:mm".concat(e?":ss":""):"hh:mm".concat(e?":ss":""," aa")},Cg=function(t,e,n,r,i,s){return t||(r?"MM/yyyy":i?Tf(e,n):s?"MM/dd/yyyy, ".concat(Tf(e,n)):"MM/dd/yyyy")},ol=function(t){var e=t||new Date;return{hours:$t(e),minutes:Bt(e),seconds:Wn(e)}},ou=function(t){return{month:bt(t),year:rn(t)}},au=function(t){return Array.isArray(t)?[ol(t[0]),ol(t[1])]:ol(t)},al=function(t,e,n){return n?vf(t,e,{locale:n}):vf(t,e)},fr=function(t,e,n){return Array.isArray(t)?"".concat(al(t[0],e,n)," - ").concat(t[1]?al(t[1],e,n):""):al(t,e,n)},Rn=function(t,e){return!(!t||!e)&&VI(Jn(t),Jn(e))},Qt=function(t,e){return!(!t||!e)&&jI(Jn(t),Jn(e))},It=function(t,e){return!(!t||!e)&&WI(Jn(t),Jn(e))},ll=function(t,e){return OA(Sa(new Date,t),e)},ul=function(t,e){return FI(Sa(new Date,t),e)},Cf=function(t,e){var n=yg(_c(Ca(new Date,t),e),1);return{month:bt(n),year:rn(n)}},cl=function(t,e){var n=js(_c(Ca(new Date,t),e),1);return{month:bt(n),year:rn(n)}},dl=function(t){return Sa(new Date,{hours:$t(t),minutes:Bt(t),seconds:Wn(t)})},Sf=function(t){return Sa(new Date,{hours:+t.hours||0,minutes:+t.minutes||0,seconds:+t.seconds||0})},lu=function(t,e,n){var r=!0;if(!t)return!0;var i=Array.isArray(t)?[t[0]?dl(t[0]):null,t[1]?dl(t[1]):null]:dl(t);if(e){var s=Sf(e);r=Array.isArray(i)?(!i[0]||i[0].getTime()<=s.getTime())&&(!i[1]||i[1].getTime()<=s.getTime()):i.getTime()<=s.getTime()}if(n){var o=Sf(n);r=Array.isArray(i)?(!i[0]||i[0].getTime()>=o.getTime())&&(!i[1]||i[1].getTime()>=o.getTime())&&r:i.getTime()>=o.getTime()&&r}return r};function Bn(t){return function(e){if(Array.isArray(e))return iu(e)}(t)||function(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||Tg(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var Af=function(t,e,n,r){var i=[],s=new Date(e,t),o=new Date(e,t+1,0);return function a(l){var u=function(c,d,h){for(var f=new Date(JSON.parse(JSON.stringify(c))),E=[],w=0;w<7;w++){var T=Sr(f,w),C=bt(T)!==d;E.push({text:h&&C?"":T.getDate(),value:T,current:!C})}return E}(l,t,r);i.push({days:u}),i[i.length-1].days.some(function(c){return It(Jn(c.value),Jn(o))})||a(Sr(l,7))}(ag(s,{weekStartsOn:n})),i},OO=function(t){return function(e){for(var n="",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=r.length,s=0;s<e;s++)n+=r.charAt(Math.floor(Math.random()*i));return n+t}(5)},Ot=function(t){var e,n=b(t);return(e=n==null?void 0:n.$el)!==null&&e!==void 0?e:n},If=function(t){return Object.assign({open:"dp-open",close:"dp-close",next:"calendar-next",previous:"calendar-prev"},t)},kO=["aria-disabled","aria-readonly"],DO={key:2,class:"dp__input_wrap"},PO=["id","placeholder","disabled","readonly","required","value","onKeydown"],NO={key:2,class:"dp__clear_icon"},MO=qt({props:{inputValue:{type:String,default:""},placeholder:{type:String,default:""},hideInputIcon:{type:Boolean,default:!1},disabled:{type:Boolean,default:!0},readonly:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},range:{type:Boolean,default:!1},state:{type:Boolean,default:null},inputClassName:{type:String,default:null},inline:{type:Boolean,default:!1},textInput:{type:Boolean,default:!1},textInputOptions:{type:Object,default:function(){return null}},isMenuOpen:{type:Boolean,default:!1},autoApply:{type:Boolean,default:!1},pattern:{type:String,default:""},uid:{type:String,default:null},openMenuOnFocus:{type:Boolean,default:!0},required:{type:Boolean,default:!1}},emits:["clear","open","update:inputValue","setInputDate","close","selectDate","setEmptyDate"],setup:function(t,e){var n=e.expose,r=e.emit,i=t,s=ge(),o=ge(null),a=ge(!1),l=Ps(),u=te(function(){return Yn({dp__pointer:!i.disabled&&!i.readonly&&!i.textInput,dp__disabled:i.disabled,dp__input:!0,dp__input_icon_pad:!i.hideInputIcon,dp__input_valid:i.state,dp__input_invalid:i.state===!1,dp__input_focus:a.value||i.isMenuOpen},i.inputClassName,!!i.inputClassName)}),c=function(_){var x=_.target.value,W=i.textInputOptions,X=W.format,m=W.rangeSeparator;if(x!==""){if(i.range){var P=fO(x.split("".concat(m)),2),R=P[0],B=P[1];if(R&&B){var v=sl(R.trim(),X||i.pattern),y=sl(B.trim(),X||i.pattern);s.value=v&&y?[v,y]:null}}else s.value=sl(x,X||i.pattern);r("setInputDate",s.value)}else r("setInputDate",null),i.autoApply&&(r("setEmptyDate"),s.value=null);r("update:inputValue",x)},d=function(){var _,x;(_=i.textInputOptions)!==null&&_!==void 0&&_.enterSubmit&&su(s.value)&&i.inputValue!==""?(r("setInputDate",s.value,!0),s.value=null):(x=i.textInputOptions)!==null&&x!==void 0&&x.enterSubmit&&i.inputValue===""&&(s.value=null,r("clear"))},h=function(){var _,x;(_=i.textInputOptions)!==null&&_!==void 0&&_.tabSubmit&&su(s.value)&&i.inputValue!==""?(r("setInputDate",s.value,!0),s.value=null):(x=i.textInputOptions)!==null&&x!==void 0&&x.tabSubmit&&i.inputValue===""&&(s.value=null,r("clear")),r("close")},f=function(){a.value=!0,i.openMenuOnFocus&&!i.isMenuOpen?r("open"):i.isMenuOpen&&(O(),r("close"))},E=function(){var _;(!i.openMenuOnFocus||l["dp-input"]||l.trigger)&&(i.textInput&&(_=i.textInputOptions)!==null&&_!==void 0&&_.openMenu&&!i.isMenuOpen?r("open"):i.textInput||r("open"))},w=function(){a.value=!1,i.autoApply&&i.textInput&&s.value&&(r("setInputDate",s.value),r("selectDate"),s.value=null)},T=function(_){_.stopImmediatePropagation()},C=function(){r("clear")},O=function(){a.value=!1;var _=Ot(o);_&&_.blur()};return n({unFocus:O}),function(_,x){return L(),ee("div",{onClick:E,"aria-label":"Datepicker input",role:"textbox","aria-multiline":"false","aria-disabled":t.disabled,"aria-readonly":t.readonly},[!_.$slots.trigger||_.$slots["dp-input"]||t.inline?M("",!0):oe(_.$slots,"trigger",{key:0}),!_.$slots["dp-input"]||_.$slots.trigger||t.inline?M("",!0):oe(_.$slots,"dp-input",{key:1,value:t.inputValue,onInput:c,onEnter:d,onTab:h}),_.$slots.trigger||_.$slots["dp-input"]||t.inline?M("",!0):(L(),ee("div",DO,[ie("input",{ref_key:"inputRef",ref:o,id:t.uid?"dp-input-".concat(t.uid):void 0,class:Ne(b(u)),placeholder:t.placeholder,disabled:t.disabled,readonly:t.readonly,required:t.required,value:t.inputValue,onInput:c,onKeydown:[Pe(d,["enter"]),Pe(h,["tab"])],onBlur:w,onFocus:f},null,42,PO),_.$slots["input-icon"]&&!t.hideInputIcon?(L(),ee("span",{key:0,class:"dp__input_icon",onClick:T},[oe(_.$slots,"input-icon")])):M("",!0),_.$slots["input-icon"]||t.hideInputIcon?M("",!0):(L(),Ee(b(ds),{key:1,class:"dp__input_icon dp__input_icons",onClick:T})),_.$slots["clear-icon"]&&t.clearable&&!t.disabled&&!t.readonly?(L(),ee("span",NO,[oe(_.$slots,"clear-icon",{clear:C})])):M("",!0),!t.clearable||_.$slots["clear-icon"]||!t.inputValue||t.disabled||t.readonly?M("",!0):(L(),Ee(b(vO),{key:3,class:"dp__clear_icon dp__input_icons",onClick:Fl(C,["stop","prevent"])},null,8,["onClick"]))]))],8,kO)}}});function Of(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function kf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Of(Object(n),!0).forEach(function(r){Yn(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Of(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var xO={class:"dp__overlay_container",role:"grid"},RO={class:"dp__selection_grid_header"},LO=["aria-selected","aria-disabled","onClick","onKeydown"],_r=qt({props:{items:{type:Array,default:function(){return[]}},modelValue:{type:[String,Number],default:null},disabledValues:{type:Array,default:function(){return[]}},minValue:{type:[Number,String],default:null},maxValue:{type:[Number,String],default:null}},emits:["update:modelValue","selected","toggle"],setup:function(t,e){var n=e.emit,r=t,i=ge(!1),s=ge(null),o=ge(null),a=at("autoApply",!1);lp(function(){s.value=null}),$r(function(){f();var w=Ot(o);w&&(w.focus(),i.value=w.clientHeight<w.scrollHeight)});var l=te(function(){return{dp__overlay:!0}}),u=te(function(){return{dp__overlay_col:!0}}),c=te(function(){return r.items.map(function(w){return w.filter(function(T){return T}).map(function(T){return kf(kf({},T),{},{className:{dp__overlay_cell_active:T.value===r.modelValue,dp__overlay_cell:T.value!==r.modelValue,dp__overlay_cell_disabled:r.disabledValues.some(function(C){return C===T.value})||h(T.value),dp__overlay_cell_pad:!0}})})})}),d=te(function(){return{dp__button:!0,dp__overlay_action:!0,dp__over_action_scroll:i.value,dp__button_bottom:a}}),h=function(w){var T=!!r.maxValue&&+w>+r.maxValue,C=!!r.minValue&&+w<+r.minValue;return T||C},f=function(){var w=Ot(s);if(w){var T=Ot(o);T&&(T.scrollTop=w.offsetTop-T.offsetTop-(T.getBoundingClientRect().height/2-w.getBoundingClientRect().height))}},E=function(w){r.disabledValues.some(function(T){return T===w})||r.minValue&&!(+r.minValue<=w)||r.maxValue&&!(+r.maxValue>=w)||(n("update:modelValue",w),n("selected"))};return function(w,T){return L(),ee("div",{class:Ne(["dp__overlay",b(l)]),ref_key:"gridWrapRef",ref:o,role:"dialog",tabindex:"0"},[ie("div",xO,[ie("div",RO,[oe(w.$slots,"header")]),(L(!0),ee(Se,null,it(b(c),function(C,O){return L(),ee("div",{class:"dp__overlay_row",key:b(OO)(O),role:"row"},[(L(!0),ee(Se,null,it(C,function(_){return L(),ee("div",{role:"gridcell",class:Ne(b(u)),key:_.value,"aria-selected":_.value===t.modelValue&&!t.disabledValues.includes(_.value),"aria-disabled":_.className.dp__overlay_cell_disabled,ref_for:!0,ref:function(x){_.value!==t.modelValue||t.disabledValues.includes(_.value)||(s.value=x)},tabindex:"0",onClick:function(x){return E(_.value)},onKeydown:Pe(function(x){return E(_.value)},["enter"])},[ie("div",{class:Ne(_.className)},[w.$slots.item?oe(w.$slots,"item",{key:0,item:_}):M("",!0),w.$slots.item?M("",!0):(L(),ee(Se,{key:1},[Ht(Qe(_.text),1)],64))],2)],42,LO)}),128))])}),128)),w.$slots["button-icon"]?(L(),ee("div",{key:0,role:"button","aria-label":"Toggle overlay",class:Ne(b(d)),tabindex:"0",onClick:T[0]||(T[0]=function(C){return w.$emit("toggle")}),onKeydown:T[1]||(T[1]=Pe(function(C){return w.$emit("toggle")},["enter"]))},[oe(w.$slots,"button-icon")],34)):M("",!0)])],2)}}}),yc=function(){var t=at("transitions");return{transitionName:te(function(){return function(e){return t!=null&&t.value?e?t.value.open:t.value.close:""}}),showTransition:!(t==null||!t.value)}},$O={class:"dp__time_input"},BO=["onKeydown"],UO=["onKeydown"],HO=["onKeydown"],FO={key:2},VO=["onKeydown"],fl=qt({props:{hours:{type:Number,default:0},minutes:{type:Number,default:0},seconds:{type:Number,default:0},hoursGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},secondsGridIncrement:{type:[String,Number],default:5},hoursIncrement:{type:[Number,String],default:1},minutesIncrement:{type:[Number,String],default:1},secondsIncrement:{type:[Number,String],default:1},is24:{type:Boolean,default:!0},filters:{type:Object,default:function(){return{}}},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},enableSeconds:{type:Boolean,default:!1}},emits:["setHours","setMinutes","update:hours","update:minutes","update:seconds"],setup:function(t,e){var n=e.emit,r=t,i=ge(!1),s=ge(!1),o=ge(!1),a=ge("AM"),l=yc(),u=l.transitionName,c=l.showTransition,d=te(function(){return{dp__time_col:!0,dp__time_col_reg:!r.enableSeconds&&r.is24,dp__time_col_reg_with_button:!r.enableSeconds&&!r.is24,dp__time_col_sec:r.enableSeconds&&r.is24,dp__time_col_sec_with_button:r.enableSeconds&&!r.is24}}),h=te(function(){var m=W(r.hours);return{text:m<10?"0".concat(m):"".concat(m),value:m}}),f=te(function(){return{text:r.minutes<10?"0".concat(r.minutes):"".concat(r.minutes),value:r.minutes}}),E=te(function(){return{text:r.seconds<10?"0".concat(r.seconds):"".concat(r.seconds),value:r.seconds}}),w=function(m,P){return function(R,B){for(var v=[],y=0;y<R;y+=B)v.push({value:y,text:y<10?"0".concat(y):"".concat(y)});return function(U){for(var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:3,re=[],Z=0;Z<U.length;Z+=q)re.push([U[Z],U[Z+1],U[Z+2]]);return re}(v)}(m,+P)},T=function(){r.noHoursOverlay||(i.value=!i.value)},C=function(){r.noMinutesOverlay||(s.value=!s.value)},O=function(){r.noSecondsOverlay||(o.value=!o.value)},_=function(m,P){return{hours:m==="hours"?$t(P?ll({hours:+r.hours},{hours:+r.hoursIncrement}):ul({hours:+r.hours},{hours:+r.hoursIncrement})):r.hours,minutes:m==="minutes"?Bt(P?ll({minutes:r.minutes},{minutes:+r.minutesIncrement}):ul({minutes:r.minutes},{minutes:+r.minutesIncrement})):r.minutes,seconds:m==="seconds"?Wn(P?ll({seconds:r.seconds},{seconds:+r.secondsIncrement}):ul({seconds:r.seconds},{seconds:+r.secondsIncrement})):r.seconds}},x=function(m){var P=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],R=_(m,P),B=R[m];n("update:".concat(m),B)},W=function(m){return r.is24?m:(a.value=m>=12?"PM":"AM",[12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11][m])},X=function(){a.value==="PM"?(a.value="AM",n("update:hours",r.hours-12)):(a.value="PM",n("update:hours",r.hours+12))};return function(m,P){return L(),ee("div",$O,[ie("div",{class:Ne(b(d))},[ie("div",{class:"dp__inc_dec_button",role:"button","aria-label":"Increment hours",tabindex:"0",onKeydown:P[0]||(P[0]=Pe(function(R){return x("hours")},["enter"])),onClick:P[1]||(P[1]=function(R){return x("hours")})},[m.$slots["arrow-up"]?oe(m.$slots,"arrow-up",{key:0}):M("",!0),m.$slots["arrow-up"]?M("",!0):(L(),Ee(b(rl),{key:1}))],32),ie("div",{role:"button","aria-label":"Open hours overlay",class:Ne(t.noHoursOverlay?"":"dp__time_display"),tabindex:"0",onKeydown:Pe(T,["enter"]),onClick:T},[m.$slots.hours?oe(m.$slots,"hours",{key:0,text:b(h).text,value:b(h).value}):M("",!0),m.$slots.hours?M("",!0):(L(),ee(Se,{key:1},[Ht(Qe(b(h).text),1)],64))],42,BO),ie("div",{class:"dp__inc_dec_button",role:"button","aria-label":"Decrement hours",tabindex:"0",onKeydown:P[2]||(P[2]=Pe(function(R){return x("hours",!1)},["enter"])),onClick:P[3]||(P[3]=function(R){return x("hours",!1)})},[m.$slots["arrow-down"]?oe(m.$slots,"arrow-down",{key:0}):M("",!0),m.$slots["arrow-down"]?M("",!0):(L(),Ee(b(il),{key:1}))],32)],2),ie("div",{class:Ne(b(d))},":",2),ie("div",{class:Ne(b(d))},[ie("div",{class:"dp__inc_dec_button",role:"button","aria-label":"Increment minutes",tabindex:"0",onKeydown:P[4]||(P[4]=Pe(function(R){return x("minutes")},["enter"])),onClick:P[5]||(P[5]=function(R){return x("minutes")})},[m.$slots["arrow-up"]?oe(m.$slots,"arrow-up",{key:0}):M("",!0),m.$slots["arrow-up"]?M("",!0):(L(),Ee(b(rl),{key:1}))],32),ie("div",{"aria-label":"Open minutes overlay",role:"button",class:Ne(t.noMinutesOverlay?"":"dp__time_display"),tabindex:"0",onKeydown:Pe(C,["enter"]),onClick:C},[m.$slots.minutes?oe(m.$slots,"minutes",{key:0,text:b(f).text,value:b(f).value}):M("",!0),m.$slots.minutes?M("",!0):(L(),ee(Se,{key:1},[Ht(Qe(b(f).text),1)],64))],42,UO),ie("div",{class:"dp__inc_dec_button",role:"button","aria-label":"Decrement minutes",tabindex:"0",onKeydown:P[6]||(P[6]=Pe(function(R){return x("minutes",!1)},["enter"])),onClick:P[7]||(P[7]=function(R){return x("minutes",!1)})},[m.$slots["arrow-down"]?oe(m.$slots,"arrow-down",{key:0}):M("",!0),m.$slots["arrow-down"]?M("",!0):(L(),Ee(b(il),{key:1}))],32)],2),t.enableSeconds?(L(),ee("div",{key:0,class:Ne(b(d))},":",2)):M("",!0),t.enableSeconds?(L(),ee("div",{key:1,class:Ne(b(d))},[ie("div",{class:"dp__inc_dec_button",role:"button","aria-label":"Increment seconds",tabindex:"0",onKeydown:P[8]||(P[8]=Pe(function(R){return x("seconds")},["enter"])),onClick:P[9]||(P[9]=function(R){return x("seconds")})},[m.$slots["arrow-up"]?oe(m.$slots,"arrow-up",{key:0}):M("",!0),m.$slots["arrow-up"]?M("",!0):(L(),Ee(b(rl),{key:1}))],32),ie("div",{role:"button","aria-label":"Open seconds overlay",class:Ne(t.noSecondsOverlay?"":"dp__time_display"),tabindex:"0",onKeydown:Pe(O,["enter"]),onClick:O},[m.$slots.seconds?oe(m.$slots,"hours",{key:0,text:b(E).text,value:b(E).value}):M("",!0),m.$slots.seconds?M("",!0):(L(),ee(Se,{key:1},[Ht(Qe(b(E).text),1)],64))],42,HO),ie("div",{class:"dp__inc_dec_button",role:"button","aria-label":"Decrement seconds",tabindex:"0",onKeydown:P[10]||(P[10]=Pe(function(R){return x("seconds",!1)},["enter"])),onClick:P[11]||(P[11]=function(R){return x("seconds",!1)})},[m.$slots["arrow-down"]?oe(m.$slots,"arrow-down",{key:0}):M("",!0),m.$slots["arrow-down"]?M("",!0):(L(),Ee(b(il),{key:1}))],32)],2)):M("",!0),t.is24?M("",!0):(L(),ee("div",FO,[m.$slots["am-pm-button"]?oe(m.$slots,"am-pm-button",{key:0,toggle:X,value:a.value}):M("",!0),m.$slots["am-pm-button"]?M("",!0):(L(),ee("button",{key:1,class:"dp__pm_am_button",role:"button","aria-label":"Switch AM/PM mode",tabindex:"0",onClick:X,onKeydown:Pe(X,["enter"])},Qe(a.value),41,VO))])),qe(ln,{name:b(u)(i.value),css:b(c)},{default:ke(function(){return[i.value?(L(),Ee(_r,{key:0,items:w(t.is24?24:12,t.hoursGridIncrement),"disabled-values":t.filters.times.hours,"onUpdate:modelValue":P[12]||(P[12]=function(R){return m.$emit("update:hours",R)}),onSelected:T,onToggle:T},st({"button-icon":ke(function(){return[m.$slots["clock-icon"]?oe(m.$slots,"clock-icon",{key:0}):M("",!0),m.$slots["clock-icon"]?M("",!0):(L(),Ee(b(yo),{key:1}))]}),_:2},[m.$slots["hours-overlay"]?{name:"item",fn:ke(function(R){var B=R.item;return[oe(m.$slots,"hours-overlay",{text:B.text,value:B.value})]})}:void 0]),1032,["items","disabled-values"])):M("",!0)]}),_:3},8,["name","css"]),qe(ln,{name:b(u)(s.value),css:b(c)},{default:ke(function(){return[s.value?(L(),Ee(_r,{key:0,items:w(60,t.minutesGridIncrement),"disabled-values":t.filters.times.minutes,"onUpdate:modelValue":P[13]||(P[13]=function(R){return m.$emit("update:minutes",R)}),onSelected:C,onToggle:C},st({"button-icon":ke(function(){return[m.$slots["clock-icon"]?oe(m.$slots,"clock-icon",{key:0}):M("",!0),m.$slots["clock-icon"]?M("",!0):(L(),Ee(b(yo),{key:1}))]}),_:2},[m.$slots["minutes-overlay"]?{name:"item",fn:ke(function(R){var B=R.item;return[oe(m.$slots,"minutes-overlay",{text:B.text,value:B.value})]})}:void 0]),1032,["items","disabled-values"])):M("",!0)]}),_:3},8,["name","css"]),qe(ln,{name:b(u)(o.value),css:b(c)},{default:ke(function(){return[o.value?(L(),Ee(_r,{key:0,items:w(60,t.secondsGridIncrement),"disabled-values":t.filters.times.seconds,"onUpdate:modelValue":P[14]||(P[14]=function(R){return m.$emit("update:seconds",R)}),onSelected:O,onToggle:O},st({"button-icon":ke(function(){return[m.$slots["clock-icon"]?oe(m.$slots,"clock-icon",{key:0}):M("",!0),m.$slots["clock-icon"]?M("",!0):(L(),Ee(b(yo),{key:1}))]}),_:2},[m.$slots["seconds-overlay"]?{name:"item",fn:ke(function(R){var B=R.item;return[oe(m.$slots,"seconds-overlay",{text:B.text,value:B.value})]})}:void 0]),1032,["items","disabled-values"])):M("",!0)]}),_:3},8,["name","css"])])}}}),ji=[{name:"clock-icon",use:["time","calendar"]},{name:"arrow-left",use:["month-year","calendar"]},{name:"arrow-right",use:["month-year","calendar"]},{name:"arrow-up",use:["time","calendar"]},{name:"arrow-down",use:["time","calendar"]},{name:"calendar-icon",use:["month-year","time","calendar"]},{name:"day",use:["calendar"]},{name:"month-overlay",use:["calendar","month-year"]},{name:"year-overlay",use:["calendar","month-year"]},{name:"hours-overlay",use:["calendar","time"]},{name:"minutes-overlay",use:["calendar","time"]},{name:"seconds-overlay",use:["calendar","time"]},{name:"hours",use:["calendar","time"]},{name:"minutes",use:["calendar","time"]},{name:"month",use:["calendar","month-year"]},{name:"year",use:["calendar","month-year"]},{name:"action-select",use:["action"]},{name:"action-preview",use:["action"]},{name:"calendar-header",use:["calendar"]},{name:"marker-tooltip",use:["calendar"]},{name:"now-button",use:[]},{name:"time-picker-overlay",use:["calendar","time"]},{name:"am-pm-button",use:["calendar","time"]}],jO=[{name:"trigger"},{name:"input-icon"},{name:"clear-icon"},{name:"dp-input"}],WO={all:function(){return ji},monthYear:function(){return ji.filter(function(t){return t.use.includes("month-year")})},input:function(){return jO},timePicker:function(){return ji.filter(function(t){return t.use.includes("time")})},action:function(){return ji.filter(function(t){return t.use.includes("action")})},calendar:function(){return ji.filter(function(t){return t.use.includes("calendar")})}},Nr=function(t,e){var n=[];return WO[e]().forEach(function(r){t[r.name]&&n.push(r.name)}),n},qO={key:0,class:"dp__overlay"},KO={class:"dp__overlay_container"},YO={key:1,class:"dp__overlay_row"},zO=qt({props:{hoursIncrement:{type:[Number,String],default:1},minutesIncrement:{type:[Number,String],default:1},secondsIncrement:{type:[Number,String],default:1},is24:{type:Boolean,default:!0},hoursGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},secondsGridIncrement:{type:[String,Number],default:5},range:{type:Boolean,default:!1},filters:{type:Object,default:function(){return{}}},timePicker:{type:Boolean,default:!1},hours:{type:[Number,Array],default:0},minutes:{type:[Number,Array],default:0},seconds:{type:[Number,Array],default:0},instance:{type:[Number,Array],default:1},twoCalendars:{type:Boolean,default:!1},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},customProps:{type:Object,default:null},enableSeconds:{type:Boolean,default:!1}},emits:["update:hours","update:minutes","update:seconds"],setup:function(t,e){var n=e.emit,r=t,i=Ps(),s=at("autoApply",!1),o=yc(),a=o.transitionName,l=o.showTransition,u=ge(!1),c=function(C){u.value=C},d=te(function(){return{dp__button:!0,dp__button_bottom:s}}),h=Nr(i,"timePicker"),f=te(function(){return{is24:r.is24,hoursGridIncrement:r.hoursGridIncrement,minutesGridIncrement:r.minutesGridIncrement,secondsGridIncrement:r.secondsGridIncrement,hoursIncrement:r.hoursIncrement,minutesIncrement:r.minutesIncrement,secondsIncrement:r.secondsIncrement,filters:r.filters,noHoursOverlay:r.noHoursOverlay,noMinutesOverlay:r.noMinutesOverlay,noSecondsOverlay:r.noSecondsOverlay,enableSeconds:r.enableSeconds}}),E=function(C){n("update:hours",C)},w=function(C){n("update:minutes",C)},T=function(C){n("update:seconds",C)};return function(C,O){return L(),ee("div",null,[t.timePicker?M("",!0):(L(),ee("div",{key:0,class:Ne(b(d)),role:"button","aria-label":"Open time picker",tabindex:"0",onKeydown:O[0]||(O[0]=Pe(function(_){return c(!0)},["enter"])),onClick:O[1]||(O[1]=function(_){return c(!0)})},[C.$slots["clock-icon"]?oe(C.$slots,"clock-icon",{key:0}):M("",!0),C.$slots["clock-icon"]?M("",!0):(L(),Ee(b(yo),{key:1}))],34)),qe(ln,{name:b(a)(u.value),css:b(l)},{default:ke(function(){return[u.value||t.timePicker?(L(),ee("div",qO,[ie("div",KO,[C.$slots["time-picker-overlay"]?oe(C.$slots,"time-picker-overlay",{key:0,range:t.range,instance:t.instance,hours:t.hours,minutes:t.minutes,seconds:t.seconds,setHours:E,setMinutes:w,setSeconds:T}):M("",!0),C.$slots["time-picker-overlay"]?M("",!0):(L(),ee("div",YO,[t.range?M("",!0):(L(),Ee(fl,pt({key:0,hours:t.hours,minutes:t.minutes,seconds:t.seconds},b(f),{"onUpdate:hours":O[2]||(O[2]=function(_){return E(_)}),"onUpdate:minutes":O[3]||(O[3]=function(_){return w(_)}),"onUpdate:seconds":O[4]||(O[4]=function(_){return T(_)})}),st({_:2},[it(b(h),function(_,x){return{name:_,fn:ke(function(W){return[oe(C.$slots,_,En(an(W)))]})}})]),1040,["hours","minutes","seconds"])),t.range?(L(),ee(Se,{key:1},[t.twoCalendars&&t.instance!==1?M("",!0):(L(),Ee(fl,pt({key:0,hours:t.hours[0],minutes:t.minutes[0]},b(f),{"onUpdate:hours":O[5]||(O[5]=function(_){return E([_,t.hours[1]])}),"onUpdate:minutes":O[6]||(O[6]=function(_){return w([_,t.minutes[1]])})}),st({_:2},[it(b(h),function(_,x){return{name:_,fn:ke(function(W){return[oe(C.$slots,_,En(an(W)))]})}})]),1040,["hours","minutes"])),t.twoCalendars&&t.instance!==2?M("",!0):(L(),Ee(fl,pt({key:1,hours:t.hours[1],minutes:t.minutes[1]},b(f),{"onUpdate:hours":O[7]||(O[7]=function(_){return E([t.hours[0],_])}),"onUpdate:minutes":O[8]||(O[8]=function(_){return w([t.minutes[0],_])})}),st({_:2},[it(b(h),function(_,x){return{name:_,fn:ke(function(W){return[oe(C.$slots,_,En(an(W)))]})}})]),1040,["hours","minutes"]))],64)):M("",!0)])),t.timePicker?M("",!0):(L(),ee("div",{key:2,class:Ne(b(d)),role:"button","aria-label":"Close time picker",tabindex:"0",onKeydown:O[9]||(O[9]=Pe(function(_){return c(!1)},["enter"])),onClick:O[10]||(O[10]=function(_){return c(!1)})},[C.$slots["calendar-icon"]?oe(C.$slots,"calendar-icon",{key:0}):M("",!0),C.$slots["calendar-icon"]?M("",!0):(L(),Ee(b(ds),{key:1}))],34))])])):M("",!0)]}),_:3},8,["name","css"])])}}}),GO={class:"dp__month_year_row"},XO={class:"dp__inner_nav",role:"button","aria-label":"Previous month"},JO=["onKeydown"],QO=["onKeydown"],ZO={class:"dp__inner_nav",role:"button","aria-label":"Next month"},ek={class:"dp__month_picker_header"},tk={class:"dp__inner_nav",role:"button","aria-label":"Previous month"},nk=["onKeydown"],rk={class:"dp__inner_nav",role:"button","aria-label":"Next month"},ik=qt({props:{months:{type:Array,default:function(){return[]}},years:{type:Array,default:function(){return[]}},year:{type:Number,default:0},month:{type:Number,default:0},filters:{type:Object,default:function(){return{}}},monthPicker:{type:Boolean,default:!1},instance:{type:Number,default:1},customProps:{type:Object,default:null},twoCalendars:{type:Boolean,default:!1},twoCalendarsSolo:{type:Boolean,default:!1}},emits:["update:month","update:year","monthYearSelect"],setup:function(t,e){var n=e.emit,r=t,i=yc(),s=i.transitionName,o=i.showTransition,a=ge(!1),l=ge(!1),u=function(m,P){var R=m.months.map(function(q){return q.value}),B=m.years.map(function(q){return q.value}),v=R.filter(function(q){return!m.filters.months.some(function(re){return re===q})}),y=B.filter(function(q){return!m.filters.years.some(function(re){return re===q})}),U=function(q,re){P("update:month",q),P("update:year",re)};return{onNext:function(){var q,re=m.month,Z=m.year;if(m.month===11?(re=0,Z=m.year+1):re+=1,m.filters.months.includes(re)&&(q=re=re===0?Math.min.apply(Math,Bn(v)):Math.max.apply(Math,Bn(v))),re===q&&(re=Math.min.apply(Math,Bn(v)),Z=m.year+1),m.filters.years.includes(Z)){var ne=y.find(function(ue){return ue>Z});ne&&(Z=ne)}Z<=B[B.length-1]&&U(re,Z)},onPrev:function(){var q,re=m.month,Z=m.year;if(m.month===0?(re=11,Z=m.year-1):re-=1,m.filters.months.includes(re)&&(q=re=re===11?Math.max.apply(Math,Bn(v)):Math.min.apply(Math,Bn(v))),re===q&&(re=Math.max.apply(Math,Bn(v)),Z=m.year-1),m.filters.years.includes(Z)){var ne=y.reverse().find(function(ue){return ue<Z});ne&&(Z=ne)}Z>=B[0]&&U(re,Z)}}}(r,n),c=u.onNext,d=u.onPrev,h=function(m){n("update:month",m),n("monthYearSelect"),x()},f=function(m){n("update:year",m),n("monthYearSelect",!0),W()},E=function(m){for(var P=[],R=0;R<m.length;R+=3)P.push([m[R],m[R+1],m[R+2]]);return P},w=te(function(){var m=r.months.find(function(P){return P.value===r.month});return m||{text:"",value:0}}),T=te(function(){return E(r.months)}),C=te(function(){return E(r.years)}),O=te(function(){return!r.twoCalendars||!!r.twoCalendarsSolo||r.instance===1}),_=te(function(){return!r.twoCalendars||!!r.twoCalendarsSolo||r.instance===2}),x=function(){a.value=!a.value},W=function(){l.value=!l.value},X=function(){var m=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(m){var P=r.year+1;n("update:year",P)}else{var R=r.year-1;n("update:year",R)}};return function(m,P){return L(),ee("div",GO,[t.monthPicker?M("",!0):(L(),ee(Se,{key:0},[b(O)?(L(),ee("div",{key:0,class:"dp__month_year_col_nav",onClick:P[0]||(P[0]=function(){return b(d)&&b(d).apply(void 0,arguments)}),onKeydown:P[1]||(P[1]=Pe(function(){return b(d)&&b(d).apply(void 0,arguments)},["enter"])),tabindex:"0"},[ie("div",XO,[m.$slots["arrow-left"]?oe(m.$slots,"arrow-left",{key:0}):M("",!0),m.$slots["arrow-left"]?M("",!0):(L(),Ee(b(wf),{key:1}))])],32)):M("",!0),ie("div",{class:"dp__month_year_select",onClick:x,onKeydown:Pe(x,["enter"]),role:"button","aria-label":"Open months overlay",tabindex:"0"},[m.$slots.month?oe(m.$slots,"month",{key:0,value:b(w).value,text:b(w).text}):M("",!0),m.$slots.month?M("",!0):(L(),ee(Se,{key:1},[Ht(Qe(b(w).text),1)],64))],40,JO),ie("div",{class:"dp__month_year_select",onClick:W,onKeydown:Pe(W,["enter"]),role:"button","aria-label":"Open years overlay",tabindex:"0"},[m.$slots.year?oe(m.$slots,"year",{key:0,year:t.year}):M("",!0),m.$slots.year?M("",!0):(L(),ee(Se,{key:1},[Ht(Qe(t.year),1)],64))],40,QO),qe(ln,{name:b(s)(a.value),css:b(o)},{default:ke(function(){return[a.value?(L(),Ee(_r,pt({key:0},{modelValue:t.month,items:b(T),disabledValues:t.filters.months},{"onUpdate:modelValue":h,onToggle:x}),st({"button-icon":ke(function(){return[m.$slots["calendar-icon"]?oe(m.$slots,"calendar-icon",{key:0}):M("",!0),m.$slots["calendar-icon"]?M("",!0):(L(),Ee(b(ds),{key:1}))]}),_:2},[m.$slots["month-overlay"]?{name:"item",fn:ke(function(R){var B=R.item;return[oe(m.$slots,"month-overlay",{text:B.text,value:B.value})]})}:void 0]),1040)):M("",!0)]}),_:3},8,["name","css"]),qe(ln,{name:b(s)(l.value),css:b(o)},{default:ke(function(){return[l.value?(L(),Ee(_r,pt({key:0},{modelValue:t.year,items:b(C),disabledValues:t.filters.years},{"onUpdate:modelValue":f,onToggle:W}),st({"button-icon":ke(function(){return[m.$slots["calendar-icon"]?oe(m.$slots,"calendar-icon",{key:0}):M("",!0),m.$slots["calendar-icon"]?M("",!0):(L(),Ee(b(ds),{key:1}))]}),_:2},[m.$slots["year-overlay"]?{name:"item",fn:ke(function(R){var B=R.item;return[oe(m.$slots,"year-overlay",{text:B.text,value:B.value})]})}:void 0]),1040)):M("",!0)]}),_:3},8,["name","css"]),b(_)?(L(),ee("div",{key:1,class:"dp__month_year_col_nav",onClick:P[2]||(P[2]=function(){return b(c)&&b(c).apply(void 0,arguments)}),onKeydown:P[3]||(P[3]=Pe(function(){return b(c)&&b(c).apply(void 0,arguments)},["enter"])),tabindex:"0"},[ie("div",ZO,[m.$slots["arrow-right"]?oe(m.$slots,"arrow-right",{key:0}):M("",!0),m.$slots["arrow-right"]?M("",!0):(L(),Ee(b(Ef),{key:1}))])],32)):M("",!0)],64)),t.monthPicker?(L(),Ee(_r,pt({key:1},{modelValue:t.month,items:b(T),disabledValues:t.filters.months},{"onUpdate:modelValue":h,onToggle:x}),st({header:ke(function(){return[ie("div",ek,[ie("div",{class:"dp__month_year_col_nav",tabindex:"0",onClick:P[4]||(P[4]=function(R){return X(!1)}),onKeydown:P[5]||(P[5]=Pe(function(R){return X(!1)},["enter"]))},[ie("div",tk,[m.$slots["arrow-left"]?oe(m.$slots,"arrow-left",{key:0}):M("",!0),m.$slots["arrow-left"]?M("",!0):(L(),Ee(b(wf),{key:1}))])],32),ie("div",{class:"dp__pointer",role:"button","aria-label":"Open years overlay",tabindex:"0",onClick:W,onKeydown:Pe(W,["enter"])},[m.$slots.year?oe(m.$slots,"year",{key:0,year:t.year}):M("",!0),m.$slots.year?M("",!0):(L(),ee(Se,{key:1},[Ht(Qe(t.year),1)],64))],40,nk),ie("div",{class:"dp__month_year_col_nav",tabindex:"0",onClick:P[6]||(P[6]=function(R){return X(!0)}),onKeydown:P[7]||(P[7]=Pe(function(R){return X(!0)},["enter"]))},[ie("div",rk,[m.$slots["arrow-right"]?oe(m.$slots,"arrow-right",{key:0}):M("",!0),m.$slots["arrow-right"]?M("",!0):(L(),Ee(b(Ef),{key:1}))])],32)]),qe(ln,{name:b(s)(l.value),css:b(o)},{default:ke(function(){return[l.value?(L(),Ee(_r,pt({key:0},{modelValue:t.year,items:b(C),disabledValues:t.filters.years},{"onUpdate:modelValue":f,onToggle:W}),st({"button-icon":ke(function(){return[m.$slots["calendar-icon"]?oe(m.$slots,"calendar-icon",{key:0}):M("",!0),m.$slots["calendar-icon"]?M("",!0):(L(),Ee(b(ds),{key:1}))]}),_:2},[m.$slots["year-overlay"]?{name:"item",fn:ke(function(R){var B=R.item;return[oe(m.$slots,"year-overlay",{text:B.text,value:B.value})]})}:void 0]),1040)):M("",!0)]}),_:3},8,["name","css"])]}),_:2},[m.$slots["month-overlay"]?{name:"item",fn:ke(function(R){var B=R.item;return[oe(m.$slots,"month-overlay",{text:B.text,value:B.value})]})}:void 0]),1040)):M("",!0)])}}}),sk={class:"db__calendar_header",role:"row"},ok={key:0,class:"dp__calendar_header_item",role:"gridcell"},ak=ie("div",{class:"dp__calendar_header_separator"},null,-1),lk={key:0,class:"dp__calendar",role:"grid","aria-label":"Calendar days"},uk={key:0,role:"gridcell",class:"dp__calendar_item dp__week_num"},ck={class:"dp__cell_inner"},dk=["aria-selected","aria-disabled","onClick","onKeydown","onMouseover"],fk=ie("div",{class:"dp__arrow_bottom_tp"},null,-1),hk=qt({props:{locale:{type:String,default:"en-Us"},weekNumName:{type:String,default:"W"},weekStart:{type:[Number,String],default:1},weekNumbers:{type:Boolean,default:!1},mappedDates:{type:Array,default:function(){return[]}},enableTimePicker:{type:Boolean,default:!0},timePickerComponent:{type:Object,default:null},monthYearComponent:{type:Object,default:null},is24:{type:Boolean,default:!0},hoursIncrement:{type:[String,Number],default:1},minutesIncrement:{type:[String,Number],default:1},secondsIncrement:{type:[String,Number],default:1},hoursGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},secondsGridIncrement:{type:[String,Number],default:5},range:{type:Boolean,default:!1},filters:{type:Object,default:function(){return{}}},customProps:{type:Object,default:null},hours:{type:[Number,Array],default:0},minutes:{type:[Number,Array],default:0},seconds:{type:[Number,Array],default:0},calendarClassName:{type:String,default:null},monthPicker:{type:Boolean,default:!1},timePicker:{type:Boolean,default:!1},disableMonthYearSelect:{type:Boolean,default:!1},getWeekNum:{type:Function,default:function(){return""}},instance:{type:Number,default:1},twoCalendars:{type:Boolean,default:!1},years:{type:Array,default:function(){return[]}},months:{type:Array,default:function(){return[]}},month:{type:Number,default:0},year:{type:Number,default:0},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},twoCalendarsSolo:{type:Boolean,default:!1},modeHeight:{type:[Number,String],default:255},enableSeconds:{type:Boolean,default:!1}},emits:["update:hours","update:minutes","update:seconds","selectDate","setHoverDate","update:month","update:year","monthYearSelect","handleScroll"],setup:function(t,e){var n=e.emit,r=t,i=Ps(),s=ge(null),o=ge({bottom:"",left:"",transform:""}),a=ge([]),l=ge(!0),u=at("transitions"),c=ge(""),d=To(r,"month"),h=To(r,"year"),f=ge(),E=ge(!1),w=te(function(){return function(B,v){var y,U,q=[1,2,3,4,5,6,7].map(function(ne){return new Intl.DateTimeFormat(B,{weekday:"short",timeZone:"UTC"}).format(new Date("2017-01-0".concat(ne,"T00:00:00+00:00"))).slice(0,2)}),re=q.slice(0,v),Z=q.slice(v+1,q.length);return(y=(U=[q[v]]).concat.apply(U,Bn(Z))).concat.apply(y,Bn(re))}(r.locale,+r.weekStart)});$r(function(){f.value=Ir(new Date,r.month,r.year)});var T=Nr(i,"timePicker"),C=Nr(i,"monthYear"),O=te(function(){return r.monthPicker||r.timePicker});on([d,h],function(){if(u!=null&&u.value){var B=Ir(new Date,r.month,r.year);c.value=Rn(Ir(new Date,r.month,r.year),f.value)?u.value.next:u.value.previous,f.value=B,E.value&&(l.value=!1,Qo(function(){l.value=!0}))}E.value||(E.value=!0)});var _=te(function(){return Yn({dp__calendar_wrap:!0},r.calendarClassName,!!r.calendarClassName)}),x=te(function(){return function(B){var v=function(y){return Object.assign({type:"dot"},y)}(B);return{dp__marker_dot:v.type==="dot",dp__marker_line:v.type==="line"}}}),W=te(function(){return function(B){return It(B,s.value)}}),X=te(function(){return{dp__calendar:!0,dp__calendar_next:r.instance===2}}),m=te(function(){return{dp__calendar_content_wrap:!0}}),P=te(function(){return O.value?{height:"".concat(r.modeHeight,"px")}:null}),R=function(){s.value=null};return function(B,v){return L(),ee("div",{class:Ne(b(X))},[ie("div",{class:Ne(b(m)),style:_n(b(P))},[t.disableMonthYearSelect||t.timePicker?M("",!0):(L(),Ee($l(t.monthYearComponent?t.monthYearComponent:ik),pt({key:0},{months:t.months,years:t.years,filters:t.filters,monthPicker:t.monthPicker,month:t.month,year:t.year,customProps:t.customProps,twoCalendars:t.twoCalendars,twoCalendarsSolo:t.twoCalendarsSolo,instance:t.instance},{"onUpdate:month":v[0]||(v[0]=function(y){return B.$emit("update:month",y)}),"onUpdate:year":v[1]||(v[1]=function(y){return B.$emit("update:year",y)}),onMonthYearSelect:v[2]||(v[2]=function(y){return B.$emit("monthYearSelect",y)})}),st({_:2},[it(b(C),function(y,U){return{name:y,fn:ke(function(q){return[oe(B.$slots,y,En(an(q)))]})}})]),1040)),b(O)?M("",!0):(L(),ee("div",{key:1,class:Ne(b(_)),role:"grid","aria-label":"Calendar wrapper",onWheel:v[4]||(v[4]=Fl(function(y){return B.$emit("handleScroll",y)},["prevent"]))},[ie("div",sk,[t.weekNumbers?(L(),ee("div",ok,Qe(t.weekNumName),1)):M("",!0),(L(!0),ee(Se,null,it(b(w),function(y,U){return L(),ee("div",{class:"dp__calendar_header_item",role:"gridcell",key:U},[B.$slots["calendar-header"]?oe(B.$slots,"calendar-header",{key:0,day:y,index:U}):M("",!0),B.$slots["calendar-header"]?M("",!0):(L(),ee(Se,{key:1},[Ht(Qe(y),1)],64))])}),128))]),ak,qe(ln,{name:c.value,css:!!b(u)},{default:ke(function(){return[l.value?(L(),ee("div",lk,[(L(!0),ee(Se,null,it(t.mappedDates,function(y,U){return L(),ee("div",{class:"dp__calendar_row",role:"row",key:U},[t.weekNumbers?(L(),ee("div",uk,[ie("div",ck,Qe(t.getWeekNum(y.days)),1)])):M("",!0),(L(!0),ee(Se,null,it(y.days,function(q,re){return L(),ee("div",{role:"gridcell",class:"dp__calendar_item",ref_for:!0,ref:function(Z){Z&&(a.value[re+U]=Z)},key:re+U,"aria-selected":q.classData.dp__active_date||q.classData.dp__range_start||q.classData.dp__range_start,"aria-disabled":q.classData.dp__cell_disabled,tabindex:"0",onClick:function(Z){return B.$emit("selectDate",q)},onKeydown:Pe(function(Z){return B.$emit("selectDate",q)},["enter"]),onMouseover:function(Z){return function(ne,ue){var Ie,Ge;if(n("setHoverDate",ne),(Ie=ne.marker)!==null&&Ie!==void 0&&(Ge=Ie.tooltip)!==null&&Ge!==void 0&&Ge.length){var Fe=Ot(a.value[ue]);if(Fe){var Je=Fe.getBoundingClientRect(),Ue=Je.width,mn=Je.height;o.value={bottom:"".concat(mn,"px"),left:"".concat(Ue/2,"px"),transform:"translateX(-50%)"},s.value=ne.value}}}(q,re+U)},onMouseleave:R},[ie("div",{class:Ne(["dp__cell_inner",q.classData])},[B.$slots.day?oe(B.$slots,"day",{key:0,day:+q.text,date:q.value}):M("",!0),B.$slots.day?M("",!0):(L(),ee(Se,{key:1},[Ht(Qe(q.text),1)],64)),q.marker?(L(),ee("div",{key:2,class:Ne(b(x)(q.marker)),style:_n(q.marker.color?{backgroundColor:q.marker.color}:{})},null,6)):M("",!0),b(W)(q.value)?(L(),ee("div",{key:3,class:"dp__marker_tooltip",style:_n(o.value)},[ie("div",{class:"dp__tooltip_content",onClick:v[3]||(v[3]=Fl(function(){},["stop"]))},[(L(!0),ee(Se,null,it(q.marker.tooltip,function(Z,ne){return L(),ee("div",{key:ne,class:"dp__tooltip_text"},[B.$slots["marker-tooltip"]?oe(B.$slots,"marker-tooltip",{key:0,tooltop:Z,day:q.value}):M("",!0),B.$slots["marker-tooltip"]?M("",!0):(L(),ee(Se,{key:1},[ie("div",{class:"dp__tooltip_mark",style:_n(Z.color?{backgroundColor:Z.color}:{})},null,4),ie("div",null,Qe(Z.text),1)],64))])}),128)),fk])],4)):M("",!0)],2)],40,dk)}),128))])}),128))])):M("",!0)]}),_:3},8,["name","css"])],34)),t.enableTimePicker?(L(),Ee($l(t.timePickerComponent?t.timePickerComponent:zO),pt({key:2},{is24:t.is24,hoursIncrement:t.hoursIncrement,minutesIncrement:t.minutesIncrement,hoursGridIncrement:t.hoursGridIncrement,secondsIncrement:t.secondsIncrement,minutesGridIncrement:t.minutesGridIncrement,secondsGridIncrement:t.secondsGridIncrement,noHoursOverlay:t.noHoursOverlay,noMinutesOverlay:t.noMinutesOverlay,noSecondsOverlay:t.noSecondsOverlay,range:t.range,filters:t.filters,timePicker:t.timePicker,hours:t.hours,minutes:t.minutes,seconds:t.seconds,customProps:t.customProps,twoCalendars:t.twoCalendars,instance:t.instance,enableSeconds:t.enableSeconds},{"onUpdate:hours":v[5]||(v[5]=function(y){return B.$emit("update:hours",y)}),"onUpdate:minutes":v[6]||(v[6]=function(y){return B.$emit("update:minutes",y)}),"onUpdate:seconds":v[7]||(v[7]=function(y){return B.$emit("update:seconds",y)})}),st({_:2},[it(b(T),function(y,U){return{name:y,fn:ke(function(q){return[oe(B.$slots,y,En(an(q)))]})}})]),1040)):M("",!0)],6)],2)}}});function fs(t){return fs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fs(t)}var Df=function(t,e){return e},ei=function(t){return Array.isArray(t)},Nn=function(t){return Array.isArray(t)},uu=function(t){return Array.isArray(t)&&t.length===2},Pf=function(t){return typeof t=="string"},pk={class:"dp__selection_preview"},mk={class:"dp__action_buttons"},gk=["onKeydown"],vk=qt({props:{selectText:{type:String,default:"Select"},cancelText:{type:String,default:"Cancel"},internalModelValue:{type:[Date,Array],default:null},range:{type:Boolean,default:!1},previewFormat:{type:[String,Function],default:function(){return""}},inline:{type:Boolean,default:!1},monthPicker:{type:Boolean,default:!1},timePicker:{type:Boolean,default:!1},twoCalendars:{type:Boolean,default:!1},calendarWidth:{type:Number,default:0},menuMount:{type:Boolean,default:!1},customProps:{type:Object,default:null},minTime:{type:Object,default:null},maxTime:{type:Object,default:null},enableTimePicker:{type:Boolean,default:!0}},emits:["closePicker","selectDate"],setup:function(t,e){var n=e.emit,r=t,i=at("formatLocale"),s=te(function(){return{dp__action:!0,dp__select:!0,dp__action_disabled:!o.value}}),o=te(function(){return!r.enableTimePicker||lu(r.internalModelValue,r.maxTime,r.minTime)}),a=te(function(){return r.internalModelValue&&r.menuMount?typeof r.previewFormat=="string"?ei(r.internalModelValue)?r.internalModelValue.length===2&&r.internalModelValue[1]?r.twoCalendars?"".concat(fr(r.internalModelValue[0],r.previewFormat,i==null?void 0:i.value)," - ").concat(fr(r.internalModelValue[1],r.previewFormat,i==null?void 0:i.value)):[fr(r.internalModelValue[0],r.previewFormat,i==null?void 0:i.value),fr(r.internalModelValue[1],r.previewFormat,i==null?void 0:i.value)]:"".concat(fr(r.internalModelValue[0],r.previewFormat,i==null?void 0:i.value)," -"):fr(r.internalModelValue,r.previewFormat,i==null?void 0:i.value):r.timePicker?r.previewFormat(au(r.internalModelValue)):r.monthPicker?r.previewFormat(ou(r.internalModelValue)):r.previewFormat(r.internalModelValue):""}),l=function(){o.value&&n("selectDate")};return function(u,c){return L(),ee("div",{class:"dp__action_row",style:_n(t.calendarWidth?{width:"".concat(t.calendarWidth,"px")}:{})},[ie("div",pk,[u.$slots["action-preview"]?oe(u.$slots,"action-preview",{key:0,value:t.internalModelValue}):M("",!0),u.$slots["action-preview"]?M("",!0):(L(),ee(Se,{key:1},[Array.isArray(b(a))?M("",!0):(L(),ee(Se,{key:0},[Ht(Qe(b(a)),1)],64)),Array.isArray(b(a))?(L(),ee(Se,{key:1},[ie("div",null,Qe(b(a)[0]),1),ie("div",null,Qe(b(a)[1]),1)],64)):M("",!0)],64))]),ie("div",mk,[u.$slots["action-select"]?oe(u.$slots,"action-select",{key:0,value:t.internalModelValue}):M("",!0),u.$slots["action-select"]?M("",!0):(L(),ee(Se,{key:1},[t.inline?M("",!0):(L(),ee("span",{key:0,class:"dp__action dp__cancel",tabindex:"0",onClick:c[0]||(c[0]=function(d){return u.$emit("closePicker")}),onKeydown:c[1]||(c[1]=Pe(function(d){return u.$emit("closePicker")},["enter"]))},Qe(t.cancelText),33)),ie("span",{class:Ne(b(s)),tabindex:"0",onKeydown:Pe(l,["enter"]),onClick:l},Qe(t.selectText),43,gk)],64))])],4)}}}),_k=function(t,e){var n=ge(new Date),r=ge(),i=ge(bt(new Date)),s=ge(rn(new Date)),o=ge(Vi(new Date).month),a=ge(Vi(new Date).year),l=ge(t.range?[$t(new Date),$t(new Date)]:$t(new Date)),u=ge(t.range?[Bt(new Date),Bt(new Date)]:Bt(new Date)),c=ge(t.range?[0,0]:0);$r(function(){C(),f.value||(t.startDate&&(i.value=bt(new Date(t.startDate)),s.value=rn(new Date(t.startDate)),t.twoCalendars&&(o.value=Vi(new Date(t.startDate)).month,a.value=Vi(new Date(t.startDate)).year)),t.startTime&&h())});var d=function(){var v=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];return t.enableSeconds?Array.isArray(c.value)?v?c.value[0]:c.value[1]:c.value:0},h=function(){var v;t.startTime&&(v=t.startTime,Array.isArray(v)?(l.value=[+t.startTime[0].hours,+t.startTime[1].hours],u.value=[+t.startTime[0].minutes,+t.startTime[1].minutes],t.enableSeconds&&(c.value=[+t.startTime[0].seconds,+t.startTime[1].seconds])):(l.value=+t.startTime.hours,u.value=+t.startTime.minutes,t.enableSeconds&&(c.value=+t.startTime.seconds)))},f=te({get:function(){return t.internalModelValue},set:function(v){t.readonly||t.disabled||e("update:internalModelValue",v)}});on(f,function(){return C()});var E=function(v){var y=!!t.maxDate&&Rn(Jt(v),Jt(new Date(t.maxDate))),U=!!t.minDate&&Qt(Jt(v),Jt(new Date(t.minDate))),q=typeof t.disabledDates=="function"?t.disabledDates(v):t.disabledDates.some(function(Fe){return It(Jt(new Date(Fe)),Jt(v))}),re=t.filters.months.length?t.filters.months.map(function(Fe){return+Fe}):[],Z=re.includes(bt(v)),ne=!!t.disabledWeekDays.length&&t.disabledWeekDays.some(function(Fe){return+Fe===LI(v)}),ue=!!t.allowedDates.length&&!t.allowedDates.some(function(Fe){return It(Jt(new Date(Fe)),Jt(v))}),Ie=rn(v),Ge=Ie<+t.yearRange[0]||Ie>+t.yearRange[1];return y||U||q||Z||Ge||ne||ue},w=function(v){return!!f.value&&!(t.hideOffsetDates&&!v.current)&&!t.range&&It(v.value,f.value?f.value:n.value)},T=function(v){i.value=bt(v),s.value=rn(v)},C=function(){f.value?ei(f.value)?(f.value.length===2&&(T(f.value[0]),l.value=[$t(f.value[0]),f.value[1]?$t(f.value[1]):$t(new Date)],u.value=[Bt(f.value[0]),f.value[1]?Bt(f.value[1]):Bt(new Date)],c.value=[Wn(f.value[0]),f.value[1]?Wn(f.value[1]):Wn(new Date)]),t.twoCalendars&&_()):(T(f.value),l.value=$t(f.value),u.value=Bt(f.value),c.value=Wn(f.value)):t.timePicker?(h(),t.range?Nn(l.value)&&Nn(u.value)&&(f.value=[yt(new Date,l.value[0],u.value[0],d()),yt(new Date,l.value[1],u.value[1],d(!1))]):f.value=yt(new Date,l.value,u.value,d())):t.monthPicker&&(f.value=Ir(new Date,i.value,s.value))},O=function(v){var y=bt(new Date(v)),U=rn(new Date(v)),q=Vi(new Date(v));i.value=y,s.value=U,o.value=q.month,a.value=q.year},_=function(){if(Array.isArray(f.value)&&f.value.length===2){var v=new Date(f.value[1]?f.value[1]:js(f.value[0],1));if(o.value===i.value&&a.value===s.value||!t.twoCalendarsSolo){var y=cl(i.value,s.value);o.value=y.month,a.value=y.year}else bt(f.value[0])!==bt(f.value[1])&&(o.value=bt(v),a.value=rn(v))}},x=function(v,y){if(!t.twoCalendarsSolo){var U=Cf(v,y);i.value=U.month,s.value=U.year}},W=function(v,y){if(!t.twoCalendarsSolo){var U=cl(v,y);o.value=U.month,a.value=U.year}},X=function(v){var y=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],U=arguments.length>2&&arguments[2]!==void 0&&arguments[2];y?U?(x(v,a.value),o.value=v):(W(v,s.value),i.value=v):U?(x(o.value,v),a.value=v):(W(i.value,v),s.value=v),t.monthPicker&&(f.value?f.value=Ir(f.value,i.value,s.value):f.value=Ir(new Date,i.value,s.value))},m=function(v){ei(v)&&ei(f.value)&&Nn(l.value)&&Nn(u.value)?(v[0]&&f.value[0]&&(f.value[0]=yt(v[0],l.value[0],u.value[0],d())),v[1]&&f.value[1]&&(f.value[1]=yt(v[1],l.value[1],u.value[1],d(!1)))):t.range||uu(v)||(f.value=yt(v,l.value,u.value,d())),e("timeUpdate")},P=function(v){return!(Df(f.value,t.range)&&f.value[0]&&r.value)||(v?Rn(r.value,f.value[0]):Qt(r.value,f.value[0]))},R=function(v){var y=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return t.range&&uu(f.value)?!(t.hideOffsetDates&&!v.current)&&It(new Date(v.value),f.value[y?0:1]):!!t.range&&(It(new Date(v.value),f.value&&Array.isArray(f.value)?y?f.value[0]||null:f.value[1]:null)&&(!y||!Qt(r.value||null,Array.isArray(f.value)?f.value[0]:null))||It(v.value,Array.isArray(f.value)?f.value[0]:null)&&P(y))},B=function(v,y){var U=y?[o.value,a.value]:[i.value,s.value],q=v<0?cl.apply(void 0,U):Cf.apply(void 0,U);X(q.month,!0,y),X(q.year,!1,y)};return{today:n,hours:l,month:i,year:s,monthNext:o,yearNext:a,minutes:u,seconds:c,monthYearSelect:function(){var v=arguments.length>0&&arguments[0]!==void 0&&arguments[0];t.autoApply&&t.monthPicker&&e("autoApply",v)},isDisabled:E,updateTime:function(v){var y=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],U=arguments.length>2&&arguments[2]!==void 0&&arguments[2];y?l.value=v:y||U?U&&(c.value=v):u.value=v,f.value?m(f.value):t.timePicker&&m(t.range?[new Date,new Date]:new Date)},setHoverDate:function(v){!v.current&&t.hideOffsetDates||(r.value=v.value)},getWeekNum:function(v){var y=v.find(function(U){return U.current});return y?UI(y.value):""},selectDate:function(v){var y=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(!E(v.value)&&(v.current||!t.hideOffsetDates))if(t.range||Nn(l.value)||Nn(u.value)){if(Nn(l.value)&&Nn(u.value)){var U=f.value?f.value.slice():[];U.length===2&&(U=[]),t.autoRange?(y&&O(v.value),U=[new Date(v.value),Sr(new Date(v.value),+t.autoRange)]):U[0]?Qt(new Date(v.value),new Date(U[0]))?U.unshift(new Date(v.value)):U[1]=new Date(v.value):U[0]=new Date(v.value),U[0]&&!U[1]?U[0]=yt(U[0],l.value[0],u.value[0],d()):(U[0]=yt(U[0],l.value[0],u.value[0],d()),U[1]=yt(U[1],l.value[1],u.value[1],d(!1))),f.value=U,U[0]&&U[1]&&t.autoApply&&e("autoApply")}}else f.value=yt(new Date(v.value),l.value,u.value,d()),t.autoApply&&e("autoApply")},rangeActive:function(v){return ei(f.value)&&f.value[0]&&f.value[1]?Rn(v.value,f.value[0])&&Qt(v.value,f.value[1]):!!(ei(f.value)&&f.value[0]&&r.value)&&(Rn(v.value,f.value[0])&&Qt(v.value,r.value)||Qt(v.value,f.value[0])&&Rn(v.value,r.value))},isActiveDate:w,updateMonthYear:X,isHoverRangeEnd:function(v){if(t.autoRange){if(r.value){if(t.hideOffsetDates&&!v.current)return!1;var y=Sr(r.value,+t.autoRange);return It(y,new Date(v.value))}return!1}return!1},isAutoRangeInBetween:function(v){if(t.autoRange){if(r.value){var y=Sr(r.value,+t.autoRange);return!(t.hideOffsetDates&&!v.current)&&Rn(v.value,r.value)&&Qt(v.value,y)}return!1}return!1},isAutoRangeStart:function(v){return!!t.autoRange&&!!r.value&&!(t.hideOffsetDates&&!v.current)&&It(r.value,v.value)},clearHoverDate:function(){r.value=null},rangeActiveStartEnd:R,handleScroll:function(v){var y=arguments.length>1&&arguments[1]!==void 0&&arguments[1];t.monthChangeOnScroll&&B(t.monthChangeOnScroll==="inverse"?-v.deltaY:v.deltaY,y)},getMarker:function(v){return t.markers.find(function(y){return It(Jt(new Date(v.value)),Jt(new Date(y.date)))})},handleArrow:function(v){var y=arguments.length>1&&arguments[1]!==void 0&&arguments[1];t.monthChangeOnArrows&&B(v==="right"?-1:1,y)},selectCurrentDate:function(){t.range?Df(f.value,t.range)&&(f.value&&f.value[0]?f.value=Qt(new Date,f.value[0])?[new Date,f.value[0]]:[f.value[0],new Date]:f.value=[new Date]):e("update:internalModelValue",new Date),t.autoApply&&e("selectDate")},isHoverDate:function(v,y){return(!Array.isArray(t.internalModelValue)||!t.internalModelValue.length)&&!(v||w(y)||!y.current&&t.hideOffsetDates||t.range&&(R(y)||R(y,!1)))},isHoverDateStartEnd:function(v,y,U){return!(!Array.isArray(t.internalModelValue)||!t.internalModelValue[0]||t.internalModelValue.length!==1)&&!v&&(U?Rn(t.internalModelValue[0],y.value):Qt(t.internalModelValue[0],y.value))}}};function Nf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function so(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Nf(Object(n),!0).forEach(function(r){Yn(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Nf(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var hs,yk=["id","onKeydown"],bk={key:2,class:"dp__now_wrap"},wk=qt({props:{internalModelValue:{type:[Date,Array],default:null},weekNumbers:{type:Boolean,default:!1},weekStart:{type:[Number,String],default:1},disableMonthYearSelect:{type:Boolean,default:!1},menuClassName:{type:String,default:null},calendarClassName:{type:String,default:null},yearRange:{type:Array,default:function(){return[1970,2100]}},range:{type:Boolean,default:!1},twoCalendars:{type:Boolean,default:!1},twoCalendarsSolo:{type:Boolean,default:!1},calendarCellClassName:{type:String,default:null},enableTimePicker:{type:Boolean,default:!1},is24:{type:Boolean,default:!0},hoursIncrement:{type:[String,Number],default:1},minutesIncrement:{type:[String,Number],default:1},secondsIncrement:{type:[String,Number],default:1},hoursGridIncrement:{type:[String,Number],default:1},secondsGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},minDate:{type:[Date,String],default:null},maxDate:{type:[Date,String],default:null},autoApply:{type:Boolean,default:!1},selectText:{type:String,default:"Select"},cancelText:{type:String,default:"Cancel"},previewFormat:{type:[String,Function],default:function(){return null}},locale:{type:String,default:"en-US"},weekNumName:{type:String,default:"W"},disabledDates:{type:[Array,Function],default:function(){return[]}},filters:{type:Object,default:function(){return{}}},minTime:{type:Object,default:null},maxTime:{type:Object,default:null},inline:{type:Boolean,default:!1},openOnTop:{type:Boolean,default:!1},monthPicker:{type:Boolean,default:!1},timePicker:{type:Boolean,default:!1},monthNameFormat:{type:String,default:"short"},startDate:{type:[Date,String],default:null},startTime:{type:[Object,Array],default:null},monthYearComponent:{type:Object,default:null},timePickerComponent:{type:Object,default:null},actionRowComponent:{type:Object,default:null},customProps:{type:Object,default:null},hideOffsetDates:{type:Boolean,default:!1},autoRange:{type:[Number,String],default:null},noToday:{type:Boolean,default:!1},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},disabledWeekDays:{type:Array,default:function(){return[]}},allowedDates:{type:Array,default:function(){return[]}},showNowButton:{type:Boolean,default:!1},nowButtonLabel:{type:String,default:"Now"},monthChangeOnScroll:{type:[Boolean,String],default:!0},markers:{type:Array,default:function(){return[]}},uid:{type:String,default:null},modeHeight:{type:[Number,String],default:255},enableSeconds:{type:Boolean,default:!1},escClose:{type:Boolean,default:!0},spaceConfirm:{type:Boolean,default:!0},monthChangeOnArrows:{type:Boolean,default:!0},textInput:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},emits:["update:internalModelValue","closePicker","selectDate","dpOpen","autoApply","timeUpdate"],setup:function(t,e){var n=e.emit,r=t,i=Ps(),s=ge(null),o=ge(null),a=ge(0),l=ge(!1);$r(function(){l.value=!0;var A=Ot(s);A&&(a.value=A.getBoundingClientRect().width),r.inline||Qo(function(){return n("dpOpen")});var F=Ot(o);!F||r.textInput||r.inline||F.focus({preventScroll:!0}),F&&F.addEventListener("pointerdown",function(N){N.stopImmediatePropagation()})});var u=_k(r,n),c=u.updateTime,d=u.updateMonthYear,h=u.today,f=u.month,E=u.year,w=u.monthNext,T=u.yearNext,C=u.hours,O=u.minutes,_=u.seconds,x=u.isDisabled,W=u.isActiveDate,X=u.selectDate,m=u.getWeekNum,P=u.setHoverDate,R=u.isHoverRangeEnd,B=u.isAutoRangeInBetween,v=u.isAutoRangeStart,y=u.rangeActive,U=u.clearHoverDate,q=u.rangeActiveStartEnd,re=u.monthYearSelect,Z=u.handleScroll,ne=u.handleArrow,ue=u.getMarker,Ie=u.selectCurrentDate,Ge=u.isHoverDateStartEnd,Fe=u.isHoverDate,Je=Nr(i,"calendar"),Ue=Nr(i,"action"),mn=te(function(){return r.openOnTop?"dp__arrow_bottom":"dp__arrow_top"}),$=te(function(){return function(A){for(var F=[],N=+A[0];N<=+A[1];N++)F.push({value:+N,text:"".concat(N)});return F}(r.yearRange)}),z=te(function(){return function(A,F){var N=new Intl.DateTimeFormat(A,{month:F,timeZone:"UTC"});return[1,2,3,4,5,6,7,8,9,10,11,12].map(function(G){var se=G<10?"0".concat(G):G;return new Date("2017-".concat(se,"-01T00:00:00+00:00"))}).map(function(G,se){return{text:N.format(G),value:se}})}(r.locale,r.monthNameFormat)}),V=te(function(){return Af(f.value,E.value,+r.weekStart,r.hideOffsetDates)}),Q=te(function(){return Af(w.value,T.value,+r.weekStart,r.hideOffsetDates)}),Te=te(function(){return r.twoCalendars&&r.range?[1,2]:[1]}),pe=te(function(){return function(A){return A===1}}),fe=te(function(){return r.monthPicker||r.timePicker}),ce=te(function(){return{dp__calendar_wrapper:!0,dp__flex_display:r.twoCalendars}}),p=te(function(){return{dp__menu_disabled:r.disabled,dp__menu_readonly:r.readonly}}),g=te(function(){return j(V)}),S=te(function(){return j(Q)}),I=te(function(){return{locale:r.locale,weekNumName:r.weekNumName,weekStart:r.weekStart,weekNumbers:r.weekNumbers,enableTimePicker:r.enableTimePicker,disableMonthYearSelect:r.disableMonthYearSelect,is24:r.is24,hoursIncrement:r.hoursIncrement,minutesIncrement:r.minutesIncrement,secondsIncrement:r.secondsIncrement,hoursGridIncrement:r.hoursGridIncrement,minutesGridIncrement:r.minutesGridIncrement,secondsGridIncrement:r.secondsGridIncrement,monthPicker:r.monthPicker,timePicker:r.timePicker,range:r.range,filters:r.filters,minTime:r.minTime,maxTime:r.maxTime,customProps:r.customProps,hours:C.value,minutes:O.value,seconds:_.value,calendarClassName:r.calendarClassName,specificMode:fe.value,getWeekNum:m,twoCalendars:r.twoCalendars,months:z.value,years:$.value,noHoursOverlay:r.noHoursOverlay,noMinutesOverlay:r.noMinutesOverlay,noSecondsOverlay:r.noSecondsOverlay,twoCalendarsSolo:r.twoCalendarsSolo,modeHeight:r.modeHeight,enableSeconds:r.enableSeconds}}),D=te(function(){var A;return Yn(A={dp__menu:!0},r.menuClassName,!!r.menuClassName),Yn(A,"dp__relative",r.inline),A}),j=function(A){return A.value.map(function(F){return so(so({},F),{},{days:F.days.map(function(N){var G=x(N.value),se=Fe(G,N);return N.marker=ue(N),N.classData=Yn({dp__cell_offset:!N.current,dp__pointer:!(G||!N.current&&r.hideOffsetDates),dp__active_date:!r.range&&W(N),dp__date_hover:se,dp__date_hover_start:Ge(se,N,!0),dp__date_hover_end:Ge(se,N,!1),dp__range_between:!(!r.range||r.twoCalendars&&!N.current||G||!N.current&&r.hideOffsetDates||W(N))&&y(N),dp__today:!r.noToday&&It(N.value,h.value),dp__cell_disabled:G,dp__cell_auto_range:B(N),dp__cell_auto_range_start:v(N),dp__cell_auto_range_end:R(N),dp__range_start:r.twoCalendars?N.current&&q(N):q(N),dp__range_end:r.twoCalendars?N.current&&q(N,!1):q(N,!1)},r.calendarCellClassName,!!r.calendarCellClassName),N})})})},J=function(A){A.stopImmediatePropagation()},K=function(){r.escClose&&n("closePicker")},Y=function(A){A.stopImmediatePropagation(),A.preventDefault(),r.spaceConfirm&&n("selectDate")};return function(A,F){return L(),ee("div",{id:t.uid?"dp-menu-".concat(t.uid):void 0,tabindex:"0",ref_key:"dpMenuRef",ref:o,role:"dialog","aria-label":"Datepicker menu",class:Ne(b(D)),onMouseleave:F[7]||(F[7]=function(){return b(U)&&b(U).apply(void 0,arguments)}),onClick:J,onKeydown:[Pe(K,["esc"]),Pe(Y,["space"]),F[8]||(F[8]=Pe(function(N){return b(ne)("left",!1)},["left"])),F[9]||(F[9]=Pe(function(N){return b(ne)("right",!1)},["right"]))]},[(t.disabled||t.readonly)&&t.inline?(L(),ee("div",{key:0,class:Ne(b(p))},null,2)):M("",!0),t.inline?M("",!0):(L(),ee("div",{key:1,class:Ne(b(mn))},null,2)),ie("div",{class:Ne(b(ce)),ref_key:"calendarWrapperRef",ref:s,role:"document"},[(L(!0),ee(Se,null,it(b(Te),function(N){return L(),Ee(hk,pt(b(I),{key:N,instance:N,"mapped-dates":b(pe)(N)?b(g):b(S),month:b(pe)(N)?b(f):b(w),year:b(pe)(N)?b(E):b(T),"month-year-component":t.monthYearComponent,"time-picker-component":t.timePickerComponent,"onUpdate:hours":F[0]||(F[0]=function(G){return b(c)(G)}),"onUpdate:minutes":F[1]||(F[1]=function(G){return b(c)(G,!1)}),"onUpdate:seconds":F[2]||(F[2]=function(G){return b(c)(G,!1,!0)}),"onUpdate:month":function(G){return b(d)(G,!0,!b(pe)(N))},"onUpdate:year":function(G){return b(d)(G,!1,!b(pe)(N))},onMonthYearSelect:b(re),onSelectDate:function(G){return b(X)(G,!b(pe)(N))},onSetHoverDate:F[3]||(F[3]=function(G){return b(P)(G)}),onHandleScroll:function(G){return b(Z)(G,!b(pe)(N))}}),st({_:2},[it(b(Je),function(G,se){return{name:G,fn:ke(function(Ce){return[oe(A.$slots,G,En(an(so({},Ce))))]})}})]),1040,["instance","mapped-dates","month","year","month-year-component","time-picker-component","onUpdate:month","onUpdate:year","onMonthYearSelect","onSelectDate","onHandleScroll"])}),128))],2),t.showNowButton?(L(),ee("div",bk,[A.$slots["now-button"]?oe(A.$slots,"now-button",{key:0,selectCurrentDate:b(Ie)}):M("",!0),A.$slots["now-button"]?M("",!0):(L(),ee("button",{key:1,type:"button",role:"button",class:"dp__now_button",onClick:F[4]||(F[4]=function(){return b(Ie)&&b(Ie).apply(void 0,arguments)})},Qe(t.nowButtonLabel),1))])):M("",!0),t.autoApply?M("",!0):(L(),Ee($l(t.actionRowComponent?t.actionRowComponent:vk),pt({key:3},{calendarWidth:a.value,selectText:t.selectText,cancelText:t.cancelText,internalModelValue:t.internalModelValue,range:t.range,previewFormat:t.previewFormat,inline:t.inline,monthPicker:t.monthPicker,timePicker:t.timePicker,customProps:t.customProps,twoCalendars:t.twoCalendars,menuMount:l.value,maxTime:t.maxTime,minTime:t.minTime,enableTimePicker:t.enableTimePicker},{onClosePicker:F[5]||(F[5]=function(N){return A.$emit("closePicker")}),onSelectDate:F[6]||(F[6]=function(N){return A.$emit("selectDate")})}),st({_:2},[it(b(Ue),function(N,G){return{name:N,fn:ke(function(se){return[oe(A.$slots,N,En(an(so({},se))))]})}})]),1040))],42,yk)}}});(function(t){t.center="center",t.left="left",t.right="right"})(hs||(hs={}));var Ek=function(t,e,n,r,i,s,o,a,l,u){var c=ge(""),d=ge();on(d,function(){u("internalModelChange",d.value)});var h=function(){if(d.value)if(t&&typeof t!="string")c.value=t(e?au(d.value):n?ou(d.value):d.value);else{var f=Cg(t,s,a,n,e,o);c.value=fr(d.value,f,l==null?void 0:l.value)}else c.value=""};return{parseExternalModelValue:function(f){var E=null;f?e?function(w){return Array.isArray(w)&&w.length===2}(f)&&"hours"in f[0]&&"minutes"in f[0]?E=[yt(null,+f[0].hours,+f[0].minutes,+f[0].seconds),yt(null,+f[1].hours,+f[1].minutes,+f[1].seconds)]:function(w){return fs(w)==="object"}(f)&&(E=yt(null,+f.hours,+f.minutes,+f.seconds)):n?function(w){return fs(w)==="object"}(f)&&"month"in f&&"year"in f&&(E=Ir(null,+f.month,+f.year)):r?function(w,T){return T?Array.isArray(w):uu(w)}(f,i)&&(E=[new Date(f[0]),f[1]?new Date(f[1]):null]):function(w){return typeof w=="string"||fs(w)==="object"}(f)&&(E=new Date(f)):E=null,su(E)?(d.value=E,h()):(d.value=null,c.value="")},formatInputValue:h,internalModelValue:d,inputValue:c,emitModelValue:function(){n?u("update:modelValue",ou(d.value)):e?u("update:modelValue",au(d.value)):(r&&i&&d.value.length===1&&d.value.push(null),u("update:modelValue",d.value)),h()},checkBeforeEmit:function(){return!!d.value&&(r?i?d.value.length>=1:d.value.length===2:!!d.value)}}},Tk=typeof window!="undefined"?window:void 0,hl=function(){},Ck=function(t,e,n,r){if(!t)return hl;var i,s=hl,o=on(function(){return b(t)},function(l){s(),l&&(l.addEventListener(e,n,r),s=function(){l.removeEventListener(e,n,r),s=hl})},{immediate:!0,flush:"post"}),a=function(){o(),s()};return i=a,vv()&&_v(i),a};function Mf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Sk(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Mf(Object(n),!0).forEach(function(r){Yn(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Mf(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Ak=qt({props:{uid:{type:String,default:null},is24:{type:Boolean,default:!0},enableTimePicker:{type:Boolean,default:!0},locale:{type:String,default:"en-US"},range:{type:Boolean,default:!1},twoCalendars:{type:Boolean,default:!1},twoCalendarsSolo:{type:Boolean,default:!1},modelValue:{type:[String,Date,Array,Object],default:null},position:{type:String,default:"center"},placeholder:{type:String,default:null},weekNumbers:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},hoursIncrement:{type:[String,Number],default:1},minutesIncrement:{type:[String,Number],default:1},secondsIncrement:{type:[String,Number],default:1},hoursGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},secondsGridIncrement:{type:[String,Number],default:5},minDate:{type:[Date,String],default:null},maxDate:{type:[Date,String],default:null},minTime:{type:Object,default:null},maxTime:{type:Object,default:null},weekStart:{type:[String,Number],default:1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},monthNameFormat:{type:String,default:"short"},weekNumName:{type:String,default:"W"},format:{type:[String,Function],default:function(){return null}},previewFormat:{type:[String,Function],default:function(){return null}},inputClassName:{type:String,default:null},menuClassName:{type:String,default:null},calendarClassName:{type:String,default:null},calendarCellClassName:{type:String,default:null},hideInputIcon:{type:Boolean,default:!1},state:{type:Boolean,default:null},clearable:{type:Boolean,default:!0},closeOnScroll:{type:Boolean,default:!1},autoApply:{type:Boolean,default:!1},filters:{type:Object,default:function(){return{}}},disableMonthYearSelect:{type:Boolean,default:!1},yearRange:{type:Array,default:function(){return[1900,2100]}},disabledDates:{type:[Array,Function],default:function(){return[]}},disabledWeekDays:{type:Array,default:function(){return[]}},inline:{type:Boolean,default:!1},selectText:{type:String,default:"Select"},cancelText:{type:String,default:"Cancel"},autoPosition:{type:Boolean,default:!0},monthPicker:{type:Boolean,default:!1},timePicker:{type:Boolean,default:!1},closeOnAutoApply:{type:Boolean,default:!0},textInput:{type:Boolean,default:!1},textInputOptions:{type:Object,default:function(){return{}}},teleport:{type:String,default:"body"},startDate:{type:[Date,String],default:null},startTime:{type:[Object,Array],default:null},monthYearComponent:{type:Object,default:null},timePickerComponent:{type:Object,default:null},actionRowComponent:{type:Object,default:null},customProps:{type:Object,default:null},hideOffsetDates:{type:Boolean,default:!1},autoRange:{type:[Number,String],default:null},noToday:{type:Boolean,default:!1},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},altPosition:{type:Boolean,default:!1},allowedDates:{type:Array,default:function(){return[]}},showNowButton:{type:Boolean,default:!1},nowButtonLabel:{type:String,default:"Now"},partialRange:{type:Boolean,default:!0},monthChangeOnScroll:{type:[Boolean,String],default:!0},markers:{type:Array,default:function(){return[]}},transitions:{type:Boolean,default:!0},modeHeight:{type:[Number,String],default:255},enableSeconds:{type:Boolean,default:!1},openMenuOnFocus:{type:Boolean,default:!0},escClose:{type:Boolean,default:!0},spaceConfirm:{type:Boolean,default:!0},monthChangeOnArrows:{type:Boolean,default:!0},formatLocale:{type:Object,default:null}},emits:["update:modelValue","textSubmit","closed","cleared","open","focus","blur","internalModelChange"],setup:function(t,e){var n=e.expose,r=e.emit,i=t,s=Ps(),o=ge(!1),a=To(i,"modelValue"),l=ge(null),u=ge(null);wr("autoApply",i.autoApply);var c=te(function(){return i.formatLocale});wr("formatLocale",c),$r(function(){W(i.modelValue),i.inline||(window.addEventListener("scroll",Z),window.addEventListener("resize",ne)),i.inline&&(o.value=!0)}),na(function(){i.inline||(window.removeEventListener("scroll",Z),window.removeEventListener("resize",ne))});var d=Nr(s,"all"),h=Nr(s,"input");on(a,function(){W(a.value)},{deep:!0});var f=function(z,V,Q,Te){var pe=ge({top:"0",left:"0",transform:"none"}),fe=ge(!1),ce=function(I){var D=I.getBoundingClientRect();return{left:D.left+window.scrollX,top:D.top+window.scrollY}},p=function(I){for(var D=0,j=0;I&&!isNaN(I.offsetLeft)&&!isNaN(I.offsetTop);)D+=I.offsetLeft-I.scrollLeft,j+=I.offsetTop-I.scrollTop,I=I.offsetParent;return{top:j,left:D}},g=function(){var I=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],D=Ot(Te);if(D){var j=D.getBoundingClientRect(),J=j.left,K=j.width,Y=j.height,A=(V?p(D):ce(D)).top,F={top:"".concat(Y+A+10,"px"),left:"",transform:"none"};z===hs.left&&(F.left="".concat(J,"px")),z===hs.right&&(F.left="".concat(J+K,"px"),F.transform="translateX(-100%)"),z===hs.center&&(F.left="".concat(J+K/2,"px"),F.transform="translateX(-50%)"),pe.value=F,I&&S()}},S=function(){var I=Ot(Te);if(I){var D=I.getBoundingClientRect(),j=D.height,J=D.top,K=(V?p(I):ce(I)).top,Y=window.innerHeight-J-j,A=Ot(Q);if(A){var F=A.getBoundingClientRect().height,N=F+j;N>J&&N>Y?J<Y&&(g(!1),fe.value=!1):N>Y?(pe.value.top="".concat(K-F-10,"px"),fe.value=!0):(g(!1),fe.value=!1)}}};return{openOnTop:fe,menuPosition:pe,setMenuPosition:g,recalculatePosition:S}}(i.position,i.altPosition,l,u),E=f.openOnTop,w=f.menuPosition,T=f.setMenuPosition,C=f.recalculatePosition,O=Ek(i.format,i.timePicker,i.monthPicker,i.range,i.partialRange,i.is24,i.enableTimePicker,i.enableSeconds,c,r),_=O.internalModelValue,x=O.inputValue,W=O.parseExternalModelValue,X=O.emitModelValue,m=O.checkBeforeEmit,P=te(function(){return{dp__main:!0,dp__theme_dark:i.dark,dp__theme_light:!i.dark,dp__flex_display:i.inline}}),R=te(function(){return Pf(i.format)?i.format:Cg(null,i.is24,i.enableSeconds,i.monthPicker,i.timePicker,i.enableTimePicker)}),B=te(function(){return i.previewFormat?i.previewFormat:Pf(R.value)?R.value:i.format}),v=te(function(){return typeof i.transitions=="boolean"?!!i.transitions&&If({}):If(i.transitions)});wr("transitions",v);var y=te(function(){return i.dark?"dp__theme_dark":"dp__theme_light"}),U=te(function(){return Object.assign({enterSubmit:!0,tabSubmit:!0,openMenu:!0,rangeSeparator:"-"},i.textInputOptions)}),q=te(function(){return z=i.filters,Object.assign({months:[],years:[],times:{hours:[],minutes:[],seconds:[]}},z);var z}),re=te(function(){var z=function(V){var Q={hours:$t(new Date),minutes:Bt(new Date),seconds:Wn(new Date)};return Object.assign(Q,V)};return i.range?i.startTime&&Array.isArray(i.startTime)?[z(i.startTime[0]),z(i.startTime[1])]:null:i.startTime&&!Array.isArray(i.startTime)?z(i.startTime):null}),Z=function z(){o.value&&(i.closeOnScroll?Ue():i.autoPosition?T():window.removeEventListener("scroll",z))},ne=function(){o.value&&T()},ue=function(){i.disabled||i.readonly||(T(),o.value=!o.value,o.value||Je(),o.value&&(r("open"),r("focus")),W(i.modelValue))},Ie=function(){x.value="",Je(),r("update:modelValue",null),r("cleared"),Ue()},Ge=function(){m()&&(X(),Ue())},Fe=function(){var z=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.autoApply){var V=!i.enableTimePicker||lu(_.value,i.maxTime,i.minTime);V&&(X(),i.closeOnAutoApply&&!z&&Ue())}},Je=function(){_.value=null},Ue=function(){i.inline||(o.value&&(o.value=!1,r("closed"),r("blur")),Je(),u.value&&u.value.unFocus())},mn=function(z,V){z?(_.value=z,V&&(Ge(),r("textSubmit"))):_.value=null},$=function(){i.autoApply&&lu(_.value,i.maxTime,i.minTime)&&X()};return function(z,V,Q){var Te=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},pe=Te.window,fe=pe===void 0?Tk:pe,ce=Te.event,p=ce===void 0?"pointerdown":ce;if(fe){var g=function(S){var I=Ot(z),D=Ot(V);I&&D&&(I===S.target||S.composedPath().includes(I)||S.composedPath().includes(D)||Q(S))};Ck(fe,p,g,{passive:!0})}}(l,u,Ue),n({closeMenu:Ue,selectDate:Ge,clearValue:Ie,openMenu:ue,onScroll:Z}),function(z,V){return L(),ee("div",{class:Ne(b(P))},[qe(MO,pt({ref_key:"inputRef",ref:u},{placeholder:t.placeholder,hideInputIcon:t.hideInputIcon,readonly:t.readonly,disabled:t.disabled,inputClassName:t.inputClassName,clearable:t.clearable,state:t.state,inline:t.inline,textInput:t.textInput,textInputOptions:b(U),range:t.range,isMenuOpen:o.value,pattern:b(R),autoApply:t.autoApply,uid:t.uid,openMenuOnFocus:t.openMenuOnFocus,required:t.required},{"input-value":b(x),"onUpdate:input-value":V[0]||(V[0]=function(Q){return je(x)?x.value=Q:null}),onClear:Ie,onOpen:ue,onSetInputDate:mn,onSetEmptyDate:b(X),onSelectDate:Ge,onClose:Ue}),st({_:2},[it(b(h),function(Q,Te){return{name:Q,fn:ke(function(pe){return[oe(z.$slots,Q,En(an(pe)))]})}})]),1040,["input-value","onSetEmptyDate"]),o.value?(L(),Ee(F_,{key:0,to:t.teleport,disabled:t.inline},[o.value?(L(),Ee(wk,pt({key:0,ref_key:"dpMenuRef",ref:l,class:b(y),style:b(w)},{weekNumbers:t.weekNumbers,weekStart:t.weekStart,disableMonthYearSelect:t.disableMonthYearSelect,menuClassName:t.menuClassName,calendarClassName:t.calendarClassName,yearRange:t.yearRange,range:t.range,twoCalendars:t.twoCalendars,calendarCellClassName:t.calendarCellClassName,enableTimePicker:t.enableTimePicker,is24:t.is24,hoursIncrement:t.hoursIncrement,minutesIncrement:t.minutesIncrement,hoursGridIncrement:t.hoursGridIncrement,minutesGridIncrement:t.minutesGridIncrement,minDate:t.minDate,maxDate:t.maxDate,autoApply:t.autoApply,selectText:t.selectText,cancelText:t.cancelText,previewFormat:b(B),locale:t.locale,weekNumName:t.weekNumName,disabledDates:t.disabledDates,filters:b(q),minTime:t.minTime,maxTime:t.maxTime,inline:t.inline,openOnTop:b(E),monthPicker:t.monthPicker,timePicker:t.timePicker,monthNameFormat:t.monthNameFormat,startDate:t.startDate,startTime:b(re),monthYearComponent:t.monthYearComponent,timePickerComponent:t.timePickerComponent,actionRowComponent:t.actionRowComponent,customProps:t.customProps,hideOffsetDates:t.hideOffsetDates,autoRange:t.autoRange,noToday:t.noToday,noHoursOverlay:t.noHoursOverlay,noMinutesOverlay:t.noMinutesOverlay,twoCalendarsSolo:t.twoCalendarsSolo,disabledWeekDays:t.disabledWeekDays,allowedDates:t.allowedDates,showNowButton:t.showNowButton,nowButtonLabel:t.nowButtonLabel,monthChangeOnScroll:t.monthChangeOnScroll,markers:t.markers,uid:t.uid,modeHeight:t.modeHeight,enableSeconds:t.enableSeconds,secondsIncrement:t.secondsIncrement,secondsGridIncrement:t.secondsGridIncrement,noSecondsOverlay:t.noSecondsOverlay,escClose:t.escClose,spaceConfirm:t.spaceConfirm,monthChangeOnArrows:t.monthChangeOnArrows,textInput:t.textInput,disabled:t.disabled,readonly:t.readonly},{internalModelValue:b(_),"onUpdate:internalModelValue":V[1]||(V[1]=function(Q){return je(_)?_.value=Q:null}),onClosePicker:Ue,onSelectDate:Ge,onDpOpen:b(C),onAutoApply:Fe,onTimeUpdate:$}),st({_:2},[it(b(d),function(Q,Te){return{name:Q,fn:ke(function(pe){return[oe(z.$slots,Q,En(an(Sk({},pe))))]})}})]),1040,["class","style","internalModelValue","onDpOpen"])):M("",!0)],8,["to","disabled"])):M("",!0)],2)}}}),IN=function(){var t=Ak;return t.install=function(e){e.component("Vue3DatePicker",t)},t}();/*!
|
|
* Bootstrap v5.1.3 (https://getbootstrap.com/)
|
|
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
*/const Ik=1e6,Ok=1e3,cu="transitionend",kk=t=>t==null?`${t}`:{}.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),Dk=t=>{do t+=Math.floor(Math.random()*Ik);while(document.getElementById(t));return t},Sg=t=>{let e=t.getAttribute("data-bs-target");if(!e||e==="#"){let n=t.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),e=n&&n!=="#"?n.trim():null}return e},bc=t=>{const e=Sg(t);return e&&document.querySelector(e)?e:null},Qn=t=>{const e=Sg(t);return e?document.querySelector(e):null},Pk=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:n}=window.getComputedStyle(t);const r=Number.parseFloat(e),i=Number.parseFloat(n);return!r&&!i?0:(e=e.split(",")[0],n=n.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(n))*Ok)},Ag=t=>{t.dispatchEvent(new Event(cu))},Mr=t=>!t||typeof t!="object"?!1:(typeof t.jquery!="undefined"&&(t=t[0]),typeof t.nodeType!="undefined"),Zn=t=>Mr(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(t):null,pn=(t,e,n)=>{Object.keys(n).forEach(r=>{const i=n[r],s=e[r],o=s&&Mr(s)?"element":kk(s);if(!new RegExp(i).test(o))throw new TypeError(`${t.toUpperCase()}: Option "${r}" provided type "${o}" but expected type "${i}".`)})},Ws=t=>!Mr(t)||t.getClientRects().length===0?!1:getComputedStyle(t).getPropertyValue("visibility")==="visible",Or=t=>!t||t.nodeType!==Node.ELEMENT_NODE||t.classList.contains("disabled")?!0:typeof t.disabled!="undefined"?t.disabled:t.hasAttribute("disabled")&&t.getAttribute("disabled")!=="false",Ig=t=>{if(!document.documentElement.attachShadow)return null;if(typeof t.getRootNode=="function"){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?Ig(t.parentNode):null},Wo=()=>{},xi=t=>{t.offsetHeight},Og=()=>{const{jQuery:t}=window;return t&&!document.body.hasAttribute("data-bs-no-jquery")?t:null},pl=[],Nk=t=>{document.readyState==="loading"?(pl.length||document.addEventListener("DOMContentLoaded",()=>{pl.forEach(e=>e())}),pl.push(t)):t()},mt=()=>document.documentElement.dir==="rtl",xt=t=>{Nk(()=>{const e=Og();if(e){const n=t.NAME,r=e.fn[n];e.fn[n]=t.jQueryInterface,e.fn[n].Constructor=t,e.fn[n].noConflict=()=>(e.fn[n]=r,t.jQueryInterface)}})},gr=t=>{typeof t=="function"&&t()},kg=(t,e,n=!0)=>{if(!n){gr(t);return}const r=5,i=Pk(e)+r;let s=!1;const o=({target:a})=>{a===e&&(s=!0,e.removeEventListener(cu,o),gr(t))};e.addEventListener(cu,o),setTimeout(()=>{s||Ag(e)},i)},Dg=(t,e,n,r)=>{let i=t.indexOf(e);if(i===-1)return t[!n&&r?t.length-1:0];const s=t.length;return i+=n?1:-1,r&&(i=(i+s)%s),t[Math.max(0,Math.min(i,s-1))]},Mk=/[^.]*(?=\..*)\.|.*/,xk=/\..*/,Rk=/::\d+$/,ml={};let xf=1;const Lk={mouseenter:"mouseover",mouseleave:"mouseout"},$k=/^(mouseenter|mouseleave)/i,Pg=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function Ng(t,e){return e&&`${e}::${xf++}`||t.uidEvent||xf++}function Mg(t){const e=Ng(t);return t.uidEvent=e,ml[e]=ml[e]||{},ml[e]}function Bk(t,e){return function n(r){return r.delegateTarget=t,n.oneOff&&H.off(t,r.type,e),e.apply(t,[r])}}function Uk(t,e,n){return function r(i){const s=t.querySelectorAll(e);for(let{target:o}=i;o&&o!==this;o=o.parentNode)for(let a=s.length;a--;)if(s[a]===o)return i.delegateTarget=o,r.oneOff&&H.off(t,i.type,e,n),n.apply(o,[i]);return null}}function xg(t,e,n=null){const r=Object.keys(t);for(let i=0,s=r.length;i<s;i++){const o=t[r[i]];if(o.originalHandler===e&&o.delegationSelector===n)return o}return null}function Rg(t,e,n){const r=typeof e=="string",i=r?n:e;let s=Lg(t);return Pg.has(s)||(s=t),[r,i,s]}function Rf(t,e,n,r,i){if(typeof e!="string"||!t)return;if(n||(n=r,r=null),$k.test(e)){const f=E=>function(w){if(!w.relatedTarget||w.relatedTarget!==w.delegateTarget&&!w.delegateTarget.contains(w.relatedTarget))return E.call(this,w)};r?r=f(r):n=f(n)}const[s,o,a]=Rg(e,n,r),l=Mg(t),u=l[a]||(l[a]={}),c=xg(u,o,s?n:null);if(c){c.oneOff=c.oneOff&&i;return}const d=Ng(o,e.replace(Mk,"")),h=s?Uk(t,n,r):Bk(t,n);h.delegationSelector=s?n:null,h.originalHandler=o,h.oneOff=i,h.uidEvent=d,u[d]=h,t.addEventListener(a,h,s)}function du(t,e,n,r,i){const s=xg(e[n],r,i);!s||(t.removeEventListener(n,s,Boolean(i)),delete e[n][s.uidEvent])}function Hk(t,e,n,r){const i=e[n]||{};Object.keys(i).forEach(s=>{if(s.includes(r)){const o=i[s];du(t,e,n,o.originalHandler,o.delegationSelector)}})}function Lg(t){return t=t.replace(xk,""),Lk[t]||t}const H={on(t,e,n,r){Rf(t,e,n,r,!1)},one(t,e,n,r){Rf(t,e,n,r,!0)},off(t,e,n,r){if(typeof e!="string"||!t)return;const[i,s,o]=Rg(e,n,r),a=o!==e,l=Mg(t),u=e.startsWith(".");if(typeof s!="undefined"){if(!l||!l[o])return;du(t,l,o,s,i?n:null);return}u&&Object.keys(l).forEach(d=>{Hk(t,l,d,e.slice(1))});const c=l[o]||{};Object.keys(c).forEach(d=>{const h=d.replace(Rk,"");if(!a||e.includes(h)){const f=c[d];du(t,l,o,f.originalHandler,f.delegationSelector)}})},trigger(t,e,n){if(typeof e!="string"||!t)return null;const r=Og(),i=Lg(e),s=e!==i,o=Pg.has(i);let a,l=!0,u=!0,c=!1,d=null;return s&&r&&(a=r.Event(e,n),r(t).trigger(a),l=!a.isPropagationStopped(),u=!a.isImmediatePropagationStopped(),c=a.isDefaultPrevented()),o?(d=document.createEvent("HTMLEvents"),d.initEvent(i,l,!0)):d=new CustomEvent(e,{bubbles:l,cancelable:!0}),typeof n!="undefined"&&Object.keys(n).forEach(h=>{Object.defineProperty(d,h,{get(){return n[h]}})}),c&&d.preventDefault(),u&&t.dispatchEvent(d),d.defaultPrevented&&typeof a!="undefined"&&a.preventDefault(),d}},Mn=new Map,ps={set(t,e,n){Mn.has(t)||Mn.set(t,new Map);const r=Mn.get(t);if(!r.has(e)&&r.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`);return}r.set(e,n)},get(t,e){return Mn.has(t)&&Mn.get(t).get(e)||null},remove(t,e){if(!Mn.has(t))return;const n=Mn.get(t);n.delete(e),n.size===0&&Mn.delete(t)}},Fk="5.1.3";class Kt{constructor(e){e=Zn(e),e&&(this._element=e,ps.set(this._element,this.constructor.DATA_KEY,this))}dispose(){ps.remove(this._element,this.constructor.DATA_KEY),H.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach(e=>{this[e]=null})}_queueCallback(e,n,r=!0){kg(e,n,r)}static getInstance(e){return ps.get(Zn(e),this.DATA_KEY)}static getOrCreateInstance(e,n={}){return this.getInstance(e)||new this(e,typeof n=="object"?n:null)}static get VERSION(){return Fk}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}}const Aa=(t,e="hide")=>{const n=`click.dismiss${t.EVENT_KEY}`,r=t.NAME;H.on(document,n,`[data-bs-dismiss="${r}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),Or(this))return;const s=Qn(this)||this.closest(`.${r}`);t.getOrCreateInstance(s)[e]()})},Vk="alert",jk="bs.alert",$g=`.${jk}`,Wk=`close${$g}`,qk=`closed${$g}`,Kk="fade",Yk="show";class Ia extends Kt{static get NAME(){return Vk}close(){if(H.trigger(this._element,Wk).defaultPrevented)return;this._element.classList.remove(Yk);const n=this._element.classList.contains(Kk);this._queueCallback(()=>this._destroyElement(),this._element,n)}_destroyElement(){this._element.remove(),H.trigger(this._element,qk),this.dispose()}static jQueryInterface(e){return this.each(function(){const n=Ia.getOrCreateInstance(this);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}Aa(Ia,"close");xt(Ia);const zk="button",Gk="bs.button",Xk=`.${Gk}`,Jk=".data-api",Qk="active",Lf='[data-bs-toggle="button"]',Zk=`click${Xk}${Jk}`;class Oa extends Kt{static get NAME(){return zk}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(Qk))}static jQueryInterface(e){return this.each(function(){const n=Oa.getOrCreateInstance(this);e==="toggle"&&n[e]()})}}H.on(document,Zk,Lf,t=>{t.preventDefault();const e=t.target.closest(Lf);Oa.getOrCreateInstance(e).toggle()});xt(Oa);function $f(t){return t==="true"?!0:t==="false"?!1:t===Number(t).toString()?Number(t):t===""||t==="null"?null:t}function gl(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const tt={setDataAttribute(t,e,n){t.setAttribute(`data-bs-${gl(e)}`,n)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${gl(e)}`)},getDataAttributes(t){if(!t)return{};const e={};return Object.keys(t.dataset).filter(n=>n.startsWith("bs")).forEach(n=>{let r=n.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1,r.length),e[r]=$f(t.dataset[n])}),e},getDataAttribute(t,e){return $f(t.getAttribute(`data-bs-${gl(e)}`))},offset(t){const e=t.getBoundingClientRect();return{top:e.top+window.pageYOffset,left:e.left+window.pageXOffset}},position(t){return{top:t.offsetTop,left:t.offsetLeft}}},e1=3,he={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter(n=>n.matches(e))},parents(t,e){const n=[];let r=t.parentNode;for(;r&&r.nodeType===Node.ELEMENT_NODE&&r.nodeType!==e1;)r.matches(e)&&n.push(r),r=r.parentNode;return n},prev(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return[n];n=n.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(n=>`${n}:not([tabindex^="-"])`).join(", ");return this.find(e,t).filter(n=>!Or(n)&&Ws(n))}},Bf="carousel",t1="bs.carousel",St=`.${t1}`,Bg=".data-api",n1="ArrowLeft",r1="ArrowRight",i1=500,s1=40,Uf={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},o1={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},or="next",ar="prev",hr="left",Zi="right",a1={[n1]:Zi,[r1]:hr},l1=`slide${St}`,Hf=`slid${St}`,u1=`keydown${St}`,c1=`mouseenter${St}`,d1=`mouseleave${St}`,f1=`touchstart${St}`,h1=`touchmove${St}`,p1=`touchend${St}`,m1=`pointerdown${St}`,g1=`pointerup${St}`,v1=`dragstart${St}`,_1=`load${St}${Bg}`,y1=`click${St}${Bg}`,b1="carousel",lr="active",w1="slide",E1="carousel-item-end",T1="carousel-item-start",C1="carousel-item-next",S1="carousel-item-prev",A1="pointer-event",I1=".active",oo=".active.carousel-item",O1=".carousel-item",k1=".carousel-item img",D1=".carousel-item-next, .carousel-item-prev",P1=".carousel-indicators",N1="[data-bs-target]",M1="[data-bs-slide], [data-bs-slide-to]",x1='[data-bs-ride="carousel"]',R1="touch",L1="pen";class wn extends Kt{constructor(e,n){super(e);this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(n),this._indicatorsElement=he.findOne(P1,this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners()}static get Default(){return Uf}static get NAME(){return Bf}next(){this._slide(or)}nextWhenVisible(){!document.hidden&&Ws(this._element)&&this.next()}prev(){this._slide(ar)}pause(e){e||(this._isPaused=!0),he.findOne(D1,this._element)&&(Ag(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(e){this._activeElement=he.findOne(oo,this._element);const n=this._getItemIndex(this._activeElement);if(e>this._items.length-1||e<0)return;if(this._isSliding){H.one(this._element,Hf,()=>this.to(e));return}if(n===e){this.pause(),this.cycle();return}const r=e>n?or:ar;this._slide(r,this._items[e])}_getConfig(e){return e=ye(ye(ye({},Uf),tt.getDataAttributes(this._element)),typeof e=="object"?e:{}),pn(Bf,e,o1),e}_handleSwipe(){const e=Math.abs(this.touchDeltaX);if(e<=s1)return;const n=e/this.touchDeltaX;this.touchDeltaX=0,n&&this._slide(n>0?Zi:hr)}_addEventListeners(){this._config.keyboard&&H.on(this._element,u1,e=>this._keydown(e)),this._config.pause==="hover"&&(H.on(this._element,c1,e=>this.pause(e)),H.on(this._element,d1,e=>this.cycle(e))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){const e=s=>this._pointerEvent&&(s.pointerType===L1||s.pointerType===R1),n=s=>{e(s)?this.touchStartX=s.clientX:this._pointerEvent||(this.touchStartX=s.touches[0].clientX)},r=s=>{this.touchDeltaX=s.touches&&s.touches.length>1?0:s.touches[0].clientX-this.touchStartX},i=s=>{e(s)&&(this.touchDeltaX=s.clientX-this.touchStartX),this._handleSwipe(),this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(o=>this.cycle(o),i1+this._config.interval))};he.find(k1,this._element).forEach(s=>{H.on(s,v1,o=>o.preventDefault())}),this._pointerEvent?(H.on(this._element,m1,s=>n(s)),H.on(this._element,g1,s=>i(s)),this._element.classList.add(A1)):(H.on(this._element,f1,s=>n(s)),H.on(this._element,h1,s=>r(s)),H.on(this._element,p1,s=>i(s)))}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const n=a1[e.key];n&&(e.preventDefault(),this._slide(n))}_getItemIndex(e){return this._items=e&&e.parentNode?he.find(O1,e.parentNode):[],this._items.indexOf(e)}_getItemByOrder(e,n){const r=e===or;return Dg(this._items,n,r,this._config.wrap)}_triggerSlideEvent(e,n){const r=this._getItemIndex(e),i=this._getItemIndex(he.findOne(oo,this._element));return H.trigger(this._element,l1,{relatedTarget:e,direction:n,from:i,to:r})}_setActiveIndicatorElement(e){if(this._indicatorsElement){const n=he.findOne(I1,this._indicatorsElement);n.classList.remove(lr),n.removeAttribute("aria-current");const r=he.find(N1,this._indicatorsElement);for(let i=0;i<r.length;i++)if(Number.parseInt(r[i].getAttribute("data-bs-slide-to"),10)===this._getItemIndex(e)){r[i].classList.add(lr),r[i].setAttribute("aria-current","true");break}}}_updateInterval(){const e=this._activeElement||he.findOne(oo,this._element);if(!e)return;const n=Number.parseInt(e.getAttribute("data-bs-interval"),10);n?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=n):this._config.interval=this._config.defaultInterval||this._config.interval}_slide(e,n){const r=this._directionToOrder(e),i=he.findOne(oo,this._element),s=this._getItemIndex(i),o=n||this._getItemByOrder(r,i),a=this._getItemIndex(o),l=Boolean(this._interval),u=r===or,c=u?T1:E1,d=u?C1:S1,h=this._orderToDirection(r);if(o&&o.classList.contains(lr)){this._isSliding=!1;return}if(this._isSliding||this._triggerSlideEvent(o,h).defaultPrevented||!i||!o)return;this._isSliding=!0,l&&this.pause(),this._setActiveIndicatorElement(o),this._activeElement=o;const E=()=>{H.trigger(this._element,Hf,{relatedTarget:o,direction:h,from:s,to:a})};if(this._element.classList.contains(w1)){o.classList.add(d),xi(o),i.classList.add(c),o.classList.add(c);const w=()=>{o.classList.remove(c,d),o.classList.add(lr),i.classList.remove(lr,d,c),this._isSliding=!1,setTimeout(E,0)};this._queueCallback(w,i,!0)}else i.classList.remove(lr),o.classList.add(lr),this._isSliding=!1,E();l&&this.cycle()}_directionToOrder(e){return[Zi,hr].includes(e)?mt()?e===hr?ar:or:e===hr?or:ar:e}_orderToDirection(e){return[or,ar].includes(e)?mt()?e===ar?hr:Zi:e===ar?Zi:hr:e}static carouselInterface(e,n){const r=wn.getOrCreateInstance(e,n);let{_config:i}=r;typeof n=="object"&&(i=ye(ye({},i),n));const s=typeof n=="string"?n:i.slide;if(typeof n=="number")r.to(n);else if(typeof s=="string"){if(typeof r[s]=="undefined")throw new TypeError(`No method named "${s}"`);r[s]()}else i.interval&&i.ride&&(r.pause(),r.cycle())}static jQueryInterface(e){return this.each(function(){wn.carouselInterface(this,e)})}static dataApiClickHandler(e){const n=Qn(this);if(!n||!n.classList.contains(b1))return;const r=ye(ye({},tt.getDataAttributes(n)),tt.getDataAttributes(this)),i=this.getAttribute("data-bs-slide-to");i&&(r.interval=!1),wn.carouselInterface(n,r),i&&wn.getInstance(n).to(i),e.preventDefault()}}H.on(document,y1,M1,wn.dataApiClickHandler);H.on(window,_1,()=>{const t=he.find(x1);for(let e=0,n=t.length;e<n;e++)wn.carouselInterface(t[e],wn.getInstance(t[e]))});xt(wn);const Ff="collapse",Ug="bs.collapse",qs=`.${Ug}`,$1=".data-api",Vf={toggle:!0,parent:null},B1={toggle:"boolean",parent:"(null|element)"},U1=`show${qs}`,H1=`shown${qs}`,F1=`hide${qs}`,V1=`hidden${qs}`,j1=`click${qs}${$1}`,vl="show",ni="collapse",ao="collapsing",jf="collapsed",Wf=`:scope .${ni} .${ni}`,W1="collapse-horizontal",q1="width",K1="height",Y1=".collapse.show, .collapse.collapsing",fu='[data-bs-toggle="collapse"]';class ci extends Kt{constructor(e,n){super(e);this._isTransitioning=!1,this._config=this._getConfig(n),this._triggerArray=[];const r=he.find(fu);for(let i=0,s=r.length;i<s;i++){const o=r[i],a=bc(o),l=he.find(a).filter(u=>u===this._element);a!==null&&l.length&&(this._selector=a,this._triggerArray.push(o))}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Vf}static get NAME(){return Ff}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[],n;if(this._config.parent){const u=he.find(Wf,this._config.parent);e=he.find(Y1,this._config.parent).filter(c=>!u.includes(c))}const r=he.findOne(this._selector);if(e.length){const u=e.find(c=>r!==c);if(n=u?ci.getInstance(u):null,n&&n._isTransitioning)return}if(H.trigger(this._element,U1).defaultPrevented)return;e.forEach(u=>{r!==u&&ci.getOrCreateInstance(u,{toggle:!1}).hide(),n||ps.set(u,Ug,null)});const s=this._getDimension();this._element.classList.remove(ni),this._element.classList.add(ao),this._element.style[s]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(ao),this._element.classList.add(ni,vl),this._element.style[s]="",H.trigger(this._element,H1)},l=`scroll${s[0].toUpperCase()+s.slice(1)}`;this._queueCallback(o,this._element,!0),this._element.style[s]=`${this._element[l]}px`}hide(){if(this._isTransitioning||!this._isShown()||H.trigger(this._element,F1).defaultPrevented)return;const n=this._getDimension();this._element.style[n]=`${this._element.getBoundingClientRect()[n]}px`,xi(this._element),this._element.classList.add(ao),this._element.classList.remove(ni,vl);const r=this._triggerArray.length;for(let s=0;s<r;s++){const o=this._triggerArray[s],a=Qn(o);a&&!this._isShown(a)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(ao),this._element.classList.add(ni),H.trigger(this._element,V1)};this._element.style[n]="",this._queueCallback(i,this._element,!0)}_isShown(e=this._element){return e.classList.contains(vl)}_getConfig(e){return e=ye(ye(ye({},Vf),tt.getDataAttributes(this._element)),e),e.toggle=Boolean(e.toggle),e.parent=Zn(e.parent),pn(Ff,e,B1),e}_getDimension(){return this._element.classList.contains(W1)?q1:K1}_initializeChildren(){if(!this._config.parent)return;const e=he.find(Wf,this._config.parent);he.find(fu,this._config.parent).filter(n=>!e.includes(n)).forEach(n=>{const r=Qn(n);r&&this._addAriaAndCollapsedClass([n],this._isShown(r))})}_addAriaAndCollapsedClass(e,n){!e.length||e.forEach(r=>{n?r.classList.remove(jf):r.classList.add(jf),r.setAttribute("aria-expanded",n)})}static jQueryInterface(e){return this.each(function(){const n={};typeof e=="string"&&/show|hide/.test(e)&&(n.toggle=!1);const r=ci.getOrCreateInstance(this,n);if(typeof e=="string"){if(typeof r[e]=="undefined")throw new TypeError(`No method named "${e}"`);r[e]()}})}}H.on(document,j1,fu,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();const e=bc(this);he.find(e).forEach(r=>{ci.getOrCreateInstance(r,{toggle:!1}).toggle()})});xt(ci);const _l="dropdown",z1="bs.dropdown",Hr=`.${z1}`,wc=".data-api",bo="Escape",qf="Space",Kf="Tab",hu="ArrowUp",wo="ArrowDown",G1=2,X1=new RegExp(`${hu}|${wo}|${bo}`),J1=`hide${Hr}`,Q1=`hidden${Hr}`,Z1=`show${Hr}`,eD=`shown${Hr}`,Hg=`click${Hr}${wc}`,Fg=`keydown${Hr}${wc}`,tD=`keyup${Hr}${wc}`,Gr="show",nD="dropup",rD="dropend",iD="dropstart",sD="navbar",ms='[data-bs-toggle="dropdown"]',pu=".dropdown-menu",oD=".navbar-nav",aD=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",lD=mt()?"top-end":"top-start",uD=mt()?"top-start":"top-end",cD=mt()?"bottom-end":"bottom-start",dD=mt()?"bottom-start":"bottom-end",fD=mt()?"left-start":"right-start",hD=mt()?"right-start":"left-start",pD={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},mD={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"};class kt extends Kt{constructor(e,n){super(e);this._popper=null,this._config=this._getConfig(n),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar()}static get Default(){return pD}static get DefaultType(){return mD}static get NAME(){return _l}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Or(this._element)||this._isShown(this._menu))return;const e={relatedTarget:this._element};if(H.trigger(this._element,Z1,e).defaultPrevented)return;const r=kt.getParentFromElement(this._element);this._inNavbar?tt.setDataAttribute(this._menu,"popper","none"):this._createPopper(r),"ontouchstart"in document.documentElement&&!r.closest(oD)&&[].concat(...document.body.children).forEach(i=>H.on(i,"mouseover",Wo)),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Gr),this._element.classList.add(Gr),H.trigger(this._element,eD,e)}hide(){if(Or(this._element)||!this._isShown(this._menu))return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){H.trigger(this._element,J1,e).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(r=>H.off(r,"mouseover",Wo)),this._popper&&this._popper.destroy(),this._menu.classList.remove(Gr),this._element.classList.remove(Gr),this._element.setAttribute("aria-expanded","false"),tt.removeDataAttribute(this._menu,"popper"),H.trigger(this._element,Q1,e))}_getConfig(e){if(e=ye(ye(ye({},this.constructor.Default),tt.getDataAttributes(this._element)),e),pn(_l,e,this.constructor.DefaultType),typeof e.reference=="object"&&!Mr(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${_l.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(e){if(typeof Popper=="undefined")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let n=this._element;this._config.reference==="parent"?n=e:Mr(this._config.reference)?n=Zn(this._config.reference):typeof this._config.reference=="object"&&(n=this._config.reference);const r=this._getPopperConfig(),i=r.modifiers.find(s=>s.name==="applyStyles"&&s.enabled===!1);this._popper=Popper.createPopper(n,this._menu,r),i&&tt.setDataAttribute(this._menu,"popper","static")}_isShown(e=this._element){return e.classList.contains(Gr)}_getMenuElement(){return he.next(this._element,pu)[0]}_getPlacement(){const e=this._element.parentNode;if(e.classList.contains(rD))return fD;if(e.classList.contains(iD))return hD;const n=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(nD)?n?uD:lD:n?dD:cD}_detectNavbar(){return this._element.closest(`.${sD}`)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(n=>Number.parseInt(n,10)):typeof e=="function"?n=>e(n,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return this._config.display==="static"&&(e.modifiers=[{name:"applyStyles",enabled:!1}]),ye(ye({},e),typeof this._config.popperConfig=="function"?this._config.popperConfig(e):this._config.popperConfig)}_selectMenuItem({key:e,target:n}){const r=he.find(aD,this._menu).filter(Ws);!r.length||Dg(r,n,e===wo,!r.includes(n)).focus()}static jQueryInterface(e){return this.each(function(){const n=kt.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]=="undefined")throw new TypeError(`No method named "${e}"`);n[e]()}})}static clearMenus(e){if(e&&(e.button===G1||e.type==="keyup"&&e.key!==Kf))return;const n=he.find(ms);for(let r=0,i=n.length;r<i;r++){const s=kt.getInstance(n[r]);if(!s||s._config.autoClose===!1||!s._isShown())continue;const o={relatedTarget:s._element};if(e){const a=e.composedPath(),l=a.includes(s._menu);if(a.includes(s._element)||s._config.autoClose==="inside"&&!l||s._config.autoClose==="outside"&&l||s._menu.contains(e.target)&&(e.type==="keyup"&&e.key===Kf||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;e.type==="click"&&(o.clickEvent=e)}s._completeHide(o)}}static getParentFromElement(e){return Qn(e)||e.parentNode}static dataApiKeydownHandler(e){if(/input|textarea/i.test(e.target.tagName)?e.key===qf||e.key!==bo&&(e.key!==wo&&e.key!==hu||e.target.closest(pu)):!X1.test(e.key))return;const n=this.classList.contains(Gr);if(!n&&e.key===bo||(e.preventDefault(),e.stopPropagation(),Or(this)))return;const r=this.matches(ms)?this:he.prev(this,ms)[0],i=kt.getOrCreateInstance(r);if(e.key===bo){i.hide();return}if(e.key===hu||e.key===wo){n||i.show(),i._selectMenuItem(e);return}(!n||e.key===qf)&&kt.clearMenus()}}H.on(document,Fg,ms,kt.dataApiKeydownHandler);H.on(document,Fg,pu,kt.dataApiKeydownHandler);H.on(document,Hg,kt.clearMenus);H.on(document,tD,kt.clearMenus);H.on(document,Hg,ms,function(t){t.preventDefault(),kt.getOrCreateInstance(this).toggle()});xt(kt);const Yf=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",zf=".sticky-top";class mu{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,"paddingRight",n=>n+e),this._setElementAttributes(Yf,"paddingRight",n=>n+e),this._setElementAttributes(zf,"marginRight",n=>n-e)}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,n,r){const i=this.getWidth(),s=o=>{if(o!==this._element&&window.innerWidth>o.clientWidth+i)return;this._saveInitialAttribute(o,n);const a=window.getComputedStyle(o)[n];o.style[n]=`${r(Number.parseFloat(a))}px`};this._applyManipulationCallback(e,s)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(Yf,"paddingRight"),this._resetElementAttributes(zf,"marginRight")}_saveInitialAttribute(e,n){const r=e.style[n];r&&tt.setDataAttribute(e,n,r)}_resetElementAttributes(e,n){const r=i=>{const s=tt.getDataAttribute(i,n);typeof s=="undefined"?i.style.removeProperty(n):(tt.removeDataAttribute(i,n),i.style[n]=s)};this._applyManipulationCallback(e,r)}_applyManipulationCallback(e,n){Mr(e)?n(e):he.find(e,this._element).forEach(n)}isOverflowing(){return this.getWidth()>0}}const gD={className:"modal-backdrop",isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},vD={className:"string",isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"},Vg="backdrop",_D="fade",Gf="show",Xf=`mousedown.bs.${Vg}`;class jg{constructor(e){this._config=this._getConfig(e),this._isAppended=!1,this._element=null}show(e){if(!this._config.isVisible){gr(e);return}this._append(),this._config.isAnimated&&xi(this._getElement()),this._getElement().classList.add(Gf),this._emulateAnimation(()=>{gr(e)})}hide(e){if(!this._config.isVisible){gr(e);return}this._getElement().classList.remove(Gf),this._emulateAnimation(()=>{this.dispose(),gr(e)})}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(_D),this._element=e}return this._element}_getConfig(e){return e=ye(ye({},gD),typeof e=="object"?e:{}),e.rootElement=Zn(e.rootElement),pn(Vg,e,vD),e}_append(){this._isAppended||(this._config.rootElement.append(this._getElement()),H.on(this._getElement(),Xf,()=>{gr(this._config.clickCallback)}),this._isAppended=!0)}dispose(){!this._isAppended||(H.off(this._element,Xf),this._element.remove(),this._isAppended=!1)}_emulateAnimation(e){kg(e,this._getElement(),this._config.isAnimated)}}const yD={trapElement:null,autofocus:!0},bD={trapElement:"element",autofocus:"boolean"},wD="focustrap",ED="bs.focustrap",qo=`.${ED}`,TD=`focusin${qo}`,CD=`keydown.tab${qo}`,SD="Tab",AD="forward",Jf="backward";class Wg{constructor(e){this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}activate(){const{trapElement:e,autofocus:n}=this._config;this._isActive||(n&&e.focus(),H.off(document,qo),H.on(document,TD,r=>this._handleFocusin(r)),H.on(document,CD,r=>this._handleKeydown(r)),this._isActive=!0)}deactivate(){!this._isActive||(this._isActive=!1,H.off(document,qo))}_handleFocusin(e){const{target:n}=e,{trapElement:r}=this._config;if(n===document||n===r||r.contains(n))return;const i=he.focusableChildren(r);i.length===0?r.focus():this._lastTabNavDirection===Jf?i[i.length-1].focus():i[0].focus()}_handleKeydown(e){e.key===SD&&(this._lastTabNavDirection=e.shiftKey?Jf:AD)}_getConfig(e){return e=ye(ye({},yD),typeof e=="object"?e:{}),pn(wD,e,bD),e}}const Qf="modal",ID="bs.modal",Rt=`.${ID}`,OD=".data-api",Zf="Escape",eh={backdrop:!0,keyboard:!0,focus:!0},kD={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},DD=`hide${Rt}`,PD=`hidePrevented${Rt}`,qg=`hidden${Rt}`,Kg=`show${Rt}`,ND=`shown${Rt}`,th=`resize${Rt}`,nh=`click.dismiss${Rt}`,rh=`keydown.dismiss${Rt}`,MD=`mouseup.dismiss${Rt}`,ih=`mousedown.dismiss${Rt}`,xD=`click${Rt}${OD}`,sh="modal-open",RD="fade",oh="show",yl="modal-static",LD=".modal.show",$D=".modal-dialog",BD=".modal-body",UD='[data-bs-toggle="modal"]';class Ti extends Kt{constructor(e,n){super(e);this._config=this._getConfig(n),this._dialog=he.findOne($D,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollBar=new mu}static get Default(){return eh}static get NAME(){return Qf}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||H.trigger(this._element,Kg,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add(sh),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),H.on(this._dialog,ih,()=>{H.one(this._element,MD,r=>{r.target===this._element&&(this._ignoreBackdropClick=!0)})}),this._showBackdrop(()=>this._showElement(e)))}hide(){if(!this._isShown||this._isTransitioning||H.trigger(this._element,DD).defaultPrevented)return;this._isShown=!1;const n=this._isAnimated();n&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),this._focustrap.deactivate(),this._element.classList.remove(oh),H.off(this._element,nh),H.off(this._dialog,ih),this._queueCallback(()=>this._hideModal(),this._element,n)}dispose(){[window,this._dialog].forEach(e=>H.off(e,Rt)),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new jg({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Wg({trapElement:this._element})}_getConfig(e){return e=ye(ye(ye({},eh),tt.getDataAttributes(this._element)),typeof e=="object"?e:{}),pn(Qf,e,kD),e}_showElement(e){const n=this._isAnimated(),r=he.findOne(BD,this._dialog);(!this._element.parentNode||this._element.parentNode.nodeType!==Node.ELEMENT_NODE)&&document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0,r&&(r.scrollTop=0),n&&xi(this._element),this._element.classList.add(oh);const i=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,H.trigger(this._element,ND,{relatedTarget:e})};this._queueCallback(i,this._dialog,n)}_setEscapeEvent(){this._isShown?H.on(this._element,rh,e=>{this._config.keyboard&&e.key===Zf?(e.preventDefault(),this.hide()):!this._config.keyboard&&e.key===Zf&&this._triggerBackdropTransition()}):H.off(this._element,rh)}_setResizeEvent(){this._isShown?H.on(window,th,()=>this._adjustDialog()):H.off(window,th)}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(sh),this._resetAdjustments(),this._scrollBar.reset(),H.trigger(this._element,qg)})}_showBackdrop(e){H.on(this._element,nh,n=>{if(this._ignoreBackdropClick){this._ignoreBackdropClick=!1;return}n.target===n.currentTarget&&(this._config.backdrop===!0?this.hide():this._config.backdrop==="static"&&this._triggerBackdropTransition())}),this._backdrop.show(e)}_isAnimated(){return this._element.classList.contains(RD)}_triggerBackdropTransition(){if(H.trigger(this._element,PD).defaultPrevented)return;const{classList:n,scrollHeight:r,style:i}=this._element,s=r>document.documentElement.clientHeight;!s&&i.overflowY==="hidden"||n.contains(yl)||(s||(i.overflowY="hidden"),n.add(yl),this._queueCallback(()=>{n.remove(yl),s||this._queueCallback(()=>{i.overflowY=""},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,n=this._scrollBar.getWidth(),r=n>0;(!r&&e&&!mt()||r&&!e&&mt())&&(this._element.style.paddingLeft=`${n}px`),(r&&!e&&!mt()||!r&&e&&mt())&&(this._element.style.paddingRight=`${n}px`)}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,n){return this.each(function(){const r=Ti.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]=="undefined")throw new TypeError(`No method named "${e}"`);r[e](n)}})}}H.on(document,xD,UD,function(t){const e=Qn(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),H.one(e,Kg,i=>{i.defaultPrevented||H.one(e,qg,()=>{Ws(this)&&this.focus()})});const n=he.findOne(LD);n&&Ti.getInstance(n).hide(),Ti.getOrCreateInstance(e).toggle(this)});Aa(Ti);xt(Ti);const ah="offcanvas",HD="bs.offcanvas",Fr=`.${HD}`,Yg=".data-api",FD=`load${Fr}${Yg}`,VD="Escape",lh={backdrop:!0,keyboard:!0,scroll:!1},jD={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},uh="show",WD="offcanvas-backdrop",zg=".offcanvas.show",qD=`show${Fr}`,KD=`shown${Fr}`,YD=`hide${Fr}`,Gg=`hidden${Fr}`,zD=`click${Fr}${Yg}`,GD=`keydown.dismiss${Fr}`,XD='[data-bs-toggle="offcanvas"]';class xr extends Kt{constructor(e,n){super(e);this._config=this._getConfig(n),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get NAME(){return ah}static get Default(){return lh}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||H.trigger(this._element,qD,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||new mu().hide(),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(uh);const r=()=>{this._config.scroll||this._focustrap.activate(),H.trigger(this._element,KD,{relatedTarget:e})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||H.trigger(this._element,YD).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.remove(uh),this._backdrop.hide();const n=()=>{this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._element.style.visibility="hidden",this._config.scroll||new mu().reset(),H.trigger(this._element,Gg)};this._queueCallback(n,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_getConfig(e){return e=ye(ye(ye({},lh),tt.getDataAttributes(this._element)),typeof e=="object"?e:{}),pn(ah,e,jD),e}_initializeBackDrop(){return new jg({className:WD,isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_initializeFocusTrap(){return new Wg({trapElement:this._element})}_addEventListeners(){H.on(this._element,GD,e=>{this._config.keyboard&&e.key===VD&&this.hide()})}static jQueryInterface(e){return this.each(function(){const n=xr.getOrCreateInstance(this,e);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}H.on(document,zD,XD,function(t){const e=Qn(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),Or(this))return;H.one(e,Gg,()=>{Ws(this)&&this.focus()});const n=he.findOne(zg);n&&n!==e&&xr.getInstance(n).hide(),xr.getOrCreateInstance(e).toggle(this)});H.on(window,FD,()=>he.find(zg).forEach(t=>xr.getOrCreateInstance(t).show()));Aa(xr);xt(xr);const JD=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),QD=/^aria-[\w-]*$/i,ZD=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,eP=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,tP=(t,e)=>{const n=t.nodeName.toLowerCase();if(e.includes(n))return JD.has(n)?Boolean(ZD.test(t.nodeValue)||eP.test(t.nodeValue)):!0;const r=e.filter(i=>i instanceof RegExp);for(let i=0,s=r.length;i<s;i++)if(r[i].test(n))return!0;return!1},nP={"*":["class","dir","id","lang","role",QD],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};function ch(t,e,n){if(!t.length)return t;if(n&&typeof n=="function")return n(t);const i=new window.DOMParser().parseFromString(t,"text/html"),s=[].concat(...i.body.querySelectorAll("*"));for(let o=0,a=s.length;o<a;o++){const l=s[o],u=l.nodeName.toLowerCase();if(!Object.keys(e).includes(u)){l.remove();continue}const c=[].concat(...l.attributes),d=[].concat(e["*"]||[],e[u]||[]);c.forEach(h=>{tP(h,d)||l.removeAttribute(h.nodeName)})}return i.body.innerHTML}const dh="tooltip",rP="bs.tooltip",Zt=`.${rP}`,iP="bs-tooltip",sP=new Set(["sanitize","allowList","sanitizeFn"]),oP={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},aP={AUTO:"auto",TOP:"top",RIGHT:mt()?"left":"right",BOTTOM:"bottom",LEFT:mt()?"right":"left"},lP={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:nP,popperConfig:null},uP={HIDE:`hide${Zt}`,HIDDEN:`hidden${Zt}`,SHOW:`show${Zt}`,SHOWN:`shown${Zt}`,INSERTED:`inserted${Zt}`,CLICK:`click${Zt}`,FOCUSIN:`focusin${Zt}`,FOCUSOUT:`focusout${Zt}`,MOUSEENTER:`mouseenter${Zt}`,MOUSELEAVE:`mouseleave${Zt}`},lo="fade",cP="modal",Wi="show",qi="show",bl="out",fh=".tooltip-inner",hh=`.${cP}`,ph="hide.bs.modal",Ki="hover",wl="focus",dP="click",fP="manual";class Ri extends Kt{constructor(e,n){if(typeof Popper=="undefined")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e);this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this._config=this._getConfig(n),this.tip=null,this._setListeners()}static get Default(){return lP}static get NAME(){return dh}static get Event(){return uP}static get DefaultType(){return oP}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(e){if(!!this._isEnabled)if(e){const n=this._initializeOnDelegatedTarget(e);n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(this.getTipElement().classList.contains(Wi)){this._leave(null,this);return}this._enter(null,this)}}dispose(){clearTimeout(this._timeout),H.off(this._element.closest(hh),ph,this._hideModalHandler),this.tip&&this.tip.remove(),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this.isWithContent()&&this._isEnabled))return;const e=H.trigger(this._element,this.constructor.Event.SHOW),n=Ig(this._element),r=n===null?this._element.ownerDocument.documentElement.contains(this._element):n.contains(this._element);if(e.defaultPrevented||!r)return;this.constructor.NAME==="tooltip"&&this.tip&&this.getTitle()!==this.tip.querySelector(fh).innerHTML&&(this._disposePopper(),this.tip.remove(),this.tip=null);const i=this.getTipElement(),s=Dk(this.constructor.NAME);i.setAttribute("id",s),this._element.setAttribute("aria-describedby",s),this._config.animation&&i.classList.add(lo);const o=typeof this._config.placement=="function"?this._config.placement.call(this,i,this._element):this._config.placement,a=this._getAttachment(o);this._addAttachmentClass(a);const{container:l}=this._config;ps.set(i,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(l.append(i),H.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=Popper.createPopper(this._element,i,this._getPopperConfig(a)),i.classList.add(Wi);const u=this._resolvePossibleFunction(this._config.customClass);u&&i.classList.add(...u.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(h=>{H.on(h,"mouseover",Wo)});const c=()=>{const h=this._hoverState;this._hoverState=null,H.trigger(this._element,this.constructor.Event.SHOWN),h===bl&&this._leave(null,this)},d=this.tip.classList.contains(lo);this._queueCallback(c,this.tip,d)}hide(){if(!this._popper)return;const e=this.getTipElement(),n=()=>{this._isWithActiveTrigger()||(this._hoverState!==qi&&e.remove(),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),H.trigger(this._element,this.constructor.Event.HIDDEN),this._disposePopper())};if(H.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented)return;e.classList.remove(Wi),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(s=>H.off(s,"mouseover",Wo)),this._activeTrigger[dP]=!1,this._activeTrigger[wl]=!1,this._activeTrigger[Ki]=!1;const i=this.tip.classList.contains(lo);this._queueCallback(n,this.tip,i),this._hoverState=""}update(){this._popper!==null&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){if(this.tip)return this.tip;const e=document.createElement("div");e.innerHTML=this._config.template;const n=e.children[0];return this.setContent(n),n.classList.remove(lo,Wi),this.tip=n,this.tip}setContent(e){this._sanitizeAndSetContent(e,this.getTitle(),fh)}_sanitizeAndSetContent(e,n,r){const i=he.findOne(r,e);if(!n&&i){i.remove();return}this.setElementContent(i,n)}setElementContent(e,n){if(e!==null){if(Mr(n)){n=Zn(n),this._config.html?n.parentNode!==e&&(e.innerHTML="",e.append(n)):e.textContent=n.textContent;return}this._config.html?(this._config.sanitize&&(n=ch(n,this._config.allowList,this._config.sanitizeFn)),e.innerHTML=n):e.textContent=n}}getTitle(){const e=this._element.getAttribute("data-bs-original-title")||this._config.title;return this._resolvePossibleFunction(e)}updateAttachment(e){return e==="right"?"end":e==="left"?"start":e}_initializeOnDelegatedTarget(e,n){return n||this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(n=>Number.parseInt(n,10)):typeof e=="function"?n=>e(n,this._element):e}_resolvePossibleFunction(e){return typeof e=="function"?e.call(this._element):e}_getPopperConfig(e){const n={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:r=>this._handlePopperPlacementChange(r)}],onFirstUpdate:r=>{r.options.placement!==r.placement&&this._handlePopperPlacementChange(r)}};return ye(ye({},n),typeof this._config.popperConfig=="function"?this._config.popperConfig(n):this._config.popperConfig)}_addAttachmentClass(e){this.getTipElement().classList.add(`${this._getBasicClassPrefix()}-${this.updateAttachment(e)}`)}_getAttachment(e){return aP[e.toUpperCase()]}_setListeners(){this._config.trigger.split(" ").forEach(n=>{if(n==="click")H.on(this._element,this.constructor.Event.CLICK,this._config.selector,r=>this.toggle(r));else if(n!==fP){const r=n===Ki?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,i=n===Ki?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;H.on(this._element,r,this._config.selector,s=>this._enter(s)),H.on(this._element,i,this._config.selector,s=>this._leave(s))}}),this._hideModalHandler=()=>{this._element&&this.hide()},H.on(this._element.closest(hh),ph,this._hideModalHandler),this._config.selector?this._config=Ys(ye({},this._config),{trigger:"manual",selector:""}):this._fixTitle()}_fixTitle(){const e=this._element.getAttribute("title"),n=typeof this._element.getAttribute("data-bs-original-title");(e||n!=="string")&&(this._element.setAttribute("data-bs-original-title",e||""),e&&!this._element.getAttribute("aria-label")&&!this._element.textContent&&this._element.setAttribute("aria-label",e),this._element.setAttribute("title",""))}_enter(e,n){if(n=this._initializeOnDelegatedTarget(e,n),e&&(n._activeTrigger[e.type==="focusin"?wl:Ki]=!0),n.getTipElement().classList.contains(Wi)||n._hoverState===qi){n._hoverState=qi;return}if(clearTimeout(n._timeout),n._hoverState=qi,!n._config.delay||!n._config.delay.show){n.show();return}n._timeout=setTimeout(()=>{n._hoverState===qi&&n.show()},n._config.delay.show)}_leave(e,n){if(n=this._initializeOnDelegatedTarget(e,n),e&&(n._activeTrigger[e.type==="focusout"?wl:Ki]=n._element.contains(e.relatedTarget)),!n._isWithActiveTrigger()){if(clearTimeout(n._timeout),n._hoverState=bl,!n._config.delay||!n._config.delay.hide){n.hide();return}n._timeout=setTimeout(()=>{n._hoverState===bl&&n.hide()},n._config.delay.hide)}}_isWithActiveTrigger(){for(const e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1}_getConfig(e){const n=tt.getDataAttributes(this._element);return Object.keys(n).forEach(r=>{sP.has(r)&&delete n[r]}),e=ye(ye(ye({},this.constructor.Default),n),typeof e=="object"&&e?e:{}),e.container=e.container===!1?document.body:Zn(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),pn(dh,e,this.constructor.DefaultType),e.sanitize&&(e.template=ch(e.template,e.allowList,e.sanitizeFn)),e}_getDelegateConfig(){const e={};for(const n in this._config)this.constructor.Default[n]!==this._config[n]&&(e[n]=this._config[n]);return e}_cleanTipClass(){const e=this.getTipElement(),n=new RegExp(`(^|\\s)${this._getBasicClassPrefix()}\\S+`,"g"),r=e.getAttribute("class").match(n);r!==null&&r.length>0&&r.map(i=>i.trim()).forEach(i=>e.classList.remove(i))}_getBasicClassPrefix(){return iP}_handlePopperPlacementChange(e){const{state:n}=e;!n||(this.tip=n.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(n.placement)))}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jQueryInterface(e){return this.each(function(){const n=Ri.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]=="undefined")throw new TypeError(`No method named "${e}"`);n[e]()}})}}xt(Ri);const hP="popover",pP="bs.popover",en=`.${pP}`,mP="bs-popover",gP=Ys(ye({},Ri.Default),{placement:"right",offset:[0,8],trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),vP=Ys(ye({},Ri.DefaultType),{content:"(string|element|function)"}),_P={HIDE:`hide${en}`,HIDDEN:`hidden${en}`,SHOW:`show${en}`,SHOWN:`shown${en}`,INSERTED:`inserted${en}`,CLICK:`click${en}`,FOCUSIN:`focusin${en}`,FOCUSOUT:`focusout${en}`,MOUSEENTER:`mouseenter${en}`,MOUSELEAVE:`mouseleave${en}`},yP=".popover-header",bP=".popover-body";class Ec extends Ri{static get Default(){return gP}static get NAME(){return hP}static get Event(){return _P}static get DefaultType(){return vP}isWithContent(){return this.getTitle()||this._getContent()}setContent(e){this._sanitizeAndSetContent(e,this.getTitle(),yP),this._sanitizeAndSetContent(e,this._getContent(),bP)}_getContent(){return this._resolvePossibleFunction(this._config.content)}_getBasicClassPrefix(){return mP}static jQueryInterface(e){return this.each(function(){const n=Ec.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]=="undefined")throw new TypeError(`No method named "${e}"`);n[e]()}})}}xt(Ec);const mh="scrollspy",wP="bs.scrollspy",ka=`.${wP}`,EP=".data-api",gh={offset:10,method:"auto",target:""},TP={offset:"number",method:"string",target:"(string|element)"},CP=`activate${ka}`,SP=`scroll${ka}`,AP=`load${ka}${EP}`,Xg="dropdown-item",Xr="active",IP='[data-bs-spy="scroll"]',OP=".nav, .list-group",gu=".nav-link",kP=".nav-item",Jg=".list-group-item",El=`${gu}, ${Jg}, .${Xg}`,DP=".dropdown",PP=".dropdown-toggle",NP="offset",vh="position";class Da extends Kt{constructor(e,n){super(e);this._scrollElement=this._element.tagName==="BODY"?window:this._element,this._config=this._getConfig(n),this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,H.on(this._scrollElement,SP,()=>this._process()),this.refresh(),this._process()}static get Default(){return gh}static get NAME(){return mh}refresh(){const e=this._scrollElement===this._scrollElement.window?NP:vh,n=this._config.method==="auto"?e:this._config.method,r=n===vh?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),he.find(El,this._config.target).map(s=>{const o=bc(s),a=o?he.findOne(o):null;if(a){const l=a.getBoundingClientRect();if(l.width||l.height)return[tt[n](a).top+r,o]}return null}).filter(s=>s).sort((s,o)=>s[0]-o[0]).forEach(s=>{this._offsets.push(s[0]),this._targets.push(s[1])})}dispose(){H.off(this._scrollElement,ka),super.dispose()}_getConfig(e){return e=ye(ye(ye({},gh),tt.getDataAttributes(this._element)),typeof e=="object"&&e?e:{}),e.target=Zn(e.target)||document.documentElement,pn(mh,e,TP),e}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const e=this._getScrollTop()+this._config.offset,n=this._getScrollHeight(),r=this._config.offset+n-this._getOffsetHeight();if(this._scrollHeight!==n&&this.refresh(),e>=r){const i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i);return}if(this._activeTarget&&e<this._offsets[0]&&this._offsets[0]>0){this._activeTarget=null,this._clear();return}for(let i=this._offsets.length;i--;)this._activeTarget!==this._targets[i]&&e>=this._offsets[i]&&(typeof this._offsets[i+1]=="undefined"||e<this._offsets[i+1])&&this._activate(this._targets[i])}_activate(e){this._activeTarget=e,this._clear();const n=El.split(",").map(i=>`${i}[data-bs-target="${e}"],${i}[href="${e}"]`),r=he.findOne(n.join(","),this._config.target);r.classList.add(Xr),r.classList.contains(Xg)?he.findOne(PP,r.closest(DP)).classList.add(Xr):he.parents(r,OP).forEach(i=>{he.prev(i,`${gu}, ${Jg}`).forEach(s=>s.classList.add(Xr)),he.prev(i,kP).forEach(s=>{he.children(s,gu).forEach(o=>o.classList.add(Xr))})}),H.trigger(this._scrollElement,CP,{relatedTarget:e})}_clear(){he.find(El,this._config.target).filter(e=>e.classList.contains(Xr)).forEach(e=>e.classList.remove(Xr))}static jQueryInterface(e){return this.each(function(){const n=Da.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]=="undefined")throw new TypeError(`No method named "${e}"`);n[e]()}})}}H.on(window,AP,()=>{he.find(IP).forEach(t=>new Da(t))});xt(Da);const MP="tab",xP="bs.tab",Ks=`.${xP}`,RP=".data-api",LP=`hide${Ks}`,$P=`hidden${Ks}`,BP=`show${Ks}`,UP=`shown${Ks}`,HP=`click${Ks}${RP}`,FP="dropdown-menu",Yi="active",_h="fade",yh="show",VP=".dropdown",jP=".nav, .list-group",bh=".active",wh=":scope > li > .active",WP='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',qP=".dropdown-toggle",KP=":scope > .dropdown-menu .active";class Pa extends Kt{static get NAME(){return MP}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(Yi))return;let e;const n=Qn(this._element),r=this._element.closest(jP);if(r){const a=r.nodeName==="UL"||r.nodeName==="OL"?wh:bh;e=he.find(a,r),e=e[e.length-1]}const i=e?H.trigger(e,LP,{relatedTarget:this._element}):null;if(H.trigger(this._element,BP,{relatedTarget:e}).defaultPrevented||i!==null&&i.defaultPrevented)return;this._activate(this._element,r);const o=()=>{H.trigger(e,$P,{relatedTarget:this._element}),H.trigger(this._element,UP,{relatedTarget:e})};n?this._activate(n,n.parentNode,o):o()}_activate(e,n,r){const s=(n&&(n.nodeName==="UL"||n.nodeName==="OL")?he.find(wh,n):he.children(n,bh))[0],o=r&&s&&s.classList.contains(_h),a=()=>this._transitionComplete(e,s,r);s&&o?(s.classList.remove(yh),this._queueCallback(a,e,!0)):a()}_transitionComplete(e,n,r){if(n){n.classList.remove(Yi);const s=he.findOne(KP,n.parentNode);s&&s.classList.remove(Yi),n.getAttribute("role")==="tab"&&n.setAttribute("aria-selected",!1)}e.classList.add(Yi),e.getAttribute("role")==="tab"&&e.setAttribute("aria-selected",!0),xi(e),e.classList.contains(_h)&&e.classList.add(yh);let i=e.parentNode;if(i&&i.nodeName==="LI"&&(i=i.parentNode),i&&i.classList.contains(FP)){const s=e.closest(VP);s&&he.find(qP,s).forEach(o=>o.classList.add(Yi)),e.setAttribute("aria-expanded",!0)}r&&r()}static jQueryInterface(e){return this.each(function(){const n=Pa.getOrCreateInstance(this);if(typeof e=="string"){if(typeof n[e]=="undefined")throw new TypeError(`No method named "${e}"`);n[e]()}})}}H.on(document,HP,WP,function(t){if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),Or(this))return;Pa.getOrCreateInstance(this).show()});xt(Pa);const Eh="toast",YP="bs.toast",er=`.${YP}`,zP=`mouseover${er}`,GP=`mouseout${er}`,XP=`focusin${er}`,JP=`focusout${er}`,QP=`hide${er}`,ZP=`hidden${er}`,eN=`show${er}`,tN=`shown${er}`,nN="fade",Th="hide",zi="show",uo="showing",rN={animation:"boolean",autohide:"boolean",delay:"number"},Ch={animation:!0,autohide:!0,delay:5e3};class Na extends Kt{constructor(e,n){super(e);this._config=this._getConfig(n),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get DefaultType(){return rN}static get Default(){return Ch}static get NAME(){return Eh}show(){if(H.trigger(this._element,eN).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(nN);const n=()=>{this._element.classList.remove(uo),H.trigger(this._element,tN),this._maybeScheduleHide()};this._element.classList.remove(Th),xi(this._element),this._element.classList.add(zi),this._element.classList.add(uo),this._queueCallback(n,this._element,this._config.animation)}hide(){if(!this._element.classList.contains(zi)||H.trigger(this._element,QP).defaultPrevented)return;const n=()=>{this._element.classList.add(Th),this._element.classList.remove(uo),this._element.classList.remove(zi),H.trigger(this._element,ZP)};this._element.classList.add(uo),this._queueCallback(n,this._element,this._config.animation)}dispose(){this._clearTimeout(),this._element.classList.contains(zi)&&this._element.classList.remove(zi),super.dispose()}_getConfig(e){return e=ye(ye(ye({},Ch),tt.getDataAttributes(this._element)),typeof e=="object"&&e?e:{}),pn(Eh,e,this.constructor.DefaultType),e}_maybeScheduleHide(){!this._config.autohide||this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay))}_onInteraction(e,n){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=n;break;case"focusin":case"focusout":this._hasKeyboardInteraction=n;break}if(n){this._clearTimeout();return}const r=e.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){H.on(this._element,zP,e=>this._onInteraction(e,!0)),H.on(this._element,GP,e=>this._onInteraction(e,!1)),H.on(this._element,XP,e=>this._onInteraction(e,!0)),H.on(this._element,JP,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const n=Na.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]=="undefined")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}Aa(Na);xt(Na);export{sN as A,oN as B,wr as C,fN as D,$l as E,Se as F,CN as G,EN as H,hN as I,_N as J,gN as K,Pe as L,TN as M,IN as N,_n as O,M as P,bN as Q,dN as R,vi as S,ln as T,on as U,cN as V,wN as a,mN as b,ee as c,yN as d,pN as e,qt as f,te as g,ie as h,at as i,qe as j,it as k,Ht as l,b as m,Ne as n,L as o,Ee as p,AN as q,lN as r,SN as s,Qe as t,vN as u,oe as v,ke as w,ge as x,aN as y,uN as z};
|