my-header-yichong 1.1.8 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/my-header.js CHANGED
@@ -4701,7 +4701,7 @@ const Ie = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
4701
4701
  ] : [
4702
4702
  { name: "Pricing", href: s + "/pricing", target: "_self" }
4703
4703
  ]
4704
- ), d = T(s || "/"), l = T(!1), c = x(() => n.userInfo || n.userStore.user), u = () => {
4704
+ ), d = T(s || "/"), l = T(!1), c = x(() => n.userInfo || n.userStore && n.userStore.user), u = () => {
4705
4705
  n.userStore && n.userStore.showLogin(!0);
4706
4706
  }, f = T(!1);
4707
4707
  K(() => {
@@ -5007,14 +5007,14 @@ const Ie = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
5007
5007
  /* CLASS */
5008
5008
  ),
5009
5009
  B(" 引入登录 "),
5010
- e.userStore.isShowLogin ? (k(), Be(Nu, {
5010
+ e.userStore && e.userStore.isShowLogin ? (k(), Be(Nu, {
5011
5011
  key: 0,
5012
5012
  onSuccess: v,
5013
5013
  onClose: m
5014
5014
  })) : B("v-if", !0),
5015
- e.userStore.isShowToast ? (k(), Be(lc, {
5015
+ e.userStore && e.userStore.isShowToast ? (k(), Be(lc, {
5016
5016
  key: 1,
5017
- content: e.userStore.toastContent
5017
+ content: e.userStore && e.userStore.toastContent
5018
5018
  }, null, 8, ["content"])) : B("v-if", !0)
5019
5019
  ],
5020
5020
  64
package/my-header.umd.cjs CHANGED
@@ -1,18 +1,18 @@
1
- (function(r,de){typeof exports=="object"&&typeof module<"u"?module.exports=de(require("vue")):typeof define=="function"&&define.amd?define(["vue"],de):(r=typeof globalThis<"u"?globalThis:r||self,r["my-header"]=de(r.Vue))})(this,function(r){"use strict";function de(e,t){return function(){return e.apply(t,arguments)}}const{toString:Mo}=Object.prototype,{getPrototypeOf:ut}=Object,Be=(e=>t=>{const n=Mo.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),W=e=>(e=e.toLowerCase(),t=>Be(t)===e),Ie=e=>t=>typeof t===e,{isArray:fe}=Array,ve=Ie("undefined");function Uo(e){return e!==null&&!ve(e)&&e.constructor!==null&&!ve(e.constructor)&&M(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Qt=W("ArrayBuffer");function Ho(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Qt(e.buffer),t}const zo=Ie("string"),M=Ie("function"),en=Ie("number"),Me=e=>e!==null&&typeof e=="object",qo=e=>e===!0||e===!1,Ue=e=>{if(Be(e)!=="object")return!1;const t=ut(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Go=W("Date"),Wo=W("File"),Jo=W("Blob"),Ko=W("FileList"),Yo=e=>Me(e)&&M(e.pipe),Xo=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||M(e.append)&&((t=Be(e))==="formdata"||t==="object"&&M(e.toString)&&e.toString()==="[object FormData]"))},Zo=W("URLSearchParams"),Qo=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Se(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,s;if(typeof e!="object"&&(e=[e]),fe(e))for(o=0,s=e.length;o<s;o++)t.call(null,e[o],o,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length;let l;for(o=0;o<i;o++)l=a[o],t.call(null,e[l],l,e)}}function tn(e,t){t=t.toLowerCase();const n=Object.keys(e);let o=n.length,s;for(;o-- >0;)if(s=n[o],t===s.toLowerCase())return s;return null}const nn=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),on=e=>!ve(e)&&e!==nn;function dt(){const{caseless:e}=on(this)&&this||{},t={},n=(o,s)=>{const a=e&&tn(t,s)||s;Ue(t[a])&&Ue(o)?t[a]=dt(t[a],o):Ue(o)?t[a]=dt({},o):fe(o)?t[a]=o.slice():t[a]=o};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&Se(arguments[o],n);return t}const er=(e,t,n,{allOwnKeys:o}={})=>(Se(t,(s,a)=>{n&&M(s)?e[a]=de(s,n):e[a]=s},{allOwnKeys:o}),e),tr=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),nr=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},or=(e,t,n,o)=>{let s,a,i;const l={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),a=s.length;a-- >0;)i=s[a],(!o||o(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&ut(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},rr=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n},sr=e=>{if(!e)return null;if(fe(e))return e;let t=e.length;if(!en(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},ar=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ut(Uint8Array)),ir=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=o.next())&&!s.done;){const a=s.value;t.call(e,a[0],a[1])}},lr=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},cr=W("HTMLFormElement"),ur=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,s){return o.toUpperCase()+s}),rn=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),dr=W("RegExp"),sn=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};Se(n,(s,a)=>{t(s,a,e)!==!1&&(o[a]=s)}),Object.defineProperties(e,o)},fr=e=>{sn(e,(t,n)=>{if(M(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(M(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},pr=(e,t)=>{const n={},o=s=>{s.forEach(a=>{n[a]=!0})};return fe(e)?o(e):o(String(e).split(t)),n},mr=()=>{},hr=(e,t)=>(e=+e,Number.isFinite(e)?e:t),ft="abcdefghijklmnopqrstuvwxyz",an="0123456789",ln={DIGIT:an,ALPHA:ft,ALPHA_DIGIT:ft+ft.toUpperCase()+an},gr=(e=16,t=ln.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n};function yr(e){return!!(e&&M(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const br=e=>{const t=new Array(10),n=(o,s)=>{if(Me(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[s]=o;const a=fe(o)?[]:{};return Se(o,(i,l)=>{const f=n(i,s+1);!ve(f)&&(a[l]=f)}),t[s]=void 0,a}}return o};return n(e,0)},wr=W("AsyncFunction"),m={isArray:fe,isArrayBuffer:Qt,isBuffer:Uo,isFormData:Xo,isArrayBufferView:Ho,isString:zo,isNumber:en,isBoolean:qo,isObject:Me,isPlainObject:Ue,isUndefined:ve,isDate:Go,isFile:Wo,isBlob:Jo,isRegExp:dr,isFunction:M,isStream:Yo,isURLSearchParams:Zo,isTypedArray:ar,isFileList:Ko,forEach:Se,merge:dt,extend:er,trim:Qo,stripBOM:tr,inherits:nr,toFlatObject:or,kindOf:Be,kindOfTest:W,endsWith:rr,toArray:sr,forEachEntry:ir,matchAll:lr,isHTMLForm:cr,hasOwnProperty:rn,hasOwnProp:rn,reduceDescriptors:sn,freezeMethods:fr,toObjectSet:pr,toCamelCase:ur,noop:mr,toFiniteNumber:hr,findKey:tn,global:nn,isContextDefined:on,ALPHABET:ln,generateString:gr,isSpecCompliantForm:yr,toJSONObject:br,isAsyncFn:wr,isThenable:e=>e&&(Me(e)||M(e))&&M(e.then)&&M(e.catch)};function k(e,t,n,o,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),s&&(this.response=s)}m.inherits(k,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:m.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const cn=k.prototype,un={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{un[e]={value:e}}),Object.defineProperties(k,un),Object.defineProperty(cn,"isAxiosError",{value:!0}),k.from=(e,t,n,o,s,a)=>{const i=Object.create(cn);return m.toFlatObject(e,i,function(f){return f!==Error.prototype},l=>l!=="isAxiosError"),k.call(i,e.message,t,n,o,s),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const _r=null;function pt(e){return m.isPlainObject(e)||m.isArray(e)}function dn(e){return m.endsWith(e,"[]")?e.slice(0,-2):e}function fn(e,t,n){return e?e.concat(t).map(function(s,a){return s=dn(s),!n&&a?"["+s+"]":s}).join(n?".":""):t}function Er(e){return m.isArray(e)&&!e.some(pt)}const vr=m.toFlatObject(m,{},null,function(t){return/^is[A-Z]/.test(t)});function He(e,t,n){if(!m.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=m.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,b){return!m.isUndefined(b[h])});const o=n.metaTokens,s=n.visitor||d,a=n.dots,i=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&m.isSpecCompliantForm(t);if(!m.isFunction(s))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(m.isDate(g))return g.toISOString();if(!f&&m.isBlob(g))throw new k("Blob is not supported. Use a Buffer instead.");return m.isArrayBuffer(g)||m.isTypedArray(g)?f&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function d(g,h,b){let S=g;if(g&&!b&&typeof g=="object"){if(m.endsWith(h,"{}"))h=o?h:h.slice(0,-2),g=JSON.stringify(g);else if(m.isArray(g)&&Er(g)||(m.isFileList(g)||m.endsWith(h,"[]"))&&(S=m.toArray(g)))return h=dn(h),S.forEach(function(P,C){!(m.isUndefined(P)||P===null)&&t.append(i===!0?fn([h],C,a):i===null?h:h+"[]",c(P))}),!1}return pt(g)?!0:(t.append(fn(b,h,a),c(g)),!1)}const u=[],p=Object.assign(vr,{defaultVisitor:d,convertValue:c,isVisitable:pt});function y(g,h){if(!m.isUndefined(g)){if(u.indexOf(g)!==-1)throw Error("Circular reference detected in "+h.join("."));u.push(g),m.forEach(g,function(S,O){(!(m.isUndefined(S)||S===null)&&s.call(t,S,m.isString(O)?O.trim():O,h,p))===!0&&y(S,h?h.concat(O):[O])}),u.pop()}}if(!m.isObject(e))throw new TypeError("data must be an object");return y(e),t}function pn(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function mt(e,t){this._pairs=[],e&&He(e,this,t)}const mn=mt.prototype;mn.append=function(t,n){this._pairs.push([t,n])},mn.toString=function(t){const n=t?function(o){return t.call(this,o,pn)}:pn;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Sr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function hn(e,t,n){if(!t)return e;const o=n&&n.encode||Sr,s=n&&n.serialize;let a;if(s?a=s(t,n):a=m.isURLSearchParams(t)?t.toString():new mt(t,n).toString(o),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class xr{constructor(){this.handlers=[]}use(t,n,o){return this.handlers.push({fulfilled:t,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){m.forEach(this.handlers,function(o){o!==null&&t(o)})}}const gn=xr,yn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Nr=typeof URLSearchParams<"u"?URLSearchParams:mt,Pr=typeof FormData<"u"?FormData:null,Or=typeof Blob<"u"?Blob:null,Cr=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),kr=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),J={isBrowser:!0,classes:{URLSearchParams:Nr,FormData:Pr,Blob:Or},isStandardBrowserEnv:Cr,isStandardBrowserWebWorkerEnv:kr,protocols:["http","https","file","blob","url","data"]};function Tr(e,t){return He(e,new J.classes.URLSearchParams,Object.assign({visitor:function(n,o,s,a){return J.isNode&&m.isBuffer(n)?(this.append(o,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function Ar(e){return m.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Lr(e){const t={},n=Object.keys(e);let o;const s=n.length;let a;for(o=0;o<s;o++)a=n[o],t[a]=e[a];return t}function bn(e){function t(n,o,s,a){let i=n[a++];const l=Number.isFinite(+i),f=a>=n.length;return i=!i&&m.isArray(s)?s.length:i,f?(m.hasOwnProp(s,i)?s[i]=[s[i],o]:s[i]=o,!l):((!s[i]||!m.isObject(s[i]))&&(s[i]=[]),t(n,o,s[i],a)&&m.isArray(s[i])&&(s[i]=Lr(s[i])),!l)}if(m.isFormData(e)&&m.isFunction(e.entries)){const n={};return m.forEachEntry(e,(o,s)=>{t(Ar(o),s,n,0)}),n}return null}const $r={"Content-Type":void 0};function Rr(e,t,n){if(m.isString(e))try{return(t||JSON.parse)(e),m.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(e)}const ze={transitional:yn,adapter:["xhr","http"],transformRequest:[function(t,n){const o=n.getContentType()||"",s=o.indexOf("application/json")>-1,a=m.isObject(t);if(a&&m.isHTMLForm(t)&&(t=new FormData(t)),m.isFormData(t))return s&&s?JSON.stringify(bn(t)):t;if(m.isArrayBuffer(t)||m.isBuffer(t)||m.isStream(t)||m.isFile(t)||m.isBlob(t))return t;if(m.isArrayBufferView(t))return t.buffer;if(m.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(o.indexOf("application/x-www-form-urlencoded")>-1)return Tr(t,this.formSerializer).toString();if((l=m.isFileList(t))||o.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return He(l?{"files[]":t}:t,f&&new f,this.formSerializer)}}return a||s?(n.setContentType("application/json",!1),Rr(t)):t}],transformResponse:[function(t){const n=this.transitional||ze.transitional,o=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&m.isString(t)&&(o&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?k.from(l,k.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:J.classes.FormData,Blob:J.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};m.forEach(["delete","get","head"],function(t){ze.headers[t]={}}),m.forEach(["post","put","patch"],function(t){ze.headers[t]=m.merge($r)});const ht=ze,Dr=m.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Fr=e=>{const t={};let n,o,s;return e&&e.split(`
1
+ (function(r,de){typeof exports=="object"&&typeof module<"u"?module.exports=de(require("vue")):typeof define=="function"&&define.amd?define(["vue"],de):(r=typeof globalThis<"u"?globalThis:r||self,r["my-header"]=de(r.Vue))})(this,function(r){"use strict";function de(e,t){return function(){return e.apply(t,arguments)}}const{toString:Mo}=Object.prototype,{getPrototypeOf:ut}=Object,Be=(e=>t=>{const n=Mo.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),W=e=>(e=e.toLowerCase(),t=>Be(t)===e),Ie=e=>t=>typeof t===e,{isArray:fe}=Array,ve=Ie("undefined");function Uo(e){return e!==null&&!ve(e)&&e.constructor!==null&&!ve(e.constructor)&&M(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Qt=W("ArrayBuffer");function Ho(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Qt(e.buffer),t}const zo=Ie("string"),M=Ie("function"),en=Ie("number"),Me=e=>e!==null&&typeof e=="object",qo=e=>e===!0||e===!1,Ue=e=>{if(Be(e)!=="object")return!1;const t=ut(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Go=W("Date"),Wo=W("File"),Jo=W("Blob"),Ko=W("FileList"),Yo=e=>Me(e)&&M(e.pipe),Xo=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||M(e.append)&&((t=Be(e))==="formdata"||t==="object"&&M(e.toString)&&e.toString()==="[object FormData]"))},Zo=W("URLSearchParams"),Qo=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Se(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,s;if(typeof e!="object"&&(e=[e]),fe(e))for(o=0,s=e.length;o<s;o++)t.call(null,e[o],o,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length;let l;for(o=0;o<i;o++)l=a[o],t.call(null,e[l],l,e)}}function tn(e,t){t=t.toLowerCase();const n=Object.keys(e);let o=n.length,s;for(;o-- >0;)if(s=n[o],t===s.toLowerCase())return s;return null}const nn=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),on=e=>!ve(e)&&e!==nn;function dt(){const{caseless:e}=on(this)&&this||{},t={},n=(o,s)=>{const a=e&&tn(t,s)||s;Ue(t[a])&&Ue(o)?t[a]=dt(t[a],o):Ue(o)?t[a]=dt({},o):fe(o)?t[a]=o.slice():t[a]=o};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&Se(arguments[o],n);return t}const er=(e,t,n,{allOwnKeys:o}={})=>(Se(t,(s,a)=>{n&&M(s)?e[a]=de(s,n):e[a]=s},{allOwnKeys:o}),e),tr=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),nr=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},or=(e,t,n,o)=>{let s,a,i;const l={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),a=s.length;a-- >0;)i=s[a],(!o||o(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&ut(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},rr=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n},sr=e=>{if(!e)return null;if(fe(e))return e;let t=e.length;if(!en(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},ar=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ut(Uint8Array)),ir=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=o.next())&&!s.done;){const a=s.value;t.call(e,a[0],a[1])}},lr=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},cr=W("HTMLFormElement"),ur=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,s){return o.toUpperCase()+s}),rn=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),dr=W("RegExp"),sn=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};Se(n,(s,a)=>{t(s,a,e)!==!1&&(o[a]=s)}),Object.defineProperties(e,o)},fr=e=>{sn(e,(t,n)=>{if(M(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(M(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},pr=(e,t)=>{const n={},o=s=>{s.forEach(a=>{n[a]=!0})};return fe(e)?o(e):o(String(e).split(t)),n},mr=()=>{},hr=(e,t)=>(e=+e,Number.isFinite(e)?e:t),ft="abcdefghijklmnopqrstuvwxyz",an="0123456789",ln={DIGIT:an,ALPHA:ft,ALPHA_DIGIT:ft+ft.toUpperCase()+an},gr=(e=16,t=ln.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n};function yr(e){return!!(e&&M(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const br=e=>{const t=new Array(10),n=(o,s)=>{if(Me(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[s]=o;const a=fe(o)?[]:{};return Se(o,(i,l)=>{const f=n(i,s+1);!ve(f)&&(a[l]=f)}),t[s]=void 0,a}}return o};return n(e,0)},wr=W("AsyncFunction"),m={isArray:fe,isArrayBuffer:Qt,isBuffer:Uo,isFormData:Xo,isArrayBufferView:Ho,isString:zo,isNumber:en,isBoolean:qo,isObject:Me,isPlainObject:Ue,isUndefined:ve,isDate:Go,isFile:Wo,isBlob:Jo,isRegExp:dr,isFunction:M,isStream:Yo,isURLSearchParams:Zo,isTypedArray:ar,isFileList:Ko,forEach:Se,merge:dt,extend:er,trim:Qo,stripBOM:tr,inherits:nr,toFlatObject:or,kindOf:Be,kindOfTest:W,endsWith:rr,toArray:sr,forEachEntry:ir,matchAll:lr,isHTMLForm:cr,hasOwnProperty:rn,hasOwnProp:rn,reduceDescriptors:sn,freezeMethods:fr,toObjectSet:pr,toCamelCase:ur,noop:mr,toFiniteNumber:hr,findKey:tn,global:nn,isContextDefined:on,ALPHABET:ln,generateString:gr,isSpecCompliantForm:yr,toJSONObject:br,isAsyncFn:wr,isThenable:e=>e&&(Me(e)||M(e))&&M(e.then)&&M(e.catch)};function k(e,t,n,o,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),s&&(this.response=s)}m.inherits(k,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:m.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const cn=k.prototype,un={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{un[e]={value:e}}),Object.defineProperties(k,un),Object.defineProperty(cn,"isAxiosError",{value:!0}),k.from=(e,t,n,o,s,a)=>{const i=Object.create(cn);return m.toFlatObject(e,i,function(f){return f!==Error.prototype},l=>l!=="isAxiosError"),k.call(i,e.message,t,n,o,s),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const Er=null;function pt(e){return m.isPlainObject(e)||m.isArray(e)}function dn(e){return m.endsWith(e,"[]")?e.slice(0,-2):e}function fn(e,t,n){return e?e.concat(t).map(function(s,a){return s=dn(s),!n&&a?"["+s+"]":s}).join(n?".":""):t}function _r(e){return m.isArray(e)&&!e.some(pt)}const vr=m.toFlatObject(m,{},null,function(t){return/^is[A-Z]/.test(t)});function He(e,t,n){if(!m.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=m.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,b){return!m.isUndefined(b[h])});const o=n.metaTokens,s=n.visitor||d,a=n.dots,i=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&m.isSpecCompliantForm(t);if(!m.isFunction(s))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(m.isDate(g))return g.toISOString();if(!f&&m.isBlob(g))throw new k("Blob is not supported. Use a Buffer instead.");return m.isArrayBuffer(g)||m.isTypedArray(g)?f&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function d(g,h,b){let S=g;if(g&&!b&&typeof g=="object"){if(m.endsWith(h,"{}"))h=o?h:h.slice(0,-2),g=JSON.stringify(g);else if(m.isArray(g)&&_r(g)||(m.isFileList(g)||m.endsWith(h,"[]"))&&(S=m.toArray(g)))return h=dn(h),S.forEach(function(P,C){!(m.isUndefined(P)||P===null)&&t.append(i===!0?fn([h],C,a):i===null?h:h+"[]",c(P))}),!1}return pt(g)?!0:(t.append(fn(b,h,a),c(g)),!1)}const u=[],p=Object.assign(vr,{defaultVisitor:d,convertValue:c,isVisitable:pt});function y(g,h){if(!m.isUndefined(g)){if(u.indexOf(g)!==-1)throw Error("Circular reference detected in "+h.join("."));u.push(g),m.forEach(g,function(S,O){(!(m.isUndefined(S)||S===null)&&s.call(t,S,m.isString(O)?O.trim():O,h,p))===!0&&y(S,h?h.concat(O):[O])}),u.pop()}}if(!m.isObject(e))throw new TypeError("data must be an object");return y(e),t}function pn(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function mt(e,t){this._pairs=[],e&&He(e,this,t)}const mn=mt.prototype;mn.append=function(t,n){this._pairs.push([t,n])},mn.toString=function(t){const n=t?function(o){return t.call(this,o,pn)}:pn;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Sr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function hn(e,t,n){if(!t)return e;const o=n&&n.encode||Sr,s=n&&n.serialize;let a;if(s?a=s(t,n):a=m.isURLSearchParams(t)?t.toString():new mt(t,n).toString(o),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class xr{constructor(){this.handlers=[]}use(t,n,o){return this.handlers.push({fulfilled:t,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){m.forEach(this.handlers,function(o){o!==null&&t(o)})}}const gn=xr,yn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Nr=typeof URLSearchParams<"u"?URLSearchParams:mt,Pr=typeof FormData<"u"?FormData:null,Or=typeof Blob<"u"?Blob:null,Cr=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),kr=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),J={isBrowser:!0,classes:{URLSearchParams:Nr,FormData:Pr,Blob:Or},isStandardBrowserEnv:Cr,isStandardBrowserWebWorkerEnv:kr,protocols:["http","https","file","blob","url","data"]};function Tr(e,t){return He(e,new J.classes.URLSearchParams,Object.assign({visitor:function(n,o,s,a){return J.isNode&&m.isBuffer(n)?(this.append(o,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function Ar(e){return m.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Lr(e){const t={},n=Object.keys(e);let o;const s=n.length;let a;for(o=0;o<s;o++)a=n[o],t[a]=e[a];return t}function bn(e){function t(n,o,s,a){let i=n[a++];const l=Number.isFinite(+i),f=a>=n.length;return i=!i&&m.isArray(s)?s.length:i,f?(m.hasOwnProp(s,i)?s[i]=[s[i],o]:s[i]=o,!l):((!s[i]||!m.isObject(s[i]))&&(s[i]=[]),t(n,o,s[i],a)&&m.isArray(s[i])&&(s[i]=Lr(s[i])),!l)}if(m.isFormData(e)&&m.isFunction(e.entries)){const n={};return m.forEachEntry(e,(o,s)=>{t(Ar(o),s,n,0)}),n}return null}const $r={"Content-Type":void 0};function Rr(e,t,n){if(m.isString(e))try{return(t||JSON.parse)(e),m.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(e)}const ze={transitional:yn,adapter:["xhr","http"],transformRequest:[function(t,n){const o=n.getContentType()||"",s=o.indexOf("application/json")>-1,a=m.isObject(t);if(a&&m.isHTMLForm(t)&&(t=new FormData(t)),m.isFormData(t))return s&&s?JSON.stringify(bn(t)):t;if(m.isArrayBuffer(t)||m.isBuffer(t)||m.isStream(t)||m.isFile(t)||m.isBlob(t))return t;if(m.isArrayBufferView(t))return t.buffer;if(m.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(o.indexOf("application/x-www-form-urlencoded")>-1)return Tr(t,this.formSerializer).toString();if((l=m.isFileList(t))||o.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return He(l?{"files[]":t}:t,f&&new f,this.formSerializer)}}return a||s?(n.setContentType("application/json",!1),Rr(t)):t}],transformResponse:[function(t){const n=this.transitional||ze.transitional,o=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&m.isString(t)&&(o&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?k.from(l,k.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:J.classes.FormData,Blob:J.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};m.forEach(["delete","get","head"],function(t){ze.headers[t]={}}),m.forEach(["post","put","patch"],function(t){ze.headers[t]=m.merge($r)});const ht=ze,Dr=m.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Fr=e=>{const t={};let n,o,s;return e&&e.split(`
2
2
  `).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),o=i.substring(s+1).trim(),!(!n||t[n]&&Dr[n])&&(n==="set-cookie"?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t},wn=Symbol("internals");function xe(e){return e&&String(e).trim().toLowerCase()}function qe(e){return e===!1||e==null?e:m.isArray(e)?e.map(qe):String(e)}function Vr(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}const jr=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function gt(e,t,n,o,s){if(m.isFunction(o))return o.call(this,t,n);if(s&&(t=n),!!m.isString(t)){if(m.isString(o))return t.indexOf(o)!==-1;if(m.isRegExp(o))return o.test(t)}}function Br(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,o)=>n.toUpperCase()+o)}function Ir(e,t){const n=m.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(s,a,i){return this[o].call(this,t,s,a,i)},configurable:!0})})}class Ge{constructor(t){t&&this.set(t)}set(t,n,o){const s=this;function a(l,f,c){const d=xe(f);if(!d)throw new Error("header name must be a non-empty string");const u=m.findKey(s,d);(!u||s[u]===void 0||c===!0||c===void 0&&s[u]!==!1)&&(s[u||f]=qe(l))}const i=(l,f)=>m.forEach(l,(c,d)=>a(c,d,f));return m.isPlainObject(t)||t instanceof this.constructor?i(t,n):m.isString(t)&&(t=t.trim())&&!jr(t)?i(Fr(t),n):t!=null&&a(n,t,o),this}get(t,n){if(t=xe(t),t){const o=m.findKey(this,t);if(o){const s=this[o];if(!n)return s;if(n===!0)return Vr(s);if(m.isFunction(n))return n.call(this,s,o);if(m.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=xe(t),t){const o=m.findKey(this,t);return!!(o&&this[o]!==void 0&&(!n||gt(this,this[o],o,n)))}return!1}delete(t,n){const o=this;let s=!1;function a(i){if(i=xe(i),i){const l=m.findKey(o,i);l&&(!n||gt(o,o[l],l,n))&&(delete o[l],s=!0)}}return m.isArray(t)?t.forEach(a):a(t),s}clear(t){const n=Object.keys(this);let o=n.length,s=!1;for(;o--;){const a=n[o];(!t||gt(this,this[a],a,t,!0))&&(delete this[a],s=!0)}return s}normalize(t){const n=this,o={};return m.forEach(this,(s,a)=>{const i=m.findKey(o,a);if(i){n[i]=qe(s),delete n[a];return}const l=t?Br(a):String(a).trim();l!==a&&delete n[a],n[l]=qe(s),o[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return m.forEach(this,(o,s)=>{o!=null&&o!==!1&&(n[s]=t&&m.isArray(o)?o.join(", "):o)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
3
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const o=new this(t);return n.forEach(s=>o.set(s)),o}static accessor(t){const o=(this[wn]=this[wn]={accessors:{}}).accessors,s=this.prototype;function a(i){const l=xe(i);o[l]||(Ir(s,i),o[l]=!0)}return m.isArray(t)?t.forEach(a):a(t),this}}Ge.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),m.freezeMethods(Ge.prototype),m.freezeMethods(Ge);const Z=Ge;function yt(e,t){const n=this||ht,o=t||n,s=Z.from(o.headers);let a=o.data;return m.forEach(e,function(l){a=l.call(n,a,s.normalize(),t?t.status:void 0)}),s.normalize(),a}function _n(e){return!!(e&&e.__CANCEL__)}function Ne(e,t,n){k.call(this,e??"canceled",k.ERR_CANCELED,t,n),this.name="CanceledError"}m.inherits(Ne,k,{__CANCEL__:!0});function Mr(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new k("Request failed with status code "+n.status,[k.ERR_BAD_REQUEST,k.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Ur=J.isStandardBrowserEnv?function(){return{write:function(n,o,s,a,i,l){const f=[];f.push(n+"="+encodeURIComponent(o)),m.isNumber(s)&&f.push("expires="+new Date(s).toGMTString()),m.isString(a)&&f.push("path="+a),m.isString(i)&&f.push("domain="+i),l===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(n){const o=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Hr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function zr(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function En(e,t){return e&&!Hr(t)?zr(e,t):t}const qr=J.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let o;function s(a){let i=a;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{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 o=s(window.location.href),function(i){const l=m.isString(i)?s(i):i;return l.protocol===o.protocol&&l.host===o.host}}():function(){return function(){return!0}}();function Gr(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Wr(e,t){e=e||10;const n=new Array(e),o=new Array(e);let s=0,a=0,i;return t=t!==void 0?t:1e3,function(f){const c=Date.now(),d=o[a];i||(i=c),n[s]=f,o[s]=c;let u=a,p=0;for(;u!==s;)p+=n[u++],u=u%e;if(s=(s+1)%e,s===a&&(a=(a+1)%e),c-i<t)return;const y=d&&c-d;return y?Math.round(p*1e3/y):void 0}}function vn(e,t){let n=0;const o=Wr(50,250);return s=>{const a=s.loaded,i=s.lengthComputable?s.total:void 0,l=a-n,f=o(l),c=a<=i;n=a;const d={loaded:a,total:i,progress:i?a/i:void 0,bytes:l,rate:f||void 0,estimated:f&&i&&c?(i-a)/f:void 0,event:s};d[t?"download":"upload"]=!0,e(d)}}const We={http:_r,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,o){let s=e.data;const a=Z.from(e.headers).normalize(),i=e.responseType;let l;function f(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}m.isFormData(s)&&(J.isStandardBrowserEnv||J.isStandardBrowserWebWorkerEnv?a.setContentType(!1):a.setContentType("multipart/form-data;",!1));let c=new XMLHttpRequest;if(e.auth){const y=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(y+":"+g))}const d=En(e.baseURL,e.url);c.open(e.method.toUpperCase(),hn(d,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function u(){if(!c)return;const y=Z.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),h={data:!i||i==="text"||i==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:y,config:e,request:c};Mr(function(S){n(S),f()},function(S){o(S),f()},h),c=null}if("onloadend"in c?c.onloadend=u:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(u)},c.onabort=function(){c&&(o(new k("Request aborted",k.ECONNABORTED,e,c)),c=null)},c.onerror=function(){o(new k("Network Error",k.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let g=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const h=e.transitional||yn;e.timeoutErrorMessage&&(g=e.timeoutErrorMessage),o(new k(g,h.clarifyTimeoutError?k.ETIMEDOUT:k.ECONNABORTED,e,c)),c=null},J.isStandardBrowserEnv){const y=(e.withCredentials||qr(d))&&e.xsrfCookieName&&Ur.read(e.xsrfCookieName);y&&a.set(e.xsrfHeaderName,y)}s===void 0&&a.setContentType(null),"setRequestHeader"in c&&m.forEach(a.toJSON(),function(g,h){c.setRequestHeader(h,g)}),m.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),i&&i!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",vn(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",vn(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=y=>{c&&(o(!y||y.type?new Ne(null,e,c):y),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const p=Gr(d);if(p&&J.protocols.indexOf(p)===-1){o(new k("Unsupported protocol "+p+":",k.ERR_BAD_REQUEST,e));return}c.send(s||null)})}};m.forEach(We,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Jr={getAdapter:e=>{e=m.isArray(e)?e:[e];const{length:t}=e;let n,o;for(let s=0;s<t&&(n=e[s],!(o=m.isString(n)?We[n.toLowerCase()]:n));s++);if(!o)throw o===!1?new k(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(m.hasOwnProp(We,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!m.isFunction(o))throw new TypeError("adapter is not a function");return o},adapters:We};function bt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ne(null,e)}function Sn(e){return bt(e),e.headers=Z.from(e.headers),e.data=yt.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Jr.getAdapter(e.adapter||ht.adapter)(e).then(function(o){return bt(e),o.data=yt.call(e,e.transformResponse,o),o.headers=Z.from(o.headers),o},function(o){return _n(o)||(bt(e),o&&o.response&&(o.response.data=yt.call(e,e.transformResponse,o.response),o.response.headers=Z.from(o.response.headers))),Promise.reject(o)})}const xn=e=>e instanceof Z?e.toJSON():e;function pe(e,t){t=t||{};const n={};function o(c,d,u){return m.isPlainObject(c)&&m.isPlainObject(d)?m.merge.call({caseless:u},c,d):m.isPlainObject(d)?m.merge({},d):m.isArray(d)?d.slice():d}function s(c,d,u){if(m.isUndefined(d)){if(!m.isUndefined(c))return o(void 0,c,u)}else return o(c,d,u)}function a(c,d){if(!m.isUndefined(d))return o(void 0,d)}function i(c,d){if(m.isUndefined(d)){if(!m.isUndefined(c))return o(void 0,c)}else return o(void 0,d)}function l(c,d,u){if(u in t)return o(c,d);if(u in e)return o(void 0,c)}const f={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(c,d)=>s(xn(c),xn(d),!0)};return m.forEach(Object.keys(Object.assign({},e,t)),function(d){const u=f[d]||s,p=u(e[d],t[d],d);m.isUndefined(p)&&u!==l||(n[d]=p)}),n}const Nn="1.4.0",wt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{wt[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const Pn={};wt.transitional=function(t,n,o){function s(a,i){return"[Axios v"+Nn+"] Transitional option '"+a+"'"+i+(o?". "+o:"")}return(a,i,l)=>{if(t===!1)throw new k(s(i," has been removed"+(n?" in "+n:"")),k.ERR_DEPRECATED);return n&&!Pn[i]&&(Pn[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,i,l):!0}};function Kr(e,t,n){if(typeof e!="object")throw new k("options must be an object",k.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let s=o.length;for(;s-- >0;){const a=o[s],i=t[a];if(i){const l=e[a],f=l===void 0||i(l,a,e);if(f!==!0)throw new k("option "+a+" must be "+f,k.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new k("Unknown option "+a,k.ERR_BAD_OPTION)}}const _t={assertOptions:Kr,validators:wt},ee=_t.validators;class Je{constructor(t){this.defaults=t,this.interceptors={request:new gn,response:new gn}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=pe(this.defaults,n);const{transitional:o,paramsSerializer:s,headers:a}=n;o!==void 0&&_t.assertOptions(o,{silentJSONParsing:ee.transitional(ee.boolean),forcedJSONParsing:ee.transitional(ee.boolean),clarifyTimeoutError:ee.transitional(ee.boolean)},!1),s!=null&&(m.isFunction(s)?n.paramsSerializer={serialize:s}:_t.assertOptions(s,{encode:ee.function,serialize:ee.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i;i=a&&m.merge(a.common,a[n.method]),i&&m.forEach(["delete","get","head","post","put","patch","common"],g=>{delete a[g]}),n.headers=Z.concat(i,a);const l=[];let f=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(f=f&&h.synchronous,l.unshift(h.fulfilled,h.rejected))});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let d,u=0,p;if(!f){const g=[Sn.bind(this),void 0];for(g.unshift.apply(g,l),g.push.apply(g,c),p=g.length,d=Promise.resolve(n);u<p;)d=d.then(g[u++],g[u++]);return d}p=l.length;let y=n;for(u=0;u<p;){const g=l[u++],h=l[u++];try{y=g(y)}catch(b){h.call(this,b);break}}try{d=Sn.call(this,y)}catch(g){return Promise.reject(g)}for(u=0,p=c.length;u<p;)d=d.then(c[u++],c[u++]);return d}getUri(t){t=pe(this.defaults,t);const n=En(t.baseURL,t.url);return hn(n,t.params,t.paramsSerializer)}}m.forEach(["delete","get","head","options"],function(t){Je.prototype[t]=function(n,o){return this.request(pe(o||{},{method:t,url:n,data:(o||{}).data}))}}),m.forEach(["post","put","patch"],function(t){function n(o){return function(a,i,l){return this.request(pe(l||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}Je.prototype[t]=n(),Je.prototype[t+"Form"]=n(!0)});const Ke=Je;class Et{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const o=this;this.promise.then(s=>{if(!o._listeners)return;let a=o._listeners.length;for(;a-- >0;)o._listeners[a](s);o._listeners=null}),this.promise.then=s=>{let a;const i=new Promise(l=>{o.subscribe(l),a=l}).then(s);return i.cancel=function(){o.unsubscribe(a)},i},t(function(a,i,l){o.reason||(o.reason=new Ne(a,i,l),n(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Et(function(s){t=s}),cancel:t}}}const Yr=Et;function Xr(e){return function(n){return e.apply(null,n)}}function Zr(e){return m.isObject(e)&&e.isAxiosError===!0}const vt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(vt).forEach(([e,t])=>{vt[t]=e});const Qr=vt;function On(e){const t=new Ke(e),n=de(Ke.prototype.request,t);return m.extend(n,Ke.prototype,t,{allOwnKeys:!0}),m.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return On(pe(e,s))},n}const R=On(ht);R.Axios=Ke,R.CanceledError=Ne,R.CancelToken=Yr,R.isCancel=_n,R.VERSION=Nn,R.toFormData=He,R.AxiosError=k,R.Cancel=R.CanceledError,R.all=function(t){return Promise.all(t)},R.spread=Xr,R.isAxiosError=Zr,R.mergeConfig=pe,R.AxiosHeaders=Z,R.formToJSON=e=>bn(m.isHTMLForm(e)?new FormData(e):e),R.HttpStatusCode=Qr,R.default=R;const Cn=R.create({baseURL:"https://a2.imgkits.com",timeout:5e4});Cn.interceptors.request.use(e=>(console.log(e),e),e=>Promise.reject(e)),Cn.interceptors.response.use(e=>e.data,e=>Promise.reject(new Error(e)));const St="@",Pe=window.localStorage,kn={number:{save:e=>e,parse:e=>Number.parseFloat(e)},object:{save:e=>JSON.stringify(e),parse:e=>JSON.parse(e)},undefined:{save:e=>e,parse:()=>{}},default:{save:e=>e,parse:e=>e}};function Tn(e){return kn[e]||kn.default}const Ye={get(e){let t=Pe.getItem(e);if(t){let n=t.split("@"),o,s=Date.now();if(n.length>2&&n[2]<s)return Pe.removeItem(e),null;{let a=decodeURIComponent(n[1]);return o=Tn(n[0]).parse(a),o}}return null},put(e,t,n){const o=typeof t,s=Tn(o);if(!n)t=o+St+encodeURIComponent(s.save(t));else{let a=n*24*60*60*1e3+new Date().getTime();t=o+St+encodeURIComponent(s.save(t))+St+a}Pe.setItem(e,t)},clear(){Pe.clear()},remove(e){Pe.removeItem(e)}};var es=!1;function Xe(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function xt(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}var An;const Nt=typeof window<"u";Nt&&((An=window==null?void 0:window.navigator)!=null&&An.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent),process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const ts=Object.prototype.hasOwnProperty,Ln=(e,t)=>ts.call(e,t),Pt=e=>typeof e=="string",Ze=e=>e!==null&&typeof e=="object",$n=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ns=/-(\w)/g,os=$n(e=>e.replace(ns,(t,n)=>n?n.toUpperCase():"")),rs=/\B([A-Z])/g,ss=$n(e=>e.replace(rs,"-$1").toLowerCase());var as=typeof global=="object"&&global&&global.Object===Object&&global;const is=as;var ls=typeof self=="object"&&self&&self.Object===Object&&self,cs=is||ls||Function("return this")();const Ot=cs;var us=Ot.Symbol;const me=us;var Rn=Object.prototype,ds=Rn.hasOwnProperty,fs=Rn.toString,Oe=me?me.toStringTag:void 0;function ps(e){var t=ds.call(e,Oe),n=e[Oe];try{e[Oe]=void 0;var o=!0}catch{}var s=fs.call(e);return o&&(t?e[Oe]=n:delete e[Oe]),s}var ms=Object.prototype,hs=ms.toString;function gs(e){return hs.call(e)}var ys="[object Null]",bs="[object Undefined]",Dn=me?me.toStringTag:void 0;function Fn(e){return e==null?e===void 0?bs:ys:Dn&&Dn in Object(e)?ps(e):gs(e)}function ws(e){return e!=null&&typeof e=="object"}var _s="[object Symbol]";function Ct(e){return typeof e=="symbol"||ws(e)&&Fn(e)==_s}function Es(e,t){for(var n=-1,o=e==null?0:e.length,s=Array(o);++n<o;)s[n]=t(e[n],n,e);return s}var vs=Array.isArray;const kt=vs;var Ss=1/0,Vn=me?me.prototype:void 0,jn=Vn?Vn.toString:void 0;function Bn(e){if(typeof e=="string")return e;if(kt(e))return Es(e,Bn)+"";if(Ct(e))return jn?jn.call(e):"";var t=e+"";return t=="0"&&1/e==-Ss?"-0":t}function In(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var xs="[object AsyncFunction]",Ns="[object Function]",Ps="[object GeneratorFunction]",Os="[object Proxy]";function Cs(e){if(!In(e))return!1;var t=Fn(e);return t==Ns||t==Ps||t==xs||t==Os}var ks=Ot["__core-js_shared__"];const Tt=ks;var Mn=function(){var e=/[^.]+$/.exec(Tt&&Tt.keys&&Tt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Ts(e){return!!Mn&&Mn in e}var As=Function.prototype,Ls=As.toString;function $s(e){if(e!=null){try{return Ls.call(e)}catch{}try{return e+""}catch{}}return""}var Rs=/[\\^$.*+?()[\]{}|]/g,Ds=/^\[object .+?Constructor\]$/,Fs=Function.prototype,Vs=Object.prototype,js=Fs.toString,Bs=Vs.hasOwnProperty,Is=RegExp("^"+js.call(Bs).replace(Rs,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ms(e){if(!In(e)||Ts(e))return!1;var t=Cs(e)?Is:Ds;return t.test($s(e))}function Us(e,t){return e==null?void 0:e[t]}function Un(e,t){var n=Us(e,t);return Ms(n)?n:void 0}function Hs(e,t){return e===t||e!==e&&t!==t}var zs=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qs=/^\w*$/;function Gs(e,t){if(kt(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Ct(e)?!0:qs.test(e)||!zs.test(e)||t!=null&&e in Object(t)}var Ws=Un(Object,"create");const Ce=Ws;function Js(){this.__data__=Ce?Ce(null):{},this.size=0}function Ks(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Ys="__lodash_hash_undefined__",Xs=Object.prototype,Zs=Xs.hasOwnProperty;function Qs(e){var t=this.__data__;if(Ce){var n=t[e];return n===Ys?void 0:n}return Zs.call(t,e)?t[e]:void 0}var ea=Object.prototype,ta=ea.hasOwnProperty;function na(e){var t=this.__data__;return Ce?t[e]!==void 0:ta.call(t,e)}var oa="__lodash_hash_undefined__";function ra(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ce&&t===void 0?oa:t,this}function te(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}te.prototype.clear=Js,te.prototype.delete=Ks,te.prototype.get=Qs,te.prototype.has=na,te.prototype.set=ra;function sa(){this.__data__=[],this.size=0}function Qe(e,t){for(var n=e.length;n--;)if(Hs(e[n][0],t))return n;return-1}var aa=Array.prototype,ia=aa.splice;function la(e){var t=this.__data__,n=Qe(t,e);if(n<0)return!1;var o=t.length-1;return n==o?t.pop():ia.call(t,n,1),--this.size,!0}function ca(e){var t=this.__data__,n=Qe(t,e);return n<0?void 0:t[n][1]}function ua(e){return Qe(this.__data__,e)>-1}function da(e,t){var n=this.__data__,o=Qe(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}function he(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}he.prototype.clear=sa,he.prototype.delete=la,he.prototype.get=ca,he.prototype.has=ua,he.prototype.set=da;var fa=Un(Ot,"Map");const pa=fa;function ma(){this.size=0,this.__data__={hash:new te,map:new(pa||he),string:new te}}function ha(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function et(e,t){var n=e.__data__;return ha(t)?n[typeof t=="string"?"string":"hash"]:n.map}function ga(e){var t=et(this,e).delete(e);return this.size-=t?1:0,t}function ya(e){return et(this,e).get(e)}function ba(e){return et(this,e).has(e)}function wa(e,t){var n=et(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}function ne(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}ne.prototype.clear=ma,ne.prototype.delete=ga,ne.prototype.get=ya,ne.prototype.has=ba,ne.prototype.set=wa;var _a="Expected a function";function At(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(_a);var n=function(){var o=arguments,s=t?t.apply(this,o):o[0],a=n.cache;if(a.has(s))return a.get(s);var i=e.apply(this,o);return n.cache=a.set(s,i)||a,i};return n.cache=new(At.Cache||ne),n}At.Cache=ne;var Ea=500;function va(e){var t=At(e,function(o){return n.size===Ea&&n.clear(),o}),n=t.cache;return t}var Sa=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xa=/\\(\\)?/g,Na=va(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Sa,function(n,o,s,a){t.push(s?a.replace(xa,"$1"):o||n)}),t});const Pa=Na;function Oa(e){return e==null?"":Bn(e)}function Ca(e,t){return kt(e)?e:Gs(e,t)?[e]:Pa(Oa(e))}var ka=1/0;function Ta(e){if(typeof e=="string"||Ct(e))return e;var t=e+"";return t=="0"&&1/e==-ka?"-0":t}function Aa(e,t){t=Ca(t,e);for(var n=0,o=t.length;e!=null&&n<o;)e=e[Ta(t[n++])];return n&&n==o?e:void 0}function La(e,t,n){var o=e==null?void 0:Aa(e,t);return o===void 0?n:o}const $a=e=>typeof e=="number",Hn=e=>Object.keys(e);class Ra extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Da(e,t){if(process.env.NODE_ENV!=="production"){const n=Pt(e)?new Ra(`[${e}] ${t}`):e;console.warn(n)}}const zn=(e="")=>e.split(" ").filter(t=>!!t.trim()),qn=(e,t)=>{!e||!t.trim()||e.classList.add(...zn(t))},tt=(e,t)=>{!e||!t.trim()||e.classList.remove(...zn(t))},ke=(e,t)=>{var n;if(!Nt||!e||!t)return"";let o=os(t);o==="float"&&(o="cssFloat");try{const s=e.style[o];if(s)return s;const a=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return a?a[o]:""}catch{return e.style[o]}},Gn="__epPropKey",Fa=e=>Ze(e)&&!!e[Gn],Va=(e,t)=>{if(!Ze(e)||Fa(e))return e;const{values:n,required:o,default:s,type:a,validator:i}=e,f={type:a,required:!!o,validator:n||i?c=>{let d=!1,u=[];if(n&&(u=Array.from(n),Ln(e,"default")&&u.push(s),d||(d=u.includes(c))),i&&(d||(d=i(c))),!d&&u.length>0){const p=[...new Set(u)].map(y=>JSON.stringify(y)).join(", ");r.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${p}], got value ${JSON.stringify(c)}.`)}return d}:void 0,[Gn]:!0};return Ln(e,"default")&&(f.default=s),f},ja=["","default","small","large"];var Ba={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const Ia=e=>(t,n)=>Ma(t,n,r.unref(e)),Ma=(e,t,n)=>La(n,e,e).replace(/\{(\w+)\}/g,(o,s)=>{var a;return`${(a=t==null?void 0:t[s])!=null?a:`{${s}}`}`}),Ua=e=>{const t=r.computed(()=>r.unref(e).name),n=r.isRef(e)?e:r.ref(e);return{lang:t,locale:n,t:Ia(e)}},Wn=Symbol("localeContextKey"),Ha=e=>{const t=e||r.inject(Wn,r.ref());return Ua(r.computed(()=>t.value||Ba))},Lt="el",za="is-",oe=(e,t,n,o,s)=>{let a=`${e}-${t}`;return n&&(a+=`-${n}`),o&&(a+=`__${o}`),s&&(a+=`--${s}`),a},Jn=Symbol("namespaceContextKey"),qa=e=>{const t=e||r.inject(Jn,r.ref(Lt));return r.computed(()=>r.unref(t)||Lt)},Ga=(e,t)=>{const n=qa(t);return{namespace:n,b:(h="")=>oe(n.value,e,h,"",""),e:h=>h?oe(n.value,e,"",h,""):"",m:h=>h?oe(n.value,e,"","",h):"",be:(h,b)=>h&&b?oe(n.value,e,h,b,""):"",em:(h,b)=>h&&b?oe(n.value,e,"",h,b):"",bm:(h,b)=>h&&b?oe(n.value,e,h,"",b):"",bem:(h,b,S)=>h&&b&&S?oe(n.value,e,h,b,S):"",is:(h,...b)=>{const S=b.length>=1?b[0]:!0;return h&&S?`${za}${h}`:""},cssVar:h=>{const b={};for(const S in h)h[S]&&(b[`--${n.value}-${S}`]=h[S]);return b},cssVarName:h=>`--${n.value}-${h}`,cssVarBlock:h=>{const b={};for(const S in h)h[S]&&(b[`--${n.value}-${e}-${S}`]=h[S]);return b},cssVarBlockName:h=>`--${n.value}-${e}-${h}`}},Kn=r.ref(0),Yn=2e3,Xn=Symbol("zIndexContextKey"),Wa=e=>{const t=e||r.inject(Xn,void 0),n=r.computed(()=>{const a=r.unref(t);return $a(a)?a:Yn}),o=r.computed(()=>n.value+Kn.value);return{initialZIndex:n,currentZIndex:o,nextZIndex:()=>(Kn.value++,o.value)}};Va({type:String,values:ja,required:!1});const Ja=Symbol("size"),Zn=Symbol(),nt=r.ref();function Qn(e,t=void 0){const n=r.getCurrentInstance()?r.inject(Zn,nt):nt;return e?r.computed(()=>{var o,s;return(s=(o=n.value)==null?void 0:o[e])!=null?s:t}):n}function Ka(e,t){const n=Qn(),o=Ga(e,r.computed(()=>{var l;return((l=n.value)==null?void 0:l.namespace)||Lt})),s=Ha(r.computed(()=>{var l;return(l=n.value)==null?void 0:l.locale})),a=Wa(r.computed(()=>{var l;return((l=n.value)==null?void 0:l.zIndex)||Yn})),i=r.computed(()=>{var l;return r.unref(t)||((l=n.value)==null?void 0:l.size)||""});return Ya(r.computed(()=>r.unref(n)||{})),{ns:o,locale:s,zIndex:a,size:i}}const Ya=(e,t,n=!1)=>{var o;const s=!!r.getCurrentInstance(),a=s?Qn():void 0,i=(o=t==null?void 0:t.provide)!=null?o:s?r.provide:void 0;if(!i){Da("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const l=r.computed(()=>{const f=r.unref(e);return a!=null&&a.value?Xa(a.value,f):f});return i(Zn,l),i(Wn,r.computed(()=>l.value.locale)),i(Jn,r.computed(()=>l.value.namespace)),i(Xn,r.computed(()=>l.value.zIndex)),i(Ja,{size:r.computed(()=>l.value.size||"")}),(n||!nt.value)&&(nt.value=l.value),l},Xa=(e,t)=>{var n;const o=[...new Set([...Hn(e),...Hn(t)])],s={};for(const a of o)s[a]=(n=t[a])!=null?n:e[a];return s};function Za(e){let t;const n=r.ref(!1),o=r.reactive({...e,originalPosition:"",originalOverflow:"",visible:!1});function s(p){o.text=p}function a(){const p=o.parent,y=u.ns;if(!p.vLoadingAddClassList){let g=p.getAttribute("loading-number");g=Number.parseInt(g)-1,g?p.setAttribute("loading-number",g.toString()):(tt(p,y.bm("parent","relative")),p.removeAttribute("loading-number")),tt(p,y.bm("parent","hidden"))}i(),d.unmount()}function i(){var p,y;(y=(p=u.$el)==null?void 0:p.parentNode)==null||y.removeChild(u.$el)}function l(){var p;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=window.setTimeout(f,400),o.visible=!1,(p=e.closed)==null||p.call(e))}function f(){if(!n.value)return;const p=o.parent;n.value=!1,p.vLoadingAddClassList=void 0,a()}const c=r.defineComponent({name:"ElLoading",setup(p,{expose:y}){const{ns:g,zIndex:h}=Ka("loading");return y({ns:g,zIndex:h}),()=>{const b=o.spinner||o.svg,S=r.h("svg",{class:"circular",viewBox:o.svgViewBox?o.svgViewBox:"0 0 50 50",...b?{innerHTML:b}:{}},[r.h("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),O=o.text?r.h("p",{class:g.b("text")},[o.text]):void 0;return r.h(r.Transition,{name:g.b("fade"),onAfterLeave:f},{default:r.withCtx(()=>[r.withDirectives(r.createVNode("div",{style:{backgroundColor:o.background||""},class:[g.b("mask"),o.customClass,o.fullscreen?"is-fullscreen":""]},[r.h("div",{class:g.b("spinner")},[S,O])]),[[r.vShow,o.visible]])])})}}}),d=r.createApp(c),u=d.mount(document.createElement("div"));return{...r.toRefs(o),setText:s,removeElLoadingChild:i,close:l,handleAfterLeave:f,vm:u,get $el(){return u.$el}}}let ot;const $t=function(e={}){if(!Nt)return;const t=Qa(e);if(t.fullscreen&&ot)return ot;const n=Za({...t,closed:()=>{var s;(s=t.closed)==null||s.call(t),t.fullscreen&&(ot=void 0)}});ei(t,t.parent,n),eo(t,t.parent,n),t.parent.vLoadingAddClassList=()=>eo(t,t.parent,n);let o=t.parent.getAttribute("loading-number");return o?o=`${Number.parseInt(o)+1}`:o="1",t.parent.setAttribute("loading-number",o),t.parent.appendChild(n.$el),r.nextTick(()=>n.visible.value=t.visible),t.fullscreen&&(ot=n),n},Qa=e=>{var t,n,o,s;let a;return Pt(e.target)?a=(t=document.querySelector(e.target))!=null?t:document.body:a=e.target||document.body,{parent:a===document.body||e.body?document.body:a,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:a===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(o=e.lock)!=null?o:!1,customClass:e.customClass||"",visible:(s=e.visible)!=null?s:!0,target:a}},ei=async(e,t,n)=>{const{nextZIndex:o}=n.vm.zIndex||n.vm._.exposed.zIndex,s={};if(e.fullscreen)n.originalPosition.value=ke(document.body,"position"),n.originalOverflow.value=ke(document.body,"overflow"),s.zIndex=o();else if(e.parent===document.body){n.originalPosition.value=ke(document.body,"position"),await r.nextTick();for(const a of["top","left"]){const i=a==="top"?"scrollTop":"scrollLeft";s[a]=`${e.target.getBoundingClientRect()[a]+document.body[i]+document.documentElement[i]-Number.parseInt(ke(document.body,`margin-${a}`),10)}px`}for(const a of["height","width"])s[a]=`${e.target.getBoundingClientRect()[a]}px`}else n.originalPosition.value=ke(t,"position");for(const[a,i]of Object.entries(s))n.$el.style[a]=i},eo=(e,t,n)=>{const o=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?tt(t,o.bm("parent","relative")):qn(t,o.bm("parent","relative")),e.fullscreen&&e.lock?qn(t,o.bm("parent","hidden")):tt(t,o.bm("parent","hidden"))},Rt=Symbol("ElLoading"),to=(e,t)=>{var n,o,s,a;const i=t.instance,l=p=>Ze(t.value)?t.value[p]:void 0,f=p=>{const y=Pt(p)&&(i==null?void 0:i[p])||p;return y&&r.ref(y)},c=p=>f(l(p)||e.getAttribute(`element-loading-${ss(p)}`)),d=(n=l("fullscreen"))!=null?n:t.modifiers.fullscreen,u={text:c("text"),svg:c("svg"),svgViewBox:c("svgViewBox"),spinner:c("spinner"),background:c("background"),customClass:c("customClass"),fullscreen:d,target:(o=l("target"))!=null?o:d?void 0:e,body:(s=l("body"))!=null?s:t.modifiers.body,lock:(a=l("lock"))!=null?a:t.modifiers.lock};e[Rt]={options:u,instance:$t(u)}},ti=(e,t)=>{for(const n of Object.keys(t))r.isRef(t[n])&&(t[n].value=e[n])},no={mounted(e,t){t.value&&to(e,t)},updated(e,t){const n=e[Rt];t.oldValue!==t.value&&(t.value&&!t.oldValue?to(e,t):t.value&&t.oldValue?Ze(t.value)&&ti(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[Rt])==null||t.instance.close()}},Te={install(e){e.directive("loading",no),e.config.globalProperties.$loading=$t},directive:no,service:$t};function rt(){let e="";return typeof app_config=="object"&&app_config&&Object.keys(app_config).length>0&&(e=app_config.base_url||""),e}function ni(){const e=oi(),t=rt();return e.product?e.product:t?t.slice(1):location.href.indexOf("convert")!=-1?"convert":location.href.indexOf("translate")!=-1?"translate":"recorder"}function oo(e,t){window.__bl&&__bl.error(new Error(JSON.stringify(e)),{filename:t,lineno:384,colno:18})}function oi(){var e={};if(location.search.length>1)for(var t,n=0,o=location.search.substr(1).split("&");n<o.length;n++)t=o[n].split("="),e[decodeURIComponent(t[0])]=t.length>1?decodeURIComponent(t[1]):"";return e}function ge({url:e,data:t=null,method:n="GET",headers:o=null,cacheKey:s,cacheTime:a}){try{var i=new AbortController,l=i.signal}catch{}const f=ni();let c={method:n,headers:{"X-Access-Channel":f}};if(o&&(c.headers=Object.assign(c.headers,o),o["Content-Type"]&&o["Content-Type"].indexOf("application/x-www-form-urlencoded")!=-1&&t)){let u="";Object.keys(t).forEach(p=>{(t[p]||t[p]==0)&&(u+=`${p}=${t[p]}&`)}),t=u.slice(0,u.length-1)}t&&(typeof t=="string"?c.body=t:c.body=JSON.stringify(t)),l&&(c.signal=l);const d=()=>new Promise((u,p)=>{setTimeout(()=>{u(new Response("timeout",{status:504,statusText:"timeout"})),i&&i.abort()},6e4)});return Promise.race([d(),fetch(e,c).then(u=>u.json())]).then(u=>(console.log(u),u.success==!0||u.ok===0||u.code==0?(s&&(a?Ye.put(s,u.data,a):Ye.put(s,u.data)),(u.message||u.message==0)&&(window.g_message=u.message),Promise.resolve(u.data)):u&&u.image||u&&u.GOOGLE_ACCESS_TOKEN?(s&&(a?Ye.put(s,u,a):Ye.put(s,u)),Promise.resolve(u)):u.statusText=="timeout"?Promise.reject("The system is busy, please try again later"):Promise.reject(u.message||u.msg&&u||"failed, please check your network and try again"))).catch(u=>Promise.reject(u))}let ye=rt();function ro(){const e={"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"};return ge({url:ye+"/api/user/status",method:"POST",headers:e})}const ri=e=>ge({url:ye+"/api/user/active-passport",data:{passport:e},method:"POST",headers:{"Content-Type":"application/json"}});function si(e){return ge({url:ye+"/api/user/facebooklogin",data:{token:e},method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}})}function so(e){return ge({url:ye+"/api/user/google",data:{token:e},method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}})}function ai(e,t){return ge({url:ye+"/api/user/emaillogin?email="+encodeURIComponent(e)+"&password="+encodeURIComponent(t)})}function ii(e,t,n){return ge({url:ye+"/api/user/emailsignup?email="+encodeURIComponent(e)+"&username="+encodeURIComponent(t)+"&password="+encodeURIComponent(n)})}function B(e,t,...n){if(e in t){let s=t[e];return typeof s=="function"?s(...n):s}let o=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(s=>`"${s}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,B),o}var re=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(re||{}),li=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(li||{});function D({visible:e=!0,features:t=0,ourProps:n,theirProps:o,...s}){var a;let i=io(o,n),l=Object.assign(s,{props:i});if(e||t&2&&i.static)return Dt(l);if(t&1){let f=(a=i.unmount)==null||a?0:1;return B(f,{[0](){return null},[1](){return Dt({...s,props:{...i,hidden:!0,style:{display:"none"}}})}})}return Dt(l)}function Dt({props:e,attrs:t,slots:n,slot:o,name:s}){var a,i;let{as:l,...f}=ci(e,["unmount","static"]),c=(a=n.default)==null?void 0:a.call(n,o),d={};if(o){let u=!1,p=[];for(let[y,g]of Object.entries(o))typeof g=="boolean"&&(u=!0),g===!0&&p.push(y);u&&(d["data-headlessui-state"]=p.join(" "))}if(l==="template"){if(c=ao(c??[]),Object.keys(f).length>0||Object.keys(t).length>0){let[u,...p]=c??[];if(!ui(u)||p.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${s} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(f).concat(Object.keys(t)).map(h=>h.trim()).filter((h,b,S)=>S.indexOf(h)===b).sort((h,b)=>h.localeCompare(b)).map(h=>` - ${h}`).join(`
3
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const o=new this(t);return n.forEach(s=>o.set(s)),o}static accessor(t){const o=(this[wn]=this[wn]={accessors:{}}).accessors,s=this.prototype;function a(i){const l=xe(i);o[l]||(Ir(s,i),o[l]=!0)}return m.isArray(t)?t.forEach(a):a(t),this}}Ge.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),m.freezeMethods(Ge.prototype),m.freezeMethods(Ge);const Z=Ge;function yt(e,t){const n=this||ht,o=t||n,s=Z.from(o.headers);let a=o.data;return m.forEach(e,function(l){a=l.call(n,a,s.normalize(),t?t.status:void 0)}),s.normalize(),a}function En(e){return!!(e&&e.__CANCEL__)}function Ne(e,t,n){k.call(this,e??"canceled",k.ERR_CANCELED,t,n),this.name="CanceledError"}m.inherits(Ne,k,{__CANCEL__:!0});function Mr(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new k("Request failed with status code "+n.status,[k.ERR_BAD_REQUEST,k.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Ur=J.isStandardBrowserEnv?function(){return{write:function(n,o,s,a,i,l){const f=[];f.push(n+"="+encodeURIComponent(o)),m.isNumber(s)&&f.push("expires="+new Date(s).toGMTString()),m.isString(a)&&f.push("path="+a),m.isString(i)&&f.push("domain="+i),l===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(n){const o=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Hr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function zr(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function _n(e,t){return e&&!Hr(t)?zr(e,t):t}const qr=J.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let o;function s(a){let i=a;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{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 o=s(window.location.href),function(i){const l=m.isString(i)?s(i):i;return l.protocol===o.protocol&&l.host===o.host}}():function(){return function(){return!0}}();function Gr(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Wr(e,t){e=e||10;const n=new Array(e),o=new Array(e);let s=0,a=0,i;return t=t!==void 0?t:1e3,function(f){const c=Date.now(),d=o[a];i||(i=c),n[s]=f,o[s]=c;let u=a,p=0;for(;u!==s;)p+=n[u++],u=u%e;if(s=(s+1)%e,s===a&&(a=(a+1)%e),c-i<t)return;const y=d&&c-d;return y?Math.round(p*1e3/y):void 0}}function vn(e,t){let n=0;const o=Wr(50,250);return s=>{const a=s.loaded,i=s.lengthComputable?s.total:void 0,l=a-n,f=o(l),c=a<=i;n=a;const d={loaded:a,total:i,progress:i?a/i:void 0,bytes:l,rate:f||void 0,estimated:f&&i&&c?(i-a)/f:void 0,event:s};d[t?"download":"upload"]=!0,e(d)}}const We={http:Er,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,o){let s=e.data;const a=Z.from(e.headers).normalize(),i=e.responseType;let l;function f(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}m.isFormData(s)&&(J.isStandardBrowserEnv||J.isStandardBrowserWebWorkerEnv?a.setContentType(!1):a.setContentType("multipart/form-data;",!1));let c=new XMLHttpRequest;if(e.auth){const y=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(y+":"+g))}const d=_n(e.baseURL,e.url);c.open(e.method.toUpperCase(),hn(d,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function u(){if(!c)return;const y=Z.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),h={data:!i||i==="text"||i==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:y,config:e,request:c};Mr(function(S){n(S),f()},function(S){o(S),f()},h),c=null}if("onloadend"in c?c.onloadend=u:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(u)},c.onabort=function(){c&&(o(new k("Request aborted",k.ECONNABORTED,e,c)),c=null)},c.onerror=function(){o(new k("Network Error",k.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let g=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const h=e.transitional||yn;e.timeoutErrorMessage&&(g=e.timeoutErrorMessage),o(new k(g,h.clarifyTimeoutError?k.ETIMEDOUT:k.ECONNABORTED,e,c)),c=null},J.isStandardBrowserEnv){const y=(e.withCredentials||qr(d))&&e.xsrfCookieName&&Ur.read(e.xsrfCookieName);y&&a.set(e.xsrfHeaderName,y)}s===void 0&&a.setContentType(null),"setRequestHeader"in c&&m.forEach(a.toJSON(),function(g,h){c.setRequestHeader(h,g)}),m.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),i&&i!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",vn(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",vn(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=y=>{c&&(o(!y||y.type?new Ne(null,e,c):y),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const p=Gr(d);if(p&&J.protocols.indexOf(p)===-1){o(new k("Unsupported protocol "+p+":",k.ERR_BAD_REQUEST,e));return}c.send(s||null)})}};m.forEach(We,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Jr={getAdapter:e=>{e=m.isArray(e)?e:[e];const{length:t}=e;let n,o;for(let s=0;s<t&&(n=e[s],!(o=m.isString(n)?We[n.toLowerCase()]:n));s++);if(!o)throw o===!1?new k(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(m.hasOwnProp(We,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!m.isFunction(o))throw new TypeError("adapter is not a function");return o},adapters:We};function bt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ne(null,e)}function Sn(e){return bt(e),e.headers=Z.from(e.headers),e.data=yt.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Jr.getAdapter(e.adapter||ht.adapter)(e).then(function(o){return bt(e),o.data=yt.call(e,e.transformResponse,o),o.headers=Z.from(o.headers),o},function(o){return En(o)||(bt(e),o&&o.response&&(o.response.data=yt.call(e,e.transformResponse,o.response),o.response.headers=Z.from(o.response.headers))),Promise.reject(o)})}const xn=e=>e instanceof Z?e.toJSON():e;function pe(e,t){t=t||{};const n={};function o(c,d,u){return m.isPlainObject(c)&&m.isPlainObject(d)?m.merge.call({caseless:u},c,d):m.isPlainObject(d)?m.merge({},d):m.isArray(d)?d.slice():d}function s(c,d,u){if(m.isUndefined(d)){if(!m.isUndefined(c))return o(void 0,c,u)}else return o(c,d,u)}function a(c,d){if(!m.isUndefined(d))return o(void 0,d)}function i(c,d){if(m.isUndefined(d)){if(!m.isUndefined(c))return o(void 0,c)}else return o(void 0,d)}function l(c,d,u){if(u in t)return o(c,d);if(u in e)return o(void 0,c)}const f={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(c,d)=>s(xn(c),xn(d),!0)};return m.forEach(Object.keys(Object.assign({},e,t)),function(d){const u=f[d]||s,p=u(e[d],t[d],d);m.isUndefined(p)&&u!==l||(n[d]=p)}),n}const Nn="1.4.0",wt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{wt[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const Pn={};wt.transitional=function(t,n,o){function s(a,i){return"[Axios v"+Nn+"] Transitional option '"+a+"'"+i+(o?". "+o:"")}return(a,i,l)=>{if(t===!1)throw new k(s(i," has been removed"+(n?" in "+n:"")),k.ERR_DEPRECATED);return n&&!Pn[i]&&(Pn[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,i,l):!0}};function Kr(e,t,n){if(typeof e!="object")throw new k("options must be an object",k.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let s=o.length;for(;s-- >0;){const a=o[s],i=t[a];if(i){const l=e[a],f=l===void 0||i(l,a,e);if(f!==!0)throw new k("option "+a+" must be "+f,k.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new k("Unknown option "+a,k.ERR_BAD_OPTION)}}const Et={assertOptions:Kr,validators:wt},ee=Et.validators;class Je{constructor(t){this.defaults=t,this.interceptors={request:new gn,response:new gn}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=pe(this.defaults,n);const{transitional:o,paramsSerializer:s,headers:a}=n;o!==void 0&&Et.assertOptions(o,{silentJSONParsing:ee.transitional(ee.boolean),forcedJSONParsing:ee.transitional(ee.boolean),clarifyTimeoutError:ee.transitional(ee.boolean)},!1),s!=null&&(m.isFunction(s)?n.paramsSerializer={serialize:s}:Et.assertOptions(s,{encode:ee.function,serialize:ee.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i;i=a&&m.merge(a.common,a[n.method]),i&&m.forEach(["delete","get","head","post","put","patch","common"],g=>{delete a[g]}),n.headers=Z.concat(i,a);const l=[];let f=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(f=f&&h.synchronous,l.unshift(h.fulfilled,h.rejected))});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let d,u=0,p;if(!f){const g=[Sn.bind(this),void 0];for(g.unshift.apply(g,l),g.push.apply(g,c),p=g.length,d=Promise.resolve(n);u<p;)d=d.then(g[u++],g[u++]);return d}p=l.length;let y=n;for(u=0;u<p;){const g=l[u++],h=l[u++];try{y=g(y)}catch(b){h.call(this,b);break}}try{d=Sn.call(this,y)}catch(g){return Promise.reject(g)}for(u=0,p=c.length;u<p;)d=d.then(c[u++],c[u++]);return d}getUri(t){t=pe(this.defaults,t);const n=_n(t.baseURL,t.url);return hn(n,t.params,t.paramsSerializer)}}m.forEach(["delete","get","head","options"],function(t){Je.prototype[t]=function(n,o){return this.request(pe(o||{},{method:t,url:n,data:(o||{}).data}))}}),m.forEach(["post","put","patch"],function(t){function n(o){return function(a,i,l){return this.request(pe(l||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}Je.prototype[t]=n(),Je.prototype[t+"Form"]=n(!0)});const Ke=Je;class _t{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const o=this;this.promise.then(s=>{if(!o._listeners)return;let a=o._listeners.length;for(;a-- >0;)o._listeners[a](s);o._listeners=null}),this.promise.then=s=>{let a;const i=new Promise(l=>{o.subscribe(l),a=l}).then(s);return i.cancel=function(){o.unsubscribe(a)},i},t(function(a,i,l){o.reason||(o.reason=new Ne(a,i,l),n(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new _t(function(s){t=s}),cancel:t}}}const Yr=_t;function Xr(e){return function(n){return e.apply(null,n)}}function Zr(e){return m.isObject(e)&&e.isAxiosError===!0}const vt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(vt).forEach(([e,t])=>{vt[t]=e});const Qr=vt;function On(e){const t=new Ke(e),n=de(Ke.prototype.request,t);return m.extend(n,Ke.prototype,t,{allOwnKeys:!0}),m.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return On(pe(e,s))},n}const R=On(ht);R.Axios=Ke,R.CanceledError=Ne,R.CancelToken=Yr,R.isCancel=En,R.VERSION=Nn,R.toFormData=He,R.AxiosError=k,R.Cancel=R.CanceledError,R.all=function(t){return Promise.all(t)},R.spread=Xr,R.isAxiosError=Zr,R.mergeConfig=pe,R.AxiosHeaders=Z,R.formToJSON=e=>bn(m.isHTMLForm(e)?new FormData(e):e),R.HttpStatusCode=Qr,R.default=R;const Cn=R.create({baseURL:"https://a2.imgkits.com",timeout:5e4});Cn.interceptors.request.use(e=>(console.log(e),e),e=>Promise.reject(e)),Cn.interceptors.response.use(e=>e.data,e=>Promise.reject(new Error(e)));const St="@",Pe=window.localStorage,kn={number:{save:e=>e,parse:e=>Number.parseFloat(e)},object:{save:e=>JSON.stringify(e),parse:e=>JSON.parse(e)},undefined:{save:e=>e,parse:()=>{}},default:{save:e=>e,parse:e=>e}};function Tn(e){return kn[e]||kn.default}const Ye={get(e){let t=Pe.getItem(e);if(t){let n=t.split("@"),o,s=Date.now();if(n.length>2&&n[2]<s)return Pe.removeItem(e),null;{let a=decodeURIComponent(n[1]);return o=Tn(n[0]).parse(a),o}}return null},put(e,t,n){const o=typeof t,s=Tn(o);if(!n)t=o+St+encodeURIComponent(s.save(t));else{let a=n*24*60*60*1e3+new Date().getTime();t=o+St+encodeURIComponent(s.save(t))+St+a}Pe.setItem(e,t)},clear(){Pe.clear()},remove(e){Pe.removeItem(e)}};var es=!1;function Xe(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function xt(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}var An;const Nt=typeof window<"u";Nt&&((An=window==null?void 0:window.navigator)!=null&&An.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent),process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const ts=Object.prototype.hasOwnProperty,Ln=(e,t)=>ts.call(e,t),Pt=e=>typeof e=="string",Ze=e=>e!==null&&typeof e=="object",$n=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ns=/-(\w)/g,os=$n(e=>e.replace(ns,(t,n)=>n?n.toUpperCase():"")),rs=/\B([A-Z])/g,ss=$n(e=>e.replace(rs,"-$1").toLowerCase());var as=typeof global=="object"&&global&&global.Object===Object&&global;const is=as;var ls=typeof self=="object"&&self&&self.Object===Object&&self,cs=is||ls||Function("return this")();const Ot=cs;var us=Ot.Symbol;const me=us;var Rn=Object.prototype,ds=Rn.hasOwnProperty,fs=Rn.toString,Oe=me?me.toStringTag:void 0;function ps(e){var t=ds.call(e,Oe),n=e[Oe];try{e[Oe]=void 0;var o=!0}catch{}var s=fs.call(e);return o&&(t?e[Oe]=n:delete e[Oe]),s}var ms=Object.prototype,hs=ms.toString;function gs(e){return hs.call(e)}var ys="[object Null]",bs="[object Undefined]",Dn=me?me.toStringTag:void 0;function Fn(e){return e==null?e===void 0?bs:ys:Dn&&Dn in Object(e)?ps(e):gs(e)}function ws(e){return e!=null&&typeof e=="object"}var Es="[object Symbol]";function Ct(e){return typeof e=="symbol"||ws(e)&&Fn(e)==Es}function _s(e,t){for(var n=-1,o=e==null?0:e.length,s=Array(o);++n<o;)s[n]=t(e[n],n,e);return s}var vs=Array.isArray;const kt=vs;var Ss=1/0,Vn=me?me.prototype:void 0,jn=Vn?Vn.toString:void 0;function Bn(e){if(typeof e=="string")return e;if(kt(e))return _s(e,Bn)+"";if(Ct(e))return jn?jn.call(e):"";var t=e+"";return t=="0"&&1/e==-Ss?"-0":t}function In(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var xs="[object AsyncFunction]",Ns="[object Function]",Ps="[object GeneratorFunction]",Os="[object Proxy]";function Cs(e){if(!In(e))return!1;var t=Fn(e);return t==Ns||t==Ps||t==xs||t==Os}var ks=Ot["__core-js_shared__"];const Tt=ks;var Mn=function(){var e=/[^.]+$/.exec(Tt&&Tt.keys&&Tt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Ts(e){return!!Mn&&Mn in e}var As=Function.prototype,Ls=As.toString;function $s(e){if(e!=null){try{return Ls.call(e)}catch{}try{return e+""}catch{}}return""}var Rs=/[\\^$.*+?()[\]{}|]/g,Ds=/^\[object .+?Constructor\]$/,Fs=Function.prototype,Vs=Object.prototype,js=Fs.toString,Bs=Vs.hasOwnProperty,Is=RegExp("^"+js.call(Bs).replace(Rs,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ms(e){if(!In(e)||Ts(e))return!1;var t=Cs(e)?Is:Ds;return t.test($s(e))}function Us(e,t){return e==null?void 0:e[t]}function Un(e,t){var n=Us(e,t);return Ms(n)?n:void 0}function Hs(e,t){return e===t||e!==e&&t!==t}var zs=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qs=/^\w*$/;function Gs(e,t){if(kt(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Ct(e)?!0:qs.test(e)||!zs.test(e)||t!=null&&e in Object(t)}var Ws=Un(Object,"create");const Ce=Ws;function Js(){this.__data__=Ce?Ce(null):{},this.size=0}function Ks(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Ys="__lodash_hash_undefined__",Xs=Object.prototype,Zs=Xs.hasOwnProperty;function Qs(e){var t=this.__data__;if(Ce){var n=t[e];return n===Ys?void 0:n}return Zs.call(t,e)?t[e]:void 0}var ea=Object.prototype,ta=ea.hasOwnProperty;function na(e){var t=this.__data__;return Ce?t[e]!==void 0:ta.call(t,e)}var oa="__lodash_hash_undefined__";function ra(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ce&&t===void 0?oa:t,this}function te(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}te.prototype.clear=Js,te.prototype.delete=Ks,te.prototype.get=Qs,te.prototype.has=na,te.prototype.set=ra;function sa(){this.__data__=[],this.size=0}function Qe(e,t){for(var n=e.length;n--;)if(Hs(e[n][0],t))return n;return-1}var aa=Array.prototype,ia=aa.splice;function la(e){var t=this.__data__,n=Qe(t,e);if(n<0)return!1;var o=t.length-1;return n==o?t.pop():ia.call(t,n,1),--this.size,!0}function ca(e){var t=this.__data__,n=Qe(t,e);return n<0?void 0:t[n][1]}function ua(e){return Qe(this.__data__,e)>-1}function da(e,t){var n=this.__data__,o=Qe(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}function he(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}he.prototype.clear=sa,he.prototype.delete=la,he.prototype.get=ca,he.prototype.has=ua,he.prototype.set=da;var fa=Un(Ot,"Map");const pa=fa;function ma(){this.size=0,this.__data__={hash:new te,map:new(pa||he),string:new te}}function ha(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function et(e,t){var n=e.__data__;return ha(t)?n[typeof t=="string"?"string":"hash"]:n.map}function ga(e){var t=et(this,e).delete(e);return this.size-=t?1:0,t}function ya(e){return et(this,e).get(e)}function ba(e){return et(this,e).has(e)}function wa(e,t){var n=et(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}function ne(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}ne.prototype.clear=ma,ne.prototype.delete=ga,ne.prototype.get=ya,ne.prototype.has=ba,ne.prototype.set=wa;var Ea="Expected a function";function At(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Ea);var n=function(){var o=arguments,s=t?t.apply(this,o):o[0],a=n.cache;if(a.has(s))return a.get(s);var i=e.apply(this,o);return n.cache=a.set(s,i)||a,i};return n.cache=new(At.Cache||ne),n}At.Cache=ne;var _a=500;function va(e){var t=At(e,function(o){return n.size===_a&&n.clear(),o}),n=t.cache;return t}var Sa=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xa=/\\(\\)?/g,Na=va(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Sa,function(n,o,s,a){t.push(s?a.replace(xa,"$1"):o||n)}),t});const Pa=Na;function Oa(e){return e==null?"":Bn(e)}function Ca(e,t){return kt(e)?e:Gs(e,t)?[e]:Pa(Oa(e))}var ka=1/0;function Ta(e){if(typeof e=="string"||Ct(e))return e;var t=e+"";return t=="0"&&1/e==-ka?"-0":t}function Aa(e,t){t=Ca(t,e);for(var n=0,o=t.length;e!=null&&n<o;)e=e[Ta(t[n++])];return n&&n==o?e:void 0}function La(e,t,n){var o=e==null?void 0:Aa(e,t);return o===void 0?n:o}const $a=e=>typeof e=="number",Hn=e=>Object.keys(e);class Ra extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Da(e,t){if(process.env.NODE_ENV!=="production"){const n=Pt(e)?new Ra(`[${e}] ${t}`):e;console.warn(n)}}const zn=(e="")=>e.split(" ").filter(t=>!!t.trim()),qn=(e,t)=>{!e||!t.trim()||e.classList.add(...zn(t))},tt=(e,t)=>{!e||!t.trim()||e.classList.remove(...zn(t))},ke=(e,t)=>{var n;if(!Nt||!e||!t)return"";let o=os(t);o==="float"&&(o="cssFloat");try{const s=e.style[o];if(s)return s;const a=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return a?a[o]:""}catch{return e.style[o]}},Gn="__epPropKey",Fa=e=>Ze(e)&&!!e[Gn],Va=(e,t)=>{if(!Ze(e)||Fa(e))return e;const{values:n,required:o,default:s,type:a,validator:i}=e,f={type:a,required:!!o,validator:n||i?c=>{let d=!1,u=[];if(n&&(u=Array.from(n),Ln(e,"default")&&u.push(s),d||(d=u.includes(c))),i&&(d||(d=i(c))),!d&&u.length>0){const p=[...new Set(u)].map(y=>JSON.stringify(y)).join(", ");r.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${p}], got value ${JSON.stringify(c)}.`)}return d}:void 0,[Gn]:!0};return Ln(e,"default")&&(f.default=s),f},ja=["","default","small","large"];var Ba={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const Ia=e=>(t,n)=>Ma(t,n,r.unref(e)),Ma=(e,t,n)=>La(n,e,e).replace(/\{(\w+)\}/g,(o,s)=>{var a;return`${(a=t==null?void 0:t[s])!=null?a:`{${s}}`}`}),Ua=e=>{const t=r.computed(()=>r.unref(e).name),n=r.isRef(e)?e:r.ref(e);return{lang:t,locale:n,t:Ia(e)}},Wn=Symbol("localeContextKey"),Ha=e=>{const t=e||r.inject(Wn,r.ref());return Ua(r.computed(()=>t.value||Ba))},Lt="el",za="is-",oe=(e,t,n,o,s)=>{let a=`${e}-${t}`;return n&&(a+=`-${n}`),o&&(a+=`__${o}`),s&&(a+=`--${s}`),a},Jn=Symbol("namespaceContextKey"),qa=e=>{const t=e||r.inject(Jn,r.ref(Lt));return r.computed(()=>r.unref(t)||Lt)},Ga=(e,t)=>{const n=qa(t);return{namespace:n,b:(h="")=>oe(n.value,e,h,"",""),e:h=>h?oe(n.value,e,"",h,""):"",m:h=>h?oe(n.value,e,"","",h):"",be:(h,b)=>h&&b?oe(n.value,e,h,b,""):"",em:(h,b)=>h&&b?oe(n.value,e,"",h,b):"",bm:(h,b)=>h&&b?oe(n.value,e,h,"",b):"",bem:(h,b,S)=>h&&b&&S?oe(n.value,e,h,b,S):"",is:(h,...b)=>{const S=b.length>=1?b[0]:!0;return h&&S?`${za}${h}`:""},cssVar:h=>{const b={};for(const S in h)h[S]&&(b[`--${n.value}-${S}`]=h[S]);return b},cssVarName:h=>`--${n.value}-${h}`,cssVarBlock:h=>{const b={};for(const S in h)h[S]&&(b[`--${n.value}-${e}-${S}`]=h[S]);return b},cssVarBlockName:h=>`--${n.value}-${e}-${h}`}},Kn=r.ref(0),Yn=2e3,Xn=Symbol("zIndexContextKey"),Wa=e=>{const t=e||r.inject(Xn,void 0),n=r.computed(()=>{const a=r.unref(t);return $a(a)?a:Yn}),o=r.computed(()=>n.value+Kn.value);return{initialZIndex:n,currentZIndex:o,nextZIndex:()=>(Kn.value++,o.value)}};Va({type:String,values:ja,required:!1});const Ja=Symbol("size"),Zn=Symbol(),nt=r.ref();function Qn(e,t=void 0){const n=r.getCurrentInstance()?r.inject(Zn,nt):nt;return e?r.computed(()=>{var o,s;return(s=(o=n.value)==null?void 0:o[e])!=null?s:t}):n}function Ka(e,t){const n=Qn(),o=Ga(e,r.computed(()=>{var l;return((l=n.value)==null?void 0:l.namespace)||Lt})),s=Ha(r.computed(()=>{var l;return(l=n.value)==null?void 0:l.locale})),a=Wa(r.computed(()=>{var l;return((l=n.value)==null?void 0:l.zIndex)||Yn})),i=r.computed(()=>{var l;return r.unref(t)||((l=n.value)==null?void 0:l.size)||""});return Ya(r.computed(()=>r.unref(n)||{})),{ns:o,locale:s,zIndex:a,size:i}}const Ya=(e,t,n=!1)=>{var o;const s=!!r.getCurrentInstance(),a=s?Qn():void 0,i=(o=t==null?void 0:t.provide)!=null?o:s?r.provide:void 0;if(!i){Da("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const l=r.computed(()=>{const f=r.unref(e);return a!=null&&a.value?Xa(a.value,f):f});return i(Zn,l),i(Wn,r.computed(()=>l.value.locale)),i(Jn,r.computed(()=>l.value.namespace)),i(Xn,r.computed(()=>l.value.zIndex)),i(Ja,{size:r.computed(()=>l.value.size||"")}),(n||!nt.value)&&(nt.value=l.value),l},Xa=(e,t)=>{var n;const o=[...new Set([...Hn(e),...Hn(t)])],s={};for(const a of o)s[a]=(n=t[a])!=null?n:e[a];return s};function Za(e){let t;const n=r.ref(!1),o=r.reactive({...e,originalPosition:"",originalOverflow:"",visible:!1});function s(p){o.text=p}function a(){const p=o.parent,y=u.ns;if(!p.vLoadingAddClassList){let g=p.getAttribute("loading-number");g=Number.parseInt(g)-1,g?p.setAttribute("loading-number",g.toString()):(tt(p,y.bm("parent","relative")),p.removeAttribute("loading-number")),tt(p,y.bm("parent","hidden"))}i(),d.unmount()}function i(){var p,y;(y=(p=u.$el)==null?void 0:p.parentNode)==null||y.removeChild(u.$el)}function l(){var p;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=window.setTimeout(f,400),o.visible=!1,(p=e.closed)==null||p.call(e))}function f(){if(!n.value)return;const p=o.parent;n.value=!1,p.vLoadingAddClassList=void 0,a()}const c=r.defineComponent({name:"ElLoading",setup(p,{expose:y}){const{ns:g,zIndex:h}=Ka("loading");return y({ns:g,zIndex:h}),()=>{const b=o.spinner||o.svg,S=r.h("svg",{class:"circular",viewBox:o.svgViewBox?o.svgViewBox:"0 0 50 50",...b?{innerHTML:b}:{}},[r.h("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),O=o.text?r.h("p",{class:g.b("text")},[o.text]):void 0;return r.h(r.Transition,{name:g.b("fade"),onAfterLeave:f},{default:r.withCtx(()=>[r.withDirectives(r.createVNode("div",{style:{backgroundColor:o.background||""},class:[g.b("mask"),o.customClass,o.fullscreen?"is-fullscreen":""]},[r.h("div",{class:g.b("spinner")},[S,O])]),[[r.vShow,o.visible]])])})}}}),d=r.createApp(c),u=d.mount(document.createElement("div"));return{...r.toRefs(o),setText:s,removeElLoadingChild:i,close:l,handleAfterLeave:f,vm:u,get $el(){return u.$el}}}let ot;const $t=function(e={}){if(!Nt)return;const t=Qa(e);if(t.fullscreen&&ot)return ot;const n=Za({...t,closed:()=>{var s;(s=t.closed)==null||s.call(t),t.fullscreen&&(ot=void 0)}});ei(t,t.parent,n),eo(t,t.parent,n),t.parent.vLoadingAddClassList=()=>eo(t,t.parent,n);let o=t.parent.getAttribute("loading-number");return o?o=`${Number.parseInt(o)+1}`:o="1",t.parent.setAttribute("loading-number",o),t.parent.appendChild(n.$el),r.nextTick(()=>n.visible.value=t.visible),t.fullscreen&&(ot=n),n},Qa=e=>{var t,n,o,s;let a;return Pt(e.target)?a=(t=document.querySelector(e.target))!=null?t:document.body:a=e.target||document.body,{parent:a===document.body||e.body?document.body:a,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:a===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(o=e.lock)!=null?o:!1,customClass:e.customClass||"",visible:(s=e.visible)!=null?s:!0,target:a}},ei=async(e,t,n)=>{const{nextZIndex:o}=n.vm.zIndex||n.vm._.exposed.zIndex,s={};if(e.fullscreen)n.originalPosition.value=ke(document.body,"position"),n.originalOverflow.value=ke(document.body,"overflow"),s.zIndex=o();else if(e.parent===document.body){n.originalPosition.value=ke(document.body,"position"),await r.nextTick();for(const a of["top","left"]){const i=a==="top"?"scrollTop":"scrollLeft";s[a]=`${e.target.getBoundingClientRect()[a]+document.body[i]+document.documentElement[i]-Number.parseInt(ke(document.body,`margin-${a}`),10)}px`}for(const a of["height","width"])s[a]=`${e.target.getBoundingClientRect()[a]}px`}else n.originalPosition.value=ke(t,"position");for(const[a,i]of Object.entries(s))n.$el.style[a]=i},eo=(e,t,n)=>{const o=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?tt(t,o.bm("parent","relative")):qn(t,o.bm("parent","relative")),e.fullscreen&&e.lock?qn(t,o.bm("parent","hidden")):tt(t,o.bm("parent","hidden"))},Rt=Symbol("ElLoading"),to=(e,t)=>{var n,o,s,a;const i=t.instance,l=p=>Ze(t.value)?t.value[p]:void 0,f=p=>{const y=Pt(p)&&(i==null?void 0:i[p])||p;return y&&r.ref(y)},c=p=>f(l(p)||e.getAttribute(`element-loading-${ss(p)}`)),d=(n=l("fullscreen"))!=null?n:t.modifiers.fullscreen,u={text:c("text"),svg:c("svg"),svgViewBox:c("svgViewBox"),spinner:c("spinner"),background:c("background"),customClass:c("customClass"),fullscreen:d,target:(o=l("target"))!=null?o:d?void 0:e,body:(s=l("body"))!=null?s:t.modifiers.body,lock:(a=l("lock"))!=null?a:t.modifiers.lock};e[Rt]={options:u,instance:$t(u)}},ti=(e,t)=>{for(const n of Object.keys(t))r.isRef(t[n])&&(t[n].value=e[n])},no={mounted(e,t){t.value&&to(e,t)},updated(e,t){const n=e[Rt];t.oldValue!==t.value&&(t.value&&!t.oldValue?to(e,t):t.value&&t.oldValue?Ze(t.value)&&ti(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[Rt])==null||t.instance.close()}},Te={install(e){e.directive("loading",no),e.config.globalProperties.$loading=$t},directive:no,service:$t};function rt(){let e="";return typeof app_config=="object"&&app_config&&Object.keys(app_config).length>0&&(e=app_config.base_url||""),e}function ni(){const e=oi(),t=rt();return e.product?e.product:t?t.slice(1):location.href.indexOf("convert")!=-1?"convert":location.href.indexOf("translate")!=-1?"translate":"recorder"}function oo(e,t){window.__bl&&__bl.error(new Error(JSON.stringify(e)),{filename:t,lineno:384,colno:18})}function oi(){var e={};if(location.search.length>1)for(var t,n=0,o=location.search.substr(1).split("&");n<o.length;n++)t=o[n].split("="),e[decodeURIComponent(t[0])]=t.length>1?decodeURIComponent(t[1]):"";return e}function ge({url:e,data:t=null,method:n="GET",headers:o=null,cacheKey:s,cacheTime:a}){try{var i=new AbortController,l=i.signal}catch{}const f=ni();let c={method:n,headers:{"X-Access-Channel":f}};if(o&&(c.headers=Object.assign(c.headers,o),o["Content-Type"]&&o["Content-Type"].indexOf("application/x-www-form-urlencoded")!=-1&&t)){let u="";Object.keys(t).forEach(p=>{(t[p]||t[p]==0)&&(u+=`${p}=${t[p]}&`)}),t=u.slice(0,u.length-1)}t&&(typeof t=="string"?c.body=t:c.body=JSON.stringify(t)),l&&(c.signal=l);const d=()=>new Promise((u,p)=>{setTimeout(()=>{u(new Response("timeout",{status:504,statusText:"timeout"})),i&&i.abort()},6e4)});return Promise.race([d(),fetch(e,c).then(u=>u.json())]).then(u=>(console.log(u),u.success==!0||u.ok===0||u.code==0?(s&&(a?Ye.put(s,u.data,a):Ye.put(s,u.data)),(u.message||u.message==0)&&(window.g_message=u.message),Promise.resolve(u.data)):u&&u.image||u&&u.GOOGLE_ACCESS_TOKEN?(s&&(a?Ye.put(s,u,a):Ye.put(s,u)),Promise.resolve(u)):u.statusText=="timeout"?Promise.reject("The system is busy, please try again later"):Promise.reject(u.message||u.msg&&u||"failed, please check your network and try again"))).catch(u=>Promise.reject(u))}let ye=rt();function ro(){const e={"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"};return ge({url:ye+"/api/user/status",method:"POST",headers:e})}const ri=e=>ge({url:ye+"/api/user/active-passport",data:{passport:e},method:"POST",headers:{"Content-Type":"application/json"}});function si(e){return ge({url:ye+"/api/user/facebooklogin",data:{token:e},method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}})}function so(e){return ge({url:ye+"/api/user/google",data:{token:e},method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}})}function ai(e,t){return ge({url:ye+"/api/user/emaillogin?email="+encodeURIComponent(e)+"&password="+encodeURIComponent(t)})}function ii(e,t,n){return ge({url:ye+"/api/user/emailsignup?email="+encodeURIComponent(e)+"&username="+encodeURIComponent(t)+"&password="+encodeURIComponent(n)})}function B(e,t,...n){if(e in t){let s=t[e];return typeof s=="function"?s(...n):s}let o=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(s=>`"${s}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,B),o}var re=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(re||{}),li=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(li||{});function D({visible:e=!0,features:t=0,ourProps:n,theirProps:o,...s}){var a;let i=io(o,n),l=Object.assign(s,{props:i});if(e||t&2&&i.static)return Dt(l);if(t&1){let f=(a=i.unmount)==null||a?0:1;return B(f,{[0](){return null},[1](){return Dt({...s,props:{...i,hidden:!0,style:{display:"none"}}})}})}return Dt(l)}function Dt({props:e,attrs:t,slots:n,slot:o,name:s}){var a,i;let{as:l,...f}=ci(e,["unmount","static"]),c=(a=n.default)==null?void 0:a.call(n,o),d={};if(o){let u=!1,p=[];for(let[y,g]of Object.entries(o))typeof g=="boolean"&&(u=!0),g===!0&&p.push(y);u&&(d["data-headlessui-state"]=p.join(" "))}if(l==="template"){if(c=ao(c??[]),Object.keys(f).length>0||Object.keys(t).length>0){let[u,...p]=c??[];if(!ui(u)||p.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${s} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(f).concat(Object.keys(t)).map(h=>h.trim()).filter((h,b,S)=>S.indexOf(h)===b).sort((h,b)=>h.localeCompare(b)).map(h=>` - ${h}`).join(`
4
4
  `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(h=>` - ${h}`).join(`
5
5
  `)].join(`
6
- `));let y=io((i=u.props)!=null?i:{},f),g=r.cloneVNode(u,y);for(let h in y)h.startsWith("on")&&(g.props||(g.props={}),g.props[h]=y[h]);return g}return Array.isArray(c)&&c.length===1?c[0]:c}return r.h(l,Object.assign({},f,d),{default:()=>c})}function ao(e){return e.flatMap(t=>t.type===r.Fragment?ao(t.children):[t])}function io(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let o of e)for(let s in o)s.startsWith("on")&&typeof o[s]=="function"?(n[s]!=null||(n[s]=[]),n[s].push(o[s])):t[s]=o[s];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(o=>[o,void 0])));for(let o in n)Object.assign(t,{[o](s,...a){let i=n[o];for(let l of i){if(s instanceof Event&&s.defaultPrevented)return;l(s,...a)}}});return t}function ci(e,t=[]){let n=Object.assign({},e);for(let o of t)o in n&&delete n[o];return n}function ui(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}let di=0;function fi(){return++di}function U(){return fi()}var Q=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Q||{});function E(e){var t;return e==null||e.value==null?null:(t=e.value.$el)!=null?t:e.value}let lo=Symbol("Context");var z=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(z||{});function Ft(){return r.inject(lo,null)}function pi(e){r.provide(lo,e)}function co(e,t){if(e)return e;let n=t??"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function mi(e,t){let n=r.ref(co(e.value.type,e.value.as));return r.onMounted(()=>{n.value=co(e.value.type,e.value.as)}),r.watchEffect(()=>{var o;n.value||E(t)&&E(t)instanceof HTMLButtonElement&&!((o=E(t))!=null&&o.hasAttribute("type"))&&(n.value="button")}),n}var hi=Object.defineProperty,gi=(e,t,n)=>t in e?hi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,uo=(e,t,n)=>(gi(e,typeof t!="symbol"?t+"":t,n),n);class yi{constructor(){uo(this,"current",this.detect()),uo(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}}let st=new yi;function K(e){if(st.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=E(e);if(t)return t.ownerDocument}return document}let Vt=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var F=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(F||{}),Ae=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Ae||{}),bi=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(bi||{});function at(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Vt)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var jt=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(jt||{});function fo(e,t=0){var n;return e===((n=K(e))==null?void 0:n.body)?!1:B(t,{[0](){return e.matches(Vt)},[1](){let o=e;for(;o!==null;){if(o.matches(Vt))return!0;o=o.parentElement}return!1}})}var wi=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(wi||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function se(e){e==null||e.focus({preventScroll:!0})}let _i=["textarea","input"].join(",");function Ei(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,_i))!=null?n:!1}function vi(e,t=n=>n){return e.slice().sort((n,o)=>{let s=t(n),a=t(o);if(s===null||a===null)return 0;let i=s.compareDocumentPosition(a);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function q(e,t,{sorted:n=!0,relativeTo:o=null,skipElements:s=[]}={}){var a;let i=(a=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e==null?void 0:e.ownerDocument)!=null?a:document,l=Array.isArray(e)?n?vi(e):e:at(e);s.length>0&&l.length>1&&(l=l.filter(g=>!s.includes(g))),o=o??i.activeElement;let f=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,l.indexOf(o))-1;if(t&4)return Math.max(0,l.indexOf(o))+1;if(t&8)return l.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=t&32?{preventScroll:!0}:{},u=0,p=l.length,y;do{if(u>=p||u+p<=0)return 0;let g=c+u;if(t&16)g=(g+p)%p;else{if(g<0)return 3;if(g>=p)return 1}y=l[g],y==null||y.focus(d),u+=f}while(y!==i.activeElement);return t&6&&Ei(y)&&y.select(),2}function po(e,t,n){st.isServer||r.watchEffect(o=>{document.addEventListener(e,t,n),o(()=>document.removeEventListener(e,t,n))})}function mo(e,t,n){st.isServer||r.watchEffect(o=>{window.addEventListener(e,t,n),o(()=>window.removeEventListener(e,t,n))})}function ho(e,t,n=r.computed(()=>!0)){function o(a,i){if(!n.value||a.defaultPrevented)return;let l=i(a);if(l===null||!l.getRootNode().contains(l))return;let f=function c(d){return typeof d=="function"?c(d()):Array.isArray(d)||d instanceof Set?d:[d]}(e);for(let c of f){if(c===null)continue;let d=c instanceof HTMLElement?c:E(c);if(d!=null&&d.contains(l)||a.composed&&a.composedPath().includes(d))return}return!fo(l,jt.Loose)&&l.tabIndex!==-1&&a.preventDefault(),t(a,l)}let s=r.ref(null);po("mousedown",a=>{var i,l;n.value&&(s.value=((l=(i=a.composedPath)==null?void 0:i.call(a))==null?void 0:l[0])||a.target)},!0),po("click",a=>{s.value&&(o(a,()=>s.value),s.value=null)},!0),mo("blur",a=>o(a,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var ae=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ae||{});let be=r.defineComponent({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:n}){return()=>{let{features:o,...s}=e,a={"aria-hidden":(o&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(o&4)===4&&(o&2)!==2&&{display:"none"}}};return D({ourProps:a,theirProps:s,slot:{},attrs:n,slots:t,name:"Hidden"})}}});function Si(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function go(){let e=[],t={addEventListener(n,o,s,a){return n.addEventListener(o,s,a),t.add(()=>n.removeEventListener(o,s,a))},requestAnimationFrame(...n){let o=requestAnimationFrame(...n);t.add(()=>cancelAnimationFrame(o))},nextFrame(...n){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...n)})},setTimeout(...n){let o=setTimeout(...n);t.add(()=>clearTimeout(o))},style(n,o,s){let a=n.style.getPropertyValue(o);return Object.assign(n.style,{[o]:s}),this.add(()=>{Object.assign(n.style,{[o]:a})})},group(n){let o=go();return n(o),this.add(()=>o.dispose())},add(n){return e.push(n),()=>{let o=e.indexOf(n);if(o>=0)for(let s of e.splice(o,1))s()}},dispose(){for(let n of e.splice(0))n()}};return t}var I=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(I||{});function Bt(){let e=r.ref(0);return mo("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function It(e,t,n,o){st.isServer||r.watchEffect(s=>{e=e??window,e.addEventListener(t,n,o),s(()=>e.removeEventListener(t,n,o))})}function yo(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function xi(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}function bo(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.value){let o=E(n);o instanceof HTMLElement&&t.add(o)}return t}var wo=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(wo||{});let Le=Object.assign(r.defineComponent({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:r.ref(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:o}){let s=r.ref(null);o({el:s,$el:s});let a=r.computed(()=>K(s)),i=r.ref(!1);r.onMounted(()=>i.value=!0),r.onUnmounted(()=>i.value=!1),Pi({ownerDocument:a},r.computed(()=>i.value&&!!(e.features&16)));let l=Oi({ownerDocument:a,container:s,initialFocus:r.computed(()=>e.initialFocus)},r.computed(()=>i.value&&!!(e.features&2)));Ci({ownerDocument:a,container:s,containers:e.containers,previousActiveElement:l},r.computed(()=>i.value&&!!(e.features&8)));let f=Bt();function c(y){let g=E(s);g&&(h=>h())(()=>{B(f.value,{[I.Forwards]:()=>{q(g,F.First,{skipElements:[y.relatedTarget]})},[I.Backwards]:()=>{q(g,F.Last,{skipElements:[y.relatedTarget]})}})})}let d=r.ref(!1);function u(y){y.key==="Tab"&&(d.value=!0,requestAnimationFrame(()=>{d.value=!1}))}function p(y){if(!i.value)return;let g=bo(e.containers);E(s)instanceof HTMLElement&&g.add(E(s));let h=y.relatedTarget;h instanceof HTMLElement&&h.dataset.headlessuiFocusGuard!=="true"&&(_o(g,h)||(d.value?q(E(s),B(f.value,{[I.Forwards]:()=>F.Next,[I.Backwards]:()=>F.Previous})|F.WrapAround,{relativeTo:y.target}):y.target instanceof HTMLElement&&se(y.target)))}return()=>{let y={},g={ref:s,onKeydown:u,onFocusout:p},{features:h,initialFocus:b,containers:S,...O}=e;return r.h(r.Fragment,[!!(h&4)&&r.h(be,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:ae.Focusable}),D({ourProps:g,theirProps:{...t,...O},slot:y,attrs:t,slots:n,name:"FocusTrap"}),!!(h&4)&&r.h(be,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:ae.Focusable})])}}}),{features:wo}),ie=[];xi(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&ie[0]!==t.target&&(ie.unshift(t.target),ie=ie.filter(n=>n!=null&&n.isConnected),ie.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function Ni(e){let t=r.ref(ie.slice());return r.watch([e],([n],[o])=>{o===!0&&n===!1?yo(()=>{t.value.splice(0)}):o===!1&&n===!0&&(t.value=ie.slice())},{flush:"post"}),()=>{var n;return(n=t.value.find(o=>o!=null&&o.isConnected))!=null?n:null}}function Pi({ownerDocument:e},t){let n=Ni(t);r.onMounted(()=>{r.watchEffect(()=>{var o,s;t.value||((o=e.value)==null?void 0:o.activeElement)===((s=e.value)==null?void 0:s.body)&&se(n())},{flush:"post"})}),r.onUnmounted(()=>{t.value&&se(n())})}function Oi({ownerDocument:e,container:t,initialFocus:n},o){let s=r.ref(null),a=r.ref(!1);return r.onMounted(()=>a.value=!0),r.onUnmounted(()=>a.value=!1),r.onMounted(()=>{r.watch([t,n,o],(i,l)=>{if(i.every((c,d)=>(l==null?void 0:l[d])===c)||!o.value)return;let f=E(t);f&&yo(()=>{var c,d;if(!a.value)return;let u=E(n),p=(c=e.value)==null?void 0:c.activeElement;if(u){if(u===p){s.value=p;return}}else if(f.contains(p)){s.value=p;return}u?se(u):q(f,F.First|F.NoScroll)===Ae.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),s.value=(d=e.value)==null?void 0:d.activeElement})},{immediate:!0,flush:"post"})}),s}function Ci({ownerDocument:e,container:t,containers:n,previousActiveElement:o},s){var a;It((a=e.value)==null?void 0:a.defaultView,"focus",i=>{if(!s.value)return;let l=bo(n);E(t)instanceof HTMLElement&&l.add(E(t));let f=o.value;if(!f)return;let c=i.target;c&&c instanceof HTMLElement?_o(l,c)?(o.value=c,se(c)):(i.preventDefault(),i.stopPropagation(),se(f)):se(o.value)},!0)}function _o(e,t){for(let n of e)if(n.contains(t))return!0;return!1}let Mt=new Map,$e=new Map;function Eo(e,t=r.ref(!0)){r.watchEffect(n=>{var o;if(!t.value)return;let s=E(e);if(!s)return;n(function(){var i;if(!s)return;let l=(i=$e.get(s))!=null?i:1;if(l===1?$e.delete(s):$e.set(s,l-1),l!==1)return;let f=Mt.get(s);f&&(f["aria-hidden"]===null?s.removeAttribute("aria-hidden"):s.setAttribute("aria-hidden",f["aria-hidden"]),s.inert=f.inert,Mt.delete(s))});let a=(o=$e.get(s))!=null?o:0;$e.set(s,a+1),a===0&&(Mt.set(s,{"aria-hidden":s.getAttribute("aria-hidden"),inert:s.inert}),s.setAttribute("aria-hidden","true"),s.inert=!0)})}let vo=Symbol("ForcePortalRootContext");function ki(){return r.inject(vo,!1)}let Ut=r.defineComponent({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){return r.provide(vo,e.force),()=>{let{force:o,...s}=e;return D({theirProps:s,ourProps:{},slot:{},slots:t,attrs:n,name:"ForcePortalRoot"})}}});function Ti(e){let t=K(e);if(!t){if(e===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`)}let n=t.getElementById("headlessui-portal-root");if(n)return n;let o=t.createElement("div");return o.setAttribute("id","headlessui-portal-root"),t.body.appendChild(o)}let So=r.defineComponent({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){let o=r.ref(null),s=r.computed(()=>K(o)),a=ki(),i=r.inject(No,null),l=r.ref(a===!0||i==null?Ti(o.value):i.resolveTarget());r.watchEffect(()=>{a||i!=null&&(l.value=i.resolveTarget())});let f=r.inject(Ht,null);return r.onMounted(()=>{let c=E(o);c&&f&&r.onUnmounted(f.register(c))}),r.onUnmounted(()=>{var c,d;let u=(c=s.value)==null?void 0:c.getElementById("headlessui-portal-root");u&&l.value===u&&l.value.children.length<=0&&((d=l.value.parentElement)==null||d.removeChild(l.value))}),()=>{if(l.value===null)return null;let c={ref:o,"data-headlessui-portal":""};return r.h(r.Teleport,{to:l.value},D({ourProps:c,theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}}}),Ht=Symbol("PortalParentContext");function xo(){let e=r.inject(Ht,null),t=r.ref([]);function n(a){return t.value.push(a),e&&e.register(a),()=>o(a)}function o(a){let i=t.value.indexOf(a);i!==-1&&t.value.splice(i,1),e&&e.unregister(a)}let s={register:n,unregister:o,portals:t};return[t,r.defineComponent({name:"PortalWrapper",setup(a,{slots:i}){return r.provide(Ht,s),()=>{var l;return(l=i.default)==null?void 0:l.call(i)}}})]}let No=Symbol("PortalGroupContext"),Ai=r.defineComponent({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:n}){let o=r.reactive({resolveTarget(){return e.target}});return r.provide(No,o),()=>{let{target:s,...a}=e;return D({theirProps:a,ourProps:{},slot:{},attrs:t,slots:n,name:"PortalGroup"})}}}),Po=Symbol("StackContext");var zt=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(zt||{});function Li(){return r.inject(Po,()=>{})}function $i({type:e,enabled:t,element:n,onUpdate:o}){let s=Li();function a(...i){o==null||o(...i),s(...i)}r.onMounted(()=>{r.watch(t,(i,l)=>{i?a(0,e,n):l===!0&&a(1,e,n)},{immediate:!0,flush:"sync"})}),r.onUnmounted(()=>{t.value&&a(1,e,n)}),r.provide(Po,a)}let Oo=Symbol("DescriptionContext");function Ri(){let e=r.inject(Oo,null);if(e===null)throw new Error("Missing parent");return e}function Di({slot:e=r.ref({}),name:t="Description",props:n={}}={}){let o=r.ref([]);function s(a){return o.value.push(a),()=>{let i=o.value.indexOf(a);i!==-1&&o.value.splice(i,1)}}return r.provide(Oo,{register:s,slot:e,name:t,props:n}),r.computed(()=>o.value.length>0?o.value.join(" "):void 0)}r.defineComponent({name:"Description",props:{as:{type:[Object,String],default:"p"},id:{type:String,default:()=>`headlessui-description-${U()}`}},setup(e,{attrs:t,slots:n}){let o=Ri();return r.onMounted(()=>r.onUnmounted(o.register(e.id))),()=>{let{name:s="Description",slot:a=r.ref({}),props:i={}}=o,{id:l,...f}=e,c={...Object.entries(i).reduce((d,[u,p])=>Object.assign(d,{[u]:r.unref(p)}),{}),id:l};return D({ourProps:c,theirProps:f,slot:a.value,attrs:t,slots:n,name:s})}}});function Fi(e){let t=r.shallowRef(e.getSnapshot());return r.onUnmounted(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function Vi(e,t){let n=e(),o=new Set;return{getSnapshot(){return n},subscribe(s){return o.add(s),()=>o.delete(s)},dispatch(s,...a){let i=t[s].call(n,...a);i&&(n=i,o.forEach(l=>l()))}}}function ji(){let e;return{before({doc:t}){var n;let o=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-o.clientWidth},after({doc:t,d:n}){let o=t.documentElement,s=o.clientWidth-o.offsetWidth,a=e-s;n.style(o,"paddingRight",`${a}px`)}}}function Bi(){if(!Si())return{};let e;return{before(){e=window.pageYOffset},after({doc:t,d:n,meta:o}){function s(i){return o.containers.flatMap(l=>l()).some(l=>l.contains(i))}n.style(t.body,"marginTop",`-${e}px`),window.scrollTo(0,0);let a=null;n.addEventListener(t,"click",i=>{if(i.target instanceof HTMLElement)try{let l=i.target.closest("a");if(!l)return;let{hash:f}=new URL(l.href),c=t.querySelector(f);c&&!s(c)&&(a=c)}catch{}},!0),n.addEventListener(t,"touchmove",i=>{i.target instanceof HTMLElement&&!s(i.target)&&i.preventDefault()},{passive:!1}),n.add(()=>{window.scrollTo(0,window.pageYOffset+e),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})}}}function Ii(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Mi(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let le=Vi(()=>new Map,{PUSH(e,t){var n;let o=(n=this.get(e))!=null?n:{doc:e,count:0,d:go(),meta:new Set};return o.count++,o.meta.add(t),this.set(e,o),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let o={doc:e,d:t,meta:Mi(n)},s=[Bi(),ji(),Ii()];s.forEach(({before:a})=>a==null?void 0:a(o)),s.forEach(({after:a})=>a==null?void 0:a(o))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});le.subscribe(()=>{let e=le.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let o=t.get(n.doc)==="hidden",s=n.count!==0;(s&&!o||!s&&o)&&le.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&le.dispatch("TEARDOWN",n)}});function Ui(e,t,n){let o=Fi(le),s=r.computed(()=>{let a=e.value?o.value.get(e.value):void 0;return a?a.count>0:!1});return r.watch([e,t],([a,i],[l],f)=>{if(!a||!i)return;le.dispatch("PUSH",a,n);let c=!1;f(()=>{c||(le.dispatch("POP",l??a,n),c=!0)})},{immediate:!0}),s}function Co({defaultContainers:e=[],portals:t}={}){let n=r.ref(null),o=K(n);function s(){var a;let i=[];for(let l of e)l!==null&&(l instanceof HTMLElement?i.push(l):"value"in l&&l.value instanceof HTMLElement&&i.push(l.value));if(t!=null&&t.value)for(let l of t.value)i.push(l);for(let l of(a=o==null?void 0:o.querySelectorAll("html > *, body > *"))!=null?a:[])l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l.id!=="headlessui-portal-root"&&(l.contains(E(n))||i.some(f=>l.contains(f))||i.push(l));return i}return{resolveContainers:s,contains(a){return s().some(i=>i.contains(a))},mainTreeNodeRef:n,MainTreeNode(){return r.h(be,{features:ae.Hidden,ref:n})}}}var Hi=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Hi||{});let qt=Symbol("DialogContext");function Re(e){let t=r.inject(qt,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Re),n}return t}let it="DC8F892D-2EBD-447C-A4C8-A03058436FF4",zi=r.defineComponent({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:it},initialFocus:{type:Object,default:null},id:{type:String,default:()=>`headlessui-dialog-${U()}`}},emits:{close:e=>!0},setup(e,{emit:t,attrs:n,slots:o,expose:s}){var a;let i=r.ref(!1);r.onMounted(()=>{i.value=!0});let l=r.ref(0),f=Ft(),c=r.computed(()=>e.open===it&&f!==null?(f.value&z.Open)===z.Open:e.open),d=r.ref(null),u=r.computed(()=>K(d));if(s({el:d,$el:d}),!(e.open!==it||f!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof c.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${c.value===it?void 0:e.open}`);let p=r.computed(()=>i.value&&c.value?0:1),y=r.computed(()=>p.value===0),g=r.computed(()=>l.value>1),h=r.inject(qt,null)!==null,[b,S]=xo(),{resolveContainers:O,mainTreeNodeRef:P,MainTreeNode:C}=Co({portals:b,defaultContainers:[r.computed(()=>{var T;return(T=$.panelRef.value)!=null?T:d.value})]}),v=r.computed(()=>g.value?"parent":"leaf"),N=r.computed(()=>f!==null?(f.value&z.Closing)===z.Closing:!1),w=r.computed(()=>h||N.value?!1:y.value),V=r.computed(()=>{var T,A,Y;return(Y=Array.from((A=(T=u.value)==null?void 0:T.querySelectorAll("body > *"))!=null?A:[]).find(X=>X.id==="headlessui-portal-root"?!1:X.contains(E(P))&&X instanceof HTMLElement))!=null?Y:null});Eo(V,w);let j=r.computed(()=>g.value?!0:y.value),x=r.computed(()=>{var T,A,Y;return(Y=Array.from((A=(T=u.value)==null?void 0:T.querySelectorAll("[data-headlessui-portal]"))!=null?A:[]).find(X=>X.contains(E(P))&&X instanceof HTMLElement))!=null?Y:null});Eo(x,j),$i({type:"Dialog",enabled:r.computed(()=>p.value===0),element:d,onUpdate:(T,A)=>{if(A==="Dialog")return B(T,{[zt.Add]:()=>l.value+=1,[zt.Remove]:()=>l.value-=1})}});let _=Di({name:"DialogDescription",slot:r.computed(()=>({open:c.value}))}),L=r.ref(null),$={titleId:L,panelRef:r.ref(null),dialogState:p,setTitleId(T){L.value!==T&&(L.value=T)},close(){t("close",!1)}};r.provide(qt,$);let ue=r.computed(()=>!(!y.value||g.value));ho(O,(T,A)=>{$.close(),r.nextTick(()=>A==null?void 0:A.focus())},ue);let Yt=r.computed(()=>!(g.value||p.value!==0));It((a=u.value)==null?void 0:a.defaultView,"keydown",T=>{Yt.value&&(T.defaultPrevented||T.key===Q.Escape&&(T.preventDefault(),T.stopPropagation(),$.close()))});let Xt=r.computed(()=>!(N.value||p.value!==0||h));return Ui(u,Xt,T=>{var A;return{containers:[...(A=T.containers)!=null?A:[],O]}}),r.watchEffect(T=>{if(p.value!==0)return;let A=E(d);if(!A)return;let Y=new ResizeObserver(X=>{for(let Zt of X){let Ee=Zt.target.getBoundingClientRect();Ee.x===0&&Ee.y===0&&Ee.width===0&&Ee.height===0&&$.close()}});Y.observe(A),T(()=>Y.disconnect())}),()=>{let{id:T,open:A,initialFocus:Y,...X}=e,Zt={...n,ref:d,id:T,role:"dialog","aria-modal":p.value===0?!0:void 0,"aria-labelledby":L.value,"aria-describedby":_.value},Ee={open:p.value===0};return r.h(Ut,{force:!0},()=>[r.h(So,()=>r.h(Ai,{target:d.value},()=>r.h(Ut,{force:!1},()=>r.h(Le,{initialFocus:Y,containers:O,features:y.value?B(v.value,{parent:Le.features.RestoreFocus,leaf:Le.features.All&~Le.features.FocusLock}):Le.features.None},()=>r.h(S,{},()=>D({ourProps:Zt,theirProps:{...X,...n},slot:Ee,attrs:n,slots:o,visible:p.value===0,features:re.RenderStrategy|re.Static,name:"Dialog"})))))),r.h(C)])}}});r.defineComponent({name:"DialogOverlay",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`headlessui-dialog-overlay-${U()}`}},setup(e,{attrs:t,slots:n}){let o=Re("DialogOverlay");function s(a){a.target===a.currentTarget&&(a.preventDefault(),a.stopPropagation(),o.close())}return()=>{let{id:a,...i}=e;return D({ourProps:{id:a,"aria-hidden":!0,onClick:s},theirProps:i,slot:{open:o.dialogState.value===0},attrs:t,slots:n,name:"DialogOverlay"})}}}),r.defineComponent({name:"DialogBackdrop",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`headlessui-dialog-backdrop-${U()}`}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:o}){let s=Re("DialogBackdrop"),a=r.ref(null);return o({el:a,$el:a}),r.onMounted(()=>{if(s.panelRef.value===null)throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.")}),()=>{let{id:i,...l}=e,f={id:i,ref:a,"aria-hidden":!0};return r.h(Ut,{force:!0},()=>r.h(So,()=>D({ourProps:f,theirProps:{...t,...l},slot:{open:s.dialogState.value===0},attrs:t,slots:n,name:"DialogBackdrop"})))}}});let qi=r.defineComponent({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`headlessui-dialog-panel-${U()}`}},setup(e,{attrs:t,slots:n,expose:o}){let s=Re("DialogPanel");o({el:s.panelRef,$el:s.panelRef});function a(i){i.stopPropagation()}return()=>{let{id:i,...l}=e,f={id:i,ref:s.panelRef,onClick:a};return D({ourProps:f,theirProps:l,slot:{open:s.dialogState.value===0},attrs:t,slots:n,name:"DialogPanel"})}}});r.defineComponent({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"},id:{type:String,default:()=>`headlessui-dialog-title-${U()}`}},setup(e,{attrs:t,slots:n}){let o=Re("DialogTitle");return r.onMounted(()=>{o.setTitleId(e.id),r.onUnmounted(()=>o.setTitleId(null))}),()=>{let{id:s,...a}=e;return D({ourProps:{id:s},theirProps:a,slot:{open:o.dialogState.value===0},attrs:t,slots:n,name:"DialogTitle"})}}});var Gi=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Gi||{});let ko=Symbol("PopoverContext");function lt(e){let t=r.inject(ko,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <${$o.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,lt),n}return t}let To=Symbol("PopoverGroupContext");function Ao(){return r.inject(To,null)}let Lo=Symbol("PopoverPanelContext");function Wi(){return r.inject(Lo,null)}let $o=r.defineComponent({name:"Popover",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n,expose:o}){var s;let a=r.ref(null);o({el:a,$el:a});let i=r.ref(1),l=r.ref(null),f=r.ref(null),c=r.ref(null),d=r.ref(null),u=r.computed(()=>K(a)),p=r.computed(()=>{var v,N;if(!E(l)||!E(d))return!1;for(let $ of document.querySelectorAll("body > *"))if(Number($==null?void 0:$.contains(E(l)))^Number($==null?void 0:$.contains(E(d))))return!0;let w=at(),V=w.indexOf(E(l)),j=(V+w.length-1)%w.length,x=(V+1)%w.length,_=w[j],L=w[x];return!((v=E(d))!=null&&v.contains(_))&&!((N=E(d))!=null&&N.contains(L))}),y={popoverState:i,buttonId:r.ref(null),panelId:r.ref(null),panel:d,button:l,isPortalled:p,beforePanelSentinel:f,afterPanelSentinel:c,togglePopover(){i.value=B(i.value,{[0]:1,[1]:0})},closePopover(){i.value!==1&&(i.value=1)},close(v){y.closePopover();let N=(()=>v?v instanceof HTMLElement?v:v.value instanceof HTMLElement?E(v):E(y.button):E(y.button))();N==null||N.focus()}};r.provide(ko,y),pi(r.computed(()=>B(i.value,{[0]:z.Open,[1]:z.Closed})));let g={buttonId:y.buttonId,panelId:y.panelId,close(){y.closePopover()}},h=Ao(),b=h==null?void 0:h.registerPopover,[S,O]=xo(),P=Co({portals:S,defaultContainers:[l,d]});function C(){var v,N,w,V;return(V=h==null?void 0:h.isFocusWithinPopoverGroup())!=null?V:((v=u.value)==null?void 0:v.activeElement)&&(((N=E(l))==null?void 0:N.contains(u.value.activeElement))||((w=E(d))==null?void 0:w.contains(u.value.activeElement)))}return r.watchEffect(()=>b==null?void 0:b(g)),It((s=u.value)==null?void 0:s.defaultView,"focus",v=>{var N,w;v.target!==window&&v.target instanceof HTMLElement&&i.value===0&&(C()||l&&d&&(P.contains(v.target)||(N=E(y.beforePanelSentinel))!=null&&N.contains(v.target)||(w=E(y.afterPanelSentinel))!=null&&w.contains(v.target)||y.closePopover()))},!0),ho(P.resolveContainers,(v,N)=>{var w;y.closePopover(),fo(N,jt.Loose)||(v.preventDefault(),(w=E(l))==null||w.focus())},r.computed(()=>i.value===0)),()=>{let v={open:i.value===0,close:y.close};return r.h(O,{},()=>D({theirProps:{...e,...n},ourProps:{ref:a},slot:v,slots:t,attrs:n,name:"Popover"}))}}}),Ji=r.defineComponent({name:"PopoverButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:()=>`headlessui-popover-button-${U()}`}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:o}){let s=lt("PopoverButton"),a=r.computed(()=>K(s.button));o({el:s.button,$el:s.button}),r.onMounted(()=>{s.buttonId.value=e.id}),r.onUnmounted(()=>{s.buttonId.value=null});let i=Ao(),l=i==null?void 0:i.closeOthers,f=Wi(),c=r.computed(()=>f===null?!1:f.value===s.panelId.value),d=r.ref(null),u=`headlessui-focus-sentinel-${U()}`;c.value||r.watchEffect(()=>{s.button.value=d.value});let p=mi(r.computed(()=>({as:e.as,type:t.type})),d);function y(P){var C,v,N,w,V;if(c.value){if(s.popoverState.value===1)return;switch(P.key){case Q.Space:case Q.Enter:P.preventDefault(),(v=(C=P.target).click)==null||v.call(C),s.closePopover(),(N=E(s.button))==null||N.focus();break}}else switch(P.key){case Q.Space:case Q.Enter:P.preventDefault(),P.stopPropagation(),s.popoverState.value===1&&(l==null||l(s.buttonId.value)),s.togglePopover();break;case Q.Escape:if(s.popoverState.value!==0)return l==null?void 0:l(s.buttonId.value);if(!E(s.button)||(w=a.value)!=null&&w.activeElement&&!((V=E(s.button))!=null&&V.contains(a.value.activeElement)))return;P.preventDefault(),P.stopPropagation(),s.closePopover();break}}function g(P){c.value||P.key===Q.Space&&P.preventDefault()}function h(P){var C,v;e.disabled||(c.value?(s.closePopover(),(C=E(s.button))==null||C.focus()):(P.preventDefault(),P.stopPropagation(),s.popoverState.value===1&&(l==null||l(s.buttonId.value)),s.togglePopover(),(v=E(s.button))==null||v.focus()))}function b(P){P.preventDefault(),P.stopPropagation()}let S=Bt();function O(){let P=E(s.panel);if(!P)return;function C(){B(S.value,{[I.Forwards]:()=>q(P,F.First),[I.Backwards]:()=>q(P,F.Last)})===Ae.Error&&q(at().filter(v=>v.dataset.headlessuiFocusGuard!=="true"),B(S.value,{[I.Forwards]:F.Next,[I.Backwards]:F.Previous}),{relativeTo:E(s.button)})}C()}return()=>{let P=s.popoverState.value===0,C={open:P},{id:v,...N}=e,w=c.value?{ref:d,type:p.value,onKeydown:y,onClick:h}:{ref:d,id:v,type:p.value,"aria-expanded":e.disabled?void 0:s.popoverState.value===0,"aria-controls":E(s.panel)?s.panelId.value:void 0,disabled:e.disabled?!0:void 0,onKeydown:y,onKeyup:g,onClick:h,onMousedown:b};return r.h(r.Fragment,[D({ourProps:w,theirProps:{...t,...N},slot:C,attrs:t,slots:n,name:"PopoverButton"}),P&&!c.value&&s.isPortalled.value&&r.h(be,{id:u,features:ae.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:O})])}}});r.defineComponent({name:"PopoverOverlay",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},setup(e,{attrs:t,slots:n}){let o=lt("PopoverOverlay"),s=`headlessui-popover-overlay-${U()}`,a=Ft(),i=r.computed(()=>a!==null?(a.value&z.Open)===z.Open:o.popoverState.value===0);function l(){o.closePopover()}return()=>{let f={open:o.popoverState.value===0};return D({ourProps:{id:s,"aria-hidden":!0,onClick:l},theirProps:e,slot:f,attrs:t,slots:n,features:re.RenderStrategy|re.Static,visible:i.value,name:"PopoverOverlay"})}}});let Ki=r.defineComponent({name:"PopoverPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},focus:{type:Boolean,default:!1},id:{type:String,default:()=>`headlessui-popover-panel-${U()}`}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:o}){let{focus:s}=e,a=lt("PopoverPanel"),i=r.computed(()=>K(a.panel)),l=`headlessui-focus-sentinel-before-${U()}`,f=`headlessui-focus-sentinel-after-${U()}`;o({el:a.panel,$el:a.panel}),r.onMounted(()=>{a.panelId.value=e.id}),r.onUnmounted(()=>{a.panelId.value=null}),r.provide(Lo,a.panelId),r.watchEffect(()=>{var b,S;if(!s||a.popoverState.value!==0||!a.panel)return;let O=(b=i.value)==null?void 0:b.activeElement;(S=E(a.panel))!=null&&S.contains(O)||q(E(a.panel),F.First)});let c=Ft(),d=r.computed(()=>c!==null?(c.value&z.Open)===z.Open:a.popoverState.value===0);function u(b){var S,O;switch(b.key){case Q.Escape:if(a.popoverState.value!==0||!E(a.panel)||i.value&&!((S=E(a.panel))!=null&&S.contains(i.value.activeElement)))return;b.preventDefault(),b.stopPropagation(),a.closePopover(),(O=E(a.button))==null||O.focus();break}}function p(b){var S,O,P,C,v;let N=b.relatedTarget;N&&E(a.panel)&&((S=E(a.panel))!=null&&S.contains(N)||(a.closePopover(),((P=(O=E(a.beforePanelSentinel))==null?void 0:O.contains)!=null&&P.call(O,N)||(v=(C=E(a.afterPanelSentinel))==null?void 0:C.contains)!=null&&v.call(C,N))&&N.focus({preventScroll:!0})))}let y=Bt();function g(){let b=E(a.panel);if(!b)return;function S(){B(y.value,{[I.Forwards]:()=>{var O;q(b,F.First)===Ae.Error&&((O=E(a.afterPanelSentinel))==null||O.focus())},[I.Backwards]:()=>{var O;(O=E(a.button))==null||O.focus({preventScroll:!0})}})}S()}function h(){let b=E(a.panel);if(!b)return;function S(){B(y.value,{[I.Forwards]:()=>{let O=E(a.button),P=E(a.panel);if(!O)return;let C=at(),v=C.indexOf(O),N=C.slice(0,v+1),w=[...C.slice(v+1),...N];for(let V of w.slice())if(V.dataset.headlessuiFocusGuard==="true"||P!=null&&P.contains(V)){let j=w.indexOf(V);j!==-1&&w.splice(j,1)}q(w,F.First,{sorted:!1})},[I.Backwards]:()=>{var O;q(b,F.Previous)===Ae.Error&&((O=E(a.button))==null||O.focus())}})}S()}return()=>{let b={open:a.popoverState.value===0,close:a.close},{id:S,focus:O,...P}=e,C={ref:a.panel,id:S,onKeydown:u,onFocusout:s&&a.popoverState.value===0?p:void 0,tabIndex:-1};return D({ourProps:C,theirProps:{...t,...P},attrs:t,slot:b,slots:{...n,default:(...v)=>{var N;return[r.h(r.Fragment,[d.value&&a.isPortalled.value&&r.h(be,{id:l,ref:a.beforePanelSentinel,features:ae.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:g}),(N=n.default)==null?void 0:N.call(n,...v),d.value&&a.isPortalled.value&&r.h(be,{id:f,ref:a.afterPanelSentinel,features:ae.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:h})])]}},features:re.RenderStrategy|re.Static,visible:d.value,name:"PopoverPanel"})}}});r.defineComponent({name:"PopoverGroup",props:{as:{type:[Object,String],default:"div"}},setup(e,{attrs:t,slots:n,expose:o}){let s=r.ref(null),a=r.shallowRef([]),i=r.computed(()=>K(s));o({el:s,$el:s});function l(u){let p=a.value.indexOf(u);p!==-1&&a.value.splice(p,1)}function f(u){return a.value.push(u),()=>{l(u)}}function c(){var u;let p=i.value;if(!p)return!1;let y=p.activeElement;return(u=E(s))!=null&&u.contains(y)?!0:a.value.some(g=>{var h,b;return((h=p.getElementById(g.buttonId.value))==null?void 0:h.contains(y))||((b=p.getElementById(g.panelId.value))==null?void 0:b.contains(y))})}function d(u){for(let p of a.value)p.buttonId.value!==u&&p.close()}return r.provide(To,{registerPopover:f,unregisterPopover:l,isFocusWithinPopoverGroup:c,closeOthers:d}),()=>D({ourProps:{ref:s},theirProps:e,slot:{},attrs:t,slots:n,name:"PopoverGroup"})}});function Yi(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function Xi(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})])}const Mc="",De=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n},Zi={data(){return{isSignup:!1,email:"",emailErrorHelp:"",name:"",password:"",passwordErrorHelp:"",errCode:0,disabled:!1,appName:"Video Translator"}},components:{},directives:{focus:{inserted:function(e){e.focus()}}},mounted(){typeof google<"u"&&(google.accounts.id.initialize({client_id:"704677828444-ihbv6faprun043f3iuponnrctutdssgj.apps.googleusercontent.com",callback:this.handleCredentialResponse}),google.accounts.id.renderButton(document.getElementById("buttonDiv"),{theme:"outline",size:"large",width:"255px"})),typeof app_config=="object"&&app_config&&Object.keys(app_config).length>0&&(this.appName=app_config.name||"Video Translator")},methods:{handleFbLogin(){if(typeof FB<"u"){const e=Te.service({text:"logining...",background:"rgba(0, 0, 0, 0.7)"});FB.login(t=>{if(console.log(t),t.status==="connected")si(t.authResponse.accessToken).then(n=>{e.close(),this.$emit("success");try{document.body.classList.remove("el-loading-parent--relative")}catch{}},n=>{console.log(n,"1")});else{e.close();try{document.body.classList.remove("el-loading-parent--relative")}catch{}}},{scope:"public_profile,email"})}},handleCredentialResponse(e){if(console.log(e,"response"),!e||!e.credential)return;const t=Te.service({text:"logining...",background:"rgba(0, 0, 0, 0.7)"});so(e.credential).then(n=>{console.log("loginGoogle",n),t.close(),this.$emit("success");try{document.body.classList.remove("el-loading-parent--relative")}catch{}},n=>{console.log(n,2)})},handleToLogin(){this.isSignup=!1},handleToSignup(){this.isSignup=!0},handleInput(){this.emailErrorHelp="",this.passwordErrorHelp=""},handleInputBlur(){},handleLogin(){if(!this.email){this.showToast("Email must no be empty");return}if(this.emailErrorHelp||this.passwordErrorHelp){this.showToast(this.emailErrorHelp||this.passwordErrorHelp);return}if(!this.password){this.showToast("Password must no be empty");return}const e=Te.service({text:"logining...",background:"rgba(0, 0, 0, 0.7)"});ai(this.email,this.password).then(t=>{e.close(),this.$emit("success");try{document.body.classList.remove("el-loading-parent--relative")}catch{}},t=>{e.close(),this.passwordErrorHelp=t.msg,this.errCode=t.ok;try{document.body.classList.remove("el-loading-parent--relative")}catch{}})},handleSignup(){if(!this.email){this.showToast("Email must no be empty");return}if(this.emailErrorHelp){this.showToast(this.emailErrorHelp);return}if(!this.name){this.showToast("Username must no be empty");return}if(!this.password){this.showToast("Password must no be empty");return}const e=Te.service({text:"registering...",background:"rgba(0, 0, 0, 0.7)"});ii(this.email,this.name,this.password).then(t=>{e.close(),location.href=t.url;try{document.body.classList.remove("el-loading-parent--relative")}catch{}},t=>{if(t.msg,t.data&&t.data.errors){const n=t.data.errors;n.email?typeof n.email=="string"?n.email:n.email[0]:n.username?typeof n.username=="string"?n.username:n.username[0]:n.password&&(typeof n.password=="string"?n.password:n.password[0])}console.log(t,"3")})},showToast(e){console.log(e,4)}}},G=e=>(r.pushScopeId("data-v-4682235c"),e=e(),r.popScopeId(),e),Qi={class:"login-wapper"},el=G(()=>r.createElementVNode("span",null,"Login here",-1)),tl=G(()=>r.createElementVNode("span",null,"Sign up here",-1)),nl={class:"accounts"},ol=G(()=>r.createElementVNode("div",{class:"account"},[r.createElementVNode("div",{id:"buttonDiv"})],-1)),rl=G(()=>r.createElementVNode("svg",{t:"1661493482810",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3146",width:"24",height:"24"},[r.createElementVNode("path",{d:"M512.262115 959.556658c247.175132 0 447.569968-200.366167 447.569968-447.556658 0-247.16387-200.394836-447.556658-447.569968-447.556658-247.17718 0-447.556658 200.392788-447.556658 447.556658-0.001024 247.190491 200.378454 447.556658 447.556658 447.556658",fill:"#537BBC","p-id":"3147"}),r.createElementVNode("path",{d:"M404.292383 436.216104h46.269378v-44.969044c0-19.828563 0.499656-50.408946 14.904699-69.347753 15.172957-20.05689 36.000832-33.690947 71.826579-33.690946 58.371702 0 82.952117 8.326235 82.952118 8.326235l-11.564785 68.550147s-19.285904-5.576079-37.275569-5.57608c-17.99888 0-34.111763 6.449454-34.111764 24.438095v52.269346h73.791416l-5.152191 66.958004h-68.639225v232.604221h-86.731278V503.174108h-46.269378v-66.958004z",fill:"#FFFFFF","p-id":"3148"})],-1)),sl=G(()=>r.createElementVNode("div",{style:{flex:"1","margin-left":"5px","font-size":"14px","font-weight":"500"}},"Login With Facebook",-1)),al=G(()=>r.createElementVNode("div",{class:"divider"},[r.createElementVNode("div",null,"Or Email")],-1)),il={class:"form-group"},ll=G(()=>r.createElementVNode("label",{for:"user_email"},"Email",-1)),cl={key:0,class:"help-block-error"},ul={key:0,class:"form-group"},dl=G(()=>r.createElementVNode("label",{for:"user_name"},"Username",-1)),fl={class:"form-group"},pl=G(()=>r.createElementVNode("label",{for:"user_password"},"Password",-1)),ml={key:0,class:"help-block-error"},hl={key:0},gl=[G(()=>r.createElementVNode("a",{href:"/user/resend-verify",target:"_blank"},"Resend email",-1))],yl=["disabled"],bl=["disabled"],wl={key:2,class:"link"},_l=G(()=>r.createElementVNode("a",{href:"/user/password-reset",target:"_blank"},"Forgot your password?",-1));function El(e,t,n,o,s,a){return r.openBlock(),r.createElementBlock("div",Qi,[r.createElementVNode("h1",null,r.toDisplayString(s.isSignup?"Sign Up With "+s.appName:"Welcom! Please Login"),1),s.isSignup?(r.openBlock(),r.createElementBlock("div",{key:0,class:"link",onClick:t[0]||(t[0]=(...i)=>a.handleToLogin&&a.handleToLogin(...i))},[r.createTextVNode("Already registered? "),el])):(r.openBlock(),r.createElementBlock("div",{key:1,class:"link",onClick:t[1]||(t[1]=(...i)=>a.handleToSignup&&a.handleToSignup(...i))},[r.createTextVNode("New to "+r.toDisplayString(s.appName)+"? ",1),tl])),r.createElementVNode("div",nl,[r.createCommentVNode(` <div class="account">
6
+ `));let y=io((i=u.props)!=null?i:{},f),g=r.cloneVNode(u,y);for(let h in y)h.startsWith("on")&&(g.props||(g.props={}),g.props[h]=y[h]);return g}return Array.isArray(c)&&c.length===1?c[0]:c}return r.h(l,Object.assign({},f,d),{default:()=>c})}function ao(e){return e.flatMap(t=>t.type===r.Fragment?ao(t.children):[t])}function io(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let o of e)for(let s in o)s.startsWith("on")&&typeof o[s]=="function"?(n[s]!=null||(n[s]=[]),n[s].push(o[s])):t[s]=o[s];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(o=>[o,void 0])));for(let o in n)Object.assign(t,{[o](s,...a){let i=n[o];for(let l of i){if(s instanceof Event&&s.defaultPrevented)return;l(s,...a)}}});return t}function ci(e,t=[]){let n=Object.assign({},e);for(let o of t)o in n&&delete n[o];return n}function ui(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}let di=0;function fi(){return++di}function U(){return fi()}var Q=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Q||{});function _(e){var t;return e==null||e.value==null?null:(t=e.value.$el)!=null?t:e.value}let lo=Symbol("Context");var z=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(z||{});function Ft(){return r.inject(lo,null)}function pi(e){r.provide(lo,e)}function co(e,t){if(e)return e;let n=t??"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function mi(e,t){let n=r.ref(co(e.value.type,e.value.as));return r.onMounted(()=>{n.value=co(e.value.type,e.value.as)}),r.watchEffect(()=>{var o;n.value||_(t)&&_(t)instanceof HTMLButtonElement&&!((o=_(t))!=null&&o.hasAttribute("type"))&&(n.value="button")}),n}var hi=Object.defineProperty,gi=(e,t,n)=>t in e?hi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,uo=(e,t,n)=>(gi(e,typeof t!="symbol"?t+"":t,n),n);class yi{constructor(){uo(this,"current",this.detect()),uo(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}}let st=new yi;function K(e){if(st.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=_(e);if(t)return t.ownerDocument}return document}let Vt=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var F=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(F||{}),Ae=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Ae||{}),bi=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(bi||{});function at(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Vt)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var jt=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(jt||{});function fo(e,t=0){var n;return e===((n=K(e))==null?void 0:n.body)?!1:B(t,{[0](){return e.matches(Vt)},[1](){let o=e;for(;o!==null;){if(o.matches(Vt))return!0;o=o.parentElement}return!1}})}var wi=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(wi||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function se(e){e==null||e.focus({preventScroll:!0})}let Ei=["textarea","input"].join(",");function _i(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,Ei))!=null?n:!1}function vi(e,t=n=>n){return e.slice().sort((n,o)=>{let s=t(n),a=t(o);if(s===null||a===null)return 0;let i=s.compareDocumentPosition(a);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function q(e,t,{sorted:n=!0,relativeTo:o=null,skipElements:s=[]}={}){var a;let i=(a=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e==null?void 0:e.ownerDocument)!=null?a:document,l=Array.isArray(e)?n?vi(e):e:at(e);s.length>0&&l.length>1&&(l=l.filter(g=>!s.includes(g))),o=o??i.activeElement;let f=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,l.indexOf(o))-1;if(t&4)return Math.max(0,l.indexOf(o))+1;if(t&8)return l.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=t&32?{preventScroll:!0}:{},u=0,p=l.length,y;do{if(u>=p||u+p<=0)return 0;let g=c+u;if(t&16)g=(g+p)%p;else{if(g<0)return 3;if(g>=p)return 1}y=l[g],y==null||y.focus(d),u+=f}while(y!==i.activeElement);return t&6&&_i(y)&&y.select(),2}function po(e,t,n){st.isServer||r.watchEffect(o=>{document.addEventListener(e,t,n),o(()=>document.removeEventListener(e,t,n))})}function mo(e,t,n){st.isServer||r.watchEffect(o=>{window.addEventListener(e,t,n),o(()=>window.removeEventListener(e,t,n))})}function ho(e,t,n=r.computed(()=>!0)){function o(a,i){if(!n.value||a.defaultPrevented)return;let l=i(a);if(l===null||!l.getRootNode().contains(l))return;let f=function c(d){return typeof d=="function"?c(d()):Array.isArray(d)||d instanceof Set?d:[d]}(e);for(let c of f){if(c===null)continue;let d=c instanceof HTMLElement?c:_(c);if(d!=null&&d.contains(l)||a.composed&&a.composedPath().includes(d))return}return!fo(l,jt.Loose)&&l.tabIndex!==-1&&a.preventDefault(),t(a,l)}let s=r.ref(null);po("mousedown",a=>{var i,l;n.value&&(s.value=((l=(i=a.composedPath)==null?void 0:i.call(a))==null?void 0:l[0])||a.target)},!0),po("click",a=>{s.value&&(o(a,()=>s.value),s.value=null)},!0),mo("blur",a=>o(a,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var ae=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ae||{});let be=r.defineComponent({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:n}){return()=>{let{features:o,...s}=e,a={"aria-hidden":(o&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(o&4)===4&&(o&2)!==2&&{display:"none"}}};return D({ourProps:a,theirProps:s,slot:{},attrs:n,slots:t,name:"Hidden"})}}});function Si(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function go(){let e=[],t={addEventListener(n,o,s,a){return n.addEventListener(o,s,a),t.add(()=>n.removeEventListener(o,s,a))},requestAnimationFrame(...n){let o=requestAnimationFrame(...n);t.add(()=>cancelAnimationFrame(o))},nextFrame(...n){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...n)})},setTimeout(...n){let o=setTimeout(...n);t.add(()=>clearTimeout(o))},style(n,o,s){let a=n.style.getPropertyValue(o);return Object.assign(n.style,{[o]:s}),this.add(()=>{Object.assign(n.style,{[o]:a})})},group(n){let o=go();return n(o),this.add(()=>o.dispose())},add(n){return e.push(n),()=>{let o=e.indexOf(n);if(o>=0)for(let s of e.splice(o,1))s()}},dispose(){for(let n of e.splice(0))n()}};return t}var I=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(I||{});function Bt(){let e=r.ref(0);return mo("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function It(e,t,n,o){st.isServer||r.watchEffect(s=>{e=e??window,e.addEventListener(t,n,o),s(()=>e.removeEventListener(t,n,o))})}function yo(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function xi(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}function bo(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.value){let o=_(n);o instanceof HTMLElement&&t.add(o)}return t}var wo=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(wo||{});let Le=Object.assign(r.defineComponent({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:r.ref(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:o}){let s=r.ref(null);o({el:s,$el:s});let a=r.computed(()=>K(s)),i=r.ref(!1);r.onMounted(()=>i.value=!0),r.onUnmounted(()=>i.value=!1),Pi({ownerDocument:a},r.computed(()=>i.value&&!!(e.features&16)));let l=Oi({ownerDocument:a,container:s,initialFocus:r.computed(()=>e.initialFocus)},r.computed(()=>i.value&&!!(e.features&2)));Ci({ownerDocument:a,container:s,containers:e.containers,previousActiveElement:l},r.computed(()=>i.value&&!!(e.features&8)));let f=Bt();function c(y){let g=_(s);g&&(h=>h())(()=>{B(f.value,{[I.Forwards]:()=>{q(g,F.First,{skipElements:[y.relatedTarget]})},[I.Backwards]:()=>{q(g,F.Last,{skipElements:[y.relatedTarget]})}})})}let d=r.ref(!1);function u(y){y.key==="Tab"&&(d.value=!0,requestAnimationFrame(()=>{d.value=!1}))}function p(y){if(!i.value)return;let g=bo(e.containers);_(s)instanceof HTMLElement&&g.add(_(s));let h=y.relatedTarget;h instanceof HTMLElement&&h.dataset.headlessuiFocusGuard!=="true"&&(Eo(g,h)||(d.value?q(_(s),B(f.value,{[I.Forwards]:()=>F.Next,[I.Backwards]:()=>F.Previous})|F.WrapAround,{relativeTo:y.target}):y.target instanceof HTMLElement&&se(y.target)))}return()=>{let y={},g={ref:s,onKeydown:u,onFocusout:p},{features:h,initialFocus:b,containers:S,...O}=e;return r.h(r.Fragment,[!!(h&4)&&r.h(be,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:ae.Focusable}),D({ourProps:g,theirProps:{...t,...O},slot:y,attrs:t,slots:n,name:"FocusTrap"}),!!(h&4)&&r.h(be,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:ae.Focusable})])}}}),{features:wo}),ie=[];xi(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&ie[0]!==t.target&&(ie.unshift(t.target),ie=ie.filter(n=>n!=null&&n.isConnected),ie.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function Ni(e){let t=r.ref(ie.slice());return r.watch([e],([n],[o])=>{o===!0&&n===!1?yo(()=>{t.value.splice(0)}):o===!1&&n===!0&&(t.value=ie.slice())},{flush:"post"}),()=>{var n;return(n=t.value.find(o=>o!=null&&o.isConnected))!=null?n:null}}function Pi({ownerDocument:e},t){let n=Ni(t);r.onMounted(()=>{r.watchEffect(()=>{var o,s;t.value||((o=e.value)==null?void 0:o.activeElement)===((s=e.value)==null?void 0:s.body)&&se(n())},{flush:"post"})}),r.onUnmounted(()=>{t.value&&se(n())})}function Oi({ownerDocument:e,container:t,initialFocus:n},o){let s=r.ref(null),a=r.ref(!1);return r.onMounted(()=>a.value=!0),r.onUnmounted(()=>a.value=!1),r.onMounted(()=>{r.watch([t,n,o],(i,l)=>{if(i.every((c,d)=>(l==null?void 0:l[d])===c)||!o.value)return;let f=_(t);f&&yo(()=>{var c,d;if(!a.value)return;let u=_(n),p=(c=e.value)==null?void 0:c.activeElement;if(u){if(u===p){s.value=p;return}}else if(f.contains(p)){s.value=p;return}u?se(u):q(f,F.First|F.NoScroll)===Ae.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),s.value=(d=e.value)==null?void 0:d.activeElement})},{immediate:!0,flush:"post"})}),s}function Ci({ownerDocument:e,container:t,containers:n,previousActiveElement:o},s){var a;It((a=e.value)==null?void 0:a.defaultView,"focus",i=>{if(!s.value)return;let l=bo(n);_(t)instanceof HTMLElement&&l.add(_(t));let f=o.value;if(!f)return;let c=i.target;c&&c instanceof HTMLElement?Eo(l,c)?(o.value=c,se(c)):(i.preventDefault(),i.stopPropagation(),se(f)):se(o.value)},!0)}function Eo(e,t){for(let n of e)if(n.contains(t))return!0;return!1}let Mt=new Map,$e=new Map;function _o(e,t=r.ref(!0)){r.watchEffect(n=>{var o;if(!t.value)return;let s=_(e);if(!s)return;n(function(){var i;if(!s)return;let l=(i=$e.get(s))!=null?i:1;if(l===1?$e.delete(s):$e.set(s,l-1),l!==1)return;let f=Mt.get(s);f&&(f["aria-hidden"]===null?s.removeAttribute("aria-hidden"):s.setAttribute("aria-hidden",f["aria-hidden"]),s.inert=f.inert,Mt.delete(s))});let a=(o=$e.get(s))!=null?o:0;$e.set(s,a+1),a===0&&(Mt.set(s,{"aria-hidden":s.getAttribute("aria-hidden"),inert:s.inert}),s.setAttribute("aria-hidden","true"),s.inert=!0)})}let vo=Symbol("ForcePortalRootContext");function ki(){return r.inject(vo,!1)}let Ut=r.defineComponent({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){return r.provide(vo,e.force),()=>{let{force:o,...s}=e;return D({theirProps:s,ourProps:{},slot:{},slots:t,attrs:n,name:"ForcePortalRoot"})}}});function Ti(e){let t=K(e);if(!t){if(e===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`)}let n=t.getElementById("headlessui-portal-root");if(n)return n;let o=t.createElement("div");return o.setAttribute("id","headlessui-portal-root"),t.body.appendChild(o)}let So=r.defineComponent({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){let o=r.ref(null),s=r.computed(()=>K(o)),a=ki(),i=r.inject(No,null),l=r.ref(a===!0||i==null?Ti(o.value):i.resolveTarget());r.watchEffect(()=>{a||i!=null&&(l.value=i.resolveTarget())});let f=r.inject(Ht,null);return r.onMounted(()=>{let c=_(o);c&&f&&r.onUnmounted(f.register(c))}),r.onUnmounted(()=>{var c,d;let u=(c=s.value)==null?void 0:c.getElementById("headlessui-portal-root");u&&l.value===u&&l.value.children.length<=0&&((d=l.value.parentElement)==null||d.removeChild(l.value))}),()=>{if(l.value===null)return null;let c={ref:o,"data-headlessui-portal":""};return r.h(r.Teleport,{to:l.value},D({ourProps:c,theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}}}),Ht=Symbol("PortalParentContext");function xo(){let e=r.inject(Ht,null),t=r.ref([]);function n(a){return t.value.push(a),e&&e.register(a),()=>o(a)}function o(a){let i=t.value.indexOf(a);i!==-1&&t.value.splice(i,1),e&&e.unregister(a)}let s={register:n,unregister:o,portals:t};return[t,r.defineComponent({name:"PortalWrapper",setup(a,{slots:i}){return r.provide(Ht,s),()=>{var l;return(l=i.default)==null?void 0:l.call(i)}}})]}let No=Symbol("PortalGroupContext"),Ai=r.defineComponent({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:n}){let o=r.reactive({resolveTarget(){return e.target}});return r.provide(No,o),()=>{let{target:s,...a}=e;return D({theirProps:a,ourProps:{},slot:{},attrs:t,slots:n,name:"PortalGroup"})}}}),Po=Symbol("StackContext");var zt=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(zt||{});function Li(){return r.inject(Po,()=>{})}function $i({type:e,enabled:t,element:n,onUpdate:o}){let s=Li();function a(...i){o==null||o(...i),s(...i)}r.onMounted(()=>{r.watch(t,(i,l)=>{i?a(0,e,n):l===!0&&a(1,e,n)},{immediate:!0,flush:"sync"})}),r.onUnmounted(()=>{t.value&&a(1,e,n)}),r.provide(Po,a)}let Oo=Symbol("DescriptionContext");function Ri(){let e=r.inject(Oo,null);if(e===null)throw new Error("Missing parent");return e}function Di({slot:e=r.ref({}),name:t="Description",props:n={}}={}){let o=r.ref([]);function s(a){return o.value.push(a),()=>{let i=o.value.indexOf(a);i!==-1&&o.value.splice(i,1)}}return r.provide(Oo,{register:s,slot:e,name:t,props:n}),r.computed(()=>o.value.length>0?o.value.join(" "):void 0)}r.defineComponent({name:"Description",props:{as:{type:[Object,String],default:"p"},id:{type:String,default:()=>`headlessui-description-${U()}`}},setup(e,{attrs:t,slots:n}){let o=Ri();return r.onMounted(()=>r.onUnmounted(o.register(e.id))),()=>{let{name:s="Description",slot:a=r.ref({}),props:i={}}=o,{id:l,...f}=e,c={...Object.entries(i).reduce((d,[u,p])=>Object.assign(d,{[u]:r.unref(p)}),{}),id:l};return D({ourProps:c,theirProps:f,slot:a.value,attrs:t,slots:n,name:s})}}});function Fi(e){let t=r.shallowRef(e.getSnapshot());return r.onUnmounted(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function Vi(e,t){let n=e(),o=new Set;return{getSnapshot(){return n},subscribe(s){return o.add(s),()=>o.delete(s)},dispatch(s,...a){let i=t[s].call(n,...a);i&&(n=i,o.forEach(l=>l()))}}}function ji(){let e;return{before({doc:t}){var n;let o=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-o.clientWidth},after({doc:t,d:n}){let o=t.documentElement,s=o.clientWidth-o.offsetWidth,a=e-s;n.style(o,"paddingRight",`${a}px`)}}}function Bi(){if(!Si())return{};let e;return{before(){e=window.pageYOffset},after({doc:t,d:n,meta:o}){function s(i){return o.containers.flatMap(l=>l()).some(l=>l.contains(i))}n.style(t.body,"marginTop",`-${e}px`),window.scrollTo(0,0);let a=null;n.addEventListener(t,"click",i=>{if(i.target instanceof HTMLElement)try{let l=i.target.closest("a");if(!l)return;let{hash:f}=new URL(l.href),c=t.querySelector(f);c&&!s(c)&&(a=c)}catch{}},!0),n.addEventListener(t,"touchmove",i=>{i.target instanceof HTMLElement&&!s(i.target)&&i.preventDefault()},{passive:!1}),n.add(()=>{window.scrollTo(0,window.pageYOffset+e),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})}}}function Ii(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Mi(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let le=Vi(()=>new Map,{PUSH(e,t){var n;let o=(n=this.get(e))!=null?n:{doc:e,count:0,d:go(),meta:new Set};return o.count++,o.meta.add(t),this.set(e,o),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let o={doc:e,d:t,meta:Mi(n)},s=[Bi(),ji(),Ii()];s.forEach(({before:a})=>a==null?void 0:a(o)),s.forEach(({after:a})=>a==null?void 0:a(o))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});le.subscribe(()=>{let e=le.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let o=t.get(n.doc)==="hidden",s=n.count!==0;(s&&!o||!s&&o)&&le.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&le.dispatch("TEARDOWN",n)}});function Ui(e,t,n){let o=Fi(le),s=r.computed(()=>{let a=e.value?o.value.get(e.value):void 0;return a?a.count>0:!1});return r.watch([e,t],([a,i],[l],f)=>{if(!a||!i)return;le.dispatch("PUSH",a,n);let c=!1;f(()=>{c||(le.dispatch("POP",l??a,n),c=!0)})},{immediate:!0}),s}function Co({defaultContainers:e=[],portals:t}={}){let n=r.ref(null),o=K(n);function s(){var a;let i=[];for(let l of e)l!==null&&(l instanceof HTMLElement?i.push(l):"value"in l&&l.value instanceof HTMLElement&&i.push(l.value));if(t!=null&&t.value)for(let l of t.value)i.push(l);for(let l of(a=o==null?void 0:o.querySelectorAll("html > *, body > *"))!=null?a:[])l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l.id!=="headlessui-portal-root"&&(l.contains(_(n))||i.some(f=>l.contains(f))||i.push(l));return i}return{resolveContainers:s,contains(a){return s().some(i=>i.contains(a))},mainTreeNodeRef:n,MainTreeNode(){return r.h(be,{features:ae.Hidden,ref:n})}}}var Hi=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Hi||{});let qt=Symbol("DialogContext");function Re(e){let t=r.inject(qt,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Re),n}return t}let it="DC8F892D-2EBD-447C-A4C8-A03058436FF4",zi=r.defineComponent({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:it},initialFocus:{type:Object,default:null},id:{type:String,default:()=>`headlessui-dialog-${U()}`}},emits:{close:e=>!0},setup(e,{emit:t,attrs:n,slots:o,expose:s}){var a;let i=r.ref(!1);r.onMounted(()=>{i.value=!0});let l=r.ref(0),f=Ft(),c=r.computed(()=>e.open===it&&f!==null?(f.value&z.Open)===z.Open:e.open),d=r.ref(null),u=r.computed(()=>K(d));if(s({el:d,$el:d}),!(e.open!==it||f!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof c.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${c.value===it?void 0:e.open}`);let p=r.computed(()=>i.value&&c.value?0:1),y=r.computed(()=>p.value===0),g=r.computed(()=>l.value>1),h=r.inject(qt,null)!==null,[b,S]=xo(),{resolveContainers:O,mainTreeNodeRef:P,MainTreeNode:C}=Co({portals:b,defaultContainers:[r.computed(()=>{var T;return(T=$.panelRef.value)!=null?T:d.value})]}),v=r.computed(()=>g.value?"parent":"leaf"),N=r.computed(()=>f!==null?(f.value&z.Closing)===z.Closing:!1),w=r.computed(()=>h||N.value?!1:y.value),V=r.computed(()=>{var T,A,Y;return(Y=Array.from((A=(T=u.value)==null?void 0:T.querySelectorAll("body > *"))!=null?A:[]).find(X=>X.id==="headlessui-portal-root"?!1:X.contains(_(P))&&X instanceof HTMLElement))!=null?Y:null});_o(V,w);let j=r.computed(()=>g.value?!0:y.value),x=r.computed(()=>{var T,A,Y;return(Y=Array.from((A=(T=u.value)==null?void 0:T.querySelectorAll("[data-headlessui-portal]"))!=null?A:[]).find(X=>X.contains(_(P))&&X instanceof HTMLElement))!=null?Y:null});_o(x,j),$i({type:"Dialog",enabled:r.computed(()=>p.value===0),element:d,onUpdate:(T,A)=>{if(A==="Dialog")return B(T,{[zt.Add]:()=>l.value+=1,[zt.Remove]:()=>l.value-=1})}});let E=Di({name:"DialogDescription",slot:r.computed(()=>({open:c.value}))}),L=r.ref(null),$={titleId:L,panelRef:r.ref(null),dialogState:p,setTitleId(T){L.value!==T&&(L.value=T)},close(){t("close",!1)}};r.provide(qt,$);let ue=r.computed(()=>!(!y.value||g.value));ho(O,(T,A)=>{$.close(),r.nextTick(()=>A==null?void 0:A.focus())},ue);let Yt=r.computed(()=>!(g.value||p.value!==0));It((a=u.value)==null?void 0:a.defaultView,"keydown",T=>{Yt.value&&(T.defaultPrevented||T.key===Q.Escape&&(T.preventDefault(),T.stopPropagation(),$.close()))});let Xt=r.computed(()=>!(N.value||p.value!==0||h));return Ui(u,Xt,T=>{var A;return{containers:[...(A=T.containers)!=null?A:[],O]}}),r.watchEffect(T=>{if(p.value!==0)return;let A=_(d);if(!A)return;let Y=new ResizeObserver(X=>{for(let Zt of X){let _e=Zt.target.getBoundingClientRect();_e.x===0&&_e.y===0&&_e.width===0&&_e.height===0&&$.close()}});Y.observe(A),T(()=>Y.disconnect())}),()=>{let{id:T,open:A,initialFocus:Y,...X}=e,Zt={...n,ref:d,id:T,role:"dialog","aria-modal":p.value===0?!0:void 0,"aria-labelledby":L.value,"aria-describedby":E.value},_e={open:p.value===0};return r.h(Ut,{force:!0},()=>[r.h(So,()=>r.h(Ai,{target:d.value},()=>r.h(Ut,{force:!1},()=>r.h(Le,{initialFocus:Y,containers:O,features:y.value?B(v.value,{parent:Le.features.RestoreFocus,leaf:Le.features.All&~Le.features.FocusLock}):Le.features.None},()=>r.h(S,{},()=>D({ourProps:Zt,theirProps:{...X,...n},slot:_e,attrs:n,slots:o,visible:p.value===0,features:re.RenderStrategy|re.Static,name:"Dialog"})))))),r.h(C)])}}});r.defineComponent({name:"DialogOverlay",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`headlessui-dialog-overlay-${U()}`}},setup(e,{attrs:t,slots:n}){let o=Re("DialogOverlay");function s(a){a.target===a.currentTarget&&(a.preventDefault(),a.stopPropagation(),o.close())}return()=>{let{id:a,...i}=e;return D({ourProps:{id:a,"aria-hidden":!0,onClick:s},theirProps:i,slot:{open:o.dialogState.value===0},attrs:t,slots:n,name:"DialogOverlay"})}}}),r.defineComponent({name:"DialogBackdrop",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`headlessui-dialog-backdrop-${U()}`}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:o}){let s=Re("DialogBackdrop"),a=r.ref(null);return o({el:a,$el:a}),r.onMounted(()=>{if(s.panelRef.value===null)throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.")}),()=>{let{id:i,...l}=e,f={id:i,ref:a,"aria-hidden":!0};return r.h(Ut,{force:!0},()=>r.h(So,()=>D({ourProps:f,theirProps:{...t,...l},slot:{open:s.dialogState.value===0},attrs:t,slots:n,name:"DialogBackdrop"})))}}});let qi=r.defineComponent({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`headlessui-dialog-panel-${U()}`}},setup(e,{attrs:t,slots:n,expose:o}){let s=Re("DialogPanel");o({el:s.panelRef,$el:s.panelRef});function a(i){i.stopPropagation()}return()=>{let{id:i,...l}=e,f={id:i,ref:s.panelRef,onClick:a};return D({ourProps:f,theirProps:l,slot:{open:s.dialogState.value===0},attrs:t,slots:n,name:"DialogPanel"})}}});r.defineComponent({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"},id:{type:String,default:()=>`headlessui-dialog-title-${U()}`}},setup(e,{attrs:t,slots:n}){let o=Re("DialogTitle");return r.onMounted(()=>{o.setTitleId(e.id),r.onUnmounted(()=>o.setTitleId(null))}),()=>{let{id:s,...a}=e;return D({ourProps:{id:s},theirProps:a,slot:{open:o.dialogState.value===0},attrs:t,slots:n,name:"DialogTitle"})}}});var Gi=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Gi||{});let ko=Symbol("PopoverContext");function lt(e){let t=r.inject(ko,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <${$o.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,lt),n}return t}let To=Symbol("PopoverGroupContext");function Ao(){return r.inject(To,null)}let Lo=Symbol("PopoverPanelContext");function Wi(){return r.inject(Lo,null)}let $o=r.defineComponent({name:"Popover",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n,expose:o}){var s;let a=r.ref(null);o({el:a,$el:a});let i=r.ref(1),l=r.ref(null),f=r.ref(null),c=r.ref(null),d=r.ref(null),u=r.computed(()=>K(a)),p=r.computed(()=>{var v,N;if(!_(l)||!_(d))return!1;for(let $ of document.querySelectorAll("body > *"))if(Number($==null?void 0:$.contains(_(l)))^Number($==null?void 0:$.contains(_(d))))return!0;let w=at(),V=w.indexOf(_(l)),j=(V+w.length-1)%w.length,x=(V+1)%w.length,E=w[j],L=w[x];return!((v=_(d))!=null&&v.contains(E))&&!((N=_(d))!=null&&N.contains(L))}),y={popoverState:i,buttonId:r.ref(null),panelId:r.ref(null),panel:d,button:l,isPortalled:p,beforePanelSentinel:f,afterPanelSentinel:c,togglePopover(){i.value=B(i.value,{[0]:1,[1]:0})},closePopover(){i.value!==1&&(i.value=1)},close(v){y.closePopover();let N=(()=>v?v instanceof HTMLElement?v:v.value instanceof HTMLElement?_(v):_(y.button):_(y.button))();N==null||N.focus()}};r.provide(ko,y),pi(r.computed(()=>B(i.value,{[0]:z.Open,[1]:z.Closed})));let g={buttonId:y.buttonId,panelId:y.panelId,close(){y.closePopover()}},h=Ao(),b=h==null?void 0:h.registerPopover,[S,O]=xo(),P=Co({portals:S,defaultContainers:[l,d]});function C(){var v,N,w,V;return(V=h==null?void 0:h.isFocusWithinPopoverGroup())!=null?V:((v=u.value)==null?void 0:v.activeElement)&&(((N=_(l))==null?void 0:N.contains(u.value.activeElement))||((w=_(d))==null?void 0:w.contains(u.value.activeElement)))}return r.watchEffect(()=>b==null?void 0:b(g)),It((s=u.value)==null?void 0:s.defaultView,"focus",v=>{var N,w;v.target!==window&&v.target instanceof HTMLElement&&i.value===0&&(C()||l&&d&&(P.contains(v.target)||(N=_(y.beforePanelSentinel))!=null&&N.contains(v.target)||(w=_(y.afterPanelSentinel))!=null&&w.contains(v.target)||y.closePopover()))},!0),ho(P.resolveContainers,(v,N)=>{var w;y.closePopover(),fo(N,jt.Loose)||(v.preventDefault(),(w=_(l))==null||w.focus())},r.computed(()=>i.value===0)),()=>{let v={open:i.value===0,close:y.close};return r.h(O,{},()=>D({theirProps:{...e,...n},ourProps:{ref:a},slot:v,slots:t,attrs:n,name:"Popover"}))}}}),Ji=r.defineComponent({name:"PopoverButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:()=>`headlessui-popover-button-${U()}`}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:o}){let s=lt("PopoverButton"),a=r.computed(()=>K(s.button));o({el:s.button,$el:s.button}),r.onMounted(()=>{s.buttonId.value=e.id}),r.onUnmounted(()=>{s.buttonId.value=null});let i=Ao(),l=i==null?void 0:i.closeOthers,f=Wi(),c=r.computed(()=>f===null?!1:f.value===s.panelId.value),d=r.ref(null),u=`headlessui-focus-sentinel-${U()}`;c.value||r.watchEffect(()=>{s.button.value=d.value});let p=mi(r.computed(()=>({as:e.as,type:t.type})),d);function y(P){var C,v,N,w,V;if(c.value){if(s.popoverState.value===1)return;switch(P.key){case Q.Space:case Q.Enter:P.preventDefault(),(v=(C=P.target).click)==null||v.call(C),s.closePopover(),(N=_(s.button))==null||N.focus();break}}else switch(P.key){case Q.Space:case Q.Enter:P.preventDefault(),P.stopPropagation(),s.popoverState.value===1&&(l==null||l(s.buttonId.value)),s.togglePopover();break;case Q.Escape:if(s.popoverState.value!==0)return l==null?void 0:l(s.buttonId.value);if(!_(s.button)||(w=a.value)!=null&&w.activeElement&&!((V=_(s.button))!=null&&V.contains(a.value.activeElement)))return;P.preventDefault(),P.stopPropagation(),s.closePopover();break}}function g(P){c.value||P.key===Q.Space&&P.preventDefault()}function h(P){var C,v;e.disabled||(c.value?(s.closePopover(),(C=_(s.button))==null||C.focus()):(P.preventDefault(),P.stopPropagation(),s.popoverState.value===1&&(l==null||l(s.buttonId.value)),s.togglePopover(),(v=_(s.button))==null||v.focus()))}function b(P){P.preventDefault(),P.stopPropagation()}let S=Bt();function O(){let P=_(s.panel);if(!P)return;function C(){B(S.value,{[I.Forwards]:()=>q(P,F.First),[I.Backwards]:()=>q(P,F.Last)})===Ae.Error&&q(at().filter(v=>v.dataset.headlessuiFocusGuard!=="true"),B(S.value,{[I.Forwards]:F.Next,[I.Backwards]:F.Previous}),{relativeTo:_(s.button)})}C()}return()=>{let P=s.popoverState.value===0,C={open:P},{id:v,...N}=e,w=c.value?{ref:d,type:p.value,onKeydown:y,onClick:h}:{ref:d,id:v,type:p.value,"aria-expanded":e.disabled?void 0:s.popoverState.value===0,"aria-controls":_(s.panel)?s.panelId.value:void 0,disabled:e.disabled?!0:void 0,onKeydown:y,onKeyup:g,onClick:h,onMousedown:b};return r.h(r.Fragment,[D({ourProps:w,theirProps:{...t,...N},slot:C,attrs:t,slots:n,name:"PopoverButton"}),P&&!c.value&&s.isPortalled.value&&r.h(be,{id:u,features:ae.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:O})])}}});r.defineComponent({name:"PopoverOverlay",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},setup(e,{attrs:t,slots:n}){let o=lt("PopoverOverlay"),s=`headlessui-popover-overlay-${U()}`,a=Ft(),i=r.computed(()=>a!==null?(a.value&z.Open)===z.Open:o.popoverState.value===0);function l(){o.closePopover()}return()=>{let f={open:o.popoverState.value===0};return D({ourProps:{id:s,"aria-hidden":!0,onClick:l},theirProps:e,slot:f,attrs:t,slots:n,features:re.RenderStrategy|re.Static,visible:i.value,name:"PopoverOverlay"})}}});let Ki=r.defineComponent({name:"PopoverPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},focus:{type:Boolean,default:!1},id:{type:String,default:()=>`headlessui-popover-panel-${U()}`}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:o}){let{focus:s}=e,a=lt("PopoverPanel"),i=r.computed(()=>K(a.panel)),l=`headlessui-focus-sentinel-before-${U()}`,f=`headlessui-focus-sentinel-after-${U()}`;o({el:a.panel,$el:a.panel}),r.onMounted(()=>{a.panelId.value=e.id}),r.onUnmounted(()=>{a.panelId.value=null}),r.provide(Lo,a.panelId),r.watchEffect(()=>{var b,S;if(!s||a.popoverState.value!==0||!a.panel)return;let O=(b=i.value)==null?void 0:b.activeElement;(S=_(a.panel))!=null&&S.contains(O)||q(_(a.panel),F.First)});let c=Ft(),d=r.computed(()=>c!==null?(c.value&z.Open)===z.Open:a.popoverState.value===0);function u(b){var S,O;switch(b.key){case Q.Escape:if(a.popoverState.value!==0||!_(a.panel)||i.value&&!((S=_(a.panel))!=null&&S.contains(i.value.activeElement)))return;b.preventDefault(),b.stopPropagation(),a.closePopover(),(O=_(a.button))==null||O.focus();break}}function p(b){var S,O,P,C,v;let N=b.relatedTarget;N&&_(a.panel)&&((S=_(a.panel))!=null&&S.contains(N)||(a.closePopover(),((P=(O=_(a.beforePanelSentinel))==null?void 0:O.contains)!=null&&P.call(O,N)||(v=(C=_(a.afterPanelSentinel))==null?void 0:C.contains)!=null&&v.call(C,N))&&N.focus({preventScroll:!0})))}let y=Bt();function g(){let b=_(a.panel);if(!b)return;function S(){B(y.value,{[I.Forwards]:()=>{var O;q(b,F.First)===Ae.Error&&((O=_(a.afterPanelSentinel))==null||O.focus())},[I.Backwards]:()=>{var O;(O=_(a.button))==null||O.focus({preventScroll:!0})}})}S()}function h(){let b=_(a.panel);if(!b)return;function S(){B(y.value,{[I.Forwards]:()=>{let O=_(a.button),P=_(a.panel);if(!O)return;let C=at(),v=C.indexOf(O),N=C.slice(0,v+1),w=[...C.slice(v+1),...N];for(let V of w.slice())if(V.dataset.headlessuiFocusGuard==="true"||P!=null&&P.contains(V)){let j=w.indexOf(V);j!==-1&&w.splice(j,1)}q(w,F.First,{sorted:!1})},[I.Backwards]:()=>{var O;q(b,F.Previous)===Ae.Error&&((O=_(a.button))==null||O.focus())}})}S()}return()=>{let b={open:a.popoverState.value===0,close:a.close},{id:S,focus:O,...P}=e,C={ref:a.panel,id:S,onKeydown:u,onFocusout:s&&a.popoverState.value===0?p:void 0,tabIndex:-1};return D({ourProps:C,theirProps:{...t,...P},attrs:t,slot:b,slots:{...n,default:(...v)=>{var N;return[r.h(r.Fragment,[d.value&&a.isPortalled.value&&r.h(be,{id:l,ref:a.beforePanelSentinel,features:ae.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:g}),(N=n.default)==null?void 0:N.call(n,...v),d.value&&a.isPortalled.value&&r.h(be,{id:f,ref:a.afterPanelSentinel,features:ae.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:h})])]}},features:re.RenderStrategy|re.Static,visible:d.value,name:"PopoverPanel"})}}});r.defineComponent({name:"PopoverGroup",props:{as:{type:[Object,String],default:"div"}},setup(e,{attrs:t,slots:n,expose:o}){let s=r.ref(null),a=r.shallowRef([]),i=r.computed(()=>K(s));o({el:s,$el:s});function l(u){let p=a.value.indexOf(u);p!==-1&&a.value.splice(p,1)}function f(u){return a.value.push(u),()=>{l(u)}}function c(){var u;let p=i.value;if(!p)return!1;let y=p.activeElement;return(u=_(s))!=null&&u.contains(y)?!0:a.value.some(g=>{var h,b;return((h=p.getElementById(g.buttonId.value))==null?void 0:h.contains(y))||((b=p.getElementById(g.panelId.value))==null?void 0:b.contains(y))})}function d(u){for(let p of a.value)p.buttonId.value!==u&&p.close()}return r.provide(To,{registerPopover:f,unregisterPopover:l,isFocusWithinPopoverGroup:c,closeOthers:d}),()=>D({ourProps:{ref:s},theirProps:e,slot:{},attrs:t,slots:n,name:"PopoverGroup"})}});function Yi(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function Xi(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})])}const Mc="",De=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n},Zi={data(){return{isSignup:!1,email:"",emailErrorHelp:"",name:"",password:"",passwordErrorHelp:"",errCode:0,disabled:!1,appName:"Video Translator"}},components:{},directives:{focus:{inserted:function(e){e.focus()}}},mounted(){typeof google<"u"&&(google.accounts.id.initialize({client_id:"704677828444-ihbv6faprun043f3iuponnrctutdssgj.apps.googleusercontent.com",callback:this.handleCredentialResponse}),google.accounts.id.renderButton(document.getElementById("buttonDiv"),{theme:"outline",size:"large",width:"255px"})),typeof app_config=="object"&&app_config&&Object.keys(app_config).length>0&&(this.appName=app_config.name||"Video Translator")},methods:{handleFbLogin(){if(typeof FB<"u"){const e=Te.service({text:"logining...",background:"rgba(0, 0, 0, 0.7)"});FB.login(t=>{if(console.log(t),t.status==="connected")si(t.authResponse.accessToken).then(n=>{e.close(),this.$emit("success");try{document.body.classList.remove("el-loading-parent--relative")}catch{}},n=>{console.log(n,"1")});else{e.close();try{document.body.classList.remove("el-loading-parent--relative")}catch{}}},{scope:"public_profile,email"})}},handleCredentialResponse(e){if(console.log(e,"response"),!e||!e.credential)return;const t=Te.service({text:"logining...",background:"rgba(0, 0, 0, 0.7)"});so(e.credential).then(n=>{console.log("loginGoogle",n),t.close(),this.$emit("success");try{document.body.classList.remove("el-loading-parent--relative")}catch{}},n=>{console.log(n,2)})},handleToLogin(){this.isSignup=!1},handleToSignup(){this.isSignup=!0},handleInput(){this.emailErrorHelp="",this.passwordErrorHelp=""},handleInputBlur(){},handleLogin(){if(!this.email){this.showToast("Email must no be empty");return}if(this.emailErrorHelp||this.passwordErrorHelp){this.showToast(this.emailErrorHelp||this.passwordErrorHelp);return}if(!this.password){this.showToast("Password must no be empty");return}const e=Te.service({text:"logining...",background:"rgba(0, 0, 0, 0.7)"});ai(this.email,this.password).then(t=>{e.close(),this.$emit("success");try{document.body.classList.remove("el-loading-parent--relative")}catch{}},t=>{e.close(),this.passwordErrorHelp=t.msg,this.errCode=t.ok;try{document.body.classList.remove("el-loading-parent--relative")}catch{}})},handleSignup(){if(!this.email){this.showToast("Email must no be empty");return}if(this.emailErrorHelp){this.showToast(this.emailErrorHelp);return}if(!this.name){this.showToast("Username must no be empty");return}if(!this.password){this.showToast("Password must no be empty");return}const e=Te.service({text:"registering...",background:"rgba(0, 0, 0, 0.7)"});ii(this.email,this.name,this.password).then(t=>{e.close(),location.href=t.url;try{document.body.classList.remove("el-loading-parent--relative")}catch{}},t=>{if(t.msg,t.data&&t.data.errors){const n=t.data.errors;n.email?typeof n.email=="string"?n.email:n.email[0]:n.username?typeof n.username=="string"?n.username:n.username[0]:n.password&&(typeof n.password=="string"?n.password:n.password[0])}console.log(t,"3")})},showToast(e){console.log(e,4)}}},G=e=>(r.pushScopeId("data-v-4682235c"),e=e(),r.popScopeId(),e),Qi={class:"login-wapper"},el=G(()=>r.createElementVNode("span",null,"Login here",-1)),tl=G(()=>r.createElementVNode("span",null,"Sign up here",-1)),nl={class:"accounts"},ol=G(()=>r.createElementVNode("div",{class:"account"},[r.createElementVNode("div",{id:"buttonDiv"})],-1)),rl=G(()=>r.createElementVNode("svg",{t:"1661493482810",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3146",width:"24",height:"24"},[r.createElementVNode("path",{d:"M512.262115 959.556658c247.175132 0 447.569968-200.366167 447.569968-447.556658 0-247.16387-200.394836-447.556658-447.569968-447.556658-247.17718 0-447.556658 200.392788-447.556658 447.556658-0.001024 247.190491 200.378454 447.556658 447.556658 447.556658",fill:"#537BBC","p-id":"3147"}),r.createElementVNode("path",{d:"M404.292383 436.216104h46.269378v-44.969044c0-19.828563 0.499656-50.408946 14.904699-69.347753 15.172957-20.05689 36.000832-33.690947 71.826579-33.690946 58.371702 0 82.952117 8.326235 82.952118 8.326235l-11.564785 68.550147s-19.285904-5.576079-37.275569-5.57608c-17.99888 0-34.111763 6.449454-34.111764 24.438095v52.269346h73.791416l-5.152191 66.958004h-68.639225v232.604221h-86.731278V503.174108h-46.269378v-66.958004z",fill:"#FFFFFF","p-id":"3148"})],-1)),sl=G(()=>r.createElementVNode("div",{style:{flex:"1","margin-left":"5px","font-size":"14px","font-weight":"500"}},"Login With Facebook",-1)),al=G(()=>r.createElementVNode("div",{class:"divider"},[r.createElementVNode("div",null,"Or Email")],-1)),il={class:"form-group"},ll=G(()=>r.createElementVNode("label",{for:"user_email"},"Email",-1)),cl={key:0,class:"help-block-error"},ul={key:0,class:"form-group"},dl=G(()=>r.createElementVNode("label",{for:"user_name"},"Username",-1)),fl={class:"form-group"},pl=G(()=>r.createElementVNode("label",{for:"user_password"},"Password",-1)),ml={key:0,class:"help-block-error"},hl={key:0},gl=[G(()=>r.createElementVNode("a",{href:"/user/resend-verify",target:"_blank"},"Resend email",-1))],yl=["disabled"],bl=["disabled"],wl={key:2,class:"link"},El=G(()=>r.createElementVNode("a",{href:"/user/password-reset",target:"_blank"},"Forgot your password?",-1));function _l(e,t,n,o,s,a){return r.openBlock(),r.createElementBlock("div",Qi,[r.createElementVNode("h1",null,r.toDisplayString(s.isSignup?"Sign Up With "+s.appName:"Welcom! Please Login"),1),s.isSignup?(r.openBlock(),r.createElementBlock("div",{key:0,class:"link",onClick:t[0]||(t[0]=(...i)=>a.handleToLogin&&a.handleToLogin(...i))},[r.createTextVNode("Already registered? "),el])):(r.openBlock(),r.createElementBlock("div",{key:1,class:"link",onClick:t[1]||(t[1]=(...i)=>a.handleToSignup&&a.handleToSignup(...i))},[r.createTextVNode("New to "+r.toDisplayString(s.appName)+"? ",1),tl])),r.createElementVNode("div",nl,[r.createCommentVNode(` <div class="account">
7
7
  <div class="fb-login-button" scope="public_profile,email" data-width="255px" data-size="large" data-button-type="login_with" data-layout="default" data-auto-logout-link="false" data-use-continue-as="false" data-onlogin="checkLoginState"></div>
8
8
  </div> `),ol,r.createElementVNode("div",{class:"account flew-row-v-center",style:{padding:"0 12px","border-radius":"4px"},onClick:t[2]||(t[2]=(...i)=>a.handleFbLogin&&a.handleFbLogin(...i))},[r.createCommentVNode(` <img class="img" src="https://statics.imgkits.com/images/facebook_logo.png" alt="facebook logo" width="24" height="24" style="width: 24pxheight: 24px;margin: 8px 8px 8px 12px;">
9
- <div style="flex: 1;margin-right: 12px;color: #fff;font-size: 16px;text-align: center;font-weight: bold;">Log in With Facebook</div> `),rl,sl])]),al,r.createElementVNode("div",null,[r.createElementVNode("div",il,[ll,r.withDirectives(r.createElementVNode("input",{id:"user_email",type:"email","onUpdate:modelValue":t[3]||(t[3]=i=>s.email=i),onInput:t[4]||(t[4]=(...i)=>a.handleInput&&a.handleInput(...i)),onBlur:t[5]||(t[5]=(...i)=>a.handleInputBlur&&a.handleInputBlur(...i))},null,544),[[r.vModelText,s.email]]),s.emailErrorHelp?(r.openBlock(),r.createElementBlock("p",cl,r.toDisplayString(s.emailErrorHelp),1)):r.createCommentVNode("v-if",!0)]),s.isSignup?(r.openBlock(),r.createElementBlock("div",ul,[dl,r.withDirectives(r.createElementVNode("input",{id:"user_name",type:"text","onUpdate:modelValue":t[6]||(t[6]=i=>s.name=i)},null,512),[[r.vModelText,s.name]])])):r.createCommentVNode("v-if",!0),r.createElementVNode("div",fl,[pl,r.withDirectives(r.createElementVNode("input",{id:"user_password",type:"password","onUpdate:modelValue":t[7]||(t[7]=i=>s.password=i),onInput:t[8]||(t[8]=(...i)=>a.handleInput&&a.handleInput(...i))},null,544),[[r.vModelText,s.password]]),s.passwordErrorHelp?(r.openBlock(),r.createElementBlock("p",ml,[r.createTextVNode(r.toDisplayString(s.passwordErrorHelp)+" ",1),s.errCode==2?(r.openBlock(),r.createElementBlock("span",hl,gl)):r.createCommentVNode("v-if",!0)])):r.createCommentVNode("v-if",!0)]),s.isSignup?(r.openBlock(),r.createElementBlock("button",{key:1,class:"form-button",disabled:s.disabled,onClick:t[9]||(t[9]=(...i)=>a.handleSignup&&a.handleSignup(...i))},"Create Your Account",8,yl)):(r.openBlock(),r.createElementBlock("button",{key:2,class:"form-button",disabled:s.disabled,onClick:t[10]||(t[10]=(...i)=>a.handleLogin&&a.handleLogin(...i))},"Login",8,bl))]),s.isSignup?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createElementBlock("div",wl,[_l,r.createCommentVNode(' <a href="/user/resend-verification-email"> Need new verification email?</a> ')])),r.createCommentVNode(` <div class="link">
9
+ <div style="flex: 1;margin-right: 12px;color: #fff;font-size: 16px;text-align: center;font-weight: bold;">Log in With Facebook</div> `),rl,sl])]),al,r.createElementVNode("div",null,[r.createElementVNode("div",il,[ll,r.withDirectives(r.createElementVNode("input",{id:"user_email",type:"email","onUpdate:modelValue":t[3]||(t[3]=i=>s.email=i),onInput:t[4]||(t[4]=(...i)=>a.handleInput&&a.handleInput(...i)),onBlur:t[5]||(t[5]=(...i)=>a.handleInputBlur&&a.handleInputBlur(...i))},null,544),[[r.vModelText,s.email]]),s.emailErrorHelp?(r.openBlock(),r.createElementBlock("p",cl,r.toDisplayString(s.emailErrorHelp),1)):r.createCommentVNode("v-if",!0)]),s.isSignup?(r.openBlock(),r.createElementBlock("div",ul,[dl,r.withDirectives(r.createElementVNode("input",{id:"user_name",type:"text","onUpdate:modelValue":t[6]||(t[6]=i=>s.name=i)},null,512),[[r.vModelText,s.name]])])):r.createCommentVNode("v-if",!0),r.createElementVNode("div",fl,[pl,r.withDirectives(r.createElementVNode("input",{id:"user_password",type:"password","onUpdate:modelValue":t[7]||(t[7]=i=>s.password=i),onInput:t[8]||(t[8]=(...i)=>a.handleInput&&a.handleInput(...i))},null,544),[[r.vModelText,s.password]]),s.passwordErrorHelp?(r.openBlock(),r.createElementBlock("p",ml,[r.createTextVNode(r.toDisplayString(s.passwordErrorHelp)+" ",1),s.errCode==2?(r.openBlock(),r.createElementBlock("span",hl,gl)):r.createCommentVNode("v-if",!0)])):r.createCommentVNode("v-if",!0)]),s.isSignup?(r.openBlock(),r.createElementBlock("button",{key:1,class:"form-button",disabled:s.disabled,onClick:t[9]||(t[9]=(...i)=>a.handleSignup&&a.handleSignup(...i))},"Create Your Account",8,yl)):(r.openBlock(),r.createElementBlock("button",{key:2,class:"form-button",disabled:s.disabled,onClick:t[10]||(t[10]=(...i)=>a.handleLogin&&a.handleLogin(...i))},"Login",8,bl))]),s.isSignup?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createElementBlock("div",wl,[El,r.createCommentVNode(' <a href="/user/resend-verification-email"> Need new verification email?</a> ')])),r.createCommentVNode(` <div class="link">
10
10
  By creating an account you agree to our <a href="/site/terms" style="color: #1778f2;">Terms of Use</a>
11
- </div> `)])}const vl=De(Zi,[["render",El],["__scopeId","data-v-4682235c"],["__file","/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/Login1.vue"]]),Hc="",Sl={data(){return{}},components:{Login1:vl},mounted(){},methods:{handleLoginSuccess(){this.$emit("success");const e=localStorage.getItem("cache_passport");e&&(ri(e),localStorage.removeItem("cache_passport"),oo({passport:e},"active_passport_success"))},handleClose(){this.$emit("close")}}},xl=e=>(r.pushScopeId("data-v-47199182"),e=e(),r.popScopeId(),e),Nl={class:"background-cover"},Pl={class:"login-content"},Ol=[xl(()=>r.createElementVNode("svg",{t:"1641536858080",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1477",width:"32",height:"32"},[r.createElementVNode("path",{d:"M512 455.431L794.843 172.59a8 8 0 0 1 11.313 0l45.255 45.255a8 8 0 0 1 0 11.313L568.57 512 851.41 794.843a8 8 0 0 1 0 11.313l-45.255 45.255a8 8 0 0 1-11.313 0L512 568.57 229.157 851.41a8 8 0 0 1-11.313 0l-45.255-45.255a8 8 0 0 1 0-11.313L455.43 512 172.59 229.157a8 8 0 0 1 0-11.313l45.255-45.255a8 8 0 0 1 11.313 0L512 455.43z","p-id":"1478",fill:"#2c2c2c"})],-1))];function Cl(e,t,n,o,s,a){const i=r.resolveComponent("Login1");return r.openBlock(),r.createElementBlock("div",Nl,[r.createElementVNode("div",Pl,[r.createVNode(i,{onSuccess:a.handleLoginSuccess},null,8,["onSuccess"]),r.createElementVNode("div",{class:"cancel",onClick:t[0]||(t[0]=(...l)=>a.handleClose&&a.handleClose(...l))},Ol)])])}const kl=De(Sl,[["render",Cl],["__scopeId","data-v-47199182"],["__file","/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/Login.vue"]]);/*!
11
+ </div> `)])}const vl=De(Zi,[["render",_l],["__scopeId","data-v-4682235c"],["__file","/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/Login1.vue"]]),Hc="",Sl={data(){return{}},components:{Login1:vl},mounted(){},methods:{handleLoginSuccess(){this.$emit("success");const e=localStorage.getItem("cache_passport");e&&(ri(e),localStorage.removeItem("cache_passport"),oo({passport:e},"active_passport_success"))},handleClose(){this.$emit("close")}}},xl=e=>(r.pushScopeId("data-v-47199182"),e=e(),r.popScopeId(),e),Nl={class:"background-cover"},Pl={class:"login-content"},Ol=[xl(()=>r.createElementVNode("svg",{t:"1641536858080",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1477",width:"32",height:"32"},[r.createElementVNode("path",{d:"M512 455.431L794.843 172.59a8 8 0 0 1 11.313 0l45.255 45.255a8 8 0 0 1 0 11.313L568.57 512 851.41 794.843a8 8 0 0 1 0 11.313l-45.255 45.255a8 8 0 0 1-11.313 0L512 568.57 229.157 851.41a8 8 0 0 1-11.313 0l-45.255-45.255a8 8 0 0 1 0-11.313L455.43 512 172.59 229.157a8 8 0 0 1 0-11.313l45.255-45.255a8 8 0 0 1 11.313 0L512 455.43z","p-id":"1478",fill:"#2c2c2c"})],-1))];function Cl(e,t,n,o,s,a){const i=r.resolveComponent("Login1");return r.openBlock(),r.createElementBlock("div",Nl,[r.createElementVNode("div",Pl,[r.createVNode(i,{onSuccess:a.handleLoginSuccess},null,8,["onSuccess"]),r.createElementVNode("div",{class:"cancel",onClick:t[0]||(t[0]=(...l)=>a.handleClose&&a.handleClose(...l))},Ol)])])}const kl=De(Sl,[["render",Cl],["__scopeId","data-v-47199182"],["__file","/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/Login.vue"]]);/*!
12
12
  * pinia v2.1.4
13
13
  * (c) 2023 Eduardo San Martin Morote
14
14
  * @license MIT
15
- */let Fe;const ct=e=>Fe=e,Tl=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function ce(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ve;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ve||(Ve={}));const Gt=typeof window<"u",Wt=(process.env.NODE_ENV!=="production"||!1)&&process.env.NODE_ENV!=="test"&&Gt;function Ro(e,t){for(const n in t){const o=t[n];if(!(n in e))continue;const s=e[n];ce(s)&&ce(o)&&!r.isRef(o)&&!r.isReactive(o)?e[n]=Ro(s,o):e[n]=o}return e}const Do=()=>{};function Fo(e,t,n,o=Do){e.push(t);const s=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),o())};return!n&&r.getCurrentScope()&&r.onScopeDispose(s),s}function we(e,...t){e.slice().forEach(n=>{n(...t)})}const Al=e=>e();function Jt(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,o)=>e.set(o,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],s=e[n];ce(s)&&ce(o)&&e.hasOwnProperty(n)&&!r.isRef(o)&&!r.isReactive(o)?e[n]=Jt(s,o):e[n]=o}return e}const Ll=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function $l(e){return!ce(e)||!e.hasOwnProperty(Ll)}const{assign:H}=Object;function Vo(e){return!!(r.isRef(e)&&e.effect)}function jo(e,t,n,o){const{state:s,actions:a,getters:i}=t,l=n.state.value[e];let f;function c(){!l&&(process.env.NODE_ENV==="production"||!o)&&(n.state.value[e]=s?s():{});const d=process.env.NODE_ENV!=="production"&&o?r.toRefs(r.ref(s?s():{}).value):r.toRefs(n.state.value[e]);return H(d,a,Object.keys(i||{}).reduce((u,p)=>(process.env.NODE_ENV!=="production"&&p in d&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${p}" in store "${e}".`),u[p]=r.markRaw(r.computed(()=>{ct(n);const y=n._s.get(e);return i[p].call(y,y)})),u),{}))}return f=Kt(e,c,t,n,o,!0),f}function Kt(e,t,n={},o,s,a){let i;const l=H({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!o._e.active)throw new Error("Pinia destroyed");const f={deep:!0};process.env.NODE_ENV!=="production"&&!es&&(f.onTrigger=x=>{c?y=x:c==!1&&!w._hotUpdating&&(Array.isArray(y)?y.push(x):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let c,d,u=[],p=[],y;const g=o.state.value[e];!a&&!g&&(process.env.NODE_ENV==="production"||!s)&&(o.state.value[e]={});const h=r.ref({});let b;function S(x){let _;c=d=!1,process.env.NODE_ENV!=="production"&&(y=[]),typeof x=="function"?(x(o.state.value[e]),_={type:Ve.patchFunction,storeId:e,events:y}):(Jt(o.state.value[e],x),_={type:Ve.patchObject,payload:x,storeId:e,events:y});const L=b=Symbol();r.nextTick().then(()=>{b===L&&(c=!0)}),d=!0,we(u,_,o.state.value[e])}const O=a?function(){const{state:_}=n,L=_?_():{};this.$patch($=>{H($,L)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:Do;function P(){i.stop(),u=[],p=[],o._s.delete(e)}function C(x,_){return function(){ct(o);const L=Array.from(arguments),$=[],ue=[];function Yt(A){$.push(A)}function Xt(A){ue.push(A)}we(p,{args:L,name:x,store:w,after:Yt,onError:Xt});let T;try{T=_.apply(this&&this.$id===e?this:w,L)}catch(A){throw we(ue,A),A}return T instanceof Promise?T.then(A=>(we($,A),A)).catch(A=>(we(ue,A),Promise.reject(A))):(we($,T),T)}}const v=r.markRaw({actions:{},getters:{},state:[],hotState:h}),N={_p:o,$id:e,$onAction:Fo.bind(null,p),$patch:S,$reset:O,$subscribe(x,_={}){const L=Fo(u,x,_.detached,()=>$()),$=i.run(()=>r.watch(()=>o.state.value[e],ue=>{(_.flush==="sync"?d:c)&&x({storeId:e,type:Ve.direct,events:y},ue)},H({},f,_)));return L},$dispose:P},w=r.reactive(process.env.NODE_ENV!=="production"||Wt?H({_hmrPayload:v,_customProperties:r.markRaw(new Set)},N):N);o._s.set(e,w);const V=o._a&&o._a.runWithContext||Al,j=o._e.run(()=>(i=r.effectScope(),V(()=>i.run(t))));for(const x in j){const _=j[x];if(r.isRef(_)&&!Vo(_)||r.isReactive(_))process.env.NODE_ENV!=="production"&&s?Xe(h.value,x,r.toRef(j,x)):a||(g&&$l(_)&&(r.isRef(_)?_.value=g[x]:Jt(_,g[x])),o.state.value[e][x]=_),process.env.NODE_ENV!=="production"&&v.state.push(x);else if(typeof _=="function"){const L=process.env.NODE_ENV!=="production"&&s?_:C(x,_);j[x]=L,process.env.NODE_ENV!=="production"&&(v.actions[x]=_),l.actions[x]=_}else process.env.NODE_ENV!=="production"&&Vo(_)&&(v.getters[x]=a?n.getters[x]:_,Gt&&(j._getters||(j._getters=r.markRaw([]))).push(x))}if(H(w,j),H(r.toRaw(w),j),Object.defineProperty(w,"$state",{get:()=>process.env.NODE_ENV!=="production"&&s?h.value:o.state.value[e],set:x=>{if(process.env.NODE_ENV!=="production"&&s)throw new Error("cannot set hotState");S(_=>{H(_,x)})}}),process.env.NODE_ENV!=="production"&&(w._hotUpdate=r.markRaw(x=>{w._hotUpdating=!0,x._hmrPayload.state.forEach(_=>{if(_ in w.$state){const L=x.$state[_],$=w.$state[_];typeof L=="object"&&ce(L)&&ce($)?Ro(L,$):x.$state[_]=$}Xe(w,_,r.toRef(x.$state,_))}),Object.keys(w.$state).forEach(_=>{_ in x.$state||xt(w,_)}),c=!1,d=!1,o.state.value[e]=r.toRef(x._hmrPayload,"hotState"),d=!0,r.nextTick().then(()=>{c=!0});for(const _ in x._hmrPayload.actions){const L=x[_];Xe(w,_,C(_,L))}for(const _ in x._hmrPayload.getters){const L=x._hmrPayload.getters[_],$=a?r.computed(()=>(ct(o),L.call(w,w))):L;Xe(w,_,$)}Object.keys(w._hmrPayload.getters).forEach(_=>{_ in x._hmrPayload.getters||xt(w,_)}),Object.keys(w._hmrPayload.actions).forEach(_=>{_ in x._hmrPayload.actions||xt(w,_)}),w._hmrPayload=x._hmrPayload,w._getters=x._getters,w._hotUpdating=!1})),Wt){const x={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(_=>{Object.defineProperty(w,_,H({value:w[_]},x))})}return o._p.forEach(x=>{if(Wt){const _=i.run(()=>x({store:w,app:o._a,pinia:o,options:l}));Object.keys(_||{}).forEach(L=>w._customProperties.add(L)),H(w,_)}else H(w,i.run(()=>x({store:w,app:o._a,pinia:o,options:l})))}),process.env.NODE_ENV!=="production"&&w.$state&&typeof w.$state=="object"&&typeof w.$state.constructor=="function"&&!w.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
15
+ */let Fe;const ct=e=>Fe=e,Tl=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function ce(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ve;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ve||(Ve={}));const Gt=typeof window<"u",Wt=(process.env.NODE_ENV!=="production"||!1)&&process.env.NODE_ENV!=="test"&&Gt;function Ro(e,t){for(const n in t){const o=t[n];if(!(n in e))continue;const s=e[n];ce(s)&&ce(o)&&!r.isRef(o)&&!r.isReactive(o)?e[n]=Ro(s,o):e[n]=o}return e}const Do=()=>{};function Fo(e,t,n,o=Do){e.push(t);const s=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),o())};return!n&&r.getCurrentScope()&&r.onScopeDispose(s),s}function we(e,...t){e.slice().forEach(n=>{n(...t)})}const Al=e=>e();function Jt(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,o)=>e.set(o,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],s=e[n];ce(s)&&ce(o)&&e.hasOwnProperty(n)&&!r.isRef(o)&&!r.isReactive(o)?e[n]=Jt(s,o):e[n]=o}return e}const Ll=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function $l(e){return!ce(e)||!e.hasOwnProperty(Ll)}const{assign:H}=Object;function Vo(e){return!!(r.isRef(e)&&e.effect)}function jo(e,t,n,o){const{state:s,actions:a,getters:i}=t,l=n.state.value[e];let f;function c(){!l&&(process.env.NODE_ENV==="production"||!o)&&(n.state.value[e]=s?s():{});const d=process.env.NODE_ENV!=="production"&&o?r.toRefs(r.ref(s?s():{}).value):r.toRefs(n.state.value[e]);return H(d,a,Object.keys(i||{}).reduce((u,p)=>(process.env.NODE_ENV!=="production"&&p in d&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${p}" in store "${e}".`),u[p]=r.markRaw(r.computed(()=>{ct(n);const y=n._s.get(e);return i[p].call(y,y)})),u),{}))}return f=Kt(e,c,t,n,o,!0),f}function Kt(e,t,n={},o,s,a){let i;const l=H({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!o._e.active)throw new Error("Pinia destroyed");const f={deep:!0};process.env.NODE_ENV!=="production"&&!es&&(f.onTrigger=x=>{c?y=x:c==!1&&!w._hotUpdating&&(Array.isArray(y)?y.push(x):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let c,d,u=[],p=[],y;const g=o.state.value[e];!a&&!g&&(process.env.NODE_ENV==="production"||!s)&&(o.state.value[e]={});const h=r.ref({});let b;function S(x){let E;c=d=!1,process.env.NODE_ENV!=="production"&&(y=[]),typeof x=="function"?(x(o.state.value[e]),E={type:Ve.patchFunction,storeId:e,events:y}):(Jt(o.state.value[e],x),E={type:Ve.patchObject,payload:x,storeId:e,events:y});const L=b=Symbol();r.nextTick().then(()=>{b===L&&(c=!0)}),d=!0,we(u,E,o.state.value[e])}const O=a?function(){const{state:E}=n,L=E?E():{};this.$patch($=>{H($,L)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:Do;function P(){i.stop(),u=[],p=[],o._s.delete(e)}function C(x,E){return function(){ct(o);const L=Array.from(arguments),$=[],ue=[];function Yt(A){$.push(A)}function Xt(A){ue.push(A)}we(p,{args:L,name:x,store:w,after:Yt,onError:Xt});let T;try{T=E.apply(this&&this.$id===e?this:w,L)}catch(A){throw we(ue,A),A}return T instanceof Promise?T.then(A=>(we($,A),A)).catch(A=>(we(ue,A),Promise.reject(A))):(we($,T),T)}}const v=r.markRaw({actions:{},getters:{},state:[],hotState:h}),N={_p:o,$id:e,$onAction:Fo.bind(null,p),$patch:S,$reset:O,$subscribe(x,E={}){const L=Fo(u,x,E.detached,()=>$()),$=i.run(()=>r.watch(()=>o.state.value[e],ue=>{(E.flush==="sync"?d:c)&&x({storeId:e,type:Ve.direct,events:y},ue)},H({},f,E)));return L},$dispose:P},w=r.reactive(process.env.NODE_ENV!=="production"||Wt?H({_hmrPayload:v,_customProperties:r.markRaw(new Set)},N):N);o._s.set(e,w);const V=o._a&&o._a.runWithContext||Al,j=o._e.run(()=>(i=r.effectScope(),V(()=>i.run(t))));for(const x in j){const E=j[x];if(r.isRef(E)&&!Vo(E)||r.isReactive(E))process.env.NODE_ENV!=="production"&&s?Xe(h.value,x,r.toRef(j,x)):a||(g&&$l(E)&&(r.isRef(E)?E.value=g[x]:Jt(E,g[x])),o.state.value[e][x]=E),process.env.NODE_ENV!=="production"&&v.state.push(x);else if(typeof E=="function"){const L=process.env.NODE_ENV!=="production"&&s?E:C(x,E);j[x]=L,process.env.NODE_ENV!=="production"&&(v.actions[x]=E),l.actions[x]=E}else process.env.NODE_ENV!=="production"&&Vo(E)&&(v.getters[x]=a?n.getters[x]:E,Gt&&(j._getters||(j._getters=r.markRaw([]))).push(x))}if(H(w,j),H(r.toRaw(w),j),Object.defineProperty(w,"$state",{get:()=>process.env.NODE_ENV!=="production"&&s?h.value:o.state.value[e],set:x=>{if(process.env.NODE_ENV!=="production"&&s)throw new Error("cannot set hotState");S(E=>{H(E,x)})}}),process.env.NODE_ENV!=="production"&&(w._hotUpdate=r.markRaw(x=>{w._hotUpdating=!0,x._hmrPayload.state.forEach(E=>{if(E in w.$state){const L=x.$state[E],$=w.$state[E];typeof L=="object"&&ce(L)&&ce($)?Ro(L,$):x.$state[E]=$}Xe(w,E,r.toRef(x.$state,E))}),Object.keys(w.$state).forEach(E=>{E in x.$state||xt(w,E)}),c=!1,d=!1,o.state.value[e]=r.toRef(x._hmrPayload,"hotState"),d=!0,r.nextTick().then(()=>{c=!0});for(const E in x._hmrPayload.actions){const L=x[E];Xe(w,E,C(E,L))}for(const E in x._hmrPayload.getters){const L=x._hmrPayload.getters[E],$=a?r.computed(()=>(ct(o),L.call(w,w))):L;Xe(w,E,$)}Object.keys(w._hmrPayload.getters).forEach(E=>{E in x._hmrPayload.getters||xt(w,E)}),Object.keys(w._hmrPayload.actions).forEach(E=>{E in x._hmrPayload.actions||xt(w,E)}),w._hmrPayload=x._hmrPayload,w._getters=x._getters,w._hotUpdating=!1})),Wt){const x={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(E=>{Object.defineProperty(w,E,H({value:w[E]},x))})}return o._p.forEach(x=>{if(Wt){const E=i.run(()=>x({store:w,app:o._a,pinia:o,options:l}));Object.keys(E||{}).forEach(L=>w._customProperties.add(L)),H(w,E)}else H(w,i.run(()=>x({store:w,app:o._a,pinia:o,options:l})))}),process.env.NODE_ENV!=="production"&&w.$state&&typeof w.$state=="object"&&typeof w.$state.constructor=="function"&&!w.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
16
16
  state: () => new MyClass()
17
17
  Found in store "${w.$id}".`),g&&a&&n.hydrate&&n.hydrate(w.$state,g),c=!0,d=!0,w}function Rl(e,t,n){let o,s;const a=typeof t=="function";if(typeof e=="string")o=e,s=a?n:t;else if(s=e,o=e.id,process.env.NODE_ENV!=="production"&&typeof o!="string")throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');function i(l,f){const c=r.hasInjectionContext();if(l=(process.env.NODE_ENV==="test"&&Fe&&Fe._testing?null:l)||(c?r.inject(Tl,null):null),l&&ct(l),process.env.NODE_ENV!=="production"&&!Fe)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Did you forget to install pinia?
18
18
  const pinia = createPinia()
@@ -23,4 +23,4 @@ This will fail in production.`);l=Fe,l._s.has(o)||(a?Kt(o,t,s,l):jo(o,s,l),proce
23
23
  <span id="free_cnt">My Credit: {{user.free_cnt}}</span>
24
24
  </div>
25
25
  <div class="user-upgrade user-buy-credit"><span>Buy credit</span></div>
26
- </div> `),r.createElementVNode("div",{class:"user-item flew-row-v-center space-between",onClick:t[0]||(t[0]=(...i)=>a.handlePay&&a.handlePay(...i))},[r.createElementVNode("div",Hl,[n.user.is_subscribed?(r.openBlock(),r.createElementBlock("svg",zl,ql)):(r.openBlock(),r.createElementBlock("svg",Gl,Wl)),r.createElementVNode("span",null,"My Plan: "+r.toDisplayString(n.user.is_subscribed?"Premium Plan":"free"),1)]),!n.user.is_subscribed&&n.from=="addon"?(r.openBlock(),r.createElementBlock("div",Jl,Kl)):r.createCommentVNode("v-if",!0)]),n.from!="addon"?(r.openBlock(),r.createElementBlock("a",{key:0,rel:"nofollow",href:s.path+"/user/logout"},Xl,8,Yl)):r.createCommentVNode("v-if",!0)])}const Io=De(Vl,[["render",Zl],["__scopeId","data-v-8580ad75"],["__file","/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/PersonalCenter.vue"]]),Xc="",Ql={props:["content","top"]},ec=(e=>(r.pushScopeId("data-v-7b6def48"),e=e(),r.popScopeId(),e))(()=>r.createElementVNode("svg",{t:"1637907583780",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2289",width:"32",height:"32"},[r.createElementVNode("path",{d:"M512 1024C229.248 1024 0 794.752 0 512S229.248 0 512 0s512 229.248 512 512-229.248 512-512 512z m-114.176-310.954667a53.333333 53.333333 0 0 0 75.434667 0l323.328-323.328a53.333333 53.333333 0 1 0-75.434667-75.434666l-287.914667 283.306666-128.853333-128.853333a53.333333 53.333333 0 1 0-75.434667 75.434667l168.874667 168.874666z",fill:"#ffffff","p-id":"2290"})],-1));function tc(e,t,n,o,s,a){return r.openBlock(),r.createElementBlock("div",{class:"toast-wrapper",style:r.normalizeStyle({top:n.top||"60PX"})},[ec,r.createElementVNode("span",null,"Congratulations! you have successfully "+r.toDisplayString(n.content)+".",1)],4)}const nc=De(Ql,[["render",tc],["__scopeId","data-v-7b6def48"],["__file","/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/Toast.vue"]]);function oc(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[r.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z","clip-rule":"evenodd"})])}const Qc="",_e=e=>(r.pushScopeId("data-v-c970699f"),e=e(),r.popScopeId(),e),rc={class:"flex items-center justify-between py-6 lg:px-0 px-6","aria-label":"Global"},sc={class:"flex lg:flex-1"},ac=["href"],ic=["src","alt"],lc={class:"pl-2 text-xl"},cc={class:"flex lg:hidden"},uc=_e(()=>r.createElementVNode("span",{class:"sr-only"},"Open main menu",-1)),dc={class:"hidden lg:flex lg:gap-x-12"},fc=_e(()=>r.createElementVNode("span",null,"Apps",-1)),pc={class:"w-56 shrink rounded-xl bg-white p-4 text-sm font-semibold leading-6 text-gray-900 shadow-lg ring-1 ring-gray-900/5"},mc=["href"],hc=["href","target"],gc={key:0,class:"hidden lg:flex lg:flex-1 lg:justify-end"},yc={key:1,class:"hidden lg:flex lg:flex-1 lg:justify-end"},bc=_e(()=>r.createElementVNode("span",{"aria-hidden":"true"},null,-1)),wc={key:2,class:"hidden lg:flex lg:flex-1 lg:justify-end text-sm font-semibold leading-6 text-gray-900 items-center"},_c={class:"pr-4"},Ec=["src"],vc=_e(()=>r.createElementVNode("div",{class:"open-icon"},null,-1)),Sc={class:"user-center-dialog shadow-xl"},xc=_e(()=>r.createElementVNode("div",{class:"fixed inset-0 z-50"},null,-1)),Nc={class:"flex items-center justify-between"},Pc=["href"],Oc={class:"sr-only"},Cc=["src","alt"],kc=_e(()=>r.createElementVNode("span",{class:"sr-only"},"Close menu",-1)),Tc={class:"mt-6 flow-root"},Ac={class:"-my-6 divide-y divide-gray-500/10"},Lc={class:"space-y-2 py-6"},$c={key:0,target:"_blank",href:"https://www.livepolls.app/apps",class:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"},Rc=["href","target"],Dc={key:0,class:"py-6"},Fc=De({__name:"Header",props:{isShenHe:{type:Boolean,default:!1},userInfo:{type:Object,default:()=>null},userStore:{type:Object,default:()=>null},from:{type:String,default:""},className:{type:String,default:"max-w-7xl"}},emits:["loginSuccess","initUserCallback"],setup(e,{emit:t}){const n=e;let o={logo:"https://lh3.googleusercontent.com/-Rt2iBOrXu0M/ZKvVIrKS3aI/AAAAAAAAADU/H-qh2KKs4E84IsfLcxAru0j5aN_rdITjwCNcBGAsYHQ/s400/ff.png",name:"Video Translator"};typeof app_config=="object"&&app_config&&Object.keys(app_config).length>0&&(o=app_config),console.log("appInfo",o);const s=r.ref(o),a=rt(),i=[{name:"Live Poll Maker for Slides",href:"https://workspace.google.com/marketplace/app/live_polls_maker/964324417500"},{name:"Geocode for Sheets",href:"https://workspace.google.com/marketplace/app/geocode_for_sheets/1083994590944"},{name:"Slides Translator",href:"https://workspace.google.com/marketplace/app/translate_slides_slides_translator/552662411825"},{name:"Screen&Audio Recorder",href:"https://workspace.google.com/marketplace/app/screenaudio_recorder/659492711995"},{name:"ChatGPT Slides Maker",href:"https://workspace.google.com/marketplace/app/chatgpt_slides_maker/715931934006"},{name:"More Apps >",href:"https://www.livepolls.app/apps"}],l=r.ref(n.isShenHe?[{name:"Privacy Policy",href:a+"/privacy",target:"_blank"}]:[{name:"Pricing",href:a+"/pricing",target:"_self"}]),f=r.ref(a||"/"),c=r.ref(!1),d=r.computed(()=>n.userInfo||n.userStore.user),u=()=>{n.userStore&&n.userStore.showLogin(!0)},p=r.ref(!1);r.onMounted(()=>{!n.userInfo&&n.userStore.getUser().then(({profile:C})=>{t("initUserCallback",C),console.log("login",C),!C&&n.from!="login"&&!n.isShenHe&&O()},()=>{})});async function y(){g();const C=Te.service({text:"logining...",background:"rgba(0, 0, 0, 0.7)"});try{await n.userStore.getUser(),t("loginSuccess")}catch{}finally{C.close()}}function g(){n.userStore.showLogin(!1)}function h(){c.value=!0}function b(){c.value=!1}function S(){c.value=!c.value}function O(C){console.log("addGoogleAccountsScript:before"),typeof google<"u"&&(google.accounts.id.initialize({client_id:"704677828444-ihbv6faprun043f3iuponnrctutdssgj.apps.googleusercontent.com",callback:P}),google.accounts.id.prompt())}function P(C){!C||!C.credential||so(C.credential).then(v=>{console.log("fetch_success",v),n.userStore?n.userStore.getUser():location.href=location.pathname},v=>{console.log("fetch_fail",v)})}return(C,v)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("header",{class:r.normalizeClass(["absolute inset-x-0 px-1 top-0 z-30 mx-auto",[e.className]])},[r.createElementVNode("nav",rc,[r.createElementVNode("div",sc,[r.createElementVNode("a",{href:f.value,class:"-m-1.5 p-1.5 flex items-center"},[r.createElementVNode("img",{class:"h-8 w-auto",src:s.value.logo,alt:s.value.name},null,8,ic),r.createElementVNode("span",lc,r.toDisplayString(s.value.name),1)],8,ac)]),r.createElementVNode("div",cc,[r.createElementVNode("button",{type:"button",class:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700",onClick:v[0]||(v[0]=N=>p.value=!0)},[uc,r.createVNode(r.unref(Yi),{class:"h-6 w-6","aria-hidden":"true"})])]),r.createElementVNode("div",dc,[e.isShenHe?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createBlock(r.unref($o),{key:0,class:"relative"},{default:r.withCtx(()=>[r.createVNode(r.unref(Ji),{class:"inline-flex items-center gap-x-1 text-sm font-semibold h-7 leading-7 text-gray-900"},{default:r.withCtx(()=>[fc,r.createVNode(r.unref(oc),{class:"h-5 w-5","aria-hidden":"true"})]),_:1}),r.createVNode(r.Transition,{"enter-active-class":"transition ease-out duration-200","enter-from-class":"opacity-0 translate-y-1","enter-to-class":"opacity-100 translate-y-0","leave-active-class":"transition ease-in duration-150","leave-from-class":"opacity-100 translate-y-0","leave-to-class":"opacity-0 translate-y-1"},{default:r.withCtx(()=>[r.createVNode(r.unref(Ki),{class:"absolute left-1/2 z-10 mt-5 flex w-screen max-w-min -translate-x-1/2 px-4"},{default:r.withCtx(()=>[r.createElementVNode("div",pc,[(r.openBlock(),r.createElementBlock(r.Fragment,null,r.renderList(i,N=>r.createElementVNode("a",{key:N.name,href:N.href,class:"block p-2 hover:text-indigo-600",target:"_blank"},r.toDisplayString(N.name),9,mc)),64))])]),_:1})]),_:1})]),_:1})),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.value,N=>(r.openBlock(),r.createElementBlock("a",{key:N.name,href:N.href,target:N.target,class:"text-sm h-7 leading-7 font-semibold text-gray-900"},r.toDisplayString(N.name),9,hc))),128))]),e.isShenHe?(r.openBlock(),r.createElementBlock("div",gc)):d.value?(r.openBlock(),r.createElementBlock("div",wc,[r.createElementVNode("div",{class:"cursor-pointer flex items-center",onMouseenter:h,onMouseleave:b},[r.createElementVNode("div",_c,[r.createElementVNode("span",null,r.toDisplayString(d.value.username),1)]),r.createElementVNode("img",{class:"user-avatar h-10 rounded-full",src:d.value.avatar||"https://statics.imgkits.com/images/default_user_avatar_black.png",alt:"user avatar"},null,8,Ec),vc,r.withDirectives(r.createElementVNode("div",null,[r.createElementVNode("div",Sc,[d.value?(r.openBlock(),r.createBlock(Io,{key:0,user:d.value},null,8,["user"])):r.createCommentVNode("v-if",!0)])],512),[[r.vShow,c.value]])],32)])):(r.openBlock(),r.createElementBlock("div",yc,[r.createElementVNode("a",{onClick:u,href:"javscript:void(0)",class:"text-sm leading-6 rounded-3xl bg-indigo-600 px-8 py-1.5 font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"},[r.createTextVNode("Log in"),bc])]))]),r.createVNode(r.unref(zi),{as:"div",class:"lg:hidden",onClose:v[2]||(v[2]=N=>p.value=!1),open:p.value},{default:r.withCtx(()=>[xc,r.createVNode(r.unref(qi),{class:"fixed inset-y-0 right-0 z-50 w-full overflow-y-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10"},{default:r.withCtx(()=>[r.createElementVNode("div",Nc,[r.createElementVNode("a",{href:f.value,class:"-m-1.5 p-1.5"},[r.createElementVNode("span",Oc,r.toDisplayString(s.value.name),1),r.createElementVNode("img",{class:"h-8 w-auto",src:s.value.logo,alt:s.value.name},null,8,Cc)],8,Pc),r.createElementVNode("button",{type:"button",class:"-m-2.5 rounded-md p-2.5 text-gray-700",onClick:v[1]||(v[1]=N=>p.value=!1)},[kc,r.createVNode(r.unref(Xi),{class:"h-6 w-6","aria-hidden":"true"})])]),r.createElementVNode("div",Tc,[r.createElementVNode("div",Ac,[r.createElementVNode("div",Lc,[e.isShenHe?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createElementBlock("a",$c,"More Extensions")),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.value,N=>(r.openBlock(),r.createElementBlock("a",{key:N.name,href:N.href,target:N.target,class:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"},r.toDisplayString(N.name),9,Rc))),128))]),d.value?(r.openBlock(),r.createElementBlock("div",{key:1,class:"relative sm-user-center-dialog py-6 right flew-center",onClick:S},[d.value?(r.openBlock(),r.createBlock(Io,{key:0,user:d.value},null,8,["user"])):r.createCommentVNode("v-if",!0)])):(r.openBlock(),r.createElementBlock("div",Dc,[r.createElementVNode("a",{href:"#",onClick:u,class:"-mx-3 block rounded-lg px-3 py-2.5 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"},"Log in")]))])])]),_:1})]),_:1},8,["open"])],2),r.createCommentVNode(" 引入登录 "),e.userStore.isShowLogin?(r.openBlock(),r.createBlock(kl,{key:0,onSuccess:y,onClose:g})):r.createCommentVNode("v-if",!0),e.userStore.isShowToast?(r.openBlock(),r.createBlock(nc,{key:1,content:e.userStore.toastContent},null,8,["content"])):r.createCommentVNode("v-if",!0)],64))}},[["__scopeId","data-v-c970699f"],["__file","/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/Header.vue"]]);return{install(e){e.component("my-header",Fc)}}});
26
+ </div> `),r.createElementVNode("div",{class:"user-item flew-row-v-center space-between",onClick:t[0]||(t[0]=(...i)=>a.handlePay&&a.handlePay(...i))},[r.createElementVNode("div",Hl,[n.user.is_subscribed?(r.openBlock(),r.createElementBlock("svg",zl,ql)):(r.openBlock(),r.createElementBlock("svg",Gl,Wl)),r.createElementVNode("span",null,"My Plan: "+r.toDisplayString(n.user.is_subscribed?"Premium Plan":"free"),1)]),!n.user.is_subscribed&&n.from=="addon"?(r.openBlock(),r.createElementBlock("div",Jl,Kl)):r.createCommentVNode("v-if",!0)]),n.from!="addon"?(r.openBlock(),r.createElementBlock("a",{key:0,rel:"nofollow",href:s.path+"/user/logout"},Xl,8,Yl)):r.createCommentVNode("v-if",!0)])}const Io=De(Vl,[["render",Zl],["__scopeId","data-v-8580ad75"],["__file","/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/PersonalCenter.vue"]]),Xc="",Ql={props:["content","top"]},ec=(e=>(r.pushScopeId("data-v-7b6def48"),e=e(),r.popScopeId(),e))(()=>r.createElementVNode("svg",{t:"1637907583780",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2289",width:"32",height:"32"},[r.createElementVNode("path",{d:"M512 1024C229.248 1024 0 794.752 0 512S229.248 0 512 0s512 229.248 512 512-229.248 512-512 512z m-114.176-310.954667a53.333333 53.333333 0 0 0 75.434667 0l323.328-323.328a53.333333 53.333333 0 1 0-75.434667-75.434666l-287.914667 283.306666-128.853333-128.853333a53.333333 53.333333 0 1 0-75.434667 75.434667l168.874667 168.874666z",fill:"#ffffff","p-id":"2290"})],-1));function tc(e,t,n,o,s,a){return r.openBlock(),r.createElementBlock("div",{class:"toast-wrapper",style:r.normalizeStyle({top:n.top||"60PX"})},[ec,r.createElementVNode("span",null,"Congratulations! you have successfully "+r.toDisplayString(n.content)+".",1)],4)}const nc=De(Ql,[["render",tc],["__scopeId","data-v-7b6def48"],["__file","/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/Toast.vue"]]);function oc(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[r.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z","clip-rule":"evenodd"})])}const Qc="",Ee=e=>(r.pushScopeId("data-v-c970699f"),e=e(),r.popScopeId(),e),rc={class:"flex items-center justify-between py-6 lg:px-0 px-6","aria-label":"Global"},sc={class:"flex lg:flex-1"},ac=["href"],ic=["src","alt"],lc={class:"pl-2 text-xl"},cc={class:"flex lg:hidden"},uc=Ee(()=>r.createElementVNode("span",{class:"sr-only"},"Open main menu",-1)),dc={class:"hidden lg:flex lg:gap-x-12"},fc=Ee(()=>r.createElementVNode("span",null,"Apps",-1)),pc={class:"w-56 shrink rounded-xl bg-white p-4 text-sm font-semibold leading-6 text-gray-900 shadow-lg ring-1 ring-gray-900/5"},mc=["href"],hc=["href","target"],gc={key:0,class:"hidden lg:flex lg:flex-1 lg:justify-end"},yc={key:1,class:"hidden lg:flex lg:flex-1 lg:justify-end"},bc=Ee(()=>r.createElementVNode("span",{"aria-hidden":"true"},null,-1)),wc={key:2,class:"hidden lg:flex lg:flex-1 lg:justify-end text-sm font-semibold leading-6 text-gray-900 items-center"},Ec={class:"pr-4"},_c=["src"],vc=Ee(()=>r.createElementVNode("div",{class:"open-icon"},null,-1)),Sc={class:"user-center-dialog shadow-xl"},xc=Ee(()=>r.createElementVNode("div",{class:"fixed inset-0 z-50"},null,-1)),Nc={class:"flex items-center justify-between"},Pc=["href"],Oc={class:"sr-only"},Cc=["src","alt"],kc=Ee(()=>r.createElementVNode("span",{class:"sr-only"},"Close menu",-1)),Tc={class:"mt-6 flow-root"},Ac={class:"-my-6 divide-y divide-gray-500/10"},Lc={class:"space-y-2 py-6"},$c={key:0,target:"_blank",href:"https://www.livepolls.app/apps",class:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"},Rc=["href","target"],Dc={key:0,class:"py-6"},Fc=De({__name:"Header",props:{isShenHe:{type:Boolean,default:!1},userInfo:{type:Object,default:()=>null},userStore:{type:Object,default:()=>null},from:{type:String,default:""},className:{type:String,default:"max-w-7xl"}},emits:["loginSuccess","initUserCallback"],setup(e,{emit:t}){const n=e;let o={logo:"https://lh3.googleusercontent.com/-Rt2iBOrXu0M/ZKvVIrKS3aI/AAAAAAAAADU/H-qh2KKs4E84IsfLcxAru0j5aN_rdITjwCNcBGAsYHQ/s400/ff.png",name:"Video Translator"};typeof app_config=="object"&&app_config&&Object.keys(app_config).length>0&&(o=app_config),console.log("appInfo",o);const s=r.ref(o),a=rt(),i=[{name:"Live Poll Maker for Slides",href:"https://workspace.google.com/marketplace/app/live_polls_maker/964324417500"},{name:"Geocode for Sheets",href:"https://workspace.google.com/marketplace/app/geocode_for_sheets/1083994590944"},{name:"Slides Translator",href:"https://workspace.google.com/marketplace/app/translate_slides_slides_translator/552662411825"},{name:"Screen&Audio Recorder",href:"https://workspace.google.com/marketplace/app/screenaudio_recorder/659492711995"},{name:"ChatGPT Slides Maker",href:"https://workspace.google.com/marketplace/app/chatgpt_slides_maker/715931934006"},{name:"More Apps >",href:"https://www.livepolls.app/apps"}],l=r.ref(n.isShenHe?[{name:"Privacy Policy",href:a+"/privacy",target:"_blank"}]:[{name:"Pricing",href:a+"/pricing",target:"_self"}]),f=r.ref(a||"/"),c=r.ref(!1),d=r.computed(()=>n.userInfo||n.userStore&&n.userStore.user),u=()=>{n.userStore&&n.userStore.showLogin(!0)},p=r.ref(!1);r.onMounted(()=>{!n.userInfo&&n.userStore.getUser().then(({profile:C})=>{t("initUserCallback",C),console.log("login",C),!C&&n.from!="login"&&!n.isShenHe&&O()},()=>{})});async function y(){g();const C=Te.service({text:"logining...",background:"rgba(0, 0, 0, 0.7)"});try{await n.userStore.getUser(),t("loginSuccess")}catch{}finally{C.close()}}function g(){n.userStore.showLogin(!1)}function h(){c.value=!0}function b(){c.value=!1}function S(){c.value=!c.value}function O(C){console.log("addGoogleAccountsScript:before"),typeof google<"u"&&(google.accounts.id.initialize({client_id:"704677828444-ihbv6faprun043f3iuponnrctutdssgj.apps.googleusercontent.com",callback:P}),google.accounts.id.prompt())}function P(C){!C||!C.credential||so(C.credential).then(v=>{console.log("fetch_success",v),n.userStore?n.userStore.getUser():location.href=location.pathname},v=>{console.log("fetch_fail",v)})}return(C,v)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("header",{class:r.normalizeClass(["absolute inset-x-0 px-1 top-0 z-30 mx-auto",[e.className]])},[r.createElementVNode("nav",rc,[r.createElementVNode("div",sc,[r.createElementVNode("a",{href:f.value,class:"-m-1.5 p-1.5 flex items-center"},[r.createElementVNode("img",{class:"h-8 w-auto",src:s.value.logo,alt:s.value.name},null,8,ic),r.createElementVNode("span",lc,r.toDisplayString(s.value.name),1)],8,ac)]),r.createElementVNode("div",cc,[r.createElementVNode("button",{type:"button",class:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700",onClick:v[0]||(v[0]=N=>p.value=!0)},[uc,r.createVNode(r.unref(Yi),{class:"h-6 w-6","aria-hidden":"true"})])]),r.createElementVNode("div",dc,[e.isShenHe?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createBlock(r.unref($o),{key:0,class:"relative"},{default:r.withCtx(()=>[r.createVNode(r.unref(Ji),{class:"inline-flex items-center gap-x-1 text-sm font-semibold h-7 leading-7 text-gray-900"},{default:r.withCtx(()=>[fc,r.createVNode(r.unref(oc),{class:"h-5 w-5","aria-hidden":"true"})]),_:1}),r.createVNode(r.Transition,{"enter-active-class":"transition ease-out duration-200","enter-from-class":"opacity-0 translate-y-1","enter-to-class":"opacity-100 translate-y-0","leave-active-class":"transition ease-in duration-150","leave-from-class":"opacity-100 translate-y-0","leave-to-class":"opacity-0 translate-y-1"},{default:r.withCtx(()=>[r.createVNode(r.unref(Ki),{class:"absolute left-1/2 z-10 mt-5 flex w-screen max-w-min -translate-x-1/2 px-4"},{default:r.withCtx(()=>[r.createElementVNode("div",pc,[(r.openBlock(),r.createElementBlock(r.Fragment,null,r.renderList(i,N=>r.createElementVNode("a",{key:N.name,href:N.href,class:"block p-2 hover:text-indigo-600",target:"_blank"},r.toDisplayString(N.name),9,mc)),64))])]),_:1})]),_:1})]),_:1})),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.value,N=>(r.openBlock(),r.createElementBlock("a",{key:N.name,href:N.href,target:N.target,class:"text-sm h-7 leading-7 font-semibold text-gray-900"},r.toDisplayString(N.name),9,hc))),128))]),e.isShenHe?(r.openBlock(),r.createElementBlock("div",gc)):d.value?(r.openBlock(),r.createElementBlock("div",wc,[r.createElementVNode("div",{class:"cursor-pointer flex items-center",onMouseenter:h,onMouseleave:b},[r.createElementVNode("div",Ec,[r.createElementVNode("span",null,r.toDisplayString(d.value.username),1)]),r.createElementVNode("img",{class:"user-avatar h-10 rounded-full",src:d.value.avatar||"https://statics.imgkits.com/images/default_user_avatar_black.png",alt:"user avatar"},null,8,_c),vc,r.withDirectives(r.createElementVNode("div",null,[r.createElementVNode("div",Sc,[d.value?(r.openBlock(),r.createBlock(Io,{key:0,user:d.value},null,8,["user"])):r.createCommentVNode("v-if",!0)])],512),[[r.vShow,c.value]])],32)])):(r.openBlock(),r.createElementBlock("div",yc,[r.createElementVNode("a",{onClick:u,href:"javscript:void(0)",class:"text-sm leading-6 rounded-3xl bg-indigo-600 px-8 py-1.5 font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"},[r.createTextVNode("Log in"),bc])]))]),r.createVNode(r.unref(zi),{as:"div",class:"lg:hidden",onClose:v[2]||(v[2]=N=>p.value=!1),open:p.value},{default:r.withCtx(()=>[xc,r.createVNode(r.unref(qi),{class:"fixed inset-y-0 right-0 z-50 w-full overflow-y-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10"},{default:r.withCtx(()=>[r.createElementVNode("div",Nc,[r.createElementVNode("a",{href:f.value,class:"-m-1.5 p-1.5"},[r.createElementVNode("span",Oc,r.toDisplayString(s.value.name),1),r.createElementVNode("img",{class:"h-8 w-auto",src:s.value.logo,alt:s.value.name},null,8,Cc)],8,Pc),r.createElementVNode("button",{type:"button",class:"-m-2.5 rounded-md p-2.5 text-gray-700",onClick:v[1]||(v[1]=N=>p.value=!1)},[kc,r.createVNode(r.unref(Xi),{class:"h-6 w-6","aria-hidden":"true"})])]),r.createElementVNode("div",Tc,[r.createElementVNode("div",Ac,[r.createElementVNode("div",Lc,[e.isShenHe?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createElementBlock("a",$c,"More Extensions")),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.value,N=>(r.openBlock(),r.createElementBlock("a",{key:N.name,href:N.href,target:N.target,class:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"},r.toDisplayString(N.name),9,Rc))),128))]),d.value?(r.openBlock(),r.createElementBlock("div",{key:1,class:"relative sm-user-center-dialog py-6 right flew-center",onClick:S},[d.value?(r.openBlock(),r.createBlock(Io,{key:0,user:d.value},null,8,["user"])):r.createCommentVNode("v-if",!0)])):(r.openBlock(),r.createElementBlock("div",Dc,[r.createElementVNode("a",{href:"#",onClick:u,class:"-mx-3 block rounded-lg px-3 py-2.5 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"},"Log in")]))])])]),_:1})]),_:1},8,["open"])],2),r.createCommentVNode(" 引入登录 "),e.userStore&&e.userStore.isShowLogin?(r.openBlock(),r.createBlock(kl,{key:0,onSuccess:y,onClose:g})):r.createCommentVNode("v-if",!0),e.userStore&&e.userStore.isShowToast?(r.openBlock(),r.createBlock(nc,{key:1,content:e.userStore&&e.userStore.toastContent},null,8,["content"])):r.createCommentVNode("v-if",!0)],64))}},[["__scopeId","data-v-c970699f"],["__file","/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/Header.vue"]]);return{install(e){e.component("my-header",Fc)}}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "my-header-yichong",
3
- "version": "1.1.8",
3
+ "version": "2.0.0",
4
4
  "description": "",
5
5
  "main": "my-header.umd.cjs",
6
6
  "scripts": {