@waline/client 3.4.0 → 3.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,55 +1,55 @@
1
- var md=Object.defineProperty;var vd=(re,Me,Oe)=>Me in re?md(re,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):re[Me]=Oe;var go=(re,Me,Oe)=>vd(re,typeof Me!="symbol"?Me+"":Me,Oe);(function(re,Me){typeof exports=="object"&&typeof module<"u"?Me(exports):typeof define=="function"&&define.amd?define(["exports"],Me):(re=typeof globalThis<"u"?globalThis:re||self,Me(re.Waline={}))})(this,function(re){"use strict";const Me={"Content-Type":"application/json"},Oe=e=>`${e.replace(/\/?$/,"/")}api/`,xt=(e,t="")=>{if(typeof e=="object"&&e.errno)throw new TypeError(`${t} failed with ${e.errno}: ${e.errmsg}`);return e},xr=({serverURL:e,lang:t,paths:n,type:r,signal:i})=>fetch(`${Oe(e)}article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(r.join(","))}&lang=${t}`,{signal:i}).then(s=>s.json()).then(s=>xt(s,"Get counter").data),On=({serverURL:e,lang:t,path:n,type:r,action:i})=>fetch(`${Oe(e)}article?lang=${t}`,{method:"POST",headers:Me,body:JSON.stringify({path:n,type:r,action:i})}).then(s=>s.json()).then(s=>xt(s,"Update counter").data),$i=({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(`${Oe(e)}comment?path=${encodeURIComponent(n)}&pageSize=${i}&page=${r}&lang=${t}&sortBy=${s}`,{signal:l,headers:a}).then(c=>c.json()).then(c=>xt(c,"Get comment data").data)},Si=({serverURL:e,lang:t,token:n,comment:r})=>{const i={"Content-Type":"application/json"};return n&&(i.Authorization=`Bearer ${n}`),fetch(`${Oe(e)}comment?lang=${t}`,{method:"POST",headers:i,body:JSON.stringify(r)}).then(s=>s.json())},Ri=({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${Oe(e)}comment/${r}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then(i=>i.json()).then(i=>xt(i,"Delete comment")),Xt=({serverURL:e,lang:t,token:n,objectId:r,comment:i})=>fetch(`${Oe(e)}comment/${r}?lang=${t}`,{method:"PUT",headers:{...Me,Authorization:`Bearer ${n}`},body:JSON.stringify(i)}).then(s=>s.json()).then(s=>xt(s,"Update comment")),Ai=({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${Oe(e)}comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then(i=>i.json()).then(i=>xt(i,"Get comment count").data),Ti=({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)})},Ei=({serverURL:e,lang:t,paths:n,signal:r})=>xr({serverURL:e,lang:t,paths:n,type:["time"],signal:r}),Li=e=>On({...e,type:"time",action:"inc"}),Ii=({serverURL:e,lang:t,count:n,signal:r,token:i})=>{const s={};return i&&(s.Authorization=`Bearer ${i}`),fetch(`${Oe(e)}comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:s}).then(l=>l.json())},Mi=({serverURL:e,signal:t,pageSize:n,lang:r})=>fetch(`${Oe(e)}user?pageSize=${n}&lang=${r}`,{signal:t}).then(i=>i.json()).then(i=>xt(i,"user list")).then(i=>i.data),mo=["nick","mail","link"],Oi=e=>e.filter(t=>mo.includes(t)),Pi=["//unpkg.com/@waline/emojis@1.1.0/weibo"],vo=["//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"],bo=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=()=>{var i;return t(((i=r.result)==null?void 0:i.toString())??"")},r.onerror=n}),yo=e=>e===!0?'<p class="wl-tex">TeX is not available in preview</p>':'<span class="wl-tex">TeX is not available in preview</span>',wo=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()})}},ko=/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/,xo=/</,_o=/(?:^|\s)\/\/(.+?)$/gm,Co=/\/\*([\S\s]*?)\*\//gm,$o=new RegExp(`(${ko.source}|${xo.source})|((?:${_o.source})|(?:${Co.source}))`,"gmi"),ji=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],_r={},So=e=>{let t=0;return e.replace($o,(n,r,i)=>{if(i)return`<span style="color: slategray">${i}</span>`;if(r==="<")return"&lt;";let s;_r[r]?s=_r[r]:(s=ji[t],_r[r]=s);const l=`<span style="color: #${s}">${r}</span>`;return t=++t%ji.length,l})},Ro=["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"],Xe=e=>Object.fromEntries(e.map((t,n)=>[Ro[n],t]));var Ao=Xe(["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?"]),zi=Xe(["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!
2
- 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?"]),Fi=Xe(["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!
3
- 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?"]),Di=Xe(["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 !
4
- 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 ?"]),Hi=Xe(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード",`コメントは $0 から $1 ワードの間でなければなりません!
5
- 現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),To=Xe(["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!
6
- 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?"]),Ui=Xe(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова",`Пожалуйста, введите комментарии от $0 до $1 слов!
7
- Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]),Ni=Xe(["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ừ!
8
- 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?"]),Bi=Xe(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字",`评论字数应在 $0 到 $1 字之间!
9
- 当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),Eo=Xe(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字",`留言字數應在 $0 到 $1 字之間!
10
- 目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]);const Vi="en-US",Pn={zh:Bi,"zh-cn":Bi,"zh-tw":Eo,en:zi,"en-us":zi,fr:Di,"fr-fr":Di,jp:Hi,"jp-jp":Hi,"pt-br":To,ru:Ui,"ru-ru":Ui,vi:Ni,"vi-vn":Ni,de:Ao,es:Fi,"es-mx":Fi},Wi=e=>Pn[e.toLowerCase()]||Pn[Vi.toLowerCase()],qi=e=>Object.keys(Pn).includes(e.toLowerCase())?e:Vi,Ki=e=>{try{e=decodeURI(e)}catch{}return e},Gi=(e="")=>e.replace(/\/$/u,""),Zi=e=>/^(https?:)?\/\//.test(e),jn=e=>{const t=Gi(e);return Zi(t)?t:`https://${t}`},Lo=e=>Array.isArray(e)?e:e?[0,e]:!1,Cr=(e,t)=>typeof e=="function"?e:e===!1?!1:t,Io=({serverURL:e,path:t=location.pathname,lang:n=typeof navigator>"u"?"en-US":navigator.language,locale:r,emoji:i=Pi,meta:s=["nick","mail","link"],requiredMeta:l=[],dark:o=!1,pageSize:a=10,wordLimit:c,imageUploader:u,highlighter:h,texRenderer:d,copyright:g=!0,login:k="enable",search:v,reaction:$,recaptchaV3Key:b="",turnstileKey:C="",commentSorting:U="latest",...T})=>({serverURL:jn(e),path:Ki(t),lang:qi(n),locale:{...Wi(qi(n)),...typeof r=="object"?r:{}},wordLimit:Lo(c),meta:Oi(s),requiredMeta:Oi(l),imageUploader:Cr(u,bo),highlighter:Cr(h,So),texRenderer:Cr(d,yo),dark:o,emoji:typeof i=="boolean"?i?Pi:[]:i,pageSize:a,login:k,copyright:g,search:v===!1?!1:typeof v=="object"?v:wo(n),recaptchaV3Key:b,turnstileKey:C,reaction:Array.isArray($)?$:$===!0?vo:[],commentSorting:U,...T}),Dt=e=>typeof e=="string",$r="{--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}",Mo=e=>Dt(e)?e==="auto"?`@media(prefers-color-scheme:dark){body${$r}}`:`${e}${$r}`:e===!0?`:root${$r}`:"",Sr=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},Oo=e=>{const t=Sr(e.getDate(),2),n=Sr(e.getMonth()+1,2);return`${Sr(e.getFullYear(),2)}-${n}-${t}`},Po=(e,t,n)=>{if(!e)return"";const r=Dt(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}`:Oo(r)},jo=/^[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=>jo.test(e);/**
1
+ var xd=Object.defineProperty;var _d=(ie,Ee,Le)=>Ee in ie?xd(ie,Ee,{enumerable:!0,configurable:!0,writable:!0,value:Le}):ie[Ee]=Le;var xo=(ie,Ee,Le)=>_d(ie,typeof Ee!="symbol"?Ee+"":Ee,Le);(function(ie,Ee){typeof exports=="object"&&typeof module<"u"?Ee(exports):typeof define=="function"&&define.amd?define(["exports"],Ee):(ie=typeof globalThis<"u"?globalThis:ie||self,Ee(ie.Waline={}))})(this,function(ie){"use strict";const Ee={"Content-Type":"application/json"},Le=e=>`${e.replace(/\/?$/,"/")}api/`,kt=(e,t="")=>{if(typeof e=="object"&&e.errno)throw new TypeError(`${t} failed with ${e.errno}: ${e.errmsg}`);return e},Cr=({serverURL:e,lang:t,paths:n,type:r,signal:i})=>fetch(`${Le(e)}article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(r.join(","))}&lang=${t}`,{signal:i}).then(s=>s.json()).then(s=>kt(s,"Get counter").data),Mn=({serverURL:e,lang:t,path:n,type:r,action:i})=>fetch(`${Le(e)}article?lang=${t}`,{method:"POST",headers:Ee,body:JSON.stringify({path:n,type:r,action:i})}).then(s=>s.json()).then(s=>kt(s,"Update counter").data),Ai=({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(`${Le(e)}comment?path=${encodeURIComponent(n)}&pageSize=${i}&page=${r}&lang=${t}&sortBy=${s}`,{signal:l,headers:a}).then(c=>c.json()).then(c=>kt(c,"Get comment data").data)},Ti=({serverURL:e,lang:t,token:n,comment:r})=>{const i={"Content-Type":"application/json"};return n&&(i.Authorization=`Bearer ${n}`),fetch(`${Le(e)}comment?lang=${t}`,{method:"POST",headers:i,body:JSON.stringify(r)}).then(s=>s.json())},Ei=({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${Le(e)}comment/${r}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then(i=>i.json()).then(i=>kt(i,"Delete comment")),Xt=({serverURL:e,lang:t,token:n,objectId:r,comment:i})=>fetch(`${Le(e)}comment/${r}?lang=${t}`,{method:"PUT",headers:{...Ee,Authorization:`Bearer ${n}`},body:JSON.stringify(i)}).then(s=>s.json()).then(s=>kt(s,"Update comment")),Li=({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${Le(e)}comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then(i=>i.json()).then(i=>kt(i,"Get comment count").data),Ii=({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)})},Mi=({serverURL:e,lang:t,paths:n,signal:r})=>Cr({serverURL:e,lang:t,paths:n,type:["time"],signal:r}),Pi=e=>Mn({...e,type:"time",action:"inc"}),Oi=({serverURL:e,lang:t,count:n,signal:r,token:i})=>{const s={};return i&&(s.Authorization=`Bearer ${i}`),fetch(`${Le(e)}comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:s}).then(l=>l.json())},ji=({serverURL:e,signal:t,pageSize:n,lang:r})=>fetch(`${Le(e)}user?pageSize=${n}&lang=${r}`,{signal:t}).then(i=>i.json()).then(i=>kt(i,"user list")).then(i=>i.data),_o=["nick","mail","link"],zi=e=>e.filter(t=>_o.includes(t)),Fi=["//unpkg.com/@waline/emojis@1.1.0/weibo"],Co=["//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"],So=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}),$o=e=>e?'<p class="wl-tex">TeX is not available in preview</p>':'<span class="wl-tex">TeX is not available in preview</span>',Ro=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()})}},Ao=/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/,To=/</,Eo=/(?:^|\s)\/\/(.+?)$/gm,Lo=/\/\*([\S\s]*?)\*\//gm,Io=new RegExp(`(${Ao.source}|${To.source})|((?:${Eo.source})|(?:${Lo.source}))`,"gmi"),Di=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],Sr={},Mo=e=>{let t=0;return e.replace(Io,(n,r,i)=>{if(i)return`<span style="color: slategray">${i}</span>`;if(r==="<")return"&lt;";let s;Sr[r]?s=Sr[r]:(s=Di[t],Sr[r]=s);const l=`<span style="color: #${s}">${r}</span>`;return t=++t%Di.length,l})},Po=["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"],Je=e=>Object.fromEntries(e.map((t,n)=>[Po[n],t]));var Oo=Je(["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?"]),Hi=Je(["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!
2
+ 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?"]),Ui=Je(["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!
3
+ 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?"]),Ni=Je(["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 !
4
+ 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 ?"]),Bi=Je(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード",`コメントは $0 から $1 ワードの間でなければなりません!
5
+ 現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),jo=Je(["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!
6
+ 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?"]),Vi=Je(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова",`Пожалуйста, введите комментарии от $0 до $1 слов!
7
+ Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]),Wi=Je(["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ừ!
8
+ 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?"]),qi=Je(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字",`评论字数应在 $0 到 $1 字之间!
9
+ 当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),zo=Je(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字",`留言字數應在 $0 到 $1 字之間!
10
+ 目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]);const Ki="en-US",Pn={zh:qi,"zh-cn":qi,"zh-tw":zo,en:Hi,"en-us":Hi,fr:Ni,"fr-fr":Ni,jp:Bi,"jp-jp":Bi,"pt-br":jo,ru:Vi,"ru-ru":Vi,vi:Wi,"vi-vn":Wi,de:Oo,es:Ui,"es-mx":Ui},Gi=e=>Pn[e.toLowerCase()]||Pn[Ki.toLowerCase()],Zi=e=>Object.keys(Pn).includes(e.toLowerCase())?e:Ki,Ji={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},Fo=Object.keys(Ji),On=Symbol("waline-config"),Yi=e=>{try{e=decodeURI(e)}catch{}return e},Xi=(e="")=>e.replace(/\/$/u,""),Qi=e=>/^(https?:)?\/\//.test(e),jn=e=>{const t=Xi(e);return Qi(t)?t:`https://${t}`},Do=e=>Array.isArray(e)?e:e?[0,e]:!1,$r=(e,t)=>typeof e=="function"?e:e===!1?!1:t,Ho=({serverURL:e,path:t=location.pathname,lang:n=typeof navigator>"u"?"en-US":navigator.language,locale:r,emoji:i=Fi,meta:s=["nick","mail","link"],requiredMeta:l=[],dark:o=!1,pageSize:a=10,wordLimit:c,imageUploader:u,highlighter:h,texRenderer:d,copyright:g=!0,login:x="enable",search:b,reaction:S,recaptchaV3Key:y="",turnstileKey:_="",commentSorting:H="latest",...E})=>({serverURL:jn(e),path:Yi(t),lang:Zi(n),locale:{...Gi(Zi(n)),...typeof r=="object"?r:{}},wordLimit:Do(c),meta:zi(s),requiredMeta:zi(l),imageUploader:$r(u,So),highlighter:$r(h,Mo),texRenderer:$r(d,$o),dark:o,emoji:typeof i=="boolean"?i?Fi:[]:i,pageSize:a,login:x,copyright:g,search:b===!1?!1:typeof b=="object"?b:Ro(n),recaptchaV3Key:y,turnstileKey:_,reaction:Array.isArray(S)?S:S===!0?Co:[],commentSorting:H,...E}),zt=e=>typeof e=="string",Rr="{--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}",Uo=e=>zt(e)?e==="auto"?`@media(prefers-color-scheme:dark){body${Rr}}`:`${e}${Rr}`:e===!0?`:root${Rr}`:"",Ar=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},No=e=>{const t=Ar(e.getDate(),2),n=Ar(e.getMonth()+1,2);return`${Ar(e.getFullYear(),2)}-${n}-${t}`},Bo=(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}`:No(r)},Vo=/^[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])?)*$/,Wo=e=>Vo.test(e);/**
11
11
  * @vue/shared v3.5.13
12
12
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
13
13
  * @license MIT
14
- **//*! #__NO_SIDE_EFFECTS__ */function Rr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ue={},Ht=[],_t=()=>{},Fo=()=>!1,zn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ar=e=>e.startsWith("onUpdate:"),Be=Object.assign,Ji=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Do=Object.prototype.hasOwnProperty,ee=(e,t)=>Do.call(e,t),V=Array.isArray,Ut=e=>en(e)==="[object Map]",Nt=e=>en(e)==="[object Set]",Yi=e=>en(e)==="[object Date]",le=e=>typeof e=="function",ye=e=>typeof e=="string",et=e=>typeof e=="symbol",me=e=>e!==null&&typeof e=="object",Qi=e=>(me(e)||le(e))&&le(e.then)&&le(e.catch),Xi=Object.prototype.toString,en=e=>Xi.call(e),Ho=e=>en(e).slice(8,-1),es=e=>en(e)==="[object Object]",Tr=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,tn=Rr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Fn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Uo=/-(\w)/g,Ve=Fn(e=>e.replace(Uo,(t,n)=>n?n.toUpperCase():"")),No=/\B([A-Z])/g,Ct=Fn(e=>e.replace(No,"-$1").toLowerCase()),Dn=Fn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Er=Fn(e=>e?`on${Dn(e)}`:""),vt=(e,t)=>!Object.is(e,t),Hn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},ts=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Un=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ns;const nn=()=>ns||(ns=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function rn(e){if(V(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=ye(r)?qo(r):rn(r);if(i)for(const s in i)t[s]=i[s]}return t}else if(ye(e)||me(e))return e}const Bo=/;(?![^(]*\))/g,Vo=/:([^]+)/,Wo=/\/\*[^]*?\*\//g;function qo(e){const t={};return e.replace(Wo,"").split(Bo).forEach(n=>{if(n){const r=n.split(Vo);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ve(e){let t="";if(ye(e))t=e;else if(V(e))for(let n=0;n<e.length;n++){const r=ve(e[n]);r&&(t+=r+" ")}else if(me(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Ko=Rr("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function rs(e){return!!e||e===""}function Go(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=$t(e[r],t[r]);return n}function $t(e,t){if(e===t)return!0;let n=Yi(e),r=Yi(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=et(e),r=et(t),n||r)return e===t;if(n=V(e),r=V(t),n||r)return n&&r?Go(e,t):!1;if(n=me(e),r=me(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||!$t(e[l],t[l]))return!1}}return String(e)===String(t)}function Lr(e,t){return e.findIndex(n=>$t(n,t))}const is=e=>!!(e&&e.__v_isRef===!0),X=e=>ye(e)?e:e==null?"":V(e)||me(e)&&(e.toString===Xi||!le(e.toString))?is(e)?X(e.value):JSON.stringify(e,ss,2):String(e),ss=(e,t)=>is(t)?ss(e,t.value):Ut(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],s)=>(n[Ir(r,s)+" =>"]=i,n),{})}:Nt(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Ir(n))}:et(t)?Ir(t):me(t)&&!V(t)&&!es(t)?String(t):t,Ir=(e,t="")=>{var n;return et(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
14
+ **//*! #__NO_SIDE_EFFECTS__ */function Tr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const le={},Ft=[],xt=()=>{},qo=()=>!1,zn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Er=e=>e.startsWith("onUpdate:"),De=Object.assign,es=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ko=Object.prototype.hasOwnProperty,te=(e,t)=>Ko.call(e,t),W=Array.isArray,Dt=e=>Qt(e)==="[object Map]",Ht=e=>Qt(e)==="[object Set]",ts=e=>Qt(e)==="[object Date]",oe=e=>typeof e=="function",be=e=>typeof e=="string",Ye=e=>typeof e=="symbol",ge=e=>e!==null&&typeof e=="object",ns=e=>(ge(e)||oe(e))&&oe(e.then)&&oe(e.catch),rs=Object.prototype.toString,Qt=e=>rs.call(e),Go=e=>Qt(e).slice(8,-1),is=e=>Qt(e)==="[object Object]",Lr=e=>be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,en=Tr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Fn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Zo=/-(\w)/g,He=Fn(e=>e.replace(Zo,(t,n)=>n?n.toUpperCase():"")),Jo=/\B([A-Z])/g,_t=Fn(e=>e.replace(Jo,"-$1").toLowerCase()),Dn=Fn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ir=Fn(e=>e?`on${Dn(e)}`:""),gt=(e,t)=>!Object.is(e,t),Hn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},ss=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Un=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ls;const tn=()=>ls||(ls=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function nn(e){if(W(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=be(r)?ea(r):nn(r);if(i)for(const s in i)t[s]=i[s]}return t}else if(be(e)||ge(e))return e}const Yo=/;(?![^(]*\))/g,Xo=/:([^]+)/,Qo=/\/\*[^]*?\*\//g;function ea(e){const t={};return e.replace(Qo,"").split(Yo).forEach(n=>{if(n){const r=n.split(Xo);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ve(e){let t="";if(be(e))t=e;else if(W(e))for(let n=0;n<e.length;n++){const r=ve(e[n]);r&&(t+=r+" ")}else if(ge(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const ta=Tr("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function os(e){return!!e||e===""}function na(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Ct(e[r],t[r]);return n}function Ct(e,t){if(e===t)return!0;let n=ts(e),r=ts(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Ye(e),r=Ye(t),n||r)return e===t;if(n=W(e),r=W(t),n||r)return n&&r?na(e,t):!1;if(n=ge(e),r=ge(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||!Ct(e[l],t[l]))return!1}}return String(e)===String(t)}function Mr(e,t){return e.findIndex(n=>Ct(n,t))}const as=e=>!!(e&&e.__v_isRef===!0),ee=e=>be(e)?e:e==null?"":W(e)||ge(e)&&(e.toString===rs||!oe(e.toString))?as(e)?ee(e.value):JSON.stringify(e,cs,2):String(e),cs=(e,t)=>as(t)?cs(e,t.value):Dt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],s)=>(n[Pr(r,s)+" =>"]=i,n),{})}:Ht(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Pr(n))}:Ye(t)?Pr(t):ge(t)&&!W(t)&&!is(t)?String(t):t,Pr=(e,t="")=>{var n;return Ye(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
15
15
  * @vue/reactivity v3.5.13
16
16
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
17
17
  * @license MIT
18
- **/let Ae;class Zo{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ae,!t&&Ae&&(this.index=(Ae.scopes||(Ae.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=Ae;try{return Ae=this,t()}finally{Ae=n}}}on(){Ae=this}off(){Ae=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 ls(){return Ae}function Jo(e,t=!1){Ae&&Ae.cleanups.push(e)}let fe;const Mr=new WeakSet;class os{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,Ae&&Ae.active&&Ae.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Mr.has(this)&&(Mr.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||cs(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ps(this),us(this);const t=fe,n=Ze;fe=this,Ze=!0;try{return this.fn()}finally{fs(this),fe=t,Ze=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)zr(t);this.deps=this.depsTail=void 0,ps(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Mr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){jr(this)&&this.run()}get dirty(){return jr(this)}}let as=0,sn,ln;function cs(e,t=!1){if(e.flags|=8,t){e.next=ln,ln=e;return}e.next=sn,sn=e}function Or(){as++}function Pr(){if(--as>0)return;if(ln){let t=ln;for(ln=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;sn;){let t=sn;for(sn=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 us(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function fs(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),zr(r),Yo(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function jr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(hs(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function hs(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===on))return;e.globalVersion=on;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!jr(e)){e.flags&=-3;return}const n=fe,r=Ze;fe=e,Ze=!0;try{us(e);const i=e.fn(e._value);(t.version===0||vt(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{fe=n,Ze=r,fs(e),e.flags&=-3}}function zr(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)zr(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Yo(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ze=!0;const ds=[];function St(){ds.push(Ze),Ze=!1}function Rt(){const e=ds.pop();Ze=e===void 0?!0:e}function ps(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=fe;fe=void 0;try{t()}finally{fe=n}}}let on=0;class Qo{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 Fr{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(!fe||!Ze||fe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==fe)n=this.activeLink=new Qo(fe,this),fe.deps?(n.prevDep=fe.depsTail,fe.depsTail.nextDep=n,fe.depsTail=n):fe.deps=fe.depsTail=n,gs(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=fe.depsTail,n.nextDep=void 0,fe.depsTail.nextDep=n,fe.depsTail=n,fe.deps===n&&(fe.deps=r)}return n}trigger(t){this.version++,on++,this.notify(t)}notify(t){Or();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Pr()}}}function gs(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)gs(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Dr=new WeakMap,At=Symbol(""),Hr=Symbol(""),an=Symbol("");function $e(e,t,n){if(Ze&&fe){let r=Dr.get(e);r||Dr.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new Fr),i.map=r,i.key=n),i.track()}}function lt(e,t,n,r,i,s){const l=Dr.get(e);if(!l){on++;return}const o=a=>{a&&a.trigger()};if(Or(),t==="clear")l.forEach(o);else{const a=V(e),c=a&&Tr(n);if(a&&n==="length"){const u=Number(r);l.forEach((h,d)=>{(d==="length"||d===an||!et(d)&&d>=u)&&o(h)})}else switch((n!==void 0||l.has(void 0))&&o(l.get(n)),c&&o(l.get(an)),t){case"add":a?c&&o(l.get("length")):(o(l.get(At)),Ut(e)&&o(l.get(Hr)));break;case"delete":a||(o(l.get(At)),Ut(e)&&o(l.get(Hr)));break;case"set":Ut(e)&&o(l.get(At));break}}Pr()}function Bt(e){const t=te(e);return t===e?t:($e(t,"iterate",an),We(e)?t:t.map(Se))}function Nn(e){return $e(e=te(e),"iterate",an),e}const Xo={__proto__:null,[Symbol.iterator](){return Ur(this,Symbol.iterator,Se)},concat(...e){return Bt(this).concat(...e.map(t=>V(t)?Bt(t):t))},entries(){return Ur(this,"entries",e=>(e[1]=Se(e[1]),e))},every(e,t){return ot(this,"every",e,t,void 0,arguments)},filter(e,t){return ot(this,"filter",e,t,n=>n.map(Se),arguments)},find(e,t){return ot(this,"find",e,t,Se,arguments)},findIndex(e,t){return ot(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ot(this,"findLast",e,t,Se,arguments)},findLastIndex(e,t){return ot(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ot(this,"forEach",e,t,void 0,arguments)},includes(...e){return Nr(this,"includes",e)},indexOf(...e){return Nr(this,"indexOf",e)},join(e){return Bt(this).join(e)},lastIndexOf(...e){return Nr(this,"lastIndexOf",e)},map(e,t){return ot(this,"map",e,t,void 0,arguments)},pop(){return cn(this,"pop")},push(...e){return cn(this,"push",e)},reduce(e,...t){return ms(this,"reduce",e,t)},reduceRight(e,...t){return ms(this,"reduceRight",e,t)},shift(){return cn(this,"shift")},some(e,t){return ot(this,"some",e,t,void 0,arguments)},splice(...e){return cn(this,"splice",e)},toReversed(){return Bt(this).toReversed()},toSorted(e){return Bt(this).toSorted(e)},toSpliced(...e){return Bt(this).toSpliced(...e)},unshift(...e){return cn(this,"unshift",e)},values(){return Ur(this,"values",Se)}};function Ur(e,t,n){const r=Nn(e),i=r[t]();return r!==e&&!We(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.value&&(s.value=n(s.value)),s}),i}const ea=Array.prototype;function ot(e,t,n,r,i,s){const l=Nn(e),o=l!==e&&!We(e),a=l[t];if(a!==ea[t]){const h=a.apply(e,s);return o?Se(h):h}let c=n;l!==e&&(o?c=function(h,d){return n.call(this,Se(h),d,e)}:n.length>2&&(c=function(h,d){return n.call(this,h,d,e)}));const u=a.call(l,c,r);return o&&i?i(u):u}function ms(e,t,n,r){const i=Nn(e);let s=n;return i!==e&&(We(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,Se(o),a,e)}),i[t](s,...r)}function Nr(e,t,n){const r=te(e);$e(r,"iterate",an);const i=r[t](...n);return(i===-1||i===!1)&&qr(n[0])?(n[0]=te(n[0]),r[t](...n)):i}function cn(e,t,n=[]){St(),Or();const r=te(e)[t].apply(e,n);return Pr(),Rt(),r}const ta=Rr("__proto__,__v_isRef,__isVue"),vs=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(et));function na(e){et(e)||(e=String(e));const t=te(this);return $e(t,"has",e),t.hasOwnProperty(e)}class bs{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?ha:xs:s?ks:ws).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const l=V(t);if(!i){let a;if(l&&(a=Xo[n]))return a;if(n==="hasOwnProperty")return na}const o=Reflect.get(t,n,xe(t)?t:r);return(et(n)?vs.has(n):ta(n))||(i||$e(t,"get",n),s)?o:xe(o)?l&&Tr(n)?o:o.value:me(o)?i?fn(o):un(o):o}}class ys extends bs{constructor(t=!1){super(!1,t)}set(t,n,r,i){let s=t[n];if(!this._isShallow){const a=Tt(s);if(!We(r)&&!Tt(r)&&(s=te(s),r=te(r)),!V(t)&&xe(s)&&!xe(r))return a?!1:(s.value=r,!0)}const l=V(t)&&Tr(n)?Number(n)<t.length:ee(t,n),o=Reflect.set(t,n,r,xe(t)?t:i);return t===te(i)&&(l?vt(r,s)&&lt(t,"set",n,r):lt(t,"add",n,r)),o}deleteProperty(t,n){const r=ee(t,n),i=Reflect.deleteProperty(t,n);return i&&r&&lt(t,"delete",n,void 0),i}has(t,n){const r=Reflect.has(t,n);return(!et(n)||!vs.has(n))&&$e(t,"has",n),r}ownKeys(t){return $e(t,"iterate",V(t)?"length":At),Reflect.ownKeys(t)}}class ra extends bs{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const ia=new ys,sa=new ra,la=new ys(!0),Br=e=>e,Bn=e=>Reflect.getPrototypeOf(e);function oa(e,t,n){return function(...r){const i=this.__v_raw,s=te(i),l=Ut(s),o=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,c=i[e](...r),u=n?Br:t?Kr:Se;return!t&&$e(s,"iterate",a?Hr:At),{next(){const{value:h,done:d}=c.next();return d?{value:h,done:d}:{value:o?[u(h[0]),u(h[1])]:u(h),done:d}},[Symbol.iterator](){return this}}}}function Vn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function aa(e,t){const n={get(i){const s=this.__v_raw,l=te(s),o=te(i);e||(vt(i,o)&&$e(l,"get",i),$e(l,"get",o));const{has:a}=Bn(l),c=t?Br:e?Kr:Se;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&&$e(te(i),"iterate",At),Reflect.get(i,"size",i)},has(i){const s=this.__v_raw,l=te(s),o=te(i);return e||(vt(i,o)&&$e(l,"has",i),$e(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=te(o),c=t?Br:e?Kr:Se;return!e&&$e(a,"iterate",At),o.forEach((u,h)=>i.call(s,c(u),c(h),l))}};return Be(n,e?{add:Vn("add"),set:Vn("set"),delete:Vn("delete"),clear:Vn("clear")}:{add(i){!t&&!We(i)&&!Tt(i)&&(i=te(i));const s=te(this);return Bn(s).has.call(s,i)||(s.add(i),lt(s,"add",i,i)),this},set(i,s){!t&&!We(s)&&!Tt(s)&&(s=te(s));const l=te(this),{has:o,get:a}=Bn(l);let c=o.call(l,i);c||(i=te(i),c=o.call(l,i));const u=a.call(l,i);return l.set(i,s),c?vt(s,u)&&lt(l,"set",i,s):lt(l,"add",i,s),this},delete(i){const s=te(this),{has:l,get:o}=Bn(s);let a=l.call(s,i);a||(i=te(i),a=l.call(s,i)),o&&o.call(s,i);const c=s.delete(i);return a&&lt(s,"delete",i,void 0),c},clear(){const i=te(this),s=i.size!==0,l=i.clear();return s&&lt(i,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=oa(i,e,t)}),n}function Vr(e,t){const n=aa(e,t);return(r,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(ee(n,i)&&i in r?n:r,i,s)}const ca={get:Vr(!1,!1)},ua={get:Vr(!1,!0)},fa={get:Vr(!0,!1)},ws=new WeakMap,ks=new WeakMap,xs=new WeakMap,ha=new WeakMap;function da(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function pa(e){return e.__v_skip||!Object.isExtensible(e)?0:da(Ho(e))}function un(e){return Tt(e)?e:Wr(e,!1,ia,ca,ws)}function ga(e){return Wr(e,!1,la,ua,ks)}function fn(e){return Wr(e,!0,sa,fa,xs)}function Wr(e,t,n,r,i){if(!me(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const l=pa(e);if(l===0)return e;const o=new Proxy(e,l===2?r:n);return i.set(e,o),o}function Vt(e){return Tt(e)?Vt(e.__v_raw):!!(e&&e.__v_isReactive)}function Tt(e){return!!(e&&e.__v_isReadonly)}function We(e){return!!(e&&e.__v_isShallow)}function qr(e){return e?!!e.__v_raw:!1}function te(e){const t=e&&e.__v_raw;return t?te(t):e}function ma(e){return!ee(e,"__v_skip")&&Object.isExtensible(e)&&ts(e,"__v_skip",!0),e}const Se=e=>me(e)?un(e):e,Kr=e=>me(e)?fn(e):e;function xe(e){return e?e.__v_isRef===!0:!1}function W(e){return _s(e,!1)}function va(e){return _s(e,!0)}function _s(e,t){return xe(e)?e:new ba(e,t)}class ba{constructor(t,n){this.dep=new Fr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:te(t),this._value=n?t:Se(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||We(t)||Tt(t);t=r?t:te(t),vt(t,n)&&(this._rawValue=t,this._value=r?t:Se(t),this.dep.trigger())}}function q(e){return xe(e)?e.value:e}const ya={get:(e,t,n)=>t==="__v_raw"?e:q(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return xe(i)&&!xe(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Cs(e){return Vt(e)?e:new Proxy(e,ya)}class wa{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Fr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=on-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&fe!==this)return cs(this,!0),!0}get value(){const t=this.dep.track();return hs(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ka(e,t,n=!1){let r,i;return le(e)?r=e:(r=e.get,i=e.set),new wa(r,i,n)}const Wn={},qn=new WeakMap;let Et;function xa(e,t=!1,n=Et){if(n){let r=qn.get(n);r||qn.set(n,r=[]),r.push(e)}}function _a(e,t,n=ue){const{immediate:r,deep:i,once:s,scheduler:l,augmentJob:o,call:a}=n,c=T=>i?T:We(T)||i===!1||i===0?at(T,1):at(T);let u,h,d,g,k=!1,v=!1;if(xe(e)?(h=()=>e.value,k=We(e)):Vt(e)?(h=()=>c(e),k=!0):V(e)?(v=!0,k=e.some(T=>Vt(T)||We(T)),h=()=>e.map(T=>{if(xe(T))return T.value;if(Vt(T))return c(T);if(le(T))return a?a(T,2):T()})):le(e)?t?h=a?()=>a(e,2):e:h=()=>{if(d){St();try{d()}finally{Rt()}}const T=Et;Et=u;try{return a?a(e,3,[g]):e(g)}finally{Et=T}}:h=_t,t&&i){const T=h,j=i===!0?1/0:i;h=()=>at(T(),j)}const $=ls(),b=()=>{u.stop(),$&&$.active&&Ji($.effects,u)};if(s&&t){const T=t;t=(...j)=>{T(...j),b()}}let C=v?new Array(e.length).fill(Wn):Wn;const U=T=>{if(!(!(u.flags&1)||!u.dirty&&!T))if(t){const j=u.run();if(i||k||(v?j.some((K,z)=>vt(K,C[z])):vt(j,C))){d&&d();const K=Et;Et=u;try{const z=[j,C===Wn?void 0:v&&C[0]===Wn?[]:C,g];a?a(t,3,z):t(...z),C=j}finally{Et=K}}}else u.run()};return o&&o(U),u=new os(h),u.scheduler=l?()=>l(U,!1):U,g=T=>xa(T,!1,u),d=u.onStop=()=>{const T=qn.get(u);if(T){if(a)a(T,4);else for(const j of T)j();qn.delete(u)}},t?r?U(!0):C=u.run():l?l(U.bind(null,!0),!0):u.run(),b.pause=u.pause.bind(u),b.resume=u.resume.bind(u),b.stop=b,b}function at(e,t=1/0,n){if(t<=0||!me(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,xe(e))at(e.value,t,n);else if(V(e))for(let r=0;r<e.length;r++)at(e[r],t,n);else if(Nt(e)||Ut(e))e.forEach(r=>{at(r,t,n)});else if(es(e)){for(const r in e)at(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&at(e[r],t,n)}return e}/**
18
+ **/let $e;class ra{constructor(t=!1){this.detached=t,this._active=!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(){$e=this}off(){$e=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 us(){return $e}function ia(e,t=!1){$e&&$e.cleanups.push(e)}let ue;const Or=new WeakSet;class fs{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,Or.has(this)&&(Or.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ds(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,bs(this),ps(this);const t=ue,n=We;ue=this,We=!0;try{return this.fn()}finally{gs(this),ue=t,We=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Dr(t);this.deps=this.depsTail=void 0,bs(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Or.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Fr(this)&&this.run()}get dirty(){return Fr(this)}}let hs=0,rn,sn;function ds(e,t=!1){if(e.flags|=8,t){e.next=sn,sn=e;return}e.next=rn,rn=e}function jr(){hs++}function zr(){if(--hs>0)return;if(sn){let t=sn;for(sn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;rn;){let t=rn;for(rn=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 ps(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function gs(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),Dr(r),sa(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function Fr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ms(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ms(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ln))return;e.globalVersion=ln;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Fr(e)){e.flags&=-3;return}const n=ue,r=We;ue=e,We=!0;try{ps(e);const i=e.fn(e._value);(t.version===0||gt(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{ue=n,We=r,gs(e),e.flags&=-3}}function Dr(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)Dr(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function sa(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let We=!0;const vs=[];function St(){vs.push(We),We=!1}function $t(){const e=vs.pop();We=e===void 0?!0:e}function bs(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ue;ue=void 0;try{t()}finally{ue=n}}}let ln=0;class la{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 Hr{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(!ue||!We||ue===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ue)n=this.activeLink=new la(ue,this),ue.deps?(n.prevDep=ue.depsTail,ue.depsTail.nextDep=n,ue.depsTail=n):ue.deps=ue.depsTail=n,ys(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=ue.depsTail,n.nextDep=void 0,ue.depsTail.nextDep=n,ue.depsTail=n,ue.deps===n&&(ue.deps=r)}return n}trigger(t){this.version++,ln++,this.notify(t)}notify(t){jr();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{zr()}}}function ys(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)ys(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Ur=new WeakMap,Rt=Symbol(""),Nr=Symbol(""),on=Symbol("");function _e(e,t,n){if(We&&ue){let r=Ur.get(e);r||Ur.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new Hr),i.map=r,i.key=n),i.track()}}function rt(e,t,n,r,i,s){const l=Ur.get(e);if(!l){ln++;return}const o=a=>{a&&a.trigger()};if(jr(),t==="clear")l.forEach(o);else{const a=W(e),c=a&&Lr(n);if(a&&n==="length"){const u=Number(r);l.forEach((h,d)=>{(d==="length"||d===on||!Ye(d)&&d>=u)&&o(h)})}else switch((n!==void 0||l.has(void 0))&&o(l.get(n)),c&&o(l.get(on)),t){case"add":a?c&&o(l.get("length")):(o(l.get(Rt)),Dt(e)&&o(l.get(Nr)));break;case"delete":a||(o(l.get(Rt)),Dt(e)&&o(l.get(Nr)));break;case"set":Dt(e)&&o(l.get(Rt));break}}zr()}function Ut(e){const t=ne(e);return t===e?t:(_e(t,"iterate",on),Ue(e)?t:t.map(Ce))}function Nn(e){return _e(e=ne(e),"iterate",on),e}const oa={__proto__:null,[Symbol.iterator](){return Br(this,Symbol.iterator,Ce)},concat(...e){return Ut(this).concat(...e.map(t=>W(t)?Ut(t):t))},entries(){return Br(this,"entries",e=>(e[1]=Ce(e[1]),e))},every(e,t){return it(this,"every",e,t,void 0,arguments)},filter(e,t){return it(this,"filter",e,t,n=>n.map(Ce),arguments)},find(e,t){return it(this,"find",e,t,Ce,arguments)},findIndex(e,t){return it(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return it(this,"findLast",e,t,Ce,arguments)},findLastIndex(e,t){return it(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return it(this,"forEach",e,t,void 0,arguments)},includes(...e){return Vr(this,"includes",e)},indexOf(...e){return Vr(this,"indexOf",e)},join(e){return Ut(this).join(e)},lastIndexOf(...e){return Vr(this,"lastIndexOf",e)},map(e,t){return it(this,"map",e,t,void 0,arguments)},pop(){return an(this,"pop")},push(...e){return an(this,"push",e)},reduce(e,...t){return ws(this,"reduce",e,t)},reduceRight(e,...t){return ws(this,"reduceRight",e,t)},shift(){return an(this,"shift")},some(e,t){return it(this,"some",e,t,void 0,arguments)},splice(...e){return an(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 an(this,"unshift",e)},values(){return Br(this,"values",Ce)}};function Br(e,t,n){const r=Nn(e),i=r[t]();return r!==e&&!Ue(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.value&&(s.value=n(s.value)),s}),i}const aa=Array.prototype;function it(e,t,n,r,i,s){const l=Nn(e),o=l!==e&&!Ue(e),a=l[t];if(a!==aa[t]){const h=a.apply(e,s);return o?Ce(h):h}let c=n;l!==e&&(o?c=function(h,d){return n.call(this,Ce(h),d,e)}:n.length>2&&(c=function(h,d){return n.call(this,h,d,e)}));const u=a.call(l,c,r);return o&&i?i(u):u}function ws(e,t,n,r){const i=Nn(e);let s=n;return i!==e&&(Ue(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,Ce(o),a,e)}),i[t](s,...r)}function Vr(e,t,n){const r=ne(e);_e(r,"iterate",on);const i=r[t](...n);return(i===-1||i===!1)&&Gr(n[0])?(n[0]=ne(n[0]),r[t](...n)):i}function an(e,t,n=[]){St(),jr();const r=ne(e)[t].apply(e,n);return zr(),$t(),r}const ca=Tr("__proto__,__v_isRef,__isVue"),ks=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ye));function ua(e){Ye(e)||(e=String(e));const t=ne(this);return _e(t,"has",e),t.hasOwnProperty(e)}class xs{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?wa:$s:s?Ss:Cs).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const l=W(t);if(!i){let a;if(l&&(a=oa[n]))return a;if(n==="hasOwnProperty")return ua}const o=Reflect.get(t,n,we(t)?t:r);return(Ye(n)?ks.has(n):ca(n))||(i||_e(t,"get",n),s)?o:we(o)?l&&Lr(n)?o:o.value:ge(o)?i?un(o):cn(o):o}}class _s extends xs{constructor(t=!1){super(!1,t)}set(t,n,r,i){let s=t[n];if(!this._isShallow){const a=At(s);if(!Ue(r)&&!At(r)&&(s=ne(s),r=ne(r)),!W(t)&&we(s)&&!we(r))return a?!1:(s.value=r,!0)}const l=W(t)&&Lr(n)?Number(n)<t.length:te(t,n),o=Reflect.set(t,n,r,we(t)?t:i);return t===ne(i)&&(l?gt(r,s)&&rt(t,"set",n,r):rt(t,"add",n,r)),o}deleteProperty(t,n){const r=te(t,n),i=Reflect.deleteProperty(t,n);return i&&r&&rt(t,"delete",n,void 0),i}has(t,n){const r=Reflect.has(t,n);return(!Ye(n)||!ks.has(n))&&_e(t,"has",n),r}ownKeys(t){return _e(t,"iterate",W(t)?"length":Rt),Reflect.ownKeys(t)}}class fa extends xs{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const ha=new _s,da=new fa,pa=new _s(!0),Wr=e=>e,Bn=e=>Reflect.getPrototypeOf(e);function ga(e,t,n){return function(...r){const i=this.__v_raw,s=ne(i),l=Dt(s),o=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,c=i[e](...r),u=n?Wr:t?Zr:Ce;return!t&&_e(s,"iterate",a?Nr:Rt),{next(){const{value:h,done:d}=c.next();return d?{value:h,done:d}:{value:o?[u(h[0]),u(h[1])]:u(h),done:d}},[Symbol.iterator](){return this}}}}function Vn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ma(e,t){const n={get(i){const s=this.__v_raw,l=ne(s),o=ne(i);e||(gt(i,o)&&_e(l,"get",i),_e(l,"get",o));const{has:a}=Bn(l),c=t?Wr:e?Zr:Ce;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&&_e(ne(i),"iterate",Rt),Reflect.get(i,"size",i)},has(i){const s=this.__v_raw,l=ne(s),o=ne(i);return e||(gt(i,o)&&_e(l,"has",i),_e(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=ne(o),c=t?Wr:e?Zr:Ce;return!e&&_e(a,"iterate",Rt),o.forEach((u,h)=>i.call(s,c(u),c(h),l))}};return De(n,e?{add:Vn("add"),set:Vn("set"),delete:Vn("delete"),clear:Vn("clear")}:{add(i){!t&&!Ue(i)&&!At(i)&&(i=ne(i));const s=ne(this);return Bn(s).has.call(s,i)||(s.add(i),rt(s,"add",i,i)),this},set(i,s){!t&&!Ue(s)&&!At(s)&&(s=ne(s));const l=ne(this),{has:o,get:a}=Bn(l);let c=o.call(l,i);c||(i=ne(i),c=o.call(l,i));const u=a.call(l,i);return l.set(i,s),c?gt(s,u)&&rt(l,"set",i,s):rt(l,"add",i,s),this},delete(i){const s=ne(this),{has:l,get:o}=Bn(s);let a=l.call(s,i);a||(i=ne(i),a=l.call(s,i)),o&&o.call(s,i);const c=s.delete(i);return a&&rt(s,"delete",i,void 0),c},clear(){const i=ne(this),s=i.size!==0,l=i.clear();return s&&rt(i,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=ga(i,e,t)}),n}function qr(e,t){const n=ma(e,t);return(r,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(te(n,i)&&i in r?n:r,i,s)}const va={get:qr(!1,!1)},ba={get:qr(!1,!0)},ya={get:qr(!0,!1)},Cs=new WeakMap,Ss=new WeakMap,$s=new WeakMap,wa=new WeakMap;function ka(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xa(e){return e.__v_skip||!Object.isExtensible(e)?0:ka(Go(e))}function cn(e){return At(e)?e:Kr(e,!1,ha,va,Cs)}function _a(e){return Kr(e,!1,pa,ba,Ss)}function un(e){return Kr(e,!0,da,ya,$s)}function Kr(e,t,n,r,i){if(!ge(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const l=xa(e);if(l===0)return e;const o=new Proxy(e,l===2?r:n);return i.set(e,o),o}function Nt(e){return At(e)?Nt(e.__v_raw):!!(e&&e.__v_isReactive)}function At(e){return!!(e&&e.__v_isReadonly)}function Ue(e){return!!(e&&e.__v_isShallow)}function Gr(e){return e?!!e.__v_raw:!1}function ne(e){const t=e&&e.__v_raw;return t?ne(t):e}function Ca(e){return!te(e,"__v_skip")&&Object.isExtensible(e)&&ss(e,"__v_skip",!0),e}const Ce=e=>ge(e)?cn(e):e,Zr=e=>ge(e)?un(e):e;function we(e){return e?e.__v_isRef===!0:!1}function X(e){return As(e,!1)}function Rs(e){return As(e,!0)}function As(e,t){return we(e)?e:new Sa(e,t)}class Sa{constructor(t,n){this.dep=new Hr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ne(t),this._value=n?t:Ce(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Ue(t)||At(t);t=r?t:ne(t),gt(t,n)&&(this._rawValue=t,this._value=r?t:Ce(t),this.dep.trigger())}}function q(e){return we(e)?e.value:e}const $a={get:(e,t,n)=>t==="__v_raw"?e:q(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return we(i)&&!we(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Ts(e){return Nt(e)?e:new Proxy(e,$a)}class Ra{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Hr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ln-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&ue!==this)return ds(this,!0),!0}get value(){const t=this.dep.track();return ms(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Aa(e,t,n=!1){let r,i;return oe(e)?r=e:(r=e.get,i=e.set),new Ra(r,i,n)}const Wn={},qn=new WeakMap;let Tt;function Ta(e,t=!1,n=Tt){if(n){let r=qn.get(n);r||qn.set(n,r=[]),r.push(e)}}function Ea(e,t,n=le){const{immediate:r,deep:i,once:s,scheduler:l,augmentJob:o,call:a}=n,c=E=>i?E:Ue(E)||i===!1||i===0?st(E,1):st(E);let u,h,d,g,x=!1,b=!1;if(we(e)?(h=()=>e.value,x=Ue(e)):Nt(e)?(h=()=>c(e),x=!0):W(e)?(b=!0,x=e.some(E=>Nt(E)||Ue(E)),h=()=>e.map(E=>{if(we(E))return E.value;if(Nt(E))return c(E);if(oe(E))return a?a(E,2):E()})):oe(e)?t?h=a?()=>a(e,2):e:h=()=>{if(d){St();try{d()}finally{$t()}}const E=Tt;Tt=u;try{return a?a(e,3,[g]):e(g)}finally{Tt=E}}:h=xt,t&&i){const E=h,O=i===!0?1/0:i;h=()=>st(E(),O)}const S=us(),y=()=>{u.stop(),S&&S.active&&es(S.effects,u)};if(s&&t){const E=t;t=(...O)=>{E(...O),y()}}let _=b?new Array(e.length).fill(Wn):Wn;const H=E=>{if(!(!(u.flags&1)||!u.dirty&&!E))if(t){const O=u.run();if(i||x||(b?O.some((K,z)=>gt(K,_[z])):gt(O,_))){d&&d();const K=Tt;Tt=u;try{const z=[O,_===Wn?void 0:b&&_[0]===Wn?[]:_,g];a?a(t,3,z):t(...z),_=O}finally{Tt=K}}}else u.run()};return o&&o(H),u=new fs(h),u.scheduler=l?()=>l(H,!1):H,g=E=>Ta(E,!1,u),d=u.onStop=()=>{const E=qn.get(u);if(E){if(a)a(E,4);else for(const O of E)O();qn.delete(u)}},t?r?H(!0):_=u.run():l?l(H.bind(null,!0),!0):u.run(),y.pause=u.pause.bind(u),y.resume=u.resume.bind(u),y.stop=y,y}function st(e,t=1/0,n){if(t<=0||!ge(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,we(e))st(e.value,t,n);else if(W(e))for(let r=0;r<e.length;r++)st(e[r],t,n);else if(Ht(e)||Dt(e))e.forEach(r=>{st(r,t,n)});else if(is(e)){for(const r in e)st(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&st(e[r],t,n)}return e}/**
19
19
  * @vue/runtime-core v3.5.13
20
20
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
21
21
  * @license MIT
22
- **/function hn(e,t,n,r){try{return r?e(...r):e()}catch(i){Kn(i,t,n)}}function ct(e,t,n,r){if(le(e)){const i=hn(e,t,n,r);return i&&Qi(i)&&i.catch(s=>{Kn(s,t,n)}),i}if(V(e)){const i=[];for(let s=0;s<e.length;s++)i.push(ct(e[s],t,n,r));return i}}function Kn(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||ue;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 h=0;h<u.length;h++)if(u[h](e,a,c)===!1)return}o=o.parent}if(s){St(),hn(s,null,10,[e,a,c]),Rt();return}}Ca(e,n,i,r,l)}function Ca(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}const Te=[];let tt=-1;const Wt=[];let bt=null,qt=0;const $s=Promise.resolve();let Gn=null;function Kt(e){const t=Gn||$s;return e?t.then(this?e.bind(this):e):t}function $a(e){let t=tt+1,n=Te.length;for(;t<n;){const r=t+n>>>1,i=Te[r],s=dn(i);s<e||s===e&&i.flags&2?t=r+1:n=r}return t}function Gr(e){if(!(e.flags&1)){const t=dn(e),n=Te[Te.length-1];!n||!(e.flags&2)&&t>=dn(n)?Te.push(e):Te.splice($a(t),0,e),e.flags|=1,Ss()}}function Ss(){Gn||(Gn=$s.then(Ts))}function Sa(e){V(e)?Wt.push(...e):bt&&e.id===-1?bt.splice(qt+1,0,e):e.flags&1||(Wt.push(e),e.flags|=1),Ss()}function Rs(e,t,n=tt+1){for(;n<Te.length;n++){const r=Te[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Te.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function As(e){if(Wt.length){const t=[...new Set(Wt)].sort((n,r)=>dn(n)-dn(r));if(Wt.length=0,bt){bt.push(...t);return}for(bt=t,qt=0;qt<bt.length;qt++){const n=bt[qt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}bt=null,qt=0}}const dn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Ts(e){try{for(tt=0;tt<Te.length;tt++){const t=Te[tt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),hn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;tt<Te.length;tt++){const t=Te[tt];t&&(t.flags&=-2)}tt=-1,Te.length=0,As(),Gn=null,(Te.length||Wt.length)&&Ts()}}let Pe=null,Es=null;function Zn(e){const t=Pe;return Pe=e,Es=e&&e.type.__scopeId||null,t}function Ra(e,t=Pe,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&Zs(-1);const s=Zn(t);let l;try{l=e(...i)}finally{Zn(s),r._d&&Zs(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function Jn(e,t){if(Pe===null)return e;const n=ir(Pe),r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[s,l,o,a=ue]=t[i];s&&(le(s)&&(s={mounted:s,updated:s}),s.deep&&at(l),r.push({dir:s,instance:n,value:l,oldValue:void 0,arg:o,modifiers:a}))}return e}function Lt(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&&(St(),ct(a,n,8,[e.el,o,e,t]),Rt())}}const Aa=Symbol("_vte"),Ta=e=>e.__isTeleport;function Zr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Zr(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 pn(e,t){return le(e)?Be({name:e.name},t,{setup:e}):e}function Ea(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Yn(e,t,n,r,i=!1){if(V(e)){e.forEach((k,v)=>Yn(k,t&&(V(t)?t[v]:t),n,r,i));return}if(gn(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Yn(e,t,n,r.component.subTree);return}const s=r.shapeFlag&4?ir(r.component):r.el,l=i?null:s,{i:o,r:a}=e,c=t&&t.r,u=o.refs===ue?o.refs={}:o.refs,h=o.setupState,d=te(h),g=h===ue?()=>!1:k=>ee(d,k);if(c!=null&&c!==a&&(ye(c)?(u[c]=null,g(c)&&(h[c]=null)):xe(c)&&(c.value=null)),le(a))hn(a,o,12,[l,u]);else{const k=ye(a),v=xe(a);if(k||v){const $=()=>{if(e.f){const b=k?g(a)?h[a]:u[a]:a.value;i?V(b)&&Ji(b,s):V(b)?b.includes(s)||b.push(s):k?(u[a]=[s],g(a)&&(h[a]=u[a])):(a.value=[s],e.k&&(u[e.k]=a.value))}else k?(u[a]=l,g(a)&&(h[a]=l)):v&&(a.value=l,e.k&&(u[e.k]=l))};l?($.id=-1,ze($,n)):$()}}}nn().requestIdleCallback,nn().cancelIdleCallback;const gn=e=>!!e.type.__asyncLoader,La=e=>e.type.__isKeepAlive;function Ia(e,t,n=Ee,r=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...l)=>{St();const o=oi(n),a=ct(t,n,e,l);return o(),Rt(),a});return r?i.unshift(s):i.push(s),s}}const Jr=e=>(t,n=Ee)=>{(!kn||e==="sp")&&Ia(e,(...r)=>t(...r),n)},mn=Jr("m"),Ma=Jr("bum"),Yr=Jr("um"),Oa="components";function Pa(e,t){return za(Oa,e,!0,t)||e}const ja=Symbol.for("v-ndc");function za(e,t,n=!0,r=!1){const i=Pe||Ee;if(i){const s=i.type;{const o=kc(s,!1);if(o&&(o===t||o===Ve(t)||o===Dn(Ve(t))))return s}const l=Ls(i[e]||s[e],t)||Ls(i.appContext[e],t);return!l&&r?s:l}}function Ls(e,t){return e&&(e[t]||e[Ve(t)]||e[Dn(Ve(t))])}function qe(e,t,n,r){let i;const s=n,l=V(e);if(l||ye(e)){const o=l&&Vt(e);let a=!1;o&&(a=!We(e),e=Nn(e)),i=new Array(e.length);for(let c=0,u=e.length;c<u;c++)i[c]=t(a?Se(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(me(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 Qr=e=>e?Xs(e)?ir(e):Qr(e.parent):null,vn=Be(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=>Qr(e.parent),$root:e=>Qr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>{Gr(e.update)}),$nextTick:e=>e.n||(e.n=Kt.bind(e.proxy)),$watch:e=>_t}),Xr=(e,t)=>e!==ue&&!e.__isScriptSetup&&ee(e,t),Fa={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 g=l[t];if(g!==void 0)switch(g){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(Xr(r,t))return l[t]=1,r[t];if(i!==ue&&ee(i,t))return l[t]=2,i[t];if((c=e.propsOptions[0])&&ee(c,t))return l[t]=3,s[t];if(n!==ue&&ee(n,t))return l[t]=4,n[t];l[t]=0}}const u=vn[t];let h,d;if(u)return t==="$attrs"&&$e(e.attrs,"get",""),u(e);if((h=o.__cssModules)&&(h=h[t]))return h;if(n!==ue&&ee(n,t))return l[t]=4,n[t];if(d=a.config.globalProperties,ee(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return Xr(i,t)?(i[t]=n,!0):r!==ue&&ee(r,t)?(r[t]=n,!0):ee(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!==ue&&ee(e,l)||Xr(t,l)||(o=s[0])&&ee(o,l)||ee(r,l)||ee(vn,l)||ee(i.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ee(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Is(){return{app:null,config:{isNativeTag:Fo,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 Da=0;function Ha(e,t){return function(r,i=null){le(r)||(r=Be({},r)),i!=null&&!me(i)&&(i=null);const s=Is(),l=new WeakSet,o=[];let a=!1;const c=s.app={_uid:Da++,_component:r,_props:i,_container:null,_context:s,_instance:null,version:_c,get config(){return s.config},set config(u){},use(u,...h){return l.has(u)||(u&&le(u.install)?(l.add(u),u.install(c,...h)):le(u)&&(l.add(u),u(c,...h))),c},mixin(u){return c},component(u,h){return h?(s.components[u]=h,c):s.components[u]},directive(u,h){return h?(s.directives[u]=h,c):s.directives[u]},mount(u,h,d){if(!a){const g=c._ceVNode||oe(r,i);return g.appContext=s,d===!0?d="svg":d===!1&&(d=void 0),h&&t?t(g,u):e(g,u,d),a=!0,c._container=u,u.__vue_app__=c,ir(g.component)}},onUnmount(u){o.push(u)},unmount(){a&&(ct(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,h){return s.provides[u]=h,c},runWithContext(u){const h=Gt;Gt=c;try{return u()}finally{Gt=h}}};return c}}let Gt=null;function Ua(e,t){if(Ee){let n=Ee.provides;const r=Ee.parent&&Ee.parent.provides;r===n&&(n=Ee.provides=Object.create(r)),n[e]=t}}function Qn(e,t,n=!1){const r=Ee||Pe;if(r||Gt){const i=Gt?Gt._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&&le(t)?t.call(r&&r.proxy):t}}const Ms={},Os=()=>Object.create(Ms),Ps=e=>Object.getPrototypeOf(e)===Ms;function Na(e,t,n,r=!1){const i={},s=Os();e.propsDefaults=Object.create(null),js(e,t,i,s);for(const l in e.propsOptions[0])l in i||(i[l]=void 0);n?e.props=r?i:ga(i):e.type.props?e.props=i:e.props=s,e.attrs=s}function Ba(e,t,n,r){const{props:i,attrs:s,vnode:{patchFlag:l}}=e,o=te(i),[a]=e.propsOptions;let c=!1;if((r||l>0)&&!(l&16)){if(l&8){const u=e.vnode.dynamicProps;for(let h=0;h<u.length;h++){let d=u[h];if(Xn(e.emitsOptions,d))continue;const g=t[d];if(a)if(ee(s,d))g!==s[d]&&(s[d]=g,c=!0);else{const k=Ve(d);i[k]=ei(a,o,k,g,e,!1)}else g!==s[d]&&(s[d]=g,c=!0)}}}else{js(e,t,i,s)&&(c=!0);let u;for(const h in o)(!t||!ee(t,h)&&((u=Ct(h))===h||!ee(t,u)))&&(a?n&&(n[h]!==void 0||n[u]!==void 0)&&(i[h]=ei(a,o,h,void 0,e,!0)):delete i[h]);if(s!==o)for(const h in s)(!t||!ee(t,h))&&(delete s[h],c=!0)}c&&lt(e.attrs,"set","")}function js(e,t,n,r){const[i,s]=e.propsOptions;let l=!1,o;if(t)for(let a in t){if(tn(a))continue;const c=t[a];let u;i&&ee(i,u=Ve(a))?!s||!s.includes(u)?n[u]=c:(o||(o={}))[u]=c:Xn(e.emitsOptions,a)||(!(a in r)||c!==r[a])&&(r[a]=c,l=!0)}if(s){const a=te(n),c=o||ue;for(let u=0;u<s.length;u++){const h=s[u];n[h]=ei(i,a,h,c[h],e,!ee(c,h))}}return l}function ei(e,t,n,r,i,s){const l=e[n];if(l!=null){const o=ee(l,"default");if(o&&r===void 0){const a=l.default;if(l.type!==Function&&!l.skipFactory&&le(a)){const{propsDefaults:c}=i;if(n in c)r=c[n];else{const u=oi(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===Ct(n))&&(r=!0))}return r}function Va(e,t,n=!1){const r=t.propsCache,i=r.get(e);if(i)return i;const s=e.props,l={},o=[];if(!s&&!!1)return me(e)&&r.set(e,Ht),Ht;if(V(s))for(let u=0;u<s.length;u++){const h=Ve(s[u]);zs(h)&&(l[h]=ue)}else if(s)for(const u in s){const h=Ve(u);if(zs(h)){const d=s[u],g=l[h]=V(d)||le(d)?{type:d}:Be({},d),k=g.type;let v=!1,$=!0;if(V(k))for(let b=0;b<k.length;++b){const C=k[b],U=le(C)&&C.name;if(U==="Boolean"){v=!0;break}else U==="String"&&($=!1)}else v=le(k)&&k.name==="Boolean";g[0]=v,g[1]=$,(v||ee(g,"default"))&&o.push(h)}}const c=[l,o];return me(e)&&r.set(e,c),c}function zs(e){return e[0]!=="$"&&!tn(e)}const Fs=e=>e[0]==="_"||e==="$stable",ti=e=>V(e)?e.map(nt):[nt(e)],Wa=(e,t,n)=>{if(t._n)return t;const r=Ra((...i)=>ti(t(...i)),n);return r._c=!1,r},Ds=(e,t,n)=>{const r=e._ctx;for(const i in e){if(Fs(i))continue;const s=e[i];if(le(s))t[i]=Wa(i,s,r);else if(s!=null){const l=ti(s);t[i]=()=>l}}},Hs=(e,t)=>{const n=ti(t);e.slots.default=()=>n},Us=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},qa=(e,t,n)=>{const r=e.slots=Os();if(e.vnode.shapeFlag&32){const i=t._;i?(Us(r,t,n),n&&ts(r,"_",i,!0)):Ds(t,r)}else t&&Hs(e,t)},Ka=(e,t,n)=>{const{vnode:r,slots:i}=e;let s=!0,l=ue;if(r.shapeFlag&32){const o=t._;o?n&&o===1?s=!1:Us(i,t,n):(s=!t.$stable,Ds(t,i)),l=t}else t&&(Hs(e,t),l={default:1});if(s)for(const o in i)!Fs(o)&&l[o]==null&&delete i[o]};function Ga(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(nn().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const ze=ac;function Za(e){return Ja(e)}function Ja(e,t){Ga();const n=nn();n.__VUE__=!0;const{insert:r,remove:i,patchProp:s,createElement:l,createText:o,createComment:a,setText:c,setElementText:u,parentNode:h,nextSibling:d,setScopeId:g=_t,insertStaticContent:k}=e,v=(f,p,m,w=null,y=null,x=null,E=void 0,R=null,S=!!p.dynamicChildren)=>{if(f===p)return;f&&!wn(f,p)&&(w=Ft(f),De(f,y,x,!0),f=null),p.patchFlag===-2&&(S=!1,p.dynamicChildren=null);const{type:_,ref:M,shapeFlag:L}=p;switch(_){case er:$(f,p,m,w);break;case Mt:b(f,p,m,w);break;case ii:f==null&&C(p,m,w,E);break;case he:be(f,p,m,w,y,x,E,R,S);break;default:L&1?j(f,p,m,w,y,x,E,R,S):L&6?F(f,p,m,w,y,x,E,R,S):(L&64||L&128)&&_.process(f,p,m,w,y,x,E,R,S,A)}M!=null&&y&&Yn(M,f&&f.ref,x,p||f,!p)},$=(f,p,m,w)=>{if(f==null)r(p.el=o(p.children),m,w);else{const y=p.el=f.el;p.children!==f.children&&c(y,p.children)}},b=(f,p,m,w)=>{f==null?r(p.el=a(p.children||""),m,w):p.el=f.el},C=(f,p,m,w)=>{[f.el,f.anchor]=k(f.children,p,m,w,f.el,f.anchor)},U=({el:f,anchor:p},m,w)=>{let y;for(;f&&f!==p;)y=d(f),r(f,m,w),f=y;r(p,m,w)},T=({el:f,anchor:p})=>{let m;for(;f&&f!==p;)m=d(f),i(f),f=m;i(p)},j=(f,p,m,w,y,x,E,R,S)=>{p.type==="svg"?E="svg":p.type==="math"&&(E="mathml"),f==null?K(p,m,w,y,x,E,R,S):je(f,p,y,x,E,R,S)},K=(f,p,m,w,y,x,E,R)=>{let S,_;const{props:M,shapeFlag:L,transition:D,dirs:B}=f;if(S=f.el=l(f.type,x,M&&M.is,M),L&8?u(S,f.children):L&16&&G(f.children,S,null,w,y,ni(f,x),E,R),B&&Lt(f,null,w,"created"),z(S,f,f.scopeId,E,w),M){for(const de in M)de!=="value"&&!tn(de)&&s(S,de,null,M[de],x,w);"value"in M&&s(S,"value",null,M.value,x),(_=M.onVnodeBeforeMount)&&rt(_,w,f)}B&&Lt(f,null,w,"beforeMount");const J=Ya(y,D);J&&D.beforeEnter(S),r(S,p,m),((_=M&&M.onVnodeMounted)||J||B)&&ze(()=>{_&&rt(_,w,f),J&&D.enter(S),B&&Lt(f,null,w,"mounted")},y)},z=(f,p,m,w,y)=>{if(m&&g(f,m),w)for(let x=0;x<w.length;x++)g(f,w[x]);if(y){let x=y.subTree;if(p===x||Gs(x.type)&&(x.ssContent===p||x.ssFallback===p)){const E=y.vnode;z(f,E,E.scopeId,E.slotScopeIds,y.parent)}}},G=(f,p,m,w,y,x,E,R,S=0)=>{for(let _=S;_<f.length;_++){const M=f[_]=R?yt(f[_]):nt(f[_]);v(null,M,p,m,w,y,x,E,R)}},je=(f,p,m,w,y,x,E)=>{const R=p.el=f.el;let{patchFlag:S,dynamicChildren:_,dirs:M}=p;S|=f.patchFlag&16;const L=f.props||ue,D=p.props||ue;let B;if(m&&It(m,!1),(B=D.onVnodeBeforeUpdate)&&rt(B,m,p,f),M&&Lt(p,f,m,"beforeUpdate"),m&&It(m,!0),(L.innerHTML&&D.innerHTML==null||L.textContent&&D.textContent==null)&&u(R,""),_?Z(f.dynamicChildren,_,R,m,w,ni(p,y),x):E||ke(f,p,R,null,m,w,ni(p,y),x,!1),S>0){if(S&16)ie(R,L,D,m,y);else if(S&2&&L.class!==D.class&&s(R,"class",null,D.class,y),S&4&&s(R,"style",L.style,D.style,y),S&8){const J=p.dynamicProps;for(let de=0;de<J.length;de++){const se=J[de],He=L[se],Re=D[se];(Re!==He||se==="value")&&s(R,se,He,Re,y,m)}}S&1&&f.children!==p.children&&u(R,p.children)}else!E&&_==null&&ie(R,L,D,m,y);((B=D.onVnodeUpdated)||M)&&ze(()=>{B&&rt(B,m,p,f),M&&Lt(p,f,m,"updated")},w)},Z=(f,p,m,w,y,x,E)=>{for(let R=0;R<p.length;R++){const S=f[R],_=p[R],M=S.el&&(S.type===he||!wn(S,_)||S.shapeFlag&70)?h(S.el):m;v(S,_,M,null,w,y,x,E,!0)}},ie=(f,p,m,w,y)=>{if(p!==m){if(p!==ue)for(const x in p)!tn(x)&&!(x in m)&&s(f,x,p[x],null,y,w);for(const x in m){if(tn(x))continue;const E=m[x],R=p[x];E!==R&&x!=="value"&&s(f,x,R,E,y,w)}"value"in m&&s(f,"value",p.value,m.value,y)}},be=(f,p,m,w,y,x,E,R,S)=>{const _=p.el=f?f.el:o(""),M=p.anchor=f?f.anchor:o("");let{patchFlag:L,dynamicChildren:D,slotScopeIds:B}=p;B&&(R=R?R.concat(B):B),f==null?(r(_,m,w),r(M,m,w),G(p.children||[],m,M,y,x,E,R,S)):L>0&&L&64&&D&&f.dynamicChildren?(Z(f.dynamicChildren,D,m,y,x,E,R),(p.key!=null||y&&p===y.subTree)&&Ns(f,p,!0)):ke(f,p,m,M,y,x,E,R,S)},F=(f,p,m,w,y,x,E,R,S)=>{p.slotScopeIds=R,f==null?p.shapeFlag&512?y.ctx.activate(p,m,w,E,S):Q(p,m,w,y,x,E,S):ce(f,p,S)},Q=(f,p,m,w,y,x,E)=>{const R=f.component=gc(f,w,y);if(La(f)&&(R.ctx.renderer=A),vc(R,!1,E),R.asyncDep){if(y&&y.registerDep(R,Ce,E),!f.el){const S=R.subTree=oe(Mt);b(null,S,p,m)}}else Ce(R,f,p,m,y,x,E)},ce=(f,p,m)=>{const w=p.component=f.component;if(lc(f,p,m))if(w.asyncDep&&!w.asyncResolved){we(w,p,m);return}else w.next=p,w.update();else p.el=f.el,w.vnode=p},Ce=(f,p,m,w,y,x,E)=>{const R=()=>{if(f.isMounted){let{next:L,bu:D,u:B,parent:J,vnode:de}=f;{const Ue=Bs(f);if(Ue){L&&(L.el=de.el,we(f,L,E)),Ue.asyncDep.then(()=>{f.isUnmounted||R()});return}}let se=L,He;It(f,!1),L?(L.el=de.el,we(f,L,E)):L=de,D&&Hn(D),(He=L.props&&L.props.onVnodeBeforeUpdate)&&rt(He,J,L,de),It(f,!0);const Re=ri(f),Qe=f.subTree;f.subTree=Re,v(Qe,Re,h(Qe.el),Ft(Qe),f,y,x),L.el=Re.el,se===null&&oc(f,Re.el),B&&ze(B,y),(He=L.props&&L.props.onVnodeUpdated)&&ze(()=>rt(He,J,L,de),y)}else{let L;const{el:D,props:B}=p,{bm:J,m:de,parent:se,root:He,type:Re}=f,Qe=gn(p);if(It(f,!1),J&&Hn(J),!Qe&&(L=B&&B.onVnodeBeforeMount)&&rt(L,se,p),It(f,!0),D&&pe){const Ue=()=>{f.subTree=ri(f),pe(D,f.subTree,f,y,null)};Qe&&Re.__asyncHydrate?Re.__asyncHydrate(D,f,Ue):Ue()}else{He.ce&&He.ce._injectChildStyle(Re);const Ue=f.subTree=ri(f);v(null,Ue,m,w,f,y,x),p.el=Ue.el}if(de&&ze(de,y),!Qe&&(L=B&&B.onVnodeMounted)){const Ue=p;ze(()=>rt(L,se,Ue),y)}(p.shapeFlag&256||se&&gn(se.vnode)&&se.vnode.shapeFlag&256)&&f.a&&ze(f.a,y),f.isMounted=!0,p=m=w=null}};f.scope.on();const S=f.effect=new os(R);f.scope.off();const _=f.update=S.run.bind(S),M=f.job=S.runIfDirty.bind(S);M.i=f,M.id=f.uid,S.scheduler=()=>Gr(M),It(f,!0),_()},we=(f,p,m)=>{p.component=f;const w=f.vnode.props;f.vnode=p,f.next=null,Ba(f,p.props,w,m),Ka(f,p.children,m),St(),Rs(f),Rt()},ke=(f,p,m,w,y,x,E,R,S=!1)=>{const _=f&&f.children,M=f?f.shapeFlag:0,L=p.children,{patchFlag:D,shapeFlag:B}=p;if(D>0){if(D&128){kt(_,L,m,w,y,x,E,R,S);return}else if(D&256){Ie(_,L,m,w,y,x,E,R,S);return}}B&8?(M&16&&zt(_,y,x),L!==_&&u(m,L)):M&16?B&16?kt(_,L,m,w,y,x,E,R,S):zt(_,y,x,!0):(M&8&&u(m,""),B&16&&G(L,m,w,y,x,E,R,S))},Ie=(f,p,m,w,y,x,E,R,S)=>{f=f||Ht,p=p||Ht;const _=f.length,M=p.length,L=Math.min(_,M);let D;for(D=0;D<L;D++){const B=p[D]=S?yt(p[D]):nt(p[D]);v(f[D],B,m,null,y,x,E,R,S)}_>M?zt(f,y,x,!0,!1,L):G(p,m,w,y,x,E,R,S,L)},kt=(f,p,m,w,y,x,E,R,S)=>{let _=0;const M=p.length;let L=f.length-1,D=M-1;for(;_<=L&&_<=D;){const B=f[_],J=p[_]=S?yt(p[_]):nt(p[_]);if(wn(B,J))v(B,J,m,null,y,x,E,R,S);else break;_++}for(;_<=L&&_<=D;){const B=f[L],J=p[D]=S?yt(p[D]):nt(p[D]);if(wn(B,J))v(B,J,m,null,y,x,E,R,S);else break;L--,D--}if(_>L){if(_<=D){const B=D+1,J=B<M?p[B].el:w;for(;_<=D;)v(null,p[_]=S?yt(p[_]):nt(p[_]),m,J,y,x,E,R,S),_++}}else if(_>D)for(;_<=L;)De(f[_],y,x,!0),_++;else{const B=_,J=_,de=new Map;for(_=J;_<=D;_++){const Ne=p[_]=S?yt(p[_]):nt(p[_]);Ne.key!=null&&de.set(Ne.key,_)}let se,He=0;const Re=D-J+1;let Qe=!1,Ue=0;const Mn=new Array(Re);for(_=0;_<Re;_++)Mn[_]=0;for(_=B;_<=L;_++){const Ne=f[_];if(He>=Re){De(Ne,y,x,!0);continue}let st;if(Ne.key!=null)st=de.get(Ne.key);else for(se=J;se<=D;se++)if(Mn[se-J]===0&&wn(Ne,p[se])){st=se;break}st===void 0?De(Ne,y,x,!0):(Mn[st-J]=_+1,st>=Ue?Ue=st:Qe=!0,v(Ne,p[st],m,null,y,x,E,R,S),He++)}const ho=Qe?Qa(Mn):Ht;for(se=ho.length-1,_=Re-1;_>=0;_--){const Ne=J+_,st=p[Ne],po=Ne+1<M?p[Ne+1].el:w;Mn[_]===0?v(null,st,m,po,y,x,E,R,S):Qe&&(se<0||_!==ho[se]?jt(st,m,po,2):se--)}}},jt=(f,p,m,w,y=null)=>{const{el:x,type:E,transition:R,children:S,shapeFlag:_}=f;if(_&6){jt(f.component.subTree,p,m,w);return}if(_&128){f.suspense.move(p,m,w);return}if(_&64){E.move(f,p,m,A);return}if(E===he){r(x,p,m);for(let L=0;L<S.length;L++)jt(S[L],p,m,w);r(f.anchor,p,m);return}if(E===ii){U(f,p,m);return}if(w!==2&&_&1&&R)if(w===0)R.beforeEnter(x),r(x,p,m),ze(()=>R.enter(x),y);else{const{leave:L,delayLeave:D,afterLeave:B}=R,J=()=>r(x,p,m),de=()=>{L(x,()=>{J(),B&&B()})};D?D(x,J,de):de()}else r(x,p,m)},De=(f,p,m,w=!1,y=!1)=>{const{type:x,props:E,ref:R,children:S,dynamicChildren:_,shapeFlag:M,patchFlag:L,dirs:D,cacheIndex:B}=f;if(L===-2&&(y=!1),R!=null&&Yn(R,null,m,f,!0),B!=null&&(p.renderCache[B]=void 0),M&256){p.ctx.deactivate(f);return}const J=M&1&&D,de=!gn(f);let se;if(de&&(se=E&&E.onVnodeBeforeUnmount)&&rt(se,p,f),M&6)kr(f.component,m,w);else{if(M&128){f.suspense.unmount(m,w);return}J&&Lt(f,null,p,"beforeUnmount"),M&64?f.type.remove(f,p,m,A,w):_&&!_.hasOnce&&(x!==he||L>0&&L&64)?zt(_,p,m,!1,!0):(x===he&&L&384||!y&&M&16)&&zt(S,p,m),w&&wr(f)}(de&&(se=E&&E.onVnodeUnmounted)||J)&&ze(()=>{se&&rt(se,p,f),J&&Lt(f,null,p,"unmounted")},m)},wr=f=>{const{type:p,el:m,anchor:w,transition:y}=f;if(p===he){Ci(m,w);return}if(p===ii){T(f);return}const x=()=>{i(m),y&&!y.persisted&&y.afterLeave&&y.afterLeave()};if(f.shapeFlag&1&&y&&!y.persisted){const{leave:E,delayLeave:R}=y,S=()=>E(m,x);R?R(f.el,x,S):S()}else x()},Ci=(f,p)=>{let m;for(;f!==p;)m=d(f),i(f),f=m;i(p)},kr=(f,p,m)=>{const{bum:w,scope:y,job:x,subTree:E,um:R,m:S,a:_}=f;Vs(S),Vs(_),w&&Hn(w),y.stop(),x&&(x.flags|=8,De(E,f,p,m)),R&&ze(R,p),ze(()=>{f.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},zt=(f,p,m,w=!1,y=!1,x=0)=>{for(let E=x;E<f.length;E++)De(f[E],p,m,w,y)},Ft=f=>{if(f.shapeFlag&6)return Ft(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const p=d(f.anchor||f.el),m=p&&p[Aa];return m?d(m):p};let Qt=!1;const O=(f,p,m)=>{f==null?p._vnode&&De(p._vnode,null,null,!0):v(p._vnode||null,f,p,null,null,null,m),p._vnode=f,Qt||(Qt=!0,Rs(),As(),Qt=!1)},A={p:v,um:De,m:jt,r:wr,mt:Q,mc:G,pc:ke,pbc:Z,n:Ft,o:e};let N,pe;return{render:O,hydrate:N,createApp:Ha(O,N)}}function ni({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function It({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ya(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ns(e,t,n=!1){const r=e.children,i=t.children;if(V(r)&&V(i))for(let s=0;s<r.length;s++){const l=r[s];let o=i[s];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=i[s]=yt(i[s]),o.el=l.el),!n&&o.patchFlag!==-2&&Ns(l,o)),o.type===er&&(o.el=l.el)}}function Qa(e){const t=e.slice(),n=[0];let r,i,s,l,o;const a=e.length;for(r=0;r<a;r++){const c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(s=0,l=n.length-1;s<l;)o=s+l>>1,e[n[o]]<c?s=o+1:l=o;c<e[n[s]]&&(s>0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,l=n[s-1];s-- >0;)n[s]=l,l=t[l];return n}function Bs(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Bs(t)}function Vs(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Xa=Symbol.for("v-scx"),ec=()=>Qn(Xa);function Ws(e,t){return qs(e,null,t)}function Ke(e,t,n){return qs(e,t,n)}function qs(e,t,n=ue){const{immediate:r,deep:i,flush:s,once:l}=n,o=Be({},n),a=t&&r||!t&&s!=="post";let c;if(kn){if(s==="sync"){const g=ec();c=g.__watcherHandles||(g.__watcherHandles=[])}else if(!a){const g=()=>{};return g.stop=_t,g.resume=_t,g.pause=_t,g}}const u=Ee;o.call=(g,k,v)=>ct(g,u,k,v);let h=!1;s==="post"?o.scheduler=g=>{ze(g,u&&u.suspense)}:s!=="sync"&&(h=!0,o.scheduler=(g,k)=>{k?g():Gr(g)}),o.augmentJob=g=>{t&&(g.flags|=4),h&&(g.flags|=2,u&&(g.id=u.uid,g.i=u))};const d=_a(e,t,o);return kn&&(c?c.push(d):a&&d()),d}const tc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ve(t)}Modifiers`]||e[`${Ct(t)}Modifiers`];function nc(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||ue;let i=n;const s=t.startsWith("update:"),l=s&&tc(r,t.slice(7));l&&(l.trim&&(i=n.map(u=>ye(u)?u.trim():u)),l.number&&(i=n.map(Un)));let o,a=r[o=Er(t)]||r[o=Er(Ve(t))];!a&&s&&(a=r[o=Er(Ct(t))]),a&&ct(a,e,6,i);const c=r[o+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,ct(c,e,6,i)}}function rc(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const s=e.emits;let l={};return!s&&!!1?(me(e)&&r.set(e,null),null):(V(s)?s.forEach(a=>l[a]=null):Be(l,s),me(e)&&r.set(e,l),l)}function Xn(e,t){return!e||!zn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ee(e,t[0].toLowerCase()+t.slice(1))||ee(e,Ct(t))||ee(e,t))}function ri(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[s],slots:l,attrs:o,emit:a,render:c,renderCache:u,props:h,data:d,setupState:g,ctx:k,inheritAttrs:v}=e,$=Zn(e);let b,C;try{if(n.shapeFlag&4){const T=i||r,j=T;b=nt(c.call(j,T,u,h,g,d,k)),C=o}else{const T=t;b=nt(T.length>1?T(h,{attrs:o,slots:l,emit:a}):T(h,null)),C=t.props?o:ic(o)}}catch(T){bn.length=0,Kn(T,e,1),b=oe(Mt)}let U=b;if(C&&v!==!1){const T=Object.keys(C),{shapeFlag:j}=U;T.length&&j&7&&(s&&T.some(Ar)&&(C=sc(C,s)),U=Zt(U,C,!1,!0))}return n.dirs&&(U=Zt(U,null,!1,!0),U.dirs=U.dirs?U.dirs.concat(n.dirs):n.dirs),n.transition&&Zr(U,n.transition),b=U,Zn($),b}const ic=e=>{let t;for(const n in e)(n==="class"||n==="style"||zn(n))&&((t||(t={}))[n]=e[n]);return t},sc=(e,t)=>{const n={};for(const r in e)(!Ar(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function lc(e,t,n){const{props:r,children:i,component:s}=e,{props:l,children:o,patchFlag:a}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?Ks(r,l,c):!!l;if(a&8){const u=t.dynamicProps;for(let h=0;h<u.length;h++){const d=u[h];if(l[d]!==r[d]&&!Xn(c,d))return!0}}}else return(i||o)&&(!o||!o.$stable)?!0:r===l?!1:r?l?Ks(r,l,c):!0:!!l;return!1}function Ks(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const s=r[i];if(t[s]!==e[s]&&!Xn(n,s))return!0}return!1}function oc({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const Gs=e=>e.__isSuspense;function ac(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):Sa(e)}const he=Symbol.for("v-fgt"),er=Symbol.for("v-txt"),Mt=Symbol.for("v-cmt"),ii=Symbol.for("v-stc"),bn=[];let Fe=null;function I(e=!1){bn.push(Fe=e?null:[])}function cc(){bn.pop(),Fe=bn[bn.length-1]||null}let yn=1;function Zs(e,t=!1){yn+=e,e<0&&Fe&&t&&(Fe.hasOnce=!0)}function Js(e){return e.dynamicChildren=yn>0?Fe||Ht:null,cc(),yn>0&&Fe&&Fe.push(e),e}function P(e,t,n,r,i,s){return Js(H(e,t,n,r,i,s,!0))}function ut(e,t,n,r,i){return Js(oe(e,t,n,r,i,!0))}function tr(e){return e?e.__v_isVNode===!0:!1}function wn(e,t){return e.type===t.type&&e.key===t.key}const Ys=({key:e})=>e??null,nr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||xe(e)||le(e)?{i:Pe,r:e,k:t,f:!!n}:e:null);function H(e,t=null,n=null,r=0,i=null,s=e===he?0:1,l=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ys(t),ref:t&&nr(t),scopeId:Es,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Pe};return o?(si(a,n),s&128&&e.normalize(a)):n&&(a.shapeFlag|=ye(n)?8:16),yn>0&&!l&&Fe&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&Fe.push(a),a}const oe=uc;function uc(e,t=null,n=null,r=0,i=null,s=!1){if((!e||e===ja)&&(e=Mt),tr(e)){const o=Zt(e,t,!0);return n&&si(o,n),yn>0&&!s&&Fe&&(o.shapeFlag&6?Fe[Fe.indexOf(e)]=o:Fe.push(o)),o.patchFlag=-2,o}if(xc(e)&&(e=e.__vccOpts),t){t=fc(t);let{class:o,style:a}=t;o&&!ye(o)&&(t.class=ve(o)),me(a)&&(qr(a)&&!V(a)&&(a=Be({},a)),t.style=rn(a))}const l=ye(e)?1:Gs(e)?128:Ta(e)?64:me(e)?4:le(e)?2:0;return H(e,t,n,r,i,l,s,!0)}function fc(e){return e?qr(e)||Ps(e)?Be({},e):e:null}function Zt(e,t,n=!1,r=!1){const{props:i,ref:s,patchFlag:l,children:o,transition:a}=e,c=t?hc(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Ys(c),ref:t&&t.ref?n&&s?V(s)?s.concat(nr(t)):[s,nr(t)]:nr(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==he?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Zt(e.ssContent),ssFallback:e.ssFallback&&Zt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&Zr(u,a.clone(u)),u}function ft(e=" ",t=0){return oe(er,null,e,t)}function Y(e="",t=!1){return t?(I(),ut(Mt,null,e)):oe(Mt,null,e)}function nt(e){return e==null||typeof e=="boolean"?oe(Mt):V(e)?oe(he,null,e.slice()):tr(e)?yt(e):oe(er,null,String(e))}function yt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Zt(e)}function si(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(V(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),si(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!Ps(t)?t._ctx=Pe:i===3&&Pe&&(Pe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else le(t)?(t={default:t,_ctx:Pe},n=32):(t=String(t),r&64?(n=16,t=[ft(t)]):n=8);e.children=t,e.shapeFlag|=n}function hc(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=ve([t.class,r.class]));else if(i==="style")t.style=rn([t.style,r.style]);else if(zn(i)){const s=t[i],l=r[i];l&&s!==l&&!(V(s)&&s.includes(l))&&(t[i]=s?[].concat(s,l):l)}else i!==""&&(t[i]=r[i])}return t}function rt(e,t,n,r=null){ct(e,t,7,[n,r])}const dc=Is();let pc=0;function gc(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||dc,s={uid:pc++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Zo(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Va(r,i),emitsOptions:rc(r,i),emit:null,emitted:null,propsDefaults:ue,inheritAttrs:r.inheritAttrs,ctx:ue,data:ue,props:ue,attrs:ue,slots:ue,refs:ue,setupState:ue,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=nc.bind(null,s),e.ce&&e.ce(s),s}let Ee=null;const mc=()=>Ee||Pe;let rr,li;{const e=nn(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),s=>{i.length>1?i.forEach(l=>l(s)):i[0](s)}};rr=t("__VUE_INSTANCE_SETTERS__",n=>Ee=n),li=t("__VUE_SSR_SETTERS__",n=>kn=n)}const oi=e=>{const t=Ee;return rr(e),e.scope.on(),()=>{e.scope.off(),rr(t)}},Qs=()=>{Ee&&Ee.scope.off(),rr(null)};function Xs(e){return e.vnode.shapeFlag&4}let kn=!1;function vc(e,t=!1,n=!1){t&&li(t);const{props:r,children:i}=e.vnode,s=Xs(e);Na(e,r,s,t),qa(e,i,n);const l=s?bc(e,t):void 0;return t&&li(!1),l}function bc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Fa);const{setup:r}=n;if(r){St();const i=e.setupContext=r.length>1?wc(e):null,s=oi(e),l=hn(r,e,0,[e.props,i]),o=Qi(l);if(Rt(),s(),(o||e.sp)&&!gn(e)&&Ea(e),o){if(l.then(Qs,Qs),t)return l.then(a=>{el(e,a,t)}).catch(a=>{Kn(a,e,0)});e.asyncDep=l}else el(e,l,t)}else nl(e,t)}function el(e,t,n){le(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:me(t)&&(e.setupState=Cs(t)),nl(e,n)}let tl;function nl(e,t,n){const r=e.type;if(!e.render){if(!t&&tl&&!r.render){const i=r.template||!1;if(i){const{isCustomElement:s,compilerOptions:l}=e.appContext.config,{delimiters:o,compilerOptions:a}=r,c=Be(Be({isCustomElement:s,delimiters:o},l),a);r.render=tl(i,c)}}e.render=r.render||_t}}const yc={get(e,t){return $e(e,"get",""),e[t]}};function wc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,yc),slots:e.slots,emit:e.emit,expose:t}}function ir(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Cs(ma(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in vn)return vn[n](e)},has(t,n){return n in t||n in vn}})):e.proxy}function kc(e,t=!0){return le(e)?e.displayName||e.name:e.name||t&&e.__name}function xc(e){return le(e)&&"__vccOpts"in e}const _e=(e,t)=>ka(e,t,kn);function ne(e,t,n){const r=arguments.length;return r===2?me(t)&&!V(t)?tr(t)?oe(e,null,[t]):oe(e,t):oe(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&tr(n)&&(n=[n]),oe(e,t,n))}const _c="3.5.13";/**
22
+ **/function fn(e,t,n,r){try{return r?e(...r):e()}catch(i){Kn(i,t,n)}}function lt(e,t,n,r){if(oe(e)){const i=fn(e,t,n,r);return i&&ns(i)&&i.catch(s=>{Kn(s,t,n)}),i}if(W(e)){const i=[];for(let s=0;s<e.length;s++)i.push(lt(e[s],t,n,r));return i}}function Kn(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 h=0;h<u.length;h++)if(u[h](e,a,c)===!1)return}o=o.parent}if(s){St(),fn(s,null,10,[e,a,c]),$t();return}}La(e,n,i,r,l)}function La(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}const Re=[];let Xe=-1;const Bt=[];let mt=null,Vt=0;const Es=Promise.resolve();let Gn=null;function Wt(e){const t=Gn||Es;return e?t.then(this?e.bind(this):e):t}function Ia(e){let t=Xe+1,n=Re.length;for(;t<n;){const r=t+n>>>1,i=Re[r],s=hn(i);s<e||s===e&&i.flags&2?t=r+1:n=r}return t}function Jr(e){if(!(e.flags&1)){const t=hn(e),n=Re[Re.length-1];!n||!(e.flags&2)&&t>=hn(n)?Re.push(e):Re.splice(Ia(t),0,e),e.flags|=1,Ls()}}function Ls(){Gn||(Gn=Es.then(Ps))}function Ma(e){W(e)?Bt.push(...e):mt&&e.id===-1?mt.splice(Vt+1,0,e):e.flags&1||(Bt.push(e),e.flags|=1),Ls()}function Is(e,t,n=Xe+1){for(;n<Re.length;n++){const r=Re[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Re.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Ms(e){if(Bt.length){const t=[...new Set(Bt)].sort((n,r)=>hn(n)-hn(r));if(Bt.length=0,mt){mt.push(...t);return}for(mt=t,Vt=0;Vt<mt.length;Vt++){const n=mt[Vt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}mt=null,Vt=0}}const hn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Ps(e){try{for(Xe=0;Xe<Re.length;Xe++){const t=Re[Xe];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),fn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Xe<Re.length;Xe++){const t=Re[Xe];t&&(t.flags&=-2)}Xe=-1,Re.length=0,Ms(),Gn=null,(Re.length||Bt.length)&&Ps()}}let Ie=null,Os=null;function Zn(e){const t=Ie;return Ie=e,Os=e&&e.type.__scopeId||null,t}function Pa(e,t=Ie,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&el(-1);const s=Zn(t);let l;try{l=e(...i)}finally{Zn(s),r._d&&el(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function Jn(e,t){if(Ie===null)return e;const n=ir(Ie),r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[s,l,o,a=le]=t[i];s&&(oe(s)&&(s={mounted:s,updated:s}),s.deep&&st(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&&(St(),lt(a,n,8,[e.el,o,e,t]),$t())}}const Oa=Symbol("_vte"),ja=e=>e.__isTeleport;function Yr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Yr(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 dn(e,t){return oe(e)?De({name:e.name},t,{setup:e}):e}function za(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function vt(e){const t=rl(),n=Rs(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 Yn(e,t,n,r,i=!1){if(W(e)){e.forEach((x,b)=>Yn(x,t&&(W(t)?t[b]:t),n,r,i));return}if(pn(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Yn(e,t,n,r.component.subTree);return}const s=r.shapeFlag&4?ir(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,h=o.setupState,d=ne(h),g=h===le?()=>!1:x=>te(d,x);if(c!=null&&c!==a&&(be(c)?(u[c]=null,g(c)&&(h[c]=null)):we(c)&&(c.value=null)),oe(a))fn(a,o,12,[l,u]);else{const x=be(a),b=we(a);if(x||b){const S=()=>{if(e.f){const y=x?g(a)?h[a]:u[a]:a.value;i?W(y)&&es(y,s):W(y)?y.includes(s)||y.push(s):x?(u[a]=[s],g(a)&&(h[a]=u[a])):(a.value=[s],e.k&&(u[e.k]=a.value))}else x?(u[a]=l,g(a)&&(h[a]=l)):b&&(a.value=l,e.k&&(u[e.k]=l))};l?(S.id=-1,Pe(S,n)):S()}}}tn().requestIdleCallback,tn().cancelIdleCallback;const pn=e=>!!e.type.__asyncLoader,Fa=e=>e.type.__isKeepAlive;function Da(e,t,n=Ae,r=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...l)=>{St();const o=ci(n),a=lt(t,n,e,l);return o(),$t(),a});return r?i.unshift(s):i.push(s),s}}const Xr=e=>(t,n=Ae)=>{(!wn||e==="sp")&&Da(e,(...r)=>t(...r),n)},gn=Xr("m"),Ha=Xr("bum"),Qr=Xr("um"),Ua="components";function Na(e,t){return Va(Ua,e,!0,t)||e}const Ba=Symbol.for("v-ndc");function Va(e,t,n=!0,r=!1){const i=Ie||Ae;if(i){const s=i.type;{const o=Rc(s,!1);if(o&&(o===t||o===He(t)||o===Dn(He(t))))return s}const l=js(i[e]||s[e],t)||js(i.appContext[e],t);return!l&&r?s:l}}function js(e,t){return e&&(e[t]||e[He(t)]||e[Dn(He(t))])}function Ne(e,t,n,r){let i;const s=n,l=W(e);if(l||be(e)){const o=l&&Nt(e);let a=!1;o&&(a=!Ue(e),e=Nn(e)),i=new Array(e.length);for(let c=0,u=e.length;c<u;c++)i[c]=t(a?Ce(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(ge(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 ei=e=>e?sl(e)?ir(e):ei(e.parent):null,mn=De(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=>ei(e.parent),$root:e=>ei(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=Wt.bind(e.proxy)),$watch:e=>xt}),ti=(e,t)=>e!==le&&!e.__isScriptSetup&&te(e,t),Wa={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 g=l[t];if(g!==void 0)switch(g){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(ti(r,t))return l[t]=1,r[t];if(i!==le&&te(i,t))return l[t]=2,i[t];if((c=e.propsOptions[0])&&te(c,t))return l[t]=3,s[t];if(n!==le&&te(n,t))return l[t]=4,n[t];l[t]=0}}const u=mn[t];let h,d;if(u)return t==="$attrs"&&_e(e.attrs,"get",""),u(e);if((h=o.__cssModules)&&(h=h[t]))return h;if(n!==le&&te(n,t))return l[t]=4,n[t];if(d=a.config.globalProperties,te(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return ti(i,t)?(i[t]=n,!0):r!==le&&te(r,t)?(r[t]=n,!0):te(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&&te(e,l)||ti(t,l)||(o=s[0])&&te(o,l)||te(r,l)||te(mn,l)||te(i.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:te(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function zs(){return{app:null,config:{isNativeTag:qo,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 qa=0;function Ka(e,t){return function(r,i=null){oe(r)||(r=De({},r)),i!=null&&!ge(i)&&(i=null);const s=zs(),l=new WeakSet,o=[];let a=!1;const c=s.app={_uid:qa++,_component:r,_props:i,_container:null,_context:s,_instance:null,version:Tc,get config(){return s.config},set config(u){},use(u,...h){return l.has(u)||(u&&oe(u.install)?(l.add(u),u.install(c,...h)):oe(u)&&(l.add(u),u(c,...h))),c},mixin(u){return c},component(u,h){return h?(s.components[u]=h,c):s.components[u]},directive(u,h){return h?(s.directives[u]=h,c):s.directives[u]},mount(u,h,d){if(!a){const g=c._ceVNode||ae(r,i);return g.appContext=s,d===!0?d="svg":d===!1&&(d=void 0),h&&t?t(g,u):e(g,u,d),a=!0,c._container=u,u.__vue_app__=c,ir(g.component)}},onUnmount(u){o.push(u)},unmount(){a&&(lt(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,h){return s.provides[u]=h,c},runWithContext(u){const h=qt;qt=c;try{return u()}finally{qt=h}}};return c}}let qt=null;function Ga(e,t){if(Ae){let n=Ae.provides;const r=Ae.parent&&Ae.parent.provides;r===n&&(n=Ae.provides=Object.create(r)),n[e]=t}}function Xn(e,t,n=!1){const r=Ae||Ie;if(r||qt){const i=qt?qt._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&&oe(t)?t.call(r&&r.proxy):t}}const Fs={},Ds=()=>Object.create(Fs),Hs=e=>Object.getPrototypeOf(e)===Fs;function Za(e,t,n,r=!1){const i={},s=Ds();e.propsDefaults=Object.create(null),Us(e,t,i,s);for(const l in e.propsOptions[0])l in i||(i[l]=void 0);n?e.props=r?i:_a(i):e.type.props?e.props=i:e.props=s,e.attrs=s}function Ja(e,t,n,r){const{props:i,attrs:s,vnode:{patchFlag:l}}=e,o=ne(i),[a]=e.propsOptions;let c=!1;if((r||l>0)&&!(l&16)){if(l&8){const u=e.vnode.dynamicProps;for(let h=0;h<u.length;h++){let d=u[h];if(Qn(e.emitsOptions,d))continue;const g=t[d];if(a)if(te(s,d))g!==s[d]&&(s[d]=g,c=!0);else{const x=He(d);i[x]=ni(a,o,x,g,e,!1)}else g!==s[d]&&(s[d]=g,c=!0)}}}else{Us(e,t,i,s)&&(c=!0);let u;for(const h in o)(!t||!te(t,h)&&((u=_t(h))===h||!te(t,u)))&&(a?n&&(n[h]!==void 0||n[u]!==void 0)&&(i[h]=ni(a,o,h,void 0,e,!0)):delete i[h]);if(s!==o)for(const h in s)(!t||!te(t,h))&&(delete s[h],c=!0)}c&&rt(e.attrs,"set","")}function Us(e,t,n,r){const[i,s]=e.propsOptions;let l=!1,o;if(t)for(let a in t){if(en(a))continue;const c=t[a];let u;i&&te(i,u=He(a))?!s||!s.includes(u)?n[u]=c:(o||(o={}))[u]=c:Qn(e.emitsOptions,a)||(!(a in r)||c!==r[a])&&(r[a]=c,l=!0)}if(s){const a=ne(n),c=o||le;for(let u=0;u<s.length;u++){const h=s[u];n[h]=ni(i,a,h,c[h],e,!te(c,h))}}return l}function ni(e,t,n,r,i,s){const l=e[n];if(l!=null){const o=te(l,"default");if(o&&r===void 0){const a=l.default;if(l.type!==Function&&!l.skipFactory&&oe(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===_t(n))&&(r=!0))}return r}function Ya(e,t,n=!1){const r=t.propsCache,i=r.get(e);if(i)return i;const s=e.props,l={},o=[];if(!s&&!!1)return ge(e)&&r.set(e,Ft),Ft;if(W(s))for(let u=0;u<s.length;u++){const h=He(s[u]);Ns(h)&&(l[h]=le)}else if(s)for(const u in s){const h=He(u);if(Ns(h)){const d=s[u],g=l[h]=W(d)||oe(d)?{type:d}:De({},d),x=g.type;let b=!1,S=!0;if(W(x))for(let y=0;y<x.length;++y){const _=x[y],H=oe(_)&&_.name;if(H==="Boolean"){b=!0;break}else H==="String"&&(S=!1)}else b=oe(x)&&x.name==="Boolean";g[0]=b,g[1]=S,(b||te(g,"default"))&&o.push(h)}}const c=[l,o];return ge(e)&&r.set(e,c),c}function Ns(e){return e[0]!=="$"&&!en(e)}const Bs=e=>e[0]==="_"||e==="$stable",ri=e=>W(e)?e.map(Qe):[Qe(e)],Xa=(e,t,n)=>{if(t._n)return t;const r=Pa((...i)=>ri(t(...i)),n);return r._c=!1,r},Vs=(e,t,n)=>{const r=e._ctx;for(const i in e){if(Bs(i))continue;const s=e[i];if(oe(s))t[i]=Xa(i,s,r);else if(s!=null){const l=ri(s);t[i]=()=>l}}},Ws=(e,t)=>{const n=ri(t);e.slots.default=()=>n},qs=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},Qa=(e,t,n)=>{const r=e.slots=Ds();if(e.vnode.shapeFlag&32){const i=t._;i?(qs(r,t,n),n&&ss(r,"_",i,!0)):Vs(t,r)}else t&&Ws(e,t)},ec=(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:qs(i,t,n):(s=!t.$stable,Vs(t,i)),l=t}else t&&(Ws(e,t),l={default:1});if(s)for(const o in i)!Bs(o)&&l[o]==null&&delete i[o]};function tc(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(tn().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Pe=gc;function nc(e){return rc(e)}function rc(e,t){tc();const n=tn();n.__VUE__=!0;const{insert:r,remove:i,patchProp:s,createElement:l,createText:o,createComment:a,setText:c,setElementText:u,parentNode:h,nextSibling:d,setScopeId:g=xt,insertStaticContent:x}=e,b=(f,p,m,w=null,v=null,k=null,T=void 0,A=null,$=!!p.dynamicChildren)=>{if(f===p)return;f&&!yn(f,p)&&(w=jt(f),Ge(f,v,k,!0),f=null),p.patchFlag===-2&&($=!1,p.dynamicChildren=null);const{type:C,ref:U,shapeFlag:I}=p;switch(C){case er:S(f,p,m,w);break;case It:y(f,p,m,w);break;case li:f==null&&_(p,m,w,T);break;case fe:G(f,p,m,w,v,k,T,A,$);break;default:I&1?O(f,p,m,w,v,k,T,A,$):I&6?B(f,p,m,w,v,k,T,A,$):(I&64||I&128)&&C.process(f,p,m,w,v,k,T,A,$,R)}U!=null&&v&&Yn(U,f&&f.ref,k,p||f,!p)},S=(f,p,m,w)=>{if(f==null)r(p.el=o(p.children),m,w);else{const v=p.el=f.el;p.children!==f.children&&c(v,p.children)}},y=(f,p,m,w)=>{f==null?r(p.el=a(p.children||""),m,w):p.el=f.el},_=(f,p,m,w)=>{[f.el,f.anchor]=x(f.children,p,m,w,f.el,f.anchor)},H=({el:f,anchor:p},m,w)=>{let v;for(;f&&f!==p;)v=d(f),r(f,m,w),f=v;r(p,m,w)},E=({el:f,anchor:p})=>{let m;for(;f&&f!==p;)m=d(f),i(f),f=m;i(p)},O=(f,p,m,w,v,k,T,A,$)=>{p.type==="svg"?T="svg":p.type==="math"&&(T="mathml"),f==null?K(p,m,w,v,k,T,A,$):Me(f,p,v,k,T,A,$)},K=(f,p,m,w,v,k,T,A)=>{let $,C;const{props:U,shapeFlag:I,transition:D,dirs:N}=f;if($=f.el=l(f.type,k,U&&U.is,U),I&8?u($,f.children):I&16&&J(f.children,$,null,w,v,ii(f,k),T,A),N&&Et(f,null,w,"created"),z($,f,f.scopeId,T,w),U){for(const he in U)he!=="value"&&!en(he)&&s($,he,null,U[he],k,w);"value"in U&&s($,"value",null,U.value,k),(C=U.onVnodeBeforeMount)&&et(C,w,f)}N&&Et(f,null,w,"beforeMount");const Y=ic(v,D);Y&&D.beforeEnter($),r($,p,m),((C=U&&U.onVnodeMounted)||Y||N)&&Pe(()=>{C&&et(C,w,f),Y&&D.enter($),N&&Et(f,null,w,"mounted")},v)},z=(f,p,m,w,v)=>{if(m&&g(f,m),w)for(let k=0;k<w.length;k++)g(f,w[k]);if(v){let k=v.subTree;if(p===k||Qs(k.type)&&(k.ssContent===p||k.ssFallback===p)){const T=v.vnode;z(f,T,T.scopeId,T.slotScopeIds,v.parent)}}},J=(f,p,m,w,v,k,T,A,$=0)=>{for(let C=$;C<f.length;C++){const U=f[C]=A?bt(f[C]):Qe(f[C]);b(null,U,p,m,w,v,k,T,A)}},Me=(f,p,m,w,v,k,T)=>{const A=p.el=f.el;let{patchFlag:$,dynamicChildren:C,dirs:U}=p;$|=f.patchFlag&16;const I=f.props||le,D=p.props||le;let N;if(m&&Lt(m,!1),(N=D.onVnodeBeforeUpdate)&&et(N,m,p,f),U&&Et(p,f,m,"beforeUpdate"),m&&Lt(m,!0),(I.innerHTML&&D.innerHTML==null||I.textContent&&D.textContent==null)&&u(A,""),C?Z(f.dynamicChildren,C,A,m,w,ii(p,v),k):T||wt(f,p,A,null,m,w,ii(p,v),k,!1),$>0){if($&16)M(A,I,D,m,v);else if($&2&&I.class!==D.class&&s(A,"class",null,D.class,v),$&4&&s(A,"style",I.style,D.style,v),$&8){const Y=p.dynamicProps;for(let he=0;he<Y.length;he++){const se=Y[he],je=I[se],Se=D[se];(Se!==je||se==="value")&&s(A,se,je,Se,v,m)}}$&1&&f.children!==p.children&&u(A,p.children)}else!T&&C==null&&M(A,I,D,m,v);((N=D.onVnodeUpdated)||U)&&Pe(()=>{N&&et(N,m,p,f),U&&Et(p,f,m,"updated")},w)},Z=(f,p,m,w,v,k,T)=>{for(let A=0;A<p.length;A++){const $=f[A],C=p[A],U=$.el&&($.type===fe||!yn($,C)||$.shapeFlag&70)?h($.el):m;b($,C,U,null,w,v,k,T,!0)}},M=(f,p,m,w,v)=>{if(p!==m){if(p!==le)for(const k in p)!en(k)&&!(k in m)&&s(f,k,p[k],null,v,w);for(const k in m){if(en(k))continue;const T=m[k],A=p[k];T!==A&&k!=="value"&&s(f,k,A,T,v,w)}"value"in m&&s(f,"value",p.value,m.value,v)}},G=(f,p,m,w,v,k,T,A,$)=>{const C=p.el=f?f.el:o(""),U=p.anchor=f?f.anchor:o("");let{patchFlag:I,dynamicChildren:D,slotScopeIds:N}=p;N&&(A=A?A.concat(N):N),f==null?(r(C,m,w),r(U,m,w),J(p.children||[],m,U,v,k,T,A,$)):I>0&&I&64&&D&&f.dynamicChildren?(Z(f.dynamicChildren,D,m,v,k,T,A),(p.key!=null||v&&p===v.subTree)&&Ks(f,p,!0)):wt(f,p,m,U,v,k,T,A,$)},B=(f,p,m,w,v,k,T,A,$)=>{p.slotScopeIds=A,f==null?p.shapeFlag&512?v.ctx.activate(p,m,w,T,$):me(p,m,w,v,k,T,$):xe(f,p,$)},me=(f,p,m,w,v,k,T)=>{const A=f.component=xc(f,w,v);if(Fa(f)&&(A.ctx.renderer=R),_c(A,!1,T),A.asyncDep){if(v&&v.registerDep(A,ye,T),!f.el){const $=A.subTree=ae(It);y(null,$,p,m)}}else ye(A,f,p,m,v,k,T)},xe=(f,p,m)=>{const w=p.component=f.component;if(dc(f,p,m))if(w.asyncDep&&!w.asyncResolved){pt(w,p,m);return}else w.next=p,w.update();else p.el=f.el,w.vnode=p},ye=(f,p,m,w,v,k,T)=>{const A=()=>{if(f.isMounted){let{next:I,bu:D,u:N,parent:Y,vnode:he}=f;{const ze=Gs(f);if(ze){I&&(I.el=he.el,pt(f,I,T)),ze.asyncDep.then(()=>{f.isUnmounted||A()});return}}let se=I,je;Lt(f,!1),I?(I.el=he.el,pt(f,I,T)):I=he,D&&Hn(D),(je=I.props&&I.props.onVnodeBeforeUpdate)&&et(je,Y,I,he),Lt(f,!0);const Se=si(f),Ze=f.subTree;f.subTree=Se,b(Ze,Se,h(Ze.el),jt(Ze),f,v,k),I.el=Se.el,se===null&&pc(f,Se.el),N&&Pe(N,v),(je=I.props&&I.props.onVnodeUpdated)&&Pe(()=>et(je,Y,I,he),v)}else{let I;const{el:D,props:N}=p,{bm:Y,m:he,parent:se,root:je,type:Se}=f,Ze=pn(p);if(Lt(f,!1),Y&&Hn(Y),!Ze&&(I=N&&N.onVnodeBeforeMount)&&et(I,se,p),Lt(f,!0),D&&pe){const ze=()=>{f.subTree=si(f),pe(D,f.subTree,f,v,null)};Ze&&Se.__asyncHydrate?Se.__asyncHydrate(D,f,ze):ze()}else{je.ce&&je.ce._injectChildStyle(Se);const ze=f.subTree=si(f);b(null,ze,m,w,f,v,k),p.el=ze.el}if(he&&Pe(he,v),!Ze&&(I=N&&N.onVnodeMounted)){const ze=p;Pe(()=>et(I,se,ze),v)}(p.shapeFlag&256||se&&pn(se.vnode)&&se.vnode.shapeFlag&256)&&f.a&&Pe(f.a,v),f.isMounted=!0,p=m=w=null}};f.scope.on();const $=f.effect=new fs(A);f.scope.off();const C=f.update=$.run.bind($),U=f.job=$.runIfDirty.bind($);U.i=f,U.id=f.uid,$.scheduler=()=>Jr(U),Lt(f,!0),C()},pt=(f,p,m)=>{p.component=f;const w=f.vnode.props;f.vnode=p,f.next=null,Ja(f,p.props,w,m),ec(f,p.children,m),St(),Is(f),$t()},wt=(f,p,m,w,v,k,T,A,$=!1)=>{const C=f&&f.children,U=f?f.shapeFlag:0,I=p.children,{patchFlag:D,shapeFlag:N}=p;if(D>0){if(D&128){kr(C,I,m,w,v,k,T,A,$);return}else if(D&256){Ln(C,I,m,w,v,k,T,A,$);return}}N&8?(U&16&&Ot(C,v,k),I!==C&&u(m,I)):U&16?N&16?kr(C,I,m,w,v,k,T,A,$):Ot(C,v,k,!0):(U&8&&u(m,""),N&16&&J(I,m,w,v,k,T,A,$))},Ln=(f,p,m,w,v,k,T,A,$)=>{f=f||Ft,p=p||Ft;const C=f.length,U=p.length,I=Math.min(C,U);let D;for(D=0;D<I;D++){const N=p[D]=$?bt(p[D]):Qe(p[D]);b(f[D],N,m,null,v,k,T,A,$)}C>U?Ot(f,v,k,!0,!1,I):J(p,m,w,v,k,T,A,$,I)},kr=(f,p,m,w,v,k,T,A,$)=>{let C=0;const U=p.length;let I=f.length-1,D=U-1;for(;C<=I&&C<=D;){const N=f[C],Y=p[C]=$?bt(p[C]):Qe(p[C]);if(yn(N,Y))b(N,Y,m,null,v,k,T,A,$);else break;C++}for(;C<=I&&C<=D;){const N=f[I],Y=p[D]=$?bt(p[D]):Qe(p[D]);if(yn(N,Y))b(N,Y,m,null,v,k,T,A,$);else break;I--,D--}if(C>I){if(C<=D){const N=D+1,Y=N<U?p[N].el:w;for(;C<=D;)b(null,p[C]=$?bt(p[C]):Qe(p[C]),m,Y,v,k,T,A,$),C++}}else if(C>D)for(;C<=I;)Ge(f[C],v,k,!0),C++;else{const N=C,Y=C,he=new Map;for(C=Y;C<=D;C++){const Fe=p[C]=$?bt(p[C]):Qe(p[C]);Fe.key!=null&&he.set(Fe.key,C)}let se,je=0;const Se=D-Y+1;let Ze=!1,ze=0;const In=new Array(Se);for(C=0;C<Se;C++)In[C]=0;for(C=N;C<=I;C++){const Fe=f[C];if(je>=Se){Ge(Fe,v,k,!0);continue}let nt;if(Fe.key!=null)nt=he.get(Fe.key);else for(se=Y;se<=D;se++)if(In[se-Y]===0&&yn(Fe,p[se])){nt=se;break}nt===void 0?Ge(Fe,v,k,!0):(In[nt-Y]=C+1,nt>=ze?ze=nt:Ze=!0,b(Fe,p[nt],m,null,v,k,T,A,$),je++)}const wo=Ze?sc(In):Ft;for(se=wo.length-1,C=Se-1;C>=0;C--){const Fe=Y+C,nt=p[Fe],ko=Fe+1<U?p[Fe+1].el:w;In[C]===0?b(null,nt,m,ko,v,k,T,A,$):Ze&&(se<0||C!==wo[se]?Jt(nt,m,ko,2):se--)}}},Jt=(f,p,m,w,v=null)=>{const{el:k,type:T,transition:A,children:$,shapeFlag:C}=f;if(C&6){Jt(f.component.subTree,p,m,w);return}if(C&128){f.suspense.move(p,m,w);return}if(C&64){T.move(f,p,m,R);return}if(T===fe){r(k,p,m);for(let I=0;I<$.length;I++)Jt($[I],p,m,w);r(f.anchor,p,m);return}if(T===li){H(f,p,m);return}if(w!==2&&C&1&&A)if(w===0)A.beforeEnter(k),r(k,p,m),Pe(()=>A.enter(k),v);else{const{leave:I,delayLeave:D,afterLeave:N}=A,Y=()=>r(k,p,m),he=()=>{I(k,()=>{Y(),N&&N()})};D?D(k,Y,he):he()}else r(k,p,m)},Ge=(f,p,m,w=!1,v=!1)=>{const{type:k,props:T,ref:A,children:$,dynamicChildren:C,shapeFlag:U,patchFlag:I,dirs:D,cacheIndex:N}=f;if(I===-2&&(v=!1),A!=null&&Yn(A,null,m,f,!0),N!=null&&(p.renderCache[N]=void 0),U&256){p.ctx.deactivate(f);return}const Y=U&1&&D,he=!pn(f);let se;if(he&&(se=T&&T.onVnodeBeforeUnmount)&&et(se,p,f),U&6)_r(f.component,m,w);else{if(U&128){f.suspense.unmount(m,w);return}Y&&Et(f,null,p,"beforeUnmount"),U&64?f.type.remove(f,p,m,R,w):C&&!C.hasOnce&&(k!==fe||I>0&&I&64)?Ot(C,p,m,!1,!0):(k===fe&&I&384||!v&&U&16)&&Ot($,p,m),w&&xr(f)}(he&&(se=T&&T.onVnodeUnmounted)||Y)&&Pe(()=>{se&&et(se,p,f),Y&&Et(f,null,p,"unmounted")},m)},xr=f=>{const{type:p,el:m,anchor:w,transition:v}=f;if(p===fe){Ri(m,w);return}if(p===li){E(f);return}const k=()=>{i(m),v&&!v.persisted&&v.afterLeave&&v.afterLeave()};if(f.shapeFlag&1&&v&&!v.persisted){const{leave:T,delayLeave:A}=v,$=()=>T(m,k);A?A(f.el,k,$):$()}else k()},Ri=(f,p)=>{let m;for(;f!==p;)m=d(f),i(f),f=m;i(p)},_r=(f,p,m)=>{const{bum:w,scope:v,job:k,subTree:T,um:A,m:$,a:C}=f;Zs($),Zs(C),w&&Hn(w),v.stop(),k&&(k.flags|=8,Ge(T,f,p,m)),A&&Pe(A,p),Pe(()=>{f.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},Ot=(f,p,m,w=!1,v=!1,k=0)=>{for(let T=k;T<f.length;T++)Ge(f[T],p,m,w,v)},jt=f=>{if(f.shapeFlag&6)return jt(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const p=d(f.anchor||f.el),m=p&&p[Oa];return m?d(m):p};let Yt=!1;const j=(f,p,m)=>{f==null?p._vnode&&Ge(p._vnode,null,null,!0):b(p._vnode||null,f,p,null,null,null,m),p._vnode=f,Yt||(Yt=!0,Is(),Ms(),Yt=!1)},R={p:b,um:Ge,m:Jt,r:xr,mt:me,mc:J,pc:wt,pbc:Z,n:jt,o:e};let V,pe;return{render:j,hydrate:V,createApp:Ka(j,V)}}function ii({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Lt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ic(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ks(e,t,n=!1){const r=e.children,i=t.children;if(W(r)&&W(i))for(let s=0;s<r.length;s++){const l=r[s];let o=i[s];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=i[s]=bt(i[s]),o.el=l.el),!n&&o.patchFlag!==-2&&Ks(l,o)),o.type===er&&(o.el=l.el)}}function sc(e){const t=e.slice(),n=[0];let r,i,s,l,o;const a=e.length;for(r=0;r<a;r++){const c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(s=0,l=n.length-1;s<l;)o=s+l>>1,e[n[o]]<c?s=o+1:l=o;c<e[n[s]]&&(s>0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,l=n[s-1];s-- >0;)n[s]=l,l=t[l];return n}function Gs(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Gs(t)}function Zs(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const lc=Symbol.for("v-scx"),oc=()=>Xn(lc);function Js(e,t){return Ys(e,null,t)}function Be(e,t,n){return Ys(e,t,n)}function Ys(e,t,n=le){const{immediate:r,deep:i,flush:s,once:l}=n,o=De({},n),a=t&&r||!t&&s!=="post";let c;if(wn){if(s==="sync"){const g=oc();c=g.__watcherHandles||(g.__watcherHandles=[])}else if(!a){const g=()=>{};return g.stop=xt,g.resume=xt,g.pause=xt,g}}const u=Ae;o.call=(g,x,b)=>lt(g,u,x,b);let h=!1;s==="post"?o.scheduler=g=>{Pe(g,u&&u.suspense)}:s!=="sync"&&(h=!0,o.scheduler=(g,x)=>{x?g():Jr(g)}),o.augmentJob=g=>{t&&(g.flags|=4),h&&(g.flags|=2,u&&(g.id=u.uid,g.i=u))};const d=Ea(e,t,o);return wn&&(c?c.push(d):a&&d()),d}const ac=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${He(t)}Modifiers`]||e[`${_t(t)}Modifiers`];function cc(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||le;let i=n;const s=t.startsWith("update:"),l=s&&ac(r,t.slice(7));l&&(l.trim&&(i=n.map(u=>be(u)?u.trim():u)),l.number&&(i=n.map(Un)));let o,a=r[o=Ir(t)]||r[o=Ir(He(t))];!a&&s&&(a=r[o=Ir(_t(t))]),a&&lt(a,e,6,i);const c=r[o+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,lt(c,e,6,i)}}function uc(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const s=e.emits;let l={};return!s&&!!1?(ge(e)&&r.set(e,null),null):(W(s)?s.forEach(a=>l[a]=null):De(l,s),ge(e)&&r.set(e,l),l)}function Qn(e,t){return!e||!zn(t)?!1:(t=t.slice(2).replace(/Once$/,""),te(e,t[0].toLowerCase()+t.slice(1))||te(e,_t(t))||te(e,t))}function si(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[s],slots:l,attrs:o,emit:a,render:c,renderCache:u,props:h,data:d,setupState:g,ctx:x,inheritAttrs:b}=e,S=Zn(e);let y,_;try{if(n.shapeFlag&4){const E=i||r,O=E;y=Qe(c.call(O,E,u,h,g,d,x)),_=o}else{const E=t;y=Qe(E.length>1?E(h,{attrs:o,slots:l,emit:a}):E(h,null)),_=t.props?o:fc(o)}}catch(E){vn.length=0,Kn(E,e,1),y=ae(It)}let H=y;if(_&&b!==!1){const E=Object.keys(_),{shapeFlag:O}=H;E.length&&O&7&&(s&&E.some(Er)&&(_=hc(_,s)),H=Kt(H,_,!1,!0))}return n.dirs&&(H=Kt(H,null,!1,!0),H.dirs=H.dirs?H.dirs.concat(n.dirs):n.dirs),n.transition&&Yr(H,n.transition),y=H,Zn(S),y}const fc=e=>{let t;for(const n in e)(n==="class"||n==="style"||zn(n))&&((t||(t={}))[n]=e[n]);return t},hc=(e,t)=>{const n={};for(const r in e)(!Er(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function dc(e,t,n){const{props:r,children:i,component:s}=e,{props:l,children:o,patchFlag:a}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?Xs(r,l,c):!!l;if(a&8){const u=t.dynamicProps;for(let h=0;h<u.length;h++){const d=u[h];if(l[d]!==r[d]&&!Qn(c,d))return!0}}}else return(i||o)&&(!o||!o.$stable)?!0:r===l?!1:r?l?Xs(r,l,c):!0:!!l;return!1}function Xs(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const s=r[i];if(t[s]!==e[s]&&!Qn(n,s))return!0}return!1}function pc({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const Qs=e=>e.__isSuspense;function gc(e,t){t&&t.pendingBranch?W(e)?t.effects.push(...e):t.effects.push(e):Ma(e)}const fe=Symbol.for("v-fgt"),er=Symbol.for("v-txt"),It=Symbol.for("v-cmt"),li=Symbol.for("v-stc"),vn=[];let Oe=null;function L(e=!1){vn.push(Oe=e?null:[])}function mc(){vn.pop(),Oe=vn[vn.length-1]||null}let bn=1;function el(e,t=!1){bn+=e,e<0&&Oe&&t&&(Oe.hasOnce=!0)}function tl(e){return e.dynamicChildren=bn>0?Oe||Ft:null,mc(),bn>0&&Oe&&Oe.push(e),e}function P(e,t,n,r,i,s){return tl(F(e,t,n,r,i,s,!0))}function ot(e,t,n,r,i){return tl(ae(e,t,n,r,i,!0))}function tr(e){return e?e.__v_isVNode===!0:!1}function yn(e,t){return e.type===t.type&&e.key===t.key}const nl=({key:e})=>e??null,nr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?be(e)||we(e)||oe(e)?{i:Ie,r:e,k:t,f:!!n}:e:null);function F(e,t=null,n=null,r=0,i=null,s=e===fe?0:1,l=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&nl(t),ref:t&&nr(t),scopeId:Os,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Ie};return o?(oi(a,n),s&128&&e.normalize(a)):n&&(a.shapeFlag|=be(n)?8:16),bn>0&&!l&&Oe&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&Oe.push(a),a}const ae=vc;function vc(e,t=null,n=null,r=0,i=null,s=!1){if((!e||e===Ba)&&(e=It),tr(e)){const o=Kt(e,t,!0);return n&&oi(o,n),bn>0&&!s&&Oe&&(o.shapeFlag&6?Oe[Oe.indexOf(e)]=o:Oe.push(o)),o.patchFlag=-2,o}if(Ac(e)&&(e=e.__vccOpts),t){t=bc(t);let{class:o,style:a}=t;o&&!be(o)&&(t.class=ve(o)),ge(a)&&(Gr(a)&&!W(a)&&(a=De({},a)),t.style=nn(a))}const l=be(e)?1:Qs(e)?128:ja(e)?64:ge(e)?4:oe(e)?2:0;return F(e,t,n,r,i,l,s,!0)}function bc(e){return e?Gr(e)||Hs(e)?De({},e):e:null}function Kt(e,t,n=!1,r=!1){const{props:i,ref:s,patchFlag:l,children:o,transition:a}=e,c=t?yc(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&nl(c),ref:t&&t.ref?n&&s?W(s)?s.concat(nr(t)):[s,nr(t)]:nr(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==fe?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Kt(e.ssContent),ssFallback:e.ssFallback&&Kt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&Yr(u,a.clone(u)),u}function at(e=" ",t=0){return ae(er,null,e,t)}function Q(e="",t=!1){return t?(L(),ot(It,null,e)):ae(It,null,e)}function Qe(e){return e==null||typeof e=="boolean"?ae(It):W(e)?ae(fe,null,e.slice()):tr(e)?bt(e):ae(er,null,String(e))}function bt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Kt(e)}function oi(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(W(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),oi(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!Hs(t)?t._ctx=Ie:i===3&&Ie&&(Ie.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else oe(t)?(t={default:t,_ctx:Ie},n=32):(t=String(t),r&64?(n=16,t=[at(t)]):n=8);e.children=t,e.shapeFlag|=n}function yc(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=ve([t.class,r.class]));else if(i==="style")t.style=nn([t.style,r.style]);else if(zn(i)){const s=t[i],l=r[i];l&&s!==l&&!(W(s)&&s.includes(l))&&(t[i]=s?[].concat(s,l):l)}else i!==""&&(t[i]=r[i])}return t}function et(e,t,n,r=null){lt(e,t,7,[n,r])}const wc=zs();let kc=0;function xc(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||wc,s={uid:kc++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ra(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ya(r,i),emitsOptions:uc(r,i),emit:null,emitted:null,propsDefaults:le,inheritAttrs:r.inheritAttrs,ctx:le,data:le,props:le,attrs:le,slots:le,refs:le,setupState:le,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=cc.bind(null,s),e.ce&&e.ce(s),s}let Ae=null;const rl=()=>Ae||Ie;let rr,ai;{const e=tn(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),s=>{i.length>1?i.forEach(l=>l(s)):i[0](s)}};rr=t("__VUE_INSTANCE_SETTERS__",n=>Ae=n),ai=t("__VUE_SSR_SETTERS__",n=>wn=n)}const ci=e=>{const t=Ae;return rr(e),e.scope.on(),()=>{e.scope.off(),rr(t)}},il=()=>{Ae&&Ae.scope.off(),rr(null)};function sl(e){return e.vnode.shapeFlag&4}let wn=!1;function _c(e,t=!1,n=!1){t&&ai(t);const{props:r,children:i}=e.vnode,s=sl(e);Za(e,r,s,t),Qa(e,i,n);const l=s?Cc(e,t):void 0;return t&&ai(!1),l}function Cc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Wa);const{setup:r}=n;if(r){St();const i=e.setupContext=r.length>1?$c(e):null,s=ci(e),l=fn(r,e,0,[e.props,i]),o=ns(l);if($t(),s(),(o||e.sp)&&!pn(e)&&za(e),o){if(l.then(il,il),t)return l.then(a=>{ll(e,a,t)}).catch(a=>{Kn(a,e,0)});e.asyncDep=l}else ll(e,l,t)}else al(e,t)}function ll(e,t,n){oe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=Ts(t)),al(e,n)}let ol;function al(e,t,n){const r=e.type;if(!e.render){if(!t&&ol&&!r.render){const i=r.template||!1;if(i){const{isCustomElement:s,compilerOptions:l}=e.appContext.config,{delimiters:o,compilerOptions:a}=r,c=De(De({isCustomElement:s,delimiters:o},l),a);r.render=ol(i,c)}}e.render=r.render||xt}}const Sc={get(e,t){return _e(e,"get",""),e[t]}};function $c(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Sc),slots:e.slots,emit:e.emit,expose:t}}function ir(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ts(Ca(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in mn)return mn[n](e)},has(t,n){return n in t||n in mn}})):e.proxy}function Rc(e,t=!0){return oe(e)?e.displayName||e.name:e.name||t&&e.__name}function Ac(e){return oe(e)&&"__vccOpts"in e}const ke=(e,t)=>Aa(e,t,wn);function re(e,t,n){const r=arguments.length;return r===2?ge(t)&&!W(t)?tr(t)?ae(e,null,[t]):ae(e,t):ae(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&tr(n)&&(n=[n]),ae(e,t,n))}const Tc="3.5.13";/**
23
23
  * @vue/runtime-dom v3.5.13
24
24
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
25
25
  * @license MIT
26
- **/let ai;const rl=typeof window<"u"&&window.trustedTypes;if(rl)try{ai=rl.createPolicy("vue",{createHTML:e=>e})}catch{}const il=ai?e=>ai.createHTML(e):e=>e,Cc="http://www.w3.org/2000/svg",$c="http://www.w3.org/1998/Math/MathML",ht=typeof document<"u"?document:null,sl=ht&&ht.createElement("template"),Sc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t==="svg"?ht.createElementNS(Cc,e):t==="mathml"?ht.createElementNS($c,e):n?ht.createElement(e,{is:n}):ht.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>ht.createTextNode(e),createComment:e=>ht.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ht.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,s){const l=n?n.previousSibling:t.lastChild;if(i&&(i===s||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===s||!(i=i.nextSibling)););else{sl.innerHTML=il(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const o=sl.content;if(r==="svg"||r==="mathml"){const a=o.firstChild;for(;a.firstChild;)o.appendChild(a.firstChild);o.removeChild(a)}t.insertBefore(o,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Rc=Symbol("_vtc");function Ac(e,t,n){const r=e[Rc];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const sr=Symbol("_vod"),ll=Symbol("_vsh"),ol={beforeMount(e,{value:t},{transition:n}){e[sr]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):xn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),xn(e,!0),r.enter(e)):r.leave(e,()=>{xn(e,!1)}):xn(e,t))},beforeUnmount(e,{value:t}){xn(e,t)}};function xn(e,t){e.style.display=t?e[sr]:"none",e[ll]=!t}const Tc=Symbol(""),Ec=/(^|;)\s*display\s*:/;function Lc(e,t,n){const r=e.style,i=ye(n);let s=!1;if(n&&!i){if(t)if(ye(t))for(const l of t.split(";")){const o=l.slice(0,l.indexOf(":")).trim();n[o]==null&&lr(r,o,"")}else for(const l in t)n[l]==null&&lr(r,l,"");for(const l in n)l==="display"&&(s=!0),lr(r,l,n[l])}else if(i){if(t!==n){const l=r[Tc];l&&(n+=";"+l),r.cssText=n,s=Ec.test(n)}}else t&&e.removeAttribute("style");sr in e&&(e[sr]=s?r.display:"",e[ll]&&(r.display="none"))}const al=/\s*!important$/;function lr(e,t,n){if(V(n))n.forEach(r=>lr(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Ic(e,t);al.test(n)?e.setProperty(Ct(r),n.replace(al,""),"important"):e[r]=n}}const cl=["Webkit","Moz","ms"],ci={};function Ic(e,t){const n=ci[t];if(n)return n;let r=Ve(t);if(r!=="filter"&&r in e)return ci[t]=r;r=Dn(r);for(let i=0;i<cl.length;i++){const s=cl[i]+r;if(s in e)return ci[t]=s}return t}const ul="http://www.w3.org/1999/xlink";function fl(e,t,n,r,i,s=Ko(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(ul,t.slice(6,t.length)):e.setAttributeNS(ul,t,n):n==null||s&&!rs(n)?e.removeAttribute(t):e.setAttribute(t,s?"":et(n)?String(n):n)}function hl(e,t,n,r,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?il(n):n);return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){const o=s==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(o!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let l=!1;if(n===""||n==null){const o=typeof e[t];o==="boolean"?n=rs(n):n==null&&o==="string"?(n="",l=!0):o==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(i||t)}function dt(e,t,n,r){e.addEventListener(t,n,r)}function Mc(e,t,n,r){e.removeEventListener(t,n,r)}const dl=Symbol("_vei");function Oc(e,t,n,r,i=null){const s=e[dl]||(e[dl]={}),l=s[t];if(r&&l)l.value=r;else{const[o,a]=Pc(t);if(r){const c=s[t]=Fc(r,i);dt(e,o,c,a)}else l&&(Mc(e,o,l,a),s[t]=void 0)}}const pl=/(?:Once|Passive|Capture)$/;function Pc(e){let t;if(pl.test(e)){t={};let r;for(;r=e.match(pl);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ct(e.slice(2)),t]}let ui=0;const jc=Promise.resolve(),zc=()=>ui||(jc.then(()=>ui=0),ui=Date.now());function Fc(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;ct(Dc(r,n.value),t,5,[r])};return n.value=e,n.attached=zc(),n}function Dc(e,t){if(V(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const gl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Hc=(e,t,n,r,i,s)=>{const l=i==="svg";t==="class"?Ac(e,r,l):t==="style"?Lc(e,n,r):zn(t)?Ar(t)||Oc(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Uc(e,t,r,l))?(hl(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&fl(e,t,r,l,s,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ye(r))?hl(e,Ve(t),r,s,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),fl(e,t,r,l))};function Uc(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&gl(t)&&le(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return gl(t)&&ye(n)?!1:t in e}const wt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return V(t)?n=>Hn(t,n):t};function Nc(e){e.target.composing=!0}function ml(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ge=Symbol("_assign"),fi={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[Ge]=wt(i);const s=r||i.props&&i.props.type==="number";dt(e,t?"change":"input",l=>{if(l.target.composing)return;let o=e.value;n&&(o=o.trim()),s&&(o=Un(o)),e[Ge](o)}),n&&dt(e,"change",()=>{e.value=e.value.trim()}),t||(dt(e,"compositionstart",Nc),dt(e,"compositionend",ml),dt(e,"change",ml))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:s}},l){if(e[Ge]=wt(l),e.composing)return;const o=(s||e.type==="number")&&!/^0\d/.test(e.value)?Un(e.value):e.value,a=t??"";o!==a&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||i&&e.value.trim()===a)||(e.value=a))}},Bc={deep:!0,created(e,t,n){e[Ge]=wt(n),dt(e,"change",()=>{const r=e._modelValue,i=Jt(e),s=e.checked,l=e[Ge];if(V(r)){const o=Lr(r,i),a=o!==-1;if(s&&!a)l(r.concat(i));else if(!s&&a){const c=[...r];c.splice(o,1),l(c)}}else if(Nt(r)){const o=new Set(r);s?o.add(i):o.delete(i),l(o)}else l(yl(e,s))})},mounted:vl,beforeUpdate(e,t,n){e[Ge]=wt(n),vl(e,t,n)}};function vl(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(V(t))i=Lr(t,r.props.value)>-1;else if(Nt(t))i=t.has(r.props.value);else{if(t===n)return;i=$t(t,yl(e,!0))}e.checked!==i&&(e.checked=i)}const Vc={created(e,{value:t},n){e.checked=$t(t,n.props.value),e[Ge]=wt(n),dt(e,"change",()=>{e[Ge](Jt(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Ge]=wt(r),t!==n&&(e.checked=$t(t,r.props.value))}},Wc={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=Nt(t);dt(e,"change",()=>{const s=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?Un(Jt(l)):Jt(l));e[Ge](e.multiple?i?new Set(s):s:s[0]),e._assigning=!0,Kt(()=>{e._assigning=!1})}),e[Ge]=wt(r)},mounted(e,{value:t}){bl(e,t)},beforeUpdate(e,t,n){e[Ge]=wt(n)},updated(e,{value:t}){e._assigning||bl(e,t)}};function bl(e,t){const n=e.multiple,r=V(t);if(!(n&&!r&&!Nt(t))){for(let i=0,s=e.options.length;i<s;i++){const l=e.options[i],o=Jt(l);if(n)if(r){const a=typeof o;a==="string"||a==="number"?l.selected=t.some(c=>String(c)===String(o)):l.selected=Lr(t,o)>-1}else l.selected=t.has(o);else if($t(Jt(l),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Jt(e){return"_value"in e?e._value:e.value}function yl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const qc={created(e,t,n){or(e,t,n,null,"created")},mounted(e,t,n){or(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){or(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){or(e,t,n,r,"updated")}};function Kc(e,t){switch(e){case"SELECT":return Wc;case"TEXTAREA":return fi;default:switch(t){case"checkbox":return Bc;case"radio":return Vc;default:return fi}}}function or(e,t,n,r,i){const l=Kc(e.tagName,n.props&&n.props.type)[i];l&&l(e,t,n,r)}const Gc=Be({patchProp:Hc},Sc);let wl;function Zc(){return wl||(wl=Za(Gc))}const Jc=(...e)=>{const t=Zc().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=Qc(r);if(!i)return;const s=t._component;!le(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const l=n(i,!1,Yc(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),l},t};function Yc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Qc(e){return ye(e)?document.querySelector(e):e}function _n(e){return ls()?(Jo(e),!0):!1}function pt(e){return typeof e=="function"?e():q(e)}const ar=typeof window<"u"&&typeof document<"u",Xc=Object.prototype.toString,eu=e=>Xc.call(e)==="[object Object]",cr=()=>{};function kl(e,t){function n(...r){return new Promise((i,s)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(s)})}return n}const xl=e=>e();function tu(e,t={}){let n,r,i=cr;const s=o=>{clearTimeout(o),i(),i=cr};return o=>{const a=pt(e),c=pt(t.maxWait);return n&&s(n),a<=0||c!==void 0&&c<=0?(r&&(s(r),r=null),Promise.resolve(o())):new Promise((u,h)=>{i=t.rejectOnCancel?h:u,c&&!r&&(r=setTimeout(()=>{n&&s(n),r=null,u(o())},c)),n=setTimeout(()=>{r&&s(r),r=null,u(o())},a)})}}function nu(e=xl){const t=W(!0);function n(){t.value=!1}function r(){t.value=!0}const i=(...s)=>{t.value&&e(...s)};return{isActive:fn(t),pause:n,resume:r,eventFilter:i}}function _l(e){return mc()}function ru(e,t=200,n={}){return kl(tu(t,n),e)}function iu(e,t,n={}){const{eventFilter:r=xl,...i}=n;return Ke(e,kl(r,t),i)}function su(e,t,n={}){const{eventFilter:r,...i}=n,{eventFilter:s,pause:l,resume:o,isActive:a}=nu(r);return{stop:iu(e,t,{...i,eventFilter:s}),pause:l,resume:o,isActive:a}}function hi(e,t=!0,n){_l()?mn(e,n):t?e():Kt(e)}function lu(e,t){_l()&&Yr(e,t)}function ou(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:i=!1}=n;let s=null;const l=W(!1);function o(){s&&(clearInterval(s),s=null)}function a(){l.value=!1,o()}function c(){const u=pt(t);u<=0||(l.value=!0,i&&e(),o(),l.value&&(s=setInterval(e,u)))}if(r&&ar&&c(),xe(t)||typeof t=="function"){const u=Ke(t,()=>{l.value&&ar&&c()});_n(u)}return _n(a),{isActive:l,pause:a,resume:c}}const ur=ar?window:void 0,Cl=ar?window.document:void 0;function au(e){var t;const n=pt(e);return(t=n==null?void 0:n.$el)!=null?t:n}function fr(...e){let t,n,r,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,i]=e,t=ur):[t,n,r,i]=e,!t)return cr;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const s=[],l=()=>{s.forEach(u=>u()),s.length=0},o=(u,h,d,g)=>(u.addEventListener(h,d,g),()=>u.removeEventListener(h,d,g)),a=Ke(()=>[au(t),pt(i)],([u,h])=>{if(l(),!u)return;const d=eu(h)?{...h}:h;s.push(...n.flatMap(g=>r.map(k=>o(u,g,k,d))))},{immediate:!0,flush:"post"}),c=()=>{a(),l()};return _n(c),c}function cu(e,t={}){const{immediate:n=!0,fpsLimit:r=void 0,window:i=ur}=t,s=W(!1),l=r?1e3/r:null;let o=0,a=null;function c(d){if(!s.value||!i)return;o||(o=d);const g=d-o;if(l&&g<l){a=i.requestAnimationFrame(c);return}o=d,e({delta:g,timestamp:d}),a=i.requestAnimationFrame(c)}function u(){!s.value&&i&&(s.value=!0,o=0,a=i.requestAnimationFrame(c))}function h(){s.value=!1,a!=null&&i&&(i.cancelAnimationFrame(a),a=null)}return n&&u(),_n(h),{isActive:fn(s),pause:h,resume:u}}const hr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},dr="__vueuse_ssr_handlers__",uu=fu();function fu(){return dr in hr||(hr[dr]=hr[dr]||{}),hr[dr]}function hu(e,t){return uu[e]||t}function du(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const pu={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},$l="vueuse-storage";function Yt(e,t,n,r={}){var i;const{flush:s="pre",deep:l=!0,listenToStorageChanges:o=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:u,window:h=ur,eventFilter:d,onError:g=Z=>{console.error(Z)},initOnMounted:k}=r,v=(u?va:W)(typeof t=="function"?t():t);if(!n)try{n=hu("getDefaultStorage",()=>{var Z;return(Z=ur)==null?void 0:Z.localStorage})()}catch(Z){g(Z)}if(!n)return v;const $=pt(t),b=du($),C=(i=r.serializer)!=null?i:pu[b],{pause:U,resume:T}=su(v,()=>K(v.value),{flush:s,deep:l,eventFilter:d});h&&o&&hi(()=>{n instanceof Storage?fr(h,"storage",G):fr(h,$l,je),k&&G()}),k||G();function j(Z,ie){if(h){const be={key:e,oldValue:Z,newValue:ie,storageArea:n};h.dispatchEvent(n instanceof Storage?new StorageEvent("storage",be):new CustomEvent($l,{detail:be}))}}function K(Z){try{const ie=n.getItem(e);if(Z==null)j(ie,null),n.removeItem(e);else{const be=C.write(Z);ie!==be&&(n.setItem(e,be),j(ie,be))}}catch(ie){g(ie)}}function z(Z){const ie=Z?Z.newValue:n.getItem(e);if(ie==null)return a&&$!=null&&n.setItem(e,C.write($)),$;if(!Z&&c){const be=C.read(ie);return typeof c=="function"?c(be,$):b==="object"&&!Array.isArray(be)?{...$,...be}:be}else return typeof ie!="string"?ie:C.read(ie)}function G(Z){if(!(Z&&Z.storageArea!==n)){if(Z&&Z.key==null){v.value=$;return}if(!(Z&&Z.key!==e)){U();try{(Z==null?void 0:Z.newValue)!==C.write(v.value)&&(v.value=z(Z))}catch(ie){g(ie)}finally{Z?Kt(T):T()}}}}function je(Z){G(Z.detail)}return v}function gu(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=W(new Date),i=()=>r.value=new Date,s=n==="requestAnimationFrame"?cu(i,{immediate:!0}):ou(i,n,{immediate:!0});return t?{now:r,...s}:r}function mu(e,t=cr,n={}){const{immediate:r=!0,manual:i=!1,type:s="text/javascript",async:l=!0,crossOrigin:o,referrerPolicy:a,noModule:c,defer:u,document:h=Cl,attrs:d={}}=n,g=W(null);let k=null;const v=C=>new Promise((U,T)=>{const j=G=>(g.value=G,U(G),G);if(!h){U(!1);return}let K=!1,z=h.querySelector(`script[src="${pt(e)}"]`);z?z.hasAttribute("data-loaded")&&j(z):(z=h.createElement("script"),z.type=s,z.async=l,z.src=pt(e),u&&(z.defer=u),o&&(z.crossOrigin=o),c&&(z.noModule=c),a&&(z.referrerPolicy=a),Object.entries(d).forEach(([G,je])=>z==null?void 0:z.setAttribute(G,je)),K=!0),z.addEventListener("error",G=>T(G)),z.addEventListener("abort",G=>T(G)),z.addEventListener("load",()=>{z.setAttribute("data-loaded","true"),t(z),j(z)}),K&&(z=h.head.appendChild(z)),C||j(z)}),$=(C=!0)=>(k||(k=v(C)),k),b=()=>{if(!h)return;k=null,g.value&&(g.value=null);const C=h.querySelector(`script[src="${pt(e)}"]`);C&&h.head.removeChild(C)};return r&&!i&&hi($),i||lu(b),{scriptTag:g,load:$,unload:b}}let vu=0;function bu(e,t={}){const n=W(!1),{document:r=Cl,immediate:i=!0,manual:s=!1,id:l=`vueuse_styletag_${++vu}`}=t,o=W(e);let a=()=>{};const c=()=>{if(!r)return;const h=r.getElementById(l)||r.createElement("style");h.isConnected||(h.id=l,t.media&&(h.media=t.media),r.head.appendChild(h)),!n.value&&(a=Ke(o,d=>{h.textContent=d},{immediate:!0}),n.value=!0)},u=()=>{!r||!n.value||(a(),r.head.removeChild(r.getElementById(l)),n.value=!1)};return i&&!s&&hi(c),s||_n(u),{id:l,css:o,unload:u,load:c,isLoaded:fn(n)}}const yu=e=>!!/@[0-9]+\.[0-9]+\.[0-9]+/.test(e),wu=e=>{const t=Yt("WALINE_EMOJI",{}),n=yu(e);if(n){const r=t.value[e];if(r)return Promise.resolve(r)}return fetch(`${e}/info.json`).then(r=>r.json()).then(r=>{const i={folder:e,...r};return n&&(t.value[e]=i),i})},Sl=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,ku=e=>Promise.all(e.map(t=>Dt(t)?wu(Gi(t)):Promise.resolve(t))).then(t=>{const n={tabs:[],map:{}};return t.forEach(r=>{const{name:i,folder:s,icon:l,prefix:o="",type:a,items:c}=r;n.tabs.push({name:i,icon:Sl(l,s,o,a),items:c.map(u=>{const h=`${o}${u}`;return n.map[h]=Sl(u,s,o,a),h})})}),n}),Rl=e=>{e.name!=="AbortError"&&console.error(e.message)},di=e=>e instanceof HTMLElement?e:Dt(e)?document.querySelector(e):null,xu=e=>e.type.includes("image"),Al=e=>{const t=Array.from(e).find(xu);return t?t.getAsFile():null};function pi(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Ot=pi();function Tl(e){Ot=e}const Cn={exec:()=>null};function ae(e,t=""){let n=typeof e=="string"?e:e.source;const r={replace:(i,s)=>{let l=typeof s=="string"?s:s.source;return l=l.replace(Le.caret,"$1"),n=n.replace(i,l),r},getRegex:()=>new RegExp(n,t)};return r}const Le={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},_u=/^(?:[ \t]*(?:\n|$))+/,Cu=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,$u=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,$n=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Su=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,El=/(?:[*+-]|\d{1,9}[.)])/,Ll=ae(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,El).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),gi=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Ru=/^[^\n]+/,mi=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Au=ae(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",mi).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Tu=ae(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,El).getRegex(),pr="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",vi=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Eu=ae("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",vi).replace("tag",pr).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Il=ae(gi).replace("hr",$n).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",pr).getRegex(),bi={blockquote:ae(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Il).getRegex(),code:Cu,def:Au,fences:$u,heading:Su,hr:$n,html:Eu,lheading:Ll,list:Tu,newline:_u,paragraph:Il,table:Cn,text:Ru},Ml=ae("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",$n).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",pr).getRegex(),Lu={...bi,table:Ml,paragraph:ae(gi).replace("hr",$n).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ml).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",pr).getRegex()},Iu={...bi,html:ae(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",vi).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Cn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ae(gi).replace("hr",$n).replace("heading",` *#{1,6} *[^
27
- ]`).replace("lheading",Ll).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ol=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Mu=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Pl=/^( {2,}|\\)\n(?!\s*$)/,Ou=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Sn=new RegExp("\\p{P}\\p{S}","u"),Pu=ae(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Sn).getRegex(),ju=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,zu=ae(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Sn).getRegex(),Fu=ae("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Sn).getRegex(),Du=ae("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Sn).getRegex(),Hu=ae(/\\([punct])/,"gu").replace(/punct/g,Sn).getRegex(),Uu=ae(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[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])?)+(?![-_])/).getRegex(),Nu=ae(vi).replace("(?:-->|$)","-->").getRegex(),Bu=ae("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Nu).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),gr=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Vu=ae(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",gr).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),jl=ae(/^!?\[(label)\]\[(ref)\]/).replace("label",gr).replace("ref",mi).getRegex(),zl=ae(/^!?\[(ref)\](?:\[\])?/).replace("ref",mi).getRegex(),Wu=ae("reflink|nolink(?!\\()","g").replace("reflink",jl).replace("nolink",zl).getRegex(),yi={_backpedal:Cn,anyPunctuation:Hu,autolink:Uu,blockSkip:ju,br:Pl,code:Mu,del:Cn,emStrongLDelim:zu,emStrongRDelimAst:Fu,emStrongRDelimUnd:Du,escape:Ol,link:Vu,nolink:zl,punctuation:Pu,reflink:jl,reflinkSearch:Wu,tag:Bu,text:Ou,url:Cn},qu={...yi,link:ae(/^!?\[(label)\]\((.*?)\)/).replace("label",gr).getRegex(),reflink:ae(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",gr).getRegex()},wi={...yi,escape:ae(Ol).replace("])","~|])").getRegex(),url:ae(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Ku={...wi,br:ae(Pl).replace("{2,}","*").getRegex(),text:ae(wi.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},mr={normal:bi,gfm:Lu,pedantic:Iu},Rn={normal:yi,gfm:wi,breaks:Ku,pedantic:qu},Gu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Fl=e=>Gu[e];function it(e,t){if(t){if(Le.escapeTest.test(e))return e.replace(Le.escapeReplace,Fl)}else if(Le.escapeTestNoEncode.test(e))return e.replace(Le.escapeReplaceNoEncode,Fl);return e}function Dl(e){try{e=encodeURI(e).replace(Le.percentDecode,"%")}catch{return null}return e}function Hl(e,t){var s;const n=e.replace(Le.findPipe,(l,o,a)=>{let c=!1,u=o;for(;--u>=0&&a[u]==="\\";)c=!c;return c?"|":" |"}),r=n.split(Le.splitPipe);let i=0;if(r[0].trim()||r.shift(),r.length>0&&!((s=r.at(-1))!=null&&s.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(Le.slashPipe,"|");return r}function An(e,t,n){const r=e.length;if(r===0)return"";let i=0;for(;i<r;){const s=e.charAt(r-i-1);if(s===t&&!n)i++;else if(s!==t&&n)i++;else break}return e.slice(0,r-i)}function Zu(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return-1}function Ul(e,t,n,r,i){const s=t.href,l=t.title||null,o=e[1].replace(i.other.outputLinkReplace,"$1");if(e[0].charAt(0)!=="!"){r.state.inLink=!0;const a={type:"link",raw:n,href:s,title:l,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,a}return{type:"image",raw:n,href:s,title:l,text:o}}function Ju(e,t,n){const r=e.match(n.other.indentCodeCompensation);if(r===null)return t;const i=r[1];return t.split(`
26
+ **/let ui;const cl=typeof window<"u"&&window.trustedTypes;if(cl)try{ui=cl.createPolicy("vue",{createHTML:e=>e})}catch{}const ul=ui?e=>ui.createHTML(e):e=>e,Ec="http://www.w3.org/2000/svg",Lc="http://www.w3.org/1998/Math/MathML",ct=typeof document<"u"?document:null,fl=ct&&ct.createElement("template"),Ic={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t==="svg"?ct.createElementNS(Ec,e):t==="mathml"?ct.createElementNS(Lc,e):n?ct.createElement(e,{is:n}):ct.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>ct.createTextNode(e),createComment:e=>ct.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ct.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,s){const l=n?n.previousSibling:t.lastChild;if(i&&(i===s||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===s||!(i=i.nextSibling)););else{fl.innerHTML=ul(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const o=fl.content;if(r==="svg"||r==="mathml"){const a=o.firstChild;for(;a.firstChild;)o.appendChild(a.firstChild);o.removeChild(a)}t.insertBefore(o,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Mc=Symbol("_vtc");function Pc(e,t,n){const r=e[Mc];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const sr=Symbol("_vod"),hl=Symbol("_vsh"),dl={beforeMount(e,{value:t},{transition:n}){e[sr]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):kn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),kn(e,!0),r.enter(e)):r.leave(e,()=>{kn(e,!1)}):kn(e,t))},beforeUnmount(e,{value:t}){kn(e,t)}};function kn(e,t){e.style.display=t?e[sr]:"none",e[hl]=!t}const Oc=Symbol(""),jc=/(^|;)\s*display\s*:/;function zc(e,t,n){const r=e.style,i=be(n);let s=!1;if(n&&!i){if(t)if(be(t))for(const l of t.split(";")){const o=l.slice(0,l.indexOf(":")).trim();n[o]==null&&lr(r,o,"")}else for(const l in t)n[l]==null&&lr(r,l,"");for(const l in n)l==="display"&&(s=!0),lr(r,l,n[l])}else if(i){if(t!==n){const l=r[Oc];l&&(n+=";"+l),r.cssText=n,s=jc.test(n)}}else t&&e.removeAttribute("style");sr in e&&(e[sr]=s?r.display:"",e[hl]&&(r.display="none"))}const pl=/\s*!important$/;function lr(e,t,n){if(W(n))n.forEach(r=>lr(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Fc(e,t);pl.test(n)?e.setProperty(_t(r),n.replace(pl,""),"important"):e[r]=n}}const gl=["Webkit","Moz","ms"],fi={};function Fc(e,t){const n=fi[t];if(n)return n;let r=He(t);if(r!=="filter"&&r in e)return fi[t]=r;r=Dn(r);for(let i=0;i<gl.length;i++){const s=gl[i]+r;if(s in e)return fi[t]=s}return t}const ml="http://www.w3.org/1999/xlink";function vl(e,t,n,r,i,s=ta(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(ml,t.slice(6,t.length)):e.setAttributeNS(ml,t,n):n==null||s&&!os(n)?e.removeAttribute(t):e.setAttribute(t,s?"":Ye(n)?String(n):n)}function bl(e,t,n,r,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?ul(n):n);return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){const o=s==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(o!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let l=!1;if(n===""||n==null){const o=typeof e[t];o==="boolean"?n=os(n):n==null&&o==="string"?(n="",l=!0):o==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(i||t)}function ut(e,t,n,r){e.addEventListener(t,n,r)}function Dc(e,t,n,r){e.removeEventListener(t,n,r)}const yl=Symbol("_vei");function Hc(e,t,n,r,i=null){const s=e[yl]||(e[yl]={}),l=s[t];if(r&&l)l.value=r;else{const[o,a]=Uc(t);if(r){const c=s[t]=Vc(r,i);ut(e,o,c,a)}else l&&(Dc(e,o,l,a),s[t]=void 0)}}const wl=/(?:Once|Passive|Capture)$/;function Uc(e){let t;if(wl.test(e)){t={};let r;for(;r=e.match(wl);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):_t(e.slice(2)),t]}let hi=0;const Nc=Promise.resolve(),Bc=()=>hi||(Nc.then(()=>hi=0),hi=Date.now());function Vc(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;lt(Wc(r,n.value),t,5,[r])};return n.value=e,n.attached=Bc(),n}function Wc(e,t){if(W(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const kl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,qc=(e,t,n,r,i,s)=>{const l=i==="svg";t==="class"?Pc(e,r,l):t==="style"?zc(e,n,r):zn(t)?Er(t)||Hc(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Kc(e,t,r,l))?(bl(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&vl(e,t,r,l,s,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!be(r))?bl(e,He(t),r,s,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),vl(e,t,r,l))};function Kc(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&kl(t)&&oe(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return kl(t)&&be(n)?!1:t in e}const yt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return W(t)?n=>Hn(t,n):t};function Gc(e){e.target.composing=!0}function xl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ve=Symbol("_assign"),di={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[Ve]=yt(i);const s=r||i.props&&i.props.type==="number";ut(e,t?"change":"input",l=>{if(l.target.composing)return;let o=e.value;n&&(o=o.trim()),s&&(o=Un(o)),e[Ve](o)}),n&&ut(e,"change",()=>{e.value=e.value.trim()}),t||(ut(e,"compositionstart",Gc),ut(e,"compositionend",xl),ut(e,"change",xl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:s}},l){if(e[Ve]=yt(l),e.composing)return;const o=(s||e.type==="number")&&!/^0\d/.test(e.value)?Un(e.value):e.value,a=t??"";o!==a&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||i&&e.value.trim()===a)||(e.value=a))}},Zc={deep:!0,created(e,t,n){e[Ve]=yt(n),ut(e,"change",()=>{const r=e._modelValue,i=Gt(e),s=e.checked,l=e[Ve];if(W(r)){const o=Mr(r,i),a=o!==-1;if(s&&!a)l(r.concat(i));else if(!s&&a){const c=[...r];c.splice(o,1),l(c)}}else if(Ht(r)){const o=new Set(r);s?o.add(i):o.delete(i),l(o)}else l(Sl(e,s))})},mounted:_l,beforeUpdate(e,t,n){e[Ve]=yt(n),_l(e,t,n)}};function _l(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(W(t))i=Mr(t,r.props.value)>-1;else if(Ht(t))i=t.has(r.props.value);else{if(t===n)return;i=Ct(t,Sl(e,!0))}e.checked!==i&&(e.checked=i)}const Jc={created(e,{value:t},n){e.checked=Ct(t,n.props.value),e[Ve]=yt(n),ut(e,"change",()=>{e[Ve](Gt(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Ve]=yt(r),t!==n&&(e.checked=Ct(t,r.props.value))}},Yc={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=Ht(t);ut(e,"change",()=>{const s=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?Un(Gt(l)):Gt(l));e[Ve](e.multiple?i?new Set(s):s:s[0]),e._assigning=!0,Wt(()=>{e._assigning=!1})}),e[Ve]=yt(r)},mounted(e,{value:t}){Cl(e,t)},beforeUpdate(e,t,n){e[Ve]=yt(n)},updated(e,{value:t}){e._assigning||Cl(e,t)}};function Cl(e,t){const n=e.multiple,r=W(t);if(!(n&&!r&&!Ht(t))){for(let i=0,s=e.options.length;i<s;i++){const l=e.options[i],o=Gt(l);if(n)if(r){const a=typeof o;a==="string"||a==="number"?l.selected=t.some(c=>String(c)===String(o)):l.selected=Mr(t,o)>-1}else l.selected=t.has(o);else if(Ct(Gt(l),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Gt(e){return"_value"in e?e._value:e.value}function Sl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Xc={created(e,t,n){or(e,t,n,null,"created")},mounted(e,t,n){or(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){or(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){or(e,t,n,r,"updated")}};function Qc(e,t){switch(e){case"SELECT":return Yc;case"TEXTAREA":return di;default:switch(t){case"checkbox":return Zc;case"radio":return Jc;default:return di}}}function or(e,t,n,r,i){const l=Qc(e.tagName,n.props&&n.props.type)[i];l&&l(e,t,n,r)}const eu=De({patchProp:qc},Ic);let $l;function tu(){return $l||($l=nc(eu))}const nu=(...e)=>{const t=tu().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=iu(r);if(!i)return;const s=t._component;!oe(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const l=n(i,!1,ru(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),l},t};function ru(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function iu(e){return be(e)?document.querySelector(e):e}function xn(e){return us()?(ia(e),!0):!1}function ft(e){return typeof e=="function"?e():q(e)}const ar=typeof window<"u"&&typeof document<"u",su=Object.prototype.toString,lu=e=>su.call(e)==="[object Object]",cr=()=>{};function Rl(e,t){function n(...r){return new Promise((i,s)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(s)})}return n}const Al=e=>e();function ou(e,t={}){let n,r,i=cr;const s=o=>{clearTimeout(o),i(),i=cr};return o=>{const a=ft(e),c=ft(t.maxWait);return n&&s(n),a<=0||c!==void 0&&c<=0?(r&&(s(r),r=null),Promise.resolve(o())):new Promise((u,h)=>{i=t.rejectOnCancel?h:u,c&&!r&&(r=setTimeout(()=>{n&&s(n),r=null,u(o())},c)),n=setTimeout(()=>{r&&s(r),r=null,u(o())},a)})}}function au(e=Al){const t=X(!0);function n(){t.value=!1}function r(){t.value=!0}const i=(...s)=>{t.value&&e(...s)};return{isActive:un(t),pause:n,resume:r,eventFilter:i}}function Tl(e){return rl()}function cu(e,t=200,n={}){return Rl(ou(t,n),e)}function uu(e,t,n={}){const{eventFilter:r=Al,...i}=n;return Be(e,Rl(r,t),i)}function fu(e,t,n={}){const{eventFilter:r,...i}=n,{eventFilter:s,pause:l,resume:o,isActive:a}=au(r);return{stop:uu(e,t,{...i,eventFilter:s}),pause:l,resume:o,isActive:a}}function pi(e,t=!0,n){Tl()?gn(e,n):t?e():Wt(e)}function hu(e,t){Tl()&&Qr(e,t)}function du(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:i=!1}=n;let s=null;const l=X(!1);function o(){s&&(clearInterval(s),s=null)}function a(){l.value=!1,o()}function c(){const u=ft(t);u<=0||(l.value=!0,i&&e(),o(),l.value&&(s=setInterval(e,u)))}if(r&&ar&&c(),we(t)||typeof t=="function"){const u=Be(t,()=>{l.value&&ar&&c()});xn(u)}return xn(a),{isActive:l,pause:a,resume:c}}const ur=ar?window:void 0,El=ar?window.document:void 0;function pu(e){var t;const n=ft(e);return(t=n==null?void 0:n.$el)!=null?t:n}function fr(...e){let t,n,r,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,i]=e,t=ur):[t,n,r,i]=e,!t)return cr;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const s=[],l=()=>{s.forEach(u=>u()),s.length=0},o=(u,h,d,g)=>(u.addEventListener(h,d,g),()=>u.removeEventListener(h,d,g)),a=Be(()=>[pu(t),ft(i)],([u,h])=>{if(l(),!u)return;const d=lu(h)?{...h}:h;s.push(...n.flatMap(g=>r.map(x=>o(u,g,x,d))))},{immediate:!0,flush:"post"}),c=()=>{a(),l()};return xn(c),c}function gu(e,t={}){const{immediate:n=!0,fpsLimit:r=void 0,window:i=ur}=t,s=X(!1),l=r?1e3/r:null;let o=0,a=null;function c(d){if(!s.value||!i)return;o||(o=d);const g=d-o;if(l&&g<l){a=i.requestAnimationFrame(c);return}o=d,e({delta:g,timestamp:d}),a=i.requestAnimationFrame(c)}function u(){!s.value&&i&&(s.value=!0,o=0,a=i.requestAnimationFrame(c))}function h(){s.value=!1,a!=null&&i&&(i.cancelAnimationFrame(a),a=null)}return n&&u(),xn(h),{isActive:un(s),pause:h,resume:u}}const hr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},dr="__vueuse_ssr_handlers__",mu=vu();function vu(){return dr in hr||(hr[dr]=hr[dr]||{}),hr[dr]}function bu(e,t){return mu[e]||t}function yu(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const wu={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Ll="vueuse-storage";function Zt(e,t,n,r={}){var i;const{flush:s="pre",deep:l=!0,listenToStorageChanges:o=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:u,window:h=ur,eventFilter:d,onError:g=Z=>{console.error(Z)},initOnMounted:x}=r,b=(u?Rs:X)(typeof t=="function"?t():t);if(!n)try{n=bu("getDefaultStorage",()=>{var Z;return(Z=ur)==null?void 0:Z.localStorage})()}catch(Z){g(Z)}if(!n)return b;const S=ft(t),y=yu(S),_=(i=r.serializer)!=null?i:wu[y],{pause:H,resume:E}=fu(b,()=>K(b.value),{flush:s,deep:l,eventFilter:d});h&&o&&pi(()=>{n instanceof Storage?fr(h,"storage",J):fr(h,Ll,Me),x&&J()}),x||J();function O(Z,M){if(h){const G={key:e,oldValue:Z,newValue:M,storageArea:n};h.dispatchEvent(n instanceof Storage?new StorageEvent("storage",G):new CustomEvent(Ll,{detail:G}))}}function K(Z){try{const M=n.getItem(e);if(Z==null)O(M,null),n.removeItem(e);else{const G=_.write(Z);M!==G&&(n.setItem(e,G),O(M,G))}}catch(M){g(M)}}function z(Z){const M=Z?Z.newValue:n.getItem(e);if(M==null)return a&&S!=null&&n.setItem(e,_.write(S)),S;if(!Z&&c){const G=_.read(M);return typeof c=="function"?c(G,S):y==="object"&&!Array.isArray(G)?{...S,...G}:G}else return typeof M!="string"?M:_.read(M)}function J(Z){if(!(Z&&Z.storageArea!==n)){if(Z&&Z.key==null){b.value=S;return}if(!(Z&&Z.key!==e)){H();try{(Z==null?void 0:Z.newValue)!==_.write(b.value)&&(b.value=z(Z))}catch(M){g(M)}finally{Z?Wt(E):E()}}}}function Me(Z){J(Z.detail)}return b}function ku(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=X(new Date),i=()=>r.value=new Date,s=n==="requestAnimationFrame"?gu(i,{immediate:!0}):du(i,n,{immediate:!0});return t?{now:r,...s}:r}function xu(e,t=cr,n={}){const{immediate:r=!0,manual:i=!1,type:s="text/javascript",async:l=!0,crossOrigin:o,referrerPolicy:a,noModule:c,defer:u,document:h=El,attrs:d={}}=n,g=X(null);let x=null;const b=_=>new Promise((H,E)=>{const O=J=>(g.value=J,H(J),J);if(!h){H(!1);return}let K=!1,z=h.querySelector(`script[src="${ft(e)}"]`);z?z.hasAttribute("data-loaded")&&O(z):(z=h.createElement("script"),z.type=s,z.async=l,z.src=ft(e),u&&(z.defer=u),o&&(z.crossOrigin=o),c&&(z.noModule=c),a&&(z.referrerPolicy=a),Object.entries(d).forEach(([J,Me])=>z==null?void 0:z.setAttribute(J,Me)),K=!0),z.addEventListener("error",J=>E(J)),z.addEventListener("abort",J=>E(J)),z.addEventListener("load",()=>{z.setAttribute("data-loaded","true"),t(z),O(z)}),K&&(z=h.head.appendChild(z)),_||O(z)}),S=(_=!0)=>(x||(x=b(_)),x),y=()=>{if(!h)return;x=null,g.value&&(g.value=null);const _=h.querySelector(`script[src="${ft(e)}"]`);_&&h.head.removeChild(_)};return r&&!i&&pi(S),i||hu(y),{scriptTag:g,load:S,unload:y}}let _u=0;function Cu(e,t={}){const n=X(!1),{document:r=El,immediate:i=!0,manual:s=!1,id:l=`vueuse_styletag_${++_u}`}=t,o=X(e);let a=()=>{};const c=()=>{if(!r)return;const h=r.getElementById(l)||r.createElement("style");h.isConnected||(h.id=l,t.media&&(h.media=t.media),r.head.appendChild(h)),!n.value&&(a=Be(o,d=>{h.textContent=d},{immediate:!0}),n.value=!0)},u=()=>{!r||!n.value||(a(),r.head.removeChild(r.getElementById(l)),n.value=!1)};return i&&!s&&pi(c),s||xn(u),{id:l,css:o,unload:u,load:c,isLoaded:un(n)}}const Su=e=>!!/@[0-9]+\.[0-9]+\.[0-9]+/.test(e),$u=e=>{const t=Zt("WALINE_EMOJI",{}),n=Su(e);if(n){const r=t.value[e];if(r)return Promise.resolve(r)}return fetch(`${e}/info.json`).then(r=>r.json()).then(r=>{const i={folder:e,...r};return n&&(t.value[e]=i),i})},Il=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,Ru=e=>Promise.all(e.map(t=>zt(t)?$u(Xi(t)):Promise.resolve(t))).then(t=>{const n={tabs:[],map:{}};return t.forEach(r=>{const{name:i,folder:s,icon:l,prefix:o="",type:a,items:c}=r;n.tabs.push({name:i,icon:Il(l,s,o,a),items:c.map(u=>{const h=`${o}${u}`;return n.map[h]=Il(u,s,o,a),h})})}),n}),Ml=e=>{e.name!=="AbortError"&&console.error(e.message)},gi=e=>e instanceof HTMLElement?e:zt(e)?document.querySelector(e):null,Au=e=>e.type.includes("image"),Pl=e=>{const t=Array.from(e).find(Au);return t?t.getAsFile():null};function mi(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Mt=mi();function Ol(e){Mt=e}const _n={exec:()=>null};function ce(e,t=""){let n=typeof e=="string"?e:e.source;const r={replace:(i,s)=>{let l=typeof s=="string"?s:s.source;return l=l.replace(Te.caret,"$1"),n=n.replace(i,l),r},getRegex:()=>new RegExp(n,t)};return r}const Te={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},Tu=/^(?:[ \t]*(?:\n|$))+/,Eu=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Lu=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Cn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Iu=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,jl=/(?:[*+-]|\d{1,9}[.)])/,zl=ce(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,jl).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),vi=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Mu=/^[^\n]+/,bi=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Pu=ce(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",bi).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ou=ce(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,jl).getRegex(),pr="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",yi=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ju=ce("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",yi).replace("tag",pr).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Fl=ce(vi).replace("hr",Cn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",pr).getRegex(),wi={blockquote:ce(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Fl).getRegex(),code:Eu,def:Pu,fences:Lu,heading:Iu,hr:Cn,html:ju,lheading:zl,list:Ou,newline:Tu,paragraph:Fl,table:_n,text:Mu},Dl=ce("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Cn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",pr).getRegex(),zu={...wi,table:Dl,paragraph:ce(vi).replace("hr",Cn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Dl).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",pr).getRegex()},Fu={...wi,html:ce(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",yi).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:_n,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ce(vi).replace("hr",Cn).replace("heading",` *#{1,6} *[^
27
+ ]`).replace("lheading",zl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Hl=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Du=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ul=/^( {2,}|\\)\n(?!\s*$)/,Hu=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,gr=/[\p{P}\p{S}]/u,ki=/[\s\p{P}\p{S}]/u,Nl=/[^\s\p{P}\p{S}]/u,Uu=ce(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ki).getRegex(),Nu=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,Bu=ce(/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,"u").replace(/punct/g,gr).getRegex(),Vu=ce("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,Nl).replace(/punctSpace/g,ki).replace(/punct/g,gr).getRegex(),Wu=ce("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Nl).replace(/punctSpace/g,ki).replace(/punct/g,gr).getRegex(),qu=ce(/\\(punct)/,"gu").replace(/punct/g,gr).getRegex(),Ku=ce(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[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])?)+(?![-_])/).getRegex(),Gu=ce(yi).replace("(?:-->|$)","-->").getRegex(),Zu=ce("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Gu).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),mr=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ju=ce(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",mr).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Bl=ce(/^!?\[(label)\]\[(ref)\]/).replace("label",mr).replace("ref",bi).getRegex(),Vl=ce(/^!?\[(ref)\](?:\[\])?/).replace("ref",bi).getRegex(),Yu=ce("reflink|nolink(?!\\()","g").replace("reflink",Bl).replace("nolink",Vl).getRegex(),xi={_backpedal:_n,anyPunctuation:qu,autolink:Ku,blockSkip:Nu,br:Ul,code:Du,del:_n,emStrongLDelim:Bu,emStrongRDelimAst:Vu,emStrongRDelimUnd:Wu,escape:Hl,link:Ju,nolink:Vl,punctuation:Uu,reflink:Bl,reflinkSearch:Yu,tag:Zu,text:Hu,url:_n},Xu={...xi,link:ce(/^!?\[(label)\]\((.*?)\)/).replace("label",mr).getRegex(),reflink:ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",mr).getRegex()},_i={...xi,escape:ce(Hl).replace("])","~|])").getRegex(),url:ce(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Qu={..._i,br:ce(Ul).replace("{2,}","*").getRegex(),text:ce(_i.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},vr={normal:wi,gfm:zu,pedantic:Fu},Sn={normal:xi,gfm:_i,breaks:Qu,pedantic:Xu},ef={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Wl=e=>ef[e];function tt(e,t){if(t){if(Te.escapeTest.test(e))return e.replace(Te.escapeReplace,Wl)}else if(Te.escapeTestNoEncode.test(e))return e.replace(Te.escapeReplaceNoEncode,Wl);return e}function ql(e){try{e=encodeURI(e).replace(Te.percentDecode,"%")}catch{return null}return e}function Kl(e,t){var s;const n=e.replace(Te.findPipe,(l,o,a)=>{let c=!1,u=o;for(;--u>=0&&a[u]==="\\";)c=!c;return c?"|":" |"}),r=n.split(Te.splitPipe);let i=0;if(r[0].trim()||r.shift(),r.length>0&&!((s=r.at(-1))!=null&&s.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(Te.slashPipe,"|");return r}function $n(e,t,n){const r=e.length;if(r===0)return"";let i=0;for(;i<r;){const s=e.charAt(r-i-1);if(s===t&&!n)i++;else if(s!==t&&n)i++;else break}return e.slice(0,r-i)}function tf(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return-1}function Gl(e,t,n,r,i){const s=t.href,l=t.title||null,o=e[1].replace(i.other.outputLinkReplace,"$1");if(e[0].charAt(0)!=="!"){r.state.inLink=!0;const a={type:"link",raw:n,href:s,title:l,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,a}return{type:"image",raw:n,href:s,title:l,text:o}}function nf(e,t,n){const r=e.match(n.other.indentCodeCompensation);if(r===null)return t;const i=r[1];return t.split(`
28
28
  `).map(s=>{const l=s.match(n.other.beginningSpace);if(l===null)return s;const[o]=l;return o.length>=i.length?s.slice(i.length):s}).join(`
29
- `)}class vr{options;rules;lexer;constructor(t){this.options=t||Ot}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const r=n[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:An(r,`
30
- `)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const r=n[0],i=Ju(r,n[3]||"",this.rules);return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:i}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let r=n[2].trim();if(this.rules.other.endingHash.test(r)){const i=An(r,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(r=i.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:An(n[0],`
31
- `)}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){let r=An(n[0],`
29
+ `)}class br{options;rules;lexer;constructor(t){this.options=t||Mt}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const r=n[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:$n(r,`
30
+ `)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const r=n[0],i=nf(r,n[3]||"",this.rules);return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:i}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let r=n[2].trim();if(this.rules.other.endingHash.test(r)){const i=$n(r,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(r=i.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:$n(n[0],`
31
+ `)}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){let r=$n(n[0],`
32
32
  `).split(`
33
33
  `),i="",s="";const l=[];for(;r.length>0;){let o=!1;const a=[];let c;for(c=0;c<r.length;c++)if(this.rules.other.blockquoteStart.test(r[c]))a.push(r[c]),o=!0;else if(!o)a.push(r[c]);else break;r=r.slice(c);const u=a.join(`
34
34
  `),h=u.replace(this.rules.other.blockquoteSetextReplace,`
35
35
  $1`).replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}
36
36
  ${u}`:u,s=s?`${s}
37
- ${h}`:h;const d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(h,l,!0),this.lexer.state.top=d,r.length===0)break;const g=l.at(-1);if((g==null?void 0:g.type)==="code")break;if((g==null?void 0:g.type)==="blockquote"){const k=g,v=k.raw+`
37
+ ${h}`:h;const d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(h,l,!0),this.lexer.state.top=d,r.length===0)break;const g=l.at(-1);if((g==null?void 0:g.type)==="code")break;if((g==null?void 0:g.type)==="blockquote"){const x=g,b=x.raw+`
38
38
  `+r.join(`
39
- `),$=this.blockquote(v);l[l.length-1]=$,i=i.substring(0,i.length-k.raw.length)+$.raw,s=s.substring(0,s.length-k.text.length)+$.text;break}else if((g==null?void 0:g.type)==="list"){const k=g,v=k.raw+`
39
+ `),S=this.blockquote(b);l[l.length-1]=S,i=i.substring(0,i.length-x.raw.length)+S.raw,s=s.substring(0,s.length-x.text.length)+S.text;break}else if((g==null?void 0:g.type)==="list"){const x=g,b=x.raw+`
40
40
  `+r.join(`
41
- `),$=this.list(v);l[l.length-1]=$,i=i.substring(0,i.length-g.raw.length)+$.raw,s=s.substring(0,s.length-k.raw.length)+$.raw,r=v.substring(l.at(-1).raw.length).split(`
41
+ `),S=this.list(b);l[l.length-1]=S,i=i.substring(0,i.length-g.raw.length)+S.raw,s=s.substring(0,s.length-x.raw.length)+S.raw,r=b.substring(l.at(-1).raw.length).split(`
42
42
  `);continue}}return{type:"blockquote",raw:i,tokens:l,text:s}}}list(t){let n=this.rules.block.list.exec(t);if(n){let r=n[1].trim();const i=r.length>1,s={type:"list",raw:"",ordered:i,start:i?+r.slice(0,-1):"",loose:!1,items:[]};r=i?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=i?r:"[*+-]");const l=this.rules.other.listItemRegex(r);let o=!1;for(;t;){let c=!1,u="",h="";if(!(n=l.exec(t))||this.rules.block.hr.test(t))break;u=n[0],t=t.substring(u.length);let d=n[2].split(`
43
- `,1)[0].replace(this.rules.other.listReplaceTabs,C=>" ".repeat(3*C.length)),g=t.split(`
44
- `,1)[0],k=!d.trim(),v=0;if(this.options.pedantic?(v=2,h=d.trimStart()):k?v=n[1].length+1:(v=n[2].search(this.rules.other.nonSpaceChar),v=v>4?1:v,h=d.slice(v),v+=n[1].length),k&&this.rules.other.blankLine.test(g)&&(u+=g+`
45
- `,t=t.substring(g.length+1),c=!0),!c){const C=this.rules.other.nextBulletRegex(v),U=this.rules.other.hrRegex(v),T=this.rules.other.fencesBeginRegex(v),j=this.rules.other.headingBeginRegex(v),K=this.rules.other.htmlBeginRegex(v);for(;t;){const z=t.split(`
46
- `,1)[0];let G;if(g=z,this.options.pedantic?(g=g.replace(this.rules.other.listReplaceNesting," "),G=g):G=g.replace(this.rules.other.tabCharGlobal," "),T.test(g)||j.test(g)||K.test(g)||C.test(g)||U.test(g))break;if(G.search(this.rules.other.nonSpaceChar)>=v||!g.trim())h+=`
47
- `+G.slice(v);else{if(k||d.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||T.test(d)||j.test(d)||U.test(d))break;h+=`
48
- `+g}!k&&!g.trim()&&(k=!0),u+=z+`
49
- `,t=t.substring(z.length+1),d=G.slice(v)}}s.loose||(o?s.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(o=!0));let $=null,b;this.options.gfm&&($=this.rules.other.listIsTask.exec(h),$&&(b=$[0]!=="[ ] ",h=h.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:u,task:!!$,checked:b,loose:!1,text:h,tokens:[]}),s.raw+=u}const a=s.items.at(-1);a&&(a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd()),s.raw=s.raw.trimEnd();for(let c=0;c<s.items.length;c++)if(this.lexer.state.top=!1,s.items[c].tokens=this.lexer.blockTokens(s.items[c].text,[]),!s.loose){const u=s.items[c].tokens.filter(d=>d.type==="space"),h=u.length>0&&u.some(d=>this.rules.other.anyLine.test(d.raw));s.loose=h}if(s.loose)for(let c=0;c<s.items.length;c++)s.items[c].loose=!0;return s}}html(t){const n=this.rules.block.html.exec(t);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(t){const n=this.rules.block.def.exec(t);if(n){const r=n[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=n[2]?n[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:i,title:s}}}table(t){var o;const n=this.rules.block.table.exec(t);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;const r=Hl(n[1]),i=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=(o=n[3])!=null&&o.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(`
50
- `):[],l={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===i.length){for(const a of i)this.rules.other.tableAlignRight.test(a)?l.align.push("right"):this.rules.other.tableAlignCenter.test(a)?l.align.push("center"):this.rules.other.tableAlignLeft.test(a)?l.align.push("left"):l.align.push(null);for(let a=0;a<r.length;a++)l.header.push({text:r[a],tokens:this.lexer.inline(r[a]),header:!0,align:l.align[a]});for(const a of s)l.rows.push(Hl(a,l.header.length).map((c,u)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:l.align[u]})));return l}}lheading(t){const n=this.rules.block.lheading.exec(t);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(t){const n=this.rules.block.paragraph.exec(t);if(n){const r=n[1].charAt(n[1].length-1)===`
51
- `?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const r=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;const l=An(r.slice(0,-1),"\\");if((r.length-l.length)%2===0)return}else{const l=Zu(n[2],"()");if(l>-1){const a=(n[0].indexOf("!")===0?5:4)+n[1].length+l;n[2]=n[2].substring(0,l),n[0]=n[0].substring(0,a).trim(),n[3]=""}}let i=n[2],s="";if(this.options.pedantic){const l=this.rules.other.pedanticHrefTitle.exec(i);l&&(i=l[1],s=l[3])}else s=n[3]?n[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?i=i.slice(1):i=i.slice(1,-1)),Ul(n,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer,this.rules)}}reflink(t,n){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){const i=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=n[i.toLowerCase()];if(!s){const l=r[0].charAt(0);return{type:"text",raw:l,text:l}}return Ul(r,s,r[0],this.lexer,this.rules)}}emStrong(t,n,r=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!i||i[3]&&r.match(this.rules.other.unicodeAlphaNumeric))return;if(!(i[1]||i[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const l=[...i[0]].length-1;let o,a,c=l,u=0;const h=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,n=n.slice(-1*t.length+l);(i=h.exec(n))!=null;){if(o=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!o)continue;if(a=[...o].length,i[3]||i[4]){c+=a;continue}else if((i[5]||i[6])&&l%3&&!((l+a)%3)){u+=a;continue}if(c-=a,c>0)continue;a=Math.min(a,a+c+u);const d=[...i[0]][0].length,g=t.slice(0,l+i.index+d+a);if(Math.min(l,a)%2){const v=g.slice(1,-1);return{type:"em",raw:g,text:v,tokens:this.lexer.inlineTokens(v)}}const k=g.slice(2,-2);return{type:"strong",raw:g,text:k,tokens:this.lexer.inlineTokens(k)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let r=n[2].replace(this.rules.other.newLineCharGlobal," ");const i=this.rules.other.nonSpaceChar.test(r),s=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return i&&s&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:n[0],text:r}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){const n=this.rules.inline.autolink.exec(t);if(n){let r,i;return n[2]==="@"?(r=n[1],i="mailto:"+r):(r=n[1],i=r),{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}url(t){var r;let n;if(n=this.rules.inline.url.exec(t)){let i,s;if(n[2]==="@")i=n[0],s="mailto:"+i;else{let l;do l=n[0],n[0]=((r=this.rules.inline._backpedal.exec(n[0]))==null?void 0:r[0])??"";while(l!==n[0]);i=n[0],n[1]==="www."?s="http://"+n[0]:s=n[0]}return{type:"link",raw:n[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(t){const n=this.rules.inline.text.exec(t);if(n){const r=this.lexer.state.inRawBlock;return{type:"text",raw:n[0],text:n[0],escaped:r}}}}class Je{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Ot,this.options.tokenizer=this.options.tokenizer||new vr,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={other:Le,block:mr.normal,inline:Rn.normal};this.options.pedantic?(n.block=mr.pedantic,n.inline=Rn.pedantic):this.options.gfm&&(n.block=mr.gfm,this.options.breaks?n.inline=Rn.breaks:n.inline=Rn.gfm),this.tokenizer.rules=n}static get rules(){return{block:mr,inline:Rn}}static lex(t,n){return new Je(n).lex(t)}static lexInline(t,n){return new Je(n).inlineTokens(t)}lex(t){t=t.replace(Le.carriageReturn,`
52
- `),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){const r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){var i,s,l;for(this.options.pedantic&&(t=t.replace(Le.tabCharGlobal," ").replace(Le.spaceLine,""));t;){let o;if((s=(i=this.options.extensions)==null?void 0:i.block)!=null&&s.some(c=>(o=c.call({lexer:this},t,n))?(t=t.substring(o.raw.length),n.push(o),!0):!1))continue;if(o=this.tokenizer.space(t)){t=t.substring(o.raw.length);const c=n.at(-1);o.raw.length===1&&c!==void 0?c.raw+=`
43
+ `,1)[0].replace(this.rules.other.listReplaceTabs,_=>" ".repeat(3*_.length)),g=t.split(`
44
+ `,1)[0],x=!d.trim(),b=0;if(this.options.pedantic?(b=2,h=d.trimStart()):x?b=n[1].length+1:(b=n[2].search(this.rules.other.nonSpaceChar),b=b>4?1:b,h=d.slice(b),b+=n[1].length),x&&this.rules.other.blankLine.test(g)&&(u+=g+`
45
+ `,t=t.substring(g.length+1),c=!0),!c){const _=this.rules.other.nextBulletRegex(b),H=this.rules.other.hrRegex(b),E=this.rules.other.fencesBeginRegex(b),O=this.rules.other.headingBeginRegex(b),K=this.rules.other.htmlBeginRegex(b);for(;t;){const z=t.split(`
46
+ `,1)[0];let J;if(g=z,this.options.pedantic?(g=g.replace(this.rules.other.listReplaceNesting," "),J=g):J=g.replace(this.rules.other.tabCharGlobal," "),E.test(g)||O.test(g)||K.test(g)||_.test(g)||H.test(g))break;if(J.search(this.rules.other.nonSpaceChar)>=b||!g.trim())h+=`
47
+ `+J.slice(b);else{if(x||d.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||E.test(d)||O.test(d)||H.test(d))break;h+=`
48
+ `+g}!x&&!g.trim()&&(x=!0),u+=z+`
49
+ `,t=t.substring(z.length+1),d=J.slice(b)}}s.loose||(o?s.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(o=!0));let S=null,y;this.options.gfm&&(S=this.rules.other.listIsTask.exec(h),S&&(y=S[0]!=="[ ] ",h=h.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:u,task:!!S,checked:y,loose:!1,text:h,tokens:[]}),s.raw+=u}const a=s.items.at(-1);if(a)a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let c=0;c<s.items.length;c++)if(this.lexer.state.top=!1,s.items[c].tokens=this.lexer.blockTokens(s.items[c].text,[]),!s.loose){const u=s.items[c].tokens.filter(d=>d.type==="space"),h=u.length>0&&u.some(d=>this.rules.other.anyLine.test(d.raw));s.loose=h}if(s.loose)for(let c=0;c<s.items.length;c++)s.items[c].loose=!0;return s}}html(t){const n=this.rules.block.html.exec(t);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(t){const n=this.rules.block.def.exec(t);if(n){const r=n[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=n[2]?n[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:i,title:s}}}table(t){var o;const n=this.rules.block.table.exec(t);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;const r=Kl(n[1]),i=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=(o=n[3])!=null&&o.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(`
50
+ `):[],l={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===i.length){for(const a of i)this.rules.other.tableAlignRight.test(a)?l.align.push("right"):this.rules.other.tableAlignCenter.test(a)?l.align.push("center"):this.rules.other.tableAlignLeft.test(a)?l.align.push("left"):l.align.push(null);for(let a=0;a<r.length;a++)l.header.push({text:r[a],tokens:this.lexer.inline(r[a]),header:!0,align:l.align[a]});for(const a of s)l.rows.push(Kl(a,l.header.length).map((c,u)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:l.align[u]})));return l}}lheading(t){const n=this.rules.block.lheading.exec(t);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(t){const n=this.rules.block.paragraph.exec(t);if(n){const r=n[1].charAt(n[1].length-1)===`
51
+ `?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const r=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;const l=$n(r.slice(0,-1),"\\");if((r.length-l.length)%2===0)return}else{const l=tf(n[2],"()");if(l>-1){const a=(n[0].indexOf("!")===0?5:4)+n[1].length+l;n[2]=n[2].substring(0,l),n[0]=n[0].substring(0,a).trim(),n[3]=""}}let i=n[2],s="";if(this.options.pedantic){const l=this.rules.other.pedanticHrefTitle.exec(i);l&&(i=l[1],s=l[3])}else s=n[3]?n[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?i=i.slice(1):i=i.slice(1,-1)),Gl(n,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer,this.rules)}}reflink(t,n){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){const i=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=n[i.toLowerCase()];if(!s){const l=r[0].charAt(0);return{type:"text",raw:l,text:l}}return Gl(r,s,r[0],this.lexer,this.rules)}}emStrong(t,n,r=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!i||i[3]&&r.match(this.rules.other.unicodeAlphaNumeric))return;if(!(i[1]||i[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const l=[...i[0]].length-1;let o,a,c=l,u=0;const h=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,n=n.slice(-1*t.length+l);(i=h.exec(n))!=null;){if(o=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!o)continue;if(a=[...o].length,i[3]||i[4]){c+=a;continue}else if((i[5]||i[6])&&l%3&&!((l+a)%3)){u+=a;continue}if(c-=a,c>0)continue;a=Math.min(a,a+c+u);const d=[...i[0]][0].length,g=t.slice(0,l+i.index+d+a);if(Math.min(l,a)%2){const b=g.slice(1,-1);return{type:"em",raw:g,text:b,tokens:this.lexer.inlineTokens(b)}}const x=g.slice(2,-2);return{type:"strong",raw:g,text:x,tokens:this.lexer.inlineTokens(x)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let r=n[2].replace(this.rules.other.newLineCharGlobal," ");const i=this.rules.other.nonSpaceChar.test(r),s=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return i&&s&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:n[0],text:r}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){const n=this.rules.inline.autolink.exec(t);if(n){let r,i;return n[2]==="@"?(r=n[1],i="mailto:"+r):(r=n[1],i=r),{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}url(t){var r;let n;if(n=this.rules.inline.url.exec(t)){let i,s;if(n[2]==="@")i=n[0],s="mailto:"+i;else{let l;do l=n[0],n[0]=((r=this.rules.inline._backpedal.exec(n[0]))==null?void 0:r[0])??"";while(l!==n[0]);i=n[0],n[1]==="www."?s="http://"+n[0]:s=n[0]}return{type:"link",raw:n[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(t){const n=this.rules.inline.text.exec(t);if(n){const r=this.lexer.state.inRawBlock;return{type:"text",raw:n[0],text:n[0],escaped:r}}}}class qe{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Mt,this.options.tokenizer=this.options.tokenizer||new br,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={other:Te,block:vr.normal,inline:Sn.normal};this.options.pedantic?(n.block=vr.pedantic,n.inline=Sn.pedantic):this.options.gfm&&(n.block=vr.gfm,this.options.breaks?n.inline=Sn.breaks:n.inline=Sn.gfm),this.tokenizer.rules=n}static get rules(){return{block:vr,inline:Sn}}static lex(t,n){return new qe(n).lex(t)}static lexInline(t,n){return new qe(n).inlineTokens(t)}lex(t){t=t.replace(Te.carriageReturn,`
52
+ `),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){const r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){var i,s,l;for(this.options.pedantic&&(t=t.replace(Te.tabCharGlobal," ").replace(Te.spaceLine,""));t;){let o;if((s=(i=this.options.extensions)==null?void 0:i.block)!=null&&s.some(c=>(o=c.call({lexer:this},t,n))?(t=t.substring(o.raw.length),n.push(o),!0):!1))continue;if(o=this.tokenizer.space(t)){t=t.substring(o.raw.length);const c=n.at(-1);o.raw.length===1&&c!==void 0?c.raw+=`
53
53
  `:n.push(o);continue}if(o=this.tokenizer.code(t)){t=t.substring(o.raw.length);const c=n.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=`
54
54
  `+o.raw,c.text+=`
55
55
  `+o.text,this.inlineQueue.at(-1).src=c.text):n.push(o);continue}if(o=this.tokenizer.fences(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.heading(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.hr(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.blockquote(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.list(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.html(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.def(t)){t=t.substring(o.raw.length);const c=n.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=`
@@ -58,16 +58,16 @@ ${h}`:h;const d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.block
58
58
  `+o.raw,c.text+=`
59
59
  `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(o),r=a.length!==t.length,t=t.substring(o.raw.length);continue}if(o=this.tokenizer.text(t)){t=t.substring(o.raw.length);const c=n.at(-1);(c==null?void 0:c.type)==="text"?(c.raw+=`
60
60
  `+o.raw,c.text+=`
61
- `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(o);continue}if(t){const c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){var o,a,c;let r=t,i=null;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(u.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)u.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let s=!1,l="";for(;t;){s||(l=""),s=!1;let u;if((a=(o=this.options.extensions)==null?void 0:o.inline)!=null&&a.some(d=>(u=d.call({lexer:this},t,n))?(t=t.substring(u.raw.length),n.push(u),!0):!1))continue;if(u=this.tokenizer.escape(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.tag(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.link(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(u.raw.length);const d=n.at(-1);u.type==="text"&&(d==null?void 0:d.type)==="text"?(d.raw+=u.raw,d.text+=u.text):n.push(u);continue}if(u=this.tokenizer.emStrong(t,r,l)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.codespan(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.br(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.del(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.autolink(t)){t=t.substring(u.raw.length),n.push(u);continue}if(!this.state.inLink&&(u=this.tokenizer.url(t))){t=t.substring(u.raw.length),n.push(u);continue}let h=t;if((c=this.options.extensions)!=null&&c.startInline){let d=1/0;const g=t.slice(1);let k;this.options.extensions.startInline.forEach(v=>{k=v.call({lexer:this},g),typeof k=="number"&&k>=0&&(d=Math.min(d,k))}),d<1/0&&d>=0&&(h=t.substring(0,d+1))}if(u=this.tokenizer.inlineText(h)){t=t.substring(u.raw.length),u.raw.slice(-1)!=="_"&&(l=u.raw.slice(-1)),s=!0;const d=n.at(-1);(d==null?void 0:d.type)==="text"?(d.raw+=u.raw,d.text+=u.text):n.push(u);continue}if(t){const d="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return n}}class br{options;parser;constructor(t){this.options=t||Ot}space(t){return""}code({text:t,lang:n,escaped:r}){var l;const i=(l=(n||"").match(Le.notSpaceStart))==null?void 0:l[0],s=t.replace(Le.endingNewline,"")+`
62
- `;return i?'<pre><code class="language-'+it(i)+'">'+(r?s:it(s,!0))+`</code></pre>
63
- `:"<pre><code>"+(r?s:it(s,!0))+`</code></pre>
61
+ `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(o);continue}if(t){const c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){var o,a,c;let r=t,i=null;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(u.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)u.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let s=!1,l="";for(;t;){s||(l=""),s=!1;let u;if((a=(o=this.options.extensions)==null?void 0:o.inline)!=null&&a.some(d=>(u=d.call({lexer:this},t,n))?(t=t.substring(u.raw.length),n.push(u),!0):!1))continue;if(u=this.tokenizer.escape(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.tag(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.link(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(u.raw.length);const d=n.at(-1);u.type==="text"&&(d==null?void 0:d.type)==="text"?(d.raw+=u.raw,d.text+=u.text):n.push(u);continue}if(u=this.tokenizer.emStrong(t,r,l)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.codespan(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.br(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.del(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.autolink(t)){t=t.substring(u.raw.length),n.push(u);continue}if(!this.state.inLink&&(u=this.tokenizer.url(t))){t=t.substring(u.raw.length),n.push(u);continue}let h=t;if((c=this.options.extensions)!=null&&c.startInline){let d=1/0;const g=t.slice(1);let x;this.options.extensions.startInline.forEach(b=>{x=b.call({lexer:this},g),typeof x=="number"&&x>=0&&(d=Math.min(d,x))}),d<1/0&&d>=0&&(h=t.substring(0,d+1))}if(u=this.tokenizer.inlineText(h)){t=t.substring(u.raw.length),u.raw.slice(-1)!=="_"&&(l=u.raw.slice(-1)),s=!0;const d=n.at(-1);(d==null?void 0:d.type)==="text"?(d.raw+=u.raw,d.text+=u.text):n.push(u);continue}if(t){const d="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return n}}class yr{options;parser;constructor(t){this.options=t||Mt}space(t){return""}code({text:t,lang:n,escaped:r}){var l;const i=(l=(n||"").match(Te.notSpaceStart))==null?void 0:l[0],s=t.replace(Te.endingNewline,"")+`
62
+ `;return i?'<pre><code class="language-'+tt(i)+'">'+(r?s:tt(s,!0))+`</code></pre>
63
+ `:"<pre><code>"+(r?s:tt(s,!0))+`</code></pre>
64
64
  `}blockquote({tokens:t}){return`<blockquote>
65
65
  ${this.parser.parse(t)}</blockquote>
66
66
  `}html({text:t}){return t}heading({tokens:t,depth:n}){return`<h${n}>${this.parser.parseInline(t)}</h${n}>
67
67
  `}hr(t){return`<hr>
68
68
  `}list(t){const n=t.ordered,r=t.start;let i="";for(let o=0;o<t.items.length;o++){const a=t.items[o];i+=this.listitem(a)}const s=n?"ol":"ul",l=n&&r!==1?' start="'+r+'"':"";return"<"+s+l+`>
69
69
  `+i+"</"+s+`>
70
- `}listitem(t){var r;let n="";if(t.task){const i=this.checkbox({checked:!!t.checked});t.loose?((r=t.tokens[0])==null?void 0:r.type)==="paragraph"?(t.tokens[0].text=i+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=i+" "+it(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):n+=i+" "}return n+=this.parser.parse(t.tokens,!!t.loose),`<li>${n}</li>
70
+ `}listitem(t){var r;let n="";if(t.task){const i=this.checkbox({checked:!!t.checked});t.loose?((r=t.tokens[0])==null?void 0:r.type)==="paragraph"?(t.tokens[0].text=i+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=i+" "+tt(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):n+=i+" "}return n+=this.parser.parse(t.tokens,!!t.loose),`<li>${n}</li>
71
71
  `}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
72
72
  `}table(t){let n="",r="";for(let s=0;s<t.header.length;s++)r+=this.tablecell(t.header[s]);n+=this.tablerow({text:r});let i="";for(let s=0;s<t.rows.length;s++){const l=t.rows[s];r="";for(let o=0;o<l.length;o++)r+=this.tablecell(l[o]);i+=this.tablerow({text:r})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
73
73
  <thead>
@@ -76,9 +76,9 @@ ${this.parser.parse(t)}</blockquote>
76
76
  `}tablerow({text:t}){return`<tr>
77
77
  ${t}</tr>
78
78
  `}tablecell(t){const n=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+n+`</${r}>
79
- `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${it(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:n,tokens:r}){const i=this.parser.parseInline(r),s=Dl(t);if(s===null)return i;t=s;let l='<a href="'+t+'"';return n&&(l+=' title="'+it(n)+'"'),l+=">"+i+"</a>",l}image({href:t,title:n,text:r}){const i=Dl(t);if(i===null)return it(r);t=i;let s=`<img src="${t}" alt="${r}"`;return n&&(s+=` title="${it(n)}"`),s+=">",s}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:it(t.text)}}class ki{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}}class Ye{options;renderer;textRenderer;constructor(t){this.options=t||Ot,this.options.renderer=this.options.renderer||new br,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ki}static parse(t,n){return new Ye(n).parse(t)}static parseInline(t,n){return new Ye(n).parseInline(t)}parse(t,n=!0){var i,s;let r="";for(let l=0;l<t.length;l++){const o=t[l];if((s=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&s[o.type]){const c=o,u=this.options.extensions.renderers[c.type].call({parser:this},c);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(c.type)){r+=u||"";continue}}const a=o;switch(a.type){case"space":{r+=this.renderer.space(a);continue}case"hr":{r+=this.renderer.hr(a);continue}case"heading":{r+=this.renderer.heading(a);continue}case"code":{r+=this.renderer.code(a);continue}case"table":{r+=this.renderer.table(a);continue}case"blockquote":{r+=this.renderer.blockquote(a);continue}case"list":{r+=this.renderer.list(a);continue}case"html":{r+=this.renderer.html(a);continue}case"paragraph":{r+=this.renderer.paragraph(a);continue}case"text":{let c=a,u=this.renderer.text(c);for(;l+1<t.length&&t[l+1].type==="text";)c=t[++l],u+=`
80
- `+this.renderer.text(c);n?r+=this.renderer.paragraph({type:"paragraph",raw:u,text:u,tokens:[{type:"text",raw:u,text:u,escaped:!0}]}):r+=u;continue}default:{const c='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return r}parseInline(t,n=this.renderer){var i,s;let r="";for(let l=0;l<t.length;l++){const o=t[l];if((s=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&s[o.type]){const c=this.options.extensions.renderers[o.type].call({parser:this},o);if(c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){r+=c||"";continue}}const a=o;switch(a.type){case"escape":{r+=n.text(a);break}case"html":{r+=n.html(a);break}case"link":{r+=n.link(a);break}case"image":{r+=n.image(a);break}case"strong":{r+=n.strong(a);break}case"em":{r+=n.em(a);break}case"codespan":{r+=n.codespan(a);break}case"br":{r+=n.br(a);break}case"del":{r+=n.del(a);break}case"text":{r+=n.text(a);break}default:{const c='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return r}}class Tn{options;block;constructor(t){this.options=t||Ot}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?Je.lex:Je.lexInline}provideParser(){return this.block?Ye.parse:Ye.parseInline}}go(Tn,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class Nl{defaults=pi();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Ye;Renderer=br;TextRenderer=ki;Lexer=Je;Tokenizer=vr;Hooks=Tn;constructor(...t){this.use(...t)}walkTokens(t,n){var i,s;let r=[];for(const l of t)switch(r=r.concat(n.call(this,l)),l.type){case"table":{const o=l;for(const a of o.header)r=r.concat(this.walkTokens(a.tokens,n));for(const a of o.rows)for(const c of a)r=r.concat(this.walkTokens(c.tokens,n));break}case"list":{const o=l;r=r.concat(this.walkTokens(o.items,n));break}default:{const o=l;(s=(i=this.defaults.extensions)==null?void 0:i.childTokens)!=null&&s[o.type]?this.defaults.extensions.childTokens[o.type].forEach(a=>{const c=o[a].flat(1/0);r=r.concat(this.walkTokens(c,n))}):o.tokens&&(r=r.concat(this.walkTokens(o.tokens,n)))}}return r}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{const i={...r};if(i.async=this.defaults.async||i.async||!1,r.extensions&&(r.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){const l=n.renderers[s.name];l?n.renderers[s.name]=function(...o){let a=s.renderer.apply(this,o);return a===!1&&(a=l.apply(this,o)),a}:n.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const l=n[s.level];l?l.unshift(s.tokenizer):n[s.level]=[s.tokenizer],s.start&&(s.level==="block"?n.startBlock?n.startBlock.push(s.start):n.startBlock=[s.start]:s.level==="inline"&&(n.startInline?n.startInline.push(s.start):n.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(n.childTokens[s.name]=s.childTokens)}),i.extensions=n),r.renderer){const s=this.defaults.renderer||new br(this.defaults);for(const l in r.renderer){if(!(l in s))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;const o=l,a=r.renderer[o],c=s[o];s[o]=(...u)=>{let h=a.apply(s,u);return h===!1&&(h=c.apply(s,u)),h||""}}i.renderer=s}if(r.tokenizer){const s=this.defaults.tokenizer||new vr(this.defaults);for(const l in r.tokenizer){if(!(l in s))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;const o=l,a=r.tokenizer[o],c=s[o];s[o]=(...u)=>{let h=a.apply(s,u);return h===!1&&(h=c.apply(s,u)),h}}i.tokenizer=s}if(r.hooks){const s=this.defaults.hooks||new Tn;for(const l in r.hooks){if(!(l in s))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;const o=l,a=r.hooks[o],c=s[o];Tn.passThroughHooks.has(l)?s[o]=u=>{if(this.defaults.async)return Promise.resolve(a.call(s,u)).then(d=>c.call(s,d));const h=a.call(s,u);return c.call(s,h)}:s[o]=(...u)=>{let h=a.apply(s,u);return h===!1&&(h=c.apply(s,u)),h}}i.hooks=s}if(r.walkTokens){const s=this.defaults.walkTokens,l=r.walkTokens;i.walkTokens=function(o){let a=[];return a.push(l.call(this,o)),s&&(a=a.concat(s.call(this,o))),a}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return Je.lex(t,n??this.defaults)}parser(t,n){return Ye.parse(t,n??this.defaults)}parseMarkdown(t){return(r,i)=>{const s={...i},l={...this.defaults,...s},o=this.onError(!!l.silent,!!l.async);if(this.defaults.async===!0&&s.async===!1)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));l.hooks&&(l.hooks.options=l,l.hooks.block=t);const a=l.hooks?l.hooks.provideLexer():t?Je.lex:Je.lexInline,c=l.hooks?l.hooks.provideParser():t?Ye.parse:Ye.parseInline;if(l.async)return Promise.resolve(l.hooks?l.hooks.preprocess(r):r).then(u=>a(u,l)).then(u=>l.hooks?l.hooks.processAllTokens(u):u).then(u=>l.walkTokens?Promise.all(this.walkTokens(u,l.walkTokens)).then(()=>u):u).then(u=>c(u,l)).then(u=>l.hooks?l.hooks.postprocess(u):u).catch(o);try{l.hooks&&(r=l.hooks.preprocess(r));let u=a(r,l);l.hooks&&(u=l.hooks.processAllTokens(u)),l.walkTokens&&this.walkTokens(u,l.walkTokens);let h=c(u,l);return l.hooks&&(h=l.hooks.postprocess(h)),h}catch(u){return o(u)}}}onError(t,n){return r=>{if(r.message+=`
81
- Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An error occurred:</p><pre>"+it(r.message+"",!0)+"</pre>";return n?Promise.resolve(i):i}if(n)return Promise.reject(r);throw r}}}const Pt=new Nl;function ge(e,t){return Pt.parse(e,t)}ge.options=ge.setOptions=function(e){return Pt.setOptions(e),ge.defaults=Pt.defaults,Tl(ge.defaults),ge},ge.getDefaults=pi,ge.defaults=Ot,ge.use=function(...e){return Pt.use(...e),ge.defaults=Pt.defaults,Tl(ge.defaults),ge},ge.walkTokens=function(e,t){return Pt.walkTokens(e,t)},ge.parseInline=Pt.parseInline,ge.Parser=Ye,ge.parser=Ye.parse,ge.Renderer=br,ge.TextRenderer=ki,ge.Lexer=Je,ge.lexer=Je.lex,ge.Tokenizer=vr,ge.Hooks=Tn,ge.parse=ge;function Yu(e){if(typeof e=="function"&&(e={highlight:e}),!e||typeof e.highlight!="function")throw new Error("Must provide highlight function");return typeof e.langPrefix!="string"&&(e.langPrefix="language-"),typeof e.emptyLangClass!="string"&&(e.emptyLangClass=""),{async:!!e.async,walkTokens(t){if(t.type!=="code")return;const n=Bl(t.lang);if(e.async)return Promise.resolve(e.highlight(t.text,n,t.lang||"")).then(Vl(t));const r=e.highlight(t.text,n,t.lang||"");if(r instanceof Promise)throw new Error("markedHighlight is not set to async but the highlight function is async. Set the async option to true on markedHighlight to await the async highlight function.");Vl(t)(r)},useNewRenderer:!0,renderer:{code(t,n,r){typeof t=="object"&&(r=t.escaped,n=t.lang,t=t.text);const i=Bl(n),s=i?e.langPrefix+Gl(i):e.emptyLangClass,l=s?` class="${s}"`:"";return t=t.replace(/\n$/,""),`<pre><code${l}>${r?t:Gl(t,!0)}
82
- </code></pre>`}}}}function Bl(e){return(e||"").match(/\S*/)[0]}function Vl(e){return t=>{typeof t=="string"&&t!==e.text&&(e.escaped=!0,e.text=t)}}const Wl=/[&<>"']/,Qu=new RegExp(Wl.source,"g"),ql=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Xu=new RegExp(ql.source,"g"),ef={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Kl=e=>ef[e];function Gl(e,t){if(t){if(Wl.test(e))return e.replace(Qu,Kl)}else if(ql.test(e))return e.replace(Xu,Kl);return e}const tf=/\$.*?\$/,nf=/^\$(.*?)\$/,rf=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,sf=e=>[{name:"blockMath",level:"block",tokenizer(t){const n=rf.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!0,n[1])}}},{name:"inlineMath",level:"inline",start(t){const n=t.search(tf);return n!==-1?n:t.length},tokenizer(t){const n=nf.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!1,n[1])}}}],Zl=(e="",t={})=>e.replace(/:(.+?):/g,(n,r)=>t[r]?`<img class="wl-emoji" src="${t[r]}" alt="${r}">`:n),lf=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{const i=new Nl;if(i.setOptions({breaks:!0}),n&&i.use(Yu({highlight:n})),r){const s=sf(r);i.use({extensions:s})}return i.parse(Zl(e,t))},xi=e=>{const{path:t}=e.dataset;return t!=null&&t.length?t:null},of=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),af=e=>e.match(/[\u4E00-\u9FD5]/gu),cf=e=>{var t,n;return(((t=of(e))==null?void 0:t.reduce((r,i)=>r+(["",",","."].includes(i.trim())?0:i.trim().split(/\s+/u).length),0))??0)+(((n=af(e))==null?void 0:n.length)??0)},uf=async()=>{if(!navigator)return"";const{userAgentData:e}=navigator;let t=navigator.userAgent;if(!e||e.platform!=="Windows")return t;const{platformVersion:n}=await e.getHighEntropyValues(["platformVersion"]);return n&&parseInt(n.split(".")[0])>=13&&(t=t.replace("Windows NT 10.0","Windows NT 11.0")),t},Jl=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count",lang:r=navigator.language})=>{const i=new AbortController,s=document.querySelectorAll(n);return s.length&&Ai({serverURL:jn(e),paths:Array.from(s).map(l=>Ki(xi(l)??t)),lang:r,signal:i.signal}).then(l=>{s.forEach((o,a)=>{o.innerText=l[a].toString()})}).catch(Rl),i.abort.bind(i)},Yl=({size:e})=>ne("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[ne("path",{d:"M697.173 85.333h-369.92c-144.64 0-241.92 101.547-241.92 252.587v348.587c0 150.613 97.28 252.16 241.92 252.16h369.92c144.64 0 241.494-101.547 241.494-252.16V337.92c0-151.04-96.854-252.587-241.494-252.587z",fill:"currentColor"}),ne("path",{d:"m640.683 587.52-75.947-75.861 75.904-75.862a37.29 37.29 0 0 0 0-52.778 37.205 37.205 0 0 0-52.779 0l-75.946 75.818-75.862-75.946a37.419 37.419 0 0 0-52.821 0 37.419 37.419 0 0 0 0 52.821l75.947 75.947-75.776 75.733a37.29 37.29 0 1 0 52.778 52.821l75.776-75.776 75.947 75.947a37.376 37.376 0 0 0 52.779-52.821z",fill:"#888"})]),ff=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("path",{d:"m341.013 394.667 27.755 393.45h271.83l27.733-393.45h64.106l-28.01 397.952a64 64 0 0 1-63.83 59.498H368.768a64 64 0 0 1-63.83-59.52l-28.053-397.93h64.128zm139.307 19.818v298.667h-64V414.485h64zm117.013 0v298.667h-64V414.485h64zM181.333 288h640v64h-640v-64zm453.483-106.667v64h-256v-64h256z",fill:"red"})),hf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("path",{d:"M563.2 463.3 677 540c1.7 1.2 3.7 1.8 5.8 1.8.7 0 1.4-.1 2-.2 2.7-.5 5.1-2.1 6.6-4.4l25.3-37.8c1.5-2.3 2.1-5.1 1.6-7.8s-2.1-5.1-4.4-6.6l-73.6-49.1 73.6-49.1c2.3-1.5 3.9-3.9 4.4-6.6.5-2.7 0-5.5-1.6-7.8l-25.3-37.8a10.1 10.1 0 0 0-6.6-4.4c-.7-.1-1.3-.2-2-.2-2.1 0-4.1.6-5.8 1.8l-113.8 76.6c-9.2 6.2-14.7 16.4-14.7 27.5.1 11 5.5 21.3 14.7 27.4zM387 348.8h-45.5c-5.7 0-10.4 4.7-10.4 10.4v153.3c0 5.7 4.7 10.4 10.4 10.4H387c5.7 0 10.4-4.7 10.4-10.4V359.2c0-5.7-4.7-10.4-10.4-10.4zm333.8 241.3-41-20a10.3 10.3 0 0 0-8.1-.5c-2.6.9-4.8 2.9-5.9 5.4-30.1 64.9-93.1 109.1-164.4 115.2-5.7.5-9.9 5.5-9.5 11.2l3.9 45.5c.5 5.3 5 9.5 10.3 9.5h.9c94.8-8 178.5-66.5 218.6-152.7 2.4-5 .3-11.2-4.8-13.6zm186-186.1c-11.9-42-30.5-81.4-55.2-117.1-24.1-34.9-53.5-65.6-87.5-91.2-33.9-25.6-71.5-45.5-111.6-59.2-41.2-14-84.1-21.1-127.8-21.1h-1.2c-75.4 0-148.8 21.4-212.5 61.7-63.7 40.3-114.3 97.6-146.5 165.8-32.2 68.1-44.3 143.6-35.1 218.4 9.3 74.8 39.4 145 87.3 203.3.1.2.3.3.4.5l36.2 38.4c1.1 1.2 2.5 2.1 3.9 2.6 73.3 66.7 168.2 103.5 267.5 103.5 73.3 0 145.2-20.3 207.7-58.7 37.3-22.9 70.3-51.5 98.1-85 27.1-32.7 48.7-69.5 64.2-109.1 15.5-39.7 24.4-81.3 26.6-123.8 2.4-43.6-2.5-87-14.5-129zm-60.5 181.1c-8.3 37-22.8 72-43 104-19.7 31.1-44.3 58.6-73.1 81.7-28.8 23.1-61 41-95.7 53.4-35.6 12.7-72.9 19.1-110.9 19.1-82.6 0-161.7-30.6-222.8-86.2l-34.1-35.8c-23.9-29.3-42.4-62.2-55.1-97.7-12.4-34.7-18.8-71-19.2-107.9-.4-36.9 5.4-73.3 17.1-108.2 12-35.8 30-69.2 53.4-99.1 31.7-40.4 71.1-72 117.2-94.1 44.5-21.3 94-32.6 143.4-32.6 49.3 0 97 10.8 141.8 32 34.3 16.3 65.3 38.1 92 64.8 26.1 26 47.5 56 63.6 89.2 16.2 33.2 26.6 68.5 31 105.1 4.6 37.5 2.7 75.3-5.6 112.3z",fill:"currentColor"})),df=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ne("path",{d:"M784 112H240c-88 0-160 72-160 160v480c0 88 72 160 160 160h544c88 0 160-72 160-160V272c0-88-72-160-160-160zm96 640c0 52.8-43.2 96-96 96H240c-52.8 0-96-43.2-96-96V272c0-52.8 43.2-96 96-96h544c52.8 0 96 43.2 96 96v480z",fill:"currentColor"}),ne("path",{d:"M352 480c52.8 0 96-43.2 96-96s-43.2-96-96-96-96 43.2-96 96 43.2 96 96 96zm0-128c17.6 0 32 14.4 32 32s-14.4 32-32 32-32-14.4-32-32 14.4-32 32-32zm462.4 379.2-3.2-3.2-177.6-177.6c-25.6-25.6-65.6-25.6-91.2 0l-80 80-36.8-36.8c-25.6-25.6-65.6-25.6-91.2 0L200 728c-4.8 6.4-8 14.4-8 24 0 17.6 14.4 32 32 32 9.6 0 16-3.2 22.4-9.6L380.8 640l134.4 134.4c6.4 6.4 14.4 9.6 24 9.6 17.6 0 32-14.4 32-32 0-9.6-4.8-17.6-9.6-24l-52.8-52.8 80-80L769.6 776c6.4 4.8 12.8 8 20.8 8 17.6 0 32-14.4 32-32 0-8-3.2-16-8-20.8z",fill:"currentColor"})]),pf=({active:e=!1})=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ne("path",{d:`M850.654 323.804c-11.042-25.625-26.862-48.532-46.885-68.225-20.022-19.61-43.258-34.936-69.213-45.73-26.78-11.124-55.124-16.727-84.375-16.727-40.622 0-80.256 11.123-114.698 32.135A214.79 214.79 0 0 0 512 241.819a214.79 214.79 0 0 0-23.483-16.562c-34.442-21.012-74.076-32.135-114.698-32.135-29.25 0-57.595 5.603-84.375 16.727-25.872 10.711-49.19 26.12-69.213 45.73-20.105 19.693-35.843 42.6-46.885 68.225-11.453 26.615-17.303 54.877-17.303 83.963 0 27.439 5.603 56.03 16.727 85.117 9.31 24.307 22.659 49.52 39.715 74.981 27.027 40.293 64.188 82.316 110.33 124.915 76.465 70.615 152.189 119.394 155.402 121.371l19.528 12.525c8.652 5.52 19.776 5.52 28.427 0l19.529-12.525c3.213-2.06 78.854-50.756 155.401-121.371 46.143-42.6 83.304-84.622 110.33-124.915 17.057-25.46 30.487-50.674 39.716-74.981 11.124-29.087 16.727-57.678 16.727-85.117.082-29.086-5.768-57.348-17.221-83.963z${e?"":"M512 761.5S218.665 573.55 218.665 407.767c0-83.963 69.461-152.023 155.154-152.023 60.233 0 112.473 33.618 138.181 82.727 25.708-49.109 77.948-82.727 138.18-82.727 85.694 0 155.155 68.06 155.155 152.023C805.335 573.551 512 761.5 512 761.5z"}`,fill:e?"red":"currentColor"})]),gf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ne("path",{d:"M710.816 654.301c70.323-96.639 61.084-230.578-23.705-314.843-46.098-46.098-107.183-71.109-172.28-71.109-65.008 0-126.092 25.444-172.28 71.109-45.227 46.098-70.756 107.183-70.756 172.106 0 64.923 25.444 126.007 71.194 172.106 46.099 46.098 107.184 71.109 172.28 71.109 51.414 0 100.648-16.212 142.824-47.404l126.53 126.006c7.058 7.06 16.297 10.979 26.406 10.979 10.105 0 19.343-3.919 26.402-10.979 14.467-14.467 14.467-38.172 0-52.723L710.816 654.301zm-315.107-23.265c-65.88-65.88-65.88-172.54 0-238.42 32.069-32.07 74.245-49.149 119.471-49.149 45.227 0 87.407 17.603 119.472 49.149 65.88 65.879 65.88 172.539 0 238.42-63.612 63.178-175.242 63.178-238.943 0zm0 0",fill:"currentColor"}),ne("path",{d:"M703.319 121.603H321.03c-109.8 0-199.469 89.146-199.469 199.38v382.034c0 109.796 89.236 199.38 199.469 199.38h207.397c20.653 0 37.384-16.645 37.384-37.299 0-20.649-16.731-37.296-37.384-37.296H321.03c-68.582 0-124.352-55.77-124.352-124.267V321.421c0-68.496 55.77-124.267 124.352-124.267h382.289c68.582 0 124.352 55.771 124.352 124.267V524.72c0 20.654 16.736 37.299 37.385 37.299 20.654 0 37.384-16.645 37.384-37.299V320.549c-.085-109.8-89.321-198.946-199.121-198.946zm0 0",fill:"currentColor"})]),mf=()=>ne("svg",{width:"16",height:"16",ariaHidden:"true"},ne("path",{d:"M14.85 3H1.15C.52 3 0 3.52 0 4.15v7.69C0 12.48.52 13 1.15 13h13.69c.64 0 1.15-.52 1.15-1.15v-7.7C16 3.52 15.48 3 14.85 3zM9 11H7V8L5.5 9.92 4 8v3H2V5h2l1.5 2L7 5h2v6zm2.99.5L9.5 8H11V5h2v3h1.5l-2.51 3.5z",fill:"currentColor"})),vf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("path",{d:"M810.667 213.333a64 64 0 0 1 64 64V704a64 64 0 0 1-64 64H478.336l-146.645 96.107a21.333 21.333 0 0 1-33.024-17.856V768h-85.334a64 64 0 0 1-64-64V277.333a64 64 0 0 1 64-64h597.334zm0 64H213.333V704h149.334v63.296L459.243 704h351.424V277.333zm-271.36 213.334v64h-176.64v-64h176.64zm122.026-128v64H362.667v-64h298.666z",fill:"currentColor"})),bf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("path",{d:"M813.039 318.772L480.53 651.278H360.718V531.463L693.227 198.961C697.904 194.284 704.027 192 710.157 192C716.302 192 722.436 194.284 727.114 198.961L813.039 284.88C817.72 289.561 820 295.684 820 301.825C820 307.95 817.72 314.093 813.039 318.772ZM710.172 261.888L420.624 551.431V591.376H460.561L750.109 301.825L710.172 261.888ZM490.517 291.845H240.906V771.09H720.156V521.479C720.156 504.947 733.559 491.529 750.109 491.529C766.653 491.529 780.063 504.947 780.063 521.479V791.059C780.063 813.118 762.18 831 740.125 831H220.937C198.882 831 181 813.118 181 791.059V271.872C181 249.817 198.882 231.935 220.937 231.935H490.517C507.06 231.935 520.47 245.352 520.47 261.888C520.47 278.424 507.06 291.845 490.517 291.845Z",fill:"currentColor"})),yf=()=>ne("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},ne("path",{d:"m894.4 461.56-54.4-63.2c-10.4-12-18.8-34.4-18.8-50.4v-68c0-42.4-34.8-77.2-77.2-77.2h-68c-15.6 0-38.4-8.4-50.4-18.8l-63.2-54.4c-27.6-23.6-72.8-23.6-100.8 0l-62.8 54.8c-12 10-34.8 18.4-50.4 18.4h-69.2c-42.4 0-77.2 34.8-77.2 77.2v68.4c0 15.6-8.4 38-18.4 50l-54 63.6c-23.2 27.6-23.2 72.4 0 100l54 63.6c10 12 18.4 34.4 18.4 50v68.4c0 42.4 34.8 77.2 77.2 77.2h69.2c15.6 0 38.4 8.4 50.4 18.8l63.2 54.4c27.6 23.6 72.8 23.6 100.8 0l63.2-54.4c12-10.4 34.4-18.8 50.4-18.8h68c42.4 0 77.2-34.8 77.2-77.2v-68c0-15.6 8.4-38.4 18.8-50.4l54.4-63.2c23.2-27.6 23.2-73.2-.4-100.8zm-216-25.2-193.2 193.2a30 30 0 0 1-42.4 0l-96.8-96.8a30.16 30.16 0 0 1 0-42.4c11.6-11.6 30.8-11.6 42.4 0l75.6 75.6 172-172c11.6-11.6 30.8-11.6 42.4 0 11.6 11.6 11.6 30.8 0 42.4z",fill:"#27ae60"})),En=({size:e=100})=>ne("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},ne("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},ne("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),wf=()=>ne("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[ne("path",{style:"transform: translateY(0.5px)",d:"M18.968 10.5H15.968V11.484H17.984V12.984H15.968V15H14.468V9H18.968V10.5V10.5ZM8.984 9C9.26533 9 9.49967 9.09367 9.687 9.281C9.87433 9.46833 9.968 9.70267 9.968 9.984V10.5H6.499V13.5H8.468V12H9.968V14.016C9.968 14.2973 9.87433 14.5317 9.687 14.719C9.49967 14.9063 9.26533 15 8.984 15H5.984C5.70267 15 5.46833 14.9063 5.281 14.719C5.09367 14.5317 5 14.2973 5 14.016V9.985C5 9.70367 5.09367 9.46933 5.281 9.282C5.46833 9.09467 5.70267 9.001 5.984 9.001H8.984V9ZM11.468 9H12.968V15H11.468V9V9Z"}),ne("path",{d:"M18.5 3H5.75C3.6875 3 2 4.6875 2 6.75V18C2 20.0625 3.6875 21.75 5.75 21.75H18.5C20.5625 21.75 22.25 20.0625 22.25 18V6.75C22.25 4.6875 20.5625 3 18.5 3ZM20.75 18C20.75 19.2375 19.7375 20.25 18.5 20.25H5.75C4.5125 20.25 3.5 19.2375 3.5 18V6.75C3.5 5.5125 4.5125 4.5 5.75 4.5H18.5C19.7375 4.5 20.75 5.5125 20.75 6.75V18Z"})]),kf=()=>Yt("WALINE_USER_META",{nick:"",mail:"",link:""}),xf=()=>Yt("WALINE_COMMENT_BOX_EDITOR",""),_f="WALINE_LIKE";let Ql=null;const Xl=()=>Ql??(Ql=Yt(_f,[])),Cf="WALINE_REACTION";let eo=null;const $f=()=>eo??(eo=Yt(Cf,{}));var _i={},gt={},mt={},to;function no(){if(to)return mt;to=1;var e=mt&&mt.__awaiter||function(r,i,s,l){function o(a){return a instanceof s?a:new s(function(c){c(a)})}return new(s||(s=Promise))(function(a,c){function u(g){try{d(l.next(g))}catch(k){c(k)}}function h(g){try{d(l.throw(g))}catch(k){c(k)}}function d(g){g.done?a(g.value):o(g.value).then(u,h)}d((l=l.apply(r,i||[])).next())})},t=mt&&mt.__generator||function(r,i){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},l,o,a,c;return c={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(d){return function(g){return h([d,g])}}function h(d){if(l)throw new TypeError("Generator is already executing.");for(;c&&(c=0,d[0]&&(s=0)),s;)try{if(l=1,o&&(a=d[0]&2?o.return:d[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,d[1])).done)return a;switch(o=0,a&&(d=[d[0]&2,a.value]),d[0]){case 0:case 1:a=d;break;case 4:return s.label++,{value:d[1],done:!1};case 5:s.label++,o=d[1],d=[0];continue;case 7:d=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){s=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){s.label=d[1];break}if(d[0]===6&&s.label<a[1]){s.label=a[1],a=d;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(d);break}a[2]&&s.ops.pop(),s.trys.pop();continue}d=i.call(r,s)}catch(g){d=[6,g],o=0}finally{l=a=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}};Object.defineProperty(mt,"__esModule",{value:!0}),mt.ReCaptchaInstance=void 0;var n=function(){function r(i,s,l){this.siteKey=i,this.recaptchaID=s,this.recaptcha=l,this.styleContainer=null}return r.prototype.execute=function(i){return e(this,void 0,void 0,function(){var s;return t(this,function(l){switch(l.label){case 0:return this.recaptcha.enterprise?[4,this.recaptcha.enterprise.execute(this.recaptchaID,{action:i})]:[3,2];case 1:return s=l.sent(),[3,4];case 2:return[4,this.recaptcha.execute(this.recaptchaID,{action:i})];case 3:s=l.sent(),l.label=4;case 4:return[2,s]}})})},r.prototype.getSiteKey=function(){return this.siteKey},r.prototype.hideBadge=function(){this.styleContainer===null&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},r.prototype.showBadge=function(){this.styleContainer!==null&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},r}();return mt.ReCaptchaInstance=n,mt}var ro;function Sf(){if(ro)return gt;ro=1;var e=gt&&gt.__assign||function(){return e=Object.assign||function(i){for(var s,l=1,o=arguments.length;l<o;l++){s=arguments[l];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(i[a]=s[a])}return i},e.apply(this,arguments)};Object.defineProperty(gt,"__esModule",{value:!0}),gt.getInstance=gt.load=void 0;var t=no(),n;(function(i){i[i.NOT_LOADED=0]="NOT_LOADED",i[i.LOADING=1]="LOADING",i[i.LOADED=2]="LOADED"})(n||(n={}));var r=function(){function i(){}return i.load=function(s,l){if(l===void 0&&(l={}),typeof document>"u")return Promise.reject(new Error("This is a library for the browser!"));if(i.getLoadingState()===n.LOADED)return i.instance.getSiteKey()===s?Promise.resolve(i.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(i.getLoadingState()===n.LOADING)return s!==i.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(a,c){i.successfulLoadingConsumers.push(function(u){return a(u)}),i.errorLoadingRunnable.push(function(u){return c(u)})});i.instanceSiteKey=s,i.setLoadingState(n.LOADING);var o=new i;return new Promise(function(a,c){o.loadScript(s,l.useRecaptchaNet||!1,l.useEnterprise||!1,l.renderParameters?l.renderParameters:{},l.customUrl).then(function(){i.setLoadingState(n.LOADED);var u=o.doExplicitRender(grecaptcha,s,l.explicitRenderParameters?l.explicitRenderParameters:{},l.useEnterprise||!1),h=new t.ReCaptchaInstance(s,u,grecaptcha);i.successfulLoadingConsumers.forEach(function(d){return d(h)}),i.successfulLoadingConsumers=[],l.autoHideBadge&&h.hideBadge(),i.instance=h,a(h)}).catch(function(u){i.errorLoadingRunnable.forEach(function(h){return h(u)}),i.errorLoadingRunnable=[],c(u)})})},i.getInstance=function(){return i.instance},i.setLoadingState=function(s){i.loadingState=s},i.getLoadingState=function(){return i.loadingState===null?n.NOT_LOADED:i.loadingState},i.prototype.loadScript=function(s,l,o,a,c){var u=this;l===void 0&&(l=!1),o===void 0&&(o=!1),a===void 0&&(a={}),c===void 0&&(c="");var h=document.createElement("script");h.setAttribute("recaptcha-v3-script",""),h.setAttribute("async",""),h.setAttribute("defer","");var d="https://www.google.com/recaptcha/api.js";l?o?d="https://recaptcha.net/recaptcha/enterprise.js":d="https://recaptcha.net/recaptcha/api.js":o&&(d="https://www.google.com/recaptcha/enterprise.js"),c&&(d=c),a.render&&(a.render=void 0);var g=this.buildQueryString(a);return h.src=d+"?render=explicit"+g,new Promise(function(k,v){h.addEventListener("load",u.waitForScriptToLoad(function(){k(h)},o),!1),h.onerror=function($){i.setLoadingState(n.NOT_LOADED),v($)},document.head.appendChild(h)})},i.prototype.buildQueryString=function(s){var l=Object.keys(s);return l.length<1?"":"&"+Object.keys(s).filter(function(o){return!!s[o]}).map(function(o){return o+"="+s[o]}).join("&")},i.prototype.waitForScriptToLoad=function(s,l){var o=this;return function(){window.grecaptcha===void 0?setTimeout(function(){o.waitForScriptToLoad(s,l)},i.SCRIPT_LOAD_DELAY):l?window.grecaptcha.enterprise.ready(function(){s()}):window.grecaptcha.ready(function(){s()})}},i.prototype.doExplicitRender=function(s,l,o,a){var c=e({sitekey:l},o);return o.container?a?s.enterprise.render(o.container,c):s.render(o.container,c):a?s.enterprise.render(c):s.render(c)},i.loadingState=null,i.instance=null,i.instanceSiteKey=null,i.successfulLoadingConsumers=[],i.errorLoadingRunnable=[],i.SCRIPT_LOAD_DELAY=25,i}();return gt.load=r.load,gt.getInstance=r.getInstance,gt}var io;function Rf(){return io||(io=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=Sf();Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=no();Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})}(_i)),_i}var Af=Rf();const so={},Tf=e=>{const t=so[e]??(so[e]=Af.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:n=>t.then(r=>r.execute(n))}},Ef=e=>({execute:async t=>{const{load:n}=mu("https://challenges.cloudflare.com/turnstile/v0/api.js",void 0,{async:!1});await n();const r=window==null?void 0:window.turnstile;return new Promise(i=>{r==null||r.ready(()=>{r==null||r.render(".wl-captcha-container",{sitekey:e,action:t,size:"compact",callback:i})})})}}),Lf="WALINE_USER";let lo=null;const yr=()=>lo??(lo=Yt(Lf,{})),If={key:0,class:"wl-reaction"},Mf=["textContent"],Of={class:"wl-reaction-list"},Pf=["onClick"],jf={class:"wl-reaction-img"},zf=["src","alt"],Ff=["textContent"],Df=["textContent"];var Hf=pn({__name:"ArticleReaction",setup(e,{expose:t}){t();const n=$f(),r=Qn("config"),i=W(-1),s=W([]),l=_e(()=>r.value.locale),o=_e(()=>r.value.reaction.length>0),a=_e(()=>{const{reaction:d,path:g}=r.value;return d.map((k,v)=>({icon:k,desc:l.value[`reaction${v}`],active:n.value[g]===v}))});let c;const u=async()=>{if(!o.value)return;const{serverURL:d,lang:g,path:k,reaction:v}=r.value,$=new AbortController;c=$.abort.bind($);const b=await xr({serverURL:d,lang:g,paths:[k],type:v.map((C,U)=>`reaction${U}`),signal:$.signal});s.value=v.map((C,U)=>b[0][`reaction${U}`])},h=async d=>{if(i.value===-1){const{serverURL:g,lang:k,path:v}=r.value,$=n.value[v];i.value=d,$!==void 0&&(await On({serverURL:g,lang:k,path:v,type:`reaction${$}`,action:"desc"}),s.value[$]=Math.max(s.value[$]-1,0)),$!==d&&(await On({serverURL:g,lang:k,path:v,type:`reaction${d}`}),s.value[d]=(s.value[d]||0)+1),$===d?delete n.value[v]:n.value[v]=d,i.value=-1}};return mn(()=>{Ke(()=>[r.value.serverURL,r.value.path],()=>{u()},{immediate:!0})}),Yr(()=>c==null?void 0:c()),(d,g)=>a.value.length?(I(),P("div",If,[H("div",{class:"wl-reaction-title",textContent:X(l.value.reactionTitle)},null,8,Mf),H("ul",Of,[(I(!0),P(he,null,qe(a.value,({active:k,icon:v,desc:$},b)=>(I(),P("li",{key:b,class:ve(["wl-reaction-item",{active:k}]),onClick:C=>h(b)},[H("div",jf,[H("img",{src:v,alt:$},null,8,zf),i.value===b?(I(),ut(q(En),{key:0,class:"wl-reaction-loading"})):(I(),P("div",{key:1,class:"wl-reaction-votes",textContent:X(s.value[b]||0)},null,8,Ff))]),H("div",{class:"wl-reaction-text",textContent:X($)},null,8,Df)],10,Pf))),128))])])):Y("v-if",!0)}}),Ln=new Map;function Uf(e){var t=Ln.get(e);t&&t.destroy()}function Nf(e){var t=Ln.get(e);t&&t.update()}var In=null;typeof window>"u"?((In=function(e){return e}).destroy=function(e){return e},In.update=function(e){return e}):((In=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(n){return function(r){if(r&&r.nodeName&&r.nodeName==="TEXTAREA"&&!Ln.has(r)){var i,s=null,l=window.getComputedStyle(r),o=(i=r.value,function(){c({testForHeightReduction:i===""||!r.value.startsWith(i),restoreTextAlign:null}),i=r.value}),a=(function(h){r.removeEventListener("autosize:destroy",a),r.removeEventListener("autosize:update",u),r.removeEventListener("input",o),window.removeEventListener("resize",u),Object.keys(h).forEach(function(d){return r.style[d]=h[d]}),Ln.delete(r)}).bind(r,{height:r.style.height,resize:r.style.resize,textAlign:r.style.textAlign,overflowY:r.style.overflowY,overflowX:r.style.overflowX,wordWrap:r.style.wordWrap});r.addEventListener("autosize:destroy",a),r.addEventListener("autosize:update",u),r.addEventListener("input",o),window.addEventListener("resize",u),r.style.overflowX="hidden",r.style.wordWrap="break-word",Ln.set(r,{destroy:a,update:u}),u()}function c(h){var d,g,k=h.restoreTextAlign,v=k===void 0?null:k,$=h.testForHeightReduction,b=$===void 0||$,C=l.overflowY;if(r.scrollHeight!==0&&(l.resize==="vertical"?r.style.resize="none":l.resize==="both"&&(r.style.resize="horizontal"),b&&(d=function(T){for(var j=[];T&&T.parentNode&&T.parentNode instanceof Element;)T.parentNode.scrollTop&&j.push([T.parentNode,T.parentNode.scrollTop]),T=T.parentNode;return function(){return j.forEach(function(K){var z=K[0],G=K[1];z.style.scrollBehavior="auto",z.scrollTop=G,z.style.scrollBehavior=null})}}(r),r.style.height=""),g=l.boxSizing==="content-box"?r.scrollHeight-(parseFloat(l.paddingTop)+parseFloat(l.paddingBottom)):r.scrollHeight+parseFloat(l.borderTopWidth)+parseFloat(l.borderBottomWidth),l.maxHeight!=="none"&&g>parseFloat(l.maxHeight)?(l.overflowY==="hidden"&&(r.style.overflow="scroll"),g=parseFloat(l.maxHeight)):l.overflowY!=="hidden"&&(r.style.overflow="hidden"),r.style.height=g+"px",v&&(r.style.textAlign=v),d&&d(),s!==g&&(r.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),s=g),C!==l.overflow&&!v)){var U=l.textAlign;l.overflow==="hidden"&&(r.style.textAlign=U==="start"?"end":"start"),c({restoreTextAlign:U,testForHeightReduction:!0})}}function u(){c({testForHeightReduction:!0,restoreTextAlign:null})}}(n)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Uf),e},In.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Nf),e});var oo=In;const Bf=["data-index"],Vf=["src","title","onClick"];var Wf=pn({__name:"ImageWall",props:{items:{default:()=>[]},columnWidth:{default:300},gap:{default:0}},emits:["insert"],setup(e,{expose:t}){const n=e;t();let r=null;const i=W(null),s=W({}),l=W([]),o=()=>{const d=Math.floor((i.value.getBoundingClientRect().width+n.gap)/(n.columnWidth+n.gap));return d>0?d:1},a=d=>new Array(d).fill(null).map(()=>[]),c=async d=>{var g;if(d>=n.items.length)return;await Kt();const k=Array.from(((g=i.value)==null?void 0:g.children)??[]).reduce((v,$)=>$.getBoundingClientRect().height<v.getBoundingClientRect().height?$:v);l.value[Number(k.dataset.index)].push(d),await c(d+1)},u=async(d=!1)=>{if(l.value.length===o()&&!d)return;l.value=a(o());const g=window.scrollY;await c(0),window.scrollTo({top:g})},h=d=>{s.value[d.target.src]=!0};return mn(()=>{u(!0),r=new ResizeObserver(()=>{u()}),r.observe(i.value),Ke(()=>[n.items],()=>{s.value={},u(!0)}),Ke(()=>[n.columnWidth,n.gap],()=>{u()})}),Ma(()=>r.unobserve(i.value)),(d,g)=>(I(),P("div",{ref_key:"wall",ref:i,class:"wl-gallery",style:rn({gap:`${d.gap}px`})},[(I(!0),P(he,null,qe(l.value,(k,v)=>(I(),P("div",{key:v,class:"wl-gallery-column","data-index":v,style:rn({gap:`${d.gap}px`})},[(I(!0),P(he,null,qe(k,$=>(I(),P(he,{key:$},[s.value[d.items[$].src]?Y("v-if",!0):(I(),ut(q(En),{key:0,size:36,style:{margin:"20px auto"}})),H("img",{class:"wl-gallery-item",src:d.items[$].src,title:d.items[$].title,loading:"lazy",onLoad:h,onClick:b=>d.$emit("insert",`![](${d.items[$].src})`)},null,40,Vf)],64))),128))],12,Bf))),128))],4))}});const qf={key:0,class:"wl-login-info"},Kf={class:"wl-avatar"},Gf=["title"],Zf=["title"],Jf=["src"],Yf=["title","textContent"],Qf={class:"wl-panel"},Xf=["for","textContent"],eh=["id","onUpdate:modelValue","name","type"],th=["placeholder"],nh={class:"wl-preview"},rh=["innerHTML"],ih={class:"wl-footer"},sh={class:"wl-actions"},lh={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},oh=["title"],ah=["title"],ch=["title","aria-label"],uh=["title"],fh={class:"wl-info"},hh={class:"wl-text-number"},dh={key:0},ph=["textContent"],gh=["textContent"],mh=["disabled"],vh=["placeholder"],bh={key:1,class:"wl-loading"},yh={key:0,class:"wl-tab-wrapper"},wh=["title","onClick"],kh=["src","alt"],xh={key:0,class:"wl-tabs"},_h=["onClick"],Ch=["src","alt","title"],$h=["title"];var ao=pn({__name:"CommentBox",props:{edit:{default:null},rootId:{default:""},replyId:{default:""},replyUser:{default:""}},emits:["log","cancelEdit","cancelReply","submit"],setup(e,{emit:t}){const n=e,r=t,i=Qn("config"),s=xf(),l=kf(),o=yr(),a=W({}),c=W(null),u=W(null),h=W(null),d=W(null),g=W(null),k=W(null),v=W(null),$=W({tabs:[],map:{}}),b=W(0),C=W(!1),U=W(!1),T=W(!1),j=W(""),K=W(0),z=un({loading:!0,list:[]}),G=W(0),je=W(!1),Z=W(""),ie=W(!1),be=W(!1),F=_e(()=>i.value.locale),Q=_e(()=>{var O;return!!((O=o.value)!=null&&O.token)}),ce=_e(()=>i.value.imageUploader!==!1),Ce=O=>{const A=c.value,N=A.selectionStart,pe=A.selectionEnd||0,f=A.scrollTop;s.value=A.value.substring(0,N)+O+A.value.substring(pe,A.value.length),A.focus(),A.selectionStart=N+O.length,A.selectionEnd=N+O.length,A.scrollTop=f},we=O=>{if(ie.value)return;const A=O.key;(O.ctrlKey||O.metaKey)&&A==="Enter"&&De()},ke=O=>{const A=`![${i.value.locale.uploading} ${O.name}]()`;return Ce(A),ie.value=!0,Promise.resolve().then(()=>i.value.imageUploader(O)).then(N=>{s.value=s.value.replace(A,`\r
83
- ![${O.name}](${N})`)}).catch(N=>{alert(N.message),s.value=s.value.replace(A,"")}).then(()=>{ie.value=!1})},Ie=O=>{var A;if((A=O.dataTransfer)!=null&&A.items){const N=Al(O.dataTransfer.items);N&&ce.value&&(ke(N),O.preventDefault())}},kt=O=>{if(O.clipboardData){const A=Al(O.clipboardData.items);A&&ce.value&&ke(A)}},jt=()=>{const O=u.value;O.files&&ce.value&&ke(O.files[0]).then(()=>{O.value=""})},De=async()=>{var O,A,N,pe,f,p;const{serverURL:m,lang:w,login:y,wordLimit:x,requiredMeta:E,recaptchaV3Key:R,turnstileKey:S}=i.value,_=await uf(),M={comment:Z.value,nick:l.value.nick,mail:l.value.mail,link:l.value.link,url:i.value.path,ua:_};if(!n.edit)if((O=o.value)!=null&&O.token)M.nick=o.value.display_name,M.mail=o.value.email,M.link=o.value.url;else{if(y==="force")return;if(E.includes("nick")&&!M.nick)return(A=a.value.nick)==null||A.focus(),alert(F.value.nickError);if(E.includes("mail")&&!M.mail||M.mail&&!zo(M.mail))return(N=a.value.mail)==null||N.focus(),alert(F.value.mailError);M.nick||(M.nick=F.value.anonymous)}if(!M.comment){(pe=c.value)==null||pe.focus();return}if(!je.value)return alert(F.value.wordHint.replace("$0",x[0].toString()).replace("$1",x[1].toString()).replace("$2",K.value.toString()));M.comment=Zl(M.comment,$.value.map),n.replyId&&n.rootId&&(M.pid=n.replyId,M.rid=n.rootId,M.at=n.replyUser),ie.value=!0;try{R&&(M.recaptchaV3=await Tf(R).execute("social")),S&&(M.turnstile=await Ef(S).execute("social"));const L={serverURL:m,lang:w,token:(f=o.value)==null?void 0:f.token,comment:M},D=await(n.edit?Xt({objectId:n.edit.objectId,...L}):Si(L));if(ie.value=!1,D.errmsg)return alert(D.errmsg);r("submit",D.data),s.value="",j.value="",await Kt(),n.replyId&&r("cancelReply"),(p=n.edit)!=null&&p.objectId&&r("cancelEdit")}catch(L){ie.value=!1,alert(L.message)}},wr=O=>{O.preventDefault();const{lang:A,serverURL:N}=i.value;Ti({serverURL:N,lang:A}).then(pe=>{o.value=pe,(pe.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(pe)),r("log")})},Ci=()=>{o.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),r("log")},kr=O=>{O.preventDefault();const{lang:A,serverURL:N}=i.value,pe=800,f=800,p=(window.innerWidth-pe)/2,m=(window.innerHeight-f)/2,w=new URLSearchParams({lng:A,token:o.value.token}),y=window.open(`${N}/ui/profile?${w.toString()}`,"_blank",`width=${pe},height=${f},left=${p},top=${m},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);y==null||y.postMessage({type:"TOKEN",data:o.value.token},"*")},zt=O=>{var A,N,pe,f;!((A=h.value)!=null&&A.contains(O.target))&&!((N=d.value)!=null&&N.contains(O.target))&&(C.value=!1),!((pe=g.value)!=null&&pe.contains(O.target))&&!((f=k.value)!=null&&f.contains(O.target))&&(U.value=!1)},Ft=async O=>{var A;const{scrollTop:N,clientHeight:pe,scrollHeight:f}=O.target,p=(pe+N)/f,m=i.value.search,w=((A=v.value)==null?void 0:A.value)??"";p<.9||z.loading||be.value||(z.loading=!0,(m.more&&z.list.length?await m.more(w,z.list.length):await m.search(w)).length?z.list=[...z.list,...m.more&&z.list.length?await m.more(w,z.list.length):await m.search(w)]:be.value=!0,z.loading=!1,setTimeout(()=>{O.target.scrollTop=N},50))},Qt=ru(O=>{z.list=[],be.value=!1,Ft(O)},300);return Ke([i,K],([O,A])=>{const{wordLimit:N}=O;N?A<N[0]&&N[0]!==0?(G.value=N[0],je.value=!1):A>N[1]?(G.value=N[1],je.value=!1):(G.value=N[1],je.value=!0):(G.value=0,je.value=!0)},{immediate:!0}),fr("click",zt),fr("message",({data:O})=>{!O||O.type!=="profile"||(o.value={...o.value,...O.data},[localStorage,sessionStorage].filter(A=>A.getItem("WALINE_USER")).forEach(A=>A.setItem("WALINE_USER",JSON.stringify(o))))}),Ke(U,async O=>{var A;if(!O)return;const N=i.value.search;v.value&&(v.value.value=""),z.loading=!0,z.list=await(((A=N.default)==null?void 0:A.call(N))??N.search("")),z.loading=!1}),mn(()=>{var O;(O=n.edit)!=null&&O.objectId&&(s.value=n.edit.orig),Ke(()=>s.value,A=>{const{highlighter:N,texRenderer:pe}=i.value;Z.value=A,j.value=lf(A,{emojiMap:$.value.map,highlighter:N,texRenderer:pe}),K.value=cf(A),A?oo(c.value):oo.destroy(c.value)},{immediate:!0}),Ke(()=>i.value.emoji,A=>ku(A).then(N=>{$.value=N}),{immediate:!0})}),(O,A)=>{var N,pe;return I(),P("div",{key:q(o).token,class:"wl-comment"},[q(i).login!=="disable"&&Q.value&&!((N=O.edit)!=null&&N.objectId)?(I(),P("div",qf,[H("div",Kf,[H("button",{type:"submit",class:"wl-logout-btn",title:F.value.logout,onClick:Ci},[oe(q(Yl),{size:14})],8,Gf),H("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:F.value.profile,onClick:kr},[H("img",{src:q(o).avatar,alt:"avatar"},null,8,Jf)],8,Zf)]),H("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:F.value.profile,onClick:kr,textContent:X(q(o).display_name)},null,8,Yf)])):Y("v-if",!0),H("div",Qf,[q(i).login!=="force"&&q(i).meta.length&&!Q.value?(I(),P("div",{key:0,class:ve(["wl-header",`item${q(i).meta.length}`])},[(I(!0),P(he,null,qe(q(i).meta,f=>(I(),P("div",{key:f,class:"wl-header-item"},[H("label",{for:`wl-${f}`,textContent:X(F.value[f]+(q(i).requiredMeta.includes(f)||!q(i).requiredMeta.length?"":`(${F.value.optional})`))},null,8,Xf),Jn(H("input",{id:`wl-${f}`,ref_for:!0,ref:p=>{p&&(a.value[f]=p)},"onUpdate:modelValue":p=>q(l)[f]=p,class:ve(["wl-input",`wl-${f}`]),name:f,type:f==="mail"?"email":"text"},null,10,eh),[[qc,q(l)[f]]])]))),128))],2)):Y("v-if",!0),Jn(H("textarea",{id:"wl-edit",ref_key:"editorRef",ref:c,"onUpdate:modelValue":A[0]||(A[0]=f=>xe(s)?s.value=f:null),class:"wl-editor",placeholder:O.replyUser?`@${O.replyUser}`:F.value.placeholder,onKeydown:we,onDrop:Ie,onPaste:kt},null,40,th),[[fi,q(s)]]),Jn(H("div",nh,[A[7]||(A[7]=H("hr",null,null,-1)),H("h4",null,X(F.value.preview)+":",1),H("div",{class:"wl-content",innerHTML:j.value},null,8,rh)],512),[[ol,T.value]]),H("div",ih,[H("div",sh,[H("a",lh,[oe(q(mf))]),Jn(H("button",{ref_key:"emojiButtonRef",ref:h,type:"button",class:ve(["wl-action",{active:C.value}]),title:F.value.emoji,onClick:A[1]||(A[1]=f=>C.value=!C.value)},[oe(q(hf))],10,oh),[[ol,$.value.tabs.length]]),q(i).search?(I(),P("button",{key:0,ref_key:"gifButtonRef",ref:g,type:"button",class:ve(["wl-action",{active:U.value}]),title:F.value.gif,onClick:A[2]||(A[2]=f=>U.value=!U.value)},[oe(q(wf))],10,ah)):Y("v-if",!0),H("input",{id:"wl-image-upload",ref_key:"imageUploadRef",ref:u,class:"upload","aria-hidden":"true",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:jt},null,544),ce.value?(I(),P("label",{key:1,for:"wl-image-upload",class:"wl-action",title:F.value.uploadImage,"aria-label":F.value.uploadImage},[oe(q(df))],8,ch)):Y("v-if",!0),H("button",{type:"button",class:ve(["wl-action",{active:T.value}]),title:F.value.preview,onClick:A[3]||(A[3]=f=>T.value=!T.value)},[oe(q(gf))],10,uh)]),H("div",fh,[A[9]||(A[9]=H("div",{class:"wl-captcha-container"},null,-1)),H("div",hh,[ft(X(K.value)+" ",1),q(i).wordLimit?(I(),P("span",dh,[A[8]||(A[8]=ft("  /  ")),H("span",{class:ve({illegal:!je.value}),textContent:X(G.value)},null,10,ph)])):Y("v-if",!0),ft("  "+X(F.value.word),1)]),q(i).login!=="disable"&&!Q.value?(I(),P("button",{key:0,type:"button",class:"wl-btn",onClick:wr,textContent:X(F.value.login)},null,8,gh)):Y("v-if",!0),q(i).login!=="force"||Q.value?(I(),P("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:ie.value,onClick:De},[ie.value?(I(),ut(q(En),{key:0,size:16})):(I(),P(he,{key:1},[ft(X(F.value.submit),1)],64))],8,mh)):Y("v-if",!0)]),H("div",{ref_key:"gifPopupRef",ref:k,class:ve(["wl-gif-popup",{display:U.value}])},[H("input",{ref_key:"gifSearchInputRef",ref:v,type:"text",placeholder:F.value.gifSearchPlaceholder,onInput:A[4]||(A[4]=(...f)=>q(Qt)&&q(Qt)(...f))},null,40,vh),z.list.length?(I(),ut(Wf,{key:0,items:z.list,"column-width":200,gap:6,onInsert:A[5]||(A[5]=f=>Ce(f)),onScroll:Ft},null,8,["items"])):Y("v-if",!0),z.loading?(I(),P("div",bh,[oe(q(En),{size:30})])):Y("v-if",!0)],2),H("div",{ref_key:"emojiPopupRef",ref:d,class:ve(["wl-emoji-popup",{display:C.value}])},[(I(!0),P(he,null,qe($.value.tabs,(f,p)=>(I(),P(he,{key:f.name},[p===b.value?(I(),P("div",yh,[(I(!0),P(he,null,qe(f.items,m=>(I(),P("button",{key:m,type:"button",title:m,onClick:w=>Ce(`:${m}:`)},[C.value?(I(),P("img",{key:0,class:"wl-emoji",src:$.value.map[m],alt:m,loading:"lazy",referrerPolicy:"no-referrer"},null,8,kh)):Y("v-if",!0)],8,wh))),128))])):Y("v-if",!0)],64))),128)),$.value.tabs.length>1?(I(),P("div",xh,[(I(!0),P(he,null,qe($.value.tabs,(f,p)=>(I(),P("button",{key:f.name,type:"button",class:ve(["wl-tab",{active:b.value===p}]),onClick:m=>b.value=p},[H("img",{class:"wl-emoji",src:f.icon,alt:f.name,title:f.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Ch)],10,_h))),128))])):Y("v-if",!0)],2)])]),O.replyId||(pe=O.edit)!=null&&pe.objectId?(I(),P("button",{key:1,type:"button",class:"wl-close",title:F.value.cancelReply,onClick:A[6]||(A[6]=f=>O.replyId?r("cancelReply"):r("cancelEdit"))},[oe(q(Yl),{size:24})],8,$h)):Y("v-if",!0)])}}});const Sh=["id"],Rh={class:"wl-user","aria-hidden":"true"},Ah=["src"],Th={class:"wl-card"},Eh={class:"wl-head"},Lh=["href"],Ih={key:1,class:"wl-nick"},Mh=["textContent"],Oh=["textContent"],Ph=["textContent"],jh=["textContent"],zh=["textContent"],Fh={class:"wl-comment-actions"},Dh=["title"],Hh=["title"],Uh={class:"wl-meta","aria-hidden":"true"},Nh=["data-value","textContent"],Bh={key:0,class:"wl-content"},Vh={key:0},Wh=["href"],qh=["innerHTML"],Kh={key:1,class:"wl-admin-actions"},Gh={class:"wl-comment-status"},Zh=["disabled","onClick","textContent"],Jh={key:3,class:"wl-quote"};var Yh=pn({__name:"CommentCard",props:{comment:{},edit:{default:null},rootId:{},reply:{default:null}},emits:["log","submit","delete","edit","like","status","sticky","reply"],setup(e,{emit:t}){const n=e,r=t,i=["approved","waiting","spam"],s=Qn("config"),l=Xl(),o=gu(),a=yr(),c=_e(()=>s.value.locale),u=_e(()=>{const{link:b}=n.comment;return b?Zi(b)?b:`https://${b}`:""}),h=_e(()=>l.value.includes(n.comment.objectId)),d=_e(()=>Po(new Date(n.comment.time),o.value,c.value)),g=_e(()=>a.value.type==="administrator"),k=_e(()=>n.comment.user_id&&a.value.objectId===n.comment.user_id),v=_e(()=>{var b;return n.comment.objectId===((b=n.reply)==null?void 0:b.objectId)}),$=_e(()=>{var b;return n.comment.objectId===((b=n.edit)==null?void 0:b.objectId)});return(b,C)=>{var U;const T=Pa("CommentCard",!0);return I(),P("div",{id:b.comment.objectId,class:"wl-card-item"},[H("div",Rh,[b.comment.avatar?(I(),P("img",{key:0,class:"wl-user-avatar",src:b.comment.avatar,alt:""},null,8,Ah)):Y("v-if",!0),b.comment.type?(I(),ut(q(yf),{key:1})):Y("v-if",!0)]),H("div",Th,[H("div",Eh,[u.value?(I(),P("a",{key:0,class:"wl-nick",href:u.value,target:"_blank",rel:"nofollow noopener noreferrer"},X(b.comment.nick),9,Lh)):(I(),P("span",Ih,X(b.comment.nick),1)),b.comment.type==="administrator"?(I(),P("span",{key:2,class:"wl-badge",textContent:X(c.value.admin)},null,8,Mh)):Y("v-if",!0),b.comment.label?(I(),P("span",{key:3,class:"wl-badge",textContent:X(b.comment.label)},null,8,Oh)):Y("v-if",!0),b.comment.sticky?(I(),P("span",{key:4,class:"wl-badge",textContent:X(c.value.sticky)},null,8,Ph)):Y("v-if",!0),typeof b.comment.level=="number"?(I(),P("span",{key:5,class:ve(`wl-badge level${b.comment.level}`),textContent:X(c.value[`level${b.comment.level}`]||`Level ${b.comment.level}`)},null,10,jh)):Y("v-if",!0),H("span",{class:"wl-time",textContent:X(d.value)},null,8,zh),H("div",Fh,[g.value||k.value?(I(),P(he,{key:0},[H("button",{type:"button",class:"wl-edit",onClick:C[0]||(C[0]=j=>r("edit",b.comment))},[oe(q(bf))]),H("button",{type:"button",class:"wl-delete",onClick:C[1]||(C[1]=j=>r("delete",b.comment))},[oe(q(ff))])],64)):Y("v-if",!0),H("button",{type:"button",class:"wl-like",title:h.value?c.value.cancelLike:c.value.like,onClick:C[2]||(C[2]=j=>r("like",b.comment))},[oe(q(pf),{active:h.value},null,8,["active"]),ft(" "+X("like"in b.comment?b.comment.like:""),1)],8,Dh),H("button",{type:"button",class:ve(["wl-reply",{active:v.value}]),title:v.value?c.value.cancelReply:c.value.reply,onClick:C[3]||(C[3]=j=>r("reply",v.value?null:b.comment))},[oe(q(vf))],10,Hh)])]),H("div",Uh,[(I(),P(he,null,qe(["addr","browser","os"],j=>(I(),P(he,null,[b.comment[j]?(I(),P("span",{key:j,class:ve(`wl-${j}`),"data-value":b.comment[j],textContent:X(b.comment[j])},null,10,Nh)):Y("v-if",!0)],64))),64))]),$.value?Y("v-if",!0):(I(),P("div",Bh,[b.comment.reply_user?(I(),P("p",Vh,[H("a",{href:"#"+b.comment.pid},"@"+X(b.comment.reply_user.nick),9,Wh),C[17]||(C[17]=H("span",null,": ",-1))])):Y("v-if",!0),H("div",{innerHTML:b.comment.comment},null,8,qh)])),g.value&&!$.value?(I(),P("div",Kh,[H("span",Gh,[(I(),P(he,null,qe(i,j=>H("button",{key:j,type:"submit",class:ve(`wl-btn wl-${j}`),disabled:b.comment.status===j,onClick:K=>r("status",{status:j,comment:b.comment}),textContent:X(c.value[j])},null,10,Zh)),64))]),g.value&&!("rid"in b.comment)?(I(),P("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:C[4]||(C[4]=j=>r("sticky",b.comment))},X(b.comment.sticky?c.value.unsticky:c.value.sticky),1)):Y("v-if",!0)])):Y("v-if",!0),v.value||$.value?(I(),P("div",{key:2,class:ve({"wl-reply-wrapper":v.value,"wl-edit-wrapper":$.value})},[oe(ao,{edit:b.edit,"reply-id":(U=b.reply)==null?void 0:U.objectId,"reply-user":b.comment.nick,"root-id":b.rootId,onLog:C[5]||(C[5]=j=>r("log")),onCancelReply:C[6]||(C[6]=j=>r("reply",null)),onCancelEdit:C[7]||(C[7]=j=>r("edit",null)),onSubmit:C[8]||(C[8]=j=>r("submit",j))},null,8,["edit","reply-id","reply-user","root-id"])],2)):Y("v-if",!0),"children"in b.comment?(I(),P("div",Jh,[(I(!0),P(he,null,qe(b.comment.children,j=>(I(),ut(T,{key:j.objectId,comment:j,reply:b.reply,edit:b.edit,"root-id":b.rootId,onLog:C[9]||(C[9]=K=>r("log")),onDelete:C[10]||(C[10]=K=>r("delete",K)),onEdit:C[11]||(C[11]=K=>r("edit",K)),onLike:C[12]||(C[12]=K=>r("like",K)),onReply:C[13]||(C[13]=K=>r("reply",K)),onStatus:C[14]||(C[14]=K=>r("status",K)),onSticky:C[15]||(C[15]=K=>r("sticky",K)),onSubmit:C[16]||(C[16]=K=>r("submit",K))},null,8,["comment","reply","edit","root-id"]))),128))])):Y("v-if",!0)])],8,Sh)}}});const co="3.4.0",Qh={"data-waline":""},Xh={class:"wl-meta-head"},ed={class:"wl-count"},td=["textContent"],nd={class:"wl-sort"},rd=["onClick"],id={class:"wl-cards"},sd={key:1,class:"wl-operation"},ld=["textContent"],od={key:2,class:"wl-loading"},ad=["textContent"],cd={key:4,class:"wl-operation"},ud=["textContent"],fd={key:5,class:"wl-power"};var hd=pn({__name:"WalineComment",props:["serverURL","path","meta","requiredMeta","dark","commentSorting","lang","locale","pageSize","wordLimit","emoji","login","highlighter","texRenderer","imageUploader","search","copyright","recaptchaV3Key","turnstileKey","reaction"],setup(e){const t=e,n={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},r=Object.keys(n),i=yr(),s=Xl(),l=W("loading"),o=W(0),a=W(1),c=W(0),u=_e(()=>Io(t)),h=W(u.value.commentSorting),d=W([]),g=W(null),k=W(null),v=_e(()=>Mo(u.value.dark)),$=_e(()=>u.value.locale);bu(v,{id:"waline-darkmode"});let b;const C=F=>{var Q;const{serverURL:ce,path:Ce,pageSize:we}=u.value,ke=new AbortController;l.value="loading",b==null||b(),$i({serverURL:ce,lang:u.value.lang,path:Ce,pageSize:we,sortBy:n[h.value],page:F,signal:ke.signal,token:(Q=i.value)==null?void 0:Q.token}).then(Ie=>{l.value="success",o.value=Ie.count,d.value.push(...Ie.data),a.value=F,c.value=Ie.totalPages}).catch(Ie=>{Ie.name!=="AbortError"&&(console.error(Ie.message),l.value="error")}),b=ke.abort.bind(ke)},U=()=>C(a.value+1),T=()=>{o.value=0,d.value=[],C(1)},j=F=>{h.value!==F&&(h.value=F,T())},K=F=>{g.value=F},z=F=>{k.value=F},G=F=>{if(k.value)k.value.comment=F.comment,k.value.orig=F.orig;else if("rid"in F){const Q=d.value.find(({objectId:ce})=>ce===F.rid);if(!Q)return;Array.isArray(Q.children)||(Q.children=[]),Q.children.push(F)}else d.value.unshift(F),o.value+=1},je=async({comment:F,status:Q})=>{var ce;if(F.status===Q)return;const{serverURL:Ce,lang:we}=u.value;await Xt({serverURL:Ce,lang:we,token:(ce=i.value)==null?void 0:ce.token,objectId:F.objectId,comment:{status:Q}}),F.status=Q},Z=async F=>{var Q;if("rid"in F)return;const{serverURL:ce,lang:Ce}=u.value;await Xt({serverURL:ce,lang:Ce,token:(Q=i.value)==null?void 0:Q.token,objectId:F.objectId,comment:{sticky:F.sticky?0:1}}),F.sticky=!F.sticky},ie=async({objectId:F})=>{var Q;if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:ce,lang:Ce}=u.value;await Ri({serverURL:ce,lang:Ce,token:(Q=i.value)==null?void 0:Q.token,objectId:F}),d.value.some((we,ke)=>we.objectId===F?(d.value=d.value.filter((Ie,kt)=>kt!==ke),!0):we.children.some((Ie,kt)=>Ie.objectId===F?(d.value[ke].children=we.children.filter((jt,De)=>De!==kt),!0):!1))},be=async F=>{var Q;const{serverURL:ce,lang:Ce}=u.value,{objectId:we}=F,ke=s.value.includes(we);await Xt({serverURL:ce,lang:Ce,objectId:we,token:(Q=i.value)==null?void 0:Q.token,comment:{like:!ke}}),ke?s.value=s.value.filter(Ie=>Ie!==we):(s.value=[...s.value,we],s.value.length>50&&(s.value=s.value.slice(-50))),F.like=(F.like||0)+(ke?-1:1)};return Ua("config",u),mn(()=>{Ke(()=>[t.serverURL,t.path],()=>T(),{immediate:!0})}),Yr(()=>b==null?void 0:b()),(F,Q)=>(I(),P("div",Qh,[oe(Hf),!g.value&&!k.value?(I(),ut(ao,{key:0,onLog:T,onSubmit:G})):Y("v-if",!0),H("div",Xh,[H("div",ed,[o.value?(I(),P("span",{key:0,class:"wl-num",textContent:X(o.value)},null,8,td)):Y("v-if",!0),ft(" "+X($.value.comment),1)]),H("ul",nd,[(I(!0),P(he,null,qe(q(r),ce=>(I(),P("li",{key:ce,class:ve([ce===h.value?"active":""]),onClick:Ce=>j(ce)},X($.value[ce]),11,rd))),128))])]),H("div",id,[(I(!0),P(he,null,qe(d.value,ce=>(I(),ut(Yh,{key:ce.objectId,"root-id":ce.objectId,comment:ce,reply:g.value,edit:k.value,onLog:T,onReply:K,onEdit:z,onSubmit:G,onStatus:je,onDelete:ie,onSticky:Z,onLike:be},null,8,["root-id","comment","reply","edit"]))),128))]),l.value==="error"?(I(),P("div",sd,[H("button",{type:"button",class:"wl-btn",onClick:T,textContent:X($.value.refresh)},null,8,ld)])):l.value==="loading"?(I(),P("div",od,[oe(q(En),{size:30})])):d.value.length?a.value<c.value?(I(),P("div",cd,[H("button",{type:"button",class:"wl-btn",onClick:U,textContent:X($.value.more)},null,8,ud)])):Y("v-if",!0):(I(),P("div",{key:3,class:"wl-empty",textContent:X($.value.sofa)},null,8,ad)),u.value.copyright?(I(),P("div",fd,[Q[0]||(Q[0]=ft(" Powered by ")),Q[1]||(Q[1]=H("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1)),ft(" v"+X(q(co)),1)])):Y("v-if",!0)]))}});const uo=(e,t)=>{t.forEach((n,r)=>{const i=e[r].time;typeof i=="number"&&(n.innerText=i.toString())})},fo=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:r=!0,lang:i=navigator.language})=>{const s=new AbortController,l=Array.from(document.querySelectorAll(n)),o=c=>{const u=xi(c);return u!==null&&t!==u},a=c=>Ei({serverURL:jn(e),paths:c.map(u=>xi(u)??t),lang:i,signal:s.signal}).then(u=>uo(u,c)).catch(Rl);if(r){const c=l.filter(h=>!o(h)),u=l.filter(o);Li({serverURL:jn(e),path:t,lang:i}).then(h=>uo(h,c)),u.length&&a(u)}else a(l);return s.abort.bind(s)},dd=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...i})=>{const s=e?di(e):null;if(e&&!s)throw new Error("Option 'el' do not match any domElement!");if(!i.serverURL)throw new Error("Option 'serverURL' is missing!");const l=un({...i}),o=un({comment:n,pageview:r,path:t}),a=()=>{o.comment&&Jl({serverURL:l.serverURL,path:o.path,...Dt(o.comment)?{selector:o.comment}:{}})},c=()=>{o.pageview&&fo({serverURL:l.serverURL,path:o.path,...Dt(o.pageview)?{selector:o.pageview}:{}})},u=s?Jc(()=>ne(hd,{path:o.path,...l})):null;u&&u.mount(s);const h=Ws(a),d=Ws(c);return{el:s,update:({comment:g,pageview:k,path:v=window.location.pathname,...$}={})=>{Object.entries($).forEach(([b,C])=>{l[b]=C}),o.path=v,g!==void 0&&(o.comment=g),k!==void 0&&(o.pageview=k)},destroy:()=>{u==null||u.unmount(),h(),d()}}},pd=({el:e,serverURL:t,count:n,lang:r=navigator.language})=>{var i;const s=yr(),l=di(e),o=new AbortController;return Ii({serverURL:t,count:n,lang:r,signal:o.signal,token:(i=s.value)==null?void 0:i.token}).then(a=>l&&a.length?(l.innerHTML=`<ul class="wl-recent-list">${a.map(c=>`<li class="wl-recent-item"><a href="${c.url}">${c.nick}</a>:${c.comment}</li>`).join("")}</ul>`,{comments:a,destroy:()=>{o.abort(),l.innerHTML=""}}):{comments:a,destroy:()=>o.abort()})},gd=({el:e,serverURL:t,count:n,locale:r,lang:i=navigator.language,mode:s="list"})=>{const l=di(e),o=new AbortController;return Mi({serverURL:t,pageSize:n,lang:i,signal:o.signal}).then(a=>!l||!a.length?{users:a,destroy:()=>o.abort()}:(r={...Wi(i),...typeof r=="object"?r:{}},l.innerHTML=`<ul class="wl-user-${s}">${a.map((c,u)=>[`<li class="wl-user-item" aria-label="${c.nick}">`,c.link&&`<a href="${c.link}" target="_blank">`,'<div class="wl-user-avatar">',`<img src="${c.avatar}" alt="${c.nick}">`,`<span class="wl-user-badge">${u+1}</span>`,"</div>",'<div class="wl-user-meta">','<div class="wl-user-name">',c.nick,c.level&&`<span class="wl-badge">${r?r[`level${c.level}`]:`Level ${c.level}`}</span>`,c.label&&`<span class="wl-badge">${c.label}</span>`,"</div>",c.link&&c.link,"</div>",c.link&&"</a>","</li>"].filter(h=>h).join("")).join("")}</ul>`,{users:a,destroy:()=>{o.abort(),l.innerHTML=""}}))};re.RecentComments=pd,re.UserList=gd,re.addComment=Si,re.commentCount=Jl,re.defaultLocales=Pn,re.deleteComment=Ri,re.fetchCommentCount=Ai,re.getArticleCounter=xr,re.getComment=$i,re.getPageview=Ei,re.getRecentComment=Ii,re.getUserList=Mi,re.init=dd,re.login=Ti,re.pageviewCount=fo,re.updateArticleCounter=On,re.updateComment=Xt,re.updatePageview=Li,re.version=co});
79
+ `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${tt(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:n,tokens:r}){const i=this.parser.parseInline(r),s=ql(t);if(s===null)return i;t=s;let l='<a href="'+t+'"';return n&&(l+=' title="'+tt(n)+'"'),l+=">"+i+"</a>",l}image({href:t,title:n,text:r}){const i=ql(t);if(i===null)return tt(r);t=i;let s=`<img src="${t}" alt="${r}"`;return n&&(s+=` title="${tt(n)}"`),s+=">",s}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:tt(t.text)}}class Ci{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}}class Ke{options;renderer;textRenderer;constructor(t){this.options=t||Mt,this.options.renderer=this.options.renderer||new yr,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ci}static parse(t,n){return new Ke(n).parse(t)}static parseInline(t,n){return new Ke(n).parseInline(t)}parse(t,n=!0){var i,s;let r="";for(let l=0;l<t.length;l++){const o=t[l];if((s=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&s[o.type]){const c=o,u=this.options.extensions.renderers[c.type].call({parser:this},c);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(c.type)){r+=u||"";continue}}const a=o;switch(a.type){case"space":{r+=this.renderer.space(a);continue}case"hr":{r+=this.renderer.hr(a);continue}case"heading":{r+=this.renderer.heading(a);continue}case"code":{r+=this.renderer.code(a);continue}case"table":{r+=this.renderer.table(a);continue}case"blockquote":{r+=this.renderer.blockquote(a);continue}case"list":{r+=this.renderer.list(a);continue}case"html":{r+=this.renderer.html(a);continue}case"paragraph":{r+=this.renderer.paragraph(a);continue}case"text":{let c=a,u=this.renderer.text(c);for(;l+1<t.length&&t[l+1].type==="text";)c=t[++l],u+=`
80
+ `+this.renderer.text(c);n?r+=this.renderer.paragraph({type:"paragraph",raw:u,text:u,tokens:[{type:"text",raw:u,text:u,escaped:!0}]}):r+=u;continue}default:{const c='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return r}parseInline(t,n=this.renderer){var i,s;let r="";for(let l=0;l<t.length;l++){const o=t[l];if((s=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&s[o.type]){const c=this.options.extensions.renderers[o.type].call({parser:this},o);if(c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){r+=c||"";continue}}const a=o;switch(a.type){case"escape":{r+=n.text(a);break}case"html":{r+=n.html(a);break}case"link":{r+=n.link(a);break}case"image":{r+=n.image(a);break}case"strong":{r+=n.strong(a);break}case"em":{r+=n.em(a);break}case"codespan":{r+=n.codespan(a);break}case"br":{r+=n.br(a);break}case"del":{r+=n.del(a);break}case"text":{r+=n.text(a);break}default:{const c='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return r}}class Rn{options;block;constructor(t){this.options=t||Mt}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?qe.lex:qe.lexInline}provideParser(){return this.block?Ke.parse:Ke.parseInline}}xo(Rn,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class Zl{defaults=mi();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Ke;Renderer=yr;TextRenderer=Ci;Lexer=qe;Tokenizer=br;Hooks=Rn;constructor(...t){this.use(...t)}walkTokens(t,n){var i,s;let r=[];for(const l of t)switch(r=r.concat(n.call(this,l)),l.type){case"table":{const o=l;for(const a of o.header)r=r.concat(this.walkTokens(a.tokens,n));for(const a of o.rows)for(const c of a)r=r.concat(this.walkTokens(c.tokens,n));break}case"list":{const o=l;r=r.concat(this.walkTokens(o.items,n));break}default:{const o=l;(s=(i=this.defaults.extensions)==null?void 0:i.childTokens)!=null&&s[o.type]?this.defaults.extensions.childTokens[o.type].forEach(a=>{const c=o[a].flat(1/0);r=r.concat(this.walkTokens(c,n))}):o.tokens&&(r=r.concat(this.walkTokens(o.tokens,n)))}}return r}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{const i={...r};if(i.async=this.defaults.async||i.async||!1,r.extensions&&(r.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){const l=n.renderers[s.name];l?n.renderers[s.name]=function(...o){let a=s.renderer.apply(this,o);return a===!1&&(a=l.apply(this,o)),a}:n.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const l=n[s.level];l?l.unshift(s.tokenizer):n[s.level]=[s.tokenizer],s.start&&(s.level==="block"?n.startBlock?n.startBlock.push(s.start):n.startBlock=[s.start]:s.level==="inline"&&(n.startInline?n.startInline.push(s.start):n.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(n.childTokens[s.name]=s.childTokens)}),i.extensions=n),r.renderer){const s=this.defaults.renderer||new yr(this.defaults);for(const l in r.renderer){if(!(l in s))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;const o=l,a=r.renderer[o],c=s[o];s[o]=(...u)=>{let h=a.apply(s,u);return h===!1&&(h=c.apply(s,u)),h||""}}i.renderer=s}if(r.tokenizer){const s=this.defaults.tokenizer||new br(this.defaults);for(const l in r.tokenizer){if(!(l in s))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;const o=l,a=r.tokenizer[o],c=s[o];s[o]=(...u)=>{let h=a.apply(s,u);return h===!1&&(h=c.apply(s,u)),h}}i.tokenizer=s}if(r.hooks){const s=this.defaults.hooks||new Rn;for(const l in r.hooks){if(!(l in s))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;const o=l,a=r.hooks[o],c=s[o];Rn.passThroughHooks.has(l)?s[o]=u=>{if(this.defaults.async)return Promise.resolve(a.call(s,u)).then(d=>c.call(s,d));const h=a.call(s,u);return c.call(s,h)}:s[o]=(...u)=>{let h=a.apply(s,u);return h===!1&&(h=c.apply(s,u)),h}}i.hooks=s}if(r.walkTokens){const s=this.defaults.walkTokens,l=r.walkTokens;i.walkTokens=function(o){let a=[];return a.push(l.call(this,o)),s&&(a=a.concat(s.call(this,o))),a}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return qe.lex(t,n??this.defaults)}parser(t,n){return Ke.parse(t,n??this.defaults)}parseMarkdown(t){return(r,i)=>{const s={...i},l={...this.defaults,...s},o=this.onError(!!l.silent,!!l.async);if(this.defaults.async===!0&&s.async===!1)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));l.hooks&&(l.hooks.options=l,l.hooks.block=t);const a=l.hooks?l.hooks.provideLexer():t?qe.lex:qe.lexInline,c=l.hooks?l.hooks.provideParser():t?Ke.parse:Ke.parseInline;if(l.async)return Promise.resolve(l.hooks?l.hooks.preprocess(r):r).then(u=>a(u,l)).then(u=>l.hooks?l.hooks.processAllTokens(u):u).then(u=>l.walkTokens?Promise.all(this.walkTokens(u,l.walkTokens)).then(()=>u):u).then(u=>c(u,l)).then(u=>l.hooks?l.hooks.postprocess(u):u).catch(o);try{l.hooks&&(r=l.hooks.preprocess(r));let u=a(r,l);l.hooks&&(u=l.hooks.processAllTokens(u)),l.walkTokens&&this.walkTokens(u,l.walkTokens);let h=c(u,l);return l.hooks&&(h=l.hooks.postprocess(h)),h}catch(u){return o(u)}}}onError(t,n){return r=>{if(r.message+=`
81
+ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An error occurred:</p><pre>"+tt(r.message+"",!0)+"</pre>";return n?Promise.resolve(i):i}if(n)return Promise.reject(r);throw r}}}const Pt=new Zl;function de(e,t){return Pt.parse(e,t)}de.options=de.setOptions=function(e){return Pt.setOptions(e),de.defaults=Pt.defaults,Ol(de.defaults),de},de.getDefaults=mi,de.defaults=Mt,de.use=function(...e){return Pt.use(...e),de.defaults=Pt.defaults,Ol(de.defaults),de},de.walkTokens=function(e,t){return Pt.walkTokens(e,t)},de.parseInline=Pt.parseInline,de.Parser=Ke,de.parser=Ke.parse,de.Renderer=yr,de.TextRenderer=Ci,de.Lexer=qe,de.lexer=qe.lex,de.Tokenizer=br,de.Hooks=Rn,de.parse=de;function rf(e){if(typeof e=="function"&&(e={highlight:e}),!e||typeof e.highlight!="function")throw new Error("Must provide highlight function");return typeof e.langPrefix!="string"&&(e.langPrefix="language-"),typeof e.emptyLangClass!="string"&&(e.emptyLangClass=""),{async:!!e.async,walkTokens(t){if(t.type!=="code")return;const n=Jl(t.lang);if(e.async)return Promise.resolve(e.highlight(t.text,n,t.lang||"")).then(Yl(t));const r=e.highlight(t.text,n,t.lang||"");if(r instanceof Promise)throw new Error("markedHighlight is not set to async but the highlight function is async. Set the async option to true on markedHighlight to await the async highlight function.");Yl(t)(r)},useNewRenderer:!0,renderer:{code(t,n,r){typeof t=="object"&&(r=t.escaped,n=t.lang,t=t.text);const i=Jl(n),s=i?e.langPrefix+to(i):e.emptyLangClass,l=s?` class="${s}"`:"";return t=t.replace(/\n$/,""),`<pre><code${l}>${r?t:to(t,!0)}
82
+ </code></pre>`}}}}function Jl(e){return(e||"").match(/\S*/)[0]}function Yl(e){return t=>{typeof t=="string"&&t!==e.text&&(e.escaped=!0,e.text=t)}}const Xl=/[&<>"']/,sf=new RegExp(Xl.source,"g"),Ql=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,lf=new RegExp(Ql.source,"g"),of={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},eo=e=>of[e];function to(e,t){if(t){if(Xl.test(e))return e.replace(sf,eo)}else if(Ql.test(e))return e.replace(lf,eo);return e}const af=/\$.*?\$/,cf=/^\$(.*?)\$/,uf=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,ff=e=>[{name:"blockMath",level:"block",tokenizer(t){const n=uf.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!0,n[1])}}},{name:"inlineMath",level:"inline",start(t){const n=t.search(af);return n!==-1?n:t.length},tokenizer(t){const n=cf.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!1,n[1])}}}],no=(e="",t={})=>e.replace(/:(.+?):/g,(n,r)=>t[r]?`<img class="wl-emoji" src="${t[r]}" alt="${r}">`:n),hf=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{const i=new Zl;if(i.setOptions({breaks:!0}),n&&i.use(rf({highlight:n})),r){const s=ff(r);i.use({extensions:s})}return i.parse(no(e,t))},Si=e=>{const{path:t}=e.dataset;return t!=null&&t.length?t:null},df=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),pf=e=>e.match(/[\u4E00-\u9FD5]/gu),gf=e=>{var t,n;return(((t=df(e))==null?void 0:t.reduce((r,i)=>r+(["",",","."].includes(i.trim())?0:i.trim().split(/\s+/u).length),0))??0)+(((n=pf(e))==null?void 0:n.length)??0)},mf=async()=>{const{userAgentData:e}=navigator;let t=navigator.userAgent;if(!e||e.platform!=="Windows")return t;const{platformVersion:n}=await e.getHighEntropyValues(["platformVersion"]);return n&&parseInt(n.split(".")[0])>=13&&(t=t.replace("Windows NT 10.0","Windows NT 11.0")),t},ro=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count",lang:r=navigator.language})=>{const i=new AbortController,s=document.querySelectorAll(n);return s.length&&Li({serverURL:jn(e),paths:Array.from(s).map(l=>Yi(Si(l)??t)),lang:r,signal:i.signal}).then(l=>{s.forEach((o,a)=>{o.innerText=l[a].toString()})}).catch(Ml),i.abort.bind(i)},io=({size:e})=>re("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[re("path",{d:"M697.173 85.333h-369.92c-144.64 0-241.92 101.547-241.92 252.587v348.587c0 150.613 97.28 252.16 241.92 252.16h369.92c144.64 0 241.494-101.547 241.494-252.16V337.92c0-151.04-96.854-252.587-241.494-252.587z",fill:"currentColor"}),re("path",{d:"m640.683 587.52-75.947-75.861 75.904-75.862a37.29 37.29 0 0 0 0-52.778 37.205 37.205 0 0 0-52.779 0l-75.946 75.818-75.862-75.946a37.419 37.419 0 0 0-52.821 0 37.419 37.419 0 0 0 0 52.821l75.947 75.947-75.776 75.733a37.29 37.29 0 1 0 52.778 52.821l75.776-75.776 75.947 75.947a37.376 37.376 0 0 0 52.779-52.821z",fill:"#888"})]),vf=()=>re("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},re("path",{d:"m341.013 394.667 27.755 393.45h271.83l27.733-393.45h64.106l-28.01 397.952a64 64 0 0 1-63.83 59.498H368.768a64 64 0 0 1-63.83-59.52l-28.053-397.93h64.128zm139.307 19.818v298.667h-64V414.485h64zm117.013 0v298.667h-64V414.485h64zM181.333 288h640v64h-640v-64zm453.483-106.667v64h-256v-64h256z",fill:"red"})),bf=()=>re("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},re("path",{d:"M563.2 463.3 677 540c1.7 1.2 3.7 1.8 5.8 1.8.7 0 1.4-.1 2-.2 2.7-.5 5.1-2.1 6.6-4.4l25.3-37.8c1.5-2.3 2.1-5.1 1.6-7.8s-2.1-5.1-4.4-6.6l-73.6-49.1 73.6-49.1c2.3-1.5 3.9-3.9 4.4-6.6.5-2.7 0-5.5-1.6-7.8l-25.3-37.8a10.1 10.1 0 0 0-6.6-4.4c-.7-.1-1.3-.2-2-.2-2.1 0-4.1.6-5.8 1.8l-113.8 76.6c-9.2 6.2-14.7 16.4-14.7 27.5.1 11 5.5 21.3 14.7 27.4zM387 348.8h-45.5c-5.7 0-10.4 4.7-10.4 10.4v153.3c0 5.7 4.7 10.4 10.4 10.4H387c5.7 0 10.4-4.7 10.4-10.4V359.2c0-5.7-4.7-10.4-10.4-10.4zm333.8 241.3-41-20a10.3 10.3 0 0 0-8.1-.5c-2.6.9-4.8 2.9-5.9 5.4-30.1 64.9-93.1 109.1-164.4 115.2-5.7.5-9.9 5.5-9.5 11.2l3.9 45.5c.5 5.3 5 9.5 10.3 9.5h.9c94.8-8 178.5-66.5 218.6-152.7 2.4-5 .3-11.2-4.8-13.6zm186-186.1c-11.9-42-30.5-81.4-55.2-117.1-24.1-34.9-53.5-65.6-87.5-91.2-33.9-25.6-71.5-45.5-111.6-59.2-41.2-14-84.1-21.1-127.8-21.1h-1.2c-75.4 0-148.8 21.4-212.5 61.7-63.7 40.3-114.3 97.6-146.5 165.8-32.2 68.1-44.3 143.6-35.1 218.4 9.3 74.8 39.4 145 87.3 203.3.1.2.3.3.4.5l36.2 38.4c1.1 1.2 2.5 2.1 3.9 2.6 73.3 66.7 168.2 103.5 267.5 103.5 73.3 0 145.2-20.3 207.7-58.7 37.3-22.9 70.3-51.5 98.1-85 27.1-32.7 48.7-69.5 64.2-109.1 15.5-39.7 24.4-81.3 26.6-123.8 2.4-43.6-2.5-87-14.5-129zm-60.5 181.1c-8.3 37-22.8 72-43 104-19.7 31.1-44.3 58.6-73.1 81.7-28.8 23.1-61 41-95.7 53.4-35.6 12.7-72.9 19.1-110.9 19.1-82.6 0-161.7-30.6-222.8-86.2l-34.1-35.8c-23.9-29.3-42.4-62.2-55.1-97.7-12.4-34.7-18.8-71-19.2-107.9-.4-36.9 5.4-73.3 17.1-108.2 12-35.8 30-69.2 53.4-99.1 31.7-40.4 71.1-72 117.2-94.1 44.5-21.3 94-32.6 143.4-32.6 49.3 0 97 10.8 141.8 32 34.3 16.3 65.3 38.1 92 64.8 26.1 26 47.5 56 63.6 89.2 16.2 33.2 26.6 68.5 31 105.1 4.6 37.5 2.7 75.3-5.6 112.3z",fill:"currentColor"})),yf=()=>re("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[re("path",{d:"M784 112H240c-88 0-160 72-160 160v480c0 88 72 160 160 160h544c88 0 160-72 160-160V272c0-88-72-160-160-160zm96 640c0 52.8-43.2 96-96 96H240c-52.8 0-96-43.2-96-96V272c0-52.8 43.2-96 96-96h544c52.8 0 96 43.2 96 96v480z",fill:"currentColor"}),re("path",{d:"M352 480c52.8 0 96-43.2 96-96s-43.2-96-96-96-96 43.2-96 96 43.2 96 96 96zm0-128c17.6 0 32 14.4 32 32s-14.4 32-32 32-32-14.4-32-32 14.4-32 32-32zm462.4 379.2-3.2-3.2-177.6-177.6c-25.6-25.6-65.6-25.6-91.2 0l-80 80-36.8-36.8c-25.6-25.6-65.6-25.6-91.2 0L200 728c-4.8 6.4-8 14.4-8 24 0 17.6 14.4 32 32 32 9.6 0 16-3.2 22.4-9.6L380.8 640l134.4 134.4c6.4 6.4 14.4 9.6 24 9.6 17.6 0 32-14.4 32-32 0-9.6-4.8-17.6-9.6-24l-52.8-52.8 80-80L769.6 776c6.4 4.8 12.8 8 20.8 8 17.6 0 32-14.4 32-32 0-8-3.2-16-8-20.8z",fill:"currentColor"})]),wf=({active:e=!1})=>re("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[re("path",{d:`M850.654 323.804c-11.042-25.625-26.862-48.532-46.885-68.225-20.022-19.61-43.258-34.936-69.213-45.73-26.78-11.124-55.124-16.727-84.375-16.727-40.622 0-80.256 11.123-114.698 32.135A214.79 214.79 0 0 0 512 241.819a214.79 214.79 0 0 0-23.483-16.562c-34.442-21.012-74.076-32.135-114.698-32.135-29.25 0-57.595 5.603-84.375 16.727-25.872 10.711-49.19 26.12-69.213 45.73-20.105 19.693-35.843 42.6-46.885 68.225-11.453 26.615-17.303 54.877-17.303 83.963 0 27.439 5.603 56.03 16.727 85.117 9.31 24.307 22.659 49.52 39.715 74.981 27.027 40.293 64.188 82.316 110.33 124.915 76.465 70.615 152.189 119.394 155.402 121.371l19.528 12.525c8.652 5.52 19.776 5.52 28.427 0l19.529-12.525c3.213-2.06 78.854-50.756 155.401-121.371 46.143-42.6 83.304-84.622 110.33-124.915 17.057-25.46 30.487-50.674 39.716-74.981 11.124-29.087 16.727-57.678 16.727-85.117.082-29.086-5.768-57.348-17.221-83.963z${e?"":"M512 761.5S218.665 573.55 218.665 407.767c0-83.963 69.461-152.023 155.154-152.023 60.233 0 112.473 33.618 138.181 82.727 25.708-49.109 77.948-82.727 138.18-82.727 85.694 0 155.155 68.06 155.155 152.023C805.335 573.551 512 761.5 512 761.5z"}`,fill:e?"red":"currentColor"})]),kf=()=>re("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[re("path",{d:"M710.816 654.301c70.323-96.639 61.084-230.578-23.705-314.843-46.098-46.098-107.183-71.109-172.28-71.109-65.008 0-126.092 25.444-172.28 71.109-45.227 46.098-70.756 107.183-70.756 172.106 0 64.923 25.444 126.007 71.194 172.106 46.099 46.098 107.184 71.109 172.28 71.109 51.414 0 100.648-16.212 142.824-47.404l126.53 126.006c7.058 7.06 16.297 10.979 26.406 10.979 10.105 0 19.343-3.919 26.402-10.979 14.467-14.467 14.467-38.172 0-52.723L710.816 654.301zm-315.107-23.265c-65.88-65.88-65.88-172.54 0-238.42 32.069-32.07 74.245-49.149 119.471-49.149 45.227 0 87.407 17.603 119.472 49.149 65.88 65.879 65.88 172.539 0 238.42-63.612 63.178-175.242 63.178-238.943 0zm0 0",fill:"currentColor"}),re("path",{d:"M703.319 121.603H321.03c-109.8 0-199.469 89.146-199.469 199.38v382.034c0 109.796 89.236 199.38 199.469 199.38h207.397c20.653 0 37.384-16.645 37.384-37.299 0-20.649-16.731-37.296-37.384-37.296H321.03c-68.582 0-124.352-55.77-124.352-124.267V321.421c0-68.496 55.77-124.267 124.352-124.267h382.289c68.582 0 124.352 55.771 124.352 124.267V524.72c0 20.654 16.736 37.299 37.385 37.299 20.654 0 37.384-16.645 37.384-37.299V320.549c-.085-109.8-89.321-198.946-199.121-198.946zm0 0",fill:"currentColor"})]),xf=()=>re("svg",{width:"16",height:"16",ariaHidden:"true"},re("path",{d:"M14.85 3H1.15C.52 3 0 3.52 0 4.15v7.69C0 12.48.52 13 1.15 13h13.69c.64 0 1.15-.52 1.15-1.15v-7.7C16 3.52 15.48 3 14.85 3zM9 11H7V8L5.5 9.92 4 8v3H2V5h2l1.5 2L7 5h2v6zm2.99.5L9.5 8H11V5h2v3h1.5l-2.51 3.5z",fill:"currentColor"})),_f=()=>re("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},re("path",{d:"M810.667 213.333a64 64 0 0 1 64 64V704a64 64 0 0 1-64 64H478.336l-146.645 96.107a21.333 21.333 0 0 1-33.024-17.856V768h-85.334a64 64 0 0 1-64-64V277.333a64 64 0 0 1 64-64h597.334zm0 64H213.333V704h149.334v63.296L459.243 704h351.424V277.333zm-271.36 213.334v64h-176.64v-64h176.64zm122.026-128v64H362.667v-64h298.666z",fill:"currentColor"})),Cf=()=>re("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},re("path",{d:"M813.039 318.772L480.53 651.278H360.718V531.463L693.227 198.961C697.904 194.284 704.027 192 710.157 192C716.302 192 722.436 194.284 727.114 198.961L813.039 284.88C817.72 289.561 820 295.684 820 301.825C820 307.95 817.72 314.093 813.039 318.772ZM710.172 261.888L420.624 551.431V591.376H460.561L750.109 301.825L710.172 261.888ZM490.517 291.845H240.906V771.09H720.156V521.479C720.156 504.947 733.559 491.529 750.109 491.529C766.653 491.529 780.063 504.947 780.063 521.479V791.059C780.063 813.118 762.18 831 740.125 831H220.937C198.882 831 181 813.118 181 791.059V271.872C181 249.817 198.882 231.935 220.937 231.935H490.517C507.06 231.935 520.47 245.352 520.47 261.888C520.47 278.424 507.06 291.845 490.517 291.845Z",fill:"currentColor"})),Sf=()=>re("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},re("path",{d:"m894.4 461.56-54.4-63.2c-10.4-12-18.8-34.4-18.8-50.4v-68c0-42.4-34.8-77.2-77.2-77.2h-68c-15.6 0-38.4-8.4-50.4-18.8l-63.2-54.4c-27.6-23.6-72.8-23.6-100.8 0l-62.8 54.8c-12 10-34.8 18.4-50.4 18.4h-69.2c-42.4 0-77.2 34.8-77.2 77.2v68.4c0 15.6-8.4 38-18.4 50l-54 63.6c-23.2 27.6-23.2 72.4 0 100l54 63.6c10 12 18.4 34.4 18.4 50v68.4c0 42.4 34.8 77.2 77.2 77.2h69.2c15.6 0 38.4 8.4 50.4 18.8l63.2 54.4c27.6 23.6 72.8 23.6 100.8 0l63.2-54.4c12-10.4 34.4-18.8 50.4-18.8h68c42.4 0 77.2-34.8 77.2-77.2v-68c0-15.6 8.4-38.4 18.8-50.4l54.4-63.2c23.2-27.6 23.2-73.2-.4-100.8zm-216-25.2-193.2 193.2a30 30 0 0 1-42.4 0l-96.8-96.8a30.16 30.16 0 0 1 0-42.4c11.6-11.6 30.8-11.6 42.4 0l75.6 75.6 172-172c11.6-11.6 30.8-11.6 42.4 0 11.6 11.6 11.6 30.8 0 42.4z",fill:"#27ae60"})),An=({size:e=100})=>re("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},re("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},re("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),$f=()=>re("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[re("path",{style:"transform: translateY(0.5px)",d:"M18.968 10.5H15.968V11.484H17.984V12.984H15.968V15H14.468V9H18.968V10.5V10.5ZM8.984 9C9.26533 9 9.49967 9.09367 9.687 9.281C9.87433 9.46833 9.968 9.70267 9.968 9.984V10.5H6.499V13.5H8.468V12H9.968V14.016C9.968 14.2973 9.87433 14.5317 9.687 14.719C9.49967 14.9063 9.26533 15 8.984 15H5.984C5.70267 15 5.46833 14.9063 5.281 14.719C5.09367 14.5317 5 14.2973 5 14.016V9.985C5 9.70367 5.09367 9.46933 5.281 9.282C5.46833 9.09467 5.70267 9.001 5.984 9.001H8.984V9ZM11.468 9H12.968V15H11.468V9V9Z"}),re("path",{d:"M18.5 3H5.75C3.6875 3 2 4.6875 2 6.75V18C2 20.0625 3.6875 21.75 5.75 21.75H18.5C20.5625 21.75 22.25 20.0625 22.25 18V6.75C22.25 4.6875 20.5625 3 18.5 3ZM20.75 18C20.75 19.2375 19.7375 20.25 18.5 20.25H5.75C4.5125 20.25 3.5 19.2375 3.5 18V6.75C3.5 5.5125 4.5125 4.5 5.75 4.5H18.5C19.7375 4.5 20.75 5.5125 20.75 6.75V18Z"})]),Rf=()=>Zt("WALINE_USER_META",{nick:"",mail:"",link:""}),Af=()=>Zt("WALINE_COMMENT_BOX_EDITOR",""),Tf="WALINE_LIKE";let so=null;const lo=()=>so??(so=Zt(Tf,[])),Ef="WALINE_REACTION";let oo=null;const Lf=()=>oo??(oo=Zt(Ef,{}));var $i={},ht={},dt={},ao;function co(){if(ao)return dt;ao=1;var e=dt&&dt.__awaiter||function(r,i,s,l){function o(a){return a instanceof s?a:new s(function(c){c(a)})}return new(s||(s=Promise))(function(a,c){function u(g){try{d(l.next(g))}catch(x){c(x)}}function h(g){try{d(l.throw(g))}catch(x){c(x)}}function d(g){g.done?a(g.value):o(g.value).then(u,h)}d((l=l.apply(r,i||[])).next())})},t=dt&&dt.__generator||function(r,i){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},l,o,a,c;return c={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(d){return function(g){return h([d,g])}}function h(d){if(l)throw new TypeError("Generator is already executing.");for(;c&&(c=0,d[0]&&(s=0)),s;)try{if(l=1,o&&(a=d[0]&2?o.return:d[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,d[1])).done)return a;switch(o=0,a&&(d=[d[0]&2,a.value]),d[0]){case 0:case 1:a=d;break;case 4:return s.label++,{value:d[1],done:!1};case 5:s.label++,o=d[1],d=[0];continue;case 7:d=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){s=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){s.label=d[1];break}if(d[0]===6&&s.label<a[1]){s.label=a[1],a=d;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(d);break}a[2]&&s.ops.pop(),s.trys.pop();continue}d=i.call(r,s)}catch(g){d=[6,g],o=0}finally{l=a=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}};Object.defineProperty(dt,"__esModule",{value:!0}),dt.ReCaptchaInstance=void 0;var n=function(){function r(i,s,l){this.siteKey=i,this.recaptchaID=s,this.recaptcha=l,this.styleContainer=null}return r.prototype.execute=function(i){return e(this,void 0,void 0,function(){var s;return t(this,function(l){switch(l.label){case 0:return this.recaptcha.enterprise?[4,this.recaptcha.enterprise.execute(this.recaptchaID,{action:i})]:[3,2];case 1:return s=l.sent(),[3,4];case 2:return[4,this.recaptcha.execute(this.recaptchaID,{action:i})];case 3:s=l.sent(),l.label=4;case 4:return[2,s]}})})},r.prototype.getSiteKey=function(){return this.siteKey},r.prototype.hideBadge=function(){this.styleContainer===null&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},r.prototype.showBadge=function(){this.styleContainer!==null&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},r}();return dt.ReCaptchaInstance=n,dt}var uo;function If(){if(uo)return ht;uo=1;var e=ht&&ht.__assign||function(){return e=Object.assign||function(i){for(var s,l=1,o=arguments.length;l<o;l++){s=arguments[l];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(i[a]=s[a])}return i},e.apply(this,arguments)};Object.defineProperty(ht,"__esModule",{value:!0}),ht.getInstance=ht.load=void 0;var t=co(),n;(function(i){i[i.NOT_LOADED=0]="NOT_LOADED",i[i.LOADING=1]="LOADING",i[i.LOADED=2]="LOADED"})(n||(n={}));var r=function(){function i(){}return i.load=function(s,l){if(l===void 0&&(l={}),typeof document>"u")return Promise.reject(new Error("This is a library for the browser!"));if(i.getLoadingState()===n.LOADED)return i.instance.getSiteKey()===s?Promise.resolve(i.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(i.getLoadingState()===n.LOADING)return s!==i.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(a,c){i.successfulLoadingConsumers.push(function(u){return a(u)}),i.errorLoadingRunnable.push(function(u){return c(u)})});i.instanceSiteKey=s,i.setLoadingState(n.LOADING);var o=new i;return new Promise(function(a,c){o.loadScript(s,l.useRecaptchaNet||!1,l.useEnterprise||!1,l.renderParameters?l.renderParameters:{},l.customUrl).then(function(){i.setLoadingState(n.LOADED);var u=o.doExplicitRender(grecaptcha,s,l.explicitRenderParameters?l.explicitRenderParameters:{},l.useEnterprise||!1),h=new t.ReCaptchaInstance(s,u,grecaptcha);i.successfulLoadingConsumers.forEach(function(d){return d(h)}),i.successfulLoadingConsumers=[],l.autoHideBadge&&h.hideBadge(),i.instance=h,a(h)}).catch(function(u){i.errorLoadingRunnable.forEach(function(h){return h(u)}),i.errorLoadingRunnable=[],c(u)})})},i.getInstance=function(){return i.instance},i.setLoadingState=function(s){i.loadingState=s},i.getLoadingState=function(){return i.loadingState===null?n.NOT_LOADED:i.loadingState},i.prototype.loadScript=function(s,l,o,a,c){var u=this;l===void 0&&(l=!1),o===void 0&&(o=!1),a===void 0&&(a={}),c===void 0&&(c="");var h=document.createElement("script");h.setAttribute("recaptcha-v3-script",""),h.setAttribute("async",""),h.setAttribute("defer","");var d="https://www.google.com/recaptcha/api.js";l?o?d="https://recaptcha.net/recaptcha/enterprise.js":d="https://recaptcha.net/recaptcha/api.js":o&&(d="https://www.google.com/recaptcha/enterprise.js"),c&&(d=c),a.render&&(a.render=void 0);var g=this.buildQueryString(a);return h.src=d+"?render=explicit"+g,new Promise(function(x,b){h.addEventListener("load",u.waitForScriptToLoad(function(){x(h)},o),!1),h.onerror=function(S){i.setLoadingState(n.NOT_LOADED),b(S)},document.head.appendChild(h)})},i.prototype.buildQueryString=function(s){var l=Object.keys(s);return l.length<1?"":"&"+Object.keys(s).filter(function(o){return!!s[o]}).map(function(o){return o+"="+s[o]}).join("&")},i.prototype.waitForScriptToLoad=function(s,l){var o=this;return function(){window.grecaptcha===void 0?setTimeout(function(){o.waitForScriptToLoad(s,l)},i.SCRIPT_LOAD_DELAY):l?window.grecaptcha.enterprise.ready(function(){s()}):window.grecaptcha.ready(function(){s()})}},i.prototype.doExplicitRender=function(s,l,o,a){var c=e({sitekey:l},o);return o.container?a?s.enterprise.render(o.container,c):s.render(o.container,c):a?s.enterprise.render(c):s.render(c)},i.loadingState=null,i.instance=null,i.instanceSiteKey=null,i.successfulLoadingConsumers=[],i.errorLoadingRunnable=[],i.SCRIPT_LOAD_DELAY=25,i}();return ht.load=r.load,ht.getInstance=r.getInstance,ht}var fo;function Mf(){return fo||(fo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=If();Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=co();Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})}($i)),$i}var Pf=Mf();const ho={},Of=e=>{const t=ho[e]??(ho[e]=Pf.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:n=>t.then(r=>r.execute(n))}},jf=e=>({execute:async t=>{const{load:n}=xu("https://challenges.cloudflare.com/turnstile/v0/api.js",void 0,{async:!1});await n();const r=window.turnstile;return new Promise(i=>{r==null||r.ready(()=>{r.render(".wl-captcha-container",{sitekey:e,action:t,size:"compact",callback:i})})})}}),zf="WALINE_USER";let po=null;const wr=()=>po??(po=Zt(zf,{})),Ff={key:0,class:"wl-reaction"},Df=["textContent"],Hf={class:"wl-reaction-list"},Uf=["onClick"],Nf={class:"wl-reaction-img"},Bf=["src","alt"],Vf=["textContent"],Wf=["textContent"];var qf=dn({__name:"ArticleReaction",setup(e,{expose:t}){t();const n=Lf(),r=Xn(On),i=X(-1),s=X([]),l=ke(()=>r.value.locale),o=ke(()=>r.value.reaction.length>0),a=ke(()=>{const{reaction:d,path:g}=r.value;return d.map((x,b)=>({icon:x,desc:l.value[`reaction${b}`],active:n.value[g]===b}))});let c;const u=async()=>{if(!o.value)return;const{serverURL:d,lang:g,path:x,reaction:b}=r.value,S=new AbortController;c=S.abort.bind(S);const y=await Cr({serverURL:d,lang:g,paths:[x],type:b.map((_,H)=>`reaction${H}`),signal:S.signal});s.value=b.map((_,H)=>y[0][`reaction${H}`])},h=async d=>{if(i.value===-1){const{serverURL:g,lang:x,path:b}=r.value,S=n.value[b];i.value=d,S!==void 0&&(await Mn({serverURL:g,lang:x,path:b,type:`reaction${S}`,action:"desc"}),s.value[S]=Math.max(s.value[S]-1,0)),S!==d&&(await Mn({serverURL:g,lang:x,path:b,type:`reaction${d}`}),s.value[d]=(s.value[d]||0)+1),S===d?delete n.value[b]:n.value[b]=d,i.value=-1}};return gn(()=>{Be(()=>[r.value.serverURL,r.value.path],()=>{u()},{immediate:!0})}),Qr(()=>{c()}),(d,g)=>a.value.length?(L(),P("div",Ff,[F("div",{class:"wl-reaction-title",textContent:ee(l.value.reactionTitle)},null,8,Df),F("ul",Hf,[(L(!0),P(fe,null,Ne(a.value,({active:x,icon:b,desc:S},y)=>(L(),P("li",{key:y,class:ve(["wl-reaction-item",{active:x}]),onClick:_=>h(y)},[F("div",Nf,[F("img",{src:b,alt:S},null,8,Bf),i.value===y?(L(),ot(q(An),{key:0,class:"wl-reaction-loading"})):(L(),P("div",{key:1,class:"wl-reaction-votes",textContent:ee(s.value[y]||0)},null,8,Vf))]),F("div",{class:"wl-reaction-text",textContent:ee(S)},null,8,Wf)],10,Uf))),128))])])):Q("v-if",!0)}}),Tn=new Map;function Kf(e){var t=Tn.get(e);t&&t.destroy()}function Gf(e){var t=Tn.get(e);t&&t.update()}var En=null;typeof window>"u"?((En=function(e){return e}).destroy=function(e){return e},En.update=function(e){return e}):((En=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(n){return function(r){if(r&&r.nodeName&&r.nodeName==="TEXTAREA"&&!Tn.has(r)){var i,s=null,l=window.getComputedStyle(r),o=(i=r.value,function(){c({testForHeightReduction:i===""||!r.value.startsWith(i),restoreTextAlign:null}),i=r.value}),a=(function(h){r.removeEventListener("autosize:destroy",a),r.removeEventListener("autosize:update",u),r.removeEventListener("input",o),window.removeEventListener("resize",u),Object.keys(h).forEach(function(d){return r.style[d]=h[d]}),Tn.delete(r)}).bind(r,{height:r.style.height,resize:r.style.resize,textAlign:r.style.textAlign,overflowY:r.style.overflowY,overflowX:r.style.overflowX,wordWrap:r.style.wordWrap});r.addEventListener("autosize:destroy",a),r.addEventListener("autosize:update",u),r.addEventListener("input",o),window.addEventListener("resize",u),r.style.overflowX="hidden",r.style.wordWrap="break-word",Tn.set(r,{destroy:a,update:u}),u()}function c(h){var d,g,x=h.restoreTextAlign,b=x===void 0?null:x,S=h.testForHeightReduction,y=S===void 0||S,_=l.overflowY;if(r.scrollHeight!==0&&(l.resize==="vertical"?r.style.resize="none":l.resize==="both"&&(r.style.resize="horizontal"),y&&(d=function(E){for(var O=[];E&&E.parentNode&&E.parentNode instanceof Element;)E.parentNode.scrollTop&&O.push([E.parentNode,E.parentNode.scrollTop]),E=E.parentNode;return function(){return O.forEach(function(K){var z=K[0],J=K[1];z.style.scrollBehavior="auto",z.scrollTop=J,z.style.scrollBehavior=null})}}(r),r.style.height=""),g=l.boxSizing==="content-box"?r.scrollHeight-(parseFloat(l.paddingTop)+parseFloat(l.paddingBottom)):r.scrollHeight+parseFloat(l.borderTopWidth)+parseFloat(l.borderBottomWidth),l.maxHeight!=="none"&&g>parseFloat(l.maxHeight)?(l.overflowY==="hidden"&&(r.style.overflow="scroll"),g=parseFloat(l.maxHeight)):l.overflowY!=="hidden"&&(r.style.overflow="hidden"),r.style.height=g+"px",b&&(r.style.textAlign=b),d&&d(),s!==g&&(r.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),s=g),_!==l.overflow&&!b)){var H=l.textAlign;l.overflow==="hidden"&&(r.style.textAlign=H==="start"?"end":"start"),c({restoreTextAlign:H,testForHeightReduction:!0})}}function u(){c({testForHeightReduction:!0,restoreTextAlign:null})}}(n)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Kf),e},En.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Gf),e});var go=En;const Zf=["data-index"],Jf=["src","title","onClick"];var Yf=dn({__name:"ImageWall",props:{items:{default:()=>[]},columnWidth:{default:300},gap:{default:0}},emits:["insert"],setup(e,{expose:t}){const n=e;t();let r=null;const i=vt("wall"),s=X({}),l=X([]),o=()=>{const d=Math.floor((i.value.getBoundingClientRect().width+n.gap)/(n.columnWidth+n.gap));return d>0?d:1},a=d=>new Array(d).fill(null).map(()=>[]),c=async d=>{var g;if(d>=n.items.length)return;await Wt();const x=Array.from(((g=i.value)==null?void 0:g.children)??[]).reduce((b,S)=>S.getBoundingClientRect().height<b.getBoundingClientRect().height?S:b);l.value[Number(x.dataset.index)].push(d),await c(d+1)},u=async(d=!1)=>{if(l.value.length===o()&&!d)return;l.value=a(o());const g=window.scrollY;await c(0),window.scrollTo({top:g})},h=d=>{s.value[d.target.src]=!0};return gn(()=>{u(!0),r=new ResizeObserver(()=>{u()}),r.observe(i.value),Be(()=>[n.items],()=>{s.value={},u(!0)}),Be(()=>[n.columnWidth,n.gap],()=>{u()})}),Ha(()=>{r.unobserve(i.value)}),(d,g)=>(L(),P("div",{ref_key:"wall",ref:i,class:"wl-gallery",style:nn({gap:`${d.gap}px`})},[(L(!0),P(fe,null,Ne(l.value,(x,b)=>(L(),P("div",{key:b,class:"wl-gallery-column","data-index":b,style:nn({gap:`${d.gap}px`})},[(L(!0),P(fe,null,Ne(x,S=>(L(),P(fe,{key:S},[s.value[d.items[S].src]?Q("v-if",!0):(L(),ot(q(An),{key:0,size:36,style:{margin:"20px auto"}})),F("img",{class:"wl-gallery-item",src:d.items[S].src,title:d.items[S].title,loading:"lazy",onLoad:h,onClick:y=>d.$emit("insert",`![](${d.items[S].src})`)},null,40,Jf)],64))),128))],12,Zf))),128))],4))}});const Xf={key:0,class:"wl-login-info"},Qf={class:"wl-avatar"},eh=["title"],th=["title"],nh=["src"],rh=["title","textContent"],ih={class:"wl-panel"},sh=["for","textContent"],lh=["id","onUpdate:modelValue","name","type"],oh=["placeholder"],ah={class:"wl-preview"},ch=["innerHTML"],uh={class:"wl-footer"},fh={class:"wl-actions"},hh={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},dh=["title"],ph=["title"],gh=["title","aria-label"],mh=["title"],vh={class:"wl-info"},bh={class:"wl-text-number"},yh={key:0},wh=["textContent"],kh=["textContent"],xh=["disabled"],_h=["placeholder"],Ch={key:1,class:"wl-loading"},Sh={key:0,class:"wl-tab-wrapper"},$h=["title","onClick"],Rh=["src","alt"],Ah={key:0,class:"wl-tabs"},Th=["onClick"],Eh=["src","alt","title"],Lh=["title"];var mo=dn({__name:"CommentBox",props:{edit:{default:null},rootId:{default:""},replyId:{default:""},replyUser:{default:""}},emits:["log","cancelEdit","cancelReply","submit"],setup(e,{emit:t}){const n=e,r=t,i=Xn(On),s=Af(),l=Rf(),o=wr(),a=X({}),c=vt("textarea"),u=vt("image-uploader"),h=vt("emoji-button"),d=vt("emoji-popup"),g=vt("gif-button"),x=vt("gif-popup"),b=vt("gif-search"),S=X({tabs:[],map:{}}),y=X(0),_=X(!1),H=X(!1),E=X(!1),O=X(""),K=X(0),z=cn({loading:!0,list:[]}),J=X(0),Me=X(!1),Z=X(""),M=X(!1),G=X(!1),B=ke(()=>i.value.locale),me=ke(()=>!!o.value.token),xe=ke(()=>i.value.imageUploader!==!1),ye=j=>{const R=c.value,V=R.selectionStart,pe=R.selectionEnd||0,f=R.scrollTop;s.value=R.value.substring(0,V)+j+R.value.substring(pe,R.value.length),R.focus(),R.selectionStart=V+j.length,R.selectionEnd=V+j.length,R.scrollTop=f},pt=j=>{if(M.value)return;const R=j.key;(j.ctrlKey||j.metaKey)&&R==="Enter"&&Ge()},wt=j=>{const R=`![${i.value.locale.uploading} ${j.name}]()`;return ye(R),M.value=!0,Promise.resolve().then(()=>i.value.imageUploader(j)).then(V=>{s.value=s.value.replace(R,`\r
83
+ ![${j.name}](${V})`)}).catch(V=>{alert(V.message),s.value=s.value.replace(R,"")}).then(()=>{M.value=!1})},Ln=j=>{var R;if((R=j.dataTransfer)!=null&&R.items){const V=Pl(j.dataTransfer.items);V&&xe.value&&(wt(V),j.preventDefault())}},kr=j=>{if(j.clipboardData){const R=Pl(j.clipboardData.items);R&&xe.value&&wt(R)}},Jt=()=>{const j=u.value;j.files&&xe.value&&wt(j.files[0]).then(()=>{j.value=""})},Ge=async()=>{var j;const{serverURL:R,lang:V,login:pe,wordLimit:f,requiredMeta:p,recaptchaV3Key:m,turnstileKey:w}=i.value,v={comment:Z.value,nick:l.value.nick,mail:l.value.mail,link:l.value.link,url:i.value.path,ua:await mf()};if(!n.edit)if(o.value.token)v.nick=o.value.display_name,v.mail=o.value.email,v.link=o.value.url;else{if(pe==="force")return;if(p.includes("nick")&&!v.nick){a.value.nick.focus(),alert(B.value.nickError);return}if(p.includes("mail")&&!v.mail||v.mail&&!Wo(v.mail)){a.value.mail.focus(),alert(B.value.mailError);return}v.nick||(v.nick=B.value.anonymous)}if(!v.comment){c.value.focus();return}if(!Me.value){alert(B.value.wordHint.replace("$0",f[0].toString()).replace("$1",f[1].toString()).replace("$2",K.value.toString()));return}v.comment=no(v.comment,S.value.map),n.replyId&&n.rootId&&(v.pid=n.replyId,v.rid=n.rootId,v.at=n.replyUser),M.value=!0;try{m&&(v.recaptchaV3=await Of(m).execute("social")),w&&(v.turnstile=await jf(w).execute("social"));const k={serverURL:R,lang:V,token:o.value.token,comment:v},T=await(n.edit?Xt({objectId:n.edit.objectId,...k}):Ti(k));if(M.value=!1,T.errmsg){alert(T.errmsg);return}r("submit",T.data),s.value="",O.value="",await Wt(),n.replyId&&r("cancelReply"),(j=n.edit)!=null&&j.objectId&&r("cancelEdit")}catch(k){M.value=!1,alert(k.message)}},xr=j=>{j.preventDefault();const{lang:R,serverURL:V}=i.value;Ii({serverURL:V,lang:R}).then(pe=>{o.value=pe,(pe.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(pe)),r("log")})},Ri=()=>{o.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),r("log")},_r=j=>{j.preventDefault();const{lang:R,serverURL:V}=i.value,pe=800,f=800,p=(window.innerWidth-pe)/2,m=(window.innerHeight-f)/2,w=new URLSearchParams({lng:R,token:o.value.token}),v=window.open(`${V}/ui/profile?${w.toString()}`,"_blank",`width=${pe},height=${f},left=${p},top=${m},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);v==null||v.postMessage({type:"TOKEN",data:o.value.token},"*")},Ot=j=>{var R,V,pe,f;!((R=h.value)!=null&&R.contains(j.target))&&!((V=d.value)!=null&&V.contains(j.target))&&(_.value=!1),!((pe=g.value)!=null&&pe.contains(j.target))&&!((f=x.value)!=null&&f.contains(j.target))&&(H.value=!1)},jt=async j=>{var R;const{scrollTop:V,clientHeight:pe,scrollHeight:f}=j.target,p=(pe+V)/f,m=i.value.search,w=((R=b.value)==null?void 0:R.value)??"";p<.9||z.loading||G.value||(z.loading=!0,(m.more&&z.list.length?await m.more(w,z.list.length):await m.search(w)).length?z.list=[...z.list,...m.more&&z.list.length?await m.more(w,z.list.length):await m.search(w)]:G.value=!0,z.loading=!1,setTimeout(()=>{j.target.scrollTop=V},50))},Yt=cu(j=>{z.list=[],G.value=!1,jt(j)},300);return Be([i,K],([j,R])=>{const{wordLimit:V}=j;V?R<V[0]&&V[0]!==0?(J.value=V[0],Me.value=!1):R>V[1]?(J.value=V[1],Me.value=!1):(J.value=V[1],Me.value=!0):(J.value=0,Me.value=!0)},{immediate:!0}),fr("click",Ot),fr("message",({data:j})=>{!j||j.type!=="profile"||(o.value={...o.value,...j.data},[localStorage,sessionStorage].filter(R=>R.getItem("WALINE_USER")).forEach(R=>{R.setItem("WALINE_USER",JSON.stringify(o))}))}),Be(H,async j=>{var R;if(!j)return;const V=i.value.search;b.value&&(b.value.value=""),z.loading=!0,z.list=await(((R=V.default)==null?void 0:R.call(V))??V.search("")),z.loading=!1}),gn(()=>{var j;(j=n.edit)!=null&&j.objectId&&(s.value=n.edit.orig),Be(()=>s.value,R=>{const{highlighter:V,texRenderer:pe}=i.value;Z.value=R,O.value=hf(R,{emojiMap:S.value.map,highlighter:V,texRenderer:pe}),K.value=gf(R),R?go(c.value):go.destroy(c.value)},{immediate:!0}),Be(()=>i.value.emoji,R=>Ru(R).then(V=>{S.value=V}),{immediate:!0})}),(j,R)=>{var V,pe;return L(),P("div",{key:q(o).token,class:"wl-comment"},[q(i).login!=="disable"&&me.value&&!((V=j.edit)!=null&&V.objectId)?(L(),P("div",Xf,[F("div",Qf,[F("button",{type:"submit",class:"wl-logout-btn",title:B.value.logout,onClick:Ri},[ae(q(io),{size:14})],8,eh),F("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:B.value.profile,onClick:_r},[F("img",{src:q(o).avatar,alt:"avatar"},null,8,nh)],8,th)]),F("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:B.value.profile,onClick:_r,textContent:ee(q(o).display_name)},null,8,rh)])):Q("v-if",!0),F("div",ih,[q(i).login!=="force"&&q(i).meta.length&&!me.value?(L(),P("div",{key:0,class:ve(["wl-header",`item${q(i).meta.length}`])},[(L(!0),P(fe,null,Ne(q(i).meta,f=>(L(),P("div",{key:f,class:"wl-header-item"},[F("label",{for:`wl-${f}`,textContent:ee(B.value[f]+(q(i).requiredMeta.includes(f)||!q(i).requiredMeta.length?"":`(${B.value.optional})`))},null,8,sh),Jn(F("input",{id:`wl-${f}`,ref_for:!0,ref:p=>{p&&(a.value[f]=p)},"onUpdate:modelValue":p=>q(l)[f]=p,class:ve(["wl-input",`wl-${f}`]),name:f,type:f==="mail"?"email":"text"},null,10,lh),[[Xc,q(l)[f]]])]))),128))],2)):Q("v-if",!0),Jn(F("textarea",{id:"wl-edit",ref:"textarea","onUpdate:modelValue":R[0]||(R[0]=f=>we(s)?s.value=f:null),class:"wl-editor",placeholder:j.replyUser?`@${j.replyUser}`:B.value.placeholder,onKeydown:pt,onDrop:Ln,onPaste:kr},null,40,oh),[[di,q(s)]]),Jn(F("div",ah,[R[7]||(R[7]=F("hr",null,null,-1)),F("h4",null,ee(B.value.preview)+":",1),F("div",{class:"wl-content",innerHTML:O.value},null,8,ch)],512),[[dl,E.value]]),F("div",uh,[F("div",fh,[F("a",hh,[ae(q(xf))]),Jn(F("button",{ref:"emoji-button",type:"button",class:ve(["wl-action",{active:_.value}]),title:B.value.emoji,onClick:R[1]||(R[1]=f=>_.value=!_.value)},[ae(q(bf))],10,dh),[[dl,S.value.tabs.length]]),q(i).search?(L(),P("button",{key:0,ref:"gif-button",type:"button",class:ve(["wl-action",{active:H.value}]),title:B.value.gif,onClick:R[2]||(R[2]=f=>H.value=!H.value)},[ae(q($f))],10,ph)):Q("v-if",!0),F("input",{id:"wl-image-upload",ref:"image-uploader",class:"upload","aria-hidden":"true",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:Jt},null,544),xe.value?(L(),P("label",{key:1,for:"wl-image-upload",class:"wl-action",title:B.value.uploadImage,"aria-label":B.value.uploadImage},[ae(q(yf))],8,gh)):Q("v-if",!0),F("button",{type:"button",class:ve(["wl-action",{active:E.value}]),title:B.value.preview,onClick:R[3]||(R[3]=f=>E.value=!E.value)},[ae(q(kf))],10,mh)]),F("div",vh,[R[9]||(R[9]=F("div",{class:"wl-captcha-container"},null,-1)),F("div",bh,[at(ee(K.value)+" ",1),q(i).wordLimit?(L(),P("span",yh,[R[8]||(R[8]=at("  /  ")),F("span",{class:ve({illegal:!Me.value}),textContent:ee(J.value)},null,10,wh)])):Q("v-if",!0),at("  "+ee(B.value.word),1)]),q(i).login!=="disable"&&!me.value?(L(),P("button",{key:0,type:"button",class:"wl-btn",onClick:xr,textContent:ee(B.value.login)},null,8,kh)):Q("v-if",!0),q(i).login!=="force"||me.value?(L(),P("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:M.value,onClick:Ge},[M.value?(L(),ot(q(An),{key:0,size:16})):(L(),P(fe,{key:1},[at(ee(B.value.submit),1)],64))],8,xh)):Q("v-if",!0)]),F("div",{ref:"gif-popup",class:ve(["wl-gif-popup",{display:H.value}])},[F("input",{ref:"gif-search",type:"text",placeholder:B.value.gifSearchPlaceholder,onInput:R[4]||(R[4]=(...f)=>q(Yt)&&q(Yt)(...f))},null,40,_h),z.list.length?(L(),ot(Yf,{key:0,items:z.list,"column-width":200,gap:6,onInsert:R[5]||(R[5]=f=>ye(f)),onScroll:jt},null,8,["items"])):Q("v-if",!0),z.loading?(L(),P("div",Ch,[ae(q(An),{size:30})])):Q("v-if",!0)],2),F("div",{ref:"emoji-popup",class:ve(["wl-emoji-popup",{display:_.value}])},[(L(!0),P(fe,null,Ne(S.value.tabs,(f,p)=>(L(),P(fe,{key:f.name},[p===y.value?(L(),P("div",Sh,[(L(!0),P(fe,null,Ne(f.items,m=>(L(),P("button",{key:m,type:"button",title:m,onClick:w=>ye(`:${m}:`)},[_.value?(L(),P("img",{key:0,class:"wl-emoji",src:S.value.map[m],alt:m,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Rh)):Q("v-if",!0)],8,$h))),128))])):Q("v-if",!0)],64))),128)),S.value.tabs.length>1?(L(),P("div",Ah,[(L(!0),P(fe,null,Ne(S.value.tabs,(f,p)=>(L(),P("button",{key:f.name,type:"button",class:ve(["wl-tab",{active:y.value===p}]),onClick:m=>y.value=p},[F("img",{class:"wl-emoji",src:f.icon,alt:f.name,title:f.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Eh)],10,Th))),128))])):Q("v-if",!0)],2)])]),j.replyId||(pe=j.edit)!=null&&pe.objectId?(L(),P("button",{key:1,type:"button",class:"wl-close",title:B.value.cancelReply,onClick:R[6]||(R[6]=f=>j.replyId?r("cancelReply"):r("cancelEdit"))},[ae(q(io),{size:24})],8,Lh)):Q("v-if",!0)])}}});const Ih=["id"],Mh={class:"wl-user","aria-hidden":"true"},Ph=["src"],Oh={class:"wl-card"},jh={class:"wl-head"},zh=["href"],Fh={key:1,class:"wl-nick"},Dh=["textContent"],Hh=["textContent"],Uh=["textContent"],Nh=["textContent"],Bh=["textContent"],Vh={class:"wl-comment-actions"},Wh=["title"],qh=["title"],Kh={class:"wl-meta","aria-hidden":"true"},Gh=["data-value","textContent"],Zh={key:0,class:"wl-content"},Jh={key:0},Yh=["href"],Xh=["innerHTML"],Qh={key:1,class:"wl-admin-actions"},ed={class:"wl-comment-status"},td=["disabled","onClick","textContent"],nd={key:3,class:"wl-quote"};var rd=dn({__name:"CommentCard",props:{comment:{},edit:{default:null},rootId:{},reply:{default:null}},emits:["log","submit","delete","like","sticky","edit","reply","status"],setup(e,{emit:t}){const n=e,r=t,i=["approved","waiting","spam"],s=Xn(On),l=lo(),o=ku(),a=wr(),c=ke(()=>s.value.locale),u=ke(()=>{const{link:y}=n.comment;return y?Qi(y)?y:`https://${y}`:""}),h=ke(()=>l.value.includes(n.comment.objectId)),d=ke(()=>Bo(new Date(n.comment.time),o.value,c.value)),g=ke(()=>a.value.type==="administrator"),x=ke(()=>n.comment.user_id&&a.value.objectId===n.comment.user_id),b=ke(()=>{var y;return n.comment.objectId===((y=n.reply)==null?void 0:y.objectId)}),S=ke(()=>{var y;return n.comment.objectId===((y=n.edit)==null?void 0:y.objectId)});return(y,_)=>{var H;const E=Na("CommentCard",!0);return L(),P("div",{id:y.comment.objectId,class:"wl-card-item"},[F("div",Mh,[y.comment.avatar?(L(),P("img",{key:0,class:"wl-user-avatar",src:y.comment.avatar,alt:""},null,8,Ph)):Q("v-if",!0),y.comment.type?(L(),ot(q(Sf),{key:1})):Q("v-if",!0)]),F("div",Oh,[F("div",jh,[u.value?(L(),P("a",{key:0,class:"wl-nick",href:u.value,target:"_blank",rel:"nofollow noopener noreferrer"},ee(y.comment.nick),9,zh)):(L(),P("span",Fh,ee(y.comment.nick),1)),y.comment.type==="administrator"?(L(),P("span",{key:2,class:"wl-badge",textContent:ee(c.value.admin)},null,8,Dh)):Q("v-if",!0),y.comment.label?(L(),P("span",{key:3,class:"wl-badge",textContent:ee(y.comment.label)},null,8,Hh)):Q("v-if",!0),y.comment.sticky?(L(),P("span",{key:4,class:"wl-badge",textContent:ee(c.value.sticky)},null,8,Uh)):Q("v-if",!0),typeof y.comment.level=="number"?(L(),P("span",{key:5,class:ve(`wl-badge level${y.comment.level}`),textContent:ee(c.value[`level${y.comment.level}`]||`Level ${y.comment.level}`)},null,10,Nh)):Q("v-if",!0),F("span",{class:"wl-time",textContent:ee(d.value)},null,8,Bh),F("div",Vh,[g.value||x.value?(L(),P(fe,{key:0},[F("button",{type:"button",class:"wl-edit",onClick:_[0]||(_[0]=O=>r("edit",y.comment))},[ae(q(Cf))]),F("button",{type:"button",class:"wl-delete",onClick:_[1]||(_[1]=O=>r("delete",y.comment))},[ae(q(vf))])],64)):Q("v-if",!0),F("button",{type:"button",class:"wl-like",title:h.value?c.value.cancelLike:c.value.like,onClick:_[2]||(_[2]=O=>r("like",y.comment))},[ae(q(wf),{active:h.value},null,8,["active"]),at(" "+ee("like"in y.comment?y.comment.like:""),1)],8,Wh),F("button",{type:"button",class:ve(["wl-reply",{active:b.value}]),title:b.value?c.value.cancelReply:c.value.reply,onClick:_[3]||(_[3]=O=>r("reply",b.value?null:y.comment))},[ae(q(_f))],10,qh)])]),F("div",Kh,[(L(),P(fe,null,Ne(["addr","browser","os"],O=>(L(),P(fe,null,[y.comment[O]?(L(),P("span",{key:O,class:ve(`wl-${O}`),"data-value":y.comment[O],textContent:ee(y.comment[O])},null,10,Gh)):Q("v-if",!0)],64))),64))]),S.value?Q("v-if",!0):(L(),P("div",Zh,["reply_user"in y.comment&&y.comment.reply_user?(L(),P("p",Jh,[F("a",{href:"#"+y.comment.pid},"@"+ee(y.comment.reply_user.nick),9,Yh),_[17]||(_[17]=F("span",null,": ",-1))])):Q("v-if",!0),F("div",{innerHTML:y.comment.comment},null,8,Xh)])),g.value&&!S.value?(L(),P("div",Qh,[F("span",ed,[(L(),P(fe,null,Ne(i,O=>F("button",{key:O,type:"submit",class:ve(`wl-btn wl-${O}`),disabled:y.comment.status===O,onClick:K=>r("status",{status:O,comment:y.comment}),textContent:ee(c.value[O])},null,10,td)),64))]),g.value&&!("rid"in y.comment)?(L(),P("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:_[4]||(_[4]=O=>r("sticky",y.comment))},ee(y.comment.sticky?c.value.unsticky:c.value.sticky),1)):Q("v-if",!0)])):Q("v-if",!0),b.value||S.value?(L(),P("div",{key:2,class:ve({"wl-reply-wrapper":b.value,"wl-edit-wrapper":S.value})},[ae(mo,{edit:y.edit,"reply-id":(H=y.reply)==null?void 0:H.objectId,"reply-user":y.comment.nick,"root-id":y.rootId,onLog:_[5]||(_[5]=O=>r("log")),onCancelReply:_[6]||(_[6]=O=>r("reply",null)),onCancelEdit:_[7]||(_[7]=O=>r("edit",null)),onSubmit:_[8]||(_[8]=O=>r("submit",O))},null,8,["edit","reply-id","reply-user","root-id"])],2)):Q("v-if",!0),"children"in y.comment?(L(),P("div",nd,[(L(!0),P(fe,null,Ne(y.comment.children,O=>(L(),ot(E,{key:O.objectId,comment:O,reply:y.reply,edit:y.edit,"root-id":y.rootId,onLog:_[9]||(_[9]=K=>r("log")),onDelete:_[10]||(_[10]=K=>r("delete",K)),onEdit:_[11]||(_[11]=K=>r("edit",K)),onLike:_[12]||(_[12]=K=>r("like",K)),onReply:_[13]||(_[13]=K=>r("reply",K)),onStatus:_[14]||(_[14]=K=>r("status",K)),onSticky:_[15]||(_[15]=K=>r("sticky",K)),onSubmit:_[16]||(_[16]=K=>r("submit",K))},null,8,["comment","reply","edit","root-id"]))),128))])):Q("v-if",!0)])],8,Ih)}}});const vo="3.4.2",id={"data-waline":""},sd={class:"wl-meta-head"},ld={class:"wl-count"},od=["textContent"],ad={class:"wl-sort"},cd=["onClick"],ud={class:"wl-cards"},fd={key:1,class:"wl-operation"},hd=["textContent"],dd={key:2,class:"wl-loading"},pd=["textContent"],gd={key:4,class:"wl-operation"},md=["textContent"],vd={key:5,class:"wl-power"};var bd=dn({__name:"WalineComment",props:["serverURL","path","meta","requiredMeta","dark","commentSorting","lang","locale","pageSize","wordLimit","emoji","login","highlighter","texRenderer","imageUploader","search","copyright","recaptchaV3Key","turnstileKey","reaction"],setup(e){const t=e,n=wr(),r=lo(),i=X("loading"),s=X(0),l=X(1),o=X(0),a=ke(()=>Ho(t)),c=X(a.value.commentSorting),u=X([]),h=X(null),d=X(null),g=ke(()=>Uo(a.value.dark)),x=ke(()=>a.value.locale);Cu(g,{id:"waline-darkmode"});let b=null;const S=M=>{const{serverURL:G,path:B,pageSize:me}=a.value,xe=new AbortController;i.value="loading",b==null||b(),Ai({serverURL:G,lang:a.value.lang,path:B,pageSize:me,sortBy:Ji[c.value],page:M,signal:xe.signal,token:n.value.token}).then(ye=>{i.value="success",s.value=ye.count,u.value.push(...ye.data),l.value=M,o.value=ye.totalPages}).catch(ye=>{ye.name!=="AbortError"&&(console.error(ye.message),i.value="error")}),b=xe.abort.bind(xe)},y=()=>{S(l.value+1)},_=()=>{s.value=0,u.value=[],S(1)},H=M=>{c.value!==M&&(c.value=M,_())},E=M=>{h.value=M},O=M=>{d.value=M},K=M=>{if(d.value)d.value.comment=M.comment,d.value.orig=M.orig;else if("rid"in M){const G=u.value.find(({objectId:B})=>B===M.rid);if(!G)return;Array.isArray(G.children)||(G.children=[]),G.children.push(M)}else u.value.unshift(M),s.value+=1},z=async({comment:M,status:G})=>{if(M.status===G)return;const{serverURL:B,lang:me}=a.value;await Xt({serverURL:B,lang:me,token:n.value.token,objectId:M.objectId,comment:{status:G}}),M.status=G},J=async M=>{if("rid"in M)return;const{serverURL:G,lang:B}=a.value;await Xt({serverURL:G,lang:B,token:n.value.token,objectId:M.objectId,comment:{sticky:M.sticky?0:1}}),M.sticky=!M.sticky},Me=async({objectId:M})=>{if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:G,lang:B}=a.value;await Ei({serverURL:G,lang:B,token:n.value.token,objectId:M}),u.value.some((me,xe)=>me.objectId===M?(u.value=u.value.filter((ye,pt)=>pt!==xe),!0):me.children.some((ye,pt)=>ye.objectId===M?(u.value[xe].children=me.children.filter((wt,Ln)=>Ln!==pt),!0):!1))},Z=async M=>{const{serverURL:G,lang:B}=a.value,{objectId:me}=M,xe=r.value.includes(me);await Xt({serverURL:G,lang:B,objectId:me,token:n.value.token,comment:{like:!xe}}),xe?r.value=r.value.filter(ye=>ye!==me):(r.value=[...r.value,me],r.value.length>50&&(r.value=r.value.slice(-50))),M.like=Math.max(0,(M.like||0)+(xe?-1:1))};return Ga(On,a),gn(()=>{Be(()=>[t.serverURL,t.path],()=>{_()},{immediate:!0})}),Qr(()=>{b==null||b()}),(M,G)=>(L(),P("div",id,[ae(qf),!h.value&&!d.value?(L(),ot(mo,{key:0,onLog:_,onSubmit:K})):Q("v-if",!0),F("div",sd,[F("div",ld,[s.value?(L(),P("span",{key:0,class:"wl-num",textContent:ee(s.value)},null,8,od)):Q("v-if",!0),at(" "+ee(x.value.comment),1)]),F("ul",ad,[(L(!0),P(fe,null,Ne(q(Fo),B=>(L(),P("li",{key:B,class:ve([B===c.value?"active":""]),onClick:me=>H(B)},ee(x.value[B]),11,cd))),128))])]),F("div",ud,[(L(!0),P(fe,null,Ne(u.value,B=>(L(),ot(rd,{key:B.objectId,"root-id":B.objectId,comment:B,reply:h.value,edit:d.value,onLog:_,onReply:E,onEdit:O,onSubmit:K,onStatus:z,onDelete:Me,onSticky:J,onLike:Z},null,8,["root-id","comment","reply","edit"]))),128))]),i.value==="error"?(L(),P("div",fd,[F("button",{type:"button",class:"wl-btn",onClick:_,textContent:ee(x.value.refresh)},null,8,hd)])):i.value==="loading"?(L(),P("div",dd,[ae(q(An),{size:30})])):u.value.length?l.value<o.value?(L(),P("div",gd,[F("button",{type:"button",class:"wl-btn",onClick:y,textContent:ee(x.value.more)},null,8,md)])):Q("v-if",!0):(L(),P("div",{key:3,class:"wl-empty",textContent:ee(x.value.sofa)},null,8,pd)),a.value.copyright?(L(),P("div",vd,[G[0]||(G[0]=at(" Powered by ")),G[1]||(G[1]=F("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1)),at(" v"+ee(q(vo)),1)])):Q("v-if",!0)]))}});const bo=(e,t)=>{t.forEach((n,r)=>{const i=e[r].time;typeof i=="number"&&(n.innerText=i.toString())})},yo=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:r=!0,lang:i=navigator.language})=>{const s=new AbortController,l=Array.from(document.querySelectorAll(n)),o=c=>{const u=Si(c);return u!==null&&t!==u},a=c=>Mi({serverURL:jn(e),paths:c.map(u=>Si(u)??t),lang:i,signal:s.signal}).then(u=>bo(u,c)).catch(Ml);if(r){const c=l.filter(h=>!o(h)),u=l.filter(o);Pi({serverURL:jn(e),path:t,lang:i}).then(h=>bo(h,c)),u.length&&a(u)}else a(l);return s.abort.bind(s)},yd=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...i})=>{const s=e?gi(e):null;if(e&&!s)throw new Error("Option 'el' do not match any domElement!");if(!i.serverURL)throw new Error("Option 'serverURL' is missing!");const l=cn({...i}),o=cn({comment:n,pageview:r,path:t}),a=()=>{o.comment&&ro({serverURL:l.serverURL,path:o.path,...zt(o.comment)?{selector:o.comment}:{}})},c=()=>{o.pageview&&yo({serverURL:l.serverURL,path:o.path,...zt(o.pageview)?{selector:o.pageview}:{}})};let u=null;s&&(u=nu(()=>re(bd,{path:o.path,...l})),u.mount(s));const h=Js(a),d=Js(c);return{el:s,update:({comment:g,pageview:x,path:b=window.location.pathname,...S}={})=>{Object.entries(S).forEach(([y,_])=>{l[y]=_}),o.path=b,g!==void 0&&(o.comment=g),x!==void 0&&(o.pageview=x)},destroy:()=>{u==null||u.unmount(),h(),d()}}},wd=({el:e,serverURL:t,count:n,lang:r=navigator.language})=>{const i=wr(),s=gi(e),l=new AbortController;return Oi({serverURL:t,count:n,lang:r,signal:l.signal,token:i.value.token}).then(o=>s&&o.length?(s.innerHTML=`<ul class="wl-recent-list">${o.map(a=>`<li class="wl-recent-item"><a href="${a.url}">${a.nick}</a>:${a.comment}</li>`).join("")}</ul>`,{comments:o,destroy:()=>{l.abort(),s.innerHTML=""}}):{comments:o,destroy:()=>l.abort()})},kd=({el:e,serverURL:t,count:n,locale:r,lang:i=navigator.language,mode:s="list"})=>{const l=gi(e),o=new AbortController;return ji({serverURL:t,pageSize:n,lang:i,signal:o.signal}).then(a=>!l||!a.length?{users:a,destroy:()=>o.abort()}:(r={...Gi(i),...typeof r=="object"?r:{}},l.innerHTML=`<ul class="wl-user-${s}">${a.map((c,u)=>[`<li class="wl-user-item" aria-label="${c.nick}">`,c.link&&`<a href="${c.link}" target="_blank">`,'<div class="wl-user-avatar">',`<img src="${c.avatar}" alt="${c.nick}">`,`<span class="wl-user-badge">${u+1}</span>`,"</div>",'<div class="wl-user-meta">','<div class="wl-user-name">',c.nick,c.level&&`<span class="wl-badge">${r?r[`level${c.level}`]:`Level ${c.level}`}</span>`,c.label&&`<span class="wl-badge">${c.label}</span>`,"</div>",c.link&&c.link,"</div>",c.link&&"</a>","</li>"].filter(h=>h).join("")).join("")}</ul>`,{users:a,destroy:()=>{o.abort(),l.innerHTML=""}}))};ie.RecentComments=wd,ie.UserList=kd,ie.addComment=Ti,ie.commentCount=ro,ie.defaultLocales=Pn,ie.deleteComment=Ei,ie.fetchCommentCount=Li,ie.getArticleCounter=Cr,ie.getComment=Ai,ie.getPageview=Mi,ie.getRecentComment=Oi,ie.getUserList=ji,ie.init=yd,ie.login=Ii,ie.pageviewCount=yo,ie.updateArticleCounter=Mn,ie.updateComment=Xt,ie.updatePageview=Pi,ie.version=vo});
84
84
  //# sourceMappingURL=waline.umd.js.map