UNPKG

@waline/client

Version:

client for waline comment system

22 lines 174 kB
var Vp=Object.defineProperty;var Wp=(re,Ee,Te)=>Ee in re?Vp(re,Ee,{enumerable:!0,configurable:!0,writable:!0,value:Te}):re[Ee]=Te;var $o=(re,Ee,Te)=>Wp(re,typeof Ee!="symbol"?Ee+"":Ee,Te);(function(re,Ee){typeof exports=="object"&&typeof module<"u"?Ee(exports):typeof define=="function"&&define.amd?define(["exports"],Ee):(re=typeof globalThis<"u"?globalThis:re||self,Ee(re.Waline={}))})(this,function(re){"use strict";const Ee={"Content-Type":"application/json"},Te=e=>`${e.replace(/\/?$/,"/")}api/`,yt=(e,t="")=>{if(typeof e=="object"&&e.errno)throw new TypeError(`${t} failed with ${e.errno}: ${e.errmsg}`);return e},Tr=({serverURL:e,lang:t,paths:n,type:r,signal:i})=>fetch(`${Te(e)}article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(r.join(","))}&lang=${t}`,{signal:i}).then(s=>s.json()).then(s=>yt(s,"Get counter").data),jn=({serverURL:e,lang:t,path:n,type:r,action:i})=>fetch(`${Te(e)}article?lang=${t}`,{method:"POST",headers:Ee,body:JSON.stringify({path:n,type:r,action:i})}).then(s=>s.json()).then(s=>yt(s,"Update counter").data),Ti=({serverURL:e,lang:t,path:n,page:r,pageSize:i,sortBy:s,signal:l,token:o})=>{const a={};return o&&(a.Authorization=`Bearer ${o}`),fetch(`${Te(e)}comment?path=${encodeURIComponent(n)}&pageSize=${i}&page=${r}&lang=${t}&sortBy=${s}`,{signal:l,headers:a}).then(c=>c.json()).then(c=>yt(c,"Get comment data").data)},Ii=({serverURL:e,lang:t,token:n,comment:r})=>{const i={"Content-Type":"application/json"};return n&&(i.Authorization=`Bearer ${n}`),fetch(`${Te(e)}comment?lang=${t}`,{method:"POST",headers:i,body:JSON.stringify(r)}).then(s=>s.json())},Li=({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${Te(e)}comment/${r}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then(i=>i.json()).then(i=>yt(i,"Delete comment")),en=({serverURL:e,lang:t,token:n,objectId:r,comment:i})=>fetch(`${Te(e)}comment/${r}?lang=${t}`,{method:"PUT",headers:{...Ee,Authorization:`Bearer ${n}`},body:JSON.stringify(i)}).then(s=>s.json()).then(s=>yt(s,"Update comment")),Mi=({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${Te(e)}comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then(i=>i.json()).then(i=>yt(i,"Get comment count").data),Pi=({lang:e,serverURL:t})=>{const n=(window.innerWidth-450)/2,r=(window.innerHeight-450)/2,i=window.open(`${t.replace(/\/$/,"")}/ui/login?lng=${encodeURIComponent(e)}`,"_blank",`width=450,height=450,left=${n},top=${r},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);return i==null||i.postMessage({type:"TOKEN",data:null},"*"),new Promise(s=>{const l=({data:o})=>{!o||typeof o!="object"||o.type!=="userInfo"||o.data.token&&(i==null||i.close(),window.removeEventListener("message",l),s(o.data))};window.addEventListener("message",l)})},Oi=({serverURL:e,lang:t,paths:n,signal:r})=>Tr({serverURL:e,lang:t,paths:n,type:["time"],signal:r}),ji=e=>jn({...e,type:"time",action:"inc"}),zi=({serverURL:e,lang:t,count:n,signal:r,token:i})=>{const s={};return i&&(s.Authorization=`Bearer ${i}`),fetch(`${Te(e)}comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:s}).then(l=>l.json())},Di=({serverURL:e,signal:t,pageSize:n,lang:r})=>fetch(`${Te(e)}user?pageSize=${n}&lang=${r}`,{signal:t}).then(i=>i.json()).then(i=>yt(i,"user list")).then(i=>i.data),Ro=["nick","mail","link"],Fi=e=>e.filter(t=>Ro.includes(t)),Hi=["//unpkg.com/@waline/emojis@1.1.0/weibo"],Ao=["//unpkg.com/@waline/emojis/tieba/tieba_agree.png","//unpkg.com/@waline/emojis/tieba/tieba_look_down.png","//unpkg.com/@waline/emojis/tieba/tieba_sunglasses.png","//unpkg.com/@waline/emojis/tieba/tieba_pick_nose.png","//unpkg.com/@waline/emojis/tieba/tieba_awkward.png","//unpkg.com/@waline/emojis/tieba/tieba_sleep.png"],Eo=e=>new Promise((t,n)=>{if(e.size>128e3)return n(new Error("File too large! File size limit 128KB"));const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result),r.onerror=n}),To=e=>e?'<p class="wl-tex">TeX is not available in preview</p>':'<span class="wl-tex">TeX is not available in preview</span>',Io=e=>{const t=async(n,r={})=>fetch(`https://api.giphy.com/v1/gifs/${n}?${new URLSearchParams({lang:e,limit:"20",rating:"g",api_key:"6CIMLkNMMOhRcXPoMCPkFy4Ybk2XUiMp",...r}).toString()}`).then(i=>i.json()).then(({data:i})=>i.map(s=>({title:s.title,src:s.images.downsized_medium.url})));return{search:n=>t("search",{q:n,offset:"0"}),default:()=>t("trending",{}),more:(n,r=0)=>t("search",{q:n,offset:r.toString()})}},Lo=/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/,Mo=/</,Po=/(?:^|\s)\/\/(.+?)$/gm,Oo=/\/\*([\S\s]*?)\*\//gm,jo=new RegExp(`(${Lo.source}|${Mo.source})|((?:${Po.source})|(?:${Oo.source}))`,"gmi"),Ui=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],Ir={},zo=e=>{let t=0;return e.replace(jo,(n,r,i)=>{if(i)return`<span style="color: slategray">${i}</span>`;if(r==="<")return"&lt;";let s;Ir[r]?s=Ir[r]:(s=Ui[t],Ir[r]=s);const l=`<span style="color: #${s}">${r}</span>`;return t=++t%Ui.length,l})},Do=["nick","nickError","mail","mailError","link","optional","placeholder","sofa","submit","like","cancelLike","reply","cancelReply","comment","refresh","more","preview","emoji","uploadImage","seconds","minutes","hours","days","now","uploading","login","logout","admin","sticky","word","wordHint","anonymous","level0","level1","level2","level3","level4","level5","gif","gifSearchPlaceholder","profile","approved","waiting","spam","unsticky","oldest","latest","hottest","reactionTitle"],Ge=e=>Object.fromEntries(e.map((t,n)=>[Do[n],t]));var Fo=Ge(["Benutzername","Der Benutzername darf nicht weniger als 3 Bytes umfassen.","E-Mail","Bitte bestätigen Sie Ihre E-Mail-Adresse.","Webseite","Optional","Kommentieren Sie hier...","Noch keine Kommentare.","Senden","Gefällt mir","Gefällt mir nicht mehr","Antworten","Antwort abbrechen","Kommentare","Aktualisieren","Mehr laden...","Vorschau","Emoji","Ein Bild hochladen","Vor einigen Sekunden","Vor einigen Minuten","Vor einigen Stunden","Vor einigen Tagen","Gerade eben","Hochladen läuft","Anmelden","Abmelden","Admin","Angeheftet","Wörter","Bitte geben Sie Kommentare zwischen $0 und $1 Wörtern ein! Aktuelle Anzahl der Wörter: $2","Anonym","Zwerge","Hobbits","Ents","Magier","Elfen","Maïar","GIF","Nach einem GIF suchen","Profil","Genehmigt","Ausstehend","Spam","Lösen","Älteste","Neueste","Am beliebtesten","Was denken Sie?"]),Ni=Ge(["NickName","NickName cannot be less than 3 bytes.","E-Mail","Please confirm your email address.","Website","Optional","Comment here...","No comment yet.","Submit","Like","Cancel like","Reply","Cancel reply","Comments","Refresh","Load More...","Preview","Emoji","Upload Image","seconds ago","minutes ago","hours ago","days ago","just now","Uploading","Login","logout","Admin","Sticky","Words",`Please input comments between $0 and $1 words! Current word number: $2`,"Anonymous","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Search GIF","Profile","Approved","Waiting","Spam","Unsticky","Oldest","Latest","Hottest","What do you think?"]),Bi=Ge(["Nombre de usuario","El nombre de usuario no puede tener menos de 3 bytes.","Correo electrónico","Por favor confirma tu dirección de correo electrónico.","Sitio web","Opcional","Comenta aquí...","Sin comentarios todavía.","Enviar","Like","Anular like","Responder","Anular respuesta","Comentarios","Recargar","Cargar Más...","Previsualizar","Emoji","Subir Imagen","segundos atrás","minutos atrás","horas atrás","días atrás","justo ahora","Subiendo","Iniciar sesión","cerrar sesión","Admin","Fijado","Palabras",`Por favor escriba entre $0 y $1 palabras! El número actual de palabras: $2`,"Anónimo","Enanos","Hobbits","Ents","Magos","Elfos","Maiar","GIF","Buscar GIF","Perfil","Aprobado","Esperando","Spam","Desfijar","Más antiguos","Más recientes","Más vistos","¿Qué piensas?"]),Vi=Ge(["Pseudo","Le pseudo ne peut pas faire moins de 3 octets.","E-mail","Veuillez confirmer votre adresse e-mail.","Site Web","Optionnel","Commentez ici...","Aucun commentaire pour l'instant.","Envoyer","J'aime","Annuler le j'aime","Répondre","Annuler la réponse","Commentaires","Actualiser","Charger plus...","Aperçu","Emoji","Télécharger une image","Il y a quelques secondes","Il y a quelques minutes","Il y a quelques heures","Il y a quelques jours","À l'instant","Téléchargement en cours","Connexion","Déconnexion","Admin","Épinglé","Mots",`Veuillez saisir des commentaires entre $0 et $1 mots ! Nombre actuel de mots : $2`,"Anonyme","Nains","Hobbits","Ents","Mages","Elfes","Maïar","GIF","Rechercher un GIF","Profil","Approuvé","En attente","Indésirable","Détacher","Le plus ancien","Dernier","Le plus populaire","Qu'en pensez-vous ?"]),Wi=Ge(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード",`コメントは $0 から $1 ワードの間でなければなりません! 現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),Ho=Ge(["Apelido","Apelido não pode ser menor que 3 bytes.","E-Mail","Por favor, confirme seu endereço de e-mail.","Website","Opcional","Comente aqui...","Nenhum comentário, ainda.","Enviar","Like","Cancel like","Responder","Cancelar resposta","Comentários","Refrescar","Carregar Mais...","Visualizar","Emoji","Enviar Imagem","segundos atrás","minutos atrás","horas atrás","dias atrás","agora mesmo","Enviando","Entrar","Sair","Admin","Sticky","Palavras",`Favor enviar comentário com $0 a $1 palavras! Número de palavras atuais: $2`,"Anônimo","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Pesquisar GIF","informação pessoal","Aprovado","Espera","Spam","Unsticky","Mais velho","Mais recentes","Mais quente","O que você acha?"]),qi=Ge(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова",`Пожалуйста, введите комментарии от $0 до $1 слов! Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]),Ki=Ge(["Tên","Tên không được nhỏ hơn 3 ký tự.","E-Mail","Vui lòng xác nhập địa chỉ email của bạn.","Website","Tùy chọn","Hãy bình luận có văn hoá!","Chưa có bình luận","Gửi","Thích","Bỏ thích","Trả lời","Hủy bỏ","bình luận","Làm mới","Tải thêm...","Xem trước","Emoji","Tải lên hình ảnh","giây trước","phút trước","giờ trước","ngày trước","Vừa xong","Đang tải lên","Đăng nhập","đăng xuất","Quản trị viên","Dính","từ",`Bình luận phải có độ dài giữa $0 và $1 từ! Số từ hiện tại: $2`,"Vô danh","Người lùn","Người tí hon","Thần rừng","Pháp sư","Tiên tộc","Maiar","Ảnh GIF","Tìm kiếm ảnh GIF","thông tin cá nhân","Đã được phê duyệt","Đang chờ đợi","Thư rác","Không dính","lâu đời nhất","muộn nhất","nóng nhất","What do you think?"]),Gi=Ge(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字",`评论字数应在 $0 到 $1 字之间! 当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),Uo=Ge(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字",`留言字數應在 $0 到 $1 字之間! 目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]);const Zi="en-US",zn={zh:Gi,"zh-cn":Gi,"zh-tw":Uo,en:Ni,"en-us":Ni,fr:Vi,"fr-fr":Vi,jp:Wi,"jp-jp":Wi,"pt-br":Ho,ru:qi,"ru-ru":qi,vi:Ki,"vi-vn":Ki,de:Fo,es:Bi,"es-mx":Bi},Yi=e=>zn[e.toLowerCase()]||zn[Zi.toLowerCase()],Ji=e=>Object.keys(zn).includes(e.toLowerCase())?e:Zi,Qi={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},No=Object.keys(Qi),Dn=Symbol("waline-config"),Xi=e=>{try{e=decodeURI(e)}catch{}return e},es=(e="")=>e.replace(/\/$/u,""),ts=e=>/^(https?:)?\/\//.test(e),Fn=e=>{const t=es(e);return ts(t)?t:`https://${t}`},Bo=e=>Array.isArray(e)?e:e?[0,e]:!1,tn=(e,t)=>e==null||e===!0?t:e===!1?null:e,Vo=({serverURL:e,path:t=location.pathname,lang:n=typeof navigator>"u"?"en-US":navigator.language,locale:r,meta:i=["nick","mail","link"],requiredMeta:s=[],dark:l=!1,pageSize:o=10,wordLimit:a,noCopyright:c=!1,login:u="enable",recaptchaV3Key:f="",turnstileKey:d="",commentSorting:m="latest",emoji:x=Hi,imageUploader:b,highlighter:T,texRenderer:w,search:C,reaction:N,...I})=>({serverURL:Fn(e),path:Xi(t),lang:Ji(n),locale:{...Yi(Ji(n)),...typeof r=="object"?r:{}},wordLimit:Bo(a),meta:Fi(i),requiredMeta:Fi(s),dark:l,pageSize:o,commentSorting:m,login:u,noCopyright:c,recaptchaV3Key:f,turnstileKey:d,...I,reaction:N===!0?Ao:N||null,imageUploader:tn(b,Eo),highlighter:tn(T,zo),texRenderer:tn(w,To),emoji:tn(x,Hi),search:tn(C,Io(n))}),zt=e=>typeof e=="string",Lr="{--waline-white:#000;--waline-light-grey:#666;--waline-dark-grey:#999;--waline-color:#888;--waline-bg-color:#1e1e1e;--waline-bg-color-light:#272727;--waline-bg-color-hover: #444;--waline-border-color:#333;--waline-disable-bg-color:#444;--waline-disable-color:#272727;--waline-bq-color:#272727;--waline-info-bg-color:#272727;--waline-info-color:#666}",Wo=e=>zt(e)?e==="auto"?`@media(prefers-color-scheme:dark){body${Lr}}`:`${e}${Lr}`:e===!0?`:root${Lr}`:"",Mr=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},qo=e=>{const t=Mr(e.getDate(),2),n=Mr(e.getMonth()+1,2);return`${Mr(e.getFullYear(),2)}-${n}-${t}`},Ko=(e,t,n)=>{if(!e)return"";const r=zt(e)?new Date(e.includes(" ")?e.replace(/-/g,"/"):e):e,i=t.getTime()-r.getTime(),s=Math.floor(i/(24*3600*1e3));if(s===0){const l=i%864e5,o=Math.floor(l/(3600*1e3));if(o===0){const a=l%36e5,c=Math.floor(a/(60*1e3));if(c===0){const u=a%6e4;return`${Math.round(u/1e3)} ${n.seconds}`}return`${c} ${n.minutes}`}return`${o} ${n.hours}`}return s<0?n.now:s<8?`${s} ${n.days}`:qo(r)},Go=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Zo=e=>Go.test(e);/** * @vue/shared v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **//*! #__NO_SIDE_EFFECTS__ */function Pr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const le={},Dt=[],wt=()=>{},Yo=()=>!1,Hn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Or=e=>e.startsWith("onUpdate:"),je=Object.assign,ns=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Jo=Object.prototype.hasOwnProperty,X=(e,t)=>Jo.call(e,t),q=Array.isArray,Ft=e=>nn(e)==="[object Map]",Ht=e=>nn(e)==="[object Set]",rs=e=>nn(e)==="[object Date]",ee=e=>typeof e=="function",ye=e=>typeof e=="string",Ze=e=>typeof e=="symbol",pe=e=>e!==null&&typeof e=="object",is=e=>(pe(e)||ee(e))&&ee(e.then)&&ee(e.catch),ss=Object.prototype.toString,nn=e=>ss.call(e),Qo=e=>nn(e).slice(8,-1),ls=e=>nn(e)==="[object Object]",jr=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,rn=Pr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Un=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Xo=/-(\w)/g,ze=Un(e=>e.replace(Xo,(t,n)=>n?n.toUpperCase():"")),ea=/\B([A-Z])/g,kt=Un(e=>e.replace(ea,"-$1").toLowerCase()),Nn=Un(e=>e.charAt(0).toUpperCase()+e.slice(1)),zr=Un(e=>e?`on${Nn(e)}`:""),ht=(e,t)=>!Object.is(e,t),Bn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},os=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Vn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let as;const sn=()=>as||(as=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ln(e){if(q(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=ye(r)?ia(r):ln(r);if(i)for(const s in i)t[s]=i[s]}return t}else if(ye(e)||pe(e))return e}const ta=/;(?![^(]*\))/g,na=/:([^]+)/,ra=/\/\*[^]*?\*\//g;function ia(e){const t={};return e.replace(ra,"").split(ta).forEach(n=>{if(n){const r=n.split(na);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ve(e){let t="";if(ye(e))t=e;else if(q(e))for(let n=0;n<e.length;n++){const r=ve(e[n]);r&&(t+=r+" ")}else if(pe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const sa=Pr("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function cs(e){return!!e||e===""}function la(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=xt(e[r],t[r]);return n}function xt(e,t){if(e===t)return!0;let n=rs(e),r=rs(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Ze(e),r=Ze(t),n||r)return e===t;if(n=q(e),r=q(t),n||r)return n&&r?la(e,t):!1;if(n=pe(e),r=pe(t),n||r){if(!n||!r)return!1;const i=Object.keys(e).length,s=Object.keys(t).length;if(i!==s)return!1;for(const l in e){const o=e.hasOwnProperty(l),a=t.hasOwnProperty(l);if(o&&!a||!o&&a||!xt(e[l],t[l]))return!1}}return String(e)===String(t)}function Dr(e,t){return e.findIndex(n=>xt(n,t))}const us=e=>!!(e&&e.__v_isRef===!0),J=e=>ye(e)?e:e==null?"":q(e)||pe(e)&&(e.toString===ss||!ee(e.toString))?us(e)?J(e.value):JSON.stringify(e,fs,2):String(e),fs=(e,t)=>us(t)?fs(e,t.value):Ft(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],s)=>(n[Fr(r,s)+" =>"]=i,n),{})}:Ht(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Fr(n))}:Ze(t)?Fr(t):pe(t)&&!q(t)&&!ls(t)?String(t):t,Fr=(e,t="")=>{var n;return Ze(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Ce;class oa{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ce,!t&&Ce&&(this.index=(Ce.scopes||(Ce.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Ce;try{return Ce=this,t()}finally{Ce=n}}}on(){Ce=this}off(){Ce=this.parent}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function hs(){return Ce}function aa(e,t=!1){Ce&&Ce.cleanups.push(e)}let ce;const Hr=new WeakSet;class ps{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ce&&Ce.active&&Ce.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Hr.has(this)&&(Hr.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||gs(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ws(this),ms(this);const t=ce,n=Ve;ce=this,Ve=!0;try{return this.fn()}finally{vs(this),ce=t,Ve=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Vr(t);this.deps=this.depsTail=void 0,ws(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Hr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Br(this)&&this.run()}get dirty(){return Br(this)}}let ds=0,on,an;function gs(e,t=!1){if(e.flags|=8,t){e.next=an,an=e;return}e.next=on,on=e}function Ur(){ds++}function Nr(){if(--ds>0)return;if(an){let t=an;for(an=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;on;){let t=on;for(on=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function ms(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function vs(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),Vr(r),ca(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function Br(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(bs(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function bs(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===cn))return;e.globalVersion=cn;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Br(e)){e.flags&=-3;return}const n=ce,r=Ve;ce=e,Ve=!0;try{ms(e);const i=e.fn(e._value);(t.version===0||ht(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{ce=n,Ve=r,vs(e),e.flags&=-3}}function Vr(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)Vr(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function ca(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ve=!0;const ys=[];function _t(){ys.push(Ve),Ve=!1}function Ct(){const e=ys.pop();Ve=e===void 0?!0:e}function ws(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ce;ce=void 0;try{t()}finally{ce=n}}}let cn=0;class ua{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Wn{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!ce||!Ve||ce===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ce)n=this.activeLink=new ua(ce,this),ce.deps?(n.prevDep=ce.depsTail,ce.depsTail.nextDep=n,ce.depsTail=n):ce.deps=ce.depsTail=n,ks(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=ce.depsTail,n.nextDep=void 0,ce.depsTail.nextDep=n,ce.depsTail=n,ce.deps===n&&(ce.deps=r)}return n}trigger(t){this.version++,cn++,this.notify(t)}notify(t){Ur();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Nr()}}}function ks(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)ks(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const qn=new WeakMap,St=Symbol(""),Wr=Symbol(""),un=Symbol("");function xe(e,t,n){if(Ve&&ce){let r=qn.get(e);r||qn.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new Wn),i.map=r,i.key=n),i.track()}}function tt(e,t,n,r,i,s){const l=qn.get(e);if(!l){cn++;return}const o=a=>{a&&a.trigger()};if(Ur(),t==="clear")l.forEach(o);else{const a=q(e),c=a&&jr(n);if(a&&n==="length"){const u=Number(r);l.forEach((f,d)=>{(d==="length"||d===un||!Ze(d)&&d>=u)&&o(f)})}else switch((n!==void 0||l.has(void 0))&&o(l.get(n)),c&&o(l.get(un)),t){case"add":a?c&&o(l.get("length")):(o(l.get(St)),Ft(e)&&o(l.get(Wr)));break;case"delete":a||(o(l.get(St)),Ft(e)&&o(l.get(Wr)));break;case"set":Ft(e)&&o(l.get(St));break}}Nr()}function fa(e,t){const n=qn.get(e);return n&&n.get(t)}function Ut(e){const t=Q(e);return t===e?t:(xe(t,"iterate",un),De(e)?t:t.map(_e))}function Kn(e){return xe(e=Q(e),"iterate",un),e}const ha={__proto__:null,[Symbol.iterator](){return qr(this,Symbol.iterator,_e)},concat(...e){return Ut(this).concat(...e.map(t=>q(t)?Ut(t):t))},entries(){return qr(this,"entries",e=>(e[1]=_e(e[1]),e))},every(e,t){return nt(this,"every",e,t,void 0,arguments)},filter(e,t){return nt(this,"filter",e,t,n=>n.map(_e),arguments)},find(e,t){return nt(this,"find",e,t,_e,arguments)},findIndex(e,t){return nt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return nt(this,"findLast",e,t,_e,arguments)},findLastIndex(e,t){return nt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return nt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Kr(this,"includes",e)},indexOf(...e){return Kr(this,"indexOf",e)},join(e){return Ut(this).join(e)},lastIndexOf(...e){return Kr(this,"lastIndexOf",e)},map(e,t){return nt(this,"map",e,t,void 0,arguments)},pop(){return fn(this,"pop")},push(...e){return fn(this,"push",e)},reduce(e,...t){return xs(this,"reduce",e,t)},reduceRight(e,...t){return xs(this,"reduceRight",e,t)},shift(){return fn(this,"shift")},some(e,t){return nt(this,"some",e,t,void 0,arguments)},splice(...e){return fn(this,"splice",e)},toReversed(){return Ut(this).toReversed()},toSorted(e){return Ut(this).toSorted(e)},toSpliced(...e){return Ut(this).toSpliced(...e)},unshift(...e){return fn(this,"unshift",e)},values(){return qr(this,"values",_e)}};function qr(e,t,n){const r=Kn(e),i=r[t]();return r!==e&&!De(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.value&&(s.value=n(s.value)),s}),i}const pa=Array.prototype;function nt(e,t,n,r,i,s){const l=Kn(e),o=l!==e&&!De(e),a=l[t];if(a!==pa[t]){const f=a.apply(e,s);return o?_e(f):f}let c=n;l!==e&&(o?c=function(f,d){return n.call(this,_e(f),d,e)}:n.length>2&&(c=function(f,d){return n.call(this,f,d,e)}));const u=a.call(l,c,r);return o&&i?i(u):u}function xs(e,t,n,r){const i=Kn(e);let s=n;return i!==e&&(De(e)?n.length>3&&(s=function(l,o,a){return n.call(this,l,o,a,e)}):s=function(l,o,a){return n.call(this,l,_e(o),a,e)}),i[t](s,...r)}function Kr(e,t,n){const r=Q(e);xe(r,"iterate",un);const i=r[t](...n);return(i===-1||i===!1)&&Zr(n[0])?(n[0]=Q(n[0]),r[t](...n)):i}function fn(e,t,n=[]){_t(),Ur();const r=Q(e)[t].apply(e,n);return Nr(),Ct(),r}const da=Pr("__proto__,__v_isRef,__isVue"),_s=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ze));function ga(e){Ze(e)||(e=String(e));const t=Q(this);return xe(t,"has",e),t.hasOwnProperty(e)}class Cs{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(i?s?Ts:Es:s?As:Rs).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const l=q(t);if(!i){let a;if(l&&(a=ha[n]))return a;if(n==="hasOwnProperty")return ga}const o=Reflect.get(t,n,be(t)?t:r);return(Ze(n)?_s.has(n):da(n))||(i||xe(t,"get",n),s)?o:be(o)?l&&jr(n)?o:o.value:pe(o)?i?Nt(o):hn(o):o}}class Ss extends Cs{constructor(t=!1){super(!1,t)}set(t,n,r,i){let s=t[n];if(!this._isShallow){const a=$t(s);if(!De(r)&&!$t(r)&&(s=Q(s),r=Q(r)),!q(t)&&be(s)&&!be(r))return a?!1:(s.value=r,!0)}const l=q(t)&&jr(n)?Number(n)<t.length:X(t,n),o=Reflect.set(t,n,r,be(t)?t:i);return t===Q(i)&&(l?ht(r,s)&&tt(t,"set",n,r):tt(t,"add",n,r)),o}deleteProperty(t,n){const r=X(t,n),i=Reflect.deleteProperty(t,n);return i&&r&&tt(t,"delete",n,void 0),i}has(t,n){const r=Reflect.has(t,n);return(!Ze(n)||!_s.has(n))&&xe(t,"has",n),r}ownKeys(t){return xe(t,"iterate",q(t)?"length":St),Reflect.ownKeys(t)}}class $s extends Cs{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const ma=new Ss,va=new $s,ba=new Ss(!0),ya=new $s(!0),Gr=e=>e,Gn=e=>Reflect.getPrototypeOf(e);function wa(e,t,n){return function(...r){const i=this.__v_raw,s=Q(i),l=Ft(s),o=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,c=i[e](...r),u=n?Gr:t?Yr:_e;return!t&&xe(s,"iterate",a?Wr:St),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:o?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function Zn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ka(e,t){const n={get(i){const s=this.__v_raw,l=Q(s),o=Q(i);e||(ht(i,o)&&xe(l,"get",i),xe(l,"get",o));const{has:a}=Gn(l),c=t?Gr:e?Yr:_e;if(a.call(l,i))return c(s.get(i));if(a.call(l,o))return c(s.get(o));s!==l&&s.get(i)},get size(){const i=this.__v_raw;return!e&&xe(Q(i),"iterate",St),Reflect.get(i,"size",i)},has(i){const s=this.__v_raw,l=Q(s),o=Q(i);return e||(ht(i,o)&&xe(l,"has",i),xe(l,"has",o)),i===o?s.has(i):s.has(i)||s.has(o)},forEach(i,s){const l=this,o=l.__v_raw,a=Q(o),c=t?Gr:e?Yr:_e;return!e&&xe(a,"iterate",St),o.forEach((u,f)=>i.call(s,c(u),c(f),l))}};return je(n,e?{add:Zn("add"),set:Zn("set"),delete:Zn("delete"),clear:Zn("clear")}:{add(i){!t&&!De(i)&&!$t(i)&&(i=Q(i));const s=Q(this);return Gn(s).has.call(s,i)||(s.add(i),tt(s,"add",i,i)),this},set(i,s){!t&&!De(s)&&!$t(s)&&(s=Q(s));const l=Q(this),{has:o,get:a}=Gn(l);let c=o.call(l,i);c||(i=Q(i),c=o.call(l,i));const u=a.call(l,i);return l.set(i,s),c?ht(s,u)&&tt(l,"set",i,s):tt(l,"add",i,s),this},delete(i){const s=Q(this),{has:l,get:o}=Gn(s);let a=l.call(s,i);a||(i=Q(i),a=l.call(s,i)),o&&o.call(s,i);const c=s.delete(i);return a&&tt(s,"delete",i,void 0),c},clear(){const i=Q(this),s=i.size!==0,l=i.clear();return s&&tt(i,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=wa(i,e,t)}),n}function Yn(e,t){const n=ka(e,t);return(r,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(X(n,i)&&i in r?n:r,i,s)}const xa={get:Yn(!1,!1)},_a={get:Yn(!1,!0)},Ca={get:Yn(!0,!1)},Sa={get:Yn(!0,!0)},Rs=new WeakMap,As=new WeakMap,Es=new WeakMap,Ts=new WeakMap;function $a(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ra(e){return e.__v_skip||!Object.isExtensible(e)?0:$a(Qo(e))}function hn(e){return $t(e)?e:Jn(e,!1,ma,xa,Rs)}function Aa(e){return Jn(e,!1,ba,_a,As)}function Nt(e){return Jn(e,!0,va,Ca,Es)}function Ea(e){return Jn(e,!0,ya,Sa,Ts)}function Jn(e,t,n,r,i){if(!pe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const l=Ra(e);if(l===0)return e;const o=new Proxy(e,l===2?r:n);return i.set(e,o),o}function Bt(e){return $t(e)?Bt(e.__v_raw):!!(e&&e.__v_isReactive)}function $t(e){return!!(e&&e.__v_isReadonly)}function De(e){return!!(e&&e.__v_isShallow)}function Zr(e){return e?!!e.__v_raw:!1}function Q(e){const t=e&&e.__v_raw;return t?Q(t):e}function Ta(e){return!X(e,"__v_skip")&&Object.isExtensible(e)&&os(e,"__v_skip",!0),e}const _e=e=>pe(e)?hn(e):e,Yr=e=>pe(e)?Nt(e):e;function be(e){return e?e.__v_isRef===!0:!1}function ie(e){return Is(e,!1)}function Rt(e){return Is(e,!0)}function Is(e,t){return be(e)?e:new Ia(e,t)}class Ia{constructor(t,n){this.dep=new Wn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Q(t),this._value=n?t:_e(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||De(t)||$t(t);t=r?t:Q(t),ht(t,n)&&(this._rawValue=t,this._value=r?t:_e(t),this.dep.trigger())}}function K(e){return be(e)?e.value:e}function Le(e){return ee(e)?e():K(e)}const La={get:(e,t,n)=>t==="__v_raw"?e:K(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return be(i)&&!be(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Ls(e){return Bt(e)?e:new Proxy(e,La)}class Ma{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Wn,{get:r,set:i}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Pa(e){return new Ma(e)}class Oa{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return fa(Q(this._object),this._key)}}class ja{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function za(e,t,n){return be(e)?e:ee(e)?new ja(e):pe(e)&&arguments.length>1?Da(e,t,n):ie(e)}function Da(e,t,n){const r=e[t];return be(r)?r:new Oa(e,t,n)}class Fa{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Wn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=cn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&ce!==this)return gs(this,!0),!0}get value(){const t=this.dep.track();return bs(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Ha(e,t,n=!1){let r,i;return ee(e)?r=e:(r=e.get,i=e.set),new Fa(r,i,n)}const Qn={},Xn=new WeakMap;let At;function Ua(e,t=!1,n=At){if(n){let r=Xn.get(n);r||Xn.set(n,r=[]),r.push(e)}}function Na(e,t,n=le){const{immediate:r,deep:i,once:s,scheduler:l,augmentJob:o,call:a}=n,c=I=>i?I:De(I)||i===!1||i===0?rt(I,1):rt(I);let u,f,d,m,x=!1,b=!1;if(be(e)?(f=()=>e.value,x=De(e)):Bt(e)?(f=()=>c(e),x=!0):q(e)?(b=!0,x=e.some(I=>Bt(I)||De(I)),f=()=>e.map(I=>{if(be(I))return I.value;if(Bt(I))return c(I);if(ee(I))return a?a(I,2):I()})):ee(e)?t?f=a?()=>a(e,2):e:f=()=>{if(d){_t();try{d()}finally{Ct()}}const I=At;At=u;try{return a?a(e,3,[m]):e(m)}finally{At=I}}:f=wt,t&&i){const I=f,O=i===!0?1/0:i;f=()=>rt(I(),O)}const T=hs(),w=()=>{u.stop(),T&&T.active&&ns(T.effects,u)};if(s&&t){const I=t;t=(...O)=>{I(...O),w()}}let C=b?new Array(e.length).fill(Qn):Qn;const N=I=>{if(!(!(u.flags&1)||!u.dirty&&!I))if(t){const O=u.run();if(i||x||(b?O.some((G,j)=>ht(G,C[j])):ht(O,C))){d&&d();const G=At;At=u;try{const j=[O,C===Qn?void 0:b&&C[0]===Qn?[]:C,m];a?a(t,3,j):t(...j),C=O}finally{At=G}}}else u.run()};return o&&o(N),u=new ps(f),u.scheduler=l?()=>l(N,!1):N,m=I=>Ua(I,!1,u),d=u.onStop=()=>{const I=Xn.get(u);if(I){if(a)a(I,4);else for(const O of I)O();Xn.delete(u)}},t?r?N(!0):C=u.run():l?l(N.bind(null,!0),!0):u.run(),w.pause=u.pause.bind(u),w.resume=u.resume.bind(u),w.stop=w,w}function rt(e,t=1/0,n){if(t<=0||!pe(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,be(e))rt(e.value,t,n);else if(q(e))for(let r=0;r<e.length;r++)rt(e[r],t,n);else if(Ht(e)||Ft(e))e.forEach(r=>{rt(r,t,n)});else if(ls(e)){for(const r in e)rt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&rt(e[r],t,n)}return e}/** * @vue/runtime-core v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function pn(e,t,n,r){try{return r?e(...r):e()}catch(i){er(i,t,n)}}function it(e,t,n,r){if(ee(e)){const i=pn(e,t,n,r);return i&&is(i)&&i.catch(s=>{er(s,t,n)}),i}if(q(e)){const i=[];for(let s=0;s<e.length;s++)i.push(it(e[s],t,n,r));return i}}function er(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||le;if(t){let o=t.parent;const a=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const u=o.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,a,c)===!1)return}o=o.parent}if(s){_t(),pn(s,null,10,[e,a,c]),Ct();return}}Ba(e,n,i,r,l)}function Ba(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}const Se=[];let Ye=-1;const Vt=[];let pt=null,Wt=0;const Ms=Promise.resolve();let tr=null;function qt(e){const t=tr||Ms;return e?t.then(this?e.bind(this):e):t}function Va(e){let t=Ye+1,n=Se.length;for(;t<n;){const r=t+n>>>1,i=Se[r],s=dn(i);s<e||s===e&&i.flags&2?t=r+1:n=r}return t}function Jr(e){if(!(e.flags&1)){const t=dn(e),n=Se[Se.length-1];!n||!(e.flags&2)&&t>=dn(n)?Se.push(e):Se.splice(Va(t),0,e),e.flags|=1,Ps()}}function Ps(){tr||(tr=Ms.then(zs))}function Wa(e){q(e)?Vt.push(...e):pt&&e.id===-1?pt.splice(Wt+1,0,e):e.flags&1||(Vt.push(e),e.flags|=1),Ps()}function Os(e,t,n=Ye+1){for(;n<Se.length;n++){const r=Se[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Se.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function js(e){if(Vt.length){const t=[...new Set(Vt)].sort((n,r)=>dn(n)-dn(r));if(Vt.length=0,pt){pt.push(...t);return}for(pt=t,Wt=0;Wt<pt.length;Wt++){const n=pt[Wt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}pt=null,Wt=0}}const dn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function zs(e){try{for(Ye=0;Ye<Se.length;Ye++){const t=Se[Ye];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),pn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ye<Se.length;Ye++){const t=Se[Ye];t&&(t.flags&=-2)}Ye=-1,Se.length=0,js(),tr=null,(Se.length||Vt.length)&&zs()}}let Ie=null,Ds=null;function nr(e){const t=Ie;return Ie=e,Ds=e&&e.type.__scopeId||null,t}function qa(e,t=Ie,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&il(-1);const s=nr(t);let l;try{l=e(...i)}finally{nr(s),r._d&&il(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function rr(e,t){if(Ie===null)return e;const n=fr(Ie),r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[s,l,o,a=le]=t[i];s&&(ee(s)&&(s={mounted:s,updated:s}),s.deep&&rt(l),r.push({dir:s,instance:n,value:l,oldValue:void 0,arg:o,modifiers:a}))}return e}function Et(e,t,n,r){const i=e.dirs,s=t&&t.dirs;for(let l=0;l<i.length;l++){const o=i[l];s&&(o.oldValue=s[l].value);let a=o.dir[r];a&&(_t(),it(a,n,8,[e.el,o,e,t]),Ct())}}const Ka=Symbol("_vte"),Ga=e=>e.__isTeleport;function Qr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Qr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function gn(e,t){return ee(e)?je({name:e.name},t,{setup:e}):e}function Za(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function dt(e){const t=ol(),n=Rt(null);if(t){const i=t.refs===le?t.refs={}:t.refs;Object.defineProperty(i,e,{enumerable:!0,get:()=>n.value,set:s=>n.value=s})}return n}function ir(e,t,n,r,i=!1){if(q(e)){e.forEach((x,b)=>ir(x,t&&(q(t)?t[b]:t),n,r,i));return}if(mn(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&ir(e,t,n,r.component.subTree);return}const s=r.shapeFlag&4?fr(r.component):r.el,l=i?null:s,{i:o,r:a}=e,c=t&&t.r,u=o.refs===le?o.refs={}:o.refs,f=o.setupState,d=Q(f),m=f===le?()=>!1:x=>X(d,x);if(c!=null&&c!==a&&(ye(c)?(u[c]=null,m(c)&&(f[c]=null)):be(c)&&(c.value=null)),ee(a))pn(a,o,12,[l,u]);else{const x=ye(a),b=be(a);if(x||b){const T=()=>{if(e.f){const w=x?m(a)?f[a]:u[a]:a.value;i?q(w)&&ns(w,s):q(w)?w.includes(s)||w.push(s):x?(u[a]=[s],m(a)&&(f[a]=u[a])):(a.value=[s],e.k&&(u[e.k]=a.value))}else x?(u[a]=l,m(a)&&(f[a]=l)):b&&(a.value=l,e.k&&(u[e.k]=l))};l?(T.id=-1,Me(T,n)):T()}}}sn().requestIdleCallback,sn().cancelIdleCallback;const mn=e=>!!e.type.__asyncLoader,Ya=e=>e.type.__isKeepAlive;function Ja(e,t,n=$e,r=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...l)=>{_t();const o=ci(n),a=it(t,n,e,l);return o(),Ct(),a});return r?i.unshift(s):i.push(s),s}}const Xr=e=>(t,n=$e)=>{(!xn||e==="sp")&&Ja(e,(...r)=>t(...r),n)},vn=Xr("m"),Qa=Xr("bum"),ei=Xr("um"),Xa="components";function ec(e,t){return nc(Xa,e,!0,t)||e}const tc=Symbol.for("v-ndc");function nc(e,t,n=!0,r=!1){const i=Ie||$e;if(i){const s=i.type;{const o=Fc(s,!1);if(o&&(o===t||o===ze(t)||o===Nn(ze(t))))return s}const l=Fs(i[e]||s[e],t)||Fs(i.appContext[e],t);return!l&&r?s:l}}function Fs(e,t){return e&&(e[t]||e[ze(t)]||e[Nn(ze(t))])}function Fe(e,t,n,r){let i;const s=n,l=q(e);if(l||ye(e)){const o=l&&Bt(e);let a=!1;o&&(a=!De(e),e=Kn(e)),i=new Array(e.length);for(let c=0,u=e.length;c<u;c++)i[c]=t(a?_e(e[c]):e[c],c,void 0,s)}else if(typeof e=="number"){i=new Array(e);for(let o=0;o<e;o++)i[o]=t(o+1,o,void 0,s)}else if(pe(e))if(e[Symbol.iterator])i=Array.from(e,(o,a)=>t(o,a,void 0,s));else{const o=Object.keys(e);i=new Array(o.length);for(let a=0,c=o.length;a<c;a++){const u=o[a];i[a]=t(e[u],u,a,s)}}else i=[];return i}const ti=e=>e?cl(e)?fr(e):ti(e.parent):null,bn=je(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ti(e.parent),$root:e=>ti(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>{Jr(e.update)}),$nextTick:e=>e.n||(e.n=qt.bind(e.proxy)),$watch:e=>wt}),ni=(e,t)=>e!==le&&!e.__isScriptSetup&&X(e,t),rc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:s,accessCache:l,type:o,appContext:a}=e;let c;if(t[0]!=="$"){const m=l[t];if(m!==void 0)switch(m){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(ni(r,t))return l[t]=1,r[t];if(i!==le&&X(i,t))return l[t]=2,i[t];if((c=e.propsOptions[0])&&X(c,t))return l[t]=3,s[t];if(n!==le&&X(n,t))return l[t]=4,n[t];l[t]=0}}const u=bn[t];let f,d;if(u)return t==="$attrs"&&xe(e.attrs,"get",""),u(e);if((f=o.__cssModules)&&(f=f[t]))return f;if(n!==le&&X(n,t))return l[t]=4,n[t];if(d=a.config.globalProperties,X(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return ni(i,t)?(i[t]=n,!0):r!==le&&X(r,t)?(r[t]=n,!0):X(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},l){let o;return!!n[l]||e!==le&&X(e,l)||ni(t,l)||(o=s[0])&&X(o,l)||X(r,l)||X(bn,l)||X(i.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:X(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Hs(){return{app:null,config:{isNativeTag:Yo,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ic=0;function sc(e,t){return function(r,i=null){ee(r)||(r=je({},r)),i!=null&&!pe(i)&&(i=null);const s=Hs(),l=new WeakSet,o=[];let a=!1;const c=s.app={_uid:ic++,_component:r,_props:i,_container:null,_context:s,_instance:null,version:Uc,get config(){return s.config},set config(u){},use(u,...f){return l.has(u)||(u&&ee(u.install)?(l.add(u),u.install(c,...f)):ee(u)&&(l.add(u),u(c,...f))),c},mixin(u){return c},component(u,f){return f?(s.components[u]=f,c):s.components[u]},directive(u,f){return f?(s.directives[u]=f,c):s.directives[u]},mount(u,f,d){if(!a){const m=c._ceVNode||oe(r,i);return m.appContext=s,d===!0?d="svg":d===!1&&(d=void 0),e(m,u,d),a=!0,c._container=u,u.__vue_app__=c,fr(m.component)}},onUnmount(u){o.push(u)},unmount(){a&&(it(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,f){return s.provides[u]=f,c},runWithContext(u){const f=Kt;Kt=c;try{return u()}finally{Kt=f}}};return c}}let Kt=null;function lc(e,t){if($e){let n=$e.provides;const r=$e.parent&&$e.parent.provides;r===n&&(n=$e.provides=Object.create(r)),n[e]=t}}function sr(e,t,n=!1){const r=$e||Ie;if(r||Kt){const i=Kt?Kt._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&ee(t)?t.call(r&&r.proxy):t}}const Us={},Ns=()=>Object.create(Us),Bs=e=>Object.getPrototypeOf(e)===Us;function oc(e,t,n,r=!1){const i={},s=Ns();e.propsDefaults=Object.create(null),Vs(e,t,i,s);for(const l in e.propsOptions[0])l in i||(i[l]=void 0);n?e.props=r?i:Aa(i):e.type.props?e.props=i:e.props=s,e.attrs=s}function ac(e,t,n,r){const{props:i,attrs:s,vnode:{patchFlag:l}}=e,o=Q(i),[a]=e.propsOptions;let c=!1;if((r||l>0)&&!(l&16)){if(l&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let d=u[f];if(lr(e.emitsOptions,d))continue;const m=t[d];if(a)if(X(s,d))m!==s[d]&&(s[d]=m,c=!0);else{const x=ze(d);i[x]=ri(a,o,x,m,e,!1)}else m!==s[d]&&(s[d]=m,c=!0)}}}else{Vs(e,t,i,s)&&(c=!0);let u;for(const f in o)(!t||!X(t,f)&&((u=kt(f))===f||!X(t,u)))&&(a?n&&(n[f]!==void 0||n[u]!==void 0)&&(i[f]=ri(a,o,f,void 0,e,!0)):delete i[f]);if(s!==o)for(const f in s)(!t||!X(t,f))&&(delete s[f],c=!0)}c&&tt(e.attrs,"set","")}function Vs(e,t,n,r){const[i,s]=e.propsOptions;let l=!1,o;if(t)for(let a in t){if(rn(a))continue;const c=t[a];let u;i&&X(i,u=ze(a))?!s||!s.includes(u)?n[u]=c:(o||(o={}))[u]=c:lr(e.emitsOptions,a)||(!(a in r)||c!==r[a])&&(r[a]=c,l=!0)}if(s){const a=Q(n),c=o||le;for(let u=0;u<s.length;u++){const f=s[u];n[f]=ri(i,a,f,c[f],e,!X(c,f))}}return l}function ri(e,t,n,r,i,s){const l=e[n];if(l!=null){const o=X(l,"default");if(o&&r===void 0){const a=l.default;if(l.type!==Function&&!l.skipFactory&&ee(a)){const{propsDefaults:c}=i;if(n in c)r=c[n];else{const u=ci(i);r=c[n]=a.call(null,t),u()}}else r=a;i.ce&&i.ce._setProp(n,r)}l[0]&&(s&&!o?r=!1:l[1]&&(r===""||r===kt(n))&&(r=!0))}return r}function cc(e,t,n=!1){const r=t.propsCache,i=r.get(e);if(i)return i;const s=e.props,l={},o=[];if(!s)return pe(e)&&r.set(e,Dt),Dt;if(q(s))for(let c=0;c<s.length;c++){const u=ze(s[c]);Ws(u)&&(l[u]=le)}else if(s)for(const c in s){const u=ze(c);if(Ws(u)){const f=s[c],d=l[u]=q(f)||ee(f)?{type:f}:je({},f),m=d.type;let x=!1,b=!0;if(q(m))for(let T=0;T<m.length;++T){const w=m[T],C=ee(w)&&w.name;if(C==="Boolean"){x=!0;break}else C==="String"&&(b=!1)}else x=ee(m)&&m.name==="Boolean";d[0]=x,d[1]=b,(x||X(d,"default"))&&o.push(u)}}const a=[l,o];return pe(e)&&r.set(e,a),a}function Ws(e){return e[0]!=="$"&&!rn(e)}const qs=e=>e[0]==="_"||e==="$stable",ii=e=>q(e)?e.map(Je):[Je(e)],uc=(e,t,n)=>{if(t._n)return t;const r=qa((...i)=>ii(t(...i)),n);return r._c=!1,r},Ks=(e,t,n)=>{const r=e._ctx;for(const i in e){if(qs(i))continue;const s=e[i];if(ee(s))t[i]=uc(i,s,r);else if(s!=null){const l=ii(s);t[i]=()=>l}}},Gs=(e,t)=>{const n=ii(t);e.slots.default=()=>n},Zs=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},fc=(e,t,n)=>{const r=e.slots=Ns();if(e.vnode.shapeFlag&32){const i=t._;i?(Zs(r,t,n),n&&os(r,"_",i,!0)):Ks(t,r)}else t&&Gs(e,t)},hc=(e,t,n)=>{const{vnode:r,slots:i}=e;let s=!0,l=le;if(r.shapeFlag&32){const o=t._;o?n&&o===1?s=!1:Zs(i,t,n):(s=!t.$stable,Ks(t,i)),l=t}else t&&(Gs(e,t),l={default:1});if(s)for(const o in i)!qs(o)&&l[o]==null&&delete i[o]};function pc(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(sn().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Me=Rc;function dc(e){return gc(e)}function gc(e,t){pc();const n=sn();n.__VUE__=!0;const{insert:r,remove:i,patchProp:s,createElement:l,createText:o,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:m=wt,insertStaticContent:x}=e,b=(h,p,g,y=null,k=null,v=null,A=void 0,S=null,$=!!p.dynamicChildren)=>{if(h===p)return;h&&!kn(h,p)&&(y=jt(h),Ke(h,k,v,!0),h=null),p.patchFlag===-2&&($=!1,p.dynamicChildren=null);const{type:_,ref:U,shapeFlag:M}=p;switch(_){case or:T(h,p,g,y);break;case It:w(h,p,g,y);break;case li:h==null&&C(p,g,y,A);break;case ue:B(h,p,g,y,k,v,A,S,$);break;default:M&1?O(h,p,g,y,k,v,A,S,$):M&6?F(h,p,g,y,k,v,A,S,$):(M&64||M&128)&&_.process(h,p,g,y,k,v,A,S,$,R)}U!=null&&k&&ir(U,h&&h.ref,v,p||h,!p)},T=(h,p,g,y)=>{if(h==null)r(p.el=o(p.children),g,y);else{const k=p.el=h.el;p.children!==h.children&&c(k,p.children)}},w=(h,p,g,y)=>{h==null?r(p.el=a(p.children||""),g,y):p.el=h.el},C=(h,p,g,y)=>{[h.el,h.anchor]=x(h.children,p,g,y,h.el,h.anchor)},N=({el:h,anchor:p},g,y)=>{let k;for(;h&&h!==p;)k=d(h),r(h,g,y),h=k;r(p,g,y)},I=({el:h,anchor:p})=>{let g;for(;h&&h!==p;)g=d(h),i(h),h=g;i(p)},O=(h,p,g,y,k,v,A,S,$)=>{p.type==="svg"?A="svg":p.type==="math"&&(A="mathml"),h==null?G(p,g,y,k,v,A,S,$):fe(h,p,k,v,A,S,$)},G=(h,p,g,y,k,v,A,S)=>{let $,_;const{props:U,shapeFlag:M,transition:H,dirs:V}=h;if($=h.el=l(h.type,v,U&&U.is,U),M&8?u($,h.children):M&16&&ae(h.children,$,null,y,k,si(h,v),A,S),V&&Et(h,null,y,"created"),j($,h,h.scopeId,A,y),U){for(const se in U)se!=="value"&&!rn(se)&&s($,se,null,U[se],v,y);"value"in U&&s($,"value",null,U.value,v),(_=U.onVnodeBeforeMount)&&Qe(_,y,h)}V&&Et(h,null,y,"beforeMount");const Z=mc(k,H);Z&&H.beforeEnter($),r($,p,g),((_=U&&U.onVnodeMounted)||Z||V)&&Me(()=>{_&&Qe(_,y,h),Z&&H.enter($),V&&Et(h,null,y,"mounted")},k)},j=(h,p,g,y,k)=>{if(g&&m(h,g),y)for(let v=0;v<y.length;v++)m(h,y[v]);if(k){let v=k.subTree;if(p===v||rl(v.type)&&(v.ssContent===p||v.ssFallback===p)){const A=k.vnode;j(h,A,A.scopeId,A.slotScopeIds,k.parent)}}},ae=(h,p,g,y,k,v,A,S,$=0)=>{for(let _=$;_<h.length;_++){const U=h[_]=S?mt(h[_]):Je(h[_]);b(null,U,p,g,y,k,v,A,S)}},fe=(h,p,g,y,k,v,A)=>{const S=p.el=h.el;let{patchFlag:$,dynamicChildren:_,dirs:U}=p;$|=h.patchFlag&16;const M=h.props||le,H=p.props||le;let V;if(g&&Tt(g,!1),(V=H.onVnodeBeforeUpdate)&&Qe(V,g,p,h),U&&Et(p,h,g,"beforeUpdate"),g&&Tt(g,!0),(M.innerHTML&&H.innerHTML==null||M.textContent&&H.textContent==null)&&u(S,""),_?Ue(h.dynamicChildren,_,S,g,y,si(p,k),v):A||bt(h,p,S,null,g,y,si(p,k),v,!1),$>0){if($&16)E(S,M,H,g,k);else if($&2&&M.class!==H.class&&s(S,"class",null,H.class,k),$&4&&s(S,"style",M.style,H.style,k),$&8){const Z=p.dynamicProps;for(let se=0;se<Z.length;se++){const he=Z[se],Ne=M[he],Ae=H[he];(Ae!==Ne||he==="value")&&s(S,he,Ne,Ae,k,g)}}$&1&&h.children!==p.children&&u(S,p.children)}else!A&&_==null&&E(S,M,H,g,k);((V=H.onVnodeUpdated)||U)&&Me(()=>{V&&Qe(V,g,p,h),U&&Et(p,h,g,"updated")},y)},Ue=(h,p,g,y,k,v,A)=>{for(let S=0;S<p.length;S++){const $=h[S],_=p[S],U=$.el&&($.type===ue||!kn($,_)||$.shapeFlag&70)?f($.el):g;b($,_,U,null,y,k,v,A,!0)}},E=(h,p,g,y,k)=>{if(p!==g){if(p!==le)for(const v in p)!rn(v)&&!(v in g)&&s(h,v,p[v],null,k,y);for(const v in g){if(rn(v))continue;const A=g[v],S=p[v];A!==S&&v!=="value"&&s(h,v,S,A,k,y)}"value"in g&&s(h,"value",p.value,g.value,k)}},B=(h,p,g,y,k,v,A,S,$)=>{const _=p.el=h?h.el:o(""),U=p.anchor=h?h.anchor:o("");let{patchFlag:M,dynamicChildren:H,slotScopeIds:V}=p;V&&(S=S?S.concat(V):V),h==null?(r(_,g,y),r(U,g,y),ae(p.children||[],g,U,k,v,A,S,$)):M>0&&M&64&&H&&h.dynamicChildren?(Ue(h.dynamicChildren,H,g,k,v,A,S),(p.key!=null||k&&p===k.subTree)&&Ys(h,p,!0)):bt(h,p,g,U,k,v,A,S,$)},F=(h,p,g,y,k,v,A,S,$)=>{p.slotScopeI