UNPKG

@waline/client

Version:

client for waline comment system

22 lines 174 kB
var Eo=Object.defineProperty;var To=(e,t,n)=>t in e?Eo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Os=(e,t,n)=>To(e,typeof t!="symbol"?t+"":t,n);var Ts;const js={"Content-Type":"application/json"},Ye=e=>`${e.replace(/\/?$/,"/")}api/`,_t=(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:s})=>fetch(`${Ye(e)}article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(r.join(","))}&lang=${t}`,{signal:s}).then(i=>i.json()).then(i=>_t(i,"Get counter").data),zn=({serverURL:e,lang:t,path:n,type:r,action:s})=>fetch(`${Ye(e)}article?lang=${t}`,{method:"POST",headers:js,body:JSON.stringify({path:n,type:r,action:s})}).then(i=>i.json()).then(i=>_t(i,"Update counter").data),zs=({serverURL:e,lang:t,path:n,page:r,pageSize:s,sortBy:i,signal:l,token:o})=>{const a={};return o&&(a.Authorization=`Bearer ${o}`),fetch(`${Ye(e)}comment?path=${encodeURIComponent(n)}&pageSize=${s}&page=${r}&lang=${t}&sortBy=${i}`,{signal:l,headers:a}).then(c=>c.json()).then(c=>_t(c,"Get comment data").data)},Fs=({serverURL:e,lang:t,token:n,comment:r})=>{const s={"Content-Type":"application/json"};return n&&(s.Authorization=`Bearer ${n}`),fetch(`${Ye(e)}comment?lang=${t}`,{method:"POST",headers:s,body:JSON.stringify(r)}).then(i=>i.json())},Ds=({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${Ye(e)}comment/${r}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then(s=>s.json()).then(s=>_t(s,"Delete comment")),tn=({serverURL:e,lang:t,token:n,objectId:r,comment:s})=>fetch(`${Ye(e)}comment/${r}?lang=${t}`,{method:"PUT",headers:{...js,Authorization:`Bearer ${n}`},body:JSON.stringify(s)}).then(i=>i.json()).then(i=>_t(i,"Update comment")),Hs=({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${Ye(e)}comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then(s=>s.json()).then(s=>_t(s,"Get comment count").data),Us=({lang:e,serverURL:t})=>{const n=(window.innerWidth-450)/2,r=(window.innerHeight-450)/2,s=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 s==null||s.postMessage({type:"TOKEN",data:null},"*"),new Promise(i=>{const l=({data:o})=>{!o||typeof o!="object"||o.type!=="userInfo"||o.data.token&&(s==null||s.close(),window.removeEventListener("message",l),i(o.data))};window.addEventListener("message",l)})},Ns=({serverURL:e,lang:t,paths:n,signal:r})=>Tr({serverURL:e,lang:t,paths:n,type:["time"],signal:r}),Vs=e=>zn({...e,type:"time",action:"inc"}),Bs=({serverURL:e,lang:t,count:n,signal:r,token:s})=>{const i={};return s&&(i.Authorization=`Bearer ${s}`),fetch(`${Ye(e)}comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:i}).then(l=>l.json())},Ws=({serverURL:e,signal:t,pageSize:n,lang:r})=>fetch(`${Ye(e)}user?pageSize=${n}&lang=${r}`,{signal:t}).then(s=>s.json()).then(s=>_t(s,"user list")).then(s=>s.data),Io=["nick","mail","link"],qs=e=>e.filter(t=>Io.includes(t)),Ks=["//unpkg.com/@waline/emojis@1.1.0/weibo"],Lo=["//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"],Mo=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}),Po=e=>e?'<p class="wl-tex">TeX is not available in preview</p>':'<span class="wl-tex">TeX is not available in preview</span>',Oo=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(s=>s.json()).then(({data:s})=>s.map(i=>({title:i.title,src:i.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()})}},jo=/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/,zo=/</,Fo=/(?:^|\s)\/\/(.+?)$/gm,Do=/\/\*([\S\s]*?)\*\//gm,Ho=new RegExp(`(${jo.source}|${zo.source})|((?:${Fo.source})|(?:${Do.source}))`,"gmi"),Gs=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],Ir={},Uo=e=>{let t=0;return e.replace(Ho,(n,r,s)=>{if(s)return`<span style="color: slategray">${s}</span>`;if(r==="<")return"&lt;";let i;Ir[r]?i=Ir[r]:(i=Gs[t],Ir[r]=i);const l=`<span style="color: #${i}">${r}</span>`;return t=++t%Gs.length,l})},No=["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"],Be=e=>Object.fromEntries(e.map((t,n)=>[No[n],t]));var Vo=Be(["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?"]),Zs=Be(["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?"]),Js=Be(["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?"]),Ys=Be(["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 ?"]),Qs=Be(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード",`コメントは $0 から $1 ワードの間でなければなりません! 現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),Bo=Be(["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?"]),Xs=Be(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова",`Пожалуйста, введите комментарии от $0 до $1 слов! Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]),ei=Be(["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?"]),ti=Be(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字",`评论字数应在 $0 到 $1 字之间! 当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),Wo=Be(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字",`留言字數應在 $0 到 $1 字之間! 目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]);const ni="en-US",Fn={zh:ti,"zh-cn":ti,"zh-tw":Wo,en:Zs,"en-us":Zs,fr:Ys,"fr-fr":Ys,jp:Qs,"jp-jp":Qs,"pt-br":Bo,ru:Xs,"ru-ru":Xs,vi:ei,"vi-vn":ei,de:Vo,es:Js,"es-mx":Js},ri=e=>Fn[e.toLowerCase()]||Fn[ni.toLowerCase()],si=e=>Object.keys(Fn).includes(e.toLowerCase())?e:ni,ii={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},qo=Object.keys(ii),Dn=Symbol("waline-config"),li=e=>{try{e=decodeURI(e)}catch{}return e},oi=(e="")=>e.replace(/\/$/u,""),ai=e=>/^(https?:)?\/\//.test(e),Hn=e=>{const t=oi(e);return ai(t)?t:`https://${t}`},Ko=e=>Array.isArray(e)?e:e?[0,e]:!1,nn=(e,t)=>e==null||e===!0?t:e===!1?null:e,Go=({serverURL:e,path:t=location.pathname,lang:n=typeof navigator>"u"?"en-US":navigator.language,locale:r,meta:s=["nick","mail","link"],requiredMeta:i=[],dark:l=!1,pageSize:o=10,wordLimit:a,noCopyright:c=!1,login:u="enable",recaptchaV3Key:f="",turnstileKey:d="",commentSorting:m="latest",emoji:x=Ks,imageUploader:b,highlighter:E,texRenderer:w,search:$,reaction:H,...I})=>({serverURL:Hn(e),path:li(t),lang:si(n),locale:{...ri(si(n)),...typeof r=="object"?r:{}},wordLimit:Ko(a),meta:qs(s),requiredMeta:qs(i),dark:l,pageSize:o,commentSorting:m,login:u,noCopyright:c,recaptchaV3Key:f,turnstileKey:d,...I,reaction:H===!0?Lo:H||null,imageUploader:nn(b,Mo),highlighter:nn(E,Uo),texRenderer:nn(w,Po),emoji:nn(x,Ks),search:nn($,Oo(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}",Zo=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},Jo=e=>{const t=Mr(e.getDate(),2),n=Mr(e.getMonth()+1,2);return`${Mr(e.getFullYear(),2)}-${n}-${t}`},Yo=(e,t,n)=>{if(!e)return"";const r=zt(e)?new Date(e.includes(" ")?e.replace(/-/g,"/"):e):e,s=t.getTime()-r.getTime(),i=Math.floor(s/(24*3600*1e3));if(i===0){const l=s%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 i<0?n.now:i<8?`${i} ${n.days}`:Jo(r)},Qo=/^[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])?)*$/,Xo=e=>Qo.test(e);/** * @vue/shared v3.5.17 * (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 ce={},Ft=[],$t=()=>{},ea=()=>!1,Un=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,ci=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ta=Object.prototype.hasOwnProperty,re=(e,t)=>ta.call(e,t),K=Array.isArray,Dt=e=>rn(e)==="[object Map]",Ht=e=>rn(e)==="[object Set]",ui=e=>rn(e)==="[object Date]",se=e=>typeof e=="function",we=e=>typeof e=="string",We=e=>typeof e=="symbol",de=e=>e!==null&&typeof e=="object",fi=e=>(de(e)||se(e))&&se(e.then)&&se(e.catch),hi=Object.prototype.toString,rn=e=>hi.call(e),na=e=>rn(e).slice(8,-1),pi=e=>rn(e)==="[object Object]",jr=e=>we(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,sn=Pr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Nn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ra=/-(\w)/g,ze=Nn(e=>e.replace(ra,(t,n)=>n?n.toUpperCase():"")),sa=/\B([A-Z])/g,Ct=Nn(e=>e.replace(sa,"-$1").toLowerCase()),Vn=Nn(e=>e.charAt(0).toUpperCase()+e.slice(1)),zr=Nn(e=>e?`on${Vn(e)}`:""),ct=(e,t)=>!Object.is(e,t),Bn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Fr=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Wn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let di;const ln=()=>di||(di=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function on(e){if(K(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=we(r)?aa(r):on(r);if(s)for(const i in s)t[i]=s[i]}return t}else if(we(e)||de(e))return e}const ia=/;(?![^(]*\))/g,la=/:([^]+)/,oa=/\/\*[^]*?\*\//g;function aa(e){const t={};return e.replace(oa,"").split(ia).forEach(n=>{if(n){const r=n.split(la);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function be(e){let t="";if(we(e))t=e;else if(K(e))for(let n=0;n<e.length;n++){const r=be(e[n]);r&&(t+=r+" ")}else if(de(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const ca="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ua=Pr(ca);function gi(e){return!!e||e===""}function fa(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=St(e[r],t[r]);return n}function St(e,t){if(e===t)return!0;let n=ui(e),r=ui(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=We(e),r=We(t),n||r)return e===t;if(n=K(e),r=K(t),n||r)return n&&r?fa(e,t):!1;if(n=de(e),r=de(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,i=Object.keys(t).length;if(s!==i)return!1;for(const l in e){const o=e.hasOwnProperty(l),a=t.hasOwnProperty(l);if(o&&!a||!o&&a||!St(e[l],t[l]))return!1}}return String(e)===String(t)}function Dr(e,t){return e.findIndex(n=>St(n,t))}const mi=e=>!!(e&&e.__v_isRef===!0),ee=e=>we(e)?e:e==null?"":K(e)||de(e)&&(e.toString===hi||!se(e.toString))?mi(e)?ee(e.value):JSON.stringify(e,vi,2):String(e),vi=(e,t)=>mi(t)?vi(e,t.value):Dt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[Hr(r,i)+" =>"]=s,n),{})}:Ht(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Hr(n))}:We(t)?Hr(t):de(t)&&!K(t)&&!pi(t)?String(t):t,Hr=(e,t="")=>{var n;return We(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.5.17 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let _e;class ha{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=_e,!t&&_e&&(this.index=(_e.scopes||(_e.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=_e;try{return _e=this,t()}finally{_e=n}}}on(){++this._on===1&&(this.prevScope=_e,_e=this)}off(){this._on>0&&--this._on===0&&(_e=this.prevScope,this.prevScope=void 0)}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 s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function bi(){return _e}function pa(e,t=!1){_e&&_e.cleanups.push(e)}let he;const Ur=new WeakSet;class yi{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,_e&&_e.active&&_e.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ur.has(this)&&(Ur.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ki(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Si(this),xi(this);const t=he,n=Ne;he=this,Ne=!0;try{return this.fn()}finally{_i(this),he=t,Ne=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Wr(t);this.deps=this.depsTail=void 0,Si(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ur.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Br(this)&&this.run()}get dirty(){return Br(this)}}let wi=0,an,cn;function ki(e,t=!1){if(e.flags|=8,t){e.next=cn,cn=e;return}e.next=an,an=e}function Nr(){wi++}function Vr(){if(--wi>0)return;if(cn){let t=cn;for(cn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;an;){let t=an;for(an=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 xi(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function _i(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Wr(r),da(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}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&&($i(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function $i(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===un)||(e.globalVersion=un,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Br(e))))return;e.flags|=2;const t=e.dep,n=he,r=Ne;he=e,Ne=!0;try{xi(e);const s=e.fn(e._value);(t.version===0||ct(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{he=n,Ne=r,_i(e),e.flags&=-3}}function Wr(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Wr(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function da(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ne=!0;const Ci=[];function ut(){Ci.push(Ne),Ne=!1}function ft(){const e=Ci.pop();Ne=e===void 0?!0:e}function Si(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=he;he=void 0;try{t()}finally{he=n}}}let un=0;class ga{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 qn{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,this.__v_skip=!0}track(t){if(!he||!Ne||he===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==he)n=this.activeLink=new ga(he,this),he.deps?(n.prevDep=he.depsTail,he.depsTail.nextDep=n,he.depsTail=n):he.deps=he.depsTail=n,Ri(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=he.depsTail,n.nextDep=void 0,he.depsTail.nextDep=n,he.depsTail=n,he.deps===n&&(he.deps=r)}return n}trigger(t){this.version++,un++,this.notify(t)}notify(t){Nr();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Vr()}}}function Ri(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)Ri(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Kn=new WeakMap,Rt=Symbol(""),qr=Symbol(""),fn=Symbol("");function $e(e,t,n){if(Ne&&he){let r=Kn.get(e);r||Kn.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new qn),s.map=r,s.key=n),s.track()}}function Qe(e,t,n,r,s,i){const l=Kn.get(e);if(!l){un++;return}const o=a=>{a&&a.trigger()};if(Nr(),t==="clear")l.forEach(o);else{const a=K(e),c=a&&jr(n);if(a&&n==="length"){const u=Number(r);l.forEach((f,d)=>{(d==="length"||d===fn||!We(d)&&d>=u)&&o(f)})}else switch((n!==void 0||l.has(void 0))&&o(l.get(n)),c&&o(l.get(fn)),t){case"add":a?c&&o(l.get("length")):(o(l.get(Rt)),Dt(e)&&o(l.get(qr)));break;case"delete":a||(o(l.get(Rt)),Dt(e)&&o(l.get(qr)));break;case"set":Dt(e)&&o(l.get(Rt));break}}Vr()}function ma(e,t){const n=Kn.get(e);return n&&n.get(t)}function Ut(e){const t=te(e);return t===e?t:($e(t,"iterate",fn),Fe(e)?t:t.map(xe))}function Gn(e){return $e(e=te(e),"iterate",fn),e}const va={__proto__:null,[Symbol.iterator](){return Kr(this,Symbol.iterator,xe)},concat(...e){return Ut(this).concat(...e.map(t=>K(t)?Ut(t):t))},entries(){return Kr(this,"entries",e=>(e[1]=xe(e[1]),e))},every(e,t){return Xe(this,"every",e,t,void 0,arguments)},filter(e,t){return Xe(this,"filter",e,t,n=>n.map(xe),arguments)},find(e,t){return Xe(this,"find",e,t,xe,arguments)},findIndex(e,t){return Xe(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Xe(this,"findLast",e,t,xe,arguments)},findLastIndex(e,t){return Xe(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Xe(this,"forEach",e,t,void 0,arguments)},includes(...e){return Gr(this,"includes",e)},indexOf(...e){return Gr(this,"indexOf",e)},join(e){return Ut(this).join(e)},lastIndexOf(...e){return Gr(this,"lastIndexOf",e)},map(e,t){return Xe(this,"map",e,t,void 0,arguments)},pop(){return hn(this,"pop")},push(...e){return hn(this,"push",e)},reduce(e,...t){return Ai(this,"reduce",e,t)},reduceRight(e,...t){return Ai(this,"reduceRight",e,t)},shift(){return hn(this,"shift")},some(e,t){return Xe(this,"some",e,t,void 0,arguments)},splice(...e){return hn(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 hn(this,"unshift",e)},values(){return Kr(this,"values",xe)}};function Kr(e,t,n){const r=Gn(e),s=r[t]();return r!==e&&!Fe(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.value&&(i.value=n(i.value)),i}),s}const ba=Array.prototype;function Xe(e,t,n,r,s,i){const l=Gn(e),o=l!==e&&!Fe(e),a=l[t];if(a!==ba[t]){const f=a.apply(e,i);return o?xe(f):f}let c=n;l!==e&&(o?c=function(f,d){return n.call(this,xe(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&&s?s(u):u}function Ai(e,t,n,r){const s=Gn(e);let i=n;return s!==e&&(Fe(e)?n.length>3&&(i=function(l,o,a){return n.call(this,l,o,a,e)}):i=function(l,o,a){return n.call(this,l,xe(o),a,e)}),s[t](i,...r)}function Gr(e,t,n){const r=te(e);$e(r,"iterate",fn);const s=r[t](...n);return(s===-1||s===!1)&&Jr(n[0])?(n[0]=te(n[0]),r[t](...n)):s}function hn(e,t,n=[]){ut(),Nr();const r=te(e)[t].apply(e,n);return Vr(),ft(),r}const ya=Pr("__proto__,__v_isRef,__isVue"),Ei=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(We));function wa(e){We(e)||(e=String(e));const t=te(this);return $e(t,"has",e),t.hasOwnProperty(e)}class Ti{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?ji:Oi:i?Pi:Mi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const l=K(t);if(!s){let a;if(l&&(a=va[n]))return a;if(n==="hasOwnProperty")return wa}const o=Reflect.get(t,n,ye(t)?t:r);return(We(n)?Ei.has(n):ya(n))||(s||$e(t,"get",n),i)?o:ye(o)?l&&jr(n)?o:o.value:de(o)?s?Nt(o):pn(o):o}}class Ii extends Ti{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];if(!this._isShallow){const a=ht(i);if(!Fe(r)&&!ht(r)&&(i=te(i),r=te(r)),!K(t)&&ye(i)&&!ye(r))return a?!1:(i.value=r,!0)}const l=K(t)&&jr(n)?Number(n)<t.length:re(t,n),o=Reflect.set(t,n,r,ye(t)?t:s);return t===te(s)&&(l?ct(r,i)&&Qe(t,"set",n,r):Qe(t,"add",n,r)),o}deleteProperty(t,n){const r=re(t,n),s=Reflect.deleteProperty(t,n);return s&&r&&Qe(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!We(n)||!Ei.has(n))&&$e(t,"has",n),r}ownKeys(t){return $e(t,"iterate",K(t)?"length":Rt),Reflect.ownKeys(t)}}class Li extends Ti{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const ka=new Ii,xa=new Li,_a=new Ii(!0),$a=new Li(!0),Zr=e=>e,Zn=e=>Reflect.getPrototypeOf(e);function Ca(e,t,n){return function(...r){const s=this.__v_raw,i=te(s),l=Dt(i),o=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,c=s[e](...r),u=n?Zr:t?Xn:xe;return!t&&$e(i,"iterate",a?qr:Rt),{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 Jn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Sa(e,t){const n={get(s){const i=this.__v_raw,l=te(i),o=te(s);e||(ct(s,o)&&$e(l,"get",s),$e(l,"get",o));const{has:a}=Zn(l),c=t?Zr:e?Xn:xe;if(a.call(l,s))return c(i.get(s));if(a.call(l,o))return c(i.get(o));i!==l&&i.get(s)},get size(){const s=this.__v_raw;return!e&&$e(te(s),"iterate",Rt),Reflect.get(s,"size",s)},has(s){const i=this.__v_raw,l=te(i),o=te(s);return e||(ct(s,o)&&$e(l,"has",s),$e(l,"has",o)),s===o?i.has(s):i.has(s)||i.has(o)},forEach(s,i){const l=this,o=l.__v_raw,a=te(o),c=t?Zr:e?Xn:xe;return!e&&$e(a,"iterate",Rt),o.forEach((u,f)=>s.call(i,c(u),c(f),l))}};return je(n,e?{add:Jn("add"),set:Jn("set"),delete:Jn("delete"),clear:Jn("clear")}:{add(s){!t&&!Fe(s)&&!ht(s)&&(s=te(s));const i=te(this);return Zn(i).has.call(i,s)||(i.add(s),Qe(i,"add",s,s)),this},set(s,i){!t&&!Fe(i)&&!ht(i)&&(i=te(i));const l=te(this),{has:o,get:a}=Zn(l);let c=o.call(l,s);c||(s=te(s),c=o.call(l,s));const u=a.call(l,s);return l.set(s,i),c?ct(i,u)&&Qe(l,"set",s,i):Qe(l,"add",s,i),this},delete(s){const i=te(this),{has:l,get:o}=Zn(i);let a=l.call(i,s);a||(s=te(s),a=l.call(i,s)),o&&o.call(i,s);const c=i.delete(s);return a&&Qe(i,"delete",s,void 0),c},clear(){const s=te(this),i=s.size!==0,l=s.clear();return i&&Qe(s,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Ca(s,e,t)}),n}function Yn(e,t){const n=Sa(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(re(n,s)&&s in r?n:r,s,i)}const Ra={get:Yn(!1,!1)},Aa={get:Yn(!1,!0)},Ea={get:Yn(!0,!1)},Ta={get:Yn(!0,!0)},Mi=new WeakMap,Pi=new WeakMap,Oi=new WeakMap,ji=new WeakMap;function Ia(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function La(e){return e.__v_skip||!Object.isExtensible(e)?0:Ia(na(e))}function pn(e){return ht(e)?e:Qn(e,!1,ka,Ra,Mi)}function Ma(e){return Qn(e,!1,_a,Aa,Pi)}function Nt(e){return Qn(e,!0,xa,Ea,Oi)}function Pa(e){return Qn(e,!0,$a,Ta,ji)}function Qn(e,t,n,r,s){if(!de(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=La(e);if(i===0)return e;const l=s.get(e);if(l)return l;const o=new Proxy(e,i===2?r:n);return s.set(e,o),o}function Vt(e){return ht(e)?Vt(e.__v_raw):!!(e&&e.__v_isReactive)}function ht(e){return!!(e&&e.__v_isReadonly)}function Fe(e){return!!(e&&e.__v_isShallow)}function Jr(e){return e?!!e.__v_raw:!1}function te(e){const t=e&&e.__v_raw;return t?te(t):e}function Oa(e){return!re(e,"__v_skip")&&Object.isExtensible(e)&&Fr(e,"__v_skip",!0),e}const xe=e=>de(e)?pn(e):e,Xn=e=>de(e)?Nt(e):e;function ye(e){return e?e.__v_isRef===!0:!1}function ae(e){return zi(e,!1)}function At(e){return zi(e,!0)}function zi(e,t){return ye(e)?e:new ja(e,t)}class ja{constructor(t,n){this.dep=new qn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:te(t),this._value=n?t:xe(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Fe(t)||ht(t);t=r?t:te(t),ct(t,n)&&(this._rawValue=t,this._value=r?t:xe(t),this.dep.trigger())}}function G(e){return ye(e)?e.value:e}function Ie(e){return se(e)?e():G(e)}const za={get:(e,t,n)=>t==="__v_raw"?e:G(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return ye(s)&&!ye(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Fi(e){return Vt(e)?e:new Proxy(e,za)}class Fa{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new qn,{get:r,set:s}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Da(e){return new Fa(e)}class Ha{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 ma(te(this._object),this._key)}}class Ua{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 Na(e,t,n){return ye(e)?e:se(e)?new Ua(e):de(e)&&arguments.length>1?Va(e,t,n):ae(e)}function Va(e,t,n){const r=e[t];return ye(r)?r:new Ha(e,t,n)}class Ba{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new qn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=un-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&he!==this)return ki(this,!0),!0}get value(){const t=this.dep.track();return $i(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Wa(e,t,n=!1){let r,s;return se(e)?r=e:(r=e.get,s=e.set),new Ba(r,s,n)}const er={},tr=new WeakMap;let Et;function qa(e,t=!1,n=Et){if(n){let r=tr.get(n);r||tr.set(n,r=[]),r.push(e)}}function Ka(e,t,n=ce){const{immediate:r,deep:s,once:i,scheduler:l,augmentJob:o,call:a}=n,c=I=>s?I:Fe(I)||s===!1||s===0?et(I,1):et(I);let u,f,d,m,x=!1,b=!1;if(ye(e)?(f=()=>e.value,x=Fe(e)):Vt(e)?(f=()=>c(e),x=!0):K(e)?(b=!0,x=e.some(I=>Vt(I)||Fe(I)),f=()=>e.map(I=>{if(ye(I))return I.value;if(Vt(I))return c(I);if(se(I))return a?a(I,2):I()})):se(e)?t?f=a?()=>a(e,2):e:f=()=>{if(d){ut();try{d()}finally{ft()}}const I=Et;Et=u;try{return a?a(e,3,[m]):e(m)}finally{Et=I}}:f=$t,t&&s){const I=f,P=s===!0?1/0:s;f=()=>et(I(),P)}const E=bi(),w=()=>{u.stop(),E&&E.active&&ci(E.effects,u)};if(i&&t){const I=t;t=(...P)=>{I(...P),w()}}let $=b?new Array(e.length).fill(er):er;const H=I=>{if(!(!(u.flags&1)||!u.dirty&&!I))if(t){const P=u.run();if(s||x||(b?P.some((W,Z)=>ct(W,$[Z])):ct(P,$))){d&&d();const W=Et;Et=u;try{const Z=[P,$===er?void 0:b&&$[0]===er?[]:$,m];$=P,a?a(t,3,Z):t(...Z)}finally{Et=W}}}else u.run()};return o&&o(H),u=new yi(f),u.scheduler=l?()=>l(H,!1):H,m=I=>qa(I,!1,u),d=u.onStop=()=>{const I=tr.get(u);if(I){if(a)a(I,4);else for(const P of I)P();tr.delete(u)}},t?r?H(!0):$=u.run():l?l(H.bind(null,!0),!0):u.run(),w.pause=u.pause.bind(u),w.resume=u.resume.bind(u),w.stop=w,w}function et(e,t=1/0,n){if(t<=0||!de(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,ye(e))et(e.value,t,n);else if(K(e))for(let r=0;r<e.length;r++)et(e[r],t,n);else if(Ht(e)||Dt(e))e.forEach(r=>{et(r,t,n)});else if(pi(e)){for(const r in e)et(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&et(e[r],t,n)}return e}/** * @vue/runtime-core v3.5.17 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function dn(e,t,n,r){try{return r?e(...r):e()}catch(s){nr(s,t,n)}}function tt(e,t,n,r){if(se(e)){const s=dn(e,t,n,r);return s&&fi(s)&&s.catch(i=>{nr(i,t,n)}),s}if(K(e)){const s=[];for(let i=0;i<e.length;i++)s.push(tt(e[i],t,n,r));return s}}function nr(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||ce;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(i){ut(),dn(i,null,10,[e,a,c]),ft();return}}Ga(e,n,s,r,l)}function Ga(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const Se=[];let qe=-1;const Bt=[];let pt=null,Wt=0;const Di=Promise.resolve();let rr=null;function qt(e){const t=rr||Di;return e?t.then(this?e.bind(this):e):t}function Za(e){let t=qe+1,n=Se.length;for(;t<n;){const r=t+n>>>1,s=Se[r],i=gn(s);i<e||i===e&&s.flags&2?t=r+1:n=r}return t}function Yr(e){if(!(e.flags&1)){const t=gn(e),n=Se[Se.length-1];!n||!(e.flags&2)&&t>=gn(n)?Se.push(e):Se.splice(Za(t),0,e),e.flags|=1,Hi()}}function Hi(){rr||(rr=Di.then(Vi))}function Ja(e){K(e)?Bt.push(...e):pt&&e.id===-1?pt.splice(Wt+1,0,e):e.flags&1||(Bt.push(e),e.flags|=1),Hi()}function Ui(e,t,n=qe+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 Ni(e){if(Bt.length){const t=[...new Set(Bt)].sort((n,r)=>gn(n)-gn(r));if(Bt.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 gn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Vi(e){try{for(qe=0;qe<Se.length;qe++){const t=Se[qe];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),dn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;qe<Se.length;qe++){const t=Se[qe];t&&(t.flags&=-2)}qe=-1,Se.length=0,Ni(),rr=null,(Se.length||Bt.length)&&Vi()}}let Ee=null,Bi=null;function sr(e){const t=Ee;return Ee=e,Bi=e&&e.type.__scopeId||null,t}function Ya(e,t=Ee,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&cl(-1);const i=sr(t);let l;try{l=e(...s)}finally{sr(i),r._d&&cl(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function ir(e,t){if(Ee===null)return e;const n=hr(Ee),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,l,o,a=ce]=t[s];i&&(se(i)&&(i={mounted:i,updated:i}),i.deep&&et(l),r.push({dir:i,instance:n,value:l,oldValue:void 0,arg:o,modifiers:a}))}return e}function Tt(e,t,n,r){const s=e.dirs,i=t&&t.dirs;for(let l=0;l<s.length;l++){const o=s[l];i&&(o.oldValue=i[l].value);let a=o.dir[r];a&&(ut(),tt(a,n,8,[e.el,o,e,t]),ft())}}const Qa=Symbol("_vte"),Xa=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 mn(e,t){return se(e)?je({name:e.name},t,{setup:e}):e}function ec(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function dt(e){const t=hl(),n=At(null);if(t){const s=t.refs===ce?t.refs={}:t.refs;Object.defineProperty(s,e,{enumerable:!0,get:()=>n.value,set:i=>n.value=i})}return n}function vn(e,t,n,r,s=!1){if(K(e)){e.forEach((x,b)=>vn(x,t&&(K(t)?t[b]:t),n,r,s));return}if(bn(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&vn(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?hr(r.component):r.el,l=s?null:i,{i:o,r:a}=e,c=t&&t.r,u=o.refs===ce?o.refs={}:o.refs,f=o.setupState,d=te(f),m=f===ce?()=>!1:x=>re(d,x);if(c!=null&&c!==a&&(we(c)?(u[c]=null,m(c)&&(f[c]=null)):ye(c)&&(c.value=null)),se(a))dn(a,o,12,[l,u]);else{const x=we(a),b=ye(a);if(x||b){const E=()=>{if(e.f){const w=x?m(a)?f[a]:u[a]:a.value;s?K(w)&&ci(w,i):K(w)?w.includes(i)||w.push(i):x?(u[a]=[i],m(a)&&(f[a]=u[a])):(a.value=[i],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?(E.id=-1,Le(E,n)):E()}}}ln().requestIdleCallback,ln().cancelIdleCallback;const bn=e=>!!e.type.__asyncLoader,tc=e=>e.type.__isKeepAlive;function nc(e,t,n=Re,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...l)=>{ut();const o=us(n),a=tt(t,n,e,l);return o(),ft(),a});return r?s.unshift(i):s.push(i),i}}const Xr=e=>(t,n=Re)=>{(!$n||e==="sp")&&nc(e,(...r)=>t(...r),n)},yn=Xr("m"),rc=Xr("bum"),es=Xr("um"),sc="components";function ic(e,t){return oc(sc,e,!0,t)||e}const lc=Symbol.for("v-ndc");function oc(e,t,n=!0,r=!1){const s=Ee||Re;if(s){const i=s.type;{const o=Bc(i,!1);if(o&&(o===t||o===ze(t)||o===Vn(ze(t))))return i}const l=Wi(s[e]||i[e],t)||Wi(s.appContext[e],t);return!l&&r?i:l}}function Wi(e,t){return e&&(e[t]||e[ze(t)]||e[Vn(ze(t))])}function De(e,t,n,r){let s;const i=n,l=K(e);if(l||we(e)){const o=l&&Vt(e);let a=!1,c=!1;o&&(a=!Fe(e),c=ht(e),e=Gn(e)),s=new Array(e.length);for(let u=0,f=e.length;u<f;u++)s[u]=t(a?c?Xn(xe(e[u])):xe(e[u]):e[u],u,void 0,i)}else if(typeof e=="number"){s=new Array(e);for(let o=0;o<e;o++)s[o]=t(o+1,o,void 0,i)}else if(de(e))if(e[Symbol.iterator])s=Array.from(e,(o,a)=>t(o,a,void 0,i));else{const o=Object.keys(e);s=new Array(o.length);for(let a=0,c=o.length;a<c;a++){const u=o[a];s[a]=t(e[u],u,a,i)}}else s=[];return s}const ts=e=>e?dl(e)?hr(e):ts(e.parent):null,wn=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=>ts(e.parent),$root:e=>ts(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>{Yr(e.update)}),$nextTick:e=>e.n||(e.n=qt.bind(e.proxy)),$watch:e=>$t}),ns=(e,t)=>e!==ce&&!e.__isScriptSetup&&re(e,t),ac={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,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 s[t];case 4:return n[t];case 3:return i[t]}else{if(ns(r,t))return l[t]=1,r[t];if(s!==ce&&re(s,t))return l[t]=2,s[t];if((c=e.propsOptions[0])&&re(c,t))return l[t]=3,i[t];if(n!==ce&&re(n,t))return l[t]=4,n[t];l[t]=0}}const u=wn[t];let f,d;if(u)return t==="$attrs"&&$e(e.attrs,"get",""),u(e);if((f=o.__cssModules)&&(f=f[t]))return f;if(n!==ce&&re(n,t))return l[t]=4,n[t];if(d=a.config.globalProperties,re(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return ns(s,t)?(s[t]=n,!0):r!==ce&&re(r,t)?(r[t]=n,!0):re(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:i}},l){let o;return!!n[l]||e!==ce&&re(e,l)||ns(t,l)||(o=i[0])&&re(o,l)||re(r,l)||re(wn,l)||re(s.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:re(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function qi(){return{app:null,config:{isNativeTag:ea,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 cc=0;function uc(e,t){return function(r,s=null){se(r)||(r=je({},r)),s!=null&&!de(s)&&(s=null);const i=qi(),l=new WeakSet,o=[];let a=!1;const c=i.app={_uid:cc++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:qc,get config(){return i.config},set config(u){},use(u,...f){return l.has(u)||(u&&se(u.install)?(l.add(u),u.install(c,...f)):se(u)&&(l.add(u),u(c,...f))),c},mixin(u){return c},component(u,f){return f?(i.components[u]=f,c):i.components[u]},directive(u,f){return f?(i.directives[u]=f,c):i.directives[u]},mount(u,f,d){if(!a){const m=c._ceVNode||ue(r,s);return m.appContext=i,d===!0?d="svg":d===!1&&(d=void 0),e(m,u,d),a=!0,c._container=u,u.__vue_app__=c,hr(m.component)}},onUnmount(u){o.push(u)},unmount(){a&&(tt(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,f){return i.provides[u]=f,c},runWithContext(u){const f=Kt;Kt=c;try{return u()}finally{Kt=f}}};return c}}let Kt=null;function fc(e,t){if(Re){let n=Re.provides;const r=Re.parent&&Re.parent.provides;r===n&&(n=Re.provides=Object.create(r)),n[e]=t}}function lr(e,t,n=!1){const r=Re||Ee;if(r||Kt){let s=Kt?Kt._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&se(t)?t.call(r&&r.proxy):t}}const Ki={},Gi=()=>Object.create(Ki),Zi=e=>Object.getPrototypeOf(e)===Ki;function hc(e,t,n,r=!1){const s={},i=Gi();e.propsDefaults=Object.create(null),Ji(e,t,s,i);for(const l in e.propsOptions[0])l in s||(s[l]=void 0);n?e.props=r?s:Ma(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function pc(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:l}}=e,o=te(s),[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(or(e.emitsOptions,d))continue;const m=t[d];if(a)if(re(i,d))m!==i[d]&&(i[d]=m,c=!0);else{const x=ze(d);s[x]=rs(a,o,x,m,e,!1)}else m!==i[d]&&(i[d]=m,c=!0)}}}else{Ji(e,t,s,i)&&(c=!0);let u;for(const f in o)(!t||!re(t,f)&&((u=Ct(f))===f||!re(t,u)))&&(a?n&&(n[f]!==void 0||n[u]!==void 0)&&(s[f]=rs(a,o,f,void 0,e,!0)):delete s[f]);if(i!==o)for(const f in i)(!t||!re(t,f))&&(delete i[f],c=!0)}c&&Qe(e.attrs,"set","")}function Ji(e,t,n,r){const[s,i]=e.propsOptions;let l=!1,o;if(t)for(let a in t){if(sn(a))continue;const c=t[a];let u;s&&re(s,u=ze(a))?!i||!i.includes(u)?n[u]=c:(o||(o={}))[u]=c:or(e.emitsOptions,a)||(!(a in r)||c!==r[a])&&(r[a]=c,l=!0)}if(i){const a=te(n),c=o||ce;for(let u=0;u<i.length;u++){const f=i[u];n[f]=rs(s,a,f,c[f],e,!re(c,f))}}return l}function rs(e,t,n,r,s,i){const l=e[n];if(l!=null){const o=re(l,"default");if(o&&r===void 0){const a=l.default;if(l.type!==Function&&!l.skipFactory&&se(a)){const{propsDefaults:c}=s;if(n in c)r=c[n];else{const u=us(s);r=c[n]=a.call(null,t),u()}}else r=a;s.ce&&s.ce._setProp(n,r)}l[0]&&(i&&!o?r=!1:l[1]&&(r===""||r===Ct(n))&&(r=!0))}return r}function dc(e,t,n=!1){const r=t.propsCache,s=r.get(e);if(s)return s;const i=e.props,l={},o=[];if(!i)return de(e)&&r.set(e,Ft),Ft;if(K(i))for(let c=0;c<i.length;c++){const u=ze(i[c]);Yi(u)&&(l[u]=ce)}else if(i)for(const c in i){const u=ze(c);if(Yi(u)){const f=i[c],d=l[u]=K(f)||se(f)?{type:f}:je({},f),m=d.type;let x=!1,b=!0;if(K(m))for(let E=0;E<m.length;++E){const w=m[E],$=se(w)&&w.name;if($==="Boolean"){x=!0;break}else $==="String"&&(b=!1)}else x=se(m)&&m.name==="Boolean";d[0]=x,d[1]=b,(x||re(d,"default"))&&o.push(u)}}const a=[l,o];return de(e)&&r.set(e,a),a}function Yi(e){return e[0]!=="$"&&!sn(e)}const ss=e=>e[0]==="_"||e==="$stable",is=e=>K(e)?e.map(Ke):[Ke(e)],gc=(e,t,n)=>{if(t._n)return t;const r=Ya((...s)=>is(t(...s)),n);return r._c=!1,r},Qi=(e,t,n)=>{const r=e._ctx;for(const s in e){if(ss(s))continue;const i=e[s];if(se(i))t[s]=gc(s,i,r);else if(i!=null){const l=is(i);t[s]=()=>l}}},Xi=(e,t)=>{const n=is(t);e.slots.default=()=>n},el=(e,t,n)=>{for(const r in t)(n||!ss(r))&&(e[r]=t[r])},mc=(e,t,n)=>{const r=e.slots=Gi();if(e.vnode.shapeFlag&32){const s=t.__;s&&Fr(r,"__",s,!0);const i=t._;i?(el(r,t,n),n&&Fr(r,"_",i,!0)):Qi(t,r)}else t&&Xi(e,t)},vc=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,l=ce;if(r.shapeFlag&32){const o=t._;o?n&&o===1?i=!1:el(s,t,n):(i=!t.$stable,Qi(t,s)),l=t}else t&&(Xi(e,t),l={default:1});if(i)for(const o in s)!ss(o)&&l[o]==null&&delete s[o]};function bc(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(ln().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Le=Lc;function yc(e){return wc(e)}function wc(e,t){bc();const n=ln();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:l,createText:o,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:m=$t,insertStaticContent:x}=e,b=(h,p,g,y=null,k=null,v=null,A=void 0,C=null,S=!!p.dynamicChildren)=>{if(h===p)return;h&&!_n(h,p)&&(y=xt(h),Ue(h,k,v,!0),h=null),p.patchFlag===-2&&(S=!1,p.dynamicChildren=null);const{type:_,ref:D,shapeFlag:T}=p;switch(_){case ar:E(h,p,g,y);break;case mt:w(h,p,g,y);break;case os:h==null&&$(p,g,y,A);break;case pe:Y(h,p,g,y,k,v,A,C,S);break;default:T&1?P(h,p,g,y,k,v,A,C,S):T&6?V(h,p,g,y,k,v,A,C,S):(T&64||T&128)&&_.process(h,p,g,y,k,v,A,C,S,R)}D!=null&&k?vn(D,h&&h.ref,v,p||h,!p):D==null&&h&&h.ref!=null&&vn(h.ref,null,v,h,!0)},E=(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},$=(h,p,g,y)=>{[h.el,h.anchor]=x(h.children,p,g,y,h.el,h.anchor)},H=({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),s(h),h=g;s(p)},P=(h,p,g,y,k,v,A,C,S)=>{p.type==="svg"?A="svg":p.type==="math"&&(A="mathml"),h==null?W(p,g,y,k,v,A,C,S):ke(h,p,k,v,A,C,S)},W=(h,p,g,y,k,v,A,C)=>{let S,_;const{props:D,shapeFlag:T,transition:j,dirs:B}=h;if(S=h.el=l(h.type,v,D&&D.is,D),T&8?u(S,h.children):T&16&&N(h.children,S,null,y,k,ls(h,v),A,C),B&&Tt(h,null,y,"created"),Z(S,h,h.scopeId,A,y),D){for(const oe in D)oe!=="value"&&!sn(oe)&&i(S,oe,null,D[oe],v,y);"value"in D&&i(S,"value",null,D.value,v),(_=D.onVnodeBeforeMount)&&Ge(_,y,h)}B&&Tt(h,null,y,"beforeMount");const J=kc(k,j);J&&j.beforeEnter(S),r(S,p,g),((_=D&&D.onVnodeMounted)||J||B)&&Le(()=>{_&&Ge(_,y,h),J&&j.enter(S),B&&Tt(h,null,y,"mounted")},k)},Z=(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||al(v.type)&&(v.ssContent===p||v.ssFallback===p)){const A=k.vnode;Z(h,A,A.scopeId,A.slotScopeIds,k.parent)}}},N=(h,p,g,y,k,v,A,C,S=0)=>{for(let _=S;_<h.length;_++){const D=h[_]=C?vt(h[_]):Ke(h[_]);b(null,D,p,g,y,k,v,A,C)}},ke=(h,p,g,y,k,v,A)=>{const C=p.el=h.el;let{patchFlag:S,dynamicChildren:_,dirs:D}=p;S|=h.patchFlag&16;const T=h.props||ce,j=p.props||ce;let B;if(g&&It(g,!1),(B=j.onVnodeBeforeUpdate)&&Ge(B,g,p,h),D&&Tt(p,h,g,"beforeUpdate"),g&&It(g,!0),(T.innerHTML&&j.innerHTML==null||T.textContent&&j.textContent==null)&&u(C,""),_?me(h.dynamicChildren,_,C,g,y,ls(p,k),v):A||at(h,p,C,null,g,y,ls(p,k),v,!1),S>0){if(S&16)U(C,T,j,g,k);else if(S&2&&T.class!==j.class&&i(C,"class",null,j.class,k),S&4&&i(C,"style",T.style,j.style,k),S&8){const J=p.dynamicProps;for(let oe=0;oe<J.length;oe++){const fe=J[oe],Pe=T[fe],Ce=j[fe];(Ce!==Pe||fe==="value")&&i(C,fe,Pe,Ce,k,g)}}S&1&&h.children!==p.children&&u(C,p.children)}else!A&&_==null&&U(C,T,j,g,k);((B=j.onVnodeUpdated)||D)&&Le(()=>{B&&Ge(B,g,p,h),D&&Tt(p,h,g,"updated")},y)},me=(h,p,g,y,k,v,A)=>{for(let C=0;C<p.length;C++){const S=h[C],_=p[C],D=S.el&&(S.type===pe||!_n(S,_)||S.shapeFlag&198)?f(S.el):g;b(S,_,D,null,y,k,v,A,!0)}},U=(h,p,g,y,k)=>{if(p!==g){if(p!==ce)for(const v in p)!sn(v)&&!(v in g)&&i(h,v,p[v],null,k,y);for(const v in g){if(sn(v))continue;const A=g[v],C=p[v];A!==C&&v!=="value"&&i(h,v,C,A,k,y)}"value"in g&&i(h,"value",p.value,g.value,k)}},Y=(h,p,g,y,k,v,A,C,S)=>{const _=p.el=h?h.el:o(""),D=p.anchor=h?h.anchor:o("");let{patchFlag:T,dynamicChildren:j,slotScopeIds:B}=p;B&&(C=C?C.concat(B):B),h==null?(r(_,g,y),r(D,g,y),N(p.children||[],g,D,k,v,A,C,S)):T>0&&T&64&&j&&h.dynamicChildren?(me(h.dynamicChildren,j,g,k,v,A,C),(p.key!=null||k&&p===k.subTree)&&tl(h,p,!0)):at(h,p,