import{d as B,r as v,o as Q,a as O,b as E,c as g,e as w,f as S,w as tt,g as A,h as H,t as P,i as ae,F as ce,j as I,_ as z,k as nt,l as Ee,n as Pe,H as rt}from"./index-jRSp3SF2.js";function De(e,t){return function(){return e.apply(t,arguments)}}const{toString:st}=Object.prototype,{getPrototypeOf:pe}=Object,Z=(e=>t=>{const n=st.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),D=e=>(e=e.toLowerCase(),t=>Z(t)===e),Y=e=>t=>typeof t===e,{isArray:$}=Array,q=Y("undefined");function ot(e){return e!==null&&!q(e)&&e.constructor!==null&&!q(e.constructor)&&C(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ue=D("ArrayBuffer");function it(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ue(e.buffer),t}const at=Y("string"),C=Y("function"),Fe=Y("number"),ee=e=>e!==null&&typeof e=="object",ct=e=>e===!0||e===!1,W=e=>{if(Z(e)!=="object")return!1;const t=pe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},lt=D("Date"),ut=D("File"),dt=D("Blob"),ft=D("FileList"),ht=e=>ee(e)&&C(e.pipe),pt=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||C(e.append)&&((t=Z(e))==="formdata"||t==="object"&&C(e.toString)&&e.toString()==="[object FormData]"))},mt=D("URLSearchParams"),yt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function V(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),$(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const Le=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,je=e=>!q(e)&&e!==Le;function le(){const{caseless:e}=je(this)&&this||{},t={},n=(r,s)=>{const o=e&&Be(t,s)||s;W(t[o])&&W(r)?t[o]=le(t[o],r):W(r)?t[o]=le({},r):$(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r(V(t,(s,o)=>{n&&C(s)?e[o]=De(s,n):e[o]=s},{allOwnKeys:r}),e),wt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),bt=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Et=(e,t,n,r)=>{let s,o,i;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&pe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},St=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},gt=e=>{if(!e)return null;if($(e))return e;let t=e.length;if(!Fe(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Rt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&pe(Uint8Array)),xt=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Ot=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Tt=D("HTMLFormElement"),At=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Se=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),vt=D("RegExp"),$e=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};V(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},Ct=e=>{$e(e,(t,n)=>{if(C(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(C(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},kt=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return $(e)?r(e):r(String(e).split(t)),n},Nt=()=>{},Pt=(e,t)=>(e=+e,Number.isFinite(e)?e:t),re="abcdefghijklmnopqrstuvwxyz",ge="0123456789",Me={DIGIT:ge,ALPHA:re,ALPHA_DIGIT:re+re.toUpperCase()+ge},Dt=(e=16,t=Me.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Ut(e){return!!(e&&C(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Ft=e=>{const t=new Array(10),n=(r,s)=>{if(ee(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=$(r)?[]:{};return V(r,(i,c)=>{const p=n(i,s+1);!q(p)&&(o[c]=p)}),t[s]=void 0,o}}return r};return n(e,0)},Bt=D("AsyncFunction"),Lt=e=>e&&(ee(e)||C(e))&&C(e.then)&&C(e.catch),a={isArray:$,isArrayBuffer:Ue,isBuffer:ot,isFormData:pt,isArrayBufferView:it,isString:at,isNumber:Fe,isBoolean:ct,isObject:ee,isPlainObject:W,isUndefined:q,isDate:lt,isFile:ut,isBlob:dt,isRegExp:vt,isFunction:C,isStream:ht,isURLSearchParams:mt,isTypedArray:Rt,isFileList:ft,forEach:V,merge:le,extend:_t,trim:yt,stripBOM:wt,inherits:bt,toFlatObject:Et,kindOf:Z,kindOfTest:D,endsWith:St,toArray:gt,forEachEntry:xt,matchAll:Ot,isHTMLForm:Tt,hasOwnProperty:Se,hasOwnProp:Se,reduceDescriptors:$e,freezeMethods:Ct,toObjectSet:kt,toCamelCase:At,noop:Nt,toFiniteNumber:Pt,findKey:Be,global:Le,isContextDefined:je,ALPHABET:Me,generateString:Dt,isSpecCompliantForm:Ut,toJSONObject:Ft,isAsyncFn:Bt,isThenable:Lt};function _(e,t,n,r,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),r&&(this.request=r),s&&(this.response=s)}a.inherits(_,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:a.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const He=_.prototype,Ie={};["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=>{Ie[e]={value:e}});Object.defineProperties(_,Ie);Object.defineProperty(He,"isAxiosError",{value:!0});_.from=(e,t,n,r,s,o)=>{const i=Object.create(He);return a.toFlatObject(e,i,function(p){return p!==Error.prototype},c=>c!=="isAxiosError"),_.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const jt=null;function ue(e){return a.isPlainObject(e)||a.isArray(e)}function qe(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Re(e,t,n){return e?e.concat(t).map(function(s,o){return s=qe(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function $t(e){return a.isArray(e)&&!e.some(ue)}const Mt=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function te(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,y){return!a.isUndefined(y[h])});const r=n.metaTokens,s=n.visitor||d,o=n.dots,i=n.indexes,p=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function f(u){if(u===null)return"";if(a.isDate(u))return u.toISOString();if(!p&&a.isBlob(u))throw new _("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(u)||a.isTypedArray(u)?p&&typeof Blob=="function"?new Blob([u]):Buffer.from(u):u}function d(u,h,y){let m=u;if(u&&!y&&typeof u=="object"){if(a.endsWith(h,"{}"))h=r?h:h.slice(0,-2),u=JSON.stringify(u);else if(a.isArray(u)&&$t(u)||(a.isFileList(u)||a.endsWith(h,"[]"))&&(m=a.toArray(u)))return h=qe(h),m.forEach(function(k,et){!(a.isUndefined(k)||k===null)&&t.append(i===!0?Re([h],et,o):i===null?h:h+"[]",f(k))}),!1}return ue(u)?!0:(t.append(Re(y,h,o),f(u)),!1)}const l=[],b=Object.assign(Mt,{defaultVisitor:d,convertValue:f,isVisitable:ue});function x(u,h){if(!a.isUndefined(u)){if(l.indexOf(u)!==-1)throw Error("Circular reference detected in "+h.join("."));l.push(u),a.forEach(u,function(m,T){(!(a.isUndefined(m)||m===null)&&s.call(t,m,a.isString(T)?T.trim():T,h,b))===!0&&x(m,h?h.concat(T):[T])}),l.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return x(e),t}function xe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function me(e,t){this._pairs=[],e&&te(e,this,t)}const ze=me.prototype;ze.append=function(t,n){this._pairs.push([t,n])};ze.toString=function(t){const n=t?function(r){return t.call(this,r,xe)}:xe;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Ht(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ve(e,t,n){if(!t)return e;const r=n&&n.encode||Ht,s=n&&n.serialize;let o;if(s?o=s(t,n):o=a.isURLSearchParams(t)?t.toString():new me(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Oe{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Je={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},It=typeof URLSearchParams<"u"?URLSearchParams:me,qt=typeof FormData<"u"?FormData:null,zt=typeof Blob<"u"?Blob:null,Vt={isBrowser:!0,classes:{URLSearchParams:It,FormData:qt,Blob:zt},protocols:["http","https","file","blob","url","data"]},We=typeof window<"u"&&typeof document<"u",Jt=(e=>We&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Wt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Kt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:We,hasStandardBrowserEnv:Jt,hasStandardBrowserWebWorkerEnv:Wt},Symbol.toStringTag,{value:"Module"})),N={...Kt,...Vt};function Gt(e,t){return te(e,new N.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return N.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Xt(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Qt(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r=n.length;return i=!i&&a.isArray(s)?s.length:i,p?(a.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!c):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=Qt(s[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(Xt(r),s,n,0)}),n}return null}function Zt(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ye={transitional:Je,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s&&s?JSON.stringify(Ke(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Gt(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return te(c?{"files[]":t}:t,p&&new p,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),Zt(t)):t}],transformResponse:[function(t){const n=this.transitional||ye.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&a.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?_.from(c,_.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:N.classes.FormData,Blob:N.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{ye.headers[e]={}});const _e=ye,Yt=a.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"]),en=e=>{const t={};let n,r,s;return e&&e.split(` `).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&Yt[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Te=Symbol("internals");function M(e){return e&&String(e).trim().toLowerCase()}function K(e){return e===!1||e==null?e:a.isArray(e)?e.map(K):String(e)}function tn(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const nn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function se(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function rn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function sn(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class ne{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(c,p,f){const d=M(p);if(!d)throw new Error("header name must be a non-empty string");const l=a.findKey(s,d);(!l||s[l]===void 0||f===!0||f===void 0&&s[l]!==!1)&&(s[l||p]=K(c))}const i=(c,p)=>a.forEach(c,(f,d)=>o(f,d,p));return a.isPlainObject(t)||t instanceof this.constructor?i(t,n):a.isString(t)&&(t=t.trim())&&!nn(t)?i(en(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=M(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return tn(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=M(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||se(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=M(i),i){const c=a.findKey(r,i);c&&(!n||se(r,r[c],c,n))&&(delete r[c],s=!0)}}return a.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||se(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,o)=>{const i=a.findKey(r,o);if(i){n[i]=K(s),delete n[o];return}const c=t?rn(o):String(o).trim();c!==o&&delete n[o],n[c]=K(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Te]=this[Te]={accessors:{}}).accessors,s=this.prototype;function o(i){const c=M(i);r[c]||(sn(s,i),r[c]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}}ne.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(ne.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(ne);const U=ne;function oe(e,t){const n=this||_e,r=t||n,s=U.from(r.headers);let o=r.data;return a.forEach(e,function(c){o=c.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function Ge(e){return!!(e&&e.__CANCEL__)}function J(e,t,n){_.call(this,e??"canceled",_.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(J,_,{__CANCEL__:!0});function on(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new _("Request failed with status code "+n.status,[_.ERR_BAD_REQUEST,_.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const an=N.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];a.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),a.isString(r)&&i.push("path="+r),a.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function cn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ln(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Xe(e,t){return e&&!cn(t)?ln(e,t):t}const un=N.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;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 r=s(window.location.href),function(i){const c=a.isString(i)?s(i):i;return c.protocol===r.protocol&&c.host===r.host}}():function(){return function(){return!0}}();function dn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function fn(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(p){const f=Date.now(),d=r[o];i||(i=f),n[s]=p,r[s]=f;let l=o,b=0;for(;l!==s;)b+=n[l++],l=l%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),f-i{const o=s.loaded,i=s.lengthComputable?s.total:void 0,c=o-n,p=r(c),f=o<=i;n=o;const d={loaded:o,total:i,progress:i?o/i:void 0,bytes:c,rate:p||void 0,estimated:p&&i&&f?(i-o)/p:void 0,event:s};d[t?"download":"upload"]=!0,e(d)}}const hn=typeof XMLHttpRequest<"u",pn=hn&&function(e){return new Promise(function(n,r){let s=e.data;const o=U.from(e.headers).normalize();let{responseType:i,withXSRFToken:c}=e,p;function f(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}let d;if(a.isFormData(s)){if(N.hasStandardBrowserEnv||N.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((d=o.getContentType())!==!1){const[h,...y]=d?d.split(";").map(m=>m.trim()).filter(Boolean):[];o.setContentType([h||"multipart/form-data",...y].join("; "))}}let l=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(h+":"+y))}const b=Xe(e.baseURL,e.url);l.open(e.method.toUpperCase(),Ve(b,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function x(){if(!l)return;const h=U.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),m={data:!i||i==="text"||i==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:h,config:e,request:l};on(function(k){n(k),f()},function(k){r(k),f()},m),l=null}if("onloadend"in l?l.onloadend=x:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(x)},l.onabort=function(){l&&(r(new _("Request aborted",_.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new _("Network Error",_.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let y=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||Je;e.timeoutErrorMessage&&(y=e.timeoutErrorMessage),r(new _(y,m.clarifyTimeoutError?_.ETIMEDOUT:_.ECONNABORTED,e,l)),l=null},N.hasStandardBrowserEnv&&(c&&a.isFunction(c)&&(c=c(e)),c||c!==!1&&un(b))){const h=e.xsrfHeaderName&&e.xsrfCookieName&&an.read(e.xsrfCookieName);h&&o.set(e.xsrfHeaderName,h)}s===void 0&&o.setContentType(null),"setRequestHeader"in l&&a.forEach(o.toJSON(),function(y,m){l.setRequestHeader(m,y)}),a.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),i&&i!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",Ae(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",Ae(e.onUploadProgress)),(e.cancelToken||e.signal)&&(p=h=>{l&&(r(!h||h.type?new J(null,e,l):h),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p)));const u=dn(b);if(u&&N.protocols.indexOf(u)===-1){r(new _("Unsupported protocol "+u+":",_.ERR_BAD_REQUEST,e));return}l.send(s||null)})},de={http:jt,xhr:pn};a.forEach(de,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ve=e=>`- ${e}`,mn=e=>a.isFunction(e)||e===null||e===!1,Qe={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o`adapter ${c} `+(p===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : `+o.map(ve).join(` `):" "+ve(o[0]):"as no adapter specified";throw new _("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:de};function ie(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new J(null,e)}function Ce(e){return ie(e),e.headers=U.from(e.headers),e.data=oe.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Qe.getAdapter(e.adapter||_e.adapter)(e).then(function(r){return ie(e),r.data=oe.call(e,e.transformResponse,r),r.headers=U.from(r.headers),r},function(r){return Ge(r)||(ie(e),r&&r.response&&(r.response.data=oe.call(e,e.transformResponse,r.response),r.response.headers=U.from(r.response.headers))),Promise.reject(r)})}const ke=e=>e instanceof U?e.toJSON():e;function j(e,t){t=t||{};const n={};function r(f,d,l){return a.isPlainObject(f)&&a.isPlainObject(d)?a.merge.call({caseless:l},f,d):a.isPlainObject(d)?a.merge({},d):a.isArray(d)?d.slice():d}function s(f,d,l){if(a.isUndefined(d)){if(!a.isUndefined(f))return r(void 0,f,l)}else return r(f,d,l)}function o(f,d){if(!a.isUndefined(d))return r(void 0,d)}function i(f,d){if(a.isUndefined(d)){if(!a.isUndefined(f))return r(void 0,f)}else return r(void 0,d)}function c(f,d,l){if(l in t)return r(f,d);if(l in e)return r(void 0,f)}const p={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken: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:c,headers:(f,d)=>s(ke(f),ke(d),!0)};return a.forEach(Object.keys(Object.assign({},e,t)),function(d){const l=p[d]||s,b=l(e[d],t[d],d);a.isUndefined(b)&&l!==c||(n[d]=b)}),n}const Ze="1.6.3",we={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{we[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ne={};we.transitional=function(t,n,r){function s(o,i){return"[Axios v"+Ze+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,c)=>{if(t===!1)throw new _(s(i," has been removed"+(n?" in "+n:"")),_.ERR_DEPRECATED);return n&&!Ne[i]&&(Ne[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};function yn(e,t,n){if(typeof e!="object")throw new _("options must be an object",_.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const c=e[o],p=c===void 0||i(c,o,e);if(p!==!0)throw new _("option "+o+" must be "+p,_.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new _("Unknown option "+o,_.ERR_BAD_OPTION)}}const fe={assertOptions:yn,validators:we},F=fe.validators;class X{constructor(t){this.defaults=t,this.interceptors={request:new Oe,response:new Oe}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=j(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&fe.assertOptions(r,{silentJSONParsing:F.transitional(F.boolean),forcedJSONParsing:F.transitional(F.boolean),clarifyTimeoutError:F.transitional(F.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:fe.assertOptions(s,{encode:F.function,serialize:F.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&a.merge(o.common,o[n.method]);o&&a.forEach(["delete","get","head","post","put","patch","common"],u=>{delete o[u]}),n.headers=U.concat(i,o);const c=[];let p=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(p=p&&h.synchronous,c.unshift(h.fulfilled,h.rejected))});const f=[];this.interceptors.response.forEach(function(h){f.push(h.fulfilled,h.rejected)});let d,l=0,b;if(!p){const u=[Ce.bind(this),void 0];for(u.unshift.apply(u,c),u.push.apply(u,f),b=u.length,d=Promise.resolve(n);l{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(c=>{r.subscribe(c),o=c}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new J(o,i,c),n(r.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 be(function(s){t=s}),cancel:t}}}const _n=be;function wn(e){return function(n){return e.apply(null,n)}}function bn(e){return a.isObject(e)&&e.isAxiosError===!0}const he={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(he).forEach(([e,t])=>{he[t]=e});const En=he;function Ye(e){const t=new G(e),n=De(G.prototype.request,t);return a.extend(n,G.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Ye(j(e,s))},n}const R=Ye(_e);R.Axios=G;R.CanceledError=J;R.CancelToken=_n;R.isCancel=Ge;R.VERSION=Ze;R.toFormData=te;R.AxiosError=_;R.Cancel=R.CanceledError;R.all=function(t){return Promise.all(t)};R.spread=wn;R.isAxiosError=bn;R.mergeConfig=j;R.AxiosHeaders=U;R.formToJSON=e=>Ke(a.isHTMLForm(e)?new FormData(e):e);R.getAdapter=Qe.getAdapter;R.HttpStatusCode=En;R.default=R;const L=R.create({withCredentials:!0});L.interceptors.request.use(e=>(e.headers["Content-Type"]="application/json",e),e=>Promise.reject(e));L.interceptors.response.use(e=>e.data.code===0?e.data.body:(console.error("Error Message:",e.data.msg),Promise.reject(e.data.msg)),e=>(e.response?console.error("HTTP Error Response:",e.response.status):e.request?console.error("No response received:",e.request):console.error("Error sending request:",e.message),Promise.reject(e)));const Sn={style:{padding:"10px 10px"}},gn={key:0},Rn={key:1},xn=B({__name:"ContactsList",props:["tableData"],emits:["userData"],setup(e,{emit:t}){const n=v([]),r=async(f,d,l="")=>{try{return await L.post("/api/contact_count_list",{start:f,limit:d,word:l})}catch(b){return console.error("Error fetching data:",b),[]}};Q(async()=>{try{const f=await r(0,800);n.value=f}catch(f){return console.error("Error fetching data:",f),[]}});const o=v(""),i=async()=>{try{const f=await r(0,100,o.value);n.value=f}catch(f){return console.error("Error fetching data:",f),[]}},c=t,p=f=>{f!==void 0&&c("userData",f)};return(f,d)=>{const l=O("el-input"),b=O("el-button"),x=O("el-table-column"),u=O("el-table");return E(),g("div",null,[w("div",Sn,[S(l,{placeholder:"请输入关键字",modelValue:o.value,"onUpdate:modelValue":d[0]||(d[0]=h=>o.value=h),onKeyup:tt(i,["enter"]),style:{width:"160px"}},null,8,["modelValue"]),S(b,{type:"primary",onClick:i,style:{width:"70px"}},{default:A(()=>[H("搜索")]),_:1})]),S(u,{data:n.value,stripe:"",style:{width:"100%"},"max-height":"100%",height:"100%","highlight-current-row":"",onCurrentChange:p},{default:A(()=>[S(x,{label:"name",width:"180"},{default:A(({row:h})=>[h.remark!==null&&h.remark!==""?(E(),g("span",gn,P(h.remark),1)):(E(),g("span",Rn,P(h.nickname),1))]),_:1}),S(x,{prop:"chat_count",label:"num",width:"70"})]),_:1},8,["data"])])}}}),On=B({__name:"ChatRecprdsHeader",props:{userData:{type:Object,required:!0}},setup(e){const t=[{wxid:"username",账号:"account",昵称:"nickname"},{备注:"remark",描述:"describe",数量:"chat_count"}];return(n,r)=>{const s=O("el-text"),o=O("el-col"),i=O("el-row");return E(),g(ce,null,ae(t,(c,p)=>S(i,{gutter:5,style:{width:"100%"},key:p},{default:A(()=>[(E(!0),g(ce,null,ae(c,(f,d)=>(E(),I(o,{key:d,span:8,style:{"white-space":"nowrap"}},{default:A(()=>[S(s,{class:"label_color mx-1",truncated:""},{default:A(()=>[H(P(d)+":",1)]),_:2},1024),H("  "),S(s,{class:"data_color mx-1",truncated:"",title:e.userData[f]},{default:A(()=>[H(P(e.userData[f]),1)]),_:2},1032,["title"])]),_:2},1024))),128))]),_:2},1024)),64)}}}),Tn=z(On,[["__scopeId","data-v-cb8b8fa3"]]),An={class:"chat-content"},vn={key:0,class:"word"},Cn=["src"],kn={class:"info"},Nn={class:"time"},Pn=["innerHTML"],Dn={key:1,class:"word-my"},Un={class:"info"},Fn={class:"time"},Bn=["innerHTML"],Ln=["src"],jn=B({__name:"MessageText",props:{is_sender:{type:Number,default:0},content:{type:String,default:""},headUrl:{type:String,default:""},direction:{type:String,default:""}},setup(e){const t=n=>(n=n.replace(/\n/g,"
"),new DOMParser().parseFromString(n,"text/html").body.innerHTML);return(n,r)=>(E(),g("div",An,[e.is_sender?(E(),g("div",Dn,[w("div",Un,[w("p",Fn,P(e.direction),1),w("div",{class:"info-content",innerHTML:t(e.content)},null,8,Bn)]),w("img",{src:e.headUrl},null,8,Ln)])):(E(),g("div",vn,[w("img",{src:e.headUrl},null,8,Cn),w("div",kn,[w("p",Nn,P(e.direction),1),w("div",{class:"info-content",innerHTML:t(e.content)},null,8,Pn)])]))]))}}),$n=z(jn,[["__scopeId","data-v-d930be9e"]]),Mn={class:"chat-content"},Hn={key:0,class:"word"},In=["src"],qn={class:"info"},zn={class:"time"},Vn={class:"demo-image__preview"},Jn={key:1,class:"word-my"},Wn={class:"info"},Kn={class:"time"},Gn={class:"demo-image__preview"},Xn=["src"],Qn=B({__name:"MessageImg",props:{is_sender:{type:Number,default:0},content:{type:String,default:""},headUrl:{type:String,default:""},direction:{type:String,default:""},src:{type:String,default:""}},setup(e){const t=e,n=v("");Q(async()=>{n.value=await r(t.src)});const r=async s=>{try{return await L.post("/api/img",{img_path:s})}catch(o){return console.error("Error fetching data:",o),""}};return(s,o)=>{const i=O("el-image");return E(),g("div",Mn,[e.is_sender?(E(),g("div",Jn,[w("div",Wn,[w("p",Kn,P(e.direction),1),w("div",Gn,[S(i,{style:{"max-width":"150px","max-height":"150px"},src:n.value,"zoom-rate":1.2,"max-scale":7,"min-scale":.2,"preview-src-list":[n.value],"initial-index":4,fit:"cover"},null,8,["src","preview-src-list"])])]),w("img",{src:e.headUrl},null,8,Xn)])):(E(),g("div",Hn,[w("img",{src:e.headUrl},null,8,In),w("div",qn,[w("p",zn,P(e.direction),1),w("div",Vn,[S(i,{style:{"max-width":"150px","max-height":"150px"},src:n.value,"zoom-rate":1.2,"max-scale":7,"min-scale":.2,"preview-src-list":[n.value],"initial-index":4,fit:"cover"},null,8,["src","preview-src-list"])])])]))])}}}),Zn=z(Qn,[["__scopeId","data-v-2190d708"]]),Yn={class:"chat-content"},er={key:0,class:"word"},tr=["src"],nr={class:"info"},rr={class:"time"},sr={controls:"",style:{"background-color":"#fff"}},or=["src"],ir={key:1,class:"word-my"},ar={class:"info"},cr={class:"time"},lr={controls:"",style:{"background-color":"#95EC69"}},ur=["src"],dr=["src"],fr=B({__name:"MessageAudio",props:{is_sender:{type:Number,default:0},headUrl:{type:String,default:""},direction:{type:String,default:""},src:{type:String,default:""},msg:{type:String,default:""}},setup(e){const t=e,n=v("");Q(async()=>{n.value=await r(t.src)});const r=async s=>{try{return await L.post("/api/audio",{MsgSvrID:s})}catch(o){return console.error("Error fetching data:",o),""}};return(s,o)=>{const i=O("el-textarea");return E(),g("div",Yn,[e.is_sender?(E(),g("div",ir,[w("div",ar,[w("p",cr,P(e.direction),1),w("audio",lr,[w("source",{src:n.value,type:"audio/wav"},null,8,ur)]),S(i,{rows:1,readonly:!0,value:e.msg,style:{width:"100%"}},null,8,["value"])]),w("img",{src:e.headUrl},null,8,dr)])):(E(),g("div",er,[w("img",{src:e.headUrl},null,8,tr),w("div",nr,[w("p",rr,P(e.direction),1),w("audio",sr,[w("source",{src:n.value,type:"audio/wav"},null,8,or)]),S(i,{rows:1,readonly:!0,value:e.msg,style:{width:"100%"}},null,8,["value"])])]))])}}}),hr=z(fr,[["__scopeId","data-v-ea5c011c"]]),pr={id:"chat"},mr={class:"chat_body"},yr={class:"chat_window",ref:"chatWindow"},_r={key:0,class:"load_more",style:{display:"flex","justify-content":"center","margin-top":"10px","margin-bottom":"10px"}},wr=B({__name:"ChatRecordsMain",props:{userData:{type:Object,required:!0},setScrollTop:{type:Function,required:!0}},setup(e,{expose:t}){const n=e,r=v([]),s=v({}),o=v(""),i=v(200),c=v(0),p=v(!1),f=async(u,h,y)=>{try{const m=await L.post("/api/msgs",{start:u,limit:h,wxid:y});return r.value=m.msg_list,s.value=m.user_list,o.value=m.my_wxid,m}catch(m){return console.error("Error fetching data:",m),[]}},d=async()=>{try{c.value=n.userData.chat_count-i.value,await f(c.value,i.value,n.userData.username),p.value||await Pe(()=>{n.setScrollTop(),p.value=!1})}catch(u){return console.error("Error fetching data:",u),[]}};Q(d),nt(()=>n.userData.username,(u,h)=>{r.value=[],p.value=!1,d()});const l=u=>(u.talker=="我"&&(u.talker=o.value),`${(y=>s.value.hasOwnProperty(y.talker)?s.value[y.talker].remark?s.value[y.talker].remark:s.value[y.talker].nickname?s.value[y.talker].nickname:s.value[y.talker].account?s.value[y.talker].account:y.talker:y.talker)(u)} [${u.type_name}] ${u.CreateTime}`),b=u=>(u.talker=="我"&&(u.talker=o.value),s.value.hasOwnProperty(u.talker)?s.value[u.talker].headImgUrl:""),x=async()=>{let u=i.value,h=c.value-u;const y=await L.post("/api/msgs",{start:h,limit:u,wxid:n.userData.username});c.value=h,r.value=y.msg_list.concat(r.value),r.value.sort((m,T)=>m.id-T.id),r.value=r.value.filter((m,T,k)=>T===0||m.id!==k[T-1].id),s.value=Object.assign(s.value,y.user_list)};return t({loadMore:x}),(u,h)=>{const y=O("el-button");return E(),g("div",pr,[w("div",mr,[w("div",yr,[r.value.length[H("加载更多")]),_:1})])):Ee("",!0),(E(!0),g(ce,null,ae(r.value,(m,T)=>(E(),g("div",{class:"message",key:T},[m.type_name=="文本"?(E(),I($n,{key:0,is_sender:m.is_sender,direction:l(m),headUrl:b(m),content:m.content.msg},null,8,["is_sender","direction","headUrl","content"])):m.type_name=="图片"?(E(),I(Zn,{key:1,is_sender:m.is_sender,direction:l(m),headUrl:b(m),src:m.content.src},null,8,["is_sender","direction","headUrl","src"])):m.type_name=="语音"?(E(),I(hr,{key:2,is_sender:m.is_sender,direction:l(m),headUrl:b(m),src:m.MsgSvrID,msg:m.content.msg},null,8,["is_sender","direction","headUrl","src","msg"])):Ee("",!0)]))),128))],512)])])}}}),br=z(wr,[["__scopeId","data-v-33ceeb27"]]),Er=B({__name:"ChatRecords",props:{userData:{type:Object,required:!0}},setup(e){const t=v(null),n=v(null),r=()=>{Pe(()=>{if(t.value){const o=t.value.$el.children[0];o&&(o.scrollTop=o.scrollHeight)}})};function s({scrollTop:o}){o===0&&n.value&&n.value.loadMore()}return(o,i)=>{const c=O("el-header"),p=O("el-scrollbar"),f=O("el-main"),d=O("el-container");return E(),I(d,null,{default:A(()=>[S(c,{style:{height:"65px","max-height":"65px",width:"100%","background-color":"#d2d2fa","padding-top":"5px"}},{default:A(()=>[S(Tn,{userData:e.userData},null,8,["userData"])]),_:1}),S(f,{style:{"overflow-y":"auto",height:"calc(100vh - 65px)"}},{default:A(()=>[S(p,{ref_key:"scrollbarRef",ref:t,onScroll:s},{default:A(()=>[S(br,{ref_key:"chatRecordsMainRef",ref:n,userData:e.userData,setScrollTop:r},null,8,["userData"])]),_:1},512)]),_:1})]),_:1})}}}),Sr={id:"chat_view",class:"common-layout"},gr={key:0,style:{height:"calc(100vh)",width:"100%"}},Rr={key:1,style:{width:"100%",height:"100%"}},Or=B({__name:"ChatView",setup(e){const t=v({account:"",describe:"",headImgUrl:"",nickname:"",remark:"",username:"",chat_count:0}),n=r=>{t.value=r};return(r,s)=>{const o=O("el-aside"),i=O("el-container");return E(),g("div",Sr,[S(i,null,{default:A(()=>[S(o,{width:"266px",style:{"overflow-y":"auto",height:"calc(100vh)"}},{default:A(()=>[S(xn,{onUserData:n})]),_:1}),t.value.username!=""?(E(),g("div",gr,[S(Er,{userData:t.value},null,8,["userData"])])):(E(),g("div",Rr,[S(rt)]))]),_:1})])}}});export{Or as default};