@waline/client 3.2.7 → 3.3.1

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,73 +1,83 @@
1
- var Bh=Object.defineProperty;var Wh=(G,ue,he)=>ue in G?Bh(G,ue,{enumerable:!0,configurable:!0,writable:!0,value:he}):G[ue]=he;var Ne=(G,ue,he)=>(Wh(G,typeof ue!="symbol"?ue+"":ue,he),he),qh=(G,ue,he)=>{if(!ue.has(G))throw TypeError("Cannot "+he)};var xr=(G,ue,he)=>{if(ue.has(G))throw TypeError("Cannot add the same private member more than once");ue instanceof WeakSet?ue.add(G):ue.set(G,he)};var _i=(G,ue,he)=>(qh(G,ue,"access private method"),he);(function(G,ue){typeof exports=="object"&&typeof module<"u"?ue(exports):typeof define=="function"&&define.amd?define(["exports"],ue):(G=typeof globalThis<"u"?globalThis:G||self,ue(G.Waline={}))})(this,function(G){"use strict";var xn,Cr,yi,yl;const ue={"Content-Type":"application/json"},he=e=>`${e.replace(/\/?$/,"/")}api/`,wt=(e,t="")=>{if(typeof e=="object"&&e.errno)throw new TypeError(`${t} failed with ${e.errno}: ${e.errmsg}`);return e},ki=({serverURL:e,lang:t,paths:i,type:n,signal:r})=>fetch(`${he(e)}article?path=${encodeURIComponent(i.join(","))}&type=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then(o=>o.json()).then(o=>wt(o,"Get counter").data),In=({serverURL:e,lang:t,path:i,type:n,action:r})=>fetch(`${he(e)}article?lang=${t}`,{method:"POST",headers:ue,body:JSON.stringify({path:i,type:n,action:r})}).then(o=>o.json()).then(o=>wt(o,"Update counter").data),Er=({serverURL:e,lang:t,path:i,page:n,pageSize:r,sortBy:o,signal:s,token:l})=>{const a={};return l&&(a.Authorization=`Bearer ${l}`),fetch(`${he(e)}comment?path=${encodeURIComponent(i)}&pageSize=${r}&page=${n}&lang=${t}&sortBy=${o}`,{signal:s,headers:a}).then(c=>c.json()).then(c=>wt(c,"Get comment data").data)},Ir=({serverURL:e,lang:t,token:i,comment:n})=>{const r={"Content-Type":"application/json"};return i&&(r.Authorization=`Bearer ${i}`),fetch(`${he(e)}comment?lang=${t}`,{method:"POST",headers:r,body:JSON.stringify(n)}).then(o=>o.json())},Sr=({serverURL:e,lang:t,token:i,objectId:n})=>fetch(`${he(e)}comment/${n}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${i}`}}).then(r=>r.json()).then(r=>wt(r,"Delete comment")),qt=({serverURL:e,lang:t,token:i,objectId:n,comment:r})=>fetch(`${he(e)}comment/${n}?lang=${t}`,{method:"PUT",headers:{...ue,Authorization:`Bearer ${i}`},body:JSON.stringify(r)}).then(o=>o.json()).then(o=>wt(o,"Update comment")),Rr=({serverURL:e,lang:t,paths:i,signal:n})=>fetch(`${he(e)}comment?type=count&url=${encodeURIComponent(i.join(","))}&lang=${t}`,{signal:n}).then(r=>r.json()).then(r=>wt(r,"Get comment count").data),Tr=({lang:e,serverURL:t})=>{const i=(window.innerWidth-450)/2,n=(window.innerHeight-450)/2,r=window.open(`${t.replace(/\/$/,"")}/ui/login?lng=${encodeURIComponent(e)}`,"_blank",`width=450,height=450,left=${i},top=${n},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);return r==null||r.postMessage({type:"TOKEN",data:null},"*"),new Promise(o=>{const s=({data:l})=>{!l||typeof l!="object"||l.type!=="userInfo"||l.data.token&&(r==null||r.close(),window.removeEventListener("message",s),o(l.data))};window.addEventListener("message",s)})},Lr=({serverURL:e,lang:t,paths:i,signal:n})=>ki({serverURL:e,lang:t,paths:i,type:["time"],signal:n}),Ar=e=>In({...e,type:"time",action:"inc"}),Mr=({serverURL:e,lang:t,count:i,signal:n,token:r})=>{const o={};return r&&(o.Authorization=`Bearer ${r}`),fetch(`${he(e)}comment?type=recent&count=${i}&lang=${t}`,{signal:n,headers:o}).then(s=>s.json())},$r=({serverURL:e,signal:t,pageSize:i,lang:n})=>fetch(`${he(e)}user?pageSize=${i}&lang=${n}`,{signal:t}).then(r=>r.json()).then(r=>wt(r,"user list")).then(r=>r.data),bl=["nick","mail","link"],Or=e=>e.filter(t=>bl.includes(t)),jr=["//unpkg.com/@waline/emojis@1.1.0/weibo"],_l=["//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"],kl=e=>new Promise((t,i)=>{if(e.size>128e3)return i(new Error("File too large! File size limit 128KB"));const n=new FileReader;n.readAsDataURL(e),n.onload=()=>{var r;return t(((r=n.result)==null?void 0:r.toString())??"")},n.onerror=i}),xl=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>',Cl=e=>{const t=async(i,n={})=>fetch(`https://api.giphy.com/v1/gifs/${i}?${new URLSearchParams({lang:e,limit:"20",rating:"g",api_key:"6CIMLkNMMOhRcXPoMCPkFy4Ybk2XUiMp",...n}).toString()}`).then(r=>r.json()).then(({data:r})=>r.map(o=>({title:o.title,src:o.images.downsized_medium.url})));return{search:i=>t("search",{q:i,offset:"0"}),default:()=>t("trending",{}),more:(i,n=0)=>t("search",{q:i,offset:n.toString()})}},El=/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/,Il=/</,Sl=/(?:^|\s)\/\/(.+?)$/gm,Rl=/\/\*([\S\s]*?)\*\//gm,Tl=new RegExp(`(${El.source}|${Il.source})|((?:${Sl.source})|(?:${Rl.source}))`,"gmi"),zr=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],xi={},Ll=e=>{let t=0;return e.replace(Tl,(i,n,r)=>{if(r)return`<span style="color: slategray">${r}</span>`;if(n==="<")return"&lt;";let o;xi[n]?o=xi[n]:(o=zr[t],xi[n]=o);const s=`<span style="color: #${o}">${n}</span>`;return t=++t%zr.length,s})},Al=["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"],st=e=>Object.fromEntries(e.map((t,i)=>[Al[i],t]));var Pr=st(["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?"]),Ur=st(["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 !
3
- 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 ?"]),Fr=st(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード",`コメントは $0 から $1 ワードの間でなければなりません!
4
- 現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),Ml=st(["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!
5
- 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?"]),Nr=st(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова",`Пожалуйста, введите комментарии от $0 до $1 слов!
6
- Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]),Hr=st(["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ừ!
7
- 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?"]),Dr=st(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字",`评论字数应在 $0 到 $1 字之间!
8
- 当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),$l=st(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字",`留言字數應在 $0 到 $1 字之間!
9
- 目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]);const Vr="en-US",Sn={zh:Dr,"zh-cn":Dr,"zh-tw":$l,en:Pr,"en-us":Pr,fr:Ur,"fr-fr":Ur,jp:Fr,"jp-jp":Fr,"pt-br":Ml,ru:Nr,"ru-ru":Nr,vi:Hr,"vi-vn":Hr},Br=e=>Sn[e.toLowerCase()]||Sn[Vr.toLowerCase()],Wr=e=>Object.keys(Sn).includes(e.toLowerCase())?e:Vr,qr=e=>{try{e=decodeURI(e)}catch{}return e},Kr=(e="")=>e.replace(/\/$/u,""),Gr=e=>/^(https?:)?\/\//.test(e),Rn=e=>{const t=Kr(e);return Gr(t)?t:`https://${t}`},Ol=e=>Array.isArray(e)?e:e?[0,e]:!1,Ci=(e,t)=>typeof e=="function"?e:e===!1?!1:t,jl=({serverURL:e,path:t=location.pathname,lang:i=typeof navigator>"u"?"en-US":navigator.language,locale:n,emoji:r=jr,meta:o=["nick","mail","link"],requiredMeta:s=[],dark:l=!1,pageSize:a=10,wordLimit:c,imageUploader:f,highlighter:h,texRenderer:p,copyright:g=!0,login:R="enable",search:x,reaction:T,recaptchaV3Key:$="",turnstileKey:P="",commentSorting:A="latest",...N})=>({serverURL:Rn(e),path:qr(t),lang:Wr(i),locale:{...Br(Wr(i)),...typeof n=="object"?n:{}},wordLimit:Ol(c),meta:Or(o),requiredMeta:Or(s),imageUploader:Ci(f,kl),highlighter:Ci(h,Ll),texRenderer:Ci(p,xl),dark:l,emoji:typeof r=="boolean"?r?jr:[]:r,pageSize:a,login:R,copyright:g,search:x===!1?!1:typeof x=="object"?x:Cl(i),recaptchaV3Key:$,turnstileKey:P,reaction:Array.isArray(T)?T:T===!0?_l:[],commentSorting:A,...N}),Mt=e=>typeof e=="string",Ei="{--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}",zl=e=>Mt(e)?e==="auto"?`@media(prefers-color-scheme:dark){body${Ei}}`:`${e}${Ei}`:e===!0?`:root${Ei}`:"",Ii=(e,t)=>{let i=e.toString();for(;i.length<t;)i="0"+i;return i},Pl=e=>{const t=Ii(e.getDate(),2),i=Ii(e.getMonth()+1,2);return`${Ii(e.getFullYear(),2)}-${i}-${t}`},Ul=(e,t,i)=>{if(!e)return"";const n=Mt(e)?new Date(e.indexOf(" ")!==-1?e.replace(/-/g,"/"):e):e,r=t.getTime()-n.getTime(),o=Math.floor(r/(24*3600*1e3));if(o===0){const s=r%864e5,l=Math.floor(s/(3600*1e3));if(l===0){const a=s%36e5,c=Math.floor(a/(60*1e3));if(c===0){const f=a%6e4;return`${Math.round(f/1e3)} ${i.seconds}`}return`${c} ${i.minutes}`}return`${l} ${i.hours}`}return o<0?i.now:o<8?`${o} ${i.days}`:Pl(n)},Fl=/^[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])?)*$/,Nl=e=>Fl.test(e);/**
10
- * @vue/shared v3.4.27
1
+ var Nd=Object.defineProperty;var Vd=(ie,Oe,je)=>Oe in ie?Nd(ie,Oe,{enumerable:!0,configurable:!0,writable:!0,value:je}):ie[Oe]=je;var Ro=(ie,Oe,je)=>Vd(ie,typeof Oe!="symbol"?Oe+"":Oe,je);(function(ie,Oe){typeof exports=="object"&&typeof module<"u"?Oe(exports):typeof define=="function"&&define.amd?define(["exports"],Oe):(ie=typeof globalThis<"u"?globalThis:ie||self,Oe(ie.Waline={}))})(this,function(ie){"use strict";const Oe={"Content-Type":"application/json"},je=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},Ei=({serverURL:e,lang:t,paths:n,type:i,signal:r})=>fetch(`${je(e)}article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(i.join(","))}&lang=${t}`,{signal:r}).then(s=>s.json()).then(s=>xt(s,"Get counter").data),zn=({serverURL:e,lang:t,path:n,type:i,action:r})=>fetch(`${je(e)}article?lang=${t}`,{method:"POST",headers:Oe,body:JSON.stringify({path:n,type:i,action:r})}).then(s=>s.json()).then(s=>xt(s,"Update counter").data),jr=({serverURL:e,lang:t,path:n,page:i,pageSize:r,sortBy:s,signal:l,token:o})=>{const a={};return o&&(a.Authorization=`Bearer ${o}`),fetch(`${je(e)}comment?path=${encodeURIComponent(n)}&pageSize=${r}&page=${i}&lang=${t}&sortBy=${s}`,{signal:l,headers:a}).then(u=>u.json()).then(u=>xt(u,"Get comment data").data)},zr=({serverURL:e,lang:t,token:n,comment:i})=>{const r={"Content-Type":"application/json"};return n&&(r.Authorization=`Bearer ${n}`),fetch(`${je(e)}comment?lang=${t}`,{method:"POST",headers:r,body:JSON.stringify(i)}).then(s=>s.json())},Pr=({serverURL:e,lang:t,token:n,objectId:i})=>fetch(`${je(e)}comment/${i}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then(r=>r.json()).then(r=>xt(r,"Delete comment")),tn=({serverURL:e,lang:t,token:n,objectId:i,comment:r})=>fetch(`${je(e)}comment/${i}?lang=${t}`,{method:"PUT",headers:{...Oe,Authorization:`Bearer ${n}`},body:JSON.stringify(r)}).then(s=>s.json()).then(s=>xt(s,"Update comment")),Fr=({serverURL:e,lang:t,paths:n,signal:i})=>fetch(`${je(e)}comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:i}).then(r=>r.json()).then(r=>xt(r,"Get comment count").data),Dr=({lang:e,serverURL:t})=>{const n=(window.innerWidth-450)/2,i=(window.innerHeight-450)/2,r=window.open(`${t.replace(/\/$/,"")}/ui/login?lng=${encodeURIComponent(e)}`,"_blank",`width=450,height=450,left=${n},top=${i},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);return r==null||r.postMessage({type:"TOKEN",data:null},"*"),new Promise(s=>{const l=({data:o})=>{!o||typeof o!="object"||o.type!=="userInfo"||o.data.token&&(r==null||r.close(),window.removeEventListener("message",l),s(o.data))};window.addEventListener("message",l)})},Ur=({serverURL:e,lang:t,paths:n,signal:i})=>Ei({serverURL:e,lang:t,paths:n,type:["time"],signal:i}),Hr=e=>zn({...e,type:"time",action:"inc"}),Nr=({serverURL:e,lang:t,count:n,signal:i,token:r})=>{const s={};return r&&(s.Authorization=`Bearer ${r}`),fetch(`${je(e)}comment?type=recent&count=${n}&lang=${t}`,{signal:i,headers:s}).then(l=>l.json())},Vr=({serverURL:e,signal:t,pageSize:n,lang:i})=>fetch(`${je(e)}user?pageSize=${n}&lang=${i}`,{signal:t}).then(r=>r.json()).then(r=>xt(r,"user list")).then(r=>r.data),Io=["nick","mail","link"],Br=e=>e.filter(t=>Io.includes(t)),Wr=["//unpkg.com/@waline/emojis@1.1.0/weibo"],Lo=["//unpkg.com/@waline/emojis/tieba/tieba_agree.png","//unpkg.com/@waline/emojis/tieba/tieba_look_down.png","//unpkg.com/@waline/emojis/tieba/tieba_sunglasses.png","//unpkg.com/@waline/emojis/tieba/tieba_pick_nose.png","//unpkg.com/@waline/emojis/tieba/tieba_awkward.png","//unpkg.com/@waline/emojis/tieba/tieba_sleep.png"],Mo=e=>new Promise((t,n)=>{if(e.size>128e3)return n(new Error("File too large! File size limit 128KB"));const i=new FileReader;i.readAsDataURL(e),i.onload=()=>{var r;return t(((r=i.result)==null?void 0:r.toString())??"")},i.onerror=n}),Oo=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>',jo=e=>{const t=async(n,i={})=>fetch(`https://api.giphy.com/v1/gifs/${n}?${new URLSearchParams({lang:e,limit:"20",rating:"g",api_key:"6CIMLkNMMOhRcXPoMCPkFy4Ybk2XUiMp",...i}).toString()}`).then(r=>r.json()).then(({data:r})=>r.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,i=0)=>t("search",{q:n,offset:i.toString()})}},zo=/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/,Po=/</,Fo=/(?:^|\s)\/\/(.+?)$/gm,Do=/\/\*([\S\s]*?)\*\//gm,Uo=new RegExp(`(${zo.source}|${Po.source})|((?:${Fo.source})|(?:${Do.source}))`,"gmi"),qr=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],Ti={},Ho=e=>{let t=0;return e.replace(Uo,(n,i,r)=>{if(r)return`<span style="color: slategray">${r}</span>`;if(i==="<")return"&lt;";let s;Ti[i]?s=Ti[i]:(s=qr[t],Ti[i]=s);const l=`<span style="color: #${s}">${i}</span>`;return t=++t%qr.length,l})},No=["nick","nickError","mail","mailError","link","optional","placeholder","sofa","submit","like","cancelLike","reply","cancelReply","comment","refresh","more","preview","emoji","uploadImage","seconds","minutes","hours","days","now","uploading","login","logout","admin","sticky","word","wordHint","anonymous","level0","level1","level2","level3","level4","level5","gif","gifSearchPlaceholder","profile","approved","waiting","spam","unsticky","oldest","latest","hottest","reactionTitle"],st=e=>Object.fromEntries(e.map((t,n)=>[No[n],t]));var Vo=st(["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?"]),Kr=st(["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?"]),Gr=st(["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 !
3
+ 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 ?"]),Zr=st(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード",`コメントは $0 から $1 ワードの間でなければなりません!
4
+ 現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),Bo=st(["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!
5
+ 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?"]),Jr=st(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова",`Пожалуйста, введите комментарии от $0 до $1 слов!
6
+ Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]),Qr=st(["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ừ!
7
+ 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?"]),Yr=st(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字",`评论字数应在 $0 到 $1 字之间!
8
+ 当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),Wo=st(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字",`留言字數應在 $0 到 $1 字之間!
9
+ 目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]);const Xr="en-US",Pn={zh:Yr,"zh-cn":Yr,"zh-tw":Wo,en:Kr,"en-us":Kr,fr:Gr,"fr-fr":Gr,jp:Zr,"jp-jp":Zr,"pt-br":Bo,ru:Jr,"ru-ru":Jr,vi:Qr,"vi-vn":Qr,de:Vo},es=e=>Pn[e.toLowerCase()]||Pn[Xr.toLowerCase()],ts=e=>Object.keys(Pn).includes(e.toLowerCase())?e:Xr,ns=e=>{try{e=decodeURI(e)}catch{}return e},is=(e="")=>e.replace(/\/$/u,""),rs=e=>/^(https?:)?\/\//.test(e),Fn=e=>{const t=is(e);return rs(t)?t:`https://${t}`},qo=e=>Array.isArray(e)?e:e?[0,e]:!1,Ai=(e,t)=>typeof e=="function"?e:e===!1?!1:t,Ko=({serverURL:e,path:t=location.pathname,lang:n=typeof navigator>"u"?"en-US":navigator.language,locale:i,emoji:r=Wr,meta:s=["nick","mail","link"],requiredMeta:l=[],dark:o=!1,pageSize:a=10,wordLimit:u,imageUploader:c,highlighter:h,texRenderer:p,copyright:m=!0,login:w="enable",search:x,reaction:C,recaptchaV3Key:v="",turnstileKey:$="",commentSorting:H="latest",...A})=>({serverURL:Fn(e),path:ns(t),lang:ts(n),locale:{...es(ts(n)),...typeof i=="object"?i:{}},wordLimit:qo(u),meta:Br(s),requiredMeta:Br(l),imageUploader:Ai(c,Mo),highlighter:Ai(h,Ho),texRenderer:Ai(p,Oo),dark:o,emoji:typeof r=="boolean"?r?Wr:[]:r,pageSize:a,login:w,copyright:m,search:x===!1?!1:typeof x=="object"?x:jo(n),recaptchaV3Key:v,turnstileKey:$,reaction:Array.isArray(C)?C:C===!0?Lo:[],commentSorting:H,...A}),Dt=e=>typeof e=="string",Ri="{--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}",Go=e=>Dt(e)?e==="auto"?`@media(prefers-color-scheme:dark){body${Ri}}`:`${e}${Ri}`:e===!0?`:root${Ri}`:"",Ii=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},Zo=e=>{const t=Ii(e.getDate(),2),n=Ii(e.getMonth()+1,2);return`${Ii(e.getFullYear(),2)}-${n}-${t}`},Jo=(e,t,n)=>{if(!e)return"";const i=Dt(e)?new Date(e.includes(" ")?e.replace(/-/g,"/"):e):e,r=t.getTime()-i.getTime(),s=Math.floor(r/(24*3600*1e3));if(s===0){const l=r%864e5,o=Math.floor(l/(3600*1e3));if(o===0){const a=l%36e5,u=Math.floor(a/(60*1e3));if(u===0){const c=a%6e4;return`${Math.round(c/1e3)} ${n.seconds}`}return`${u} ${n.minutes}`}return`${o} ${n.hours}`}return s<0?n.now:s<8?`${s} ${n.days}`:Zo(i)},Qo=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Yo=e=>Qo.test(e);/**
10
+ * @vue/shared v3.5.3
11
11
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
12
  * @license MIT
13
- **//*! #__NO_SIDE_EFFECTS__ */function Si(e,t){const i=new Set(e.split(","));return n=>i.has(n)}const le={},$t=[],Je=()=>{},Hl=()=>!1,Tn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ri=e=>e.startsWith("onUpdate:"),ke=Object.assign,Zr=(e,t)=>{const i=e.indexOf(t);i>-1&&e.splice(i,1)},Dl=Object.prototype.hasOwnProperty,Z=(e,t)=>Dl.call(e,t),F=Array.isArray,Ot=e=>Kt(e)==="[object Map]",jt=e=>Kt(e)==="[object Set]",Qr=e=>Kt(e)==="[object Date]",ee=e=>typeof e=="function",be=e=>typeof e=="string",Ye=e=>typeof e=="symbol",fe=e=>e!==null&&typeof e=="object",Jr=e=>(fe(e)||ee(e))&&ee(e.then)&&ee(e.catch),Yr=Object.prototype.toString,Kt=e=>Yr.call(e),Vl=e=>Kt(e).slice(8,-1),Xr=e=>Kt(e)==="[object Object]",Ti=e=>be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Gt=Si(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ln=e=>{const t=Object.create(null);return i=>t[i]||(t[i]=e(i))},Bl=/-(\w)/g,We=Ln(e=>e.replace(Bl,(t,i)=>i?i.toUpperCase():"")),Wl=/\B([A-Z])/g,zt=Ln(e=>e.replace(Wl,"-$1").toLowerCase()),An=Ln(e=>e.charAt(0).toUpperCase()+e.slice(1)),Li=Ln(e=>e?`on${An(e)}`:""),lt=(e,t)=>!Object.is(e,t),Mn=(e,t)=>{for(let i=0;i<e.length;i++)e[i](t)},eo=(e,t,i,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:i})},$n=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let to;const Ai=()=>to||(to=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Zt(e){if(F(e)){const t={};for(let i=0;i<e.length;i++){const n=e[i],r=be(n)?Zl(n):Zt(n);if(r)for(const o in r)t[o]=r[o]}return t}else if(be(e)||fe(e))return e}const ql=/;(?![^(]*\))/g,Kl=/:([^]+)/,Gl=/\/\*[^]*?\*\//g;function Zl(e){const t={};return e.replace(Gl,"").split(ql).forEach(i=>{if(i){const n=i.split(Kl);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function pe(e){let t="";if(be(e))t=e;else if(F(e))for(let i=0;i<e.length;i++){const n=pe(e[i]);n&&(t+=n+" ")}else if(fe(e))for(const i in e)e[i]&&(t+=i+" ");return t.trim()}const Ql=Si("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function no(e){return!!e||e===""}function Jl(e,t){if(e.length!==t.length)return!1;let i=!0;for(let n=0;i&&n<e.length;n++)i=yt(e[n],t[n]);return i}function yt(e,t){if(e===t)return!0;let i=Qr(e),n=Qr(t);if(i||n)return i&&n?e.getTime()===t.getTime():!1;if(i=Ye(e),n=Ye(t),i||n)return e===t;if(i=F(e),n=F(t),i||n)return i&&n?Jl(e,t):!1;if(i=fe(e),n=fe(t),i||n){if(!i||!n)return!1;const r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(const s in e){const l=e.hasOwnProperty(s),a=t.hasOwnProperty(s);if(l&&!a||!l&&a||!yt(e[s],t[s]))return!1}}return String(e)===String(t)}function Mi(e,t){return e.findIndex(i=>yt(i,t))}const J=e=>be(e)?e:e==null?"":F(e)||fe(e)&&(e.toString===Yr||!ee(e.toString))?JSON.stringify(e,io,2):String(e),io=(e,t)=>t&&t.__v_isRef?io(e,t.value):Ot(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((i,[n,r],o)=>(i[$i(n,o)+" =>"]=r,i),{})}:jt(t)?{[`Set(${t.size})`]:[...t.values()].map(i=>$i(i))}:Ye(t)?$i(t):fe(t)&&!F(t)&&!Xr(t)?String(t):t,$i=(e,t="")=>{var i;return Ye(e)?`Symbol(${(i=e.description)!=null?i:t})`:e};/**
14
- * @vue/reactivity v3.4.27
13
+ **//*! #__NO_SIDE_EFFECTS__ */function Li(e,t){const n=new Set(e.split(","));return i=>n.has(i)}const ue={},Ut=[],_t=()=>{},Xo=()=>!1,Dn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Mi=e=>e.startsWith("onUpdate:"),Te=Object.assign,ss=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ea=Object.prototype.hasOwnProperty,re=(e,t)=>ea.call(e,t),N=Array.isArray,Ht=e=>nn(e)==="[object Map]",Nt=e=>nn(e)==="[object Set]",ls=e=>nn(e)==="[object Date]",ee=e=>typeof e=="function",ye=e=>typeof e=="string",et=e=>typeof e=="symbol",ge=e=>e!==null&&typeof e=="object",os=e=>(ge(e)||ee(e))&&ee(e.then)&&ee(e.catch),as=Object.prototype.toString,nn=e=>as.call(e),ta=e=>nn(e).slice(8,-1),cs=e=>nn(e)==="[object Object]",Oi=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,rn=Li(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Un=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},na=/-(\w)/g,Ge=Un(e=>e.replace(na,(t,n)=>n?n.toUpperCase():"")),ia=/\B([A-Z])/g,$t=Un(e=>e.replace(ia,"-$1").toLowerCase()),Hn=Un(e=>e.charAt(0).toUpperCase()+e.slice(1)),ji=Un(e=>e?`on${Hn(e)}`:""),gt=(e,t)=>!Object.is(e,t),Nn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},us=(e,t,n,i=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:n})},Vn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let fs;const zi=()=>fs||(fs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function sn(e){if(N(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],r=ye(i)?oa(i):sn(i);if(r)for(const s in r)t[s]=r[s]}return t}else if(ye(e)||ge(e))return e}const ra=/;(?![^(]*\))/g,sa=/:([^]+)/,la=/\/\*[^]*?\*\//g;function oa(e){const t={};return e.replace(la,"").split(ra).forEach(n=>{if(n){const i=n.split(sa);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function ve(e){let t="";if(ye(e))t=e;else if(N(e))for(let n=0;n<e.length;n++){const i=ve(e[n]);i&&(t+=i+" ")}else if(ge(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const aa=Li("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function hs(e){return!!e||e===""}function ca(e,t){if(e.length!==t.length)return!1;let n=!0;for(let i=0;n&&i<e.length;i++)n=Ct(e[i],t[i]);return n}function Ct(e,t){if(e===t)return!0;let n=ls(e),i=ls(t);if(n||i)return n&&i?e.getTime()===t.getTime():!1;if(n=et(e),i=et(t),n||i)return e===t;if(n=N(e),i=N(t),n||i)return n&&i?ca(e,t):!1;if(n=ge(e),i=ge(t),n||i){if(!n||!i)return!1;const r=Object.keys(e).length,s=Object.keys(t).length;if(r!==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 Pi(e,t){return e.findIndex(n=>Ct(n,t))}const ds=e=>!!(e&&e.__v_isRef===!0),Y=e=>ye(e)?e:e==null?"":N(e)||ge(e)&&(e.toString===as||!ee(e.toString))?ds(e)?Y(e.value):JSON.stringify(e,ps,2):String(e),ps=(e,t)=>ds(t)?ps(e,t.value):Ht(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,r],s)=>(n[Fi(i,s)+" =>"]=r,n),{})}:Nt(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Fi(n))}:et(t)?Fi(t):ge(t)&&!N(t)&&!cs(t)?String(t):t,Fi=(e,t="")=>{var n;return et(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
14
+ * @vue/reactivity v3.5.3
15
15
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
16
16
  * @license MIT
17
- **/let $e;class Yl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=$e,!t&&$e&&(this.index=($e.scopes||($e.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const i=$e;try{return $e=this,t()}finally{$e=i}}}on(){$e=this}off(){$e=this.parent}stop(t){if(this._active){let i,n;for(i=0,n=this.effects.length;i<n;i++)this.effects[i].stop();for(i=0,n=this.cleanups.length;i<n;i++)this.cleanups[i]();if(this.scopes)for(i=0,n=this.scopes.length;i<n;i++)this.scopes[i].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function Xl(e,t=$e){t&&t.active&&t.effects.push(e)}function ro(){return $e}function ea(e){$e&&$e.cleanups.push(e)}let bt;class Oi{constructor(t,i,n,r){this.fn=t,this.trigger=i,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Xl(this,r)}get dirty(){return(this._dirtyLevel===2||this._dirtyLevel===3)&&(this._dirtyLevel=1,_t(),this._dirtyLevel===1&&(this._dirtyLevel=0),kt()),this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=at,i=bt;try{return at=!0,bt=this,this._runnings++,oo(this),this.fn()}finally{so(this),this._runnings--,bt=i,at=t}}stop(){this.active&&(oo(this),so(this),this.onStop&&this.onStop(),this.active=!1)}}function oo(e){e._trackId++,e._depsLength=0}function so(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)lo(e.deps[t],e);e.deps.length=e._depsLength}}function lo(e,t){const i=e.get(t);i!==void 0&&t._trackId!==i&&(e.delete(t),e.size===0&&e.cleanup())}let at=!0,ji=0;const ao=[];function _t(){ao.push(at),at=!1}function kt(){const e=ao.pop();at=e===void 0?!0:e}function zi(){ji++}function Pi(){for(ji--;!ji&&Ui.length;)Ui.shift()()}function co(e,t,i){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&lo(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Ui=[];function uo(e,t,i){zi();for(const n of e.keys()){let r;n._dirtyLevel<t&&(r??(r=e.get(n)===n._trackId))&&(n._shouldSchedule||(n._shouldSchedule=n._dirtyLevel===0),n._dirtyLevel=t),n._shouldSchedule&&(r??(r=e.get(n)===n._trackId))&&(n.trigger(),(!n._runnings||n.allowRecurse)&&n._dirtyLevel!==2&&(n._shouldSchedule=!1,n.scheduler&&Ui.push(n.scheduler)))}Pi()}const fo=(e,t)=>{const i=new Map;return i.cleanup=e,i.computed=t,i},Fi=new WeakMap,xt=Symbol(""),Ni=Symbol("");function Te(e,t,i){if(at&&bt){let n=Fi.get(e);n||Fi.set(e,n=new Map);let r=n.get(i);r||n.set(i,r=fo(()=>n.delete(i))),co(bt,r)}}function Xe(e,t,i,n,r,o){const s=Fi.get(e);if(!s)return;let l=[];if(t==="clear")l=[...s.values()];else if(i==="length"&&F(e)){const a=Number(n);s.forEach((c,f)=>{(f==="length"||!Ye(f)&&f>=a)&&l.push(c)})}else switch(i!==void 0&&l.push(s.get(i)),t){case"add":F(e)?Ti(i)&&l.push(s.get("length")):(l.push(s.get(xt)),Ot(e)&&l.push(s.get(Ni)));break;case"delete":F(e)||(l.push(s.get(xt)),Ot(e)&&l.push(s.get(Ni)));break;case"set":Ot(e)&&l.push(s.get(xt));break}zi();for(const a of l)a&&uo(a,4);Pi()}const ta=Si("__proto__,__v_isRef,__isVue"),ho=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ye)),po=na();function na(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...i){const n=Y(this);for(let o=0,s=this.length;o<s;o++)Te(n,"get",o+"");const r=n[t](...i);return r===-1||r===!1?n[t](...i.map(Y)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...i){_t(),zi();const n=Y(this)[t].apply(this,i);return Pi(),kt(),n}}),e}function ia(e){Ye(e)||(e=String(e));const t=Y(this);return Te(t,"has",e),t.hasOwnProperty(e)}class go{constructor(t=!1,i=!1){this._isReadonly=t,this._isShallow=i}get(t,i,n){const r=this._isReadonly,o=this._isShallow;if(i==="__v_isReactive")return!r;if(i==="__v_isReadonly")return r;if(i==="__v_isShallow")return o;if(i==="__v_raw")return n===(r?o?ma:xo:o?ko:_o).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const s=F(t);if(!r){if(s&&Z(po,i))return Reflect.get(po,i,n);if(i==="hasOwnProperty")return ia}const l=Reflect.get(t,i,n);return(Ye(i)?ho.has(i):ta(i))||(r||Te(t,"get",i),o)?l:Le(l)?s&&Ti(i)?l:l.value:fe(l)?r?Jt(l):Qt(l):l}}class mo extends go{constructor(t=!1){super(!1,t)}set(t,i,n,r){let o=t[i];if(!this._isShallow){const a=Xt(o);if(!Nn(n)&&!Xt(n)&&(o=Y(o),n=Y(n)),!F(t)&&Le(o)&&!Le(n))return a?!1:(o.value=n,!0)}const s=F(t)&&Ti(i)?Number(i)<t.length:Z(t,i),l=Reflect.set(t,i,n,r);return t===Y(r)&&(s?lt(n,o)&&Xe(t,"set",i,n):Xe(t,"add",i,n)),l}deleteProperty(t,i){const n=Z(t,i),r=Reflect.deleteProperty(t,i);return r&&n&&Xe(t,"delete",i,void 0),r}has(t,i){const n=Reflect.has(t,i);return(!Ye(i)||!ho.has(i))&&Te(t,"has",i),n}ownKeys(t){return Te(t,"iterate",F(t)?"length":xt),Reflect.ownKeys(t)}}class ra extends go{constructor(t=!1){super(!0,t)}set(t,i){return!0}deleteProperty(t,i){return!0}}const oa=new mo,sa=new ra,la=new mo(!0),Hi=e=>e,On=e=>Reflect.getPrototypeOf(e);function jn(e,t,i=!1,n=!1){e=e.__v_raw;const r=Y(e),o=Y(t);i||(lt(t,o)&&Te(r,"get",t),Te(r,"get",o));const{has:s}=On(r),l=n?Hi:i?Bi:en;if(s.call(r,t))return l(e.get(t));if(s.call(r,o))return l(e.get(o));e!==r&&e.get(t)}function zn(e,t=!1){const i=this.__v_raw,n=Y(i),r=Y(e);return t||(lt(e,r)&&Te(n,"has",e),Te(n,"has",r)),e===r?i.has(e):i.has(e)||i.has(r)}function Pn(e,t=!1){return e=e.__v_raw,!t&&Te(Y(e),"iterate",xt),Reflect.get(e,"size",e)}function vo(e){e=Y(e);const t=Y(this);return On(t).has.call(t,e)||(t.add(e),Xe(t,"add",e,e)),this}function wo(e,t){t=Y(t);const i=Y(this),{has:n,get:r}=On(i);let o=n.call(i,e);o||(e=Y(e),o=n.call(i,e));const s=r.call(i,e);return i.set(e,t),o?lt(t,s)&&Xe(i,"set",e,t):Xe(i,"add",e,t),this}function yo(e){const t=Y(this),{has:i,get:n}=On(t);let r=i.call(t,e);r||(e=Y(e),r=i.call(t,e)),n&&n.call(t,e);const o=t.delete(e);return r&&Xe(t,"delete",e,void 0),o}function bo(){const e=Y(this),t=e.size!==0,i=e.clear();return t&&Xe(e,"clear",void 0,void 0),i}function Un(e,t){return function(n,r){const o=this,s=o.__v_raw,l=Y(s),a=t?Hi:e?Bi:en;return!e&&Te(l,"iterate",xt),s.forEach((c,f)=>n.call(r,a(c),a(f),o))}}function Fn(e,t,i){return function(...n){const r=this.__v_raw,o=Y(r),s=Ot(o),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=r[e](...n),f=i?Hi:t?Bi:en;return!t&&Te(o,"iterate",a?Ni:xt),{next(){const{value:h,done:p}=c.next();return p?{value:h,done:p}:{value:l?[f(h[0]),f(h[1])]:f(h),done:p}},[Symbol.iterator](){return this}}}}function ct(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function aa(){const e={get(o){return jn(this,o)},get size(){return Pn(this)},has:zn,add:vo,set:wo,delete:yo,clear:bo,forEach:Un(!1,!1)},t={get(o){return jn(this,o,!1,!0)},get size(){return Pn(this)},has:zn,add:vo,set:wo,delete:yo,clear:bo,forEach:Un(!1,!0)},i={get(o){return jn(this,o,!0)},get size(){return Pn(this,!0)},has(o){return zn.call(this,o,!0)},add:ct("add"),set:ct("set"),delete:ct("delete"),clear:ct("clear"),forEach:Un(!0,!1)},n={get(o){return jn(this,o,!0,!0)},get size(){return Pn(this,!0)},has(o){return zn.call(this,o,!0)},add:ct("add"),set:ct("set"),delete:ct("delete"),clear:ct("clear"),forEach:Un(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Fn(o,!1,!1),i[o]=Fn(o,!0,!1),t[o]=Fn(o,!1,!0),n[o]=Fn(o,!0,!0)}),[e,i,t,n]}const[ca,ua,fa,da]=aa();function Di(e,t){const i=t?e?da:fa:e?ua:ca;return(n,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?n:Reflect.get(Z(i,r)&&r in n?i:n,r,o)}const ha={get:Di(!1,!1)},pa={get:Di(!1,!0)},ga={get:Di(!0,!1)},_o=new WeakMap,ko=new WeakMap,xo=new WeakMap,ma=new WeakMap;function va(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function wa(e){return e.__v_skip||!Object.isExtensible(e)?0:va(Vl(e))}function Qt(e){return Xt(e)?e:Vi(e,!1,oa,ha,_o)}function ya(e){return Vi(e,!1,la,pa,ko)}function Jt(e){return Vi(e,!0,sa,ga,xo)}function Vi(e,t,i,n,r){if(!fe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const s=wa(e);if(s===0)return e;const l=new Proxy(e,s===2?n:i);return r.set(e,l),l}function Yt(e){return Xt(e)?Yt(e.__v_raw):!!(e&&e.__v_isReactive)}function Xt(e){return!!(e&&e.__v_isReadonly)}function Nn(e){return!!(e&&e.__v_isShallow)}function Co(e){return e?!!e.__v_raw:!1}function Y(e){const t=e&&e.__v_raw;return t?Y(t):e}function ba(e){return Object.isExtensible(e)&&eo(e,"__v_skip",!0),e}const en=e=>fe(e)?Qt(e):e,Bi=e=>fe(e)?Jt(e):e;class Eo{constructor(t,i,n,r){this.getter=t,this._setter=i,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Oi(()=>t(this._value),()=>Hn(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const t=Y(this);return(!t._cacheable||t.effect.dirty)&&lt(t._value,t._value=t.effect.run())&&Hn(t,4),Io(t),t.effect._dirtyLevel>=2&&Hn(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function _a(e,t,i=!1){let n,r;const o=ee(e);return o?(n=e,r=Je):(n=e.get,r=e.set),new Eo(n,r,o||!r,i)}function Io(e){var t;at&&bt&&(e=Y(e),co(bt,(t=e.dep)!=null?t:e.dep=fo(()=>e.dep=void 0,e instanceof Eo?e:void 0)))}function Hn(e,t=4,i){e=Y(e);const n=e.dep;n&&uo(n,t)}function Le(e){return!!(e&&e.__v_isRef===!0)}function V(e){return So(e,!1)}function ka(e){return So(e,!0)}function So(e,t){return Le(e)?e:new xa(e,t)}class xa{constructor(t,i){this.__v_isShallow=i,this.dep=void 0,this.__v_isRef=!0,this._rawValue=i?t:Y(t),this._value=i?t:en(t)}get value(){return Io(this),this._value}set value(t){const i=this.__v_isShallow||Nn(t)||Xt(t);t=i?t:Y(t),lt(t,this._rawValue)&&(this._rawValue=t,this._value=i?t:en(t),Hn(this,4))}}function Ro(e){return Le(e)?e.value:e}const Ca={get:(e,t,i)=>Ro(Reflect.get(e,t,i)),set:(e,t,i,n)=>{const r=e[t];return Le(r)&&!Le(i)?(r.value=i,!0):Reflect.set(e,t,i,n)}};function To(e){return Yt(e)?e:new Proxy(e,Ca)}/**
18
- * @vue/runtime-core v3.4.27
17
+ **/let Ae;class ua{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){let n,i;for(n=0,i=this.effects.length;n<i;n++)this.effects[n].stop();for(n=0,i=this.cleanups.length;n<i;n++)this.cleanups[n]();if(this.scopes)for(n=0,i=this.scopes.length;n<i;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function gs(){return Ae}function fa(e,t=!1){Ae&&Ae.cleanups.push(e)}let fe;const Di=new WeakSet;class ms{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.nextEffect=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,Di.has(this)&&(Di.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||(this.flags|=8,this.nextEffect=ln,ln=this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,xs(this),bs(this);const t=fe,n=Ze;fe=this,Ze=!0;try{return this.fn()}finally{ys(this),fe=t,Ze=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Vi(t);this.deps=this.depsTail=void 0,xs(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Di.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ni(this)&&this.run()}get dirty(){return Ni(this)}}let vs=0,ln;function Ui(){vs++}function Hi(){if(--vs>0)return;let e;for(;ln;){let t=ln;for(ln=void 0;t;){const n=t.nextEffect;if(t.nextEffect=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(i){e||(e=i)}t=n}}if(e)throw e}function bs(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ys(e){let t,n=e.depsTail;for(let i=n;i;i=i.prevDep)i.version===-1?(i===n&&(n=i.prevDep),Vi(i),ha(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0;e.deps=t,e.depsTail=n}function Ni(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&ws(t.dep.computed)===!1||t.dep.version!==t.version)return!0;return!!e._dirty}function ws(e){if(e.flags&2)return!1;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&&!Ni(e)){e.flags&=-3;return}const n=fe,i=Ze;fe=e,Ze=!0;try{bs(e);const r=e.fn(e._value);(t.version===0||gt(r,e._value))&&(e._value=r,t.version++)}catch(r){throw t.version++,r}finally{fe=n,Ze=i,ys(e),e.flags&=-3}}function Vi(e){const{dep:t,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),t.subs===e&&(t.subs=n),!t.subs&&t.computed){t.computed.flags&=-5;for(let r=t.computed.deps;r;r=r.nextDep)Vi(r)}}function ha(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 ks=[];function St(){ks.push(Ze),Ze=!1}function Et(){const e=ks.pop();Ze=e===void 0?!0:e}function xs(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 Bi{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0}track(t){if(!fe||!Ze||fe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==fe)n=this.activeLink={dep:this,sub:fe,version:this.version,nextDep:void 0,prevDep:void 0,nextSub:void 0,prevSub:void 0,prevActiveLink:void 0},fe.deps?(n.prevDep=fe.depsTail,fe.depsTail.nextDep=n,fe.depsTail=n):fe.deps=fe.depsTail=n,fe.flags&4&&_s(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const i=n.nextDep;i.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=i),n.prevDep=fe.depsTail,n.nextDep=void 0,fe.depsTail.nextDep=n,fe.depsTail=n,fe.deps===n&&(fe.deps=i)}return n}trigger(t){this.version++,on++,this.notify(t)}notify(t){Ui();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()}finally{Hi()}}}function _s(e){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let i=t.deps;i;i=i.nextDep)_s(i)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}const Wi=new WeakMap,Tt=Symbol(""),qi=Symbol(""),an=Symbol("");function Ce(e,t,n){if(Ze&&fe){let i=Wi.get(e);i||Wi.set(e,i=new Map);let r=i.get(n);r||i.set(n,r=new Bi),r.track()}}function lt(e,t,n,i,r,s){const l=Wi.get(e);if(!l){on++;return}let o=[];if(t==="clear")o=[...l.values()];else{const a=N(e),u=a&&Oi(n);if(a&&n==="length"){const c=Number(i);l.forEach((h,p)=>{(p==="length"||p===an||!et(p)&&p>=c)&&o.push(h)})}else{const c=h=>h&&o.push(h);switch(n!==void 0&&c(l.get(n)),u&&c(l.get(an)),t){case"add":a?u&&c(l.get("length")):(c(l.get(Tt)),Ht(e)&&c(l.get(qi)));break;case"delete":a||(c(l.get(Tt)),Ht(e)&&c(l.get(qi)));break;case"set":Ht(e)&&c(l.get(Tt));break}}}Ui();for(const a of o)a.trigger();Hi()}function Vt(e){const t=te(e);return t===e?t:(Ce(t,"iterate",an),Je(e)?t:t.map(Se))}function Bn(e){return Ce(e=te(e),"iterate",an),e}const da={__proto__:null,[Symbol.iterator](){return Ki(this,Symbol.iterator,Se)},concat(...e){return Vt(this).concat(...e.map(t=>N(t)?Vt(t):t))},entries(){return Ki(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 Gi(this,"includes",e)},indexOf(...e){return Gi(this,"indexOf",e)},join(e){return Vt(this).join(e)},lastIndexOf(...e){return Gi(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 $s(this,"reduce",e,t)},reduceRight(e,...t){return $s(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 Vt(this).toReversed()},toSorted(e){return Vt(this).toSorted(e)},toSpliced(...e){return Vt(this).toSpliced(...e)},unshift(...e){return cn(this,"unshift",e)},values(){return Ki(this,"values",Se)}};function Ki(e,t,n){const i=Bn(e),r=i[t]();return i!==e&&!Je(e)&&(r._next=r.next,r.next=()=>{const s=r._next();return s.value&&(s.value=n(s.value)),s}),r}const pa=Array.prototype;function ot(e,t,n,i,r,s){const l=Bn(e),o=l!==e&&!Je(e),a=l[t];if(a!==pa[t]){const h=a.apply(e,s);return o?Se(h):h}let u=n;l!==e&&(o?u=function(h,p){return n.call(this,Se(h),p,e)}:n.length>2&&(u=function(h,p){return n.call(this,h,p,e)}));const c=a.call(l,u,i);return o&&r?r(c):c}function $s(e,t,n,i){const r=Bn(e);let s=n;return r!==e&&(Je(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)}),r[t](s,...i)}function Gi(e,t,n){const i=te(e);Ce(i,"iterate",an);const r=i[t](...n);return(r===-1||r===!1)&&Yi(n[0])?(n[0]=te(n[0]),i[t](...n)):r}function cn(e,t,n=[]){St(),Ui();const i=te(e)[t].apply(e,n);return Hi(),Et(),i}const ga=Li("__proto__,__v_isRef,__isVue"),Cs=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(et));function ma(e){et(e)||(e=String(e));const t=te(this);return Ce(t,"has",e),t.hasOwnProperty(e)}class Ss{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,i){const r=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return s;if(n==="__v_raw")return i===(r?s?Aa:Os:s?Ms:Ls).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const l=N(t);if(!r){let a;if(l&&(a=da[n]))return a;if(n==="hasOwnProperty")return ma}const o=Reflect.get(t,n,xe(t)?t:i);return(et(n)?Cs.has(n):ga(n))||(r||Ce(t,"get",n),s)?o:xe(o)?l&&Oi(n)?o:o.value:ge(o)?r?fn(o):un(o):o}}class Es extends Ss{constructor(t=!1){super(!1,t)}set(t,n,i,r){let s=t[n];if(!this._isShallow){const a=At(s);if(!Je(i)&&!At(i)&&(s=te(s),i=te(i)),!N(t)&&xe(s)&&!xe(i))return a?!1:(s.value=i,!0)}const l=N(t)&&Oi(n)?Number(n)<t.length:re(t,n),o=Reflect.set(t,n,i,xe(t)?t:r);return t===te(r)&&(l?gt(i,s)&&lt(t,"set",n,i):lt(t,"add",n,i)),o}deleteProperty(t,n){const i=re(t,n),r=Reflect.deleteProperty(t,n);return r&&i&&lt(t,"delete",n,void 0),r}has(t,n){const i=Reflect.has(t,n);return(!et(n)||!Cs.has(n))&&Ce(t,"has",n),i}ownKeys(t){return Ce(t,"iterate",N(t)?"length":Tt),Reflect.ownKeys(t)}}class va extends Ss{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const ba=new Es,ya=new va,wa=new Es(!0),Zi=e=>e,Wn=e=>Reflect.getPrototypeOf(e);function qn(e,t,n=!1,i=!1){e=e.__v_raw;const r=te(e),s=te(t);n||(gt(t,s)&&Ce(r,"get",t),Ce(r,"get",s));const{has:l}=Wn(r),o=i?Zi:n?Xi:Se;if(l.call(r,t))return o(e.get(t));if(l.call(r,s))return o(e.get(s));e!==r&&e.get(t)}function Kn(e,t=!1){const n=this.__v_raw,i=te(n),r=te(e);return t||(gt(e,r)&&Ce(i,"has",e),Ce(i,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Gn(e,t=!1){return e=e.__v_raw,!t&&Ce(te(e),"iterate",Tt),Reflect.get(e,"size",e)}function Ts(e,t=!1){!t&&!Je(e)&&!At(e)&&(e=te(e));const n=te(this);return Wn(n).has.call(n,e)||(n.add(e),lt(n,"add",e,e)),this}function As(e,t,n=!1){!n&&!Je(t)&&!At(t)&&(t=te(t));const i=te(this),{has:r,get:s}=Wn(i);let l=r.call(i,e);l||(e=te(e),l=r.call(i,e));const o=s.call(i,e);return i.set(e,t),l?gt(t,o)&&lt(i,"set",e,t):lt(i,"add",e,t),this}function Rs(e){const t=te(this),{has:n,get:i}=Wn(t);let r=n.call(t,e);r||(e=te(e),r=n.call(t,e)),i&&i.call(t,e);const s=t.delete(e);return r&&lt(t,"delete",e,void 0),s}function Is(){const e=te(this),t=e.size!==0,n=e.clear();return t&&lt(e,"clear",void 0,void 0),n}function Zn(e,t){return function(i,r){const s=this,l=s.__v_raw,o=te(l),a=t?Zi:e?Xi:Se;return!e&&Ce(o,"iterate",Tt),l.forEach((u,c)=>i.call(r,a(u),a(c),s))}}function Jn(e,t,n){return function(...i){const r=this.__v_raw,s=te(r),l=Ht(s),o=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,u=r[e](...i),c=n?Zi:t?Xi:Se;return!t&&Ce(s,"iterate",a?qi:Tt),{next(){const{value:h,done:p}=u.next();return p?{value:h,done:p}:{value:o?[c(h[0]),c(h[1])]:c(h),done:p}},[Symbol.iterator](){return this}}}}function mt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ka(){const e={get(s){return qn(this,s)},get size(){return Gn(this)},has:Kn,add:Ts,set:As,delete:Rs,clear:Is,forEach:Zn(!1,!1)},t={get(s){return qn(this,s,!1,!0)},get size(){return Gn(this)},has:Kn,add(s){return Ts.call(this,s,!0)},set(s,l){return As.call(this,s,l,!0)},delete:Rs,clear:Is,forEach:Zn(!1,!0)},n={get(s){return qn(this,s,!0)},get size(){return Gn(this,!0)},has(s){return Kn.call(this,s,!0)},add:mt("add"),set:mt("set"),delete:mt("delete"),clear:mt("clear"),forEach:Zn(!0,!1)},i={get(s){return qn(this,s,!0,!0)},get size(){return Gn(this,!0)},has(s){return Kn.call(this,s,!0)},add:mt("add"),set:mt("set"),delete:mt("delete"),clear:mt("clear"),forEach:Zn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=Jn(s,!1,!1),n[s]=Jn(s,!0,!1),t[s]=Jn(s,!1,!0),i[s]=Jn(s,!0,!0)}),[e,n,t,i]}const[xa,_a,$a,Ca]=ka();function Ji(e,t){const n=t?e?Ca:$a:e?_a:xa;return(i,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?i:Reflect.get(re(n,r)&&r in i?n:i,r,s)}const Sa={get:Ji(!1,!1)},Ea={get:Ji(!1,!0)},Ta={get:Ji(!0,!1)},Ls=new WeakMap,Ms=new WeakMap,Os=new WeakMap,Aa=new WeakMap;function Ra(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ia(e){return e.__v_skip||!Object.isExtensible(e)?0:Ra(ta(e))}function un(e){return At(e)?e:Qi(e,!1,ba,Sa,Ls)}function La(e){return Qi(e,!1,wa,Ea,Ms)}function fn(e){return Qi(e,!0,ya,Ta,Os)}function Qi(e,t,n,i,r){if(!ge(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const l=Ia(e);if(l===0)return e;const o=new Proxy(e,l===2?i:n);return r.set(e,o),o}function Bt(e){return At(e)?Bt(e.__v_raw):!!(e&&e.__v_isReactive)}function At(e){return!!(e&&e.__v_isReadonly)}function Je(e){return!!(e&&e.__v_isShallow)}function Yi(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 Object.isExtensible(e)&&us(e,"__v_skip",!0),e}const Se=e=>ge(e)?un(e):e,Xi=e=>ge(e)?fn(e):e;function xe(e){return e?e.__v_isRef===!0:!1}function q(e){return js(e,!1)}function Oa(e){return js(e,!0)}function js(e,t){return xe(e)?e:new ja(e,t)}class ja{constructor(t,n){this.dep=new Bi,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,i=this.__v_isShallow||Je(t)||At(t);t=i?t:te(t),gt(t,n)&&(this._rawValue=t,this._value=i?t:Se(t),this.dep.trigger())}}function K(e){return xe(e)?e.value:e}const za={get:(e,t,n)=>t==="__v_raw"?e:K(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const r=e[t];return xe(r)&&!xe(n)?(r.value=n,!0):Reflect.set(e,t,n,i)}};function zs(e){return Bt(e)?e:new Proxy(e,za)}class Pa{constructor(t,n,i){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Bi(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=on-1,this.effect=this,this.__v_isReadonly=!n,this.isSSR=i}notify(){fe!==this&&(this.flags|=16,this.dep.notify())}get value(){const t=this.dep.track();return ws(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Fa(e,t,n=!1){let i,r;return ee(e)?i=e:(i=e.get,r=e.set),new Pa(i,r,n)}const Qn={},Yn=new WeakMap;let Rt;function Da(e,t=!1,n=Rt){if(n){let i=Yn.get(n);i||Yn.set(n,i=[]),i.push(e)}}function Ua(e,t,n=ue){const{immediate:i,deep:r,once:s,scheduler:l,augmentJob:o,call:a}=n,u=A=>r?A:Je(A)||r===!1||r===0?at(A,1):at(A);let c,h,p,m,w=!1,x=!1;if(xe(e)?(h=()=>e.value,w=Je(e)):Bt(e)?(h=()=>u(e),w=!0):N(e)?(x=!0,w=e.some(A=>Bt(A)||Je(A)),h=()=>e.map(A=>{if(xe(A))return A.value;if(Bt(A))return u(A);if(ee(A))return a?a(A,2):A()})):ee(e)?t?h=a?()=>a(e,2):e:h=()=>{if(p){St();try{p()}finally{Et()}}const A=Rt;Rt=c;try{return a?a(e,3,[m]):e(m)}finally{Rt=A}}:h=_t,t&&r){const A=h,z=r===!0?1/0:r;h=()=>at(A(),z)}const C=gs(),v=()=>{c.stop(),C&&ss(C.effects,c)};if(s)if(t){const A=t;t=(...z)=>{A(...z),v()}}else{const A=h;h=()=>{A(),v()}}let $=x?new Array(e.length).fill(Qn):Qn;const H=A=>{if(!(!(c.flags&1)||!c.dirty&&!A))if(t){const z=c.run();if(r||w||(x?z.some((W,U)=>gt(W,$[U])):gt(z,$))){p&&p();const W=Rt;Rt=c;try{const U=[z,$===Qn?void 0:x&&$[0]===Qn?[]:$,m];a?a(t,3,U):t(...U),$=z}finally{Rt=W}}}else c.run()};return o&&o(H),c=new ms(h),c.scheduler=l?()=>l(H,!1):H,m=A=>Da(A,!1,c),p=c.onStop=()=>{const A=Yn.get(c);if(A){if(a)a(A,4);else for(const z of A)z();Yn.delete(c)}},t?i?H(!0):$=c.run():l?l(H.bind(null,!0),!0):c.run(),v.pause=c.pause.bind(c),v.resume=c.resume.bind(c),v.stop=v,v}function at(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--,xe(e))at(e.value,t,n);else if(N(e))for(let i=0;i<e.length;i++)at(e[i],t,n);else if(Nt(e)||Ht(e))e.forEach(i=>{at(i,t,n)});else if(cs(e)){for(const i in e)at(e[i],t,n);for(const i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&at(e[i],t,n)}return e}/**
18
+ * @vue/runtime-core v3.5.3
19
19
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
20
20
  * @license MIT
21
- **/function ut(e,t,i,n){try{return n?e(...n):e()}catch(r){Dn(r,t,i)}}function qe(e,t,i,n){if(ee(e)){const r=ut(e,t,i,n);return r&&Jr(r)&&r.catch(o=>{Dn(o,t,i)}),r}if(F(e)){const r=[];for(let o=0;o<e.length;o++)r.push(qe(e[o],t,i,n));return r}}function Dn(e,t,i,n=!0){const r=t?t.vnode:null;if(t){let o=t.parent;const s=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${i}`;for(;o;){const c=o.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,s,l)===!1)return}o=o.parent}const a=t.appContext.config.errorHandler;if(a){_t(),ut(a,null,10,[e,s,l]),kt();return}}Ea(e,i,r,n)}function Ea(e,t,i,n=!0){console.error(e)}let tn=!1,Wi=!1;const xe=[];let Ke=0;const Pt=[];let ft=null,Ct=0;const Lo=Promise.resolve();let qi=null;function Ut(e){const t=qi||Lo;return e?t.then(this?e.bind(this):e):t}function Ia(e){let t=Ke+1,i=xe.length;for(;t<i;){const n=t+i>>>1,r=xe[n],o=nn(r);o<e||o===e&&r.pre?t=n+1:i=n}return t}function Ki(e){(!xe.length||!xe.includes(e,tn&&e.allowRecurse?Ke+1:Ke))&&(e.id==null?xe.push(e):xe.splice(Ia(e.id),0,e),Ao())}function Ao(){!tn&&!Wi&&(Wi=!0,qi=Lo.then(Oo))}function Sa(e){const t=xe.indexOf(e);t>Ke&&xe.splice(t,1)}function Ra(e){F(e)?Pt.push(...e):(!ft||!ft.includes(e,e.allowRecurse?Ct+1:Ct))&&Pt.push(e),Ao()}function Mo(e,t,i=tn?Ke+1:0){for(;i<xe.length;i++){const n=xe[i];if(n&&n.pre){if(e&&n.id!==e.uid)continue;xe.splice(i,1),i--,n()}}}function $o(e){if(Pt.length){const t=[...new Set(Pt)].sort((i,n)=>nn(i)-nn(n));if(Pt.length=0,ft){ft.push(...t);return}for(ft=t,Ct=0;Ct<ft.length;Ct++)ft[Ct]();ft=null,Ct=0}}const nn=e=>e.id==null?1/0:e.id,Ta=(e,t)=>{const i=nn(e)-nn(t);if(i===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return i};function Oo(e){Wi=!1,tn=!0,xe.sort(Ta);try{for(Ke=0;Ke<xe.length;Ke++){const t=xe[Ke];t&&t.active!==!1&&ut(t,null,14)}}finally{Ke=0,xe.length=0,$o(),tn=!1,qi=null,(xe.length||Pt.length)&&Oo()}}function La(e,t,...i){if(e.isUnmounted)return;const n=e.vnode.props||le;let r=i;const o=t.startsWith("update:"),s=o&&t.slice(7);if(s&&s in n){const f=`${s==="modelValue"?"model":s}Modifiers`,{number:h,trim:p}=n[f]||le;p&&(r=i.map(g=>be(g)?g.trim():g)),h&&(r=i.map($n))}let l,a=n[l=Li(t)]||n[l=Li(We(t))];!a&&o&&(a=n[l=Li(zt(t))]),a&&qe(a,e,6,r);const c=n[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,qe(c,e,6,r)}}function Aa(e,t,i=!1){const n=t.emitsCache,r=n.get(e);if(r!==void 0)return r;const o=e.emits;let s={};return!o&&!!1?(fe(e)&&n.set(e,null),null):(F(o)?o.forEach(a=>s[a]=null):ke(s,o),fe(e)&&n.set(e,s),s)}function Vn(e,t){return!e||!Tn(t)?!1:(t=t.slice(2).replace(/Once$/,""),Z(e,t[0].toLowerCase()+t.slice(1))||Z(e,zt(t))||Z(e,t))}let Ce=null,jo=null;function Bn(e){const t=Ce;return Ce=e,jo=e&&e.type.__scopeId||null,t}function Ma(e,t=Ce,i){if(!t||e._n)return e;const n=(...r)=>{n._d&&rs(-1);const o=Bn(t);let s;try{s=e(...r)}finally{Bn(o),n._d&&rs(1)}return s};return n._n=!0,n._c=!0,n._d=!0,n}function Gi(e){const{type:t,vnode:i,proxy:n,withProxy:r,propsOptions:[o],slots:s,attrs:l,emit:a,render:c,renderCache:f,props:h,data:p,setupState:g,ctx:R,inheritAttrs:x}=e,T=Bn(e);let $,P;try{if(i.shapeFlag&4){const N=r||n,te=N;$=Ge(c.call(te,N,f,h,g,p,R)),P=l}else{const N=t;$=Ge(N.length>1?N(h,{attrs:l,slots:s,emit:a}):N(h,null)),P=t.props?l:$a(l)}}catch(N){cn.length=0,Dn(N,e,1),$=ne(Rt)}let A=$;if(P&&x!==!1){const N=Object.keys(P),{shapeFlag:te}=A;N.length&&te&7&&(o&&N.some(Ri)&&(P=Oa(P,o)),A=Ft(A,P,!1,!0))}return i.dirs&&(A=Ft(A,null,!1,!0),A.dirs=A.dirs?A.dirs.concat(i.dirs):i.dirs),i.transition&&(A.transition=i.transition),$=A,Bn(T),$}const $a=e=>{let t;for(const i in e)(i==="class"||i==="style"||Tn(i))&&((t||(t={}))[i]=e[i]);return t},Oa=(e,t)=>{const i={};for(const n in e)(!Ri(n)||!(n.slice(9)in t))&&(i[n]=e[n]);return i};function ja(e,t,i){const{props:n,children:r,component:o}=e,{props:s,children:l,patchFlag:a}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(i&&a>=0){if(a&1024)return!0;if(a&16)return n?zo(n,s,c):!!s;if(a&8){const f=t.dynamicProps;for(let h=0;h<f.length;h++){const p=f[h];if(s[p]!==n[p]&&!Vn(c,p))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:n===s?!1:n?s?zo(n,s,c):!0:!!s;return!1}function zo(e,t,i){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let r=0;r<n.length;r++){const o=n[r];if(t[o]!==e[o]&&!Vn(i,o))return!0}return!1}function za({vnode:e,parent:t},i){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=i,t=t.parent;else break}}const Pa="components";function Ua(e,t){return Na(Pa,e,!0,t)||e}const Fa=Symbol.for("v-ndc");function Na(e,t,i=!0,n=!1){const r=Ce||Ie;if(r){const o=r.type;{const l=Ic(o,!1);if(l&&(l===t||l===We(t)||l===An(We(t))))return o}const s=Po(r[e]||o[e],t)||Po(r.appContext[e],t);return!s&&n?o:s}}function Po(e,t){return e&&(e[t]||e[We(t)]||e[An(We(t))])}const Ha=e=>e.__isSuspense;function Da(e,t){t&&t.pendingBranch?F(e)?t.effects.push(...e):t.effects.push(e):Ra(e)}const Va=Symbol.for("v-scx"),Ba=()=>Zn(Va);function Uo(e,t){return Fo(e,null,t)}const Wn={};function Pe(e,t,i){return Fo(e,t,i)}function Fo(e,t,{immediate:i,deep:n,flush:r,once:o,onTrack:s,onTrigger:l}=le){if(t&&o){const H=t;t=(...D)=>{H(...D),te()}}const a=Ie,c=H=>n===!0?H:Et(H,n===!1?1:void 0);let f,h=!1,p=!1;if(Le(e)?(f=()=>e.value,h=Nn(e)):Yt(e)?(f=()=>c(e),h=!0):F(e)?(p=!0,h=e.some(H=>Yt(H)||Nn(H)),f=()=>e.map(H=>{if(Le(H))return H.value;if(Yt(H))return c(H);if(ee(H))return ut(H,a,2)})):ee(e)?t?f=()=>ut(e,a,2):f=()=>(g&&g(),qe(e,a,3,[R])):f=Je,t&&n){const H=f;f=()=>Et(H())}let g,R=H=>{g=A.onStop=()=>{ut(H,a,4),g=A.onStop=void 0}},x;if(Xn)if(R=Je,t?i&&qe(t,a,3,[f(),p?[]:void 0,R]):f(),r==="sync"){const H=Ba();x=H.__watcherHandles||(H.__watcherHandles=[])}else return Je;let T=p?new Array(e.length).fill(Wn):Wn;const $=()=>{if(!(!A.active||!A.dirty))if(t){const H=A.run();(n||h||(p?H.some((D,B)=>lt(D,T[B])):lt(H,T)))&&(g&&g(),qe(t,a,3,[H,T===Wn?void 0:p&&T[0]===Wn?[]:T,R]),T=H)}else A.run()};$.allowRecurse=!!t;let P;r==="sync"?P=$:r==="post"?P=()=>Ae($,a&&a.suspense):($.pre=!0,a&&($.id=a.uid),P=()=>Ki($));const A=new Oi(f,Je,P),N=ro(),te=()=>{A.stop(),N&&Zr(N.effects,A)};return t?i?$():T=A.run():r==="post"?Ae(A.run.bind(A),a&&a.suspense):A.run(),x&&x.push(te),te}function Et(e,t=1/0,i){if(t<=0||!fe(e)||e.__v_skip||(i=i||new Set,i.has(e)))return e;if(i.add(e),t--,Le(e))Et(e.value,t,i);else if(F(e))for(let n=0;n<e.length;n++)Et(e[n],t,i);else if(jt(e)||Ot(e))e.forEach(n=>{Et(n,t,i)});else if(Xr(e))for(const n in e)Et(e[n],t,i);return e}function qn(e,t){if(Ce===null)return e;const i=ei(Ce)||Ce.proxy,n=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,s,l,a=le]=t[r];o&&(ee(o)&&(o={mounted:o,updated:o}),o.deep&&Et(s),n.push({dir:o,instance:i,value:s,oldValue:void 0,arg:l,modifiers:a}))}return e}function It(e,t,i,n){const r=e.dirs,o=t&&t.dirs;for(let s=0;s<r.length;s++){const l=r[s];o&&(l.oldValue=o[s].value);let a=l.dir[n];a&&(_t(),qe(a,i,8,[e.el,l,e,t]),kt())}}/*! #__NO_SIDE_EFFECTS__ */function rn(e,t){return ee(e)?ke({name:e.name},t,{setup:e}):e}const Kn=e=>!!e.type.__asyncLoader,Wa=e=>e.type.__isKeepAlive;function qa(e,t,i=Ie,n=!1){if(i){const r=i[e]||(i[e]=[]),o=t.__weh||(t.__weh=(...s)=>{if(i.isUnmounted)return;_t();const l=lr(i),a=qe(t,i,e,s);return l(),kt(),a});return n?r.unshift(o):r.push(o),o}}const Zi=e=>(t,i=Ie)=>(!Xn||e==="sp")&&qa(e,(...n)=>t(...n),i),on=Zi("m"),Ka=Zi("bum"),Qi=Zi("um");function Ue(e,t,i,n){let r;const o=i;if(F(e)||be(e)){r=new Array(e.length);for(let s=0,l=e.length;s<l;s++)r[s]=t(e[s],s,void 0,o)}else if(typeof e=="number"){r=new Array(e);for(let s=0;s<e;s++)r[s]=t(s+1,s,void 0,o)}else if(fe(e))if(e[Symbol.iterator])r=Array.from(e,(s,l)=>t(s,l,void 0,o));else{const s=Object.keys(e);r=new Array(s.length);for(let l=0,a=s.length;l<a;l++){const c=s[l];r[l]=t(e[c],c,l,o)}}else r=[];return r}const Ji=e=>e?as(e)?ei(e)||e.proxy:Ji(e.parent):null,sn=ke(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=>Ji(e.parent),$root:e=>Ji(e.root),$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Ki(e.update)}),$nextTick:e=>e.n||(e.n=Ut.bind(e.proxy)),$watch:e=>Je}),Yi=(e,t)=>e!==le&&!e.__isScriptSetup&&Z(e,t),Ga={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:i,setupState:n,data:r,props:o,accessCache:s,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const g=s[t];if(g!==void 0)switch(g){case 1:return n[t];case 2:return r[t];case 4:return i[t];case 3:return o[t]}else{if(Yi(n,t))return s[t]=1,n[t];if(r!==le&&Z(r,t))return s[t]=2,r[t];if((c=e.propsOptions[0])&&Z(c,t))return s[t]=3,o[t];if(i!==le&&Z(i,t))return s[t]=4,i[t];s[t]=0}}const f=sn[t];let h,p;if(f)return t==="$attrs"&&Te(e.attrs,"get",""),f(e);if((h=l.__cssModules)&&(h=h[t]))return h;if(i!==le&&Z(i,t))return s[t]=4,i[t];if(p=a.config.globalProperties,Z(p,t))return p[t]},set({_:e},t,i){const{data:n,setupState:r,ctx:o}=e;return Yi(r,t)?(r[t]=i,!0):n!==le&&Z(n,t)?(n[t]=i,!0):Z(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=i,!0)},has({_:{data:e,setupState:t,accessCache:i,ctx:n,appContext:r,propsOptions:o}},s){let l;return!!i[s]||e!==le&&Z(e,s)||Yi(t,s)||(l=o[0])&&Z(l,s)||Z(n,s)||Z(sn,s)||Z(r.config.globalProperties,s)},defineProperty(e,t,i){return i.get!=null?e._.accessCache[t]=0:Z(i,"value")&&this.set(e,t,i.value,null),Reflect.defineProperty(e,t,i)}};function No(e){return F(e)?e.reduce((t,i)=>(t[i]=null,t),{}):e}function Za(e){const t=e.type,{mixins:i,extends:n}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:s}}=e.appContext,l=o.get(t);let a;return l?a=l:!r.length&&!i&&!n?a=t:(a={},r.length&&r.forEach(c=>Gn(a,c,s,!0)),Gn(a,t,s)),fe(t)&&o.set(t,a),a}function Gn(e,t,i,n=!1){const{mixins:r,extends:o}=t;o&&Gn(e,o,i,!0),r&&r.forEach(s=>Gn(e,s,i,!0));for(const s in t)if(!(n&&s==="expose")){const l=Qa[s]||i&&i[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const Qa={data:Ho,props:Vo,emits:Vo,methods:ln,computed:ln,beforeCreate:Ee,created:Ee,beforeMount:Ee,mounted:Ee,beforeUpdate:Ee,updated:Ee,beforeDestroy:Ee,beforeUnmount:Ee,destroyed:Ee,unmounted:Ee,activated:Ee,deactivated:Ee,errorCaptured:Ee,serverPrefetch:Ee,components:ln,directives:ln,watch:Ya,provide:Ho,inject:Ja};function Ho(e,t){return t?e?function(){return ke(ee(e)?e.call(this,this):e,ee(t)?t.call(this,this):t)}:t:e}function Ja(e,t){return ln(Do(e),Do(t))}function Do(e){if(F(e)){const t={};for(let i=0;i<e.length;i++)t[e[i]]=e[i];return t}return e}function Ee(e,t){return e?[...new Set([].concat(e,t))]:t}function ln(e,t){return e?ke(Object.create(null),e,t):t}function Vo(e,t){return e?F(e)&&F(t)?[...new Set([...e,...t])]:ke(Object.create(null),No(e),No(t??{})):t}function Ya(e,t){if(!e)return t;if(!t)return e;const i=ke(Object.create(null),e);for(const n in t)i[n]=Ee(e[n],t[n]);return i}function Bo(){return{app:null,config:{isNativeTag:Hl,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 Xa=0;function ec(e,t){return function(n,r=null){ee(n)||(n=ke({},n)),r!=null&&!fe(r)&&(r=null);const o=Bo(),s=new WeakSet;let l=!1;const a=o.app={_uid:Xa++,_component:n,_props:r,_container:null,_context:o,_instance:null,version:Rc,get config(){return o.config},set config(c){},use(c,...f){return s.has(c)||(c&&ee(c.install)?(s.add(c),c.install(a,...f)):ee(c)&&(s.add(c),c(a,...f))),a},mixin(c){return a},component(c,f){return f?(o.components[c]=f,a):o.components[c]},directive(c,f){return f?(o.directives[c]=f,a):o.directives[c]},mount(c,f,h){if(!l){const p=ne(n,r);return p.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),f&&t?t(p,c):e(p,c,h),l=!0,a._container=c,c.__vue_app__=a,ei(p.component)||p.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,f){return o.provides[c]=f,a},runWithContext(c){const f=an;an=a;try{return c()}finally{an=f}}};return a}}let an=null;function tc(e,t){if(Ie){let i=Ie.provides;const n=Ie.parent&&Ie.parent.provides;n===i&&(i=Ie.provides=Object.create(n)),i[e]=t}}function Zn(e,t,i=!1){const n=Ie||Ce;if(n||an){const r=n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:an._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return i&&ee(t)?t.call(n&&n.proxy):t}}const Wo={},qo=()=>Object.create(Wo),Ko=e=>Object.getPrototypeOf(e)===Wo;function nc(e,t,i,n=!1){const r={},o=qo();e.propsDefaults=Object.create(null),Go(e,t,r,o);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);i?e.props=n?r:ya(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function ic(e,t,i,n){const{props:r,attrs:o,vnode:{patchFlag:s}}=e,l=Y(r),[a]=e.propsOptions;let c=!1;if((n||s>0)&&!(s&16)){if(s&8){const f=e.vnode.dynamicProps;for(let h=0;h<f.length;h++){let p=f[h];if(Vn(e.emitsOptions,p))continue;const g=t[p];if(a)if(Z(o,p))g!==o[p]&&(o[p]=g,c=!0);else{const R=We(p);r[R]=Xi(a,l,R,g,e,!1)}else g!==o[p]&&(o[p]=g,c=!0)}}}else{Go(e,t,r,o)&&(c=!0);let f;for(const h in l)(!t||!Z(t,h)&&((f=zt(h))===h||!Z(t,f)))&&(a?i&&(i[h]!==void 0||i[f]!==void 0)&&(r[h]=Xi(a,l,h,void 0,e,!0)):delete r[h]);if(o!==l)for(const h in o)(!t||!Z(t,h))&&(delete o[h],c=!0)}c&&Xe(e.attrs,"set","")}function Go(e,t,i,n){const[r,o]=e.propsOptions;let s=!1,l;if(t)for(let a in t){if(Gt(a))continue;const c=t[a];let f;r&&Z(r,f=We(a))?!o||!o.includes(f)?i[f]=c:(l||(l={}))[f]=c:Vn(e.emitsOptions,a)||(!(a in n)||c!==n[a])&&(n[a]=c,s=!0)}if(o){const a=Y(i),c=l||le;for(let f=0;f<o.length;f++){const h=o[f];i[h]=Xi(r,a,h,c[h],e,!Z(c,h))}}return s}function Xi(e,t,i,n,r,o){const s=e[i];if(s!=null){const l=Z(s,"default");if(l&&n===void 0){const a=s.default;if(s.type!==Function&&!s.skipFactory&&ee(a)){const{propsDefaults:c}=r;if(i in c)n=c[i];else{const f=lr(r);n=c[i]=a.call(null,t),f()}}else n=a}s[0]&&(o&&!l?n=!1:s[1]&&(n===""||n===zt(i))&&(n=!0))}return n}function rc(e,t,i=!1){const n=t.propsCache,r=n.get(e);if(r)return r;const o=e.props,s={},l=[];if(!o&&!!1)return fe(e)&&n.set(e,$t),$t;if(F(o))for(let f=0;f<o.length;f++){const h=We(o[f]);Zo(h)&&(s[h]=le)}else if(o)for(const f in o){const h=We(f);if(Zo(h)){const p=o[f],g=s[h]=F(p)||ee(p)?{type:p}:ke({},p);if(g){const R=Yo(Boolean,g.type),x=Yo(String,g.type);g[0]=R>-1,g[1]=x<0||R<x,(R>-1||Z(g,"default"))&&l.push(h)}}}const c=[s,l];return fe(e)&&n.set(e,c),c}function Zo(e){return e[0]!=="$"&&!Gt(e)}function Qo(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Jo(e,t){return Qo(e)===Qo(t)}function Yo(e,t){return F(t)?t.findIndex(i=>Jo(i,e)):ee(t)&&Jo(t,e)?0:-1}const Xo=e=>e[0]==="_"||e==="$stable",er=e=>F(e)?e.map(Ge):[Ge(e)],oc=(e,t,i)=>{if(t._n)return t;const n=Ma((...r)=>er(t(...r)),i);return n._c=!1,n},es=(e,t,i)=>{const n=e._ctx;for(const r in e){if(Xo(r))continue;const o=e[r];if(ee(o))t[r]=oc(r,o,n);else if(o!=null){const s=er(o);t[r]=()=>s}}},ts=(e,t)=>{const i=er(t);e.slots.default=()=>i},sc=(e,t)=>{const i=e.slots=qo();if(e.vnode.shapeFlag&32){const n=t._;n?(ke(i,t),eo(i,"_",n,!0)):es(t,i)}else t&&ts(e,t)},lc=(e,t,i)=>{const{vnode:n,slots:r}=e;let o=!0,s=le;if(n.shapeFlag&32){const l=t._;l?i&&l===1?o=!1:(ke(r,t),!i&&l===1&&delete r._):(o=!t.$stable,es(t,r)),s=t}else t&&(ts(e,t),s={default:1});if(o)for(const l in r)!Xo(l)&&s[l]==null&&delete r[l]};function tr(e,t,i,n,r=!1){if(F(e)){e.forEach((p,g)=>tr(p,t&&(F(t)?t[g]:t),i,n,r));return}if(Kn(n)&&!r)return;const o=n.shapeFlag&4?ei(n.component)||n.component.proxy:n.el,s=r?null:o,{i:l,r:a}=e,c=t&&t.r,f=l.refs===le?l.refs={}:l.refs,h=l.setupState;if(c!=null&&c!==a&&(be(c)?(f[c]=null,Z(h,c)&&(h[c]=null)):Le(c)&&(c.value=null)),ee(a))ut(a,l,12,[s,f]);else{const p=be(a),g=Le(a);if(p||g){const R=()=>{if(e.f){const x=p?Z(h,a)?h[a]:f[a]:a.value;r?F(x)&&Zr(x,o):F(x)?x.includes(o)||x.push(o):p?(f[a]=[o],Z(h,a)&&(h[a]=f[a])):(a.value=[o],e.k&&(f[e.k]=a.value))}else p?(f[a]=s,Z(h,a)&&(h[a]=s)):g&&(a.value=s,e.k&&(f[e.k]=s))};s?(R.id=-1,Ae(R,i)):R()}}}function ac(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(Ai().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Ae=Da;function cc(e){return uc(e)}function uc(e,t){ac();const i=Ai();i.__VUE__=!0;const{insert:n,remove:r,patchProp:o,createElement:s,createText:l,createComment:a,setText:c,setElementText:f,parentNode:h,nextSibling:p,setScopeId:g=Je,insertStaticContent:R}=e,x=(u,d,m,w=null,v=null,b=null,C=void 0,_=null,k=!!d.dynamicChildren)=>{if(u===d)return;u&&!fn(u,d)&&(w=At(u),Me(u,v,b,!0),u=null),d.patchFlag===-2&&(k=!1,d.dynamicChildren=null);const{type:y,ref:S,shapeFlag:z}=d;switch(y){case Qn:T(u,d,m,w);break;case Rt:$(u,d,m,w);break;case ir:u==null&&P(d,m,w,C);break;case se:ge(u,d,m,w,v,b,C,_,k);break;default:z&1?te(u,d,m,w,v,b,C,_,k):z&6?mt(u,d,m,w,v,b,C,_,k):(z&64||z&128)&&y.process(u,d,m,w,v,b,C,_,k,vt)}S!=null&&v&&tr(S,u&&u.ref,b,d||u,!d)},T=(u,d,m,w)=>{if(u==null)n(d.el=l(d.children),m,w);else{const v=d.el=u.el;d.children!==u.children&&c(v,d.children)}},$=(u,d,m,w)=>{u==null?n(d.el=a(d.children||""),m,w):d.el=u.el},P=(u,d,m,w)=>{[u.el,u.anchor]=R(u.children,d,m,w,u.el,u.anchor)},A=({el:u,anchor:d},m,w)=>{let v;for(;u&&u!==d;)v=p(u),n(u,m,w),u=v;n(d,m,w)},N=({el:u,anchor:d})=>{let m;for(;u&&u!==d;)m=p(u),r(u),u=m;r(d)},te=(u,d,m,w,v,b,C,_,k)=>{d.type==="svg"?C="svg":d.type==="math"&&(C="mathml"),u==null?H(d,m,w,v,b,C,_,k):je(u,d,v,b,C,_,k)},H=(u,d,m,w,v,b,C,_)=>{let k,y;const{props:S,shapeFlag:z,transition:E,dirs:U}=u;if(k=u.el=s(u.type,b,S&&S.is,S),z&8?f(k,u.children):z&16&&B(u.children,k,null,w,v,nr(u,b),C,_),U&&It(u,null,w,"created"),D(k,u,u.scopeId,C,w),S){for(const oe in S)oe!=="value"&&!Gt(oe)&&o(k,oe,null,S[oe],b,u.children,w,v,Ve);"value"in S&&o(k,"value",null,S.value,b),(y=S.onVnodeBeforeMount)&&Ze(y,w,u)}U&&It(u,null,w,"beforeMount");const K=fc(v,E);K&&E.beforeEnter(k),n(k,d,m),((y=S&&S.onVnodeMounted)||K||U)&&Ae(()=>{y&&Ze(y,w,u),K&&E.enter(k),U&&It(u,null,w,"mounted")},v)},D=(u,d,m,w,v)=>{if(m&&g(u,m),w)for(let b=0;b<w.length;b++)g(u,w[b]);if(v){let b=v.subTree;if(d===b){const C=v.vnode;D(u,C,C.scopeId,C.slotScopeIds,v.parent)}}},B=(u,d,m,w,v,b,C,_,k=0)=>{for(let y=k;y<u.length;y++){const S=u[y]=_?dt(u[y]):Ge(u[y]);x(null,S,d,m,w,v,b,C,_)}},je=(u,d,m,w,v,b,C)=>{const _=d.el=u.el;let{patchFlag:k,dynamicChildren:y,dirs:S}=d;k|=u.patchFlag&16;const z=u.props||le,E=d.props||le;let U;if(m&&St(m,!1),(U=E.onVnodeBeforeUpdate)&&Ze(U,m,d,u),S&&It(d,u,m,"beforeUpdate"),m&&St(m,!0),y?W(u.dynamicChildren,y,_,m,w,nr(d,v),b):C||Se(u,d,_,null,m,w,nr(d,v),b,!1),k>0){if(k&16)ae(_,d,z,E,m,w,v);else if(k&2&&z.class!==E.class&&o(_,"class",null,E.class,v),k&4&&o(_,"style",z.style,E.style,v),k&8){const K=d.dynamicProps;for(let oe=0;oe<K.length;oe++){const ce=K[oe],ye=z[ce],Be=E[ce];(Be!==ye||ce==="value")&&o(_,ce,ye,Be,v,u.children,m,w,Ve)}}k&1&&u.children!==d.children&&f(_,d.children)}else!C&&y==null&&ae(_,d,z,E,m,w,v);((U=E.onVnodeUpdated)||S)&&Ae(()=>{U&&Ze(U,m,d,u),S&&It(d,u,m,"updated")},w)},W=(u,d,m,w,v,b,C)=>{for(let _=0;_<d.length;_++){const k=u[_],y=d[_],S=k.el&&(k.type===se||!fn(k,y)||k.shapeFlag&70)?h(k.el):m;x(k,y,S,null,w,v,b,C,!0)}},ae=(u,d,m,w,v,b,C)=>{if(m!==w){if(m!==le)for(const _ in m)!Gt(_)&&!(_ in w)&&o(u,_,m[_],null,C,d.children,v,b,Ve);for(const _ in w){if(Gt(_))continue;const k=w[_],y=m[_];k!==y&&_!=="value"&&o(u,_,y,k,C,d.children,v,b,Ve)}"value"in w&&o(u,"value",m.value,w.value,C)}},ge=(u,d,m,w,v,b,C,_,k)=>{const y=d.el=u?u.el:l(""),S=d.anchor=u?u.anchor:l("");let{patchFlag:z,dynamicChildren:E,slotScopeIds:U}=d;U&&(_=_?_.concat(U):U),u==null?(n(y,m,w),n(S,m,w),B(d.children||[],m,S,v,b,C,_,k)):z>0&&z&64&&E&&u.dynamicChildren?(W(u.dynamicChildren,E,m,v,b,C,_),(d.key!=null||v&&d===v.subTree)&&ns(u,d,!0)):Se(u,d,m,S,v,b,C,_,k)},mt=(u,d,m,w,v,b,C,_,k)=>{d.slotScopeIds=_,u==null?d.shapeFlag&512?v.ctx.activate(d,m,w,C,k):De(d,m,w,v,b,C,k):q(u,d,k)},De=(u,d,m,w,v,b,C)=>{const _=u.component=bc(u,w,v);if(Wa(u)&&(_.ctx.renderer=vt),kc(_),_.asyncDep){if(v&&v.registerDep(_,re),!u.el){const k=_.subTree=ne(Rt);$(null,k,d,m)}}else re(_,u,d,m,v,b,C)},q=(u,d,m)=>{const w=d.component=u.component;if(ja(u,d,m))if(w.asyncDep&&!w.asyncResolved){me(w,d,m);return}else w.next=d,Sa(w.update),w.effect.dirty=!0,w.update();else d.el=u.el,w.vnode=d},re=(u,d,m,w,v,b,C)=>{const _=()=>{if(u.isMounted){let{next:S,bu:z,u:E,parent:U,vnode:K}=u;{const Wt=is(u);if(Wt){S&&(S.el=K.el,me(u,S,C)),Wt.asyncDep.then(()=>{u.isUnmounted||_()});return}}let oe=S,ce;St(u,!1),S?(S.el=K.el,me(u,S,C)):S=K,z&&Mn(z),(ce=S.props&&S.props.onVnodeBeforeUpdate)&&Ze(ce,U,S,K),St(u,!0);const ye=Gi(u),Be=u.subTree;u.subTree=ye,x(Be,ye,h(Be.el),At(Be),u,v,b),S.el=ye.el,oe===null&&za(u,ye.el),E&&Ae(E,v),(ce=S.props&&S.props.onVnodeUpdated)&&Ae(()=>Ze(ce,U,S,K),v)}else{let S;const{el:z,props:E}=d,{bm:U,m:K,parent:oe}=u,ce=Kn(d);if(St(u,!1),U&&Mn(U),!ce&&(S=E&&E.onVnodeBeforeMount)&&Ze(S,oe,d),St(u,!0),z&&j){const ye=()=>{u.subTree=Gi(u),j(z,u.subTree,u,v,null)};ce?d.type.__asyncLoader().then(()=>!u.isUnmounted&&ye()):ye()}else{const ye=u.subTree=Gi(u);x(null,ye,m,w,u,v,b),d.el=ye.el}if(K&&Ae(K,v),!ce&&(S=E&&E.onVnodeMounted)){const ye=d;Ae(()=>Ze(S,oe,ye),v)}(d.shapeFlag&256||oe&&Kn(oe.vnode)&&oe.vnode.shapeFlag&256)&&u.a&&Ae(u.a,v),u.isMounted=!0,d=m=w=null}},k=u.effect=new Oi(_,Je,()=>Ki(y),u.scope),y=u.update=()=>{k.dirty&&k.run()};y.id=u.uid,St(u,!0),y()},me=(u,d,m)=>{d.component=u;const w=u.vnode.props;u.vnode=d,u.next=null,ic(u,d.props,w,m),lc(u,d.children,m),_t(),Mo(u),kt()},Se=(u,d,m,w,v,b,C,_,k=!1)=>{const y=u&&u.children,S=u?u.shapeFlag:0,z=d.children,{patchFlag:E,shapeFlag:U}=d;if(E>0){if(E&128){Re(y,z,m,w,v,b,C,_,k);return}else if(E&256){ve(y,z,m,w,v,b,C,_,k);return}}U&8?(S&16&&Ve(y,v,b),z!==y&&f(m,z)):S&16?U&16?Re(y,z,m,w,v,b,C,_,k):Ve(y,v,b,!0):(S&8&&f(m,""),U&16&&B(z,m,w,v,b,C,_,k))},ve=(u,d,m,w,v,b,C,_,k)=>{u=u||$t,d=d||$t;const y=u.length,S=d.length,z=Math.min(y,S);let E;for(E=0;E<z;E++){const U=d[E]=k?dt(d[E]):Ge(d[E]);x(u[E],U,m,null,v,b,C,_,k)}y>S?Ve(u,v,b,!0,!1,z):B(d,m,w,v,b,C,_,k,z)},Re=(u,d,m,w,v,b,C,_,k)=>{let y=0;const S=d.length;let z=u.length-1,E=S-1;for(;y<=z&&y<=E;){const U=u[y],K=d[y]=k?dt(d[y]):Ge(d[y]);if(fn(U,K))x(U,K,m,null,v,b,C,_,k);else break;y++}for(;y<=z&&y<=E;){const U=u[z],K=d[E]=k?dt(d[E]):Ge(d[E]);if(fn(U,K))x(U,K,m,null,v,b,C,_,k);else break;z--,E--}if(y>z){if(y<=E){const U=E+1,K=U<S?d[U].el:w;for(;y<=E;)x(null,d[y]=k?dt(d[y]):Ge(d[y]),m,K,v,b,C,_,k),y++}}else if(y>E)for(;y<=z;)Me(u[y],v,b,!0),y++;else{const U=y,K=y,oe=new Map;for(y=K;y<=E;y++){const ze=d[y]=k?dt(d[y]):Ge(d[y]);ze.key!=null&&oe.set(ze.key,y)}let ce,ye=0;const Be=E-K+1;let Wt=!1,ml=0;const En=new Array(Be);for(y=0;y<Be;y++)En[y]=0;for(y=U;y<=z;y++){const ze=u[y];if(ye>=Be){Me(ze,v,b,!0);continue}let Qe;if(ze.key!=null)Qe=oe.get(ze.key);else for(ce=K;ce<=E;ce++)if(En[ce-K]===0&&fn(ze,d[ce])){Qe=ce;break}Qe===void 0?Me(ze,v,b,!0):(En[Qe-K]=y+1,Qe>=ml?ml=Qe:Wt=!0,x(ze,d[Qe],m,null,v,b,C,_,k),ye++)}const vl=Wt?dc(En):$t;for(ce=vl.length-1,y=Be-1;y>=0;y--){const ze=K+y,Qe=d[ze],wl=ze+1<S?d[ze+1].el:w;En[y]===0?x(null,Qe,m,wl,v,b,C,_,k):Wt&&(ce<0||y!==vl[ce]?we(Qe,m,wl,2):ce--)}}},we=(u,d,m,w,v=null)=>{const{el:b,type:C,transition:_,children:k,shapeFlag:y}=u;if(y&6){we(u.component.subTree,d,m,w);return}if(y&128){u.suspense.move(d,m,w);return}if(y&64){C.move(u,d,m,vt);return}if(C===se){n(b,d,m);for(let z=0;z<k.length;z++)we(k[z],d,m,w);n(u.anchor,d,m);return}if(C===ir){A(u,d,m);return}if(w!==2&&y&1&&_)if(w===0)_.beforeEnter(b),n(b,d,m),Ae(()=>_.enter(b),v);else{const{leave:z,delayLeave:E,afterLeave:U}=_,K=()=>n(b,d,m),oe=()=>{z(b,()=>{K(),U&&U()})};E?E(b,K,oe):oe()}else n(b,d,m)},Me=(u,d,m,w=!1,v=!1)=>{const{type:b,props:C,ref:_,children:k,dynamicChildren:y,shapeFlag:S,patchFlag:z,dirs:E}=u;if(_!=null&&tr(_,null,m,u,!0),S&256){d.ctx.deactivate(u);return}const U=S&1&&E,K=!Kn(u);let oe;if(K&&(oe=C&&C.onVnodeBeforeUnmount)&&Ze(oe,d,u),S&6)kr(u.component,m,w);else{if(S&128){u.suspense.unmount(m,w);return}U&&It(u,null,d,"beforeUnmount"),S&64?u.type.remove(u,d,m,v,vt,w):y&&(b!==se||z>0&&z&64)?Ve(y,d,m,!1,!0):(b===se&&z&384||!v&&S&16)&&Ve(k,d,m),w&&Vt(u)}(K&&(oe=C&&C.onVnodeUnmounted)||U)&&Ae(()=>{oe&&Ze(oe,d,u),U&&It(u,null,d,"unmounted")},m)},Vt=u=>{const{type:d,el:m,anchor:w,transition:v}=u;if(d===se){Cn(m,w);return}if(d===ir){N(u);return}const b=()=>{r(m),v&&!v.persisted&&v.afterLeave&&v.afterLeave()};if(u.shapeFlag&1&&v&&!v.persisted){const{leave:C,delayLeave:_}=v,k=()=>C(m,b);_?_(u.el,b,k):k()}else b()},Cn=(u,d)=>{let m;for(;u!==d;)m=p(u),r(u),u=m;r(d)},kr=(u,d,m)=>{const{bum:w,scope:v,update:b,subTree:C,um:_}=u;w&&Mn(w),v.stop(),b&&(b.active=!1,Me(C,u,d,m)),_&&Ae(_,d),Ae(()=>{u.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},Ve=(u,d,m,w=!1,v=!1,b=0)=>{for(let C=b;C<u.length;C++)Me(u[C],d,m,w,v)},At=u=>u.shapeFlag&6?At(u.component.subTree):u.shapeFlag&128?u.suspense.next():p(u.anchor||u.el);let Bt=!1;const bi=(u,d,m)=>{u==null?d._vnode&&Me(d._vnode,null,null,!0):x(d._vnode||null,u,d,null,null,null,m),Bt||(Bt=!0,Mo(),$o(),Bt=!1),d._vnode=u},vt={p:x,um:Me,m:we,r:Vt,mt:De,mc:B,pc:Se,pbc:W,n:At,o:e};let O,j;return{render:bi,hydrate:O,createApp:ec(bi,O)}}function nr({type:e,props:t},i){return i==="svg"&&e==="foreignObject"||i==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:i}function St({effect:e,update:t},i){e.allowRecurse=t.allowRecurse=i}function fc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ns(e,t,i=!1){const n=e.children,r=t.children;if(F(n)&&F(r))for(let o=0;o<n.length;o++){const s=n[o];let l=r[o];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[o]=dt(r[o]),l.el=s.el),i||ns(s,l)),l.type===Qn&&(l.el=s.el)}}function dc(e){const t=e.slice(),i=[0];let n,r,o,s,l;const a=e.length;for(n=0;n<a;n++){const c=e[n];if(c!==0){if(r=i[i.length-1],e[r]<c){t[n]=r,i.push(n);continue}for(o=0,s=i.length-1;o<s;)l=o+s>>1,e[i[l]]<c?o=l+1:s=l;c<e[i[o]]&&(o>0&&(t[n]=i[o-1]),i[o]=n)}}for(o=i.length,s=i[o-1];o-- >0;)i[o]=s,s=t[s];return i}function is(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:is(t)}const hc=e=>e.__isTeleport,se=Symbol.for("v-fgt"),Qn=Symbol.for("v-txt"),Rt=Symbol.for("v-cmt"),ir=Symbol.for("v-stc"),cn=[];let He=null;function I(e=!1){cn.push(He=e?null:[])}function pc(){cn.pop(),He=cn[cn.length-1]||null}let un=1;function rs(e){un+=e}function os(e){return e.dynamicChildren=un>0?He||$t:null,pc(),un>0&&He&&He.push(e),e}function L(e,t,i,n,r,o){return os(M(e,t,i,n,r,o,!0))}function et(e,t,i,n,r){return os(ne(e,t,i,n,r,!0))}function rr(e){return e?e.__v_isVNode===!0:!1}function fn(e,t){return e.type===t.type&&e.key===t.key}const ss=({key:e})=>e??null,Jn=({ref:e,ref_key:t,ref_for:i})=>(typeof e=="number"&&(e=""+e),e!=null?be(e)||Le(e)||ee(e)?{i:Ce,r:e,k:t,f:!!i}:e:null);function M(e,t=null,i=null,n=0,r=null,o=e===se?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ss(t),ref:t&&Jn(t),scopeId:jo,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Ce};return l?(or(a,i),o&128&&e.normalize(a)):i&&(a.shapeFlag|=be(i)?8:16),un>0&&!s&&He&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&&He.push(a),a}const ne=gc;function gc(e,t=null,i=null,n=0,r=null,o=!1){if((!e||e===Fa)&&(e=Rt),rr(e)){const l=Ft(e,t,!0);return i&&or(l,i),un>0&&!o&&He&&(l.shapeFlag&6?He[He.indexOf(e)]=l:He.push(l)),l.patchFlag|=-2,l}if(Sc(e)&&(e=e.__vccOpts),t){t=mc(t);let{class:l,style:a}=t;l&&!be(l)&&(t.class=pe(l)),fe(a)&&(Co(a)&&!F(a)&&(a=ke({},a)),t.style=Zt(a))}const s=be(e)?1:Ha(e)?128:hc(e)?64:fe(e)?4:ee(e)?2:0;return M(e,t,i,n,r,s,o,!0)}function mc(e){return e?Co(e)||Ko(e)?ke({},e):e:null}function Ft(e,t,i=!1,n=!1){const{props:r,ref:o,patchFlag:s,children:l,transition:a}=e,c=t?vc(r||{},t):r,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&ss(c),ref:t&&t.ref?i&&o?F(o)?o.concat(Jn(t)):[o,Jn(t)]:Jn(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==se?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ft(e.ssContent),ssFallback:e.ssFallback&&Ft(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&n&&(f.transition=a.clone(f)),f}function tt(e=" ",t=0){return ne(Qn,null,e,t)}function Q(e="",t=!1){return t?(I(),et(Rt,null,e)):ne(Rt,null,e)}function Ge(e){return e==null||typeof e=="boolean"?ne(Rt):F(e)?ne(se,null,e.slice()):typeof e=="object"?dt(e):ne(Qn,null,String(e))}function dt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ft(e)}function or(e,t){let i=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(F(t))i=16;else if(typeof t=="object")if(n&65){const r=t.default;r&&(r._c&&(r._d=!1),or(e,r()),r._c&&(r._d=!0));return}else{i=32;const r=t._;!r&&!Ko(t)?t._ctx=Ce:r===3&&Ce&&(Ce.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ee(t)?(t={default:t,_ctx:Ce},i=32):(t=String(t),n&64?(i=16,t=[tt(t)]):i=8);e.children=t,e.shapeFlag|=i}function vc(...e){const t={};for(let i=0;i<e.length;i++){const n=e[i];for(const r in n)if(r==="class")t.class!==n.class&&(t.class=pe([t.class,n.class]));else if(r==="style")t.style=Zt([t.style,n.style]);else if(Tn(r)){const o=t[r],s=n[r];s&&o!==s&&!(F(o)&&o.includes(s))&&(t[r]=o?[].concat(o,s):s)}else r!==""&&(t[r]=n[r])}return t}function Ze(e,t,i,n=null){qe(e,t,7,[i,n])}const wc=Bo();let yc=0;function bc(e,t,i){const n=e.type,r=(t?t.appContext:e.appContext)||wc,o={uid:yc++,vnode:e,type:n,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new Yl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:rc(n,r),emitsOptions:Aa(n,r),emit:null,emitted:null,propsDefaults:le,inheritAttrs:n.inheritAttrs,ctx:le,data:le,props:le,attrs:le,slots:le,refs:le,setupState:le,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:i,suspenseId:i?i.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 o.ctx={_:o},o.root=t?t.root:o,o.emit=La.bind(null,o),e.ce&&e.ce(o),o}let Ie=null;const _c=()=>Ie||Ce;let Yn,sr;{const e=Ai(),t=(i,n)=>{let r;return(r=e[i])||(r=e[i]=[]),r.push(n),o=>{r.length>1?r.forEach(s=>s(o)):r[0](o)}};Yn=t("__VUE_INSTANCE_SETTERS__",i=>Ie=i),sr=t("__VUE_SSR_SETTERS__",i=>Xn=i)}const lr=e=>{const t=Ie;return Yn(e),e.scope.on(),()=>{e.scope.off(),Yn(t)}},ls=()=>{Ie&&Ie.scope.off(),Yn(null)};function as(e){return e.vnode.shapeFlag&4}let Xn=!1;function kc(e,t=!1){t&&sr(t);const{props:i,children:n}=e.vnode,r=as(e);nc(e,i,r,t),sc(e,n);const o=r?xc(e,t):void 0;return t&&sr(!1),o}function xc(e,t){const i=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ga);const{setup:n}=i;if(n){const r=e.setupContext=n.length>1?Ec(e):null,o=lr(e);_t();const s=ut(n,e,0,[e.props,r]);if(kt(),o(),Jr(s)){if(s.then(ls,ls),t)return s.then(l=>{cs(e,l,t)}).catch(l=>{Dn(l,e,0)});e.asyncDep=s}else cs(e,s,t)}else fs(e,t)}function cs(e,t,i){ee(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:fe(t)&&(e.setupState=To(t)),fs(e,i)}let us;function fs(e,t,i){const n=e.type;if(!e.render){if(!t&&us&&!n.render){const r=n.template||Za(e).template;if(r){const{isCustomElement:o,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=n,c=ke(ke({isCustomElement:o,delimiters:l},s),a);n.render=us(r,c)}}e.render=n.render||Je}}const Cc={get(e,t){return Te(e,"get",""),e[t]}};function Ec(e){const t=i=>{e.exposed=i||{}};return{attrs:new Proxy(e.attrs,Cc),slots:e.slots,emit:e.emit,expose:t}}function ei(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(To(ba(e.exposed)),{get(t,i){if(i in t)return t[i];if(i in sn)return sn[i](e)},has(t,i){return i in t||i in sn}}))}function Ic(e,t=!0){return ee(e)?e.displayName||e.name:e.name||t&&e.__name}function Sc(e){return ee(e)&&"__vccOpts"in e}const _e=(e,t)=>_a(e,t,Xn);function X(e,t,i){const n=arguments.length;return n===2?fe(t)&&!F(t)?rr(t)?ne(e,null,[t]):ne(e,t):ne(e,null,t):(n>3?i=Array.prototype.slice.call(arguments,2):n===3&&rr(i)&&(i=[i]),ne(e,t,i))}const Rc="3.4.27";/**
22
- * @vue/runtime-dom v3.4.27
21
+ **/function hn(e,t,n,i){try{return i?e(...i):e()}catch(r){Xn(r,t,n)}}function ct(e,t,n,i){if(ee(e)){const r=hn(e,t,n,i);return r&&os(r)&&r.catch(s=>{Xn(s,t,n)}),r}if(N(e)){const r=[];for(let s=0;s<e.length;s++)r.push(ct(e[s],t,n,i));return r}}function Xn(e,t,n,i=!0){const r=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||ue;if(t){let o=t.parent;const a=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const c=o.ec;if(c){for(let h=0;h<c.length;h++)if(c[h](e,a,u)===!1)return}o=o.parent}if(s){St(),hn(s,null,10,[e,a,u]),Et();return}}Ha(e,n,r,i,l)}function Ha(e,t,n,i=!0,r=!1){if(r)throw e;console.error(e)}let dn=!1,er=!1;const Re=[];let tt=0;const Wt=[];let vt=null,qt=0;const Ps=Promise.resolve();let tr=null;function Kt(e){const t=tr||Ps;return e?t.then(this?e.bind(this):e):t}function Na(e){let t=dn?tt+1:0,n=Re.length;for(;t<n;){const i=t+n>>>1,r=Re[i],s=pn(r);s<e||s===e&&r.flags&2?t=i+1:n=i}return t}function nr(e){if(!(e.flags&1)){const t=pn(e),n=Re[Re.length-1];!n||!(e.flags&2)&&t>=pn(n)?Re.push(e):Re.splice(Na(t),0,e),e.flags|=1,Fs()}}function Fs(){!dn&&!er&&(er=!0,tr=Ps.then(Hs))}function Va(e){N(e)?Wt.push(...e):vt&&e.id===-1?vt.splice(qt+1,0,e):e.flags&1||(Wt.push(e),e.flags|=1),Fs()}function Ds(e,t,n=dn?tt+1:0){for(;n<Re.length;n++){const i=Re[n];if(i&&i.flags&2){if(e&&i.id!==e.uid)continue;Re.splice(n,1),n--,i.flags&4&&(i.flags&=-2),i(),i.flags&=-2}}}function Us(e){if(Wt.length){const t=[...new Set(Wt)].sort((n,i)=>pn(n)-pn(i));if(Wt.length=0,vt){vt.push(...t);return}for(vt=t,qt=0;qt<vt.length;qt++){const n=vt[qt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}vt=null,qt=0}}const pn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Hs(e){er=!1,dn=!0;try{for(tt=0;tt<Re.length;tt++){const t=Re[tt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),hn(t,t.i,t.i?15:14),t.flags&=-2)}}finally{for(;tt<Re.length;tt++){const t=Re[tt];t&&(t.flags&=-2)}tt=0,Re.length=0,Us(),dn=!1,tr=null,(Re.length||Wt.length)&&Hs()}}let ze=null,Ns=null;function ei(e){const t=ze;return ze=e,Ns=e&&e.type.__scopeId||null,t}function Ba(e,t=ze,n){if(!t||e._n)return e;const i=(...r)=>{i._d&&fl(-1);const s=ei(t);let l;try{l=e(...r)}finally{ei(s),i._d&&fl(1)}return l};return i._n=!0,i._c=!0,i._d=!0,i}function ti(e,t){if(ze===null)return e;const n=ci(ze),i=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[s,l,o,a=ue]=t[r];s&&(ee(s)&&(s={mounted:s,updated:s}),s.deep&&at(l),i.push({dir:s,instance:n,value:l,oldValue:void 0,arg:o,modifiers:a}))}return e}function It(e,t,n,i){const r=e.dirs,s=t&&t.dirs;for(let l=0;l<r.length;l++){const o=r[l];s&&(o.oldValue=s[l].value);let a=o.dir[i];a&&(St(),ct(a,n,8,[e.el,o,e,t]),Et())}}const Wa=Symbol("_vte"),qa=e=>e.__isTeleport;function ir(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ir(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function gn(e,t){return ee(e)?Te({name:e.name},t,{setup:e}):e}function Ka(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function rr(e,t,n,i,r=!1){if(N(e)){e.forEach((w,x)=>rr(w,t&&(N(t)?t[x]:t),n,i,r));return}if(mn(i)&&!r)return;const s=i.shapeFlag&4?ci(i.component):i.el,l=r?null:s,{i:o,r:a}=e,u=t&&t.r,c=o.refs===ue?o.refs={}:o.refs,h=o.setupState,p=te(h),m=h===ue?()=>!1:w=>re(p,w);if(u!=null&&u!==a&&(ye(u)?(c[u]=null,m(u)&&(h[u]=null)):xe(u)&&(u.value=null)),ee(a))hn(a,o,12,[l,c]);else{const w=ye(a),x=xe(a);if(w||x){const C=()=>{if(e.f){const v=w?m(a)?h[a]:c[a]:a.value;r?N(v)&&ss(v,s):N(v)?v.includes(s)||v.push(s):w?(c[a]=[s],m(a)&&(h[a]=c[a])):(a.value=[s],e.k&&(c[e.k]=a.value))}else w?(c[a]=l,m(a)&&(h[a]=l)):x&&(a.value=l,e.k&&(c[e.k]=l))};l?(C.id=-1,Fe(C,n)):C()}}}const mn=e=>!!e.type.__asyncLoader,Ga=e=>e.type.__isKeepAlive;function Za(e,t,n=Le,i=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...l)=>{St();const o=vr(n),a=ct(t,n,e,l);return o(),Et(),a});return i?r.unshift(s):r.push(s),s}}const sr=e=>(t,n=Le)=>{(!ai||e==="sp")&&Za(e,(...i)=>t(...i),n)},vn=sr("m"),Ja=sr("bum"),lr=sr("um"),Qa="components";function Ya(e,t){return ec(Qa,e,!0,t)||e}const Xa=Symbol.for("v-ndc");function ec(e,t,n=!0,i=!1){const r=ze||Le;if(r){const s=r.type;{const o=Nc(s,!1);if(o&&(o===t||o===Ge(t)||o===Hn(Ge(t))))return s}const l=Vs(r[e]||s[e],t)||Vs(r.appContext[e],t);return!l&&i?s:l}}function Vs(e,t){return e&&(e[t]||e[Ge(t)]||e[Hn(Ge(t))])}function We(e,t,n,i){let r;const s=n,l=N(e);if(l||ye(e)){const o=l&&Bt(e);o&&(e=Bn(e)),r=new Array(e.length);for(let a=0,u=e.length;a<u;a++)r[a]=t(o?Se(e[a]):e[a],a,void 0,s)}else if(typeof e=="number"){r=new Array(e);for(let o=0;o<e;o++)r[o]=t(o+1,o,void 0,s)}else if(ge(e))if(e[Symbol.iterator])r=Array.from(e,(o,a)=>t(o,a,void 0,s));else{const o=Object.keys(e);r=new Array(o.length);for(let a=0,u=o.length;a<u;a++){const c=o[a];r[a]=t(e[c],c,a,s)}}else r=[];return r}const or=e=>e?gl(e)?ci(e):or(e.parent):null,bn=Te(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=>or(e.parent),$root:e=>or(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>{nr(e.update)}),$nextTick:e=>e.n||(e.n=Kt.bind(e.proxy)),$watch:e=>_t}),ar=(e,t)=>e!==ue&&!e.__isScriptSetup&&re(e,t),tc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:i,data:r,props:s,accessCache:l,type:o,appContext:a}=e;let u;if(t[0]!=="$"){const m=l[t];if(m!==void 0)switch(m){case 1:return i[t];case 2:return r[t];case 4:return n[t];case 3:return s[t]}else{if(ar(i,t))return l[t]=1,i[t];if(r!==ue&&re(r,t))return l[t]=2,r[t];if((u=e.propsOptions[0])&&re(u,t))return l[t]=3,s[t];if(n!==ue&&re(n,t))return l[t]=4,n[t];l[t]=0}}const c=bn[t];let h,p;if(c)return t==="$attrs"&&Ce(e.attrs,"get",""),c(e);if((h=o.__cssModules)&&(h=h[t]))return h;if(n!==ue&&re(n,t))return l[t]=4,n[t];if(p=a.config.globalProperties,re(p,t))return p[t]},set({_:e},t,n){const{data:i,setupState:r,ctx:s}=e;return ar(r,t)?(r[t]=n,!0):i!==ue&&re(i,t)?(i[t]=n,!0):re(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:r,propsOptions:s}},l){let o;return!!n[l]||e!==ue&&re(e,l)||ar(t,l)||(o=s[0])&&re(o,l)||re(i,l)||re(bn,l)||re(r.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:re(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Bs(e){return N(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function nc(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:l}}=e.appContext,o=s.get(t);let a;return o?a=o:!r.length&&!n&&!i?a=t:(a={},r.length&&r.forEach(u=>ni(a,u,l,!0)),ni(a,t,l)),ge(t)&&s.set(t,a),a}function ni(e,t,n,i=!1){const{mixins:r,extends:s}=t;s&&ni(e,s,n,!0),r&&r.forEach(l=>ni(e,l,n,!0));for(const l in t)if(!(i&&l==="expose")){const o=ic[l]||n&&n[l];e[l]=o?o(e[l],t[l]):t[l]}return e}const ic={data:Ws,props:Ks,emits:Ks,methods:yn,computed:yn,beforeCreate:Ie,created:Ie,beforeMount:Ie,mounted:Ie,beforeUpdate:Ie,updated:Ie,beforeDestroy:Ie,beforeUnmount:Ie,destroyed:Ie,unmounted:Ie,activated:Ie,deactivated:Ie,errorCaptured:Ie,serverPrefetch:Ie,components:yn,directives:yn,watch:sc,provide:Ws,inject:rc};function Ws(e,t){return t?e?function(){return Te(ee(e)?e.call(this,this):e,ee(t)?t.call(this,this):t)}:t:e}function rc(e,t){return yn(qs(e),qs(t))}function qs(e){if(N(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ie(e,t){return e?[...new Set([].concat(e,t))]:t}function yn(e,t){return e?Te(Object.create(null),e,t):t}function Ks(e,t){return e?N(e)&&N(t)?[...new Set([...e,...t])]:Te(Object.create(null),Bs(e),Bs(t??{})):t}function sc(e,t){if(!e)return t;if(!t)return e;const n=Te(Object.create(null),e);for(const i in t)n[i]=Ie(e[i],t[i]);return n}function Gs(){return{app:null,config:{isNativeTag:Xo,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 lc=0;function oc(e,t){return function(i,r=null){ee(i)||(i=Te({},i)),r!=null&&!ge(r)&&(r=null);const s=Gs(),l=new WeakSet,o=[];let a=!1;const u=s.app={_uid:lc++,_component:i,_props:r,_container:null,_context:s,_instance:null,version:Bc,get config(){return s.config},set config(c){},use(c,...h){return l.has(c)||(c&&ee(c.install)?(l.add(c),c.install(u,...h)):ee(c)&&(l.add(c),c(u,...h))),u},mixin(c){return u},component(c,h){return h?(s.components[c]=h,u):s.components[c]},directive(c,h){return h?(s.directives[c]=h,u):s.directives[c]},mount(c,h,p){if(!a){const m=u._ceVNode||oe(i,r);return m.appContext=s,p===!0?p="svg":p===!1&&(p=void 0),h&&t?t(m,c):e(m,c,p),a=!0,u._container=c,c.__vue_app__=u,ci(m.component)}},onUnmount(c){o.push(c)},unmount(){a&&(ct(o,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,h){return s.provides[c]=h,u},runWithContext(c){const h=Gt;Gt=u;try{return c()}finally{Gt=h}}};return u}}let Gt=null;function ac(e,t){if(Le){let n=Le.provides;const i=Le.parent&&Le.parent.provides;i===n&&(n=Le.provides=Object.create(i)),n[e]=t}}function ii(e,t,n=!1){const i=Le||ze;if(i||Gt){const r=Gt?Gt._context.provides:i?i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&ee(t)?t.call(i&&i.proxy):t}}const Zs={},Js=()=>Object.create(Zs),Qs=e=>Object.getPrototypeOf(e)===Zs;function cc(e,t,n,i=!1){const r={},s=Js();e.propsDefaults=Object.create(null),Ys(e,t,r,s);for(const l in e.propsOptions[0])l in r||(r[l]=void 0);n?e.props=i?r:La(r):e.type.props?e.props=r:e.props=s,e.attrs=s}function uc(e,t,n,i){const{props:r,attrs:s,vnode:{patchFlag:l}}=e,o=te(r),[a]=e.propsOptions;let u=!1;if((i||l>0)&&!(l&16)){if(l&8){const c=e.vnode.dynamicProps;for(let h=0;h<c.length;h++){let p=c[h];if(ri(e.emitsOptions,p))continue;const m=t[p];if(a)if(re(s,p))m!==s[p]&&(s[p]=m,u=!0);else{const w=Ge(p);r[w]=cr(a,o,w,m,e,!1)}else m!==s[p]&&(s[p]=m,u=!0)}}}else{Ys(e,t,r,s)&&(u=!0);let c;for(const h in o)(!t||!re(t,h)&&((c=$t(h))===h||!re(t,c)))&&(a?n&&(n[h]!==void 0||n[c]!==void 0)&&(r[h]=cr(a,o,h,void 0,e,!0)):delete r[h]);if(s!==o)for(const h in s)(!t||!re(t,h))&&(delete s[h],u=!0)}u&&lt(e.attrs,"set","")}function Ys(e,t,n,i){const[r,s]=e.propsOptions;let l=!1,o;if(t)for(let a in t){if(rn(a))continue;const u=t[a];let c;r&&re(r,c=Ge(a))?!s||!s.includes(c)?n[c]=u:(o||(o={}))[c]=u:ri(e.emitsOptions,a)||(!(a in i)||u!==i[a])&&(i[a]=u,l=!0)}if(s){const a=te(n),u=o||ue;for(let c=0;c<s.length;c++){const h=s[c];n[h]=cr(r,a,h,u[h],e,!re(u,h))}}return l}function cr(e,t,n,i,r,s){const l=e[n];if(l!=null){const o=re(l,"default");if(o&&i===void 0){const a=l.default;if(l.type!==Function&&!l.skipFactory&&ee(a)){const{propsDefaults:u}=r;if(n in u)i=u[n];else{const c=vr(r);i=u[n]=a.call(null,t),c()}}else i=a;r.ce&&r.ce._setProp(n,i)}l[0]&&(s&&!o?i=!1:l[1]&&(i===""||i===$t(n))&&(i=!0))}return i}function fc(e,t,n=!1){const i=t.propsCache,r=i.get(e);if(r)return r;const s=e.props,l={},o=[];if(!s&&!!1)return ge(e)&&i.set(e,Ut),Ut;if(N(s))for(let c=0;c<s.length;c++){const h=Ge(s[c]);Xs(h)&&(l[h]=ue)}else if(s)for(const c in s){const h=Ge(c);if(Xs(h)){const p=s[c],m=l[h]=N(p)||ee(p)?{type:p}:Te({},p),w=m.type;let x=!1,C=!0;if(N(w))for(let v=0;v<w.length;++v){const $=w[v],H=ee($)&&$.name;if(H==="Boolean"){x=!0;break}else H==="String"&&(C=!1)}else x=ee(w)&&w.name==="Boolean";m[0]=x,m[1]=C,(x||re(m,"default"))&&o.push(h)}}const u=[l,o];return ge(e)&&i.set(e,u),u}function Xs(e){return e[0]!=="$"&&!rn(e)}const el=e=>e[0]==="_"||e==="$stable",ur=e=>N(e)?e.map(nt):[nt(e)],hc=(e,t,n)=>{if(t._n)return t;const i=Ba((...r)=>ur(t(...r)),n);return i._c=!1,i},tl=(e,t,n)=>{const i=e._ctx;for(const r in e){if(el(r))continue;const s=e[r];if(ee(s))t[r]=hc(r,s,i);else if(s!=null){const l=ur(s);t[r]=()=>l}}},nl=(e,t)=>{const n=ur(t);e.slots.default=()=>n},il=(e,t,n)=>{for(const i in t)(n||i!=="_")&&(e[i]=t[i])},dc=(e,t,n)=>{const i=e.slots=Js();if(e.vnode.shapeFlag&32){const r=t._;r?(il(i,t,n),n&&us(i,"_",r,!0)):tl(t,i)}else t&&nl(e,t)},pc=(e,t,n)=>{const{vnode:i,slots:r}=e;let s=!0,l=ue;if(i.shapeFlag&32){const o=t._;o?n&&o===1?s=!1:il(r,t,n):(s=!t.$stable,tl(t,r)),l=t}else t&&(nl(e,t),l={default:1});if(s)for(const o in r)!el(o)&&l[o]==null&&delete r[o]};function gc(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(zi().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Fe=Ac;function mc(e){return vc(e)}function vc(e,t){gc();const n=zi();n.__VUE__=!0;const{insert:i,remove:r,patchProp:s,createElement:l,createText:o,createComment:a,setText:u,setElementText:c,parentNode:h,nextSibling:p,setScopeId:m=_t,insertStaticContent:w}=e,x=(f,d,g,y=null,b=null,k=null,R=void 0,E=null,S=!!d.dynamicChildren)=>{if(f===d)return;f&&!xn(f,d)&&(y=Ft(f),He(f,b,k,!0),f=null),d.patchFlag===-2&&(S=!1,d.dynamicChildren=null);const{type:_,ref:M,shapeFlag:I}=d;switch(_){case si:C(f,d,g,y);break;case Mt:v(f,d,g,y);break;case dr:f==null&&$(d,g,y,R);break;case he:be(f,d,g,y,b,k,R,E,S);break;default:I&1?z(f,d,g,y,b,k,R,E,S):I&6?P(f,d,g,y,b,k,R,E,S):(I&64||I&128)&&_.process(f,d,g,y,b,k,R,E,S,T)}M!=null&&b&&rr(M,f&&f.ref,k,d||f,!d)},C=(f,d,g,y)=>{if(f==null)i(d.el=o(d.children),g,y);else{const b=d.el=f.el;d.children!==f.children&&u(b,d.children)}},v=(f,d,g,y)=>{f==null?i(d.el=a(d.children||""),g,y):d.el=f.el},$=(f,d,g,y)=>{[f.el,f.anchor]=w(f.children,d,g,y,f.el,f.anchor)},H=({el:f,anchor:d},g,y)=>{let b;for(;f&&f!==d;)b=p(f),i(f,g,y),f=b;i(d,g,y)},A=({el:f,anchor:d})=>{let g;for(;f&&f!==d;)g=p(f),r(f),f=g;r(d)},z=(f,d,g,y,b,k,R,E,S)=>{d.type==="svg"?R="svg":d.type==="math"&&(R="mathml"),f==null?W(d,g,y,b,k,R,E,S):Pe(f,d,b,k,R,E,S)},W=(f,d,g,y,b,k,R,E)=>{let S,_;const{props:M,shapeFlag:I,transition:F,dirs:B}=f;if(S=f.el=l(f.type,k,M&&M.is,M),I&8?c(S,f.children):I&16&&X(f.children,S,null,y,b,fr(f,k),R,E),B&&It(f,null,y,"created"),U(S,f,f.scopeId,R,y),M){for(const de in M)de!=="value"&&!rn(de)&&s(S,de,null,M[de],k,y);"value"in M&&s(S,"value",null,M.value,k),(_=M.onVnodeBeforeMount)&&it(_,y,f)}B&&It(f,null,y,"beforeMount");const Z=bc(b,F);Z&&F.beforeEnter(S),i(S,d,g),((_=M&&M.onVnodeMounted)||Z||B)&&Fe(()=>{_&&it(_,y,f),Z&&F.enter(S),B&&It(f,null,y,"mounted")},b)},U=(f,d,g,y,b)=>{if(g&&m(f,g),y)for(let k=0;k<y.length;k++)m(f,y[k]);if(b){let k=b.subTree;if(d===k||ul(k.type)&&(k.ssContent===d||k.ssFallback===d)){const R=b.vnode;U(f,R,R.scopeId,R.slotScopeIds,b.parent)}}},X=(f,d,g,y,b,k,R,E,S=0)=>{for(let _=S;_<f.length;_++){const M=f[_]=E?bt(f[_]):nt(f[_]);x(null,M,d,g,y,b,k,R,E)}},Pe=(f,d,g,y,b,k,R)=>{const E=d.el=f.el;let{patchFlag:S,dynamicChildren:_,dirs:M}=d;S|=f.patchFlag&16;const I=f.props||ue,F=d.props||ue;let B;if(g&&Lt(g,!1),(B=F.onVnodeBeforeUpdate)&&it(B,g,d,f),M&&It(d,f,g,"beforeUpdate"),g&&Lt(g,!0),(I.innerHTML&&F.innerHTML==null||I.textContent&&F.textContent==null)&&c(E,""),_?G(f.dynamicChildren,_,E,g,y,fr(d,b),k):R||ke(f,d,E,null,g,y,fr(d,b),k,!1),S>0){if(S&16)se(E,I,F,g,b);else if(S&2&&I.class!==F.class&&s(E,"class",null,F.class,b),S&4&&s(E,"style",I.style,F.style,b),S&8){const Z=d.dynamicProps;for(let de=0;de<Z.length;de++){const le=Z[de],Ne=I[le],Ee=F[le];(Ee!==Ne||le==="value")&&s(E,le,Ne,Ee,b,g)}}S&1&&f.children!==d.children&&c(E,d.children)}else!R&&_==null&&se(E,I,F,g,b);((B=F.onVnodeUpdated)||M)&&Fe(()=>{B&&it(B,g,d,f),M&&It(d,f,g,"updated")},y)},G=(f,d,g,y,b,k,R)=>{for(let E=0;E<d.length;E++){const S=f[E],_=d[E],M=S.el&&(S.type===he||!xn(S,_)||S.shapeFlag&70)?h(S.el):g;x(S,_,M,null,y,b,k,R,!0)}},se=(f,d,g,y,b)=>{if(d!==g){if(d!==ue)for(const k in d)!rn(k)&&!(k in g)&&s(f,k,d[k],null,b,y);for(const k in g){if(rn(k))continue;const R=g[k],E=d[k];R!==E&&k!=="value"&&s(f,k,E,R,b,y)}"value"in g&&s(f,"value",d.value,g.value,b)}},be=(f,d,g,y,b,k,R,E,S)=>{const _=d.el=f?f.el:o(""),M=d.anchor=f?f.anchor:o("");let{patchFlag:I,dynamicChildren:F,slotScopeIds:B}=d;B&&(E=E?E.concat(B):B),f==null?(i(_,g,y),i(M,g,y),X(d.children||[],g,M,b,k,R,E,S)):I>0&&I&64&&F&&f.dynamicChildren?(G(f.dynamicChildren,F,g,b,k,R,E),(d.key!=null||b&&d===b.subTree)&&rl(f,d,!0)):ke(f,d,g,M,b,k,R,E,S)},P=(f,d,g,y,b,k,R,E,S)=>{d.slotScopeIds=E,f==null?d.shapeFlag&512?b.ctx.activate(d,g,y,R,S):Q(d,g,y,b,k,R,S):ce(f,d,S)},Q=(f,d,g,y,b,k,R)=>{const E=f.component=zc(f,y,b);if(Ga(f)&&(E.ctx.renderer=T),Fc(E,!1,R),E.asyncDep){if(b&&b.registerDep(E,$e,R),!f.el){const S=E.subTree=oe(Mt);v(null,S,d,g)}}else $e(E,f,d,g,b,k,R)},ce=(f,d,g)=>{const y=d.component=f.component;if(Ec(f,d,g))if(y.asyncDep&&!y.asyncResolved){we(y,d,g);return}else y.next=d,y.update();else d.el=f.el,y.vnode=d},$e=(f,d,g,y,b,k,R)=>{const E=()=>{if(f.isMounted){let{next:I,bu:F,u:B,parent:Z,vnode:de}=f;{const Ve=sl(f);if(Ve){I&&(I.el=de.el,we(f,I,R)),Ve.asyncDep.then(()=>{f.isUnmounted||E()});return}}let le=I,Ne;Lt(f,!1),I?(I.el=de.el,we(f,I,R)):I=de,F&&Nn(F),(Ne=I.props&&I.props.onVnodeBeforeUpdate)&&it(Ne,Z,I,de),Lt(f,!0);const Ee=hr(f),Xe=f.subTree;f.subTree=Ee,x(Xe,Ee,h(Xe.el),Ft(Xe),f,b,k),I.el=Ee.el,le===null&&Tc(f,Ee.el),B&&Fe(B,b),(Ne=I.props&&I.props.onVnodeUpdated)&&Fe(()=>it(Ne,Z,I,de),b)}else{let I;const{el:F,props:B}=d,{bm:Z,m:de,parent:le,root:Ne,type:Ee}=f,Xe=mn(d);if(Lt(f,!1),Z&&Nn(Z),!Xe&&(I=B&&B.onVnodeBeforeMount)&&it(I,le,d),Lt(f,!0),F&&pe){const Ve=()=>{f.subTree=hr(f),pe(F,f.subTree,f,b,null)};Xe&&Ee.__asyncHydrate?Ee.__asyncHydrate(F,f,Ve):Ve()}else{Ne.ce&&Ne.ce._injectChildStyle(Ee);const Ve=f.subTree=hr(f);x(null,Ve,g,y,f,b,k),d.el=Ve.el}if(de&&Fe(de,b),!Xe&&(I=B&&B.onVnodeMounted)){const Ve=d;Fe(()=>it(I,le,Ve),b)}(d.shapeFlag&256||le&&mn(le.vnode)&&le.vnode.shapeFlag&256)&&f.a&&Fe(f.a,b),f.isMounted=!0,d=g=y=null}};f.scope.on();const S=f.effect=new ms(E);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=()=>nr(M),Lt(f,!0),_()},we=(f,d,g)=>{d.component=f;const y=f.vnode.props;f.vnode=d,f.next=null,uc(f,d.props,y,g),pc(f,d.children,g),St(),Ds(f),Et()},ke=(f,d,g,y,b,k,R,E,S=!1)=>{const _=f&&f.children,M=f?f.shapeFlag:0,I=d.children,{patchFlag:F,shapeFlag:B}=d;if(F>0){if(F&128){kt(_,I,g,y,b,k,R,E,S);return}else if(F&256){Me(_,I,g,y,b,k,R,E,S);return}}B&8?(M&16&&Pt(_,b,k),I!==_&&c(g,I)):M&16?B&16?kt(_,I,g,y,b,k,R,E,S):Pt(_,b,k,!0):(M&8&&c(g,""),B&16&&X(I,g,y,b,k,R,E,S))},Me=(f,d,g,y,b,k,R,E,S)=>{f=f||Ut,d=d||Ut;const _=f.length,M=d.length,I=Math.min(_,M);let F;for(F=0;F<I;F++){const B=d[F]=S?bt(d[F]):nt(d[F]);x(f[F],B,g,null,b,k,R,E,S)}_>M?Pt(f,b,k,!0,!1,I):X(d,g,y,b,k,R,E,S,I)},kt=(f,d,g,y,b,k,R,E,S)=>{let _=0;const M=d.length;let I=f.length-1,F=M-1;for(;_<=I&&_<=F;){const B=f[_],Z=d[_]=S?bt(d[_]):nt(d[_]);if(xn(B,Z))x(B,Z,g,null,b,k,R,E,S);else break;_++}for(;_<=I&&_<=F;){const B=f[I],Z=d[F]=S?bt(d[F]):nt(d[F]);if(xn(B,Z))x(B,Z,g,null,b,k,R,E,S);else break;I--,F--}if(_>I){if(_<=F){const B=F+1,Z=B<M?d[B].el:y;for(;_<=F;)x(null,d[_]=S?bt(d[_]):nt(d[_]),g,Z,b,k,R,E,S),_++}}else if(_>F)for(;_<=I;)He(f[_],b,k,!0),_++;else{const B=_,Z=_,de=new Map;for(_=Z;_<=F;_++){const Be=d[_]=S?bt(d[_]):nt(d[_]);Be.key!=null&&de.set(Be.key,_)}let le,Ne=0;const Ee=F-Z+1;let Xe=!1,Ve=0;const jn=new Array(Ee);for(_=0;_<Ee;_++)jn[_]=0;for(_=B;_<=I;_++){const Be=f[_];if(Ne>=Ee){He(Be,b,k,!0);continue}let rt;if(Be.key!=null)rt=de.get(Be.key);else for(le=Z;le<=F;le++)if(jn[le-Z]===0&&xn(Be,d[le])){rt=le;break}rt===void 0?He(Be,b,k,!0):(jn[rt-Z]=_+1,rt>=Ve?Ve=rt:Xe=!0,x(Be,d[rt],g,null,b,k,R,E,S),Ne++)}const To=Xe?yc(jn):Ut;for(le=To.length-1,_=Ee-1;_>=0;_--){const Be=Z+_,rt=d[Be],Ao=Be+1<M?d[Be+1].el:y;jn[_]===0?x(null,rt,g,Ao,b,k,R,E,S):Xe&&(le<0||_!==To[le]?zt(rt,g,Ao,2):le--)}}},zt=(f,d,g,y,b=null)=>{const{el:k,type:R,transition:E,children:S,shapeFlag:_}=f;if(_&6){zt(f.component.subTree,d,g,y);return}if(_&128){f.suspense.move(d,g,y);return}if(_&64){R.move(f,d,g,T);return}if(R===he){i(k,d,g);for(let I=0;I<S.length;I++)zt(S[I],d,g,y);i(f.anchor,d,g);return}if(R===dr){H(f,d,g);return}if(y!==2&&_&1&&E)if(y===0)E.beforeEnter(k),i(k,d,g),Fe(()=>E.enter(k),b);else{const{leave:I,delayLeave:F,afterLeave:B}=E,Z=()=>i(k,d,g),de=()=>{I(k,()=>{Z(),B&&B()})};F?F(k,Z,de):de()}else i(k,d,g)},He=(f,d,g,y=!1,b=!1)=>{const{type:k,props:R,ref:E,children:S,dynamicChildren:_,shapeFlag:M,patchFlag:I,dirs:F,cacheIndex:B}=f;if(I===-2&&(b=!1),E!=null&&rr(E,null,g,f,!0),B!=null&&(d.renderCache[B]=void 0),M&256){d.ctx.deactivate(f);return}const Z=M&1&&F,de=!mn(f);let le;if(de&&(le=R&&R.onVnodeBeforeUnmount)&&it(le,d,f),M&6)Si(f.component,g,y);else{if(M&128){f.suspense.unmount(g,y);return}Z&&It(f,null,d,"beforeUnmount"),M&64?f.type.remove(f,d,g,T,y):_&&!_.hasOnce&&(k!==he||I>0&&I&64)?Pt(_,d,g,!1,!0):(k===he&&I&384||!b&&M&16)&&Pt(S,d,g),y&&Ci(f)}(de&&(le=R&&R.onVnodeUnmounted)||Z)&&Fe(()=>{le&&it(le,d,f),Z&&It(f,null,d,"unmounted")},g)},Ci=f=>{const{type:d,el:g,anchor:y,transition:b}=f;if(d===he){Or(g,y);return}if(d===dr){A(f);return}const k=()=>{r(g),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(f.shapeFlag&1&&b&&!b.persisted){const{leave:R,delayLeave:E}=b,S=()=>R(g,k);E?E(f.el,k,S):S()}else k()},Or=(f,d)=>{let g;for(;f!==d;)g=p(f),r(f),f=g;r(d)},Si=(f,d,g)=>{const{bum:y,scope:b,job:k,subTree:R,um:E,m:S,a:_}=f;ll(S),ll(_),y&&Nn(y),b.stop(),k&&(k.flags|=8,He(R,f,d,g)),E&&Fe(E,d),Fe(()=>{f.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},Pt=(f,d,g,y=!1,b=!1,k=0)=>{for(let R=k;R<f.length;R++)He(f[R],d,g,y,b)},Ft=f=>{if(f.shapeFlag&6)return Ft(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const d=p(f.anchor||f.el),g=d&&d[Wa];return g?p(g):d};let en=!1;const O=(f,d,g)=>{f==null?d._vnode&&He(d._vnode,null,null,!0):x(d._vnode||null,f,d,null,null,null,g),d._vnode=f,en||(en=!0,Ds(),Us(),en=!1)},T={p:x,um:He,m:zt,r:Ci,mt:Q,mc:X,pc:ke,pbc:G,n:Ft,o:e};let V,pe;return{render:O,hydrate:V,createApp:oc(O,V)}}function fr({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 bc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function rl(e,t,n=!1){const i=e.children,r=t.children;if(N(i)&&N(r))for(let s=0;s<i.length;s++){const l=i[s];let o=r[s];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=r[s]=bt(r[s]),o.el=l.el),!n&&o.patchFlag!==-2&&rl(l,o)),o.type===si&&(o.el=l.el)}}function yc(e){const t=e.slice(),n=[0];let i,r,s,l,o;const a=e.length;for(i=0;i<a;i++){const u=e[i];if(u!==0){if(r=n[n.length-1],e[r]<u){t[i]=r,n.push(i);continue}for(s=0,l=n.length-1;s<l;)o=s+l>>1,e[n[o]]<u?s=o+1:l=o;u<e[n[s]]&&(s>0&&(t[i]=n[s-1]),n[s]=i)}}for(s=n.length,l=n[s-1];s-- >0;)n[s]=l,l=t[l];return n}function sl(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:sl(t)}function ll(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const wc=Symbol.for("v-scx"),kc=()=>ii(wc);function ol(e,t){return al(e,null,t)}function qe(e,t,n){return al(e,t,n)}function al(e,t,n=ue){const{immediate:i,deep:r,flush:s,once:l}=n,o=Te({},n);let a;if(ai)if(s==="sync"){const p=kc();a=p.__watcherHandles||(p.__watcherHandles=[])}else if(!t||i)o.once=!0;else return{stop:_t,resume:_t,pause:_t};const u=Le;o.call=(p,m,w)=>ct(p,u,m,w);let c=!1;s==="post"?o.scheduler=p=>{Fe(p,u&&u.suspense)}:s!=="sync"&&(c=!0,o.scheduler=(p,m)=>{m?p():nr(p)}),o.augmentJob=p=>{t&&(p.flags|=4),c&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const h=Ua(e,t,o);return a&&a.push(h),h}const xc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ge(t)}Modifiers`]||e[`${$t(t)}Modifiers`];function _c(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||ue;let r=n;const s=t.startsWith("update:"),l=s&&xc(i,t.slice(7));l&&(l.trim&&(r=n.map(c=>ye(c)?c.trim():c)),l.number&&(r=n.map(Vn)));let o,a=i[o=ji(t)]||i[o=ji(Ge(t))];!a&&s&&(a=i[o=ji($t(t))]),a&&ct(a,e,6,r);const u=i[o+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,ct(u,e,6,r)}}function $c(e,t,n=!1){const i=t.emitsCache,r=i.get(e);if(r!==void 0)return r;const s=e.emits;let l={};return!s&&!!1?(ge(e)&&i.set(e,null),null):(N(s)?s.forEach(a=>l[a]=null):Te(l,s),ge(e)&&i.set(e,l),l)}function ri(e,t){return!e||!Dn(t)?!1:(t=t.slice(2).replace(/Once$/,""),re(e,t[0].toLowerCase()+t.slice(1))||re(e,$t(t))||re(e,t))}function hr(e){const{type:t,vnode:n,proxy:i,withProxy:r,propsOptions:[s],slots:l,attrs:o,emit:a,render:u,renderCache:c,props:h,data:p,setupState:m,ctx:w,inheritAttrs:x}=e,C=ei(e);let v,$;try{if(n.shapeFlag&4){const A=r||i,z=A;v=nt(u.call(z,A,c,h,m,p,w)),$=o}else{const A=t;v=nt(A.length>1?A(h,{attrs:o,slots:l,emit:a}):A(h,null)),$=t.props?o:Cc(o)}}catch(A){wn.length=0,Xn(A,e,1),v=oe(Mt)}let H=v;if($&&x!==!1){const A=Object.keys($),{shapeFlag:z}=H;A.length&&z&7&&(s&&A.some(Mi)&&($=Sc($,s)),H=Zt(H,$,!1,!0))}return n.dirs&&(H=Zt(H,null,!1,!0),H.dirs=H.dirs?H.dirs.concat(n.dirs):n.dirs),n.transition&&ir(H,n.transition),v=H,ei(C),v}const Cc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Dn(n))&&((t||(t={}))[n]=e[n]);return t},Sc=(e,t)=>{const n={};for(const i in e)(!Mi(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function Ec(e,t,n){const{props:i,children:r,component:s}=e,{props:l,children:o,patchFlag:a}=t,u=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return i?cl(i,l,u):!!l;if(a&8){const c=t.dynamicProps;for(let h=0;h<c.length;h++){const p=c[h];if(l[p]!==i[p]&&!ri(u,p))return!0}}}else return(r||o)&&(!o||!o.$stable)?!0:i===l?!1:i?l?cl(i,l,u):!0:!!l;return!1}function cl(e,t,n){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let r=0;r<i.length;r++){const s=i[r];if(t[s]!==e[s]&&!ri(n,s))return!0}return!1}function Tc({vnode:e,parent:t},n){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.el=e.el),i===e)(e=t.vnode).el=n,t=t.parent;else break}}const ul=e=>e.__isSuspense;function Ac(e,t){t&&t.pendingBranch?N(e)?t.effects.push(...e):t.effects.push(e):Va(e)}const he=Symbol.for("v-fgt"),si=Symbol.for("v-txt"),Mt=Symbol.for("v-cmt"),dr=Symbol.for("v-stc"),wn=[];let De=null;function L(e=!1){wn.push(De=e?null:[])}function Rc(){wn.pop(),De=wn[wn.length-1]||null}let kn=1;function fl(e){kn+=e,e<0&&De&&(De.hasOnce=!0)}function hl(e){return e.dynamicChildren=kn>0?De||Ut:null,Rc(),kn>0&&De&&De.push(e),e}function j(e,t,n,i,r,s){return hl(D(e,t,n,i,r,s,!0))}function ut(e,t,n,i,r){return hl(oe(e,t,n,i,r,!0))}function pr(e){return e?e.__v_isVNode===!0:!1}function xn(e,t){return e.type===t.type&&e.key===t.key}const dl=({key:e})=>e??null,li=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||xe(e)||ee(e)?{i:ze,r:e,k:t,f:!!n}:e:null);function D(e,t=null,n=null,i=0,r=null,s=e===he?0:1,l=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&dl(t),ref:t&&li(t),scopeId:Ns,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:i,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:ze};return o?(gr(a,n),s&128&&e.normalize(a)):n&&(a.shapeFlag|=ye(n)?8:16),kn>0&&!l&&De&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&De.push(a),a}const oe=Ic;function Ic(e,t=null,n=null,i=0,r=null,s=!1){if((!e||e===Xa)&&(e=Mt),pr(e)){const o=Zt(e,t,!0);return n&&gr(o,n),kn>0&&!s&&De&&(o.shapeFlag&6?De[De.indexOf(e)]=o:De.push(o)),o.patchFlag=-2,o}if(Vc(e)&&(e=e.__vccOpts),t){t=Lc(t);let{class:o,style:a}=t;o&&!ye(o)&&(t.class=ve(o)),ge(a)&&(Yi(a)&&!N(a)&&(a=Te({},a)),t.style=sn(a))}const l=ye(e)?1:ul(e)?128:qa(e)?64:ge(e)?4:ee(e)?2:0;return D(e,t,n,i,r,l,s,!0)}function Lc(e){return e?Yi(e)||Qs(e)?Te({},e):e:null}function Zt(e,t,n=!1,i=!1){const{props:r,ref:s,patchFlag:l,children:o,transition:a}=e,u=t?Mc(r||{},t):r,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&dl(u),ref:t&&t.ref?n&&s?N(s)?s.concat(li(t)):[s,li(t)]:li(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&&i&&ir(c,a.clone(c)),c}function ft(e=" ",t=0){return oe(si,null,e,t)}function J(e="",t=!1){return t?(L(),ut(Mt,null,e)):oe(Mt,null,e)}function nt(e){return e==null||typeof e=="boolean"?oe(Mt):N(e)?oe(he,null,e.slice()):typeof e=="object"?bt(e):oe(si,null,String(e))}function bt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Zt(e)}function gr(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(N(t))n=16;else if(typeof t=="object")if(i&65){const r=t.default;r&&(r._c&&(r._d=!1),gr(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Qs(t)?t._ctx=ze:r===3&&ze&&(ze.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ee(t)?(t={default:t,_ctx:ze},n=32):(t=String(t),i&64?(n=16,t=[ft(t)]):n=8);e.children=t,e.shapeFlag|=n}function Mc(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];for(const r in i)if(r==="class")t.class!==i.class&&(t.class=ve([t.class,i.class]));else if(r==="style")t.style=sn([t.style,i.style]);else if(Dn(r)){const s=t[r],l=i[r];l&&s!==l&&!(N(s)&&s.includes(l))&&(t[r]=s?[].concat(s,l):l)}else r!==""&&(t[r]=i[r])}return t}function it(e,t,n,i=null){ct(e,t,7,[n,i])}const Oc=Gs();let jc=0;function zc(e,t,n){const i=e.type,r=(t?t.appContext:e.appContext)||Oc,s={uid:jc++,vnode:e,type:i,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ua(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:fc(i,r),emitsOptions:$c(i,r),emit:null,emitted:null,propsDefaults:ue,inheritAttrs:i.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=_c.bind(null,s),e.ce&&e.ce(s),s}let Le=null;const Pc=()=>Le||ze;let oi,mr;{const e=zi(),t=(n,i)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(i),s=>{r.length>1?r.forEach(l=>l(s)):r[0](s)}};oi=t("__VUE_INSTANCE_SETTERS__",n=>Le=n),mr=t("__VUE_SSR_SETTERS__",n=>ai=n)}const vr=e=>{const t=Le;return oi(e),e.scope.on(),()=>{e.scope.off(),oi(t)}},pl=()=>{Le&&Le.scope.off(),oi(null)};function gl(e){return e.vnode.shapeFlag&4}let ai=!1;function Fc(e,t=!1,n=!1){t&&mr(t);const{props:i,children:r}=e.vnode,s=gl(e);cc(e,i,s,t),dc(e,r,n);const l=s?Dc(e,t):void 0;return t&&mr(!1),l}function Dc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,tc);const{setup:i}=n;if(i){const r=e.setupContext=i.length>1?Hc(e):null,s=vr(e);St();const l=hn(i,e,0,[e.props,r]);if(Et(),s(),os(l)){if(mn(e)||Ka(e),l.then(pl,pl),t)return l.then(o=>{ml(e,o,t)}).catch(o=>{Xn(o,e,0)});e.asyncDep=l}else ml(e,l,t)}else bl(e,t)}function ml(e,t,n){ee(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=zs(t)),bl(e,n)}let vl;function bl(e,t,n){const i=e.type;if(!e.render){if(!t&&vl&&!i.render){const r=i.template||nc(e).template;if(r){const{isCustomElement:s,compilerOptions:l}=e.appContext.config,{delimiters:o,compilerOptions:a}=i,u=Te(Te({isCustomElement:s,delimiters:o},l),a);i.render=vl(r,u)}}e.render=i.render||_t}}const Uc={get(e,t){return Ce(e,"get",""),e[t]}};function Hc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Uc),slots:e.slots,emit:e.emit,expose:t}}function ci(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(zs(Ma(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in bn)return bn[n](e)},has(t,n){return n in t||n in bn}})):e.proxy}function Nc(e,t=!0){return ee(e)?e.displayName||e.name:e.name||t&&e.__name}function Vc(e){return ee(e)&&"__vccOpts"in e}const _e=(e,t)=>Fa(e,t,ai);function ne(e,t,n){const i=arguments.length;return i===2?ge(t)&&!N(t)?pr(t)?oe(e,null,[t]):oe(e,t):oe(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&pr(n)&&(n=[n]),oe(e,t,n))}const Bc="3.5.3";/**
22
+ * @vue/runtime-dom v3.5.3
23
23
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
24
24
  * @license MIT
25
- **/const Tc="http://www.w3.org/2000/svg",Lc="http://www.w3.org/1998/Math/MathML",ht=typeof document<"u"?document:null,ds=ht&&ht.createElement("template"),Ac={insert:(e,t,i)=>{t.insertBefore(e,i||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,i,n)=>{const r=t==="svg"?ht.createElementNS(Tc,e):t==="mathml"?ht.createElementNS(Lc,e):ht.createElement(e,i?{is:i}:void 0);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},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,i,n,r,o){const s=i?i.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),i),!(r===o||!(r=r.nextSibling)););else{ds.innerHTML=n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e;const l=ds.content;if(n==="svg"||n==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,i)}return[s?s.nextSibling:t.firstChild,i?i.previousSibling:t.lastChild]}},Mc=Symbol("_vtc");function $c(e,t,i){const n=e[Mc];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):i?e.setAttribute("class",t):e.className=t}const ti=Symbol("_vod"),hs=Symbol("_vsh"),ps={beforeMount(e,{value:t},{transition:i}){e[ti]=e.style.display==="none"?"":e.style.display,i&&t?i.beforeEnter(e):dn(e,t)},mounted(e,{value:t},{transition:i}){i&&t&&i.enter(e)},updated(e,{value:t,oldValue:i},{transition:n}){!t!=!i&&(n?t?(n.beforeEnter(e),dn(e,!0),n.enter(e)):n.leave(e,()=>{dn(e,!1)}):dn(e,t))},beforeUnmount(e,{value:t}){dn(e,t)}};function dn(e,t){e.style.display=t?e[ti]:"none",e[hs]=!t}const Oc=Symbol(""),jc=/(^|;)\s*display\s*:/;function zc(e,t,i){const n=e.style,r=be(i);let o=!1;if(i&&!r){if(t)if(be(t))for(const s of t.split(";")){const l=s.slice(0,s.indexOf(":")).trim();i[l]==null&&ni(n,l,"")}else for(const s in t)i[s]==null&&ni(n,s,"");for(const s in i)s==="display"&&(o=!0),ni(n,s,i[s])}else if(r){if(t!==i){const s=n[Oc];s&&(i+=";"+s),n.cssText=i,o=jc.test(i)}}else t&&e.removeAttribute("style");ti in e&&(e[ti]=o?n.display:"",e[hs]&&(n.display="none"))}const gs=/\s*!important$/;function ni(e,t,i){if(F(i))i.forEach(n=>ni(e,t,n));else if(i==null&&(i=""),t.startsWith("--"))e.setProperty(t,i);else{const n=Pc(e,t);gs.test(i)?e.setProperty(zt(n),i.replace(gs,""),"important"):e[n]=i}}const ms=["Webkit","Moz","ms"],ar={};function Pc(e,t){const i=ar[t];if(i)return i;let n=We(t);if(n!=="filter"&&n in e)return ar[t]=n;n=An(n);for(let r=0;r<ms.length;r++){const o=ms[r]+n;if(o in e)return ar[t]=o}return t}const vs="http://www.w3.org/1999/xlink";function Uc(e,t,i,n,r){if(n&&t.startsWith("xlink:"))i==null?e.removeAttributeNS(vs,t.slice(6,t.length)):e.setAttributeNS(vs,t,i);else{const o=Ql(t);i==null||o&&!no(i)?e.removeAttribute(t):e.setAttribute(t,o?"":i)}}function Fc(e,t,i,n,r,o,s){if(t==="innerHTML"||t==="textContent"){n&&s(n,r,o),e[t]=i??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){const c=l==="OPTION"?e.getAttribute("value")||"":e.value,f=i??"";(c!==f||!("_value"in e))&&(e.value=f),i==null&&e.removeAttribute(t),e._value=i;return}let a=!1;if(i===""||i==null){const c=typeof e[t];c==="boolean"?i=no(i):i==null&&c==="string"?(i="",a=!0):c==="number"&&(i=0,a=!0)}try{e[t]=i}catch{}a&&e.removeAttribute(t)}function nt(e,t,i,n){e.addEventListener(t,i,n)}function Nc(e,t,i,n){e.removeEventListener(t,i,n)}const ws=Symbol("_vei");function Hc(e,t,i,n,r=null){const o=e[ws]||(e[ws]={}),s=o[t];if(n&&s)s.value=n;else{const[l,a]=Dc(t);if(n){const c=o[t]=Wc(n,r);nt(e,l,c,a)}else s&&(Nc(e,l,s,a),o[t]=void 0)}}const ys=/(?:Once|Passive|Capture)$/;function Dc(e){let t;if(ys.test(e)){t={};let n;for(;n=e.match(ys);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):zt(e.slice(2)),t]}let cr=0;const Vc=Promise.resolve(),Bc=()=>cr||(Vc.then(()=>cr=0),cr=Date.now());function Wc(e,t){const i=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=i.attached)return;qe(qc(n,i.value),t,5,[n])};return i.value=e,i.attached=Bc(),i}function qc(e,t){if(F(t)){const i=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{i.call(e),e._stopped=!0},t.map(n=>r=>!r._stopped&&n&&n(r))}else return t}const bs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Kc=(e,t,i,n,r,o,s,l,a)=>{const c=r==="svg";t==="class"?$c(e,n,c):t==="style"?zc(e,i,n):Tn(t)?Ri(t)||Hc(e,t,i,n,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Gc(e,t,n,c))?Fc(e,t,n,o,s,l,a):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Uc(e,t,n,c))};function Gc(e,t,i,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&bs(t)&&ee(i));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 r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return bs(t)&&be(i)?!1:t in e}const pt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return F(t)?i=>Mn(t,i):t};function Zc(e){e.target.composing=!0}function _s(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Fe=Symbol("_assign"),ur={created(e,{modifiers:{lazy:t,trim:i,number:n}},r){e[Fe]=pt(r);const o=n||r.props&&r.props.type==="number";nt(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;i&&(l=l.trim()),o&&(l=$n(l)),e[Fe](l)}),i&&nt(e,"change",()=>{e.value=e.value.trim()}),t||(nt(e,"compositionstart",Zc),nt(e,"compositionend",_s),nt(e,"change",_s))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:i,trim:n,number:r}},o){if(e[Fe]=pt(o),e.composing)return;const s=(r||e.type==="number")&&!/^0\d/.test(e.value)?$n(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(i||n&&e.value.trim()===l)||(e.value=l))}},Qc={deep:!0,created(e,t,i){e[Fe]=pt(i),nt(e,"change",()=>{const n=e._modelValue,r=Nt(e),o=e.checked,s=e[Fe];if(F(n)){const l=Mi(n,r),a=l!==-1;if(o&&!a)s(n.concat(r));else if(!o&&a){const c=[...n];c.splice(l,1),s(c)}}else if(jt(n)){const l=new Set(n);o?l.add(r):l.delete(r),s(l)}else s(Cs(e,o))})},mounted:ks,beforeUpdate(e,t,i){e[Fe]=pt(i),ks(e,t,i)}};function ks(e,{value:t,oldValue:i},n){e._modelValue=t,F(t)?e.checked=Mi(t,n.props.value)>-1:jt(t)?e.checked=t.has(n.props.value):t!==i&&(e.checked=yt(t,Cs(e,!0)))}const Jc={created(e,{value:t},i){e.checked=yt(t,i.props.value),e[Fe]=pt(i),nt(e,"change",()=>{e[Fe](Nt(e))})},beforeUpdate(e,{value:t,oldValue:i},n){e[Fe]=pt(n),t!==i&&(e.checked=yt(t,n.props.value))}},Yc={deep:!0,created(e,{value:t,modifiers:{number:i}},n){const r=jt(t);nt(e,"change",()=>{const o=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>i?$n(Nt(s)):Nt(s));e[Fe](e.multiple?r?new Set(o):o:o[0]),e._assigning=!0,Ut(()=>{e._assigning=!1})}),e[Fe]=pt(n)},mounted(e,{value:t,modifiers:{number:i}}){xs(e,t)},beforeUpdate(e,t,i){e[Fe]=pt(i)},updated(e,{value:t,modifiers:{number:i}}){e._assigning||xs(e,t)}};function xs(e,t,i){const n=e.multiple,r=F(t);if(!(n&&!r&&!jt(t))){for(let o=0,s=e.options.length;o<s;o++){const l=e.options[o],a=Nt(l);if(n)if(r){const c=typeof a;c==="string"||c==="number"?l.selected=t.some(f=>String(f)===String(a)):l.selected=Mi(t,a)>-1}else l.selected=t.has(a);else if(yt(Nt(l),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Nt(e){return"_value"in e?e._value:e.value}function Cs(e,t){const i=t?"_trueValue":"_falseValue";return i in e?e[i]:t}const Xc={created(e,t,i){ii(e,t,i,null,"created")},mounted(e,t,i){ii(e,t,i,null,"mounted")},beforeUpdate(e,t,i,n){ii(e,t,i,n,"beforeUpdate")},updated(e,t,i,n){ii(e,t,i,n,"updated")}};function eu(e,t){switch(e){case"SELECT":return Yc;case"TEXTAREA":return ur;default:switch(t){case"checkbox":return Qc;case"radio":return Jc;default:return ur}}}function ii(e,t,i,n,r){const s=eu(e.tagName,i.props&&i.props.type)[r];s&&s(e,t,i,n)}const tu=ke({patchProp:Kc},Ac);let Es;function nu(){return Es||(Es=cc(tu))}const iu=(...e)=>{const t=nu().createApp(...e),{mount:i}=t;return t.mount=n=>{const r=ou(n);if(!r)return;const o=t._component;!ee(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.innerHTML="";const s=i(r,!1,ru(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),s},t};function ru(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function ou(e){return be(e)?document.querySelector(e):e}function hn(e){return ro()?(ea(e),!0):!1}function it(e){return typeof e=="function"?e():Ro(e)}const ri=typeof window<"u"&&typeof document<"u",su=Object.prototype.toString,lu=e=>su.call(e)==="[object Object]",oi=()=>{};function Is(e,t){function i(...n){return new Promise((r,o)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(o)})}return i}const Ss=e=>e();function au(e,t={}){let i,n,r=oi;const o=l=>{clearTimeout(l),r(),r=oi};return l=>{const a=it(e),c=it(t.maxWait);return i&&o(i),a<=0||c!==void 0&&c<=0?(n&&(o(n),n=null),Promise.resolve(l())):new Promise((f,h)=>{r=t.rejectOnCancel?h:f,c&&!n&&(n=setTimeout(()=>{i&&o(i),n=null,f(l())},c)),i=setTimeout(()=>{n&&o(n),n=null,f(l())},a)})}}function cu(e=Ss){const t=V(!0);function i(){t.value=!1}function n(){t.value=!0}const r=(...o)=>{t.value&&e(...o)};return{isActive:Jt(t),pause:i,resume:n,eventFilter:r}}function Rs(e){return _c()}function uu(e,t=200,i={}){return Is(au(t,i),e)}function fu(e,t,i={}){const{eventFilter:n=Ss,...r}=i;return Pe(e,Is(n,t),r)}function du(e,t,i={}){const{eventFilter:n,...r}=i,{eventFilter:o,pause:s,resume:l,isActive:a}=cu(n);return{stop:fu(e,t,{...r,eventFilter:o}),pause:s,resume:l,isActive:a}}function fr(e,t=!0,i){Rs()?on(e,i):t?e():Ut(e)}function hu(e,t){Rs()&&Qi(e,t)}function pu(e,t=1e3,i={}){const{immediate:n=!0,immediateCallback:r=!1}=i;let o=null;const s=V(!1);function l(){o&&(clearInterval(o),o=null)}function a(){s.value=!1,l()}function c(){const f=it(t);f<=0||(s.value=!0,r&&e(),l(),o=setInterval(e,f))}if(n&&ri&&c(),Le(t)||typeof t=="function"){const f=Pe(t,()=>{s.value&&ri&&c()});hn(f)}return hn(a),{isActive:s,pause:a,resume:c}}function gu(e){var t;const i=it(e);return(t=i==null?void 0:i.$el)!=null?t:i}const si=ri?window:void 0,Ts=ri?window.document:void 0;function li(...e){let t,i,n,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([i,n,r]=e,t=si):[t,i,n,r]=e,!t)return oi;Array.isArray(i)||(i=[i]),Array.isArray(n)||(n=[n]);const o=[],s=()=>{o.forEach(f=>f()),o.length=0},l=(f,h,p,g)=>(f.addEventListener(h,p,g),()=>f.removeEventListener(h,p,g)),a=Pe(()=>[gu(t),it(r)],([f,h])=>{if(s(),!f)return;const p=lu(h)?{...h}:h;o.push(...i.flatMap(g=>n.map(R=>l(f,g,R,p))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return hn(c),c}function mu(e,t={}){const{immediate:i=!0,fpsLimit:n=void 0,window:r=si}=t,o=V(!1),s=n?1e3/n:null;let l=0,a=null;function c(p){if(!o.value||!r)return;l||(l=p);const g=p-l;if(s&&g<s){a=r.requestAnimationFrame(c);return}l=p,e({delta:g,timestamp:p}),a=r.requestAnimationFrame(c)}function f(){!o.value&&r&&(o.value=!0,l=0,a=r.requestAnimationFrame(c))}function h(){o.value=!1,a!=null&&r&&(r.cancelAnimationFrame(a),a=null)}return i&&f(),hn(h),{isActive:Jt(o),pause:h,resume:f}}const ai=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ci="__vueuse_ssr_handlers__",vu=wu();function wu(){return ci in ai||(ai[ci]=ai[ci]||{}),ai[ci]}function yu(e,t){return vu[e]||t}function bu(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 _u={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()}},Ls="vueuse-storage";function Ht(e,t,i,n={}){var r;const{flush:o="pre",deep:s=!0,listenToStorageChanges:l=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:f,window:h=si,eventFilter:p,onError:g=W=>{console.error(W)},initOnMounted:R}=n,x=(f?ka:V)(typeof t=="function"?t():t);if(!i)try{i=yu("getDefaultStorage",()=>{var W;return(W=si)==null?void 0:W.localStorage})()}catch(W){g(W)}if(!i)return x;const T=it(t),$=bu(T),P=(r=n.serializer)!=null?r:_u[$],{pause:A,resume:N}=du(x,()=>H(x.value),{flush:o,deep:s,eventFilter:p});h&&l&&fr(()=>{li(h,"storage",B),li(h,Ls,je),R&&B()}),R||B();function te(W,ae){h&&h.dispatchEvent(new CustomEvent(Ls,{detail:{key:e,oldValue:W,newValue:ae,storageArea:i}}))}function H(W){try{const ae=i.getItem(e);if(W==null)te(ae,null),i.removeItem(e);else{const ge=P.write(W);ae!==ge&&(i.setItem(e,ge),te(ae,ge))}}catch(ae){g(ae)}}function D(W){const ae=W?W.newValue:i.getItem(e);if(ae==null)return a&&T!=null&&i.setItem(e,P.write(T)),T;if(!W&&c){const ge=P.read(ae);return typeof c=="function"?c(ge,T):$==="object"&&!Array.isArray(ge)?{...T,...ge}:ge}else return typeof ae!="string"?ae:P.read(ae)}function B(W){if(!(W&&W.storageArea!==i)){if(W&&W.key==null){x.value=T;return}if(!(W&&W.key!==e)){A();try{(W==null?void 0:W.newValue)!==P.write(x.value)&&(x.value=D(W))}catch(ae){g(ae)}finally{W?Ut(N):N()}}}}function je(W){B(W.detail)}return x}function ku(e={}){const{controls:t=!1,interval:i="requestAnimationFrame"}=e,n=V(new Date),r=()=>n.value=new Date,o=i==="requestAnimationFrame"?mu(r,{immediate:!0}):pu(r,i,{immediate:!0});return t?{now:n,...o}:n}function xu(e,t=oi,i={}){const{immediate:n=!0,manual:r=!1,type:o="text/javascript",async:s=!0,crossOrigin:l,referrerPolicy:a,noModule:c,defer:f,document:h=Ts,attrs:p={}}=i,g=V(null);let R=null;const x=P=>new Promise((A,N)=>{const te=B=>(g.value=B,A(B),B);if(!h){A(!1);return}let H=!1,D=h.querySelector(`script[src="${it(e)}"]`);D?D.hasAttribute("data-loaded")&&te(D):(D=h.createElement("script"),D.type=o,D.async=s,D.src=it(e),f&&(D.defer=f),l&&(D.crossOrigin=l),c&&(D.noModule=c),a&&(D.referrerPolicy=a),Object.entries(p).forEach(([B,je])=>D==null?void 0:D.setAttribute(B,je)),H=!0),D.addEventListener("error",B=>N(B)),D.addEventListener("abort",B=>N(B)),D.addEventListener("load",()=>{D.setAttribute("data-loaded","true"),t(D),te(D)}),H&&(D=h.head.appendChild(D)),P||te(D)}),T=(P=!0)=>(R||(R=x(P)),R),$=()=>{if(!h)return;R=null,g.value&&(g.value=null);const P=h.querySelector(`script[src="${it(e)}"]`);P&&h.head.removeChild(P)};return n&&!r&&fr(T),r||hu($),{scriptTag:g,load:T,unload:$}}let Cu=0;function Eu(e,t={}){const i=V(!1),{document:n=Ts,immediate:r=!0,manual:o=!1,id:s=`vueuse_styletag_${++Cu}`}=t,l=V(e);let a=()=>{};const c=()=>{if(!n)return;const h=n.getElementById(s)||n.createElement("style");h.isConnected||(h.id=s,t.media&&(h.media=t.media),n.head.appendChild(h)),!i.value&&(a=Pe(l,p=>{h.textContent=p},{immediate:!0}),i.value=!0)},f=()=>{!n||!i.value||(a(),n.head.removeChild(n.getElementById(s)),i.value=!1)};return r&&!o&&fr(c),o||hn(f),{id:s,css:l,unload:f,load:c,isLoaded:Jt(i)}}const Iu=e=>!!/@[0-9]+\.[0-9]+\.[0-9]+/.test(e),Su=e=>{const t=Ht("WALINE_EMOJI",{}),i=Iu(e);if(i){const n=t.value[e];if(n)return Promise.resolve(n)}return fetch(`${e}/info.json`).then(n=>n.json()).then(n=>{const r={folder:e,...n};return i&&(t.value[e]=r),r})},As=(e,t="",i="",n="")=>`${t?`${t}/`:""}${i}${e}${n?`.${n}`:""}`,Ru=e=>Promise.all(e.map(t=>Mt(t)?Su(Kr(t)):Promise.resolve(t))).then(t=>{const i={tabs:[],map:{}};return t.forEach(n=>{const{name:r,folder:o,icon:s,prefix:l="",type:a,items:c}=n;i.tabs.push({name:r,icon:As(s,o,l,a),items:c.map(f=>{const h=`${l}${f}`;return i.map[h]=As(f,o,l,a),h})})}),i}),Ms=e=>{e.name!=="AbortError"&&console.error(e.message)},dr=e=>e instanceof HTMLElement?e:Mt(e)?document.querySelector(e):null,Tu=e=>e.type.includes("image"),$s=e=>{const t=Array.from(e).find(Tu);return t?t.getAsFile():null};function hr(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Tt=hr();function Os(e){Tt=e}const js=/[&<>"']/,Lu=new RegExp(js.source,"g"),zs=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Au=new RegExp(zs.source,"g"),Mu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ps=e=>Mu[e];function Oe(e,t){if(t){if(js.test(e))return e.replace(Lu,Ps)}else if(zs.test(e))return e.replace(Au,Ps);return e}const $u=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Ou(e){return e.replace($u,(t,i)=>(i=i.toLowerCase(),i==="colon"?":":i.charAt(0)==="#"?i.charAt(1)==="x"?String.fromCharCode(parseInt(i.substring(2),16)):String.fromCharCode(+i.substring(1)):""))}const ju=/(^|[^\[])\^/g;function ie(e,t){let i=typeof e=="string"?e:e.source;t=t||"";const n={replace:(r,o)=>{let s=typeof o=="string"?o:o.source;return s=s.replace(ju,"$1"),i=i.replace(r,s),n},getRegex:()=>new RegExp(i,t)};return n}function Us(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const pn={exec:()=>null};function Fs(e,t){const i=e.replace(/\|/g,(o,s,l)=>{let a=!1,c=s;for(;--c>=0&&l[c]==="\\";)a=!a;return a?"|":" |"}),n=i.split(/ \|/);let r=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n}function ui(e,t,i){const n=e.length;if(n===0)return"";let r=0;for(;r<n;){const o=e.charAt(n-r-1);if(o===t&&!i)r++;else if(o!==t&&i)r++;else break}return e.slice(0,n-r)}function zu(e,t){if(e.indexOf(t[1])===-1)return-1;let i=0;for(let n=0;n<e.length;n++)if(e[n]==="\\")n++;else if(e[n]===t[0])i++;else if(e[n]===t[1]&&(i--,i<0))return n;return-1}function Ns(e,t,i,n){const r=t.href,o=t.title?Oe(t.title):null,s=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){n.state.inLink=!0;const l={type:"link",raw:i,href:r,title:o,text:s,tokens:n.inlineTokens(s)};return n.state.inLink=!1,l}return{type:"image",raw:i,href:r,title:o,text:Oe(s)}}function Pu(e,t){const i=e.match(/^(\s+)(?:```)/);if(i===null)return t;const n=i[1];return t.split(`
26
- `).map(r=>{const o=r.match(/^\s+/);if(o===null)return r;const[s]=o;return s.length>=n.length?r.slice(n.length):r}).join(`
27
- `)}class fi{options;rules;lexer;constructor(t){this.options=t||Tt}space(t){const i=this.rules.block.newline.exec(t);if(i&&i[0].length>0)return{type:"space",raw:i[0]}}code(t){const i=this.rules.block.code.exec(t);if(i){const n=i[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:i[0],codeBlockStyle:"indented",text:this.options.pedantic?n:ui(n,`
28
- `)}}}fences(t){const i=this.rules.block.fences.exec(t);if(i){const n=i[0],r=Pu(n,i[3]||"");return{type:"code",raw:n,lang:i[2]?i[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):i[2],text:r}}}heading(t){const i=this.rules.block.heading.exec(t);if(i){let n=i[2].trim();if(/#$/.test(n)){const r=ui(n,"#");(this.options.pedantic||!r||/ $/.test(r))&&(n=r.trim())}return{type:"heading",raw:i[0],depth:i[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){const i=this.rules.block.hr.exec(t);if(i)return{type:"hr",raw:i[0]}}blockquote(t){const i=this.rules.block.blockquote.exec(t);if(i){let n=i[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
29
- $1`);n=ui(n.replace(/^ *>[ \t]?/gm,""),`
30
- `);const r=this.lexer.state.top;this.lexer.state.top=!0;const o=this.lexer.blockTokens(n);return this.lexer.state.top=r,{type:"blockquote",raw:i[0],tokens:o,text:n}}}list(t){let i=this.rules.block.list.exec(t);if(i){let n=i[1].trim();const r=n.length>1,o={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");const s=new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`);let l="",a="",c=!1;for(;t;){let f=!1;if(!(i=s.exec(t))||this.rules.block.hr.test(t))break;l=i[0],t=t.substring(l.length);let h=i[2].split(`
31
- `,1)[0].replace(/^\t+/,$=>" ".repeat(3*$.length)),p=t.split(`
32
- `,1)[0],g=0;this.options.pedantic?(g=2,a=h.trimStart()):(g=i[2].search(/[^ ]/),g=g>4?1:g,a=h.slice(g),g+=i[1].length);let R=!1;if(!h&&/^ *$/.test(p)&&(l+=p+`
33
- `,t=t.substring(p.length+1),f=!0),!f){const $=new RegExp(`^ {0,${Math.min(3,g-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),P=new RegExp(`^ {0,${Math.min(3,g-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),A=new RegExp(`^ {0,${Math.min(3,g-1)}}(?:\`\`\`|~~~)`),N=new RegExp(`^ {0,${Math.min(3,g-1)}}#`);for(;t;){const te=t.split(`
34
- `,1)[0];if(p=te,this.options.pedantic&&(p=p.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),A.test(p)||N.test(p)||$.test(p)||P.test(t))break;if(p.search(/[^ ]/)>=g||!p.trim())a+=`
35
- `+p.slice(g);else{if(R||h.search(/[^ ]/)>=4||A.test(h)||N.test(h)||P.test(h))break;a+=`
36
- `+p}!R&&!p.trim()&&(R=!0),l+=te+`
37
- `,t=t.substring(te.length+1),h=p.slice(g)}}o.loose||(c?o.loose=!0:/\n *\n *$/.test(l)&&(c=!0));let x=null,T;this.options.gfm&&(x=/^\[[ xX]\] /.exec(a),x&&(T=x[0]!=="[ ] ",a=a.replace(/^\[[ xX]\] +/,""))),o.items.push({type:"list_item",raw:l,task:!!x,checked:T,loose:!1,text:a,tokens:[]}),o.raw+=l}o.items[o.items.length-1].raw=l.trimEnd(),o.items[o.items.length-1].text=a.trimEnd(),o.raw=o.raw.trimEnd();for(let f=0;f<o.items.length;f++)if(this.lexer.state.top=!1,o.items[f].tokens=this.lexer.blockTokens(o.items[f].text,[]),!o.loose){const h=o.items[f].tokens.filter(g=>g.type==="space"),p=h.length>0&&h.some(g=>/\n.*\n/.test(g.raw));o.loose=p}if(o.loose)for(let f=0;f<o.items.length;f++)o.items[f].loose=!0;return o}}html(t){const i=this.rules.block.html.exec(t);if(i)return{type:"html",block:!0,raw:i[0],pre:i[1]==="pre"||i[1]==="script"||i[1]==="style",text:i[0]}}def(t){const i=this.rules.block.def.exec(t);if(i){const n=i[1].toLowerCase().replace(/\s+/g," "),r=i[2]?i[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=i[3]?i[3].substring(1,i[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):i[3];return{type:"def",tag:n,raw:i[0],href:r,title:o}}}table(t){const i=this.rules.block.table.exec(t);if(!i||!/[:|]/.test(i[2]))return;const n=Fs(i[1]),r=i[2].replace(/^\||\| *$/g,"").split("|"),o=i[3]&&i[3].trim()?i[3].replace(/\n[ \t]*$/,"").split(`
38
- `):[],s={type:"table",raw:i[0],header:[],align:[],rows:[]};if(n.length===r.length){for(const l of r)/^ *-+: *$/.test(l)?s.align.push("right"):/^ *:-+: *$/.test(l)?s.align.push("center"):/^ *:-+ *$/.test(l)?s.align.push("left"):s.align.push(null);for(const l of n)s.header.push({text:l,tokens:this.lexer.inline(l)});for(const l of o)s.rows.push(Fs(l,s.header.length).map(a=>({text:a,tokens:this.lexer.inline(a)})));return s}}lheading(t){const i=this.rules.block.lheading.exec(t);if(i)return{type:"heading",raw:i[0],depth:i[2].charAt(0)==="="?1:2,text:i[1],tokens:this.lexer.inline(i[1])}}paragraph(t){const i=this.rules.block.paragraph.exec(t);if(i){const n=i[1].charAt(i[1].length-1)===`
39
- `?i[1].slice(0,-1):i[1];return{type:"paragraph",raw:i[0],text:n,tokens:this.lexer.inline(n)}}}text(t){const i=this.rules.block.text.exec(t);if(i)return{type:"text",raw:i[0],text:i[0],tokens:this.lexer.inline(i[0])}}escape(t){const i=this.rules.inline.escape.exec(t);if(i)return{type:"escape",raw:i[0],text:Oe(i[1])}}tag(t){const i=this.rules.inline.tag.exec(t);if(i)return!this.lexer.state.inLink&&/^<a /i.test(i[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(i[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(i[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(i[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:i[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:i[0]}}link(t){const i=this.rules.inline.link.exec(t);if(i){const n=i[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;const s=ui(n.slice(0,-1),"\\");if((n.length-s.length)%2===0)return}else{const s=zu(i[2],"()");if(s>-1){const a=(i[0].indexOf("!")===0?5:4)+i[1].length+s;i[2]=i[2].substring(0,s),i[0]=i[0].substring(0,a).trim(),i[3]=""}}let r=i[2],o="";if(this.options.pedantic){const s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);s&&(r=s[1],o=s[3])}else o=i[3]?i[3].slice(1,-1):"";return r=r.trim(),/^</.test(r)&&(this.options.pedantic&&!/>$/.test(n)?r=r.slice(1):r=r.slice(1,-1)),Ns(i,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},i[0],this.lexer)}}reflink(t,i){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){const r=(n[2]||n[1]).replace(/\s+/g," "),o=i[r.toLowerCase()];if(!o){const s=n[0].charAt(0);return{type:"text",raw:s,text:s}}return Ns(n,o,n[0],this.lexer)}}emStrong(t,i,n=""){let r=this.rules.inline.emStrongLDelim.exec(t);if(!r||r[3]&&n.match(/[\p{L}\p{N}]/u))return;if(!(r[1]||r[2]||"")||!n||this.rules.inline.punctuation.exec(n)){const s=[...r[0]].length-1;let l,a,c=s,f=0;const h=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,i=i.slice(-1*t.length+s);(r=h.exec(i))!=null;){if(l=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!l)continue;if(a=[...l].length,r[3]||r[4]){c+=a;continue}else if((r[5]||r[6])&&s%3&&!((s+a)%3)){f+=a;continue}if(c-=a,c>0)continue;a=Math.min(a,a+c+f);const p=[...r[0]][0].length,g=t.slice(0,s+r.index+p+a);if(Math.min(s,a)%2){const x=g.slice(1,-1);return{type:"em",raw:g,text:x,tokens:this.lexer.inlineTokens(x)}}const R=g.slice(2,-2);return{type:"strong",raw:g,text:R,tokens:this.lexer.inlineTokens(R)}}}}codespan(t){const i=this.rules.inline.code.exec(t);if(i){let n=i[2].replace(/\n/g," ");const r=/[^ ]/.test(n),o=/^ /.test(n)&&/ $/.test(n);return r&&o&&(n=n.substring(1,n.length-1)),n=Oe(n,!0),{type:"codespan",raw:i[0],text:n}}}br(t){const i=this.rules.inline.br.exec(t);if(i)return{type:"br",raw:i[0]}}del(t){const i=this.rules.inline.del.exec(t);if(i)return{type:"del",raw:i[0],text:i[2],tokens:this.lexer.inlineTokens(i[2])}}autolink(t){const i=this.rules.inline.autolink.exec(t);if(i){let n,r;return i[2]==="@"?(n=Oe(i[1]),r="mailto:"+n):(n=Oe(i[1]),r=n),{type:"link",raw:i[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(t){var n;let i;if(i=this.rules.inline.url.exec(t)){let r,o;if(i[2]==="@")r=Oe(i[0]),o="mailto:"+r;else{let s;do s=i[0],i[0]=((n=this.rules.inline._backpedal.exec(i[0]))==null?void 0:n[0])??"";while(s!==i[0]);r=Oe(i[0]),i[1]==="www."?o="http://"+i[0]:o=i[0]}return{type:"link",raw:i[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(t){const i=this.rules.inline.text.exec(t);if(i){let n;return this.lexer.state.inRawBlock?n=i[0]:n=Oe(i[0]),{type:"text",raw:i[0],text:n}}}}const Uu=/^(?: *(?:\n|$))+/,Fu=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,Nu=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,gn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Hu=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Hs=/(?:[*+-]|\d{1,9}[.)])/,Ds=ie(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Hs).replace(/blockCode/g,/ {4}/).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(),pr=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Du=/^[^\n]+/,gr=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Vu=ie(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",gr).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Bu=ie(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Hs).getRegex(),di="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",mr=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Wu=ie("^ {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",mr).replace("tag",di).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Vs=ie(pr).replace("hr",gn).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",di).getRegex(),vr={blockquote:ie(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Vs).getRegex(),code:Fu,def:Vu,fences:Nu,heading:Hu,hr:gn,html:Wu,lheading:Ds,list:Bu,newline:Uu,paragraph:Vs,table:pn,text:Du},Bs=ie("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",gn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\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",di).getRegex(),qu={...vr,table:Bs,paragraph:ie(pr).replace("hr",gn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Bs).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",di).getRegex()},Ku={...vr,html:ie(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",mr).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:pn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ie(pr).replace("hr",gn).replace("heading",` *#{1,6} *[^
40
- ]`).replace("lheading",Ds).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ws=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Gu=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,qs=/^( {2,}|\\)\n(?!\s*$)/,Zu=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,mn="\\p{P}\\p{S}",Qu=ie(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,mn).getRegex(),Ju=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,Yu=ie(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,mn).getRegex(),Xu=ie("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,mn).getRegex(),ef=ie("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,mn).getRegex(),tf=ie(/\\([punct])/,"gu").replace(/punct/g,mn).getRegex(),nf=ie(/^<(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(),rf=ie(mr).replace("(?:-->|$)","-->").getRegex(),of=ie("^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",rf).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),hi=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,sf=ie(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",hi).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ks=ie(/^!?\[(label)\]\[(ref)\]/).replace("label",hi).replace("ref",gr).getRegex(),Gs=ie(/^!?\[(ref)\](?:\[\])?/).replace("ref",gr).getRegex(),lf=ie("reflink|nolink(?!\\()","g").replace("reflink",Ks).replace("nolink",Gs).getRegex(),wr={_backpedal:pn,anyPunctuation:tf,autolink:nf,blockSkip:Ju,br:qs,code:Gu,del:pn,emStrongLDelim:Yu,emStrongRDelimAst:Xu,emStrongRDelimUnd:ef,escape:Ws,link:sf,nolink:Gs,punctuation:Qu,reflink:Ks,reflinkSearch:lf,tag:of,text:Zu,url:pn},af={...wr,link:ie(/^!?\[(label)\]\((.*?)\)/).replace("label",hi).getRegex(),reflink:ie(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",hi).getRegex()},yr={...wr,escape:ie(Ws).replace("])","~|])").getRegex(),url:ie(/^((?: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\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.!#$%&'*+\/=?_`{\|}~-]+@)))/},cf={...yr,br:ie(qs).replace("{2,}","*").getRegex(),text:ie(yr.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},pi={normal:vr,gfm:qu,pedantic:Ku},vn={normal:wr,gfm:yr,breaks:cf,pedantic:af};class rt{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Tt,this.options.tokenizer=this.options.tokenizer||new fi,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 i={block:pi.normal,inline:vn.normal};this.options.pedantic?(i.block=pi.pedantic,i.inline=vn.pedantic):this.options.gfm&&(i.block=pi.gfm,this.options.breaks?i.inline=vn.breaks:i.inline=vn.gfm),this.tokenizer.rules=i}static get rules(){return{block:pi,inline:vn}}static lex(t,i){return new rt(i).lex(t)}static lexInline(t,i){return new rt(i).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
41
- `),this.blockTokens(t,this.tokens);for(let i=0;i<this.inlineQueue.length;i++){const n=this.inlineQueue[i];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,i=[]){this.options.pedantic?t=t.replace(/\t/g," ").replace(/^ +$/gm,""):t=t.replace(/^( *)(\t+)/gm,(l,a,c)=>a+" ".repeat(c.length));let n,r,o,s;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(l=>(n=l.call({lexer:this},t,i))?(t=t.substring(n.raw.length),i.push(n),!0):!1))){if(n=this.tokenizer.space(t)){t=t.substring(n.raw.length),n.raw.length===1&&i.length>0?i[i.length-1].raw+=`
42
- `:i.push(n);continue}if(n=this.tokenizer.code(t)){t=t.substring(n.raw.length),r=i[i.length-1],r&&(r.type==="paragraph"||r.type==="text")?(r.raw+=`
43
- `+n.raw,r.text+=`
44
- `+n.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text):i.push(n);continue}if(n=this.tokenizer.fences(t)){t=t.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.heading(t)){t=t.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.hr(t)){t=t.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.blockquote(t)){t=t.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.list(t)){t=t.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.html(t)){t=t.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.def(t)){t=t.substring(n.raw.length),r=i[i.length-1],r&&(r.type==="paragraph"||r.type==="text")?(r.raw+=`
45
- `+n.raw,r.text+=`
46
- `+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(t)){t=t.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.lheading(t)){t=t.substring(n.raw.length),i.push(n);continue}if(o=t,this.options.extensions&&this.options.extensions.startBlock){let l=1/0;const a=t.slice(1);let c;this.options.extensions.startBlock.forEach(f=>{c=f.call({lexer:this},a),typeof c=="number"&&c>=0&&(l=Math.min(l,c))}),l<1/0&&l>=0&&(o=t.substring(0,l+1))}if(this.state.top&&(n=this.tokenizer.paragraph(o))){r=i[i.length-1],s&&r.type==="paragraph"?(r.raw+=`
47
- `+n.raw,r.text+=`
48
- `+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):i.push(n),s=o.length!==t.length,t=t.substring(n.raw.length);continue}if(n=this.tokenizer.text(t)){t=t.substring(n.raw.length),r=i[i.length-1],r&&r.type==="text"?(r.raw+=`
49
- `+n.raw,r.text+=`
50
- `+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):i.push(n);continue}if(t){const l="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,i}inline(t,i=[]){return this.inlineQueue.push({src:t,tokens:i}),i}inlineTokens(t,i=[]){let n,r,o,s=t,l,a,c;if(this.tokens.links){const f=Object.keys(this.tokens.links);if(f.length>0)for(;(l=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)f.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(l=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(l=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,l.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(a||(c=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(f=>(n=f.call({lexer:this},t,i))?(t=t.substring(n.raw.length),i.push(n),!0):!1))){if(n=this.tokenizer.escape(t)){t=t.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.tag(t)){t=t.substring(n.raw.length),r=i[i.length-1],r&&n.type==="text"&&r.type==="text"?(r.raw+=n.raw,r.text+=n.text):i.push(n);continue}if(n=this.tokenizer.link(t)){t=t.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(n.raw.length),r=i[i.length-1],r&&n.type==="text"&&r.type==="text"?(r.raw+=n.raw,r.text+=n.text):i.push(n);continue}if(n=this.tokenizer.emStrong(t,s,c)){t=t.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.codespan(t)){t=t.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.br(t)){t=t.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.del(t)){t=t.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.autolink(t)){t=t.substring(n.raw.length),i.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(t))){t=t.substring(n.raw.length),i.push(n);continue}if(o=t,this.options.extensions&&this.options.extensions.startInline){let f=1/0;const h=t.slice(1);let p;this.options.extensions.startInline.forEach(g=>{p=g.call({lexer:this},h),typeof p=="number"&&p>=0&&(f=Math.min(f,p))}),f<1/0&&f>=0&&(o=t.substring(0,f+1))}if(n=this.tokenizer.inlineText(o)){t=t.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(c=n.raw.slice(-1)),a=!0,r=i[i.length-1],r&&r.type==="text"?(r.raw+=n.raw,r.text+=n.text):i.push(n);continue}if(t){const f="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return i}}class gi{options;constructor(t){this.options=t||Tt}code(t,i,n){var o;const r=(o=(i||"").match(/^\S*/))==null?void 0:o[0];return t=t.replace(/\n$/,"")+`
51
- `,r?'<pre><code class="language-'+Oe(r)+'">'+(n?t:Oe(t,!0))+`</code></pre>
52
- `:"<pre><code>"+(n?t:Oe(t,!0))+`</code></pre>
53
- `}blockquote(t){return`<blockquote>
54
- ${t}</blockquote>
55
- `}html(t,i){return t}heading(t,i,n){return`<h${i}>${t}</h${i}>
56
- `}hr(){return`<hr>
57
- `}list(t,i,n){const r=i?"ol":"ul",o=i&&n!==1?' start="'+n+'"':"";return"<"+r+o+`>
58
- `+t+"</"+r+`>
59
- `}listitem(t,i,n){return`<li>${t}</li>
60
- `}checkbox(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph(t){return`<p>${t}</p>
61
- `}table(t,i){return i&&(i=`<tbody>${i}</tbody>`),`<table>
25
+ **/let br;const yl=typeof window<"u"&&window.trustedTypes;if(yl)try{br=yl.createPolicy("vue",{createHTML:e=>e})}catch{}const wl=br?e=>br.createHTML(e):e=>e,Wc="http://www.w3.org/2000/svg",qc="http://www.w3.org/1998/Math/MathML",ht=typeof document<"u"?document:null,kl=ht&&ht.createElement("template"),Kc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const r=t==="svg"?ht.createElementNS(Wc,e):t==="mathml"?ht.createElementNS(qc,e):n?ht.createElement(e,{is:n}):ht.createElement(e);return e==="select"&&i&&i.multiple!=null&&r.setAttribute("multiple",i.multiple),r},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,i,r,s){const l=n?n.previousSibling:t.lastChild;if(r&&(r===s||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===s||!(r=r.nextSibling)););else{kl.innerHTML=wl(i==="svg"?`<svg>${e}</svg>`:i==="mathml"?`<math>${e}</math>`:e);const o=kl.content;if(i==="svg"||i==="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]}},Gc=Symbol("_vtc");function Zc(e,t,n){const i=e[Gc];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ui=Symbol("_vod"),xl=Symbol("_vsh"),_l={beforeMount(e,{value:t},{transition:n}){e[ui]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):_n(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:i}){!t!=!n&&(i?t?(i.beforeEnter(e),_n(e,!0),i.enter(e)):i.leave(e,()=>{_n(e,!1)}):_n(e,t))},beforeUnmount(e,{value:t}){_n(e,t)}};function _n(e,t){e.style.display=t?e[ui]:"none",e[xl]=!t}const Jc=Symbol(""),Qc=/(^|;)\s*display\s*:/;function Yc(e,t,n){const i=e.style,r=ye(n);let s=!1;if(n&&!r){if(t)if(ye(t))for(const l of t.split(";")){const o=l.slice(0,l.indexOf(":")).trim();n[o]==null&&fi(i,o,"")}else for(const l in t)n[l]==null&&fi(i,l,"");for(const l in n)l==="display"&&(s=!0),fi(i,l,n[l])}else if(r){if(t!==n){const l=i[Jc];l&&(n+=";"+l),i.cssText=n,s=Qc.test(n)}}else t&&e.removeAttribute("style");ui in e&&(e[ui]=s?i.display:"",e[xl]&&(i.display="none"))}const $l=/\s*!important$/;function fi(e,t,n){if(N(n))n.forEach(i=>fi(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=Xc(e,t);$l.test(n)?e.setProperty($t(i),n.replace($l,""),"important"):e[i]=n}}const Cl=["Webkit","Moz","ms"],yr={};function Xc(e,t){const n=yr[t];if(n)return n;let i=Ge(t);if(i!=="filter"&&i in e)return yr[t]=i;i=Hn(i);for(let r=0;r<Cl.length;r++){const s=Cl[r]+i;if(s in e)return yr[t]=s}return t}const Sl="http://www.w3.org/1999/xlink";function El(e,t,n,i,r,s=aa(t)){i&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Sl,t.slice(6,t.length)):e.setAttributeNS(Sl,t,n):n==null||s&&!hs(n)?e.removeAttribute(t):e.setAttribute(t,s?"":et(n)?String(n):n)}function eu(e,t,n,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?wl(n):n);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const l=r==="OPTION"?e.getAttribute("value")||"":e.value,o=n==null?e.type==="checkbox"?"on":"":String(n);(l!==o||!("_value"in e))&&(e.value=o),n==null&&e.removeAttribute(t),e._value=n;return}let s=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=hs(n):n==null&&l==="string"?(n="",s=!0):l==="number"&&(n=0,s=!0)}try{e[t]=n}catch{}s&&e.removeAttribute(t)}function dt(e,t,n,i){e.addEventListener(t,n,i)}function tu(e,t,n,i){e.removeEventListener(t,n,i)}const Tl=Symbol("_vei");function nu(e,t,n,i,r=null){const s=e[Tl]||(e[Tl]={}),l=s[t];if(i&&l)l.value=i;else{const[o,a]=iu(t);if(i){const u=s[t]=lu(i,r);dt(e,o,u,a)}else l&&(tu(e,o,l,a),s[t]=void 0)}}const Al=/(?:Once|Passive|Capture)$/;function iu(e){let t;if(Al.test(e)){t={};let i;for(;i=e.match(Al);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):$t(e.slice(2)),t]}let wr=0;const ru=Promise.resolve(),su=()=>wr||(ru.then(()=>wr=0),wr=Date.now());function lu(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;ct(ou(i,n.value),t,5,[i])};return n.value=e,n.attached=su(),n}function ou(e,t){if(N(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>r=>!r._stopped&&i&&i(r))}else return t}const Rl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,au=(e,t,n,i,r,s)=>{const l=r==="svg";t==="class"?Zc(e,i,l):t==="style"?Yc(e,n,i):Dn(t)?Mi(t)||nu(e,t,n,i,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):cu(e,t,i,l))?(eu(e,t,i),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&El(e,t,i,l,s,t!=="value")):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),El(e,t,i,l))};function cu(e,t,n,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&Rl(t)&&ee(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 r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Rl(t)&&ye(n)?!1:!!(t in e||e._isVueCE&&(/[A-Z]/.test(t)||!ye(n)))}const yt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return N(t)?n=>Nn(t,n):t};function uu(e){e.target.composing=!0}function Il(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ke=Symbol("_assign"),kr={created(e,{modifiers:{lazy:t,trim:n,number:i}},r){e[Ke]=yt(r);const s=i||r.props&&r.props.type==="number";dt(e,t?"change":"input",l=>{if(l.target.composing)return;let o=e.value;n&&(o=o.trim()),s&&(o=Vn(o)),e[Ke](o)}),n&&dt(e,"change",()=>{e.value=e.value.trim()}),t||(dt(e,"compositionstart",uu),dt(e,"compositionend",Il),dt(e,"change",Il))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:i,trim:r,number:s}},l){if(e[Ke]=yt(l),e.composing)return;const o=(s||e.type==="number")&&!/^0\d/.test(e.value)?Vn(e.value):e.value,a=t??"";o!==a&&(document.activeElement===e&&e.type!=="range"&&(i&&t===n||r&&e.value.trim()===a)||(e.value=a))}},fu={deep:!0,created(e,t,n){e[Ke]=yt(n),dt(e,"change",()=>{const i=e._modelValue,r=Jt(e),s=e.checked,l=e[Ke];if(N(i)){const o=Pi(i,r),a=o!==-1;if(s&&!a)l(i.concat(r));else if(!s&&a){const u=[...i];u.splice(o,1),l(u)}}else if(Nt(i)){const o=new Set(i);s?o.add(r):o.delete(r),l(o)}else l(Ol(e,s))})},mounted:Ll,beforeUpdate(e,t,n){e[Ke]=yt(n),Ll(e,t,n)}};function Ll(e,{value:t,oldValue:n},i){e._modelValue=t;let r;N(t)?r=Pi(t,i.props.value)>-1:Nt(t)?r=t.has(i.props.value):r=Ct(t,Ol(e,!0)),e.checked!==r&&(e.checked=r)}const hu={created(e,{value:t},n){e.checked=Ct(t,n.props.value),e[Ke]=yt(n),dt(e,"change",()=>{e[Ke](Jt(e))})},beforeUpdate(e,{value:t,oldValue:n},i){e[Ke]=yt(i),t!==n&&(e.checked=Ct(t,i.props.value))}},du={deep:!0,created(e,{value:t,modifiers:{number:n}},i){const r=Nt(t);dt(e,"change",()=>{const s=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?Vn(Jt(l)):Jt(l));e[Ke](e.multiple?r?new Set(s):s:s[0]),e._assigning=!0,Kt(()=>{e._assigning=!1})}),e[Ke]=yt(i)},mounted(e,{value:t,modifiers:{number:n}}){Ml(e,t)},beforeUpdate(e,t,n){e[Ke]=yt(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||Ml(e,t)}};function Ml(e,t,n){const i=e.multiple,r=N(t);if(!(i&&!r&&!Nt(t))){for(let s=0,l=e.options.length;s<l;s++){const o=e.options[s],a=Jt(o);if(i)if(r){const u=typeof a;u==="string"||u==="number"?o.selected=t.some(c=>String(c)===String(a)):o.selected=Pi(t,a)>-1}else o.selected=t.has(a);else if(Ct(Jt(o),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!i&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Jt(e){return"_value"in e?e._value:e.value}function Ol(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const pu={created(e,t,n){hi(e,t,n,null,"created")},mounted(e,t,n){hi(e,t,n,null,"mounted")},beforeUpdate(e,t,n,i){hi(e,t,n,i,"beforeUpdate")},updated(e,t,n,i){hi(e,t,n,i,"updated")}};function gu(e,t){switch(e){case"SELECT":return du;case"TEXTAREA":return kr;default:switch(t){case"checkbox":return fu;case"radio":return hu;default:return kr}}}function hi(e,t,n,i,r){const l=gu(e.tagName,n.props&&n.props.type)[r];l&&l(e,t,n,i)}const mu=Te({patchProp:au},Kc);let jl;function vu(){return jl||(jl=mc(mu))}const bu=(...e)=>{const t=vu().createApp(...e),{mount:n}=t;return t.mount=i=>{const r=wu(i);if(!r)return;const s=t._component;!ee(s)&&!s.render&&!s.template&&(s.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const l=n(r,!1,yu(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),l},t};function yu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function wu(e){return ye(e)?document.querySelector(e):e}function $n(e){return gs()?(fa(e),!0):!1}function pt(e){return typeof e=="function"?e():K(e)}const di=typeof window<"u"&&typeof document<"u",ku=Object.prototype.toString,xu=e=>ku.call(e)==="[object Object]",pi=()=>{};function zl(e,t){function n(...i){return new Promise((r,s)=>{Promise.resolve(e(()=>t.apply(this,i),{fn:t,thisArg:this,args:i})).then(r).catch(s)})}return n}const Pl=e=>e();function _u(e,t={}){let n,i,r=pi;const s=o=>{clearTimeout(o),r(),r=pi};return o=>{const a=pt(e),u=pt(t.maxWait);return n&&s(n),a<=0||u!==void 0&&u<=0?(i&&(s(i),i=null),Promise.resolve(o())):new Promise((c,h)=>{r=t.rejectOnCancel?h:c,u&&!i&&(i=setTimeout(()=>{n&&s(n),i=null,c(o())},u)),n=setTimeout(()=>{i&&s(i),i=null,c(o())},a)})}}function $u(e=Pl){const t=q(!0);function n(){t.value=!1}function i(){t.value=!0}const r=(...s)=>{t.value&&e(...s)};return{isActive:fn(t),pause:n,resume:i,eventFilter:r}}function Fl(e){return Pc()}function Cu(e,t=200,n={}){return zl(_u(t,n),e)}function Su(e,t,n={}){const{eventFilter:i=Pl,...r}=n;return qe(e,zl(i,t),r)}function Eu(e,t,n={}){const{eventFilter:i,...r}=n,{eventFilter:s,pause:l,resume:o,isActive:a}=$u(i);return{stop:Su(e,t,{...r,eventFilter:s}),pause:l,resume:o,isActive:a}}function xr(e,t=!0,n){Fl()?vn(e,n):t?e():Kt(e)}function Tu(e,t){Fl()&&lr(e,t)}function Au(e,t=1e3,n={}){const{immediate:i=!0,immediateCallback:r=!1}=n;let s=null;const l=q(!1);function o(){s&&(clearInterval(s),s=null)}function a(){l.value=!1,o()}function u(){const c=pt(t);c<=0||(l.value=!0,r&&e(),o(),s=setInterval(e,c))}if(i&&di&&u(),xe(t)||typeof t=="function"){const c=qe(t,()=>{l.value&&di&&u()});$n(c)}return $n(a),{isActive:l,pause:a,resume:u}}function Ru(e){var t;const n=pt(e);return(t=n==null?void 0:n.$el)!=null?t:n}const gi=di?window:void 0,Dl=di?window.document:void 0;function mi(...e){let t,n,i,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,i,r]=e,t=gi):[t,n,i,r]=e,!t)return pi;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const s=[],l=()=>{s.forEach(c=>c()),s.length=0},o=(c,h,p,m)=>(c.addEventListener(h,p,m),()=>c.removeEventListener(h,p,m)),a=qe(()=>[Ru(t),pt(r)],([c,h])=>{if(l(),!c)return;const p=xu(h)?{...h}:h;s.push(...n.flatMap(m=>i.map(w=>o(c,m,w,p))))},{immediate:!0,flush:"post"}),u=()=>{a(),l()};return $n(u),u}function Iu(e,t={}){const{immediate:n=!0,fpsLimit:i=void 0,window:r=gi}=t,s=q(!1),l=i?1e3/i:null;let o=0,a=null;function u(p){if(!s.value||!r)return;o||(o=p);const m=p-o;if(l&&m<l){a=r.requestAnimationFrame(u);return}o=p,e({delta:m,timestamp:p}),a=r.requestAnimationFrame(u)}function c(){!s.value&&r&&(s.value=!0,o=0,a=r.requestAnimationFrame(u))}function h(){s.value=!1,a!=null&&r&&(r.cancelAnimationFrame(a),a=null)}return n&&c(),$n(h),{isActive:fn(s),pause:h,resume:c}}const vi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},bi="__vueuse_ssr_handlers__",Lu=Mu();function Mu(){return bi in vi||(vi[bi]=vi[bi]||{}),vi[bi]}function Ou(e,t){return Lu[e]||t}function ju(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 zu={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()}},Ul="vueuse-storage";function Qt(e,t,n,i={}){var r;const{flush:s="pre",deep:l=!0,listenToStorageChanges:o=!0,writeDefaults:a=!0,mergeDefaults:u=!1,shallow:c,window:h=gi,eventFilter:p,onError:m=G=>{console.error(G)},initOnMounted:w}=i,x=(c?Oa:q)(typeof t=="function"?t():t);if(!n)try{n=Ou("getDefaultStorage",()=>{var G;return(G=gi)==null?void 0:G.localStorage})()}catch(G){m(G)}if(!n)return x;const C=pt(t),v=ju(C),$=(r=i.serializer)!=null?r:zu[v],{pause:H,resume:A}=Eu(x,()=>W(x.value),{flush:s,deep:l,eventFilter:p});h&&o&&xr(()=>{n instanceof Storage?mi(h,"storage",X):mi(h,Ul,Pe),w&&X()}),w||X();function z(G,se){if(h){const be={key:e,oldValue:G,newValue:se,storageArea:n};h.dispatchEvent(n instanceof Storage?new StorageEvent("storage",be):new CustomEvent(Ul,{detail:be}))}}function W(G){try{const se=n.getItem(e);if(G==null)z(se,null),n.removeItem(e);else{const be=$.write(G);se!==be&&(n.setItem(e,be),z(se,be))}}catch(se){m(se)}}function U(G){const se=G?G.newValue:n.getItem(e);if(se==null)return a&&C!=null&&n.setItem(e,$.write(C)),C;if(!G&&u){const be=$.read(se);return typeof u=="function"?u(be,C):v==="object"&&!Array.isArray(be)?{...C,...be}:be}else return typeof se!="string"?se:$.read(se)}function X(G){if(!(G&&G.storageArea!==n)){if(G&&G.key==null){x.value=C;return}if(!(G&&G.key!==e)){H();try{(G==null?void 0:G.newValue)!==$.write(x.value)&&(x.value=U(G))}catch(se){m(se)}finally{G?Kt(A):A()}}}}function Pe(G){X(G.detail)}return x}function Pu(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,i=q(new Date),r=()=>i.value=new Date,s=n==="requestAnimationFrame"?Iu(r,{immediate:!0}):Au(r,n,{immediate:!0});return t?{now:i,...s}:i}function Fu(e,t=pi,n={}){const{immediate:i=!0,manual:r=!1,type:s="text/javascript",async:l=!0,crossOrigin:o,referrerPolicy:a,noModule:u,defer:c,document:h=Dl,attrs:p={}}=n,m=q(null);let w=null;const x=$=>new Promise((H,A)=>{const z=X=>(m.value=X,H(X),X);if(!h){H(!1);return}let W=!1,U=h.querySelector(`script[src="${pt(e)}"]`);U?U.hasAttribute("data-loaded")&&z(U):(U=h.createElement("script"),U.type=s,U.async=l,U.src=pt(e),c&&(U.defer=c),o&&(U.crossOrigin=o),u&&(U.noModule=u),a&&(U.referrerPolicy=a),Object.entries(p).forEach(([X,Pe])=>U==null?void 0:U.setAttribute(X,Pe)),W=!0),U.addEventListener("error",X=>A(X)),U.addEventListener("abort",X=>A(X)),U.addEventListener("load",()=>{U.setAttribute("data-loaded","true"),t(U),z(U)}),W&&(U=h.head.appendChild(U)),$||z(U)}),C=($=!0)=>(w||(w=x($)),w),v=()=>{if(!h)return;w=null,m.value&&(m.value=null);const $=h.querySelector(`script[src="${pt(e)}"]`);$&&h.head.removeChild($)};return i&&!r&&xr(C),r||Tu(v),{scriptTag:m,load:C,unload:v}}let Du=0;function Uu(e,t={}){const n=q(!1),{document:i=Dl,immediate:r=!0,manual:s=!1,id:l=`vueuse_styletag_${++Du}`}=t,o=q(e);let a=()=>{};const u=()=>{if(!i)return;const h=i.getElementById(l)||i.createElement("style");h.isConnected||(h.id=l,t.media&&(h.media=t.media),i.head.appendChild(h)),!n.value&&(a=qe(o,p=>{h.textContent=p},{immediate:!0}),n.value=!0)},c=()=>{!i||!n.value||(a(),i.head.removeChild(i.getElementById(l)),n.value=!1)};return r&&!s&&xr(u),s||$n(c),{id:l,css:o,unload:c,load:u,isLoaded:fn(n)}}const Hu=e=>!!/@[0-9]+\.[0-9]+\.[0-9]+/.test(e),Nu=e=>{const t=Qt("WALINE_EMOJI",{}),n=Hu(e);if(n){const i=t.value[e];if(i)return Promise.resolve(i)}return fetch(`${e}/info.json`).then(i=>i.json()).then(i=>{const r={folder:e,...i};return n&&(t.value[e]=r),r})},Hl=(e,t="",n="",i="")=>`${t?`${t}/`:""}${n}${e}${i?`.${i}`:""}`,Vu=e=>Promise.all(e.map(t=>Dt(t)?Nu(is(t)):Promise.resolve(t))).then(t=>{const n={tabs:[],map:{}};return t.forEach(i=>{const{name:r,folder:s,icon:l,prefix:o="",type:a,items:u}=i;n.tabs.push({name:r,icon:Hl(l,s,o,a),items:u.map(c=>{const h=`${o}${c}`;return n.map[h]=Hl(c,s,o,a),h})})}),n}),Nl=e=>{e.name!=="AbortError"&&console.error(e.message)},_r=e=>e instanceof HTMLElement?e:Dt(e)?document.querySelector(e):null,Bu=e=>e.type.includes("image"),Vl=e=>{const t=Array.from(e).find(Bu);return t?t.getAsFile():null};function $r(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Ot=$r();function Bl(e){Ot=e}const Wl=/[&<>"']/,Wu=new RegExp(Wl.source,"g"),ql=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,qu=new RegExp(ql.source,"g"),Ku={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Kl=e=>Ku[e];function Ue(e,t){if(t){if(Wl.test(e))return e.replace(Wu,Kl)}else if(ql.test(e))return e.replace(qu,Kl);return e}const Gu=/(^|[^\[])\^/g;function ae(e,t){let n=typeof e=="string"?e:e.source;t=t||"";const i={replace:(r,s)=>{let l=typeof s=="string"?s:s.source;return l=l.replace(Gu,"$1"),n=n.replace(r,l),i},getRegex:()=>new RegExp(n,t)};return i}function Gl(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const Cn={exec:()=>null};function Zl(e,t){const n=e.replace(/\|/g,(s,l,o)=>{let a=!1,u=l;for(;--u>=0&&o[u]==="\\";)a=!a;return a?"|":" |"}),i=n.split(/ \|/);let r=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;r<i.length;r++)i[r]=i[r].trim().replace(/\\\|/g,"|");return i}function Sn(e,t,n){const i=e.length;if(i===0)return"";let r=0;for(;r<i;){const s=e.charAt(i-r-1);if(s===t&&!n)r++;else if(s!==t&&n)r++;else break}return e.slice(0,i-r)}function Zu(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===t[0])n++;else if(e[i]===t[1]&&(n--,n<0))return i;return-1}function Jl(e,t,n,i){const r=t.href,s=t.title?Ue(t.title):null,l=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){i.state.inLink=!0;const o={type:"link",raw:n,href:r,title:s,text:l,tokens:i.inlineTokens(l)};return i.state.inLink=!1,o}return{type:"image",raw:n,href:r,title:s,text:Ue(l)}}function Ju(e,t){const n=e.match(/^(\s+)(?:```)/);if(n===null)return t;const i=n[1];return t.split(`
26
+ `).map(r=>{const s=r.match(/^\s+/);if(s===null)return r;const[l]=s;return l.length>=i.length?r.slice(i.length):r}).join(`
27
+ `)}class yi{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 i=n[0].replace(/^(?: {1,4}| {0,3}\t)/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?i:Sn(i,`
28
+ `)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const i=n[0],r=Ju(i,n[3]||"");return{type:"code",raw:i,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:r}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let i=n[2].trim();if(/#$/.test(i)){const r=Sn(i,"#");(this.options.pedantic||!r||/ $/.test(r))&&(i=r.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:Sn(n[0],`
29
+ `)}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){let i=Sn(n[0],`
30
+ `).split(`
31
+ `),r="",s="";const l=[];for(;i.length>0;){let o=!1;const a=[];let u;for(u=0;u<i.length;u++)if(/^ {0,3}>/.test(i[u]))a.push(i[u]),o=!0;else if(!o)a.push(i[u]);else break;i=i.slice(u);const c=a.join(`
32
+ `),h=c.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
33
+ $1`).replace(/^ {0,3}>[ \t]?/gm,"");r=r?`${r}
34
+ ${c}`:c,s=s?`${s}
35
+ ${h}`:h;const p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(h,l,!0),this.lexer.state.top=p,i.length===0)break;const m=l[l.length-1];if((m==null?void 0:m.type)==="code")break;if((m==null?void 0:m.type)==="blockquote"){const w=m,x=w.raw+`
36
+ `+i.join(`
37
+ `),C=this.blockquote(x);l[l.length-1]=C,r=r.substring(0,r.length-w.raw.length)+C.raw,s=s.substring(0,s.length-w.text.length)+C.text;break}else if((m==null?void 0:m.type)==="list"){const w=m,x=w.raw+`
38
+ `+i.join(`
39
+ `),C=this.list(x);l[l.length-1]=C,r=r.substring(0,r.length-m.raw.length)+C.raw,s=s.substring(0,s.length-w.raw.length)+C.raw,i=x.substring(l[l.length-1].raw.length).split(`
40
+ `);continue}}return{type:"blockquote",raw:r,tokens:l,text:s}}}list(t){let n=this.rules.block.list.exec(t);if(n){let i=n[1].trim();const r=i.length>1,s={type:"list",raw:"",ordered:r,start:r?+i.slice(0,-1):"",loose:!1,items:[]};i=r?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=r?i:"[*+-]");const l=new RegExp(`^( {0,3}${i})((?:[ ][^\\n]*)?(?:\\n|$))`);let o=!1;for(;t;){let a=!1,u="",c="";if(!(n=l.exec(t))||this.rules.block.hr.test(t))break;u=n[0],t=t.substring(u.length);let h=n[2].split(`
41
+ `,1)[0].replace(/^\t+/,v=>" ".repeat(3*v.length)),p=t.split(`
42
+ `,1)[0],m=!h.trim(),w=0;if(this.options.pedantic?(w=2,c=h.trimStart()):m?w=n[1].length+1:(w=n[2].search(/[^ ]/),w=w>4?1:w,c=h.slice(w),w+=n[1].length),m&&/^[ \t]*$/.test(p)&&(u+=p+`
43
+ `,t=t.substring(p.length+1),a=!0),!a){const v=new RegExp(`^ {0,${Math.min(3,w-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),$=new RegExp(`^ {0,${Math.min(3,w-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),H=new RegExp(`^ {0,${Math.min(3,w-1)}}(?:\`\`\`|~~~)`),A=new RegExp(`^ {0,${Math.min(3,w-1)}}#`);for(;t;){const z=t.split(`
44
+ `,1)[0];let W;if(p=z,this.options.pedantic?(p=p.replace(/^ {1,4}(?=( {4})*[^ ])/g," "),W=p):W=p.replace(/\t/g," "),H.test(p)||A.test(p)||v.test(p)||$.test(p))break;if(W.search(/[^ ]/)>=w||!p.trim())c+=`
45
+ `+W.slice(w);else{if(m||h.replace(/\t/g," ").search(/[^ ]/)>=4||H.test(h)||A.test(h)||$.test(h))break;c+=`
46
+ `+p}!m&&!p.trim()&&(m=!0),u+=z+`
47
+ `,t=t.substring(z.length+1),h=W.slice(w)}}s.loose||(o?s.loose=!0:/\n[ \t]*\n[ \t]*$/.test(u)&&(o=!0));let x=null,C;this.options.gfm&&(x=/^\[[ xX]\] /.exec(c),x&&(C=x[0]!=="[ ] ",c=c.replace(/^\[[ xX]\] +/,""))),s.items.push({type:"list_item",raw:u,task:!!x,checked:C,loose:!1,text:c,tokens:[]}),s.raw+=u}s.items[s.items.length-1].raw=s.items[s.items.length-1].raw.trimEnd(),s.items[s.items.length-1].text=s.items[s.items.length-1].text.trimEnd(),s.raw=s.raw.trimEnd();for(let a=0;a<s.items.length;a++)if(this.lexer.state.top=!1,s.items[a].tokens=this.lexer.blockTokens(s.items[a].text,[]),!s.loose){const u=s.items[a].tokens.filter(h=>h.type==="space"),c=u.length>0&&u.some(h=>/\n.*\n/.test(h.raw));s.loose=c}if(s.loose)for(let a=0;a<s.items.length;a++)s.items[a].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 i=n[1].toLowerCase().replace(/\s+/g," "),r=n[2]?n[2].replace(/^<(.*)>$/,"$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:i,raw:n[0],href:r,title:s}}}table(t){const n=this.rules.block.table.exec(t);if(!n||!/[:|]/.test(n[2]))return;const i=Zl(n[1]),r=n[2].replace(/^\||\| *$/g,"").split("|"),s=n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(`
48
+ `):[],l={type:"table",raw:n[0],header:[],align:[],rows:[]};if(i.length===r.length){for(const o of r)/^ *-+: *$/.test(o)?l.align.push("right"):/^ *:-+: *$/.test(o)?l.align.push("center"):/^ *:-+ *$/.test(o)?l.align.push("left"):l.align.push(null);for(let o=0;o<i.length;o++)l.header.push({text:i[o],tokens:this.lexer.inline(i[o]),header:!0,align:l.align[o]});for(const o of s)l.rows.push(Zl(o,l.header.length).map((a,u)=>({text:a,tokens:this.lexer.inline(a),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 i=n[1].charAt(n[1].length-1)===`
49
+ `?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:i,tokens:this.lexer.inline(i)}}}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:Ue(n[1])}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&/^<a /i.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.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 i=n[2].trim();if(!this.options.pedantic&&/^</.test(i)){if(!/>$/.test(i))return;const l=Sn(i.slice(0,-1),"\\");if((i.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 r=n[2],s="";if(this.options.pedantic){const l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);l&&(r=l[1],s=l[3])}else s=n[3]?n[3].slice(1,-1):"";return r=r.trim(),/^</.test(r)&&(this.options.pedantic&&!/>$/.test(i)?r=r.slice(1):r=r.slice(1,-1)),Jl(n,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer)}}reflink(t,n){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){const r=(i[2]||i[1]).replace(/\s+/g," "),s=n[r.toLowerCase()];if(!s){const l=i[0].charAt(0);return{type:"text",raw:l,text:l}}return Jl(i,s,i[0],this.lexer)}}emStrong(t,n,i=""){let r=this.rules.inline.emStrongLDelim.exec(t);if(!r||r[3]&&i.match(/[\p{L}\p{N}]/u))return;if(!(r[1]||r[2]||"")||!i||this.rules.inline.punctuation.exec(i)){const l=[...r[0]].length-1;let o,a,u=l,c=0;const h=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,n=n.slice(-1*t.length+l);(r=h.exec(n))!=null;){if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!o)continue;if(a=[...o].length,r[3]||r[4]){u+=a;continue}else if((r[5]||r[6])&&l%3&&!((l+a)%3)){c+=a;continue}if(u-=a,u>0)continue;a=Math.min(a,a+u+c);const p=[...r[0]][0].length,m=t.slice(0,l+r.index+p+a);if(Math.min(l,a)%2){const x=m.slice(1,-1);return{type:"em",raw:m,text:x,tokens:this.lexer.inlineTokens(x)}}const w=m.slice(2,-2);return{type:"strong",raw:m,text:w,tokens:this.lexer.inlineTokens(w)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let i=n[2].replace(/\n/g," ");const r=/[^ ]/.test(i),s=/^ /.test(i)&&/ $/.test(i);return r&&s&&(i=i.substring(1,i.length-1)),i=Ue(i,!0),{type:"codespan",raw:n[0],text:i}}}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 i,r;return n[2]==="@"?(i=Ue(n[1]),r="mailto:"+i):(i=Ue(n[1]),r=i),{type:"link",raw:n[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}}url(t){var i;let n;if(n=this.rules.inline.url.exec(t)){let r,s;if(n[2]==="@")r=Ue(n[0]),s="mailto:"+r;else{let l;do l=n[0],n[0]=((i=this.rules.inline._backpedal.exec(n[0]))==null?void 0:i[0])??"";while(l!==n[0]);r=Ue(n[0]),n[1]==="www."?s="http://"+n[0]:s=n[0]}return{type:"link",raw:n[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(t){const n=this.rules.inline.text.exec(t);if(n){let i;return this.lexer.state.inRawBlock?i=n[0]:i=Ue(n[0]),{type:"text",raw:n[0],text:i}}}}const Qu=/^(?:[ \t]*(?:\n|$))+/,Yu=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Xu=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,En=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ef=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ql=/(?:[*+-]|\d{1,9}[.)])/,Yl=ae(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Ql).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(),Cr=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,tf=/^[^\n]+/,Sr=/(?!\s*\])(?:\\.|[^\[\]\\])+/,nf=ae(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Sr).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),rf=ae(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ql).getRegex(),wi="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",Er=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,sf=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",Er).replace("tag",wi).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Xl=ae(Cr).replace("hr",En).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",wi).getRegex(),Tr={blockquote:ae(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Xl).getRegex(),code:Yu,def:nf,fences:Xu,heading:ef,hr:En,html:sf,lheading:Yl,list:rf,newline:Qu,paragraph:Xl,table:Cn,text:tf},eo=ae("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",En).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",wi).getRegex(),lf={...Tr,table:eo,paragraph:ae(Cr).replace("hr",En).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",eo).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",wi).getRegex()},of={...Tr,html:ae(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Er).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(Cr).replace("hr",En).replace("heading",` *#{1,6} *[^
50
+ ]`).replace("lheading",Yl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},to=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,af=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,no=/^( {2,}|\\)\n(?!\s*$)/,cf=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Tn="\\p{P}\\p{S}",uf=ae(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Tn).getRegex(),ff=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,hf=ae(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Tn).getRegex(),df=ae("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Tn).getRegex(),pf=ae("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Tn).getRegex(),gf=ae(/\\([punct])/,"gu").replace(/punct/g,Tn).getRegex(),mf=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(),vf=ae(Er).replace("(?:-->|$)","-->").getRegex(),bf=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",vf).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ki=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,yf=ae(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",ki).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),io=ae(/^!?\[(label)\]\[(ref)\]/).replace("label",ki).replace("ref",Sr).getRegex(),ro=ae(/^!?\[(ref)\](?:\[\])?/).replace("ref",Sr).getRegex(),wf=ae("reflink|nolink(?!\\()","g").replace("reflink",io).replace("nolink",ro).getRegex(),Ar={_backpedal:Cn,anyPunctuation:gf,autolink:mf,blockSkip:ff,br:no,code:af,del:Cn,emStrongLDelim:hf,emStrongRDelimAst:df,emStrongRDelimUnd:pf,escape:to,link:yf,nolink:ro,punctuation:uf,reflink:io,reflinkSearch:wf,tag:bf,text:cf,url:Cn},kf={...Ar,link:ae(/^!?\[(label)\]\((.*?)\)/).replace("label",ki).getRegex(),reflink:ae(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ki).getRegex()},Rr={...Ar,escape:ae(to).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\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.!#$%&'*+\/=?_`{\|}~-]+@)))/},xf={...Rr,br:ae(no).replace("{2,}","*").getRegex(),text:ae(Rr.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},xi={normal:Tr,gfm:lf,pedantic:of},An={normal:Ar,gfm:Rr,breaks:xf,pedantic:kf};class Qe{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 yi,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={block:xi.normal,inline:An.normal};this.options.pedantic?(n.block=xi.pedantic,n.inline=An.pedantic):this.options.gfm&&(n.block=xi.gfm,this.options.breaks?n.inline=An.breaks:n.inline=An.gfm),this.tokenizer.rules=n}static get rules(){return{block:xi,inline:An}}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(/\r\n|\r/g,`
51
+ `),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){const i=this.inlineQueue[n];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],i=!1){this.options.pedantic&&(t=t.replace(/\t/g," ").replace(/^ +$/gm,""));let r,s,l;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(o=>(r=o.call({lexer:this},t,n))?(t=t.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.space(t)){t=t.substring(r.raw.length),r.raw.length===1&&n.length>0?n[n.length-1].raw+=`
52
+ `:n.push(r);continue}if(r=this.tokenizer.code(t)){t=t.substring(r.raw.length),s=n[n.length-1],s&&(s.type==="paragraph"||s.type==="text")?(s.raw+=`
53
+ `+r.raw,s.text+=`
54
+ `+r.text,this.inlineQueue[this.inlineQueue.length-1].src=s.text):n.push(r);continue}if(r=this.tokenizer.fences(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.heading(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.hr(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.blockquote(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.list(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.html(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.def(t)){t=t.substring(r.raw.length),s=n[n.length-1],s&&(s.type==="paragraph"||s.type==="text")?(s.raw+=`
55
+ `+r.raw,s.text+=`
56
+ `+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=s.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});continue}if(r=this.tokenizer.table(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.lheading(t)){t=t.substring(r.raw.length),n.push(r);continue}if(l=t,this.options.extensions&&this.options.extensions.startBlock){let o=1/0;const a=t.slice(1);let u;this.options.extensions.startBlock.forEach(c=>{u=c.call({lexer:this},a),typeof u=="number"&&u>=0&&(o=Math.min(o,u))}),o<1/0&&o>=0&&(l=t.substring(0,o+1))}if(this.state.top&&(r=this.tokenizer.paragraph(l))){s=n[n.length-1],i&&(s==null?void 0:s.type)==="paragraph"?(s.raw+=`
57
+ `+r.raw,s.text+=`
58
+ `+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=s.text):n.push(r),i=l.length!==t.length,t=t.substring(r.raw.length);continue}if(r=this.tokenizer.text(t)){t=t.substring(r.raw.length),s=n[n.length-1],s&&s.type==="text"?(s.raw+=`
59
+ `+r.raw,s.text+=`
60
+ `+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=s.text):n.push(r);continue}if(t){const o="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw new Error(o)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let i,r,s,l=t,o,a,u;if(this.tokens.links){const c=Object.keys(this.tokens.links);if(c.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(l))!=null;)c.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.blockSkip.exec(l))!=null;)l=l.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(l))!=null;)l=l.slice(0,o.index)+"++"+l.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(a||(u=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(c=>(i=c.call({lexer:this},t,n))?(t=t.substring(i.raw.length),n.push(i),!0):!1))){if(i=this.tokenizer.escape(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.tag(t)){t=t.substring(i.raw.length),r=n[n.length-1],r&&i.type==="text"&&r.type==="text"?(r.raw+=i.raw,r.text+=i.text):n.push(i);continue}if(i=this.tokenizer.link(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(i.raw.length),r=n[n.length-1],r&&i.type==="text"&&r.type==="text"?(r.raw+=i.raw,r.text+=i.text):n.push(i);continue}if(i=this.tokenizer.emStrong(t,l,u)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.codespan(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.br(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.del(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.autolink(t)){t=t.substring(i.raw.length),n.push(i);continue}if(!this.state.inLink&&(i=this.tokenizer.url(t))){t=t.substring(i.raw.length),n.push(i);continue}if(s=t,this.options.extensions&&this.options.extensions.startInline){let c=1/0;const h=t.slice(1);let p;this.options.extensions.startInline.forEach(m=>{p=m.call({lexer:this},h),typeof p=="number"&&p>=0&&(c=Math.min(c,p))}),c<1/0&&c>=0&&(s=t.substring(0,c+1))}if(i=this.tokenizer.inlineText(s)){t=t.substring(i.raw.length),i.raw.slice(-1)!=="_"&&(u=i.raw.slice(-1)),a=!0,r=n[n.length-1],r&&r.type==="text"?(r.raw+=i.raw,r.text+=i.text):n.push(i);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 n}}class _i{options;parser;constructor(t){this.options=t||Ot}space(t){return""}code({text:t,lang:n,escaped:i}){var l;const r=(l=(n||"").match(/^\S*/))==null?void 0:l[0],s=t.replace(/\n$/,"")+`
61
+ `;return r?'<pre><code class="language-'+Ue(r)+'">'+(i?s:Ue(s,!0))+`</code></pre>
62
+ `:"<pre><code>"+(i?s:Ue(s,!0))+`</code></pre>
63
+ `}blockquote({tokens:t}){return`<blockquote>
64
+ ${this.parser.parse(t)}</blockquote>
65
+ `}html({text:t}){return t}heading({tokens:t,depth:n}){return`<h${n}>${this.parser.parseInline(t)}</h${n}>
66
+ `}hr(t){return`<hr>
67
+ `}list(t){const n=t.ordered,i=t.start;let r="";for(let o=0;o<t.items.length;o++){const a=t.items[o];r+=this.listitem(a)}const s=n?"ol":"ul",l=n&&i!==1?' start="'+i+'"':"";return"<"+s+l+`>
68
+ `+r+"</"+s+`>
69
+ `}listitem(t){let n="";if(t.task){const i=this.checkbox({checked:!!t.checked});t.loose?t.tokens.length>0&&t.tokens[0].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+" "+t.tokens[0].tokens[0].text)):t.tokens.unshift({type:"text",raw:i+" ",text:i+" "}):n+=i+" "}return n+=this.parser.parse(t.tokens,!!t.loose),`<li>${n}</li>
70
+ `}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
71
+ `}table(t){let n="",i="";for(let s=0;s<t.header.length;s++)i+=this.tablecell(t.header[s]);n+=this.tablerow({text:i});let r="";for(let s=0;s<t.rows.length;s++){const l=t.rows[s];i="";for(let o=0;o<l.length;o++)i+=this.tablecell(l[o]);r+=this.tablerow({text:i})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
62
72
  <thead>
63
- `+t+`</thead>
64
- `+i+`</table>
65
- `}tablerow(t){return`<tr>
73
+ `+n+`</thead>
74
+ `+r+`</table>
75
+ `}tablerow({text:t}){return`<tr>
66
76
  ${t}</tr>
67
- `}tablecell(t,i){const n=i.header?"th":"td";return(i.align?`<${n} align="${i.align}">`:`<${n}>`)+t+`</${n}>
68
- `}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return"<br>"}del(t){return`<del>${t}</del>`}link(t,i,n){const r=Us(t);if(r===null)return n;t=r;let o='<a href="'+t+'"';return i&&(o+=' title="'+i+'"'),o+=">"+n+"</a>",o}image(t,i,n){const r=Us(t);if(r===null)return n;t=r;let o=`<img src="${t}" alt="${n}"`;return i&&(o+=` title="${i}"`),o+=">",o}text(t){return t}}class br{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,i,n){return""+n}image(t,i,n){return""+n}br(){return""}}class ot{options;renderer;textRenderer;constructor(t){this.options=t||Tt,this.options.renderer=this.options.renderer||new gi,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new br}static parse(t,i){return new ot(i).parse(t)}static parseInline(t,i){return new ot(i).parseInline(t)}parse(t,i=!0){let n="";for(let r=0;r<t.length;r++){const o=t[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[o.type]){const s=o,l=this.options.extensions.renderers[s.type].call({parser:this},s);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(s.type)){n+=l||"";continue}}switch(o.type){case"space":continue;case"hr":{n+=this.renderer.hr();continue}case"heading":{const s=o;n+=this.renderer.heading(this.parseInline(s.tokens),s.depth,Ou(this.parseInline(s.tokens,this.textRenderer)));continue}case"code":{const s=o;n+=this.renderer.code(s.text,s.lang,!!s.escaped);continue}case"table":{const s=o;let l="",a="";for(let f=0;f<s.header.length;f++)a+=this.renderer.tablecell(this.parseInline(s.header[f].tokens),{header:!0,align:s.align[f]});l+=this.renderer.tablerow(a);let c="";for(let f=0;f<s.rows.length;f++){const h=s.rows[f];a="";for(let p=0;p<h.length;p++)a+=this.renderer.tablecell(this.parseInline(h[p].tokens),{header:!1,align:s.align[p]});c+=this.renderer.tablerow(a)}n+=this.renderer.table(l,c);continue}case"blockquote":{const s=o,l=this.parse(s.tokens);n+=this.renderer.blockquote(l);continue}case"list":{const s=o,l=s.ordered,a=s.start,c=s.loose;let f="";for(let h=0;h<s.items.length;h++){const p=s.items[h],g=p.checked,R=p.task;let x="";if(p.task){const T=this.renderer.checkbox(!!g);c?p.tokens.length>0&&p.tokens[0].type==="paragraph"?(p.tokens[0].text=T+" "+p.tokens[0].text,p.tokens[0].tokens&&p.tokens[0].tokens.length>0&&p.tokens[0].tokens[0].type==="text"&&(p.tokens[0].tokens[0].text=T+" "+p.tokens[0].tokens[0].text)):p.tokens.unshift({type:"text",text:T+" "}):x+=T+" "}x+=this.parse(p.tokens,c),f+=this.renderer.listitem(x,R,!!g)}n+=this.renderer.list(f,l,a);continue}case"html":{const s=o;n+=this.renderer.html(s.text,s.block);continue}case"paragraph":{const s=o;n+=this.renderer.paragraph(this.parseInline(s.tokens));continue}case"text":{let s=o,l=s.tokens?this.parseInline(s.tokens):s.text;for(;r+1<t.length&&t[r+1].type==="text";)s=t[++r],l+=`
69
- `+(s.tokens?this.parseInline(s.tokens):s.text);n+=i?this.renderer.paragraph(l):l;continue}default:{const s='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return n}parseInline(t,i){i=i||this.renderer;let n="";for(let r=0;r<t.length;r++){const o=t[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[o.type]){const s=this.options.extensions.renderers[o.type].call({parser:this},o);if(s!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){n+=s||"";continue}}switch(o.type){case"escape":{const s=o;n+=i.text(s.text);break}case"html":{const s=o;n+=i.html(s.text);break}case"link":{const s=o;n+=i.link(s.href,s.title,this.parseInline(s.tokens,i));break}case"image":{const s=o;n+=i.image(s.href,s.title,s.text);break}case"strong":{const s=o;n+=i.strong(this.parseInline(s.tokens,i));break}case"em":{const s=o;n+=i.em(this.parseInline(s.tokens,i));break}case"codespan":{const s=o;n+=i.codespan(s.text);break}case"br":{n+=i.br();break}case"del":{const s=o;n+=i.del(this.parseInline(s.tokens,i));break}case"text":{const s=o;n+=i.text(s.text);break}default:{const s='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return n}}class wn{options;constructor(t){this.options=t||Tt}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}}Ne(wn,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class Zs{constructor(...t){xr(this,xn);xr(this,yi);Ne(this,"defaults",hr());Ne(this,"options",this.setOptions);Ne(this,"parse",_i(this,xn,Cr).call(this,rt.lex,ot.parse));Ne(this,"parseInline",_i(this,xn,Cr).call(this,rt.lexInline,ot.parseInline));Ne(this,"Parser",ot);Ne(this,"Renderer",gi);Ne(this,"TextRenderer",br);Ne(this,"Lexer",rt);Ne(this,"Tokenizer",fi);Ne(this,"Hooks",wn);this.use(...t)}walkTokens(t,i){var r,o;let n=[];for(const s of t)switch(n=n.concat(i.call(this,s)),s.type){case"table":{const l=s;for(const a of l.header)n=n.concat(this.walkTokens(a.tokens,i));for(const a of l.rows)for(const c of a)n=n.concat(this.walkTokens(c.tokens,i));break}case"list":{const l=s;n=n.concat(this.walkTokens(l.items,i));break}default:{const l=s;(o=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&o[l.type]?this.defaults.extensions.childTokens[l.type].forEach(a=>{const c=l[a].flat(1/0);n=n.concat(this.walkTokens(c,i))}):l.tokens&&(n=n.concat(this.walkTokens(l.tokens,i)))}}return n}use(...t){const i=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{const r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){const s=i.renderers[o.name];s?i.renderers[o.name]=function(...l){let a=o.renderer.apply(this,l);return a===!1&&(a=s.apply(this,l)),a}:i.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const s=i[o.level];s?s.unshift(o.tokenizer):i[o.level]=[o.tokenizer],o.start&&(o.level==="block"?i.startBlock?i.startBlock.push(o.start):i.startBlock=[o.start]:o.level==="inline"&&(i.startInline?i.startInline.push(o.start):i.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(i.childTokens[o.name]=o.childTokens)}),r.extensions=i),n.renderer){const o=this.defaults.renderer||new gi(this.defaults);for(const s in n.renderer){if(!(s in o))throw new Error(`renderer '${s}' does not exist`);if(s==="options")continue;const l=s,a=n.renderer[l],c=o[l];o[l]=(...f)=>{let h=a.apply(o,f);return h===!1&&(h=c.apply(o,f)),h||""}}r.renderer=o}if(n.tokenizer){const o=this.defaults.tokenizer||new fi(this.defaults);for(const s in n.tokenizer){if(!(s in o))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;const l=s,a=n.tokenizer[l],c=o[l];o[l]=(...f)=>{let h=a.apply(o,f);return h===!1&&(h=c.apply(o,f)),h}}r.tokenizer=o}if(n.hooks){const o=this.defaults.hooks||new wn;for(const s in n.hooks){if(!(s in o))throw new Error(`hook '${s}' does not exist`);if(s==="options")continue;const l=s,a=n.hooks[l],c=o[l];wn.passThroughHooks.has(s)?o[l]=f=>{if(this.defaults.async)return Promise.resolve(a.call(o,f)).then(p=>c.call(o,p));const h=a.call(o,f);return c.call(o,h)}:o[l]=(...f)=>{let h=a.apply(o,f);return h===!1&&(h=c.apply(o,f)),h}}r.hooks=o}if(n.walkTokens){const o=this.defaults.walkTokens,s=n.walkTokens;r.walkTokens=function(l){let a=[];return a.push(s.call(this,l)),o&&(a=a.concat(o.call(this,l))),a}}this.defaults={...this.defaults,...r}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,i){return rt.lex(t,i??this.defaults)}parser(t,i){return ot.parse(t,i??this.defaults)}}xn=new WeakSet,Cr=function(t,i){return(n,r)=>{const o={...r},s={...this.defaults,...o};this.defaults.async===!0&&o.async===!1&&(s.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),s.async=!0);const l=_i(this,yi,yl).call(this,!!s.silent,!!s.async);if(typeof n>"u"||n===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(s.hooks&&(s.hooks.options=s),s.async)return Promise.resolve(s.hooks?s.hooks.preprocess(n):n).then(a=>t(a,s)).then(a=>s.hooks?s.hooks.processAllTokens(a):a).then(a=>s.walkTokens?Promise.all(this.walkTokens(a,s.walkTokens)).then(()=>a):a).then(a=>i(a,s)).then(a=>s.hooks?s.hooks.postprocess(a):a).catch(l);try{s.hooks&&(n=s.hooks.preprocess(n));let a=t(n,s);s.hooks&&(a=s.hooks.processAllTokens(a)),s.walkTokens&&this.walkTokens(a,s.walkTokens);let c=i(a,s);return s.hooks&&(c=s.hooks.postprocess(c)),c}catch(a){return l(a)}}},yi=new WeakSet,yl=function(t,i){return n=>{if(n.message+=`
70
- Please report this to https://github.com/markedjs/marked.`,t){const r="<p>An error occurred:</p><pre>"+Oe(n.message+"",!0)+"</pre>";return i?Promise.resolve(r):r}if(i)return Promise.reject(n);throw n}};const Lt=new Zs;function de(e,t){return Lt.parse(e,t)}de.options=de.setOptions=function(e){return Lt.setOptions(e),de.defaults=Lt.defaults,Os(de.defaults),de},de.getDefaults=hr,de.defaults=Tt,de.use=function(...e){return Lt.use(...e),de.defaults=Lt.defaults,Os(de.defaults),de},de.walkTokens=function(e,t){return Lt.walkTokens(e,t)},de.parseInline=Lt.parseInline,de.Parser=ot,de.parser=ot.parse,de.Renderer=gi,de.TextRenderer=br,de.Lexer=rt,de.lexer=rt.lex,de.Tokenizer=fi,de.Hooks=wn,de.parse=de;function uf(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-"),{async:!!e.async,walkTokens(t){if(t.type!=="code")return;const i=Qs(t.lang);if(e.async)return Promise.resolve(e.highlight(t.text,i,t.lang||"")).then(Js(t));const n=e.highlight(t.text,i,t.lang||"");if(n 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.");Js(t)(n)},renderer:{code(t,i,n){const r=Qs(i),o=r?` class="${e.langPrefix}${tl(r)}"`:"";return t=t.replace(/\n$/,""),`<pre><code${o}>${n?t:tl(t,!0)}
71
- </code></pre>`}}}}function Qs(e){return(e||"").match(/\S*/)[0]}function Js(e){return t=>{typeof t=="string"&&t!==e.text&&(e.escaped=!0,e.text=t)}}const Ys=/[&<>"']/,ff=new RegExp(Ys.source,"g"),Xs=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,df=new RegExp(Xs.source,"g"),hf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},el=e=>hf[e];function tl(e,t){if(t){if(Ys.test(e))return e.replace(ff,el)}else if(Xs.test(e))return e.replace(df,el);return e}const pf=/\$.*?\$/,gf=/^\$(.*?)\$/,mf=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,vf=e=>[{name:"blockMath",level:"block",tokenizer(t){const i=mf.exec(t);if(i!==null)return{type:"html",raw:i[0],text:e(!0,i[1])}}},{name:"inlineMath",level:"inline",start(t){const i=t.search(pf);return i!==-1?i:t.length},tokenizer(t){const i=gf.exec(t);if(i!==null)return{type:"html",raw:i[0],text:e(!1,i[1])}}}],nl=(e="",t={})=>e.replace(/:(.+?):/g,(i,n)=>t[n]?`<img class="wl-emoji" src="${t[n]}" alt="${n}">`:i),wf=(e,{emojiMap:t,highlighter:i,texRenderer:n})=>{const r=new Zs;if(r.setOptions({breaks:!0}),i&&r.use(uf({highlight:i})),n){const o=vf(n);r.use({extensions:o})}return r.parse(nl(e,t))},_r=e=>{const{path:t}=e.dataset;return t!=null&&t.length?t:null},yf=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),bf=e=>e.match(/[\u4E00-\u9FD5]/gu),_f=e=>{var t,i;return(((t=yf(e))==null?void 0:t.reduce((n,r)=>n+(["",",","."].includes(r.trim())?0:r.trim().split(/\s+/u).length),0))??0)+(((i=bf(e))==null?void 0:i.length)??0)},kf=async()=>{if(!navigator)return"";const{userAgentData:e}=navigator;let t=navigator.userAgent;if(!e||e.platform!=="Windows")return t;const{platformVersion:i}=await e.getHighEntropyValues(["platformVersion"]);return i&&parseInt(i.split(".")[0])>=13&&(t=t.replace("Windows NT 10.0","Windows NT 11.0")),t},il=({serverURL:e,path:t=window.location.pathname,selector:i=".waline-comment-count",lang:n=navigator.language})=>{const r=new AbortController,o=document.querySelectorAll(i);return o.length&&Rr({serverURL:Rn(e),paths:Array.from(o).map(s=>qr(_r(s)??t)),lang:n,signal:r.signal}).then(s=>{o.forEach((l,a)=>{l.innerText=s[a].toString()})}).catch(Ms),r.abort.bind(r)},xf=({size:e})=>X("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[X("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"}),X("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"})]),Cf=()=>X("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},X("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"})),Ef=()=>X("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},X("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"})),If=()=>X("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[X("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"}),X("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"})]),Sf=({active:e=!1})=>X("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[X("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"})]),Rf=()=>X("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[X("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"}),X("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"})]),Tf=()=>X("svg",{width:"16",height:"16",ariaHidden:"true"},X("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"})),Lf=()=>X("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},X("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"})),Af=()=>X("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},X("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"})),Mf=()=>X("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},X("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"})),mi=({size:e=100})=>X("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},X("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},X("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),$f=()=>X("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[X("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"}),X("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"})]),Of=()=>Ht("WALINE_USER_META",{nick:"",mail:"",link:""}),jf=()=>Ht("WALINE_COMMENT_BOX_EDITOR",""),zf="WALINE_LIKE";let rl=null;const ol=()=>rl??(rl=Ht(zf,[])),Pf="WALINE_REACTION";let sl=null;const Uf=()=>sl??(sl=Ht(Pf,{}));var vi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ll={},Dt={},yn={},Ff=vi&&vi.__awaiter||function(e,t,i,n){function r(o){return o instanceof i?o:new i(function(s){s(o)})}return new(i||(i=Promise))(function(o,s){function l(f){try{c(n.next(f))}catch(h){s(h)}}function a(f){try{c(n.throw(f))}catch(h){s(h)}}function c(f){f.done?o(f.value):r(f.value).then(l,a)}c((n=n.apply(e,t||[])).next())})},Nf=vi&&vi.__generator||function(e,t){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,r,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(c){return function(f){return a([c,f])}}function a(c){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=c[0]&2?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(o=i.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){i=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(c[0]===6&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(f){c=[6,f],r=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}};Object.defineProperty(yn,"__esModule",{value:!0}),yn.ReCaptchaInstance=void 0;var Hf=function(){function e(t,i,n){this.siteKey=t,this.recaptchaID=i,this.recaptcha=n,this.styleContainer=null}return e.prototype.execute=function(t){return Ff(this,void 0,void 0,function(){return Nf(this,function(i){return[2,this.recaptcha.enterprise?this.recaptcha.enterprise.execute(this.recaptchaID,{action:t}):this.recaptcha.execute(this.recaptchaID,{action:t})]})})},e.prototype.getSiteKey=function(){return this.siteKey},e.prototype.hideBadge=function(){this.styleContainer===null&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},e.prototype.showBadge=function(){this.styleContainer!==null&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},e}();yn.ReCaptchaInstance=Hf,Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.getInstance=Dt.load=void 0;var Df=yn,gt;(function(e){e[e.NOT_LOADED=0]="NOT_LOADED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"})(gt||(gt={}));var al=function(){function e(){}return e.load=function(t,i){if(i===void 0&&(i={}),typeof document>"u")return Promise.reject(new Error("This is a library for the browser!"));if(e.getLoadingState()===gt.LOADED)return e.instance.getSiteKey()===t?Promise.resolve(e.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(e.getLoadingState()===gt.LOADING)return t!==e.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(r,o){e.successfulLoadingConsumers.push(function(s){return r(s)}),e.errorLoadingRunnable.push(function(s){return o(s)})});e.instanceSiteKey=t,e.setLoadingState(gt.LOADING);var n=new e;return new Promise(function(r,o){n.loadScript(t,i.useRecaptchaNet||!1,i.useEnterprise||!1,i.renderParameters?i.renderParameters:{},i.customUrl).then(function(){e.setLoadingState(gt.LOADED);var s=n.doExplicitRender(grecaptcha,t,i.explicitRenderParameters?i.explicitRenderParameters:{},i.useEnterprise||!1),l=new Df.ReCaptchaInstance(t,s,grecaptcha);e.successfulLoadingConsumers.forEach(function(a){return a(l)}),e.successfulLoadingConsumers=[],i.autoHideBadge&&l.hideBadge(),e.instance=l,r(l)}).catch(function(s){e.errorLoadingRunnable.forEach(function(l){return l(s)}),e.errorLoadingRunnable=[],o(s)})})},e.getInstance=function(){return e.instance},e.setLoadingState=function(t){e.loadingState=t},e.getLoadingState=function(){return e.loadingState===null?gt.NOT_LOADED:e.loadingState},e.prototype.loadScript=function(t,i,n,r,o){var s=this;i===void 0&&(i=!1),n===void 0&&(n=!1),r===void 0&&(r={}),o===void 0&&(o="");var l=document.createElement("script");l.setAttribute("recaptcha-v3-script","");var a="https://www.google.com/recaptcha/api.js";i&&(n?a="https://recaptcha.net/recaptcha/enterprise.js":a="https://recaptcha.net/recaptcha/api.js"),n&&(a="https://www.google.com/recaptcha/enterprise.js"),o&&(a=o),r.render&&(r.render=void 0);var c=this.buildQueryString(r);return l.src=a+"?render=explicit"+c,new Promise(function(f,h){l.addEventListener("load",s.waitForScriptToLoad(function(){f(l)},n),!1),l.onerror=function(p){e.setLoadingState(gt.NOT_LOADED),h(p)},document.head.appendChild(l)})},e.prototype.buildQueryString=function(t){var i=Object.keys(t);return i.length<1?"":"&"+Object.keys(t).filter(function(n){return!!t[n]}).map(function(n){return n+"="+t[n]}).join("&")},e.prototype.waitForScriptToLoad=function(t,i){var n=this;return function(){window.grecaptcha===void 0?setTimeout(function(){n.waitForScriptToLoad(t,i)},e.SCRIPT_LOAD_DELAY):i?window.grecaptcha.enterprise.ready(function(){t()}):window.grecaptcha.ready(function(){t()})}},e.prototype.doExplicitRender=function(t,i,n,r){var o={sitekey:i,badge:n.badge,size:n.size,tabindex:n.tabindex};return n.container?r?t.enterprise.render(n.container,o):t.render(n.container,o):r?t.enterprise.render(o):t.render(o)},e.loadingState=null,e.instance=null,e.instanceSiteKey=null,e.successfulLoadingConsumers=[],e.errorLoadingRunnable=[],e.SCRIPT_LOAD_DELAY=25,e}();Dt.load=al.load,Dt.getInstance=al.getInstance,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=Dt;Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var i=yn;Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return i.ReCaptchaInstance}})}(ll);const cl={},Vf=e=>{const t=cl[e]??(cl[e]=ll.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:i=>t.then(n=>n.execute(i))}},Bf=e=>({execute:async t=>{const{load:i}=xu("https://challenges.cloudflare.com/turnstile/v0/api.js",void 0,{async:!1});await i();const n=window==null?void 0:window.turnstile;return new Promise(r=>{n==null||n.ready(()=>{n==null||n.render(".wl-captcha-container",{sitekey:e,action:t,size:"compact",callback:r})})})}}),Wf="WALINE_USER";let ul=null;const wi=()=>ul??(ul=Ht(Wf,{}));var qf=rn({__name:"ArticleReaction",setup(e,{expose:t}){t();const i=Uf(),n=Zn("config"),r=V(-1),o=V([]),s=_e(()=>n.value.locale),l=_e(()=>n.value.reaction.length>0),a=_e(()=>{const{reaction:g,path:R}=n.value;return g.map((x,T)=>({icon:x,desc:s.value[`reaction${T}`],active:i.value[R]===T}))});let c;const f=async()=>{if(!l.value)return;const{serverURL:g,lang:R,path:x,reaction:T}=n.value,$=new AbortController;c=$.abort.bind($);const P=await ki({serverURL:g,lang:R,paths:[x],type:T.map((A,N)=>`reaction${N}`),signal:$.signal});o.value=T.map((A,N)=>P[0][`reaction${N}`])},h=async g=>{if(r.value===-1){const{serverURL:R,lang:x,path:T}=n.value,$=i.value[T];r.value=g,$!==void 0&&(await In({serverURL:R,lang:x,path:T,type:`reaction${$}`,action:"desc"}),o.value[$]=Math.max(o.value[$]-1,0)),$!==g&&(await In({serverURL:R,lang:x,path:T,type:`reaction${g}`}),o.value[g]=(o.value[g]||0)+1),$===g?delete i.value[T]:i.value[T]=g,r.value=-1}};on(()=>{Pe(()=>[n.value.serverURL,n.value.path],()=>{f()},{immediate:!0})}),Qi(()=>c==null?void 0:c());const p={reactionStorage:i,config:n,votingIndex:r,voteNumbers:o,locale:s,isReactionEnabled:l,reactionsInfo:a,get abort(){return c},set abort(g){c=g},fetchReaction:f,vote:h,get LoadingIcon(){return mi}};return Object.defineProperty(p,"__isScriptSetup",{enumerable:!1,value:!0}),p}}),bn=(e,t)=>{const i=e.__vccOpts||e;for(const[n,r]of t)i[n]=r;return i};const Kf={key:0,class:"wl-reaction"},Gf=["textContent"],Zf={class:"wl-reaction-list"},Qf=["onClick"],Jf={class:"wl-reaction-img"},Yf=["src","alt"],Xf=["textContent"],ed=["textContent"];function td(e,t,i,n,r,o){return n.reactionsInfo.length?(I(),L("div",Kf,[M("div",{class:"wl-reaction-title",textContent:J(n.locale.reactionTitle)},null,8,Gf),M("ul",Zf,[(I(!0),L(se,null,Ue(n.reactionsInfo,({active:s,icon:l,desc:a},c)=>(I(),L("li",{key:c,class:pe(["wl-reaction-item",{active:s}]),onClick:f=>n.vote(c)},[M("div",Jf,[M("img",{src:l,alt:a},null,8,Yf),n.votingIndex===c?(I(),et(n.LoadingIcon,{key:0,class:"wl-reaction-loading"})):(I(),L("div",{key:1,class:"wl-reaction-votes",textContent:J(n.voteNumbers[c]||0)},null,8,Xf))]),M("div",{class:"wl-reaction-text",textContent:J(a)},null,8,ed)],10,Qf))),128))])])):Q("v-if",!0)}var nd=bn(qf,[["render",td],["__file","ArticleReaction.vue"]]),_n=new Map;function id(e){var t=_n.get(e);t&&t.destroy()}function rd(e){var t=_n.get(e);t&&t.update()}var kn=null;typeof window>"u"?((kn=function(e){return e}).destroy=function(e){return e},kn.update=function(e){return e}):((kn=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(i){return function(n){if(n&&n.nodeName&&n.nodeName==="TEXTAREA"&&!_n.has(n)){var r,o=null,s=window.getComputedStyle(n),l=(r=n.value,function(){c({testForHeightReduction:r===""||!n.value.startsWith(r),restoreTextAlign:null}),r=n.value}),a=(function(h){n.removeEventListener("autosize:destroy",a),n.removeEventListener("autosize:update",f),n.removeEventListener("input",l),window.removeEventListener("resize",f),Object.keys(h).forEach(function(p){return n.style[p]=h[p]}),_n.delete(n)}).bind(n,{height:n.style.height,resize:n.style.resize,textAlign:n.style.textAlign,overflowY:n.style.overflowY,overflowX:n.style.overflowX,wordWrap:n.style.wordWrap});n.addEventListener("autosize:destroy",a),n.addEventListener("autosize:update",f),n.addEventListener("input",l),window.addEventListener("resize",f),n.style.overflowX="hidden",n.style.wordWrap="break-word",_n.set(n,{destroy:a,update:f}),f()}function c(h){var p,g,R=h.restoreTextAlign,x=R===void 0?null:R,T=h.testForHeightReduction,$=T===void 0||T,P=s.overflowY;if(n.scrollHeight!==0&&(s.resize==="vertical"?n.style.resize="none":s.resize==="both"&&(n.style.resize="horizontal"),$&&(p=function(N){for(var te=[];N&&N.parentNode&&N.parentNode instanceof Element;)N.parentNode.scrollTop&&te.push([N.parentNode,N.parentNode.scrollTop]),N=N.parentNode;return function(){return te.forEach(function(H){var D=H[0],B=H[1];D.style.scrollBehavior="auto",D.scrollTop=B,D.style.scrollBehavior=null})}}(n),n.style.height=""),g=s.boxSizing==="content-box"?n.scrollHeight-(parseFloat(s.paddingTop)+parseFloat(s.paddingBottom)):n.scrollHeight+parseFloat(s.borderTopWidth)+parseFloat(s.borderBottomWidth),s.maxHeight!=="none"&&g>parseFloat(s.maxHeight)?(s.overflowY==="hidden"&&(n.style.overflow="scroll"),g=parseFloat(s.maxHeight)):s.overflowY!=="hidden"&&(n.style.overflow="hidden"),n.style.height=g+"px",x&&(n.style.textAlign=x),p&&p(),o!==g&&(n.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),o=g),P!==s.overflow&&!x)){var A=s.textAlign;s.overflow==="hidden"&&(n.style.textAlign=A==="start"?"end":"start"),c({restoreTextAlign:A,testForHeightReduction:!0})}}function f(){c({testForHeightReduction:!0,restoreTextAlign:null})}}(i)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],id),e},kn.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],rd),e});var fl=kn,od=rn({__name:"ImageWall",props:{items:{default:()=>[]},columnWidth:{default:300},gap:{default:0}},emits:["insert"],setup(e,{expose:t}){const i=e;t();let n=null;const r=V(null),o=V({}),s=V([]),l=()=>{const g=Math.floor((r.value.getBoundingClientRect().width+i.gap)/(i.columnWidth+i.gap));return g>0?g:1},a=g=>new Array(g).fill(null).map(()=>[]),c=async g=>{var R;if(g>=i.items.length)return;await Ut();const x=Array.from(((R=r.value)==null?void 0:R.children)??[]).reduce((T,$)=>$.getBoundingClientRect().height<T.getBoundingClientRect().height?$:T);s.value[Number(x.dataset.index)].push(g),await c(g+1)},f=async(g=!1)=>{if(s.value.length===l()&&!g)return;s.value=a(l());const R=window.scrollY;await c(0),window.scrollTo({top:R})},h=g=>{o.value[g.target.src]=!0};on(()=>{f(!0),n=new ResizeObserver(()=>{f()}),n.observe(r.value),Pe(()=>[i.items],()=>{o.value={},f(!0)}),Pe(()=>[i.columnWidth,i.gap],()=>{f()})}),Ka(()=>n.unobserve(r.value));const p={props:i,get resizeObserver(){return n},set resizeObserver(g){n=g},wall:r,state:o,columns:s,getColumnCount:l,createColumns:a,fillColumns:c,redraw:f,imageLoad:h,get LoadingIcon(){return mi}};return Object.defineProperty(p,"__isScriptSetup",{enumerable:!1,value:!0}),p}});const sd=["data-index"],ld=["src","title","onClick"];function ad(e,t,i,n,r,o){return I(),L("div",{ref:"wall",class:"wl-gallery",style:Zt({gap:`${i.gap}px`})},[(I(!0),L(se,null,Ue(n.columns,(s,l)=>(I(),L("div",{key:l,class:"wl-gallery-column","data-index":l,style:Zt({gap:`${i.gap}px`})},[(I(!0),L(se,null,Ue(s,a=>(I(),L(se,{key:a},[n.state[i.items[a].src]?Q("v-if",!0):(I(),et(n.LoadingIcon,{key:0,size:36,style:{margin:"20px auto"}})),M("img",{class:"wl-gallery-item",src:i.items[a].src,title:i.items[a].title,loading:"lazy",onLoad:n.imageLoad,onClick:c=>e.$emit("insert",`![](${i.items[a].src})`)},null,40,ld)],64))),128))],12,sd))),128))],4)}var cd=bn(od,[["render",ad],["__file","ImageWall.vue"]]),ud=rn({__name:"CommentBox",props:{edit:{default:null},rootId:{default:""},replyId:{default:""},replyUser:{default:""}},emits:["log","cancelEdit","cancelReply","submit"],setup(e,{expose:t,emit:i}){t();const n=e,r=i,o=Zn("config"),s=jf(),l=Of(),a=wi(),c=V({}),f=V(null),h=V(null),p=V(null),g=V(null),R=V(null),x=V(null),T=V(null),$=V({tabs:[],map:{}}),P=V(0),A=V(!1),N=V(!1),te=V(!1),H=V(""),D=V(0),B=Qt({loading:!0,list:[]}),je=V(0),W=V(!1),ae=V(""),ge=V(!1),mt=V(!1),De=_e(()=>o.value.locale),q=_e(()=>{var O;return!!((O=a.value)!=null&&O.token)}),re=_e(()=>o.value.imageUploader!==!1),me=O=>{const j=f.value,u=j.selectionStart,d=j.selectionEnd||0,m=j.scrollTop;s.value=j.value.substring(0,u)+O+j.value.substring(d,j.value.length),j.focus(),j.selectionStart=u+O.length,j.selectionEnd=u+O.length,j.scrollTop=m},Se=O=>{const j=O.key;(O.ctrlKey||O.metaKey)&&j==="Enter"&&Vt()},ve=O=>{const j=`![${o.value.locale.uploading} ${O.name}]()`;return me(j),ge.value=!0,Promise.resolve().then(()=>o.value.imageUploader(O)).then(u=>{s.value=s.value.replace(j,`\r
72
- ![${O.name}](${u})`)}).catch(u=>{alert(u.message),s.value=s.value.replace(j,"")}).then(()=>{ge.value=!1})},Re=O=>{var j;if((j=O.dataTransfer)!=null&&j.items){const u=$s(O.dataTransfer.items);u&&re.value&&(ve(u),O.preventDefault())}},we=O=>{if(O.clipboardData){const j=$s(O.clipboardData.items);j&&re.value&&ve(j)}},Me=()=>{const O=h.value;O.files&&re.value&&ve(O.files[0]).then(()=>{O.value=""})},Vt=async()=>{var O,j,u,d,m,w;const{serverURL:v,lang:b,login:C,wordLimit:_,requiredMeta:k,recaptchaV3Key:y,turnstileKey:S}=o.value,z=await kf(),E={comment:ae.value,nick:l.value.nick,mail:l.value.mail,link:l.value.link,url:o.value.path,ua:z};if(!n.edit)if((O=a.value)!=null&&O.token)E.nick=a.value.display_name,E.mail=a.value.email,E.link=a.value.url;else{if(C==="force")return;if(k.indexOf("nick")>-1&&!E.nick)return(j=c.value.nick)==null||j.focus(),alert(De.value.nickError);if(k.indexOf("mail")>-1&&!E.mail||E.mail&&!Nl(E.mail))return(u=c.value.mail)==null||u.focus(),alert(De.value.mailError);E.nick||(E.nick=De.value.anonymous)}if(!E.comment){(d=f.value)==null||d.focus();return}if(!W.value)return alert(De.value.wordHint.replace("$0",_[0].toString()).replace("$1",_[1].toString()).replace("$2",D.value.toString()));E.comment=nl(E.comment,$.value.map),n.replyId&&n.rootId&&(E.pid=n.replyId,E.rid=n.rootId,E.at=n.replyUser),ge.value=!0;try{y&&(E.recaptchaV3=await Vf(y).execute("social")),S&&(E.turnstile=await Bf(S).execute("social"));const U={serverURL:v,lang:b,token:(m=a.value)==null?void 0:m.token,comment:E},K=await(n.edit?qt({objectId:n.edit.objectId,...U}):Ir(U));if(ge.value=!1,K.errmsg)return alert(K.errmsg);r("submit",K.data),s.value="",H.value="",await Ut(),n.replyId&&r("cancelReply"),(w=n.edit)!=null&&w.objectId&&r("cancelEdit")}catch(U){ge.value=!1,alert(U.message)}},Cn=O=>{O.preventDefault();const{lang:j,serverURL:u}=o.value;Tr({serverURL:u,lang:j}).then(d=>{a.value=d,(d.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(d)),r("log")})},kr=()=>{a.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),r("log")},Ve=O=>{O.preventDefault();const{lang:j,serverURL:u}=o.value,d=800,m=800,w=(window.innerWidth-d)/2,v=(window.innerHeight-m)/2,b=new URLSearchParams({lng:j,token:a.value.token}),C=window.open(`${u}/ui/profile?${b.toString()}`,"_blank",`width=${d},height=${m},left=${w},top=${v},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);C==null||C.postMessage({type:"TOKEN",data:a.value.token},"*")},At=O=>{var j,u,d,m;!((j=p.value)!=null&&j.contains(O.target))&&!((u=g.value)!=null&&u.contains(O.target))&&(A.value=!1),!((d=R.value)!=null&&d.contains(O.target))&&!((m=x.value)!=null&&m.contains(O.target))&&(N.value=!1)},Bt=async O=>{var j;const{scrollTop:u,clientHeight:d,scrollHeight:m}=O.target,w=(d+u)/m,v=o.value.search,b=((j=T.value)==null?void 0:j.value)??"";w<.9||B.loading||mt.value||(B.loading=!0,(v.more&&B.list.length?await v.more(b,B.list.length):await v.search(b)).length?B.list=[...B.list,...v.more&&B.list.length?await v.more(b,B.list.length):await v.search(b)]:mt.value=!0,B.loading=!1,setTimeout(()=>{O.target.scrollTop=u},50))},bi=uu(O=>{B.list=[],mt.value=!1,Bt(O)},300);Pe([o,D],([O,j])=>{const{wordLimit:u}=O;u?j<u[0]&&u[0]!==0?(je.value=u[0],W.value=!1):j>u[1]?(je.value=u[1],W.value=!1):(je.value=u[1],W.value=!0):(je.value=0,W.value=!0)},{immediate:!0}),li("click",At),li("message",({data:O})=>{!O||O.type!=="profile"||(a.value={...a.value,...O.data},[localStorage,sessionStorage].filter(j=>j.getItem("WALINE_USER")).forEach(j=>j.setItem("WALINE_USER",JSON.stringify(a))))}),Pe(N,async O=>{var j;if(!O)return;const u=o.value.search;T.value&&(T.value.value=""),B.loading=!0,B.list=await(((j=u.default)==null?void 0:j.call(u))??u.search("")),B.loading=!1}),on(()=>{var O;(O=n.edit)!=null&&O.objectId&&(s.value=n.edit.orig),Pe(()=>s.value,j=>{const{highlighter:u,texRenderer:d}=o.value;ae.value=j,H.value=wf(j,{emojiMap:$.value.map,highlighter:u,texRenderer:d}),D.value=_f(j),j?fl(f.value):fl.destroy(f.value)},{immediate:!0}),Pe(()=>o.value.emoji,j=>Ru(j).then(u=>{$.value=u}),{immediate:!0})});const vt={props:n,emit:r,config:o,editor:s,userMeta:l,userInfo:a,inputRefs:c,editorRef:f,imageUploadRef:h,emojiButtonRef:p,emojiPopupRef:g,gifButtonRef:R,gifPopupRef:x,gifSearchInputRef:T,emoji:$,emojiTabIndex:P,showEmoji:A,showGif:N,showPreview:te,previewText:H,wordNumber:D,searchResults:B,wordLimit:je,isWordNumberLegal:W,content:ae,isSubmitting:ge,isImageListEnd:mt,locale:De,isLogin:q,canUploadImage:re,insert:me,onKeyDown:Se,uploadImage:ve,onDrop:Re,onPaste:we,onChange:Me,submitComment:Vt,onLogin:Cn,onLogout:kr,onProfile:Ve,popupHandler:At,onImageWallScroll:Bt,onGifSearch:bi,get CloseIcon(){return xf},get EmojiIcon(){return Ef},get GifIcon(){return $f},get ImageIcon(){return If},get LoadingIcon(){return mi},get MarkdownIcon(){return Tf},get PreviewIcon(){return Rf},ImageWall:cd};return Object.defineProperty(vt,"__isScriptSetup",{enumerable:!1,value:!0}),vt}});const fd={key:0,class:"wl-login-info"},dd={class:"wl-avatar"},hd=["title"],pd=["title"],gd=["src"],md=["title","textContent"],vd={class:"wl-panel"},wd=["for","textContent"],yd=["id","onUpdate:modelValue","name","type"],bd=["placeholder"],_d={class:"wl-preview"},kd=M("hr",null,null,-1),xd=["innerHTML"],Cd={class:"wl-footer"},Ed={class:"wl-actions"},Id={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},Sd=["title"],Rd=["title"],Td=["title"],Ld=["title"],Ad={class:"wl-info"},Md=M("div",{class:"wl-captcha-container"},null,-1),$d={class:"wl-text-number"},Od={key:0},jd=["textContent"],zd=["textContent"],Pd=["disabled"],Ud=["placeholder"],Fd={key:1,class:"wl-loading"},Nd={key:0,class:"wl-tab-wrapper"},Hd=["title","onClick"],Dd=["src","alt"],Vd={key:0,class:"wl-tabs"},Bd=["onClick"],Wd=["src","alt","title"],qd=["title"];function Kd(e,t,i,n,r,o){var s,l;return I(),L("div",{key:n.userInfo.token,class:"wl-comment"},[n.config.login!=="disable"&&n.isLogin&&!((s=i.edit)!=null&&s.objectId)?(I(),L("div",fd,[M("div",dd,[M("button",{type:"submit",class:"wl-logout-btn",title:n.locale.logout,onClick:n.onLogout},[ne(n.CloseIcon,{size:14})],8,hd),M("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:n.locale.profile,onClick:n.onProfile},[M("img",{src:n.userInfo.avatar,alt:"avatar"},null,8,gd)],8,pd)]),M("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:n.locale.profile,onClick:n.onProfile,textContent:J(n.userInfo.display_name)},null,8,md)])):Q("v-if",!0),M("div",vd,[n.config.login!=="force"&&n.config.meta.length&&!n.isLogin?(I(),L("div",{key:0,class:pe(["wl-header",`item${n.config.meta.length}`])},[(I(!0),L(se,null,Ue(n.config.meta,a=>(I(),L("div",{key:a,class:"wl-header-item"},[M("label",{for:`wl-${a}`,textContent:J(n.locale[a]+(n.config.requiredMeta.includes(a)||!n.config.requiredMeta.length?"":`(${n.locale.optional})`))},null,8,wd),qn(M("input",{id:`wl-${a}`,ref_for:!0,ref:c=>{c&&(n.inputRefs[a]=c)},"onUpdate:modelValue":c=>n.userMeta[a]=c,class:pe(["wl-input",`wl-${a}`]),name:a,type:a==="mail"?"email":"text"},null,10,yd),[[Xc,n.userMeta[a]]])]))),128))],2)):Q("v-if",!0),qn(M("textarea",{id:"wl-edit",ref:"editorRef","onUpdate:modelValue":t[0]||(t[0]=a=>n.editor=a),class:"wl-editor",placeholder:i.replyUser?`@${i.replyUser}`:n.locale.placeholder,onKeydown:n.onKeyDown,onDrop:n.onDrop,onPaste:n.onPaste},null,40,bd),[[ur,n.editor]]),qn(M("div",_d,[kd,M("h4",null,J(n.locale.preview)+":",1),M("div",{class:"wl-content",innerHTML:n.previewText},null,8,xd)],512),[[ps,n.showPreview]]),M("div",Cd,[M("div",Ed,[M("a",Id,[ne(n.MarkdownIcon)]),qn(M("button",{ref:"emojiButtonRef",type:"button",class:pe(["wl-action",{active:n.showEmoji}]),title:n.locale.emoji,onClick:t[1]||(t[1]=a=>n.showEmoji=!n.showEmoji)},[ne(n.EmojiIcon)],10,Sd),[[ps,n.emoji.tabs.length]]),n.config.search?(I(),L("button",{key:0,ref:"gifButtonRef",type:"button",class:pe(["wl-action",{active:n.showGif}]),title:n.locale.gif,onClick:t[2]||(t[2]=a=>n.showGif=!n.showGif)},[ne(n.GifIcon)],10,Rd)):Q("v-if",!0),M("input",{id:"wl-image-upload",ref:"imageUploadRef",class:"upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:n.onChange},null,544),n.canUploadImage?(I(),L("label",{key:1,for:"wl-image-upload",class:"wl-action",title:n.locale.uploadImage},[ne(n.ImageIcon)],8,Td)):Q("v-if",!0),M("button",{type:"button",class:pe(["wl-action",{active:n.showPreview}]),title:n.locale.preview,onClick:t[3]||(t[3]=a=>n.showPreview=!n.showPreview)},[ne(n.PreviewIcon)],10,Ld)]),M("div",Ad,[Md,M("div",$d,[tt(J(n.wordNumber)+" ",1),n.config.wordLimit?(I(),L("span",Od,[tt("  /  "),M("span",{class:pe({illegal:!n.isWordNumberLegal}),textContent:J(n.wordLimit)},null,10,jd)])):Q("v-if",!0),tt("  "+J(n.locale.word),1)]),n.config.login!=="disable"&&!n.isLogin?(I(),L("button",{key:0,type:"button",class:"wl-btn",onClick:n.onLogin,textContent:J(n.locale.login)},null,8,zd)):Q("v-if",!0),n.config.login!=="force"||n.isLogin?(I(),L("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:n.isSubmitting,onClick:n.submitComment},[n.isSubmitting?(I(),et(n.LoadingIcon,{key:0,size:16})):(I(),L(se,{key:1},[tt(J(n.locale.submit),1)],64))],8,Pd)):Q("v-if",!0)]),M("div",{ref:"gifPopupRef",class:pe(["wl-gif-popup",{display:n.showGif}])},[M("input",{ref:"gifSearchInputRef",type:"text",placeholder:n.locale.gifSearchPlaceholder,onInput:t[4]||(t[4]=(...a)=>n.onGifSearch&&n.onGifSearch(...a))},null,40,Ud),n.searchResults.list.length?(I(),et(n.ImageWall,{key:0,items:n.searchResults.list,"column-width":200,gap:6,onInsert:t[5]||(t[5]=a=>n.insert(a)),onScroll:n.onImageWallScroll},null,8,["items"])):Q("v-if",!0),n.searchResults.loading?(I(),L("div",Fd,[ne(n.LoadingIcon,{size:30})])):Q("v-if",!0)],2),M("div",{ref:"emojiPopupRef",class:pe(["wl-emoji-popup",{display:n.showEmoji}])},[(I(!0),L(se,null,Ue(n.emoji.tabs,(a,c)=>(I(),L(se,{key:a.name},[c===n.emojiTabIndex?(I(),L("div",Nd,[(I(!0),L(se,null,Ue(a.items,f=>(I(),L("button",{key:f,type:"button",title:f,onClick:h=>n.insert(`:${f}:`)},[n.showEmoji?(I(),L("img",{key:0,class:"wl-emoji",src:n.emoji.map[f],alt:f,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Dd)):Q("v-if",!0)],8,Hd))),128))])):Q("v-if",!0)],64))),128)),n.emoji.tabs.length>1?(I(),L("div",Vd,[(I(!0),L(se,null,Ue(n.emoji.tabs,(a,c)=>(I(),L("button",{key:a.name,type:"button",class:pe(["wl-tab",{active:n.emojiTabIndex===c}]),onClick:f=>n.emojiTabIndex=c},[M("img",{class:"wl-emoji",src:a.icon,alt:a.name,title:a.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Wd)],10,Bd))),128))])):Q("v-if",!0)],2)])]),i.replyId||(l=i.edit)!=null&&l.objectId?(I(),L("button",{key:1,type:"button",class:"wl-close",title:n.locale.cancelReply,onClick:t[6]||(t[6]=a=>i.replyId?n.emit("cancelReply"):n.emit("cancelEdit"))},[ne(n.CloseIcon,{size:24})],8,qd)):Q("v-if",!0)])}var dl=bn(ud,[["render",Kd],["__file","CommentBox.vue"]]),Gd=rn({__name:"CommentCard",props:{comment:{},edit:{default:null},rootId:{},reply:{default:null}},emits:["log","submit","delete","edit","like","status","sticky","reply"],setup(e,{expose:t,emit:i}){t();const n=e,r=i,o=["approved","waiting","spam"],s=Zn("config"),l=ol(),a=ku(),c=wi(),f=_e(()=>s.value.locale),h=_e(()=>{const{link:A}=n.comment;return A?Gr(A)?A:`https://${A}`:""}),p=_e(()=>l.value.includes(n.comment.objectId)),g=_e(()=>Ul(new Date(n.comment.time),a.value,f.value)),R=_e(()=>c.value.type==="administrator"),x=_e(()=>n.comment.user_id&&c.value.objectId===n.comment.user_id),T=_e(()=>{var A;return n.comment.objectId===((A=n.reply)==null?void 0:A.objectId)}),$=_e(()=>{var A;return n.comment.objectId===((A=n.edit)==null?void 0:A.objectId)}),P={props:n,emit:r,commentStatus:o,config:s,likes:l,now:a,userInfo:c,locale:f,link:h,like:p,time:g,isAdmin:R,isOwner:x,isReplyingCurrent:T,isEditingCurrent:$,CommentBox:dl,get DeleteIcon(){return Cf},get EditIcon(){return Af},get LikeIcon(){return Sf},get ReplyIcon(){return Lf},get VerifiedIcon(){return Mf}};return Object.defineProperty(P,"__isScriptSetup",{enumerable:!1,value:!0}),P}});const Zd=["id"],Qd={class:"wl-user","aria-hidden":"true"},Jd=["src"],Yd={class:"wl-card"},Xd={class:"wl-head"},eh=["href"],th={key:1,class:"wl-nick"},nh=["textContent"],ih=["textContent"],rh=["textContent"],oh=["textContent"],sh=["textContent"],lh={class:"wl-comment-actions"},ah=["title"],ch=["title"],uh={class:"wl-meta","aria-hidden":"true"},fh=["data-value","textContent"],dh={key:0,class:"wl-content"},hh={key:0},ph=["href"],gh=M("span",null,": ",-1),mh=["innerHTML"],vh={key:1,class:"wl-admin-actions"},wh={class:"wl-comment-status"},yh=["disabled","onClick","textContent"],bh={key:3,class:"wl-quote"};function _h(e,t,i,n,r,o){var l;const s=Ua("CommentCard",!0);return I(),L("div",{id:i.comment.objectId,class:"wl-card-item"},[M("div",Qd,[i.comment.avatar?(I(),L("img",{key:0,class:"wl-user-avatar",src:i.comment.avatar},null,8,Jd)):Q("v-if",!0),i.comment.type?(I(),et(n.VerifiedIcon,{key:1})):Q("v-if",!0)]),M("div",Yd,[M("div",Xd,[n.link?(I(),L("a",{key:0,class:"wl-nick",href:n.link,target:"_blank",rel:"nofollow noopener noreferrer"},J(i.comment.nick),9,eh)):(I(),L("span",th,J(i.comment.nick),1)),i.comment.type==="administrator"?(I(),L("span",{key:2,class:"wl-badge",textContent:J(n.locale.admin)},null,8,nh)):Q("v-if",!0),i.comment.label?(I(),L("span",{key:3,class:"wl-badge",textContent:J(i.comment.label)},null,8,ih)):Q("v-if",!0),i.comment.sticky?(I(),L("span",{key:4,class:"wl-badge",textContent:J(n.locale.sticky)},null,8,rh)):Q("v-if",!0),typeof i.comment.level=="number"?(I(),L("span",{key:5,class:pe(`wl-badge level${i.comment.level}`),textContent:J(n.locale[`level${i.comment.level}`]||`Level ${i.comment.level}`)},null,10,oh)):Q("v-if",!0),M("span",{class:"wl-time",textContent:J(n.time)},null,8,sh),M("div",lh,[n.isAdmin||n.isOwner?(I(),L(se,{key:0},[M("button",{type:"button",class:"wl-edit",onClick:t[0]||(t[0]=a=>n.emit("edit",i.comment))},[ne(n.EditIcon)]),M("button",{type:"button",class:"wl-delete",onClick:t[1]||(t[1]=a=>n.emit("delete",i.comment))},[ne(n.DeleteIcon)])],64)):Q("v-if",!0),M("button",{type:"button",class:"wl-like",title:n.like?n.locale.cancelLike:n.locale.like,onClick:t[2]||(t[2]=a=>n.emit("like",i.comment))},[ne(n.LikeIcon,{active:n.like},null,8,["active"]),tt(" "+J("like"in i.comment?i.comment.like:""),1)],8,ah),M("button",{type:"button",class:pe(["wl-reply",{active:n.isReplyingCurrent}]),title:n.isReplyingCurrent?n.locale.cancelReply:n.locale.reply,onClick:t[3]||(t[3]=a=>n.emit("reply",n.isReplyingCurrent?null:i.comment))},[ne(n.ReplyIcon)],10,ch)])]),M("div",uh,[(I(),L(se,null,Ue(["addr","browser","os"],a=>(I(),L(se,null,[i.comment[a]?(I(),L("span",{key:a,class:pe(`wl-${a}`),"data-value":i.comment[a],textContent:J(i.comment[a])},null,10,fh)):Q("v-if",!0)],64))),64))]),n.isEditingCurrent?Q("v-if",!0):(I(),L("div",dh,[i.comment.reply_user?(I(),L("p",hh,[M("a",{href:"#"+i.comment.pid},"@"+J(i.comment.reply_user.nick),9,ph),gh])):Q("v-if",!0),M("div",{innerHTML:i.comment.comment},null,8,mh)])),n.isAdmin&&!n.isEditingCurrent?(I(),L("div",vh,[M("span",wh,[(I(),L(se,null,Ue(n.commentStatus,a=>M("button",{key:a,type:"submit",class:pe(`wl-btn wl-${a}`),disabled:i.comment.status===a,onClick:c=>n.emit("status",{status:a,comment:i.comment}),textContent:J(n.locale[a])},null,10,yh)),64))]),n.isAdmin&&!("rid"in i.comment)?(I(),L("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:t[4]||(t[4]=a=>n.emit("sticky",i.comment))},J(i.comment.sticky?n.locale.unsticky:n.locale.sticky),1)):Q("v-if",!0)])):Q("v-if",!0),n.isReplyingCurrent||n.isEditingCurrent?(I(),L("div",{key:2,class:pe({"wl-reply-wrapper":n.isReplyingCurrent,"wl-edit-wrapper":n.isEditingCurrent})},[ne(n.CommentBox,{edit:i.edit,"reply-id":(l=i.reply)==null?void 0:l.objectId,"reply-user":i.comment.nick,"root-id":i.rootId,onLog:t[5]||(t[5]=a=>n.emit("log")),onCancelReply:t[6]||(t[6]=a=>n.emit("reply",null)),onCancelEdit:t[7]||(t[7]=a=>n.emit("edit",null)),onSubmit:t[8]||(t[8]=a=>n.emit("submit",a))},null,8,["edit","reply-id","reply-user","root-id"])],2)):Q("v-if",!0),"children"in i.comment?(I(),L("div",bh,[(I(!0),L(se,null,Ue(i.comment.children,a=>(I(),et(s,{key:a.objectId,comment:a,reply:i.reply,edit:i.edit,"root-id":i.rootId,onLog:t[9]||(t[9]=c=>n.emit("log")),onDelete:t[10]||(t[10]=c=>n.emit("delete",c)),onEdit:t[11]||(t[11]=c=>n.emit("edit",c)),onLike:t[12]||(t[12]=c=>n.emit("like",c)),onReply:t[13]||(t[13]=c=>n.emit("reply",c)),onStatus:t[14]||(t[14]=c=>n.emit("status",c)),onSticky:t[15]||(t[15]=c=>n.emit("sticky",c)),onSubmit:t[16]||(t[16]=c=>n.emit("submit",c))},null,8,["comment","reply","edit","root-id"]))),128))])):Q("v-if",!0)])],8,Zd)}var kh=bn(Gd,[["render",_h],["__file","CommentCard.vue"]]);const hl="3.2.7";var xh=rn({__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,{expose:t}){t();const i=e,n={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},r=Object.keys(n),o=wi(),s=ol(),l=V("loading"),a=V(0),c=V(1),f=V(0),h=_e(()=>jl(i)),p=V(h.value.commentSorting),g=V([]),R=V(null),x=V(null),T=_e(()=>zl(h.value.dark)),$=_e(()=>h.value.locale);Eu(T,{id:"waline-darkmode"});let P;const A=q=>{var re;const{serverURL:me,path:Se,pageSize:ve}=h.value,Re=new AbortController;l.value="loading",P==null||P(),Er({serverURL:me,lang:h.value.lang,path:Se,pageSize:ve,sortBy:n[p.value],page:q,signal:Re.signal,token:(re=o.value)==null?void 0:re.token}).then(we=>{l.value="success",a.value=we.count,g.value.push(...we.data),c.value=q,f.value=we.totalPages}).catch(we=>{we.name!=="AbortError"&&(console.error(we.message),l.value="error")}),P=Re.abort.bind(Re)},N=()=>A(c.value+1),te=()=>{a.value=0,g.value=[],A(1)},H=q=>{p.value!==q&&(p.value=q,te())},D=q=>{R.value=q},B=q=>{x.value=q},je=q=>{if(x.value)x.value.comment=q.comment,x.value.orig=q.orig;else if("rid"in q){const re=g.value.find(({objectId:me})=>me===q.rid);if(!re)return;Array.isArray(re.children)||(re.children=[]),re.children.push(q)}else g.value.unshift(q),a.value+=1},W=async({comment:q,status:re})=>{var me;if(q.status===re)return;const{serverURL:Se,lang:ve}=h.value;await qt({serverURL:Se,lang:ve,token:(me=o.value)==null?void 0:me.token,objectId:q.objectId,comment:{status:re}}),q.status=re},ae=async q=>{var re;if("rid"in q)return;const{serverURL:me,lang:Se}=h.value;await qt({serverURL:me,lang:Se,token:(re=o.value)==null?void 0:re.token,objectId:q.objectId,comment:{sticky:q.sticky?0:1}}),q.sticky=!q.sticky},ge=async({objectId:q})=>{var re;if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:me,lang:Se}=h.value;await Sr({serverURL:me,lang:Se,token:(re=o.value)==null?void 0:re.token,objectId:q}),g.value.some((ve,Re)=>ve.objectId===q?(g.value=g.value.filter((we,Me)=>Me!==Re),!0):ve.children.some((we,Me)=>we.objectId===q?(g.value[Re].children=ve.children.filter((Vt,Cn)=>Cn!==Me),!0):!1))},mt=async q=>{var re;const{serverURL:me,lang:Se}=h.value,{objectId:ve}=q,Re=s.value.includes(ve);await qt({serverURL:me,lang:Se,objectId:ve,token:(re=o.value)==null?void 0:re.token,comment:{like:!Re}}),Re?s.value=s.value.filter(we=>we!==ve):(s.value=[...s.value,ve],s.value.length>50&&(s.value=s.value.slice(-50))),q.like=(q.like||0)+(Re?-1:1)};tc("config",h),on(()=>{Pe(()=>[i.serverURL,i.path],()=>te(),{immediate:!0})}),Qi(()=>P==null?void 0:P());const De={props:i,sortKeyMap:n,sortingMethods:r,userInfo:o,likeStorage:s,status:l,count:a,page:c,totalPages:f,config:h,commentSortingRef:p,data:g,reply:R,edit:x,darkmodeStyle:T,i18n:$,get abort(){return P},set abort(q){P=q},getCommentData:A,loadMore:N,refresh:te,onSortByChange:H,onReply:D,onEdit:B,onSubmit:je,onStatusChange:W,onSticky:ae,onDelete:ge,onLike:mt,Reaction:nd,CommentBox:dl,CommentCard:kh,get LoadingIcon(){return mi},get version(){return hl}};return Object.defineProperty(De,"__isScriptSetup",{enumerable:!1,value:!0}),De}});const Ch={"data-waline":""},Eh={class:"wl-meta-head"},Ih={class:"wl-count"},Sh=["textContent"],Rh={class:"wl-sort"},Th=["onClick"],Lh={class:"wl-cards"},Ah={key:1,class:"wl-operation"},Mh=["textContent"],$h={key:2,class:"wl-loading"},Oh=["textContent"],jh={key:4,class:"wl-operation"},zh=["textContent"],Ph={key:5,class:"wl-power"},Uh=M("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1);function Fh(e,t,i,n,r,o){return I(),L("div",Ch,[ne(n.Reaction),!n.reply&&!n.edit?(I(),et(n.CommentBox,{key:0,onLog:n.refresh,onSubmit:n.onSubmit})):Q("v-if",!0),M("div",Eh,[M("div",Ih,[n.count?(I(),L("span",{key:0,class:"wl-num",textContent:J(n.count)},null,8,Sh)):Q("v-if",!0),tt(" "+J(n.i18n.comment),1)]),M("ul",Rh,[(I(!0),L(se,null,Ue(n.sortingMethods,s=>(I(),L("li",{key:s,class:pe([s===n.commentSortingRef?"active":""]),onClick:l=>n.onSortByChange(s)},J(n.i18n[s]),11,Th))),128))])]),M("div",Lh,[(I(!0),L(se,null,Ue(n.data,s=>(I(),et(n.CommentCard,{key:s.objectId,"root-id":s.objectId,comment:s,reply:n.reply,edit:n.edit,onLog:n.refresh,onReply:n.onReply,onEdit:n.onEdit,onSubmit:n.onSubmit,onStatus:n.onStatusChange,onDelete:n.onDelete,onSticky:n.onSticky,onLike:n.onLike},null,8,["root-id","comment","reply","edit"]))),128))]),n.status==="error"?(I(),L("div",Ah,[M("button",{type:"button",class:"wl-btn",onClick:n.refresh,textContent:J(n.i18n.refresh)},null,8,Mh)])):n.status==="loading"?(I(),L("div",$h,[ne(n.LoadingIcon,{size:30})])):n.data.length?n.page<n.totalPages?(I(),L("div",jh,[M("button",{type:"button",class:"wl-btn",onClick:n.loadMore,textContent:J(n.i18n.more)},null,8,zh)])):Q("v-if",!0):(I(),L("div",{key:3,class:"wl-empty",textContent:J(n.i18n.sofa)},null,8,Oh)),n.config.copyright?(I(),L("div",Ph,[tt(" Powered by "),Uh,tt(" v"+J(n.version),1)])):Q("v-if",!0)])}var Nh=bn(xh,[["render",Fh],["__file","WalineComment.vue"]]);const pl=(e,t)=>{t.forEach((i,n)=>{const r=e[n].time;typeof r=="number"&&(i.innerText=r.toString())})},gl=({serverURL:e,path:t=window.location.pathname,selector:i=".waline-pageview-count",update:n=!0,lang:r=navigator.language})=>{const o=new AbortController,s=Array.from(document.querySelectorAll(i)),l=c=>{const f=_r(c);return f!==null&&t!==f},a=c=>Lr({serverURL:Rn(e),paths:c.map(f=>_r(f)??t),lang:r,signal:o.signal}).then(f=>pl(f,c)).catch(Ms);if(n){const c=s.filter(h=>!l(h)),f=s.filter(l);Ar({serverURL:Rn(e),path:t,lang:r}).then(h=>pl(h,c)),f.length&&a(f)}else a(s);return o.abort.bind(o)},Hh=({el:e="#waline",path:t=window.location.pathname,comment:i=!1,pageview:n=!1,...r})=>{const o=e?dr(e):null;if(e&&!o)throw new Error("Option 'el' do not match any domElement!");if(!r.serverURL)throw new Error("Option 'serverURL' is missing!");const s=Qt({...r}),l=Qt({comment:i,pageview:n,path:t}),a=()=>{l.comment&&il({serverURL:s.serverURL,path:l.path,...Mt(l.comment)?{selector:l.comment}:{}})},c=()=>{l.pageview&&gl({serverURL:s.serverURL,path:l.path,...Mt(l.pageview)?{selector:l.pageview}:{}})},f=o?iu(()=>X(Nh,{path:l.path,...s})):null;f&&f.mount(o);const h=Uo(a),p=Uo(c);return{el:o,update:({comment:g,pageview:R,path:x=window.location.pathname,...T}={})=>{Object.entries(T).forEach(([$,P])=>{s[$]=P}),l.path=x,g!==void 0&&(l.comment=g),R!==void 0&&(l.pageview=R)},destroy:()=>{f==null||f.unmount(),h(),p()}}},Dh=({el:e,serverURL:t,count:i,lang:n=navigator.language})=>{var r;const o=wi(),s=dr(e),l=new AbortController;return Mr({serverURL:t,count:i,lang:n,signal:l.signal,token:(r=o.value)==null?void 0:r.token}).then(a=>s&&a.length?(s.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:()=>{l.abort(),s.innerHTML=""}}):{comments:a,destroy:()=>l.abort()})},Vh=({el:e,serverURL:t,count:i,locale:n,lang:r=navigator.language,mode:o="list"})=>{const s=dr(e),l=new AbortController;return $r({serverURL:t,pageSize:i,lang:r,signal:l.signal}).then(a=>!s||!a.length?{users:a,destroy:()=>l.abort()}:(n={...Br(r),...typeof n=="object"?n:{}},s.innerHTML=`<ul class="wl-user-${o}">${a.map((c,f)=>[`<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">${f+1}</span>`,"</div>",'<div class="wl-user-meta">','<div class="wl-user-name">',c.nick,c.level&&`<span class="wl-badge">${n?n[`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:()=>{l.abort(),s.innerHTML=""}}))};G.RecentComments=Dh,G.UserList=Vh,G.addComment=Ir,G.commentCount=il,G.defaultLocales=Sn,G.deleteComment=Sr,G.fetchCommentCount=Rr,G.getArticleCounter=ki,G.getComment=Er,G.getPageview=Lr,G.getRecentComment=Mr,G.getUserList=$r,G.init=Hh,G.login=Tr,G.pageviewCount=gl,G.updateArticleCounter=In,G.updateComment=qt,G.updatePageview=Ar,G.version=hl});
77
+ `}tablecell(t){const n=this.parser.parseInline(t.tokens),i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+n+`</${i}>
78
+ `}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>${t}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:n,tokens:i}){const r=this.parser.parseInline(i),s=Gl(t);if(s===null)return r;t=s;let l='<a href="'+t+'"';return n&&(l+=' title="'+n+'"'),l+=">"+r+"</a>",l}image({href:t,title:n,text:i}){const r=Gl(t);if(r===null)return i;t=r;let s=`<img src="${t}" alt="${i}"`;return n&&(s+=` title="${n}"`),s+=">",s}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):t.text}}class Ir{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 _i,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ir}static parse(t,n){return new Ye(n).parse(t)}static parseInline(t,n){return new Ye(n).parseInline(t)}parse(t,n=!0){let i="";for(let r=0;r<t.length;r++){const s=t[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){const o=s,a=this.options.extensions.renderers[o.type].call({parser:this},o);if(a!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(o.type)){i+=a||"";continue}}const l=s;switch(l.type){case"space":{i+=this.renderer.space(l);continue}case"hr":{i+=this.renderer.hr(l);continue}case"heading":{i+=this.renderer.heading(l);continue}case"code":{i+=this.renderer.code(l);continue}case"table":{i+=this.renderer.table(l);continue}case"blockquote":{i+=this.renderer.blockquote(l);continue}case"list":{i+=this.renderer.list(l);continue}case"html":{i+=this.renderer.html(l);continue}case"paragraph":{i+=this.renderer.paragraph(l);continue}case"text":{let o=l,a=this.renderer.text(o);for(;r+1<t.length&&t[r+1].type==="text";)o=t[++r],a+=`
79
+ `+this.renderer.text(o);n?i+=this.renderer.paragraph({type:"paragraph",raw:a,text:a,tokens:[{type:"text",raw:a,text:a}]}):i+=a;continue}default:{const o='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return i}parseInline(t,n){n=n||this.renderer;let i="";for(let r=0;r<t.length;r++){const s=t[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){const o=this.options.extensions.renderers[s.type].call({parser:this},s);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){i+=o||"";continue}}const l=s;switch(l.type){case"escape":{i+=n.text(l);break}case"html":{i+=n.html(l);break}case"link":{i+=n.link(l);break}case"image":{i+=n.image(l);break}case"strong":{i+=n.strong(l);break}case"em":{i+=n.em(l);break}case"codespan":{i+=n.codespan(l);break}case"br":{i+=n.br(l);break}case"del":{i+=n.del(l);break}case"text":{i+=n.text(l);break}default:{const o='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return i}}class Rn{options;block;constructor(t){this.options=t||Ot}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?Qe.lex:Qe.lexInline}provideParser(){return this.block?Ye.parse:Ye.parseInline}}Ro(Rn,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class so{defaults=$r();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Ye;Renderer=_i;TextRenderer=Ir;Lexer=Qe;Tokenizer=yi;Hooks=Rn;constructor(...t){this.use(...t)}walkTokens(t,n){var r,s;let i=[];for(const l of t)switch(i=i.concat(n.call(this,l)),l.type){case"table":{const o=l;for(const a of o.header)i=i.concat(this.walkTokens(a.tokens,n));for(const a of o.rows)for(const u of a)i=i.concat(this.walkTokens(u.tokens,n));break}case"list":{const o=l;i=i.concat(this.walkTokens(o.items,n));break}default:{const o=l;(s=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&s[o.type]?this.defaults.extensions.childTokens[o.type].forEach(a=>{const u=o[a].flat(1/0);i=i.concat(this.walkTokens(u,n))}):o.tokens&&(i=i.concat(this.walkTokens(o.tokens,n)))}}return i}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{const r={...i};if(r.async=this.defaults.async||r.async||!1,i.extensions&&(i.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)}),r.extensions=n),i.renderer){const s=this.defaults.renderer||new _i(this.defaults);for(const l in i.renderer){if(!(l in s))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;const o=l,a=i.renderer[o],u=s[o];s[o]=(...c)=>{let h=a.apply(s,c);return h===!1&&(h=u.apply(s,c)),h||""}}r.renderer=s}if(i.tokenizer){const s=this.defaults.tokenizer||new yi(this.defaults);for(const l in i.tokenizer){if(!(l in s))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;const o=l,a=i.tokenizer[o],u=s[o];s[o]=(...c)=>{let h=a.apply(s,c);return h===!1&&(h=u.apply(s,c)),h}}r.tokenizer=s}if(i.hooks){const s=this.defaults.hooks||new Rn;for(const l in i.hooks){if(!(l in s))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;const o=l,a=i.hooks[o],u=s[o];Rn.passThroughHooks.has(l)?s[o]=c=>{if(this.defaults.async)return Promise.resolve(a.call(s,c)).then(p=>u.call(s,p));const h=a.call(s,c);return u.call(s,h)}:s[o]=(...c)=>{let h=a.apply(s,c);return h===!1&&(h=u.apply(s,c)),h}}r.hooks=s}if(i.walkTokens){const s=this.defaults.walkTokens,l=i.walkTokens;r.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,...r}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return Qe.lex(t,n??this.defaults)}parser(t,n){return Ye.parse(t,n??this.defaults)}parseMarkdown(t){return(i,r)=>{const s={...r},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 i>"u"||i===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof i!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));l.hooks&&(l.hooks.options=l,l.hooks.block=t);const a=l.hooks?l.hooks.provideLexer():t?Qe.lex:Qe.lexInline,u=l.hooks?l.hooks.provideParser():t?Ye.parse:Ye.parseInline;if(l.async)return Promise.resolve(l.hooks?l.hooks.preprocess(i):i).then(c=>a(c,l)).then(c=>l.hooks?l.hooks.processAllTokens(c):c).then(c=>l.walkTokens?Promise.all(this.walkTokens(c,l.walkTokens)).then(()=>c):c).then(c=>u(c,l)).then(c=>l.hooks?l.hooks.postprocess(c):c).catch(o);try{l.hooks&&(i=l.hooks.preprocess(i));let c=a(i,l);l.hooks&&(c=l.hooks.processAllTokens(c)),l.walkTokens&&this.walkTokens(c,l.walkTokens);let h=u(c,l);return l.hooks&&(h=l.hooks.postprocess(h)),h}catch(c){return o(c)}}}onError(t,n){return i=>{if(i.message+=`
80
+ Please report this to https://github.com/markedjs/marked.`,t){const r="<p>An error occurred:</p><pre>"+Ue(i.message+"",!0)+"</pre>";return n?Promise.resolve(r):r}if(n)return Promise.reject(i);throw i}}}const jt=new so;function me(e,t){return jt.parse(e,t)}me.options=me.setOptions=function(e){return jt.setOptions(e),me.defaults=jt.defaults,Bl(me.defaults),me},me.getDefaults=$r,me.defaults=Ot,me.use=function(...e){return jt.use(...e),me.defaults=jt.defaults,Bl(me.defaults),me},me.walkTokens=function(e,t){return jt.walkTokens(e,t)},me.parseInline=jt.parseInline,me.Parser=Ye,me.parser=Ye.parse,me.Renderer=_i,me.TextRenderer=Ir,me.Lexer=Qe,me.lexer=Qe.lex,me.Tokenizer=yi,me.Hooks=Rn,me.parse=me;function _f(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-"),{async:!!e.async,walkTokens(t){if(t.type!=="code")return;const n=lo(t.lang);if(e.async)return Promise.resolve(e.highlight(t.text,n,t.lang||"")).then(oo(t));const i=e.highlight(t.text,n,t.lang||"");if(i 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.");oo(t)(i)},useNewRenderer:!0,renderer:{code(t,n,i){typeof t=="object"&&(i=t.escaped,n=t.lang,t=t.text);const r=lo(n),s=r?` class="${e.langPrefix}${fo(r)}"`:"";return t=t.replace(/\n$/,""),`<pre><code${s}>${i?t:fo(t,!0)}
81
+ </code></pre>`}}}}function lo(e){return(e||"").match(/\S*/)[0]}function oo(e){return t=>{typeof t=="string"&&t!==e.text&&(e.escaped=!0,e.text=t)}}const ao=/[&<>"']/,$f=new RegExp(ao.source,"g"),co=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Cf=new RegExp(co.source,"g"),Sf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},uo=e=>Sf[e];function fo(e,t){if(t){if(ao.test(e))return e.replace($f,uo)}else if(co.test(e))return e.replace(Cf,uo);return e}const Ef=/\$.*?\$/,Tf=/^\$(.*?)\$/,Af=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,Rf=e=>[{name:"blockMath",level:"block",tokenizer(t){const n=Af.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(Ef);return n!==-1?n:t.length},tokenizer(t){const n=Tf.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!1,n[1])}}}],ho=(e="",t={})=>e.replace(/:(.+?):/g,(n,i)=>t[i]?`<img class="wl-emoji" src="${t[i]}" alt="${i}">`:n),If=(e,{emojiMap:t,highlighter:n,texRenderer:i})=>{const r=new so;if(r.setOptions({breaks:!0}),n&&r.use(_f({highlight:n})),i){const s=Rf(i);r.use({extensions:s})}return r.parse(ho(e,t))},Lr=e=>{const{path:t}=e.dataset;return t!=null&&t.length?t:null},Lf=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),Mf=e=>e.match(/[\u4E00-\u9FD5]/gu),Of=e=>{var t,n;return(((t=Lf(e))==null?void 0:t.reduce((i,r)=>i+(["",",","."].includes(r.trim())?0:r.trim().split(/\s+/u).length),0))??0)+(((n=Mf(e))==null?void 0:n.length)??0)},jf=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},po=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count",lang:i=navigator.language})=>{const r=new AbortController,s=document.querySelectorAll(n);return s.length&&Fr({serverURL:Fn(e),paths:Array.from(s).map(l=>ns(Lr(l)??t)),lang:i,signal:r.signal}).then(l=>{s.forEach((o,a)=>{o.innerText=l[a].toString()})}).catch(Nl),r.abort.bind(r)},go=({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"})]),zf=()=>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"})),Pf=()=>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"})),Ff=()=>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"})]),Df=({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"})]),Uf=()=>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"})]),Hf=()=>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"})),Nf=()=>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"})),Vf=()=>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"})),Bf=()=>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"})),In=({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"})]),qf=()=>Qt("WALINE_USER_META",{nick:"",mail:"",link:""}),Kf=()=>Qt("WALINE_COMMENT_BOX_EDITOR",""),Gf="WALINE_LIKE";let mo=null;const vo=()=>mo??(mo=Qt(Gf,[])),Zf="WALINE_REACTION";let bo=null;const Jf=()=>bo??(bo=Qt(Zf,{}));var Yt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},yo={},Xt={},Ln={},Qf=Yt&&Yt.__awaiter||function(e,t,n,i){function r(s){return s instanceof n?s:new n(function(l){l(s)})}return new(n||(n=Promise))(function(s,l){function o(c){try{u(i.next(c))}catch(h){l(h)}}function a(c){try{u(i.throw(c))}catch(h){l(h)}}function u(c){c.done?s(c.value):r(c.value).then(o,a)}u((i=i.apply(e,t||[])).next())})},Yf=Yt&&Yt.__generator||function(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,r,s,l;return l={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function o(u){return function(c){return a([u,c])}}function a(u){if(i)throw new TypeError("Generator is already executing.");for(;l&&(l=0,u[0]&&(n=0)),n;)try{if(i=1,r&&(s=u[0]&2?r.return:u[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,u[1])).done)return s;switch(r=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,r=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){n.label=u[1];break}if(u[0]===6&&n.label<s[1]){n.label=s[1],s=u;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(u);break}s[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],r=0}finally{i=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}};Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.ReCaptchaInstance=void 0;var Xf=function(){function e(t,n,i){this.siteKey=t,this.recaptchaID=n,this.recaptcha=i,this.styleContainer=null}return e.prototype.execute=function(t){return Qf(this,void 0,void 0,function(){var n;return Yf(this,function(i){switch(i.label){case 0:return this.recaptcha.enterprise?[4,this.recaptcha.enterprise.execute(this.recaptchaID,{action:t})]:[3,2];case 1:return n=i.sent(),[3,4];case 2:return[4,this.recaptcha.execute(this.recaptchaID,{action:t})];case 3:n=i.sent(),i.label=4;case 4:return[2,n]}})})},e.prototype.getSiteKey=function(){return this.siteKey},e.prototype.hideBadge=function(){this.styleContainer===null&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},e.prototype.showBadge=function(){this.styleContainer!==null&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},e}();Ln.ReCaptchaInstance=Xf;var Mr=Yt&&Yt.__assign||function(){return Mr=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Mr.apply(this,arguments)};Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.getInstance=Xt.load=void 0;var eh=Ln,wt;(function(e){e[e.NOT_LOADED=0]="NOT_LOADED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"})(wt||(wt={}));var wo=function(){function e(){}return e.load=function(t,n){if(n===void 0&&(n={}),typeof document>"u")return Promise.reject(new Error("This is a library for the browser!"));if(e.getLoadingState()===wt.LOADED)return e.instance.getSiteKey()===t?Promise.resolve(e.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(e.getLoadingState()===wt.LOADING)return t!==e.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(r,s){e.successfulLoadingConsumers.push(function(l){return r(l)}),e.errorLoadingRunnable.push(function(l){return s(l)})});e.instanceSiteKey=t,e.setLoadingState(wt.LOADING);var i=new e;return new Promise(function(r,s){i.loadScript(t,n.useRecaptchaNet||!1,n.useEnterprise||!1,n.renderParameters?n.renderParameters:{},n.customUrl).then(function(){e.setLoadingState(wt.LOADED);var l=i.doExplicitRender(grecaptcha,t,n.explicitRenderParameters?n.explicitRenderParameters:{},n.useEnterprise||!1),o=new eh.ReCaptchaInstance(t,l,grecaptcha);e.successfulLoadingConsumers.forEach(function(a){return a(o)}),e.successfulLoadingConsumers=[],n.autoHideBadge&&o.hideBadge(),e.instance=o,r(o)}).catch(function(l){e.errorLoadingRunnable.forEach(function(o){return o(l)}),e.errorLoadingRunnable=[],s(l)})})},e.getInstance=function(){return e.instance},e.setLoadingState=function(t){e.loadingState=t},e.getLoadingState=function(){return e.loadingState===null?wt.NOT_LOADED:e.loadingState},e.prototype.loadScript=function(t,n,i,r,s){var l=this;n===void 0&&(n=!1),i===void 0&&(i=!1),r===void 0&&(r={}),s===void 0&&(s="");var o=document.createElement("script");o.setAttribute("recaptcha-v3-script",""),o.setAttribute("async",""),o.setAttribute("defer","");var a="https://www.google.com/recaptcha/api.js";n?i?a="https://recaptcha.net/recaptcha/enterprise.js":a="https://recaptcha.net/recaptcha/api.js":i&&(a="https://www.google.com/recaptcha/enterprise.js"),s&&(a=s),r.render&&(r.render=void 0);var u=this.buildQueryString(r);return o.src=a+"?render=explicit"+u,new Promise(function(c,h){o.addEventListener("load",l.waitForScriptToLoad(function(){c(o)},i),!1),o.onerror=function(p){e.setLoadingState(wt.NOT_LOADED),h(p)},document.head.appendChild(o)})},e.prototype.buildQueryString=function(t){var n=Object.keys(t);return n.length<1?"":"&"+Object.keys(t).filter(function(i){return!!t[i]}).map(function(i){return i+"="+t[i]}).join("&")},e.prototype.waitForScriptToLoad=function(t,n){var i=this;return function(){window.grecaptcha===void 0?setTimeout(function(){i.waitForScriptToLoad(t,n)},e.SCRIPT_LOAD_DELAY):n?window.grecaptcha.enterprise.ready(function(){t()}):window.grecaptcha.ready(function(){t()})}},e.prototype.doExplicitRender=function(t,n,i,r){var s=Mr({sitekey:n},i);return i.container?r?t.enterprise.render(i.container,s):t.render(i.container,s):r?t.enterprise.render(s):t.render(s)},e.loadingState=null,e.instance=null,e.instanceSiteKey=null,e.successfulLoadingConsumers=[],e.errorLoadingRunnable=[],e.SCRIPT_LOAD_DELAY=25,e}();Xt.load=wo.load,Xt.getInstance=wo.getInstance,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=Xt;Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=Ln;Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})}(yo);const ko={},th=e=>{const t=ko[e]??(ko[e]=yo.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:n=>t.then(i=>i.execute(n))}},nh=e=>({execute:async t=>{const{load:n}=Fu("https://challenges.cloudflare.com/turnstile/v0/api.js",void 0,{async:!1});await n();const i=window==null?void 0:window.turnstile;return new Promise(r=>{i==null||i.ready(()=>{i==null||i.render(".wl-captcha-container",{sitekey:e,action:t,size:"compact",callback:r})})})}}),ih="WALINE_USER";let xo=null;const $i=()=>xo??(xo=Qt(ih,{})),rh={key:0,class:"wl-reaction"},sh=["textContent"],lh={class:"wl-reaction-list"},oh=["onClick"],ah={class:"wl-reaction-img"},ch=["src","alt"],uh=["textContent"],fh=["textContent"];var hh=gn({__name:"ArticleReaction",setup(e,{expose:t}){t();const n=Jf(),i=ii("config"),r=q(-1),s=q([]),l=_e(()=>i.value.locale),o=_e(()=>i.value.reaction.length>0),a=_e(()=>{const{reaction:p,path:m}=i.value;return p.map((w,x)=>({icon:w,desc:l.value[`reaction${x}`],active:n.value[m]===x}))});let u;const c=async()=>{if(!o.value)return;const{serverURL:p,lang:m,path:w,reaction:x}=i.value,C=new AbortController;u=C.abort.bind(C);const v=await Ei({serverURL:p,lang:m,paths:[w],type:x.map(($,H)=>`reaction${H}`),signal:C.signal});s.value=x.map(($,H)=>v[0][`reaction${H}`])},h=async p=>{if(r.value===-1){const{serverURL:m,lang:w,path:x}=i.value,C=n.value[x];r.value=p,C!==void 0&&(await zn({serverURL:m,lang:w,path:x,type:`reaction${C}`,action:"desc"}),s.value[C]=Math.max(s.value[C]-1,0)),C!==p&&(await zn({serverURL:m,lang:w,path:x,type:`reaction${p}`}),s.value[p]=(s.value[p]||0)+1),C===p?delete n.value[x]:n.value[x]=p,r.value=-1}};return vn(()=>{qe(()=>[i.value.serverURL,i.value.path],()=>{c()},{immediate:!0})}),lr(()=>u==null?void 0:u()),(p,m)=>a.value.length?(L(),j("div",rh,[D("div",{class:"wl-reaction-title",textContent:Y(l.value.reactionTitle)},null,8,sh),D("ul",lh,[(L(!0),j(he,null,We(a.value,({active:w,icon:x,desc:C},v)=>(L(),j("li",{key:v,class:ve(["wl-reaction-item",{active:w}]),onClick:$=>h(v)},[D("div",ah,[D("img",{src:x,alt:C},null,8,ch),r.value===v?(L(),ut(K(In),{key:0,class:"wl-reaction-loading"})):(L(),j("div",{key:1,class:"wl-reaction-votes",textContent:Y(s.value[v]||0)},null,8,uh))]),D("div",{class:"wl-reaction-text",textContent:Y(C)},null,8,fh)],10,oh))),128))])])):J("v-if",!0)}}),Mn=new Map;function dh(e){var t=Mn.get(e);t&&t.destroy()}function ph(e){var t=Mn.get(e);t&&t.update()}var On=null;typeof window>"u"?((On=function(e){return e}).destroy=function(e){return e},On.update=function(e){return e}):((On=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(n){return function(i){if(i&&i.nodeName&&i.nodeName==="TEXTAREA"&&!Mn.has(i)){var r,s=null,l=window.getComputedStyle(i),o=(r=i.value,function(){u({testForHeightReduction:r===""||!i.value.startsWith(r),restoreTextAlign:null}),r=i.value}),a=(function(h){i.removeEventListener("autosize:destroy",a),i.removeEventListener("autosize:update",c),i.removeEventListener("input",o),window.removeEventListener("resize",c),Object.keys(h).forEach(function(p){return i.style[p]=h[p]}),Mn.delete(i)}).bind(i,{height:i.style.height,resize:i.style.resize,textAlign:i.style.textAlign,overflowY:i.style.overflowY,overflowX:i.style.overflowX,wordWrap:i.style.wordWrap});i.addEventListener("autosize:destroy",a),i.addEventListener("autosize:update",c),i.addEventListener("input",o),window.addEventListener("resize",c),i.style.overflowX="hidden",i.style.wordWrap="break-word",Mn.set(i,{destroy:a,update:c}),c()}function u(h){var p,m,w=h.restoreTextAlign,x=w===void 0?null:w,C=h.testForHeightReduction,v=C===void 0||C,$=l.overflowY;if(i.scrollHeight!==0&&(l.resize==="vertical"?i.style.resize="none":l.resize==="both"&&(i.style.resize="horizontal"),v&&(p=function(A){for(var z=[];A&&A.parentNode&&A.parentNode instanceof Element;)A.parentNode.scrollTop&&z.push([A.parentNode,A.parentNode.scrollTop]),A=A.parentNode;return function(){return z.forEach(function(W){var U=W[0],X=W[1];U.style.scrollBehavior="auto",U.scrollTop=X,U.style.scrollBehavior=null})}}(i),i.style.height=""),m=l.boxSizing==="content-box"?i.scrollHeight-(parseFloat(l.paddingTop)+parseFloat(l.paddingBottom)):i.scrollHeight+parseFloat(l.borderTopWidth)+parseFloat(l.borderBottomWidth),l.maxHeight!=="none"&&m>parseFloat(l.maxHeight)?(l.overflowY==="hidden"&&(i.style.overflow="scroll"),m=parseFloat(l.maxHeight)):l.overflowY!=="hidden"&&(i.style.overflow="hidden"),i.style.height=m+"px",x&&(i.style.textAlign=x),p&&p(),s!==m&&(i.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),s=m),$!==l.overflow&&!x)){var H=l.textAlign;l.overflow==="hidden"&&(i.style.textAlign=H==="start"?"end":"start"),u({restoreTextAlign:H,testForHeightReduction:!0})}}function c(){u({testForHeightReduction:!0,restoreTextAlign:null})}}(n)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],dh),e},On.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],ph),e});var _o=On;const gh=["data-index"],mh=["src","title","onClick"];var vh=gn({__name:"ImageWall",props:{items:{default:()=>[]},columnWidth:{default:300},gap:{default:0}},emits:["insert"],setup(e,{expose:t}){const n=e;t();let i=null;const r=q(null),s=q({}),l=q([]),o=()=>{const p=Math.floor((r.value.getBoundingClientRect().width+n.gap)/(n.columnWidth+n.gap));return p>0?p:1},a=p=>new Array(p).fill(null).map(()=>[]),u=async p=>{var m;if(p>=n.items.length)return;await Kt();const w=Array.from(((m=r.value)==null?void 0:m.children)??[]).reduce((x,C)=>C.getBoundingClientRect().height<x.getBoundingClientRect().height?C:x);l.value[Number(w.dataset.index)].push(p),await u(p+1)},c=async(p=!1)=>{if(l.value.length===o()&&!p)return;l.value=a(o());const m=window.scrollY;await u(0),window.scrollTo({top:m})},h=p=>{s.value[p.target.src]=!0};return vn(()=>{c(!0),i=new ResizeObserver(()=>{c()}),i.observe(r.value),qe(()=>[n.items],()=>{s.value={},c(!0)}),qe(()=>[n.columnWidth,n.gap],()=>{c()})}),Ja(()=>i.unobserve(r.value)),(p,m)=>(L(),j("div",{ref_key:"wall",ref:r,class:"wl-gallery",style:sn({gap:`${p.gap}px`})},[(L(!0),j(he,null,We(l.value,(w,x)=>(L(),j("div",{key:x,class:"wl-gallery-column","data-index":x,style:sn({gap:`${p.gap}px`})},[(L(!0),j(he,null,We(w,C=>(L(),j(he,{key:C},[s.value[p.items[C].src]?J("v-if",!0):(L(),ut(K(In),{key:0,size:36,style:{margin:"20px auto"}})),D("img",{class:"wl-gallery-item",src:p.items[C].src,title:p.items[C].title,loading:"lazy",onLoad:h,onClick:v=>p.$emit("insert",`![](${p.items[C].src})`)},null,40,mh)],64))),128))],12,gh))),128))],4))}});const bh={key:0,class:"wl-login-info"},yh={class:"wl-avatar"},wh=["title"],kh=["title"],xh=["src"],_h=["title","textContent"],$h={class:"wl-panel"},Ch=["for","textContent"],Sh=["id","onUpdate:modelValue","name","type"],Eh=["placeholder"],Th={class:"wl-preview"},Ah=["innerHTML"],Rh={class:"wl-footer"},Ih={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"},Mh=["title"],Oh=["title"],jh=["title","aria-label"],zh=["title"],Ph={class:"wl-info"},Fh={class:"wl-text-number"},Dh={key:0},Uh=["textContent"],Hh=["textContent"],Nh=["disabled"],Vh=["placeholder"],Bh={key:1,class:"wl-loading"},Wh={key:0,class:"wl-tab-wrapper"},qh=["title","onClick"],Kh=["src","alt"],Gh={key:0,class:"wl-tabs"},Zh=["onClick"],Jh=["src","alt","title"],Qh=["title"];var $o=gn({__name:"CommentBox",props:{edit:{default:null},rootId:{default:""},replyId:{default:""},replyUser:{default:""}},emits:["log","cancelEdit","cancelReply","submit"],setup(e,{emit:t}){const n=e,i=t,r=ii("config"),s=Kf(),l=qf(),o=$i(),a=q({}),u=q(null),c=q(null),h=q(null),p=q(null),m=q(null),w=q(null),x=q(null),C=q({tabs:[],map:{}}),v=q(0),$=q(!1),H=q(!1),A=q(!1),z=q(""),W=q(0),U=un({loading:!0,list:[]}),X=q(0),Pe=q(!1),G=q(""),se=q(!1),be=q(!1),P=_e(()=>r.value.locale),Q=_e(()=>{var O;return!!((O=o.value)!=null&&O.token)}),ce=_e(()=>r.value.imageUploader!==!1),$e=O=>{const T=u.value,V=T.selectionStart,pe=T.selectionEnd||0,f=T.scrollTop;s.value=T.value.substring(0,V)+O+T.value.substring(pe,T.value.length),T.focus(),T.selectionStart=V+O.length,T.selectionEnd=V+O.length,T.scrollTop=f},we=O=>{if(se.value)return;const T=O.key;(O.ctrlKey||O.metaKey)&&T==="Enter"&&He()},ke=O=>{const T=`![${r.value.locale.uploading} ${O.name}]()`;return $e(T),se.value=!0,Promise.resolve().then(()=>r.value.imageUploader(O)).then(V=>{s.value=s.value.replace(T,`\r
82
+ ![${O.name}](${V})`)}).catch(V=>{alert(V.message),s.value=s.value.replace(T,"")}).then(()=>{se.value=!1})},Me=O=>{var T;if((T=O.dataTransfer)!=null&&T.items){const V=Vl(O.dataTransfer.items);V&&ce.value&&(ke(V),O.preventDefault())}},kt=O=>{if(O.clipboardData){const T=Vl(O.clipboardData.items);T&&ce.value&&ke(T)}},zt=()=>{const O=c.value;O.files&&ce.value&&ke(O.files[0]).then(()=>{O.value=""})},He=async()=>{var O,T,V,pe,f,d;const{serverURL:g,lang:y,login:b,wordLimit:k,requiredMeta:R,recaptchaV3Key:E,turnstileKey:S}=r.value,_=await jf(),M={comment:G.value,nick:l.value.nick,mail:l.value.mail,link:l.value.link,url:r.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(b==="force")return;if(R.includes("nick")&&!M.nick)return(T=a.value.nick)==null||T.focus(),alert(P.value.nickError);if(R.includes("mail")&&!M.mail||M.mail&&!Yo(M.mail))return(V=a.value.mail)==null||V.focus(),alert(P.value.mailError);M.nick||(M.nick=P.value.anonymous)}if(!M.comment){(pe=u.value)==null||pe.focus();return}if(!Pe.value)return alert(P.value.wordHint.replace("$0",k[0].toString()).replace("$1",k[1].toString()).replace("$2",W.value.toString()));M.comment=ho(M.comment,C.value.map),n.replyId&&n.rootId&&(M.pid=n.replyId,M.rid=n.rootId,M.at=n.replyUser),se.value=!0;try{E&&(M.recaptchaV3=await th(E).execute("social")),S&&(M.turnstile=await nh(S).execute("social"));const I={serverURL:g,lang:y,token:(f=o.value)==null?void 0:f.token,comment:M},F=await(n.edit?tn({objectId:n.edit.objectId,...I}):zr(I));if(se.value=!1,F.errmsg)return alert(F.errmsg);i("submit",F.data),s.value="",z.value="",await Kt(),n.replyId&&i("cancelReply"),(d=n.edit)!=null&&d.objectId&&i("cancelEdit")}catch(I){se.value=!1,alert(I.message)}},Ci=O=>{O.preventDefault();const{lang:T,serverURL:V}=r.value;Dr({serverURL:V,lang:T}).then(pe=>{o.value=pe,(pe.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(pe)),i("log")})},Or=()=>{o.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),i("log")},Si=O=>{O.preventDefault();const{lang:T,serverURL:V}=r.value,pe=800,f=800,d=(window.innerWidth-pe)/2,g=(window.innerHeight-f)/2,y=new URLSearchParams({lng:T,token:o.value.token}),b=window.open(`${V}/ui/profile?${y.toString()}`,"_blank",`width=${pe},height=${f},left=${d},top=${g},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);b==null||b.postMessage({type:"TOKEN",data:o.value.token},"*")},Pt=O=>{var T,V,pe,f;!((T=h.value)!=null&&T.contains(O.target))&&!((V=p.value)!=null&&V.contains(O.target))&&($.value=!1),!((pe=m.value)!=null&&pe.contains(O.target))&&!((f=w.value)!=null&&f.contains(O.target))&&(H.value=!1)},Ft=async O=>{var T;const{scrollTop:V,clientHeight:pe,scrollHeight:f}=O.target,d=(pe+V)/f,g=r.value.search,y=((T=x.value)==null?void 0:T.value)??"";d<.9||U.loading||be.value||(U.loading=!0,(g.more&&U.list.length?await g.more(y,U.list.length):await g.search(y)).length?U.list=[...U.list,...g.more&&U.list.length?await g.more(y,U.list.length):await g.search(y)]:be.value=!0,U.loading=!1,setTimeout(()=>{O.target.scrollTop=V},50))},en=Cu(O=>{U.list=[],be.value=!1,Ft(O)},300);return qe([r,W],([O,T])=>{const{wordLimit:V}=O;V?T<V[0]&&V[0]!==0?(X.value=V[0],Pe.value=!1):T>V[1]?(X.value=V[1],Pe.value=!1):(X.value=V[1],Pe.value=!0):(X.value=0,Pe.value=!0)},{immediate:!0}),mi("click",Pt),mi("message",({data:O})=>{!O||O.type!=="profile"||(o.value={...o.value,...O.data},[localStorage,sessionStorage].filter(T=>T.getItem("WALINE_USER")).forEach(T=>T.setItem("WALINE_USER",JSON.stringify(o))))}),qe(H,async O=>{var T;if(!O)return;const V=r.value.search;x.value&&(x.value.value=""),U.loading=!0,U.list=await(((T=V.default)==null?void 0:T.call(V))??V.search("")),U.loading=!1}),vn(()=>{var O;(O=n.edit)!=null&&O.objectId&&(s.value=n.edit.orig),qe(()=>s.value,T=>{const{highlighter:V,texRenderer:pe}=r.value;G.value=T,z.value=If(T,{emojiMap:C.value.map,highlighter:V,texRenderer:pe}),W.value=Of(T),T?_o(u.value):_o.destroy(u.value)},{immediate:!0}),qe(()=>r.value.emoji,T=>Vu(T).then(V=>{C.value=V}),{immediate:!0})}),(O,T)=>{var V,pe;return L(),j("div",{key:K(o).token,class:"wl-comment"},[K(r).login!=="disable"&&Q.value&&!((V=O.edit)!=null&&V.objectId)?(L(),j("div",bh,[D("div",yh,[D("button",{type:"submit",class:"wl-logout-btn",title:P.value.logout,onClick:Or},[oe(K(go),{size:14})],8,wh),D("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:P.value.profile,onClick:Si},[D("img",{src:K(o).avatar,alt:"avatar"},null,8,xh)],8,kh)]),D("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:P.value.profile,onClick:Si,textContent:Y(K(o).display_name)},null,8,_h)])):J("v-if",!0),D("div",$h,[K(r).login!=="force"&&K(r).meta.length&&!Q.value?(L(),j("div",{key:0,class:ve(["wl-header",`item${K(r).meta.length}`])},[(L(!0),j(he,null,We(K(r).meta,f=>(L(),j("div",{key:f,class:"wl-header-item"},[D("label",{for:`wl-${f}`,textContent:Y(P.value[f]+(K(r).requiredMeta.includes(f)||!K(r).requiredMeta.length?"":`(${P.value.optional})`))},null,8,Ch),ti(D("input",{id:`wl-${f}`,ref_for:!0,ref:d=>{d&&(a.value[f]=d)},"onUpdate:modelValue":d=>K(l)[f]=d,class:ve(["wl-input",`wl-${f}`]),name:f,type:f==="mail"?"email":"text"},null,10,Sh),[[pu,K(l)[f]]])]))),128))],2)):J("v-if",!0),ti(D("textarea",{id:"wl-edit",ref_key:"editorRef",ref:u,"onUpdate:modelValue":T[0]||(T[0]=f=>xe(s)?s.value=f:null),class:"wl-editor",placeholder:O.replyUser?`@${O.replyUser}`:P.value.placeholder,onKeydown:we,onDrop:Me,onPaste:kt},null,40,Eh),[[kr,K(s)]]),ti(D("div",Th,[T[7]||(T[7]=D("hr",null,null,-1)),D("h4",null,Y(P.value.preview)+":",1),D("div",{class:"wl-content",innerHTML:z.value},null,8,Ah)],512),[[_l,A.value]]),D("div",Rh,[D("div",Ih,[D("a",Lh,[oe(K(Hf))]),ti(D("button",{ref_key:"emojiButtonRef",ref:h,type:"button",class:ve(["wl-action",{active:$.value}]),title:P.value.emoji,onClick:T[1]||(T[1]=f=>$.value=!$.value)},[oe(K(Pf))],10,Mh),[[_l,C.value.tabs.length]]),K(r).search?(L(),j("button",{key:0,ref_key:"gifButtonRef",ref:m,type:"button",class:ve(["wl-action",{active:H.value}]),title:P.value.gif,onClick:T[2]||(T[2]=f=>H.value=!H.value)},[oe(K(Wf))],10,Oh)):J("v-if",!0),D("input",{id:"wl-image-upload",ref_key:"imageUploadRef",ref:c,class:"upload","aria-hidden":"true",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:zt},null,544),ce.value?(L(),j("label",{key:1,for:"wl-image-upload",class:"wl-action",title:P.value.uploadImage,"aria-label":P.value.uploadImage},[oe(K(Ff))],8,jh)):J("v-if",!0),D("button",{type:"button",class:ve(["wl-action",{active:A.value}]),title:P.value.preview,onClick:T[3]||(T[3]=f=>A.value=!A.value)},[oe(K(Uf))],10,zh)]),D("div",Ph,[T[9]||(T[9]=D("div",{class:"wl-captcha-container"},null,-1)),D("div",Fh,[ft(Y(W.value)+" ",1),K(r).wordLimit?(L(),j("span",Dh,[T[8]||(T[8]=ft("  /  ")),D("span",{class:ve({illegal:!Pe.value}),textContent:Y(X.value)},null,10,Uh)])):J("v-if",!0),ft("  "+Y(P.value.word),1)]),K(r).login!=="disable"&&!Q.value?(L(),j("button",{key:0,type:"button",class:"wl-btn",onClick:Ci,textContent:Y(P.value.login)},null,8,Hh)):J("v-if",!0),K(r).login!=="force"||Q.value?(L(),j("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:se.value,onClick:He},[se.value?(L(),ut(K(In),{key:0,size:16})):(L(),j(he,{key:1},[ft(Y(P.value.submit),1)],64))],8,Nh)):J("v-if",!0)]),D("div",{ref_key:"gifPopupRef",ref:w,class:ve(["wl-gif-popup",{display:H.value}])},[D("input",{ref_key:"gifSearchInputRef",ref:x,type:"text",placeholder:P.value.gifSearchPlaceholder,onInput:T[4]||(T[4]=(...f)=>K(en)&&K(en)(...f))},null,40,Vh),U.list.length?(L(),ut(vh,{key:0,items:U.list,"column-width":200,gap:6,onInsert:T[5]||(T[5]=f=>$e(f)),onScroll:Ft},null,8,["items"])):J("v-if",!0),U.loading?(L(),j("div",Bh,[oe(K(In),{size:30})])):J("v-if",!0)],2),D("div",{ref_key:"emojiPopupRef",ref:p,class:ve(["wl-emoji-popup",{display:$.value}])},[(L(!0),j(he,null,We(C.value.tabs,(f,d)=>(L(),j(he,{key:f.name},[d===v.value?(L(),j("div",Wh,[(L(!0),j(he,null,We(f.items,g=>(L(),j("button",{key:g,type:"button",title:g,onClick:y=>$e(`:${g}:`)},[$.value?(L(),j("img",{key:0,class:"wl-emoji",src:C.value.map[g],alt:g,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Kh)):J("v-if",!0)],8,qh))),128))])):J("v-if",!0)],64))),128)),C.value.tabs.length>1?(L(),j("div",Gh,[(L(!0),j(he,null,We(C.value.tabs,(f,d)=>(L(),j("button",{key:f.name,type:"button",class:ve(["wl-tab",{active:v.value===d}]),onClick:g=>v.value=d},[D("img",{class:"wl-emoji",src:f.icon,alt:f.name,title:f.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Jh)],10,Zh))),128))])):J("v-if",!0)],2)])]),O.replyId||(pe=O.edit)!=null&&pe.objectId?(L(),j("button",{key:1,type:"button",class:"wl-close",title:P.value.cancelReply,onClick:T[6]||(T[6]=f=>O.replyId?i("cancelReply"):i("cancelEdit"))},[oe(K(go),{size:24})],8,Qh)):J("v-if",!0)])}}});const Yh=["id"],Xh={class:"wl-user","aria-hidden":"true"},ed=["src"],td={class:"wl-card"},nd={class:"wl-head"},id=["href"],rd={key:1,class:"wl-nick"},sd=["textContent"],ld=["textContent"],od=["textContent"],ad=["textContent"],cd=["textContent"],ud={class:"wl-comment-actions"},fd=["title"],hd=["title"],dd={class:"wl-meta","aria-hidden":"true"},pd=["data-value","textContent"],gd={key:0,class:"wl-content"},md={key:0},vd=["href"],bd=["innerHTML"],yd={key:1,class:"wl-admin-actions"},wd={class:"wl-comment-status"},kd=["disabled","onClick","textContent"],xd={key:3,class:"wl-quote"};var _d=gn({__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,i=t,r=["approved","waiting","spam"],s=ii("config"),l=vo(),o=Pu(),a=$i(),u=_e(()=>s.value.locale),c=_e(()=>{const{link:v}=n.comment;return v?rs(v)?v:`https://${v}`:""}),h=_e(()=>l.value.includes(n.comment.objectId)),p=_e(()=>Jo(new Date(n.comment.time),o.value,u.value)),m=_e(()=>a.value.type==="administrator"),w=_e(()=>n.comment.user_id&&a.value.objectId===n.comment.user_id),x=_e(()=>{var v;return n.comment.objectId===((v=n.reply)==null?void 0:v.objectId)}),C=_e(()=>{var v;return n.comment.objectId===((v=n.edit)==null?void 0:v.objectId)});return(v,$)=>{var H;const A=Ya("CommentCard",!0);return L(),j("div",{id:v.comment.objectId,class:"wl-card-item"},[D("div",Xh,[v.comment.avatar?(L(),j("img",{key:0,class:"wl-user-avatar",src:v.comment.avatar,alt:""},null,8,ed)):J("v-if",!0),v.comment.type?(L(),ut(K(Bf),{key:1})):J("v-if",!0)]),D("div",td,[D("div",nd,[c.value?(L(),j("a",{key:0,class:"wl-nick",href:c.value,target:"_blank",rel:"nofollow noopener noreferrer"},Y(v.comment.nick),9,id)):(L(),j("span",rd,Y(v.comment.nick),1)),v.comment.type==="administrator"?(L(),j("span",{key:2,class:"wl-badge",textContent:Y(u.value.admin)},null,8,sd)):J("v-if",!0),v.comment.label?(L(),j("span",{key:3,class:"wl-badge",textContent:Y(v.comment.label)},null,8,ld)):J("v-if",!0),v.comment.sticky?(L(),j("span",{key:4,class:"wl-badge",textContent:Y(u.value.sticky)},null,8,od)):J("v-if",!0),typeof v.comment.level=="number"?(L(),j("span",{key:5,class:ve(`wl-badge level${v.comment.level}`),textContent:Y(u.value[`level${v.comment.level}`]||`Level ${v.comment.level}`)},null,10,ad)):J("v-if",!0),D("span",{class:"wl-time",textContent:Y(p.value)},null,8,cd),D("div",ud,[m.value||w.value?(L(),j(he,{key:0},[D("button",{type:"button",class:"wl-edit",onClick:$[0]||($[0]=z=>i("edit",v.comment))},[oe(K(Vf))]),D("button",{type:"button",class:"wl-delete",onClick:$[1]||($[1]=z=>i("delete",v.comment))},[oe(K(zf))])],64)):J("v-if",!0),D("button",{type:"button",class:"wl-like",title:h.value?u.value.cancelLike:u.value.like,onClick:$[2]||($[2]=z=>i("like",v.comment))},[oe(K(Df),{active:h.value},null,8,["active"]),ft(" "+Y("like"in v.comment?v.comment.like:""),1)],8,fd),D("button",{type:"button",class:ve(["wl-reply",{active:x.value}]),title:x.value?u.value.cancelReply:u.value.reply,onClick:$[3]||($[3]=z=>i("reply",x.value?null:v.comment))},[oe(K(Nf))],10,hd)])]),D("div",dd,[(L(),j(he,null,We(["addr","browser","os"],z=>(L(),j(he,null,[v.comment[z]?(L(),j("span",{key:z,class:ve(`wl-${z}`),"data-value":v.comment[z],textContent:Y(v.comment[z])},null,10,pd)):J("v-if",!0)],64))),64))]),C.value?J("v-if",!0):(L(),j("div",gd,[v.comment.reply_user?(L(),j("p",md,[D("a",{href:"#"+v.comment.pid},"@"+Y(v.comment.reply_user.nick),9,vd),$[17]||($[17]=D("span",null,": ",-1))])):J("v-if",!0),D("div",{innerHTML:v.comment.comment},null,8,bd)])),m.value&&!C.value?(L(),j("div",yd,[D("span",wd,[(L(),j(he,null,We(r,z=>D("button",{key:z,type:"submit",class:ve(`wl-btn wl-${z}`),disabled:v.comment.status===z,onClick:W=>i("status",{status:z,comment:v.comment}),textContent:Y(u.value[z])},null,10,kd)),64))]),m.value&&!("rid"in v.comment)?(L(),j("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:$[4]||($[4]=z=>i("sticky",v.comment))},Y(v.comment.sticky?u.value.unsticky:u.value.sticky),1)):J("v-if",!0)])):J("v-if",!0),x.value||C.value?(L(),j("div",{key:2,class:ve({"wl-reply-wrapper":x.value,"wl-edit-wrapper":C.value})},[oe($o,{edit:v.edit,"reply-id":(H=v.reply)==null?void 0:H.objectId,"reply-user":v.comment.nick,"root-id":v.rootId,onLog:$[5]||($[5]=z=>i("log")),onCancelReply:$[6]||($[6]=z=>i("reply",null)),onCancelEdit:$[7]||($[7]=z=>i("edit",null)),onSubmit:$[8]||($[8]=z=>i("submit",z))},null,8,["edit","reply-id","reply-user","root-id"])],2)):J("v-if",!0),"children"in v.comment?(L(),j("div",xd,[(L(!0),j(he,null,We(v.comment.children,z=>(L(),ut(A,{key:z.objectId,comment:z,reply:v.reply,edit:v.edit,"root-id":v.rootId,onLog:$[9]||($[9]=W=>i("log")),onDelete:$[10]||($[10]=W=>i("delete",W)),onEdit:$[11]||($[11]=W=>i("edit",W)),onLike:$[12]||($[12]=W=>i("like",W)),onReply:$[13]||($[13]=W=>i("reply",W)),onStatus:$[14]||($[14]=W=>i("status",W)),onSticky:$[15]||($[15]=W=>i("sticky",W)),onSubmit:$[16]||($[16]=W=>i("submit",W))},null,8,["comment","reply","edit","root-id"]))),128))])):J("v-if",!0)])],8,Yh)}}});const Co="3.3.1",$d={"data-waline":""},Cd={class:"wl-meta-head"},Sd={class:"wl-count"},Ed=["textContent"],Td={class:"wl-sort"},Ad=["onClick"],Rd={class:"wl-cards"},Id={key:1,class:"wl-operation"},Ld=["textContent"],Md={key:2,class:"wl-loading"},Od=["textContent"],jd={key:4,class:"wl-operation"},zd=["textContent"],Pd={key:5,class:"wl-power"};var Fd=gn({__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"},i=Object.keys(n),r=$i(),s=vo(),l=q("loading"),o=q(0),a=q(1),u=q(0),c=_e(()=>Ko(t)),h=q(c.value.commentSorting),p=q([]),m=q(null),w=q(null),x=_e(()=>Go(c.value.dark)),C=_e(()=>c.value.locale);Uu(x,{id:"waline-darkmode"});let v;const $=P=>{var Q;const{serverURL:ce,path:$e,pageSize:we}=c.value,ke=new AbortController;l.value="loading",v==null||v(),jr({serverURL:ce,lang:c.value.lang,path:$e,pageSize:we,sortBy:n[h.value],page:P,signal:ke.signal,token:(Q=r.value)==null?void 0:Q.token}).then(Me=>{l.value="success",o.value=Me.count,p.value.push(...Me.data),a.value=P,u.value=Me.totalPages}).catch(Me=>{Me.name!=="AbortError"&&(console.error(Me.message),l.value="error")}),v=ke.abort.bind(ke)},H=()=>$(a.value+1),A=()=>{o.value=0,p.value=[],$(1)},z=P=>{h.value!==P&&(h.value=P,A())},W=P=>{m.value=P},U=P=>{w.value=P},X=P=>{if(w.value)w.value.comment=P.comment,w.value.orig=P.orig;else if("rid"in P){const Q=p.value.find(({objectId:ce})=>ce===P.rid);if(!Q)return;Array.isArray(Q.children)||(Q.children=[]),Q.children.push(P)}else p.value.unshift(P),o.value+=1},Pe=async({comment:P,status:Q})=>{var ce;if(P.status===Q)return;const{serverURL:$e,lang:we}=c.value;await tn({serverURL:$e,lang:we,token:(ce=r.value)==null?void 0:ce.token,objectId:P.objectId,comment:{status:Q}}),P.status=Q},G=async P=>{var Q;if("rid"in P)return;const{serverURL:ce,lang:$e}=c.value;await tn({serverURL:ce,lang:$e,token:(Q=r.value)==null?void 0:Q.token,objectId:P.objectId,comment:{sticky:P.sticky?0:1}}),P.sticky=!P.sticky},se=async({objectId:P})=>{var Q;if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:ce,lang:$e}=c.value;await Pr({serverURL:ce,lang:$e,token:(Q=r.value)==null?void 0:Q.token,objectId:P}),p.value.some((we,ke)=>we.objectId===P?(p.value=p.value.filter((Me,kt)=>kt!==ke),!0):we.children.some((Me,kt)=>Me.objectId===P?(p.value[ke].children=we.children.filter((zt,He)=>He!==kt),!0):!1))},be=async P=>{var Q;const{serverURL:ce,lang:$e}=c.value,{objectId:we}=P,ke=s.value.includes(we);await tn({serverURL:ce,lang:$e,objectId:we,token:(Q=r.value)==null?void 0:Q.token,comment:{like:!ke}}),ke?s.value=s.value.filter(Me=>Me!==we):(s.value=[...s.value,we],s.value.length>50&&(s.value=s.value.slice(-50))),P.like=(P.like||0)+(ke?-1:1)};return ac("config",c),vn(()=>{qe(()=>[t.serverURL,t.path],()=>A(),{immediate:!0})}),lr(()=>v==null?void 0:v()),(P,Q)=>(L(),j("div",$d,[oe(hh),!m.value&&!w.value?(L(),ut($o,{key:0,onLog:A,onSubmit:X})):J("v-if",!0),D("div",Cd,[D("div",Sd,[o.value?(L(),j("span",{key:0,class:"wl-num",textContent:Y(o.value)},null,8,Ed)):J("v-if",!0),ft(" "+Y(C.value.comment),1)]),D("ul",Td,[(L(!0),j(he,null,We(K(i),ce=>(L(),j("li",{key:ce,class:ve([ce===h.value?"active":""]),onClick:$e=>z(ce)},Y(C.value[ce]),11,Ad))),128))])]),D("div",Rd,[(L(!0),j(he,null,We(p.value,ce=>(L(),ut(_d,{key:ce.objectId,"root-id":ce.objectId,comment:ce,reply:m.value,edit:w.value,onLog:A,onReply:W,onEdit:U,onSubmit:X,onStatus:Pe,onDelete:se,onSticky:G,onLike:be},null,8,["root-id","comment","reply","edit"]))),128))]),l.value==="error"?(L(),j("div",Id,[D("button",{type:"button",class:"wl-btn",onClick:A,textContent:Y(C.value.refresh)},null,8,Ld)])):l.value==="loading"?(L(),j("div",Md,[oe(K(In),{size:30})])):p.value.length?a.value<u.value?(L(),j("div",jd,[D("button",{type:"button",class:"wl-btn",onClick:H,textContent:Y(C.value.more)},null,8,zd)])):J("v-if",!0):(L(),j("div",{key:3,class:"wl-empty",textContent:Y(C.value.sofa)},null,8,Od)),c.value.copyright?(L(),j("div",Pd,[Q[0]||(Q[0]=ft(" Powered by ")),Q[1]||(Q[1]=D("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1)),ft(" v"+Y(K(Co)),1)])):J("v-if",!0)]))}});const So=(e,t)=>{t.forEach((n,i)=>{const r=e[i].time;typeof r=="number"&&(n.innerText=r.toString())})},Eo=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:i=!0,lang:r=navigator.language})=>{const s=new AbortController,l=Array.from(document.querySelectorAll(n)),o=u=>{const c=Lr(u);return c!==null&&t!==c},a=u=>Ur({serverURL:Fn(e),paths:u.map(c=>Lr(c)??t),lang:r,signal:s.signal}).then(c=>So(c,u)).catch(Nl);if(i){const u=l.filter(h=>!o(h)),c=l.filter(o);Hr({serverURL:Fn(e),path:t,lang:r}).then(h=>So(h,u)),c.length&&a(c)}else a(l);return s.abort.bind(s)},Dd=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:i=!1,...r})=>{const s=e?_r(e):null;if(e&&!s)throw new Error("Option 'el' do not match any domElement!");if(!r.serverURL)throw new Error("Option 'serverURL' is missing!");const l=un({...r}),o=un({comment:n,pageview:i,path:t}),a=()=>{o.comment&&po({serverURL:l.serverURL,path:o.path,...Dt(o.comment)?{selector:o.comment}:{}})},u=()=>{o.pageview&&Eo({serverURL:l.serverURL,path:o.path,...Dt(o.pageview)?{selector:o.pageview}:{}})},c=s?bu(()=>ne(Fd,{path:o.path,...l})):null;c&&c.mount(s);const h=ol(a),p=ol(u);return{el:s,update:({comment:m,pageview:w,path:x=window.location.pathname,...C}={})=>{Object.entries(C).forEach(([v,$])=>{l[v]=$}),o.path=x,m!==void 0&&(o.comment=m),w!==void 0&&(o.pageview=w)},destroy:()=>{c==null||c.unmount(),h(),p()}}},Ud=({el:e,serverURL:t,count:n,lang:i=navigator.language})=>{var r;const s=$i(),l=_r(e),o=new AbortController;return Nr({serverURL:t,count:n,lang:i,signal:o.signal,token:(r=s.value)==null?void 0:r.token}).then(a=>l&&a.length?(l.innerHTML=`<ul class="wl-recent-list">${a.map(u=>`<li class="wl-recent-item"><a href="${u.url}">${u.nick}</a>:${u.comment}</li>`).join("")}</ul>`,{comments:a,destroy:()=>{o.abort(),l.innerHTML=""}}):{comments:a,destroy:()=>o.abort()})},Hd=({el:e,serverURL:t,count:n,locale:i,lang:r=navigator.language,mode:s="list"})=>{const l=_r(e),o=new AbortController;return Vr({serverURL:t,pageSize:n,lang:r,signal:o.signal}).then(a=>!l||!a.length?{users:a,destroy:()=>o.abort()}:(i={...es(r),...typeof i=="object"?i:{}},l.innerHTML=`<ul class="wl-user-${s}">${a.map((u,c)=>[`<li class="wl-user-item" aria-label="${u.nick}">`,u.link&&`<a href="${u.link}" target="_blank">`,'<div class="wl-user-avatar">',`<img src="${u.avatar}" alt="${u.nick}">`,`<span class="wl-user-badge">${c+1}</span>`,"</div>",'<div class="wl-user-meta">','<div class="wl-user-name">',u.nick,u.level&&`<span class="wl-badge">${i?i[`level${u.level}`]:`Level ${u.level}`}</span>`,u.label&&`<span class="wl-badge">${u.label}</span>`,"</div>",u.link&&u.link,"</div>",u.link&&"</a>","</li>"].filter(h=>h).join("")).join("")}</ul>`,{users:a,destroy:()=>{o.abort(),l.innerHTML=""}}))};ie.RecentComments=Ud,ie.UserList=Hd,ie.addComment=zr,ie.commentCount=po,ie.defaultLocales=Pn,ie.deleteComment=Pr,ie.fetchCommentCount=Fr,ie.getArticleCounter=Ei,ie.getComment=jr,ie.getPageview=Ur,ie.getRecentComment=Nr,ie.getUserList=Vr,ie.init=Dd,ie.login=Dr,ie.pageviewCount=Eo,ie.updateArticleCounter=zn,ie.updateComment=tn,ie.updatePageview=Hr,ie.version=Co});
73
83
  //# sourceMappingURL=waline.umd.js.map