@waline/client 3.0.0-alpha.7 → 3.0.0-alpha.8
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.
- package/dist/comment.mjs +1 -1
- package/dist/component.js +1 -1
- package/dist/pageview.js +1 -1
- package/dist/{shim.js → slim.js} +2 -2
- package/dist/{shim.js.map → slim.js.map} +1 -1
- package/dist/waline.js +10 -10
- package/dist/waline.js.map +1 -1
- package/dist/waline.umd.js +54 -0
- package/dist/waline.umd.js.map +1 -0
- package/package.json +9 -9
- package/dist/comment.umd.js +0 -2
- package/dist/comment.umd.js.map +0 -1
- package/dist/pageview.umd.js +0 -2
- package/dist/pageview.umd.js.map +0 -1
- /package/dist/{shim.d.ts → slim.d.ts} +0 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
var $h=Object.defineProperty;var Eh=(J,fe,pe)=>fe in J?$h(J,fe,{enumerable:!0,configurable:!0,writable:!0,value:pe}):J[fe]=pe;var Ne=(J,fe,pe)=>(Eh(J,typeof fe!="symbol"?fe+"":fe,pe),pe),Rh=(J,fe,pe)=>{if(!fe.has(J))throw TypeError("Cannot "+pe)};var Ri=(J,fe,pe)=>{if(fe.has(J))throw TypeError("Cannot add the same private member more than once");fe instanceof WeakSet?fe.add(J):fe.set(J,pe)};var xr=(J,fe,pe)=>(Rh(J,fe,"access private method"),pe);(function(J,fe){typeof exports=="object"&&typeof module<"u"?fe(exports):typeof define=="function"&&define.amd?define(["exports"],fe):(J=typeof globalThis<"u"?globalThis:J||self,fe(J.Waline={}))})(this,function(J){"use strict";var $n,Ti,kr,ho;const fe={"Content-Type":"application/json"},pe=e=>`${e.replace(/\/?$/,"/")}api/`,At=(e,t="")=>{if(typeof e=="object"&&e.errno)throw new TypeError(`${t} failed with ${e.errno}: ${e.errmsg}`);return e},_r=({serverURL:e,lang:t,paths:n,type:r,signal:i})=>fetch(`${pe(e)}article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(r.join(","))}&lang=${t}`,{signal:i}).then(l=>l.json()),An=({serverURL:e,lang:t,path:n,type:r,action:i})=>fetch(`${pe(e)}article?lang=${t}`,{method:"POST",headers:fe,body:JSON.stringify({path:n,type:r,action:i})}).then(l=>l.json()).then(l=>At(l,"Update counter").data),Ai=({serverURL:e,lang:t,path:n,page:r,pageSize:i,sortBy:l,signal:s,token:o})=>{const a={};return o&&(a.Authorization=`Bearer ${o}`),fetch(`${pe(e)}comment?path=${encodeURIComponent(n)}&pageSize=${i}&page=${r}&lang=${t}&sortBy=${l}`,{signal:s,headers:a}).then(c=>c.json()).then(c=>At(c,"Get comment data").data)},Ii=({serverURL:e,lang:t,token:n,comment:r})=>{const i={"Content-Type":"application/json"};return n&&(i.Authorization=`Bearer ${n}`),fetch(`${pe(e)}comment?lang=${t}`,{method:"POST",headers:i,body:JSON.stringify(r)}).then(l=>l.json())},Li=({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${pe(e)}comment/${r}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then(i=>i.json()).then(i=>At(i,"Delete comment")),qt=({serverURL:e,lang:t,token:n,objectId:r,comment:i})=>fetch(`${pe(e)}comment/${r}?lang=${t}`,{method:"PUT",headers:{...fe,Authorization:`Bearer ${n}`},body:JSON.stringify(i)}).then(l=>l.json()).then(l=>At(l,"Update comment")),Si=({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${pe(e)}comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then(i=>i.json()).then(i=>At(i,"Get comment count").data),Mi=({lang:e,serverURL:t})=>{const n=(window.innerWidth-450)/2,r=(window.innerHeight-450)/2,i=window.open(`${t.replace(/\/$/,"")}/ui/login?lng=${encodeURIComponent(e)}`,"_blank",`width=450,height=450,left=${n},top=${r},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);return i==null||i.postMessage({type:"TOKEN",data:null},"*"),new Promise(l=>{const s=({data:o})=>{!o||typeof o!="object"||o.type!=="userInfo"||o.data.token&&(i==null||i.close(),window.removeEventListener("message",s),l(o.data))};window.addEventListener("message",s)})},zi=({serverURL:e,lang:t,paths:n,signal:r})=>_r({serverURL:e,lang:t,paths:n,type:["time"],signal:r}).then(i=>Array.isArray(i)?i:[i]),Oi=e=>An({...e,type:"time",action:"inc"}),ji=({serverURL:e,lang:t,count:n,signal:r,token:i})=>{const l={};return i&&(l.Authorization=`Bearer ${i}`),fetch(`${pe(e)}comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:l}).then(s=>s.json())},Pi=({serverURL:e,signal:t,pageSize:n,lang:r})=>fetch(`${pe(e)}user?pageSize=${n}&lang=${r}`,{signal:t}).then(i=>i.json()).then(i=>At(i,"user list")).then(i=>i.data),po=["nick","mail","link"],Ui=e=>e.filter(t=>po.includes(t)),Fi=["//unpkg.com/@waline/emojis@1.1.0/weibo"],Ni="en-US",go=["//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>128*1e3)return n(new Error("File too large! File size limit 128KB"));const r=new FileReader;r.readAsDataURL(e),r.onload=()=>{var i;return t(((i=r.result)==null?void 0:i.toString())||"")},r.onerror=n}),vo=e=>e===!0?'<p class="wl-tex">TeX is not available in preview</p>':'<span class="wl-tex">TeX is not available in preview</span>',wo=e=>{const t=async(n,r={})=>fetch(`https://api.giphy.com/v1/gifs/${n}?${new URLSearchParams({lang:e,limit:"20",rating:"g",api_key:"6CIMLkNMMOhRcXPoMCPkFy4Ybk2XUiMp",...r}).toString()}`).then(i=>i.json()).then(({data:i})=>i.map(l=>({title:l.title,src:l.images.downsized_medium.url})));return{search:n=>t("search",{q:n,offset:"0"}),default:()=>t("trending",{}),more:(n,r=0)=>t("search",{q:n,offset:r.toString()})}},yo=/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/,bo=/</,ko=/(?:^|\s)\/\/(.+?)$/gm,xo=/\/\*([\S\s]*?)\*\//gm,_o=new RegExp(`(${yo.source}|${bo.source})|((?:${ko.source})|(?:${xo.source}))`,"gmi"),Hi=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],Cr={},Co=e=>{let t=0;return e.replace(_o,(n,r,i)=>{if(i)return`<span style="color: slategray">${i}</span>`;if(r==="<")return"<";let l;Cr[r]?l=Cr[r]:(l=Hi[t],Cr[r]=l);const s=`<span style="color: #${l}">${r}</span>`;return t=++t%Hi.length,s})},$o=["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"],It=e=>Object.fromEntries(e.map((t,n)=>[$o[n],t]));var $r=It(["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?"]),In=It(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード",`コメントは $0 から $1 ワードの間でなければなりません!
|
|
3
|
+
現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),Di=It(["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!
|
|
4
|
+
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?"]),Er=It(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова",`Пожалуйста, введите комментарии от $0 до $1 слов!
|
|
5
|
+
Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]),Rr=It(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字",`评论字数应在 $0 到 $1 字之间!
|
|
6
|
+
当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),Bi=It(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字",`留言字數應在 $0 到 $1 字之間!
|
|
7
|
+
目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]);const Lt={zh:Rr,"zh-cn":Rr,"zh-CN":Rr,"zh-tw":Bi,"zh-TW":Bi,en:$r,"en-US":$r,"en-us":$r,jp:In,ja:In,"jp-jp":In,"jp-JP":In,"pt-br":Di,"pt-BR":Di,ru:Er,"ru-ru":Er,"ru-RU":Er},Vi=e=>{try{e=decodeURI(e)}catch{}return e},Wi=(e="")=>e.replace(/\/$/u,""),qi=e=>/^(https?:)?\/\//.test(e),Ln=e=>{const t=Wi(e);return qi(t)?t:`https://${t}`},Eo=e=>Array.isArray(e)?e:e?[0,e]:!1,Tr=(e,t)=>typeof e=="function"?e:e===!1?!1:t,Ro=({serverURL:e,path:t=location.pathname,lang:n=typeof navigator>"u"?"en-US":navigator.language,locale:r,emoji:i=Fi,meta:l=["nick","mail","link"],requiredMeta:s=[],dark:o=!1,pageSize:a=10,wordLimit:c,imageUploader:f,highlighter:p,texRenderer:h,copyright:v=!0,login:I="enable",search:x,reaction:C,recaptchaV3Key:y="",turnstileKey:$="",commentSorting:H="latest",...T})=>({serverURL:Ln(e),path:Vi(t),locale:{...Lt[n]||Lt[Ni],...typeof r=="object"?r:{}},wordLimit:Eo(c),meta:Ui(l),requiredMeta:Ui(s),imageUploader:Tr(f,mo),highlighter:Tr(p,Co),texRenderer:Tr(h,vo),lang:Object.keys(Lt).includes(n)?n:"en-US",dark:o,emoji:typeof i=="boolean"?i?Fi:[]:i,pageSize:a,login:I,copyright:v,search:x===!1?!1:typeof x=="object"?x:wo(n),recaptchaV3Key:y,turnstileKey:$,reaction:Array.isArray(C)?C:C===!0?go:[],commentSorting:H,...T}),Ar="{--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}",To=e=>typeof e=="string"?e==="auto"?`@media(prefers-color-scheme:dark){body${Ar}}`:`${e}${Ar}`:e===!0?`:root${Ar}`:"",Ir=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},Ao=e=>{const t=Ir(e.getDate(),2),n=Ir(e.getMonth()+1,2);return`${Ir(e.getFullYear(),2)}-${n}-${t}`},Io=(e,t,n)=>{if(!e)return"";const r=typeof e=="string"?new Date(e.indexOf(" ")!==-1?e.replace(/-/g,"/"):e):e,i=t.getTime()-r.getTime(),l=Math.floor(i/(24*3600*1e3));if(l===0){const s=i%864e5,o=Math.floor(s/(3600*1e3));if(o===0){const a=s%36e5,c=Math.floor(a/(60*1e3));if(c===0){const f=a%6e4;return`${Math.round(f/1e3)} ${n.seconds}`}return`${c} ${n.minutes}`}return`${o} ${n.hours}`}return l<0?n.now:l<8?`${l} ${n.days}`:Ao(r)},Lo=/^[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])?)*$/,So=e=>Lo.test(e);function Lr(e,t){const n=Object.create(null),r=e.split(",");for(let i=0;i<r.length;i++)n[r[i]]=!0;return t?i=>!!n[i.toLowerCase()]:i=>!!n[i]}const ue={},St=[],gt=()=>{},Mo=()=>!1,Sn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Sr=e=>e.startsWith("onUpdate:"),Ce=Object.assign,Ki=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},zo=Object.prototype.hasOwnProperty,Q=(e,t)=>zo.call(e,t),F=Array.isArray,Mt=e=>Kt(e)==="[object Map]",zt=e=>Kt(e)==="[object Set]",Zi=e=>Kt(e)==="[object Date]",ne=e=>typeof e=="function",ye=e=>typeof e=="string",st=e=>typeof e=="symbol",de=e=>e!==null&&typeof e=="object",Ji=e=>(de(e)||ne(e))&&ne(e.then)&&ne(e.catch),Qi=Object.prototype.toString,Kt=e=>Qi.call(e),Oo=e=>Kt(e).slice(8,-1),Yi=e=>Kt(e)==="[object Object]",Mr=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Mn=Lr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),zn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},jo=/-(\w)/g,We=zn(e=>e.replace(jo,(t,n)=>n?n.toUpperCase():"")),Po=/\B([A-Z])/g,Ot=zn(e=>e.replace(Po,"-$1").toLowerCase()),On=zn(e=>e.charAt(0).toUpperCase()+e.slice(1)),zr=zn(e=>e?`on${On(e)}`:""),mt=(e,t)=>!Object.is(e,t),jn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Pn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Un=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Xi;const Or=()=>Xi||(Xi=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 n=0;n<e.length;n++){const r=e[n],i=ye(r)?Ho(r):Zt(r);if(i)for(const l in i)t[l]=i[l]}return t}else if(ye(e)||de(e))return e}const Uo=/;(?![^(]*\))/g,Fo=/:([^]+)/,No=/\/\*[^]*?\*\//g;function Ho(e){const t={};return e.replace(No,"").split(Uo).forEach(n=>{if(n){const r=n.split(Fo);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function me(e){let t="";if(ye(e))t=e;else if(F(e))for(let n=0;n<e.length;n++){const r=me(e[n]);r&&(t+=r+" ")}else if(de(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Do=Lr("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Gi(e){return!!e||e===""}function Bo(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=vt(e[r],t[r]);return n}function vt(e,t){if(e===t)return!0;let n=Zi(e),r=Zi(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=st(e),r=st(t),n||r)return e===t;if(n=F(e),r=F(t),n||r)return n&&r?Bo(e,t):!1;if(n=de(e),r=de(t),n||r){if(!n||!r)return!1;const i=Object.keys(e).length,l=Object.keys(t).length;if(i!==l)return!1;for(const s in e){const o=e.hasOwnProperty(s),a=t.hasOwnProperty(s);if(o&&!a||!o&&a||!vt(e[s],t[s]))return!1}}return String(e)===String(t)}function jr(e,t){return e.findIndex(n=>vt(n,t))}const re=e=>ye(e)?e:e==null?"":F(e)||de(e)&&(e.toString===Qi||!ne(e.toString))?JSON.stringify(e,el,2):String(e),el=(e,t)=>t&&t.__v_isRef?el(e,t.value):Mt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],l)=>(n[Pr(r,l)+" =>"]=i,n),{})}:zt(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Pr(n))}:st(t)?Pr(t):de(t)&&!F(t)&&!Yi(t)?String(t):t,Pr=(e,t="")=>{var n;return st(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let Le;class Vo{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Le,!t&&Le&&(this.index=(Le.scopes||(Le.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Le;try{return Le=this,t()}finally{Le=n}}}on(){Le=this}off(){Le=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function Wo(e,t=Le){t&&t.active&&t.effects.push(e)}function tl(){return Le}function qo(e){Le&&Le.cleanups.push(e)}const Ur=e=>{const t=new Set(e);return t.w=0,t.n=0,t},nl=e=>(e.w&ot)>0,rl=e=>(e.n&ot)>0,Ko=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=ot},Zo=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const i=t[r];nl(i)&&!rl(i)?i.delete(e):t[n++]=i,i.w&=~ot,i.n&=~ot}t.length=n}},Fr=new WeakMap;let Jt=0,ot=1;const Nr=30;let He;const wt=Symbol(""),Hr=Symbol("");class Dr{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Wo(this,r)}run(){if(!this.active)return this.fn();let t=He,n=at;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=He,He=this,at=!0,ot=1<<++Jt,Jt<=Nr?Ko(this):il(this),this.fn()}finally{Jt<=Nr&&Zo(this),ot=1<<--Jt,He=this.parent,at=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){He===this?this.deferStop=!0:this.active&&(il(this),this.onStop&&this.onStop(),this.active=!1)}}function il(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let at=!0;const ll=[];function Qt(){ll.push(at),at=!1}function Yt(){const e=ll.pop();at=e===void 0?!0:e}function Ae(e,t,n){if(at&&He){let r=Fr.get(e);r||Fr.set(e,r=new Map);let i=r.get(n);i||r.set(n,i=Ur()),sl(i)}}function sl(e,t){let n=!1;Jt<=Nr?rl(e)||(e.n|=ot,n=!nl(e)):n=!e.has(He),n&&(e.add(He),He.deps.push(e))}function Ye(e,t,n,r,i,l){const s=Fr.get(e);if(!s)return;let o=[];if(t==="clear")o=[...s.values()];else if(n==="length"&&F(e)){const a=Number(r);s.forEach((c,f)=>{(f==="length"||!st(f)&&f>=a)&&o.push(c)})}else switch(n!==void 0&&o.push(s.get(n)),t){case"add":F(e)?Mr(n)&&o.push(s.get("length")):(o.push(s.get(wt)),Mt(e)&&o.push(s.get(Hr)));break;case"delete":F(e)||(o.push(s.get(wt)),Mt(e)&&o.push(s.get(Hr)));break;case"set":Mt(e)&&o.push(s.get(wt));break}if(o.length===1)o[0]&&Br(o[0]);else{const a=[];for(const c of o)c&&a.push(...c);Br(Ur(a))}}function Br(e,t){const n=F(e)?e:[...e];for(const r of n)r.computed&&ol(r);for(const r of n)r.computed||ol(r)}function ol(e,t){(e!==He||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Jo=Lr("__proto__,__v_isRef,__isVue"),al=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(st)),cl=Qo();function Qo(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=G(this);for(let l=0,s=this.length;l<s;l++)Ae(r,"get",l+"");const i=r[t](...n);return i===-1||i===!1?r[t](...n.map(G)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Qt();const r=G(this)[t].apply(this,n);return Yt(),r}}),e}function Yo(e){const t=G(this);return Ae(t,"has",e),t.hasOwnProperty(e)}class ul{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,r){const i=this._isReadonly,l=this._shallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return l;if(n==="__v_raw")return r===(i?l?ua:wl:l?vl:ml).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const s=F(t);if(!i){if(s&&Q(cl,n))return Reflect.get(cl,n,r);if(n==="hasOwnProperty")return Yo}const o=Reflect.get(t,n,r);return(st(n)?al.has(n):Jo(n))||(i||Ae(t,"get",n),l)?o:$e(o)?s&&Mr(n)?o:o.value:de(o)?i?Gt(o):Xt(o):o}}class fl extends ul{constructor(t=!1){super(!1,t)}set(t,n,r,i){let l=t[n];if(!this._shallow){const a=Pt(l);if(!Wn(r)&&!Pt(r)&&(l=G(l),r=G(r)),!F(t)&&$e(l)&&!$e(r))return a?!1:(l.value=r,!0)}const s=F(t)&&Mr(n)?Number(n)<t.length:Q(t,n),o=Reflect.set(t,n,r,i);return t===G(i)&&(s?mt(r,l)&&Ye(t,"set",n,r):Ye(t,"add",n,r)),o}deleteProperty(t,n){const r=Q(t,n),i=Reflect.deleteProperty(t,n);return i&&r&&Ye(t,"delete",n,void 0),i}has(t,n){const r=Reflect.has(t,n);return(!st(n)||!al.has(n))&&Ae(t,"has",n),r}ownKeys(t){return Ae(t,"iterate",F(t)?"length":wt),Reflect.ownKeys(t)}}class Xo extends ul{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Go=new fl,ea=new Xo,ta=new fl(!0),Vr=e=>e,Fn=e=>Reflect.getPrototypeOf(e);function Nn(e,t,n=!1,r=!1){e=e.__v_raw;const i=G(e),l=G(t);n||(mt(t,l)&&Ae(i,"get",t),Ae(i,"get",l));const{has:s}=Fn(i),o=r?Vr:n?Kr:en;if(s.call(i,t))return o(e.get(t));if(s.call(i,l))return o(e.get(l));e!==i&&e.get(t)}function Hn(e,t=!1){const n=this.__v_raw,r=G(n),i=G(e);return t||(mt(e,i)&&Ae(r,"has",e),Ae(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function Dn(e,t=!1){return e=e.__v_raw,!t&&Ae(G(e),"iterate",wt),Reflect.get(e,"size",e)}function dl(e){e=G(e);const t=G(this);return Fn(t).has.call(t,e)||(t.add(e),Ye(t,"add",e,e)),this}function hl(e,t){t=G(t);const n=G(this),{has:r,get:i}=Fn(n);let l=r.call(n,e);l||(e=G(e),l=r.call(n,e));const s=i.call(n,e);return n.set(e,t),l?mt(t,s)&&Ye(n,"set",e,t):Ye(n,"add",e,t),this}function pl(e){const t=G(this),{has:n,get:r}=Fn(t);let i=n.call(t,e);i||(e=G(e),i=n.call(t,e)),r&&r.call(t,e);const l=t.delete(e);return i&&Ye(t,"delete",e,void 0),l}function gl(){const e=G(this),t=e.size!==0,n=e.clear();return t&&Ye(e,"clear",void 0,void 0),n}function Bn(e,t){return function(r,i){const l=this,s=l.__v_raw,o=G(s),a=t?Vr:e?Kr:en;return!e&&Ae(o,"iterate",wt),s.forEach((c,f)=>r.call(i,a(c),a(f),l))}}function Vn(e,t,n){return function(...r){const i=this.__v_raw,l=G(i),s=Mt(l),o=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=i[e](...r),f=n?Vr:t?Kr:en;return!t&&Ae(l,"iterate",a?Hr:wt),{next(){const{value:p,done:h}=c.next();return h?{value:p,done:h}:{value:o?[f(p[0]),f(p[1])]:f(p),done:h}},[Symbol.iterator](){return this}}}}function ct(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function na(){const e={get(l){return Nn(this,l)},get size(){return Dn(this)},has:Hn,add:dl,set:hl,delete:pl,clear:gl,forEach:Bn(!1,!1)},t={get(l){return Nn(this,l,!1,!0)},get size(){return Dn(this)},has:Hn,add:dl,set:hl,delete:pl,clear:gl,forEach:Bn(!1,!0)},n={get(l){return Nn(this,l,!0)},get size(){return Dn(this,!0)},has(l){return Hn.call(this,l,!0)},add:ct("add"),set:ct("set"),delete:ct("delete"),clear:ct("clear"),forEach:Bn(!0,!1)},r={get(l){return Nn(this,l,!0,!0)},get size(){return Dn(this,!0)},has(l){return Hn.call(this,l,!0)},add:ct("add"),set:ct("set"),delete:ct("delete"),clear:ct("clear"),forEach:Bn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(l=>{e[l]=Vn(l,!1,!1),n[l]=Vn(l,!0,!1),t[l]=Vn(l,!1,!0),r[l]=Vn(l,!0,!0)}),[e,n,t,r]}const[ra,ia,la,sa]=na();function Wr(e,t){const n=t?e?sa:la:e?ia:ra;return(r,i,l)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(Q(n,i)&&i in r?n:r,i,l)}const oa={get:Wr(!1,!1)},aa={get:Wr(!1,!0)},ca={get:Wr(!0,!1)},ml=new WeakMap,vl=new WeakMap,wl=new WeakMap,ua=new WeakMap;function fa(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function da(e){return e.__v_skip||!Object.isExtensible(e)?0:fa(Oo(e))}function Xt(e){return Pt(e)?e:qr(e,!1,Go,oa,ml)}function ha(e){return qr(e,!1,ta,aa,vl)}function Gt(e){return qr(e,!0,ea,ca,wl)}function qr(e,t,n,r,i){if(!de(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const l=i.get(e);if(l)return l;const s=da(e);if(s===0)return e;const o=new Proxy(e,s===2?r:n);return i.set(e,o),o}function jt(e){return Pt(e)?jt(e.__v_raw):!!(e&&e.__v_isReactive)}function Pt(e){return!!(e&&e.__v_isReadonly)}function Wn(e){return!!(e&&e.__v_isShallow)}function yl(e){return jt(e)||Pt(e)}function G(e){const t=e&&e.__v_raw;return t?G(t):e}function bl(e){return Pn(e,"__v_skip",!0),e}const en=e=>de(e)?Xt(e):e,Kr=e=>de(e)?Gt(e):e;function kl(e){at&&He&&(e=G(e),sl(e.dep||(e.dep=Ur())))}function xl(e,t){e=G(e);const n=e.dep;n&&Br(n)}function $e(e){return!!(e&&e.__v_isRef===!0)}function B(e){return _l(e,!1)}function pa(e){return _l(e,!0)}function _l(e,t){return $e(e)?e:new ga(e,t)}class ga{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:G(t),this._value=n?t:en(t)}get value(){return kl(this),this._value}set value(t){const n=this.__v_isShallow||Wn(t)||Pt(t);t=n?t:G(t),mt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:en(t),xl(this))}}function q(e){return $e(e)?e.value:e}const ma={get:(e,t,n)=>q(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return $e(i)&&!$e(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Cl(e){return jt(e)?e:new Proxy(e,ma)}class va{constructor(t,n,r,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Dr(t,()=>{this._dirty||(this._dirty=!0,xl(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}get value(){const t=G(this);return kl(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function wa(e,t,n=!1){let r,i;const l=ne(e);return l?(r=e,i=gt):(r=e.get,i=e.set),new va(r,i,l||!i,n)}function ut(e,t,n,r){let i;try{i=r?e(...r):e()}catch(l){qn(l,t,n)}return i}function qe(e,t,n,r){if(ne(e)){const l=ut(e,t,n,r);return l&&Ji(l)&&l.catch(s=>{qn(s,t,n)}),l}const i=[];for(let l=0;l<e.length;l++)i.push(qe(e[l],t,n,r));return i}function qn(e,t,n,r=!0){const i=t?t.vnode:null;if(t){let l=t.parent;const s=t.proxy,o=n;for(;l;){const c=l.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,s,o)===!1)return}l=l.parent}const a=t.appContext.config.errorHandler;if(a){ut(a,null,10,[e,s,o]);return}}ya(e,n,i,r)}function ya(e,t,n,r=!0){console.error(e)}let tn=!1,Zr=!1;const xe=[];let Ke=0;const Ut=[];let Xe=null,yt=0;const $l=Promise.resolve();let Jr=null;function Kn(e){const t=Jr||$l;return e?t.then(this?e.bind(this):e):t}function ba(e){let t=Ke+1,n=xe.length;for(;t<n;){const r=t+n>>>1,i=xe[r],l=nn(i);l<e||l===e&&i.pre?t=r+1:n=r}return t}function Qr(e){(!xe.length||!xe.includes(e,tn&&e.allowRecurse?Ke+1:Ke))&&(e.id==null?xe.push(e):xe.splice(ba(e.id),0,e),El())}function El(){!tn&&!Zr&&(Zr=!0,Jr=$l.then(Al))}function ka(e){const t=xe.indexOf(e);t>Ke&&xe.splice(t,1)}function xa(e){F(e)?Ut.push(...e):(!Xe||!Xe.includes(e,e.allowRecurse?yt+1:yt))&&Ut.push(e),El()}function Rl(e,t,n=tn?Ke+1:0){for(;n<xe.length;n++){const r=xe[n];if(r&&r.pre){if(e&&r.id!==e.uid)continue;xe.splice(n,1),n--,r()}}}function Tl(e){if(Ut.length){const t=[...new Set(Ut)];if(Ut.length=0,Xe){Xe.push(...t);return}for(Xe=t,Xe.sort((n,r)=>nn(n)-nn(r)),yt=0;yt<Xe.length;yt++)Xe[yt]();Xe=null,yt=0}}const nn=e=>e.id==null?1/0:e.id,_a=(e,t)=>{const n=nn(e)-nn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Al(e){Zr=!1,tn=!0,xe.sort(_a);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,Tl(),tn=!1,Jr=null,(xe.length||Ut.length)&&Al()}}function Ca(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||ue;let i=n;const l=t.startsWith("update:"),s=l&&t.slice(7);if(s&&s in r){const f=`${s==="modelValue"?"model":s}Modifiers`,{number:p,trim:h}=r[f]||ue;h&&(i=n.map(v=>ye(v)?v.trim():v)),p&&(i=n.map(Un))}let o,a=r[o=zr(t)]||r[o=zr(We(t))];!a&&l&&(a=r[o=zr(Ot(t))]),a&&qe(a,e,6,i);const c=r[o+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,qe(c,e,6,i)}}function $a(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const l=e.emits;let s={};return!l&&!!1?(de(e)&&r.set(e,null),null):(F(l)?l.forEach(a=>s[a]=null):Ce(s,l),de(e)&&r.set(e,s),s)}function Zn(e,t){return!e||!Sn(t)?!1:(t=t.slice(2).replace(/Once$/,""),Q(e,t[0].toLowerCase()+t.slice(1))||Q(e,Ot(t))||Q(e,t))}let Se=null,Il=null;function Jn(e){const t=Se;return Se=e,Il=e&&e.type.__scopeId||null,t}function Ea(e,t=Se,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&Ql(-1);const l=Jn(t);let s;try{s=e(...i)}finally{Jn(l),r._d&&Ql(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function Yr(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:l,propsOptions:[s],slots:o,attrs:a,emit:c,render:f,renderCache:p,data:h,setupState:v,ctx:I,inheritAttrs:x}=e;let C,y;const $=Jn(e);try{if(n.shapeFlag&4){const T=i||r,U=T;C=Ze(f.call(U,T,p,l,v,h,I)),y=a}else{const T=t;C=Ze(T.length>1?T(l,{attrs:a,slots:o,emit:c}):T(l,null)),y=t.props?a:Ra(a)}}catch(T){an.length=0,qn(T,e,1),C=ie(_t)}let H=C;if(y&&x!==!1){const T=Object.keys(y),{shapeFlag:U}=H;T.length&&U&7&&(s&&T.some(Sr)&&(y=Ta(y,s)),H=Ft(H,y))}return n.dirs&&(H=Ft(H),H.dirs=H.dirs?H.dirs.concat(n.dirs):n.dirs),n.transition&&(H.transition=n.transition),C=H,Jn($),C}const Ra=e=>{let t;for(const n in e)(n==="class"||n==="style"||Sn(n))&&((t||(t={}))[n]=e[n]);return t},Ta=(e,t)=>{const n={};for(const r in e)(!Sr(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Aa(e,t,n){const{props:r,children:i,component:l}=e,{props:s,children:o,patchFlag:a}=t,c=l.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?Ll(r,s,c):!!s;if(a&8){const f=t.dynamicProps;for(let p=0;p<f.length;p++){const h=f[p];if(s[h]!==r[h]&&!Zn(c,h))return!0}}}else return(i||o)&&(!o||!o.$stable)?!0:r===s?!1:r?s?Ll(r,s,c):!0:!!s;return!1}function Ll(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const l=r[i];if(t[l]!==e[l]&&!Zn(n,l))return!0}return!1}function Ia({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Sl="components";function La(e,t){return Ma(Sl,e,!0,t)||e}const Sa=Symbol.for("v-ndc");function Ma(e,t,n=!0,r=!1){const i=Se||Re;if(i){const l=i.type;if(e===Sl){const o=mc(l,!1);if(o&&(o===t||o===We(t)||o===On(We(t))))return l}const s=Ml(i[e]||l[e],t)||Ml(i.appContext[e],t);return!s&&r?l:s}}function Ml(e,t){return e&&(e[t]||e[We(t)]||e[On(We(t))])}const za=e=>e.__isSuspense;function Oa(e,t){t&&t.pendingBranch?F(e)?t.effects.push(...e):t.effects.push(e):xa(e)}function zl(e,t){return Ol(e,null,t)}const Qn={};function Oe(e,t,n){return Ol(e,t,n)}function Ol(e,t,{immediate:n,deep:r,flush:i,onTrack:l,onTrigger:s}=ue){var o;const a=tl()===((o=Re)==null?void 0:o.scope)?Re:null;let c,f=!1,p=!1;if($e(e)?(c=()=>e.value,f=Wn(e)):jt(e)?(c=()=>e,r=!0):F(e)?(p=!0,f=e.some(T=>jt(T)||Wn(T)),c=()=>e.map(T=>{if($e(T))return T.value;if(jt(T))return bt(T);if(ne(T))return ut(T,a,2)})):ne(e)?t?c=()=>ut(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return h&&h(),qe(e,a,3,[v])}:c=gt,t&&r){const T=c;c=()=>bt(T())}let h,v=T=>{h=$.onStop=()=>{ut(T,a,4),h=$.onStop=void 0}},I;if(dn)if(v=gt,t?n&&qe(t,a,3,[c(),p?[]:void 0,v]):c(),i==="sync"){const T=yc();I=T.__watcherHandles||(T.__watcherHandles=[])}else return gt;let x=p?new Array(e.length).fill(Qn):Qn;const C=()=>{if($.active)if(t){const T=$.run();(r||f||(p?T.some((U,Y)=>mt(U,x[Y])):mt(T,x)))&&(h&&h(),qe(t,a,3,[T,x===Qn?void 0:p&&x[0]===Qn?[]:x,v]),x=T)}else $.run()};C.allowRecurse=!!t;let y;i==="sync"?y=C:i==="post"?y=()=>Ie(C,a&&a.suspense):(C.pre=!0,a&&(C.id=a.uid),y=()=>Qr(C));const $=new Dr(c,y);t?n?C():x=$.run():i==="post"?Ie($.run.bind($),a&&a.suspense):$.run();const H=()=>{$.stop(),a&&a.scope&&Ki(a.scope.effects,$)};return I&&I.push(H),H}function bt(e,t){if(!de(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),$e(e))bt(e.value,t);else if(F(e))for(let n=0;n<e.length;n++)bt(e[n],t);else if(zt(e)||Mt(e))e.forEach(n=>{bt(n,t)});else if(Yi(e))for(const n in e)bt(e[n],t);return e}function Yn(e,t){const n=Se;if(n===null)return e;const r=sr(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let l=0;l<t.length;l++){let[s,o,a,c=ue]=t[l];s&&(ne(s)&&(s={mounted:s,updated:s}),s.deep&&bt(o),i.push({dir:s,instance:r,value:o,oldValue:void 0,arg:a,modifiers:c}))}return e}function kt(e,t,n,r){const i=e.dirs,l=t&&t.dirs;for(let s=0;s<i.length;s++){const o=i[s];l&&(o.oldValue=l[s].value);let a=o.dir[r];a&&(Qt(),qe(a,n,8,[e.el,o,e,t]),Yt())}}/*! #__NO_SIDE_EFFECTS__ */function rn(e,t){return ne(e)?Ce({name:e.name},t,{setup:e}):e}const Xn=e=>!!e.type.__asyncLoader,ja=e=>e.type.__isKeepAlive;function Pa(e,t,n=Re,r=!1){if(n){const i=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;Qt(),ai(n);const o=qe(t,n,e,s);return fn(),Yt(),o});return r?i.unshift(l):i.push(l),l}}const Xr=e=>(t,n=Re)=>(!dn||e==="sp")&&Pa(e,(...r)=>t(...r),n),ln=Xr("m"),Ua=Xr("bum"),Gn=Xr("um");function je(e,t,n,r){let i;const l=n&&n[r];if(F(e)||ye(e)){i=new Array(e.length);for(let s=0,o=e.length;s<o;s++)i[s]=t(e[s],s,void 0,l&&l[s])}else if(typeof e=="number"){i=new Array(e);for(let s=0;s<e;s++)i[s]=t(s+1,s,void 0,l&&l[s])}else if(de(e))if(e[Symbol.iterator])i=Array.from(e,(s,o)=>t(s,o,void 0,l&&l[o]));else{const s=Object.keys(e);i=new Array(s.length);for(let o=0,a=s.length;o<a;o++){const c=s[o];i[o]=t(e[c],c,o,l&&l[o])}}else i=[];return n&&(n[r]=i),i}const Gr=e=>e?es(e)?sr(e)||e.proxy:Gr(e.parent):null,sn=Ce(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=>Gr(e.parent),$root:e=>Gr(e.root),$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>Qr(e.update)),$nextTick:e=>e.n||(e.n=Kn.bind(e.proxy)),$watch:e=>gt}),ei=(e,t)=>e!==ue&&!e.__isScriptSetup&&Q(e,t),Fa={get({_:e},t){const{ctx:n,setupState:r,data:i,props:l,accessCache:s,type:o,appContext:a}=e;let c;if(t[0]!=="$"){const v=s[t];if(v!==void 0)switch(v){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return l[t]}else{if(ei(r,t))return s[t]=1,r[t];if(i!==ue&&Q(i,t))return s[t]=2,i[t];if((c=e.propsOptions[0])&&Q(c,t))return s[t]=3,l[t];if(n!==ue&&Q(n,t))return s[t]=4,n[t];s[t]=0}}const f=sn[t];let p,h;if(f)return t==="$attrs"&&Ae(e,"get",t),f(e);if((p=o.__cssModules)&&(p=p[t]))return p;if(n!==ue&&Q(n,t))return s[t]=4,n[t];if(h=a.config.globalProperties,Q(h,t))return h[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:l}=e;return ei(i,t)?(i[t]=n,!0):r!==ue&&Q(r,t)?(r[t]=n,!0):Q(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(l[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:l}},s){let o;return!!n[s]||e!==ue&&Q(e,s)||ei(t,s)||(o=l[0])&&Q(o,s)||Q(r,s)||Q(sn,s)||Q(i.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Q(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function jl(e){return F(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Na(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:l,config:{optionMergeStrategies:s}}=e.appContext,o=l.get(t);let a;return o?a=o:!i.length&&!n&&!r?a=t:(a={},i.length&&i.forEach(c=>er(a,c,s,!0)),er(a,t,s)),de(t)&&l.set(t,a),a}function er(e,t,n,r=!1){const{mixins:i,extends:l}=t;l&&er(e,l,n,!0),i&&i.forEach(s=>er(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const o=Ha[s]||n&&n[s];e[s]=o?o(e[s],t[s]):t[s]}return e}const Ha={data:Pl,props:Fl,emits:Fl,methods:on,computed:on,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:on,directives:on,watch:Ba,provide:Pl,inject:Da};function Pl(e,t){return t?e?function(){return Ce(ne(e)?e.call(this,this):e,ne(t)?t.call(this,this):t)}:t:e}function Da(e,t){return on(Ul(e),Ul(t))}function Ul(e){if(F(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ee(e,t){return e?[...new Set([].concat(e,t))]:t}function on(e,t){return e?Ce(Object.create(null),e,t):t}function Fl(e,t){return e?F(e)&&F(t)?[...new Set([...e,...t])]:Ce(Object.create(null),jl(e),jl(t??{})):t}function Ba(e,t){if(!e)return t;if(!t)return e;const n=Ce(Object.create(null),e);for(const r in t)n[r]=Ee(e[r],t[r]);return n}function Nl(){return{app:null,config:{isNativeTag:Mo,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 Va=0;function Wa(e,t){return function(r,i=null){ne(r)||(r=Ce({},r)),i!=null&&!de(i)&&(i=null);const l=Nl(),s=new WeakSet;let o=!1;const a=l.app={_uid:Va++,_component:r,_props:i,_container:null,_context:l,_instance:null,version:bc,get config(){return l.config},set config(c){},use(c,...f){return s.has(c)||(c&&ne(c.install)?(s.add(c),c.install(a,...f)):ne(c)&&(s.add(c),c(a,...f))),a},mixin(c){return a},component(c,f){return f?(l.components[c]=f,a):l.components[c]},directive(c,f){return f?(l.directives[c]=f,a):l.directives[c]},mount(c,f,p){if(!o){const h=ie(r,i);return h.appContext=l,f&&t?t(h,c):e(h,c,p),o=!0,a._container=c,c.__vue_app__=a,sr(h.component)||h.component.proxy}},unmount(){o&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,f){return l.provides[c]=f,a},runWithContext(c){tr=a;try{return c()}finally{tr=null}}};return a}}let tr=null;function qa(e,t){if(Re){let n=Re.provides;const r=Re.parent&&Re.parent.provides;r===n&&(n=Re.provides=Object.create(r)),n[e]=t}}function nr(e,t,n=!1){const r=Re||Se;if(r||tr){const i=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:tr._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&ne(t)?t.call(r&&r.proxy):t}}function Ka(e,t,n,r=!1){const i={},l={};Pn(l,ir,1),e.propsDefaults=Object.create(null),Hl(e,t,i,l);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);n?e.props=r?i:ha(i):e.type.props?e.props=i:e.props=l,e.attrs=l}function Za(e,t,n,r){const{props:i,attrs:l,vnode:{patchFlag:s}}=e,o=G(i),[a]=e.propsOptions;let c=!1;if((r||s>0)&&!(s&16)){if(s&8){const f=e.vnode.dynamicProps;for(let p=0;p<f.length;p++){let h=f[p];if(Zn(e.emitsOptions,h))continue;const v=t[h];if(a)if(Q(l,h))v!==l[h]&&(l[h]=v,c=!0);else{const I=We(h);i[I]=ti(a,o,I,v,e,!1)}else v!==l[h]&&(l[h]=v,c=!0)}}}else{Hl(e,t,i,l)&&(c=!0);let f;for(const p in o)(!t||!Q(t,p)&&((f=Ot(p))===p||!Q(t,f)))&&(a?n&&(n[p]!==void 0||n[f]!==void 0)&&(i[p]=ti(a,o,p,void 0,e,!0)):delete i[p]);if(l!==o)for(const p in l)(!t||!Q(t,p))&&(delete l[p],c=!0)}c&&Ye(e,"set","$attrs")}function Hl(e,t,n,r){const[i,l]=e.propsOptions;let s=!1,o;if(t)for(let a in t){if(Mn(a))continue;const c=t[a];let f;i&&Q(i,f=We(a))?!l||!l.includes(f)?n[f]=c:(o||(o={}))[f]=c:Zn(e.emitsOptions,a)||(!(a in r)||c!==r[a])&&(r[a]=c,s=!0)}if(l){const a=G(n),c=o||ue;for(let f=0;f<l.length;f++){const p=l[f];n[p]=ti(i,a,p,c[p],e,!Q(c,p))}}return s}function ti(e,t,n,r,i,l){const s=e[n];if(s!=null){const o=Q(s,"default");if(o&&r===void 0){const a=s.default;if(s.type!==Function&&!s.skipFactory&&ne(a)){const{propsDefaults:c}=i;n in c?r=c[n]:(ai(i),r=c[n]=a.call(null,t),fn())}else r=a}s[0]&&(l&&!o?r=!1:s[1]&&(r===""||r===Ot(n))&&(r=!0))}return r}function Ja(e,t,n=!1){const r=t.propsCache,i=r.get(e);if(i)return i;const l=e.props,s={},o=[];if(!l&&!!1)return de(e)&&r.set(e,St),St;if(F(l))for(let f=0;f<l.length;f++){const p=We(l[f]);Dl(p)&&(s[p]=ue)}else if(l)for(const f in l){const p=We(f);if(Dl(p)){const h=l[f],v=s[p]=F(h)||ne(h)?{type:h}:Ce({},h);if(v){const I=Wl(Boolean,v.type),x=Wl(String,v.type);v[0]=I>-1,v[1]=x<0||I<x,(I>-1||Q(v,"default"))&&o.push(p)}}}const c=[s,o];return de(e)&&r.set(e,c),c}function Dl(e){return e[0]!=="$"}function Bl(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Vl(e,t){return Bl(e)===Bl(t)}function Wl(e,t){return F(t)?t.findIndex(n=>Vl(n,e)):ne(t)&&Vl(t,e)?0:-1}const ql=e=>e[0]==="_"||e==="$stable",ni=e=>F(e)?e.map(Ze):[Ze(e)],Qa=(e,t,n)=>{if(t._n)return t;const r=Ea((...i)=>ni(t(...i)),n);return r._c=!1,r},Kl=(e,t,n)=>{const r=e._ctx;for(const i in e){if(ql(i))continue;const l=e[i];if(ne(l))t[i]=Qa(i,l,r);else if(l!=null){const s=ni(l);t[i]=()=>s}}},Zl=(e,t)=>{const n=ni(t);e.slots.default=()=>n},Ya=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=G(t),Pn(t,"_",n)):Kl(t,e.slots={})}else e.slots={},t&&Zl(e,t);Pn(e.slots,ir,1)},Xa=(e,t,n)=>{const{vnode:r,slots:i}=e;let l=!0,s=ue;if(r.shapeFlag&32){const o=t._;o?n&&o===1?l=!1:(Ce(i,t),!n&&o===1&&delete i._):(l=!t.$stable,Kl(t,i)),s=t}else t&&(Zl(e,t),s={default:1});if(l)for(const o in i)!ql(o)&&s[o]==null&&delete i[o]};function ri(e,t,n,r,i=!1){if(F(e)){e.forEach((h,v)=>ri(h,t&&(F(t)?t[v]:t),n,r,i));return}if(Xn(r)&&!i)return;const l=r.shapeFlag&4?sr(r.component)||r.component.proxy:r.el,s=i?null:l,{i:o,r:a}=e,c=t&&t.r,f=o.refs===ue?o.refs={}:o.refs,p=o.setupState;if(c!=null&&c!==a&&(ye(c)?(f[c]=null,Q(p,c)&&(p[c]=null)):$e(c)&&(c.value=null)),ne(a))ut(a,o,12,[s,f]);else{const h=ye(a),v=$e(a);if(h||v){const I=()=>{if(e.f){const x=h?Q(p,a)?p[a]:f[a]:a.value;i?F(x)&&Ki(x,l):F(x)?x.includes(l)||x.push(l):h?(f[a]=[l],Q(p,a)&&(p[a]=f[a])):(a.value=[l],e.k&&(f[e.k]=a.value))}else h?(f[a]=s,Q(p,a)&&(p[a]=s)):v&&(a.value=s,e.k&&(f[e.k]=s))};s?(I.id=-1,Ie(I,n)):I()}}}const Ie=Oa;function Ga(e){return ec(e)}function ec(e,t){const n=Or();n.__VUE__=!0;const{insert:r,remove:i,patchProp:l,createElement:s,createText:o,createComment:a,setText:c,setElementText:f,parentNode:p,nextSibling:h,setScopeId:v=gt,insertStaticContent:I}=e,x=(u,d,g,m=null,w=null,b=null,E=!1,_=null,R=!!d.dynamicChildren)=>{if(u===d)return;u&&!un(u,d)&&(m=Tt(u),Ue(u,w,b,!0),u=null),d.patchFlag===-2&&(R=!1,d.dynamicChildren=null);const{type:k,ref:O,shapeFlag:S}=d;switch(k){case rr:C(u,d,g,m);break;case _t:y(u,d,g,m);break;case ii:u==null&&$(d,g,m,E);break;case ae:Be(u,d,g,m,w,b,E,_,R);break;default:S&1?U(u,d,g,m,w,b,E,_,R):S&6?V(u,d,g,m,w,b,E,_,R):(S&64||S&128)&&k.process(u,d,g,m,w,b,E,_,R,lt)}O!=null&&w&&ri(O,u&&u.ref,b,d||u,!d)},C=(u,d,g,m)=>{if(u==null)r(d.el=o(d.children),g,m);else{const w=d.el=u.el;d.children!==u.children&&c(w,d.children)}},y=(u,d,g,m)=>{u==null?r(d.el=a(d.children||""),g,m):d.el=u.el},$=(u,d,g,m)=>{[u.el,u.anchor]=I(u.children,d,g,m,u.el,u.anchor)},H=({el:u,anchor:d},g,m)=>{let w;for(;u&&u!==d;)w=h(u),r(u,g,m),u=w;r(d,g,m)},T=({el:u,anchor:d})=>{let g;for(;u&&u!==d;)g=h(u),i(u),u=g;i(d)},U=(u,d,g,m,w,b,E,_,R)=>{E=E||d.type==="svg",u==null?Y(d,g,m,w,b,E,_,R):Z(u,d,w,b,E,_,R)},Y=(u,d,g,m,w,b,E,_)=>{let R,k;const{type:O,props:S,shapeFlag:j,transition:M,dirs:W}=u;if(R=u.el=s(u.type,b,S&&S.is,S),j&8?f(R,u.children):j&16&&D(u.children,R,null,m,w,b&&O!=="foreignObject",E,_),W&&kt(u,null,m,"created"),K(R,u,u.scopeId,E,m),S){for(const oe in S)oe!=="value"&&!Mn(oe)&&l(R,oe,null,S[oe],b,u.children,m,w,Fe);"value"in S&&l(R,"value",null,S.value),(k=S.onVnodeBeforeMount)&&Je(k,m,u)}W&&kt(u,null,m,"beforeMount");const te=tc(w,M);te&&M.beforeEnter(R),r(R,d,g),((k=S&&S.onVnodeMounted)||te||W)&&Ie(()=>{k&&Je(k,m,u),te&&M.enter(R),W&&kt(u,null,m,"mounted")},w)},K=(u,d,g,m,w)=>{if(g&&v(u,g),m)for(let b=0;b<m.length;b++)v(u,m[b]);if(w){let b=w.subTree;if(d===b){const E=w.vnode;K(u,E,E.scopeId,E.slotScopeIds,w.parent)}}},D=(u,d,g,m,w,b,E,_,R=0)=>{for(let k=R;k<u.length;k++){const O=u[k]=_?ft(u[k]):Ze(u[k]);x(null,O,d,g,m,w,b,E,_)}},Z=(u,d,g,m,w,b,E)=>{const _=d.el=u.el;let{patchFlag:R,dynamicChildren:k,dirs:O}=d;R|=u.patchFlag&16;const S=u.props||ue,j=d.props||ue;let M;g&&xt(g,!1),(M=j.onVnodeBeforeUpdate)&&Je(M,g,d,u),O&&kt(d,u,g,"beforeUpdate"),g&&xt(g,!0);const W=w&&d.type!=="foreignObject";if(k?ce(u.dynamicChildren,k,_,g,m,W,b):E||_e(u,d,_,null,g,m,W,b,!1),R>0){if(R&16)Te(_,d,S,j,g,m,w);else if(R&2&&S.class!==j.class&&l(_,"class",null,j.class,w),R&4&&l(_,"style",S.style,j.style,w),R&8){const te=d.dynamicProps;for(let oe=0;oe<te.length;oe++){const ge=te[oe],Ve=S[ge],Wt=j[ge];(Wt!==Ve||ge==="value")&&l(_,ge,Ve,Wt,w,u.children,g,m,Fe)}}R&1&&u.children!==d.children&&f(_,d.children)}else!E&&k==null&&Te(_,d,S,j,g,m,w);((M=j.onVnodeUpdated)||O)&&Ie(()=>{M&&Je(M,g,d,u),O&&kt(d,u,g,"updated")},m)},ce=(u,d,g,m,w,b,E)=>{for(let _=0;_<d.length;_++){const R=u[_],k=d[_],O=R.el&&(R.type===ae||!un(R,k)||R.shapeFlag&70)?p(R.el):g;x(R,k,O,null,m,w,b,E,!0)}},Te=(u,d,g,m,w,b,E)=>{if(g!==m){if(g!==ue)for(const _ in g)!Mn(_)&&!(_ in m)&&l(u,_,g[_],null,E,d.children,w,b,Fe);for(const _ in m){if(Mn(_))continue;const R=m[_],k=g[_];R!==k&&_!=="value"&&l(u,_,k,R,E,d.children,w,b,Fe)}"value"in m&&l(u,"value",g.value,m.value)}},Be=(u,d,g,m,w,b,E,_,R)=>{const k=d.el=u?u.el:o(""),O=d.anchor=u?u.anchor:o("");let{patchFlag:S,dynamicChildren:j,slotScopeIds:M}=d;M&&(_=_?_.concat(M):M),u==null?(r(k,g,m),r(O,g,m),D(d.children,g,O,w,b,E,_,R)):S>0&&S&64&&j&&u.dynamicChildren?(ce(u.dynamicChildren,j,g,w,b,E,_),(d.key!=null||w&&d===w.subTree)&&Jl(u,d,!0)):_e(u,d,g,O,w,b,E,_,R)},V=(u,d,g,m,w,b,E,_,R)=>{d.slotScopeIds=_,u==null?d.shapeFlag&512?w.ctx.activate(d,g,m,E,R):N(d,g,m,w,b,E,R):se(u,d,R)},N=(u,d,g,m,w,b,E)=>{const _=u.component=uc(u,m,w);if(ja(u)&&(_.ctx.renderer=lt),dc(_),_.asyncDep){if(w&&w.registerDep(_,we),!u.el){const R=_.subTree=ie(_t);y(null,R,d,g)}return}we(_,u,d,g,w,b,E)},se=(u,d,g)=>{const m=d.component=u.component;if(Aa(u,d,g))if(m.asyncDep&&!m.asyncResolved){ve(m,d,g);return}else m.next=d,ka(m.update),m.update();else d.el=u.el,m.vnode=d},we=(u,d,g,m,w,b,E)=>{const _=()=>{if(u.isMounted){let{next:O,bu:S,u:j,parent:M,vnode:W}=u,te=O,oe;xt(u,!1),O?(O.el=W.el,ve(u,O,E)):O=W,S&&jn(S),(oe=O.props&&O.props.onVnodeBeforeUpdate)&&Je(oe,M,O,W),xt(u,!0);const ge=Yr(u),Ve=u.subTree;u.subTree=ge,x(Ve,ge,p(Ve.el),Tt(Ve),u,w,b),O.el=ge.el,te===null&&Ia(u,ge.el),j&&Ie(j,w),(oe=O.props&&O.props.onVnodeUpdated)&&Ie(()=>Je(oe,M,O,W),w)}else{let O;const{el:S,props:j}=d,{bm:M,m:W,parent:te}=u,oe=Xn(d);if(xt(u,!1),M&&jn(M),!oe&&(O=j&&j.onVnodeBeforeMount)&&Je(O,te,d),xt(u,!0),S&&L){const ge=()=>{u.subTree=Yr(u),L(S,u.subTree,u,w,null)};oe?d.type.__asyncLoader().then(()=>!u.isUnmounted&&ge()):ge()}else{const ge=u.subTree=Yr(u);x(null,ge,g,m,u,w,b),d.el=ge.el}if(W&&Ie(W,w),!oe&&(O=j&&j.onVnodeMounted)){const ge=d;Ie(()=>Je(O,te,ge),w)}(d.shapeFlag&256||te&&Xn(te.vnode)&&te.vnode.shapeFlag&256)&&u.a&&Ie(u.a,w),u.isMounted=!0,d=g=m=null}},R=u.effect=new Dr(_,()=>Qr(k),u.scope),k=u.update=()=>R.run();k.id=u.uid,xt(u,!0),k()},ve=(u,d,g)=>{d.component=u;const m=u.vnode.props;u.vnode=d,u.next=null,Za(u,d.props,m,g),Xa(u,d.children,g),Qt(),Rl(u),Yt()},_e=(u,d,g,m,w,b,E,_,R=!1)=>{const k=u&&u.children,O=u?u.shapeFlag:0,S=d.children,{patchFlag:j,shapeFlag:M}=d;if(j>0){if(j&128){pt(k,S,g,m,w,b,E,_,R);return}else if(j&256){ke(k,S,g,m,w,b,E,_,R);return}}M&8?(O&16&&Fe(k,w,b),S!==k&&f(g,S)):O&16?M&16?pt(k,S,g,m,w,b,E,_,R):Fe(k,w,b,!0):(O&8&&f(g,""),M&16&&D(S,g,m,w,b,E,_,R))},ke=(u,d,g,m,w,b,E,_,R)=>{u=u||St,d=d||St;const k=u.length,O=d.length,S=Math.min(k,O);let j;for(j=0;j<S;j++){const M=d[j]=R?ft(d[j]):Ze(d[j]);x(u[j],M,g,null,w,b,E,_,R)}k>O?Fe(u,w,b,!0,!1,S):D(d,g,m,w,b,E,_,R,S)},pt=(u,d,g,m,w,b,E,_,R)=>{let k=0;const O=d.length;let S=u.length-1,j=O-1;for(;k<=S&&k<=j;){const M=u[k],W=d[k]=R?ft(d[k]):Ze(d[k]);if(un(M,W))x(M,W,g,null,w,b,E,_,R);else break;k++}for(;k<=S&&k<=j;){const M=u[S],W=d[j]=R?ft(d[j]):Ze(d[j]);if(un(M,W))x(M,W,g,null,w,b,E,_,R);else break;S--,j--}if(k>S){if(k<=j){const M=j+1,W=M<O?d[M].el:m;for(;k<=j;)x(null,d[k]=R?ft(d[k]):Ze(d[k]),g,W,w,b,E,_,R),k++}}else if(k>j)for(;k<=S;)Ue(u[k],w,b,!0),k++;else{const M=k,W=k,te=new Map;for(k=W;k<=j;k++){const ze=d[k]=R?ft(d[k]):Ze(d[k]);ze.key!=null&&te.set(ze.key,k)}let oe,ge=0;const Ve=j-W+1;let Wt=!1,co=0;const Tn=new Array(Ve);for(k=0;k<Ve;k++)Tn[k]=0;for(k=M;k<=S;k++){const ze=u[k];if(ge>=Ve){Ue(ze,w,b,!0);continue}let Qe;if(ze.key!=null)Qe=te.get(ze.key);else for(oe=W;oe<=j;oe++)if(Tn[oe-W]===0&&un(ze,d[oe])){Qe=oe;break}Qe===void 0?Ue(ze,w,b,!0):(Tn[Qe-W]=k+1,Qe>=co?co=Qe:Wt=!0,x(ze,d[Qe],g,null,w,b,E,_,R),ge++)}const uo=Wt?nc(Tn):St;for(oe=uo.length-1,k=Ve-1;k>=0;k--){const ze=W+k,Qe=d[ze],fo=ze+1<O?d[ze+1].el:m;Tn[k]===0?x(null,Qe,g,fo,w,b,E,_,R):Wt&&(oe<0||k!==uo[oe]?Rt(Qe,g,fo,2):oe--)}}},Rt=(u,d,g,m,w=null)=>{const{el:b,type:E,transition:_,children:R,shapeFlag:k}=u;if(k&6){Rt(u.component.subTree,d,g,m);return}if(k&128){u.suspense.move(d,g,m);return}if(k&64){E.move(u,d,g,lt);return}if(E===ae){r(b,d,g);for(let S=0;S<R.length;S++)Rt(R[S],d,g,m);r(u.anchor,d,g);return}if(E===ii){H(u,d,g);return}if(m!==2&&k&1&&_)if(m===0)_.beforeEnter(b),r(b,d,g),Ie(()=>_.enter(b),w);else{const{leave:S,delayLeave:j,afterLeave:M}=_,W=()=>r(b,d,g),te=()=>{S(b,()=>{W(),M&&M()})};j?j(b,W,te):te()}else r(b,d,g)},Ue=(u,d,g,m=!1,w=!1)=>{const{type:b,props:E,ref:_,children:R,dynamicChildren:k,shapeFlag:O,patchFlag:S,dirs:j}=u;if(_!=null&&ri(_,null,g,u,!0),O&256){d.ctx.deactivate(u);return}const M=O&1&&j,W=!Xn(u);let te;if(W&&(te=E&&E.onVnodeBeforeUnmount)&&Je(te,d,u),O&6)Ei(u.component,g,m);else{if(O&128){u.suspense.unmount(g,m);return}M&&kt(u,null,d,"beforeUnmount"),O&64?u.type.remove(u,d,g,w,lt,m):k&&(b!==ae||S>0&&S&64)?Fe(k,d,g,!1,!0):(b===ae&&S&384||!w&&O&16)&&Fe(R,d,g),m&&En(u)}(W&&(te=E&&E.onVnodeUnmounted)||M)&&Ie(()=>{te&&Je(te,d,u),M&&kt(u,null,d,"unmounted")},g)},En=u=>{const{type:d,el:g,anchor:m,transition:w}=u;if(d===ae){$i(g,m);return}if(d===ii){T(u);return}const b=()=>{i(g),w&&!w.persisted&&w.afterLeave&&w.afterLeave()};if(u.shapeFlag&1&&w&&!w.persisted){const{leave:E,delayLeave:_}=w,R=()=>E(g,b);_?_(u.el,b,R):R()}else b()},$i=(u,d)=>{let g;for(;u!==d;)g=h(u),i(u),u=g;i(d)},Ei=(u,d,g)=>{const{bum:m,scope:w,update:b,subTree:E,um:_}=u;m&&jn(m),w.stop(),b&&(b.active=!1,Ue(E,u,d,g)),_&&Ie(_,d),Ie(()=>{u.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},Fe=(u,d,g,m=!1,w=!1,b=0)=>{for(let E=b;E<u.length;E++)Ue(u[E],d,g,m,w)},Tt=u=>u.shapeFlag&6?Tt(u.component.subTree):u.shapeFlag&128?u.suspense.next():h(u.anchor||u.el),Rn=(u,d,g)=>{u==null?d._vnode&&Ue(d._vnode,null,null,!0):x(d._vnode||null,u,d,null,null,null,g),Rl(),Tl(),d._vnode=u},lt={p:x,um:Ue,m:Rt,r:En,mt:N,mc:D,pc:_e,pbc:ce,n:Tt,o:e};let Vt,L;return t&&([Vt,L]=t(lt)),{render:Rn,hydrate:Vt,createApp:Wa(Rn,Vt)}}function xt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function tc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Jl(e,t,n=!1){const r=e.children,i=t.children;if(F(r)&&F(i))for(let l=0;l<r.length;l++){const s=r[l];let o=i[l];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=i[l]=ft(i[l]),o.el=s.el),n||Jl(s,o)),o.type===rr&&(o.el=s.el)}}function nc(e){const t=e.slice(),n=[0];let r,i,l,s,o;const a=e.length;for(r=0;r<a;r++){const c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(l=0,s=n.length-1;l<s;)o=l+s>>1,e[n[o]]<c?l=o+1:s=o;c<e[n[l]]&&(l>0&&(t[r]=n[l-1]),n[l]=r)}}for(l=n.length,s=n[l-1];l-- >0;)n[l]=s,s=t[s];return n}const rc=e=>e.__isTeleport,ae=Symbol.for("v-fgt"),rr=Symbol.for("v-txt"),_t=Symbol.for("v-cmt"),ii=Symbol.for("v-stc"),an=[];let De=null;function A(e=!1){an.push(De=e?null:[])}function ic(){an.pop(),De=an[an.length-1]||null}let cn=1;function Ql(e){cn+=e}function Yl(e){return e.dynamicChildren=cn>0?De||St:null,ic(),cn>0&&De&&De.push(e),e}function z(e,t,n,r,i,l){return Yl(P(e,t,n,r,i,l,!0))}function Ge(e,t,n,r,i){return Yl(ie(e,t,n,r,i,!0))}function li(e){return e?e.__v_isVNode===!0:!1}function un(e,t){return e.type===t.type&&e.key===t.key}const ir="__vInternal",Xl=({key:e})=>e??null,lr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||$e(e)||ne(e)?{i:Se,r:e,k:t,f:!!n}:e:null);function P(e,t=null,n=null,r=0,i=null,l=e===ae?0:1,s=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Xl(t),ref:t&&lr(t),scopeId:Il,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Se};return o?(si(a,n),l&128&&e.normalize(a)):n&&(a.shapeFlag|=ye(n)?8:16),cn>0&&!s&&De&&(a.patchFlag>0||l&6)&&a.patchFlag!==32&&De.push(a),a}const ie=lc;function lc(e,t=null,n=null,r=0,i=null,l=!1){if((!e||e===Sa)&&(e=_t),li(e)){const o=Ft(e,t,!0);return n&&si(o,n),cn>0&&!l&&De&&(o.shapeFlag&6?De[De.indexOf(e)]=o:De.push(o)),o.patchFlag|=-2,o}if(vc(e)&&(e=e.__vccOpts),t){t=sc(t);let{class:o,style:a}=t;o&&!ye(o)&&(t.class=me(o)),de(a)&&(yl(a)&&!F(a)&&(a=Ce({},a)),t.style=Zt(a))}const s=ye(e)?1:za(e)?128:rc(e)?64:de(e)?4:ne(e)?2:0;return P(e,t,n,r,i,s,l,!0)}function sc(e){return e?yl(e)||ir in e?Ce({},e):e:null}function Ft(e,t,n=!1){const{props:r,ref:i,patchFlag:l,children:s}=e,o=t?oc(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:o,key:o&&Xl(o),ref:t&&t.ref?n&&i?F(i)?i.concat(lr(t)):[i,lr(t)]:lr(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ae?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,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}}function et(e=" ",t=0){return ie(rr,null,e,t)}function X(e="",t=!1){return t?(A(),Ge(_t,null,e)):ie(_t,null,e)}function Ze(e){return e==null||typeof e=="boolean"?ie(_t):F(e)?ie(ae,null,e.slice()):typeof e=="object"?ft(e):ie(rr,null,String(e))}function ft(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ft(e)}function si(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(F(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),si(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(ir in t)?t._ctx=Se:i===3&&Se&&(Se.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ne(t)?(t={default:t,_ctx:Se},n=32):(t=String(t),r&64?(n=16,t=[et(t)]):n=8);e.children=t,e.shapeFlag|=n}function oc(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=me([t.class,r.class]));else if(i==="style")t.style=Zt([t.style,r.style]);else if(Sn(i)){const l=t[i],s=r[i];s&&l!==s&&!(F(l)&&l.includes(s))&&(t[i]=l?[].concat(l,s):s)}else i!==""&&(t[i]=r[i])}return t}function Je(e,t,n,r=null){qe(e,t,7,[n,r])}const ac=Nl();let cc=0;function uc(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||ac,l={uid:cc++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Vo(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ja(r,i),emitsOptions:$a(r,i),emit:null,emitted:null,propsDefaults:ue,inheritAttrs:r.inheritAttrs,ctx:ue,data:ue,props:ue,attrs:ue,slots:ue,refs:ue,setupState:ue,setupContext:null,attrsProxy:null,slotsProxy: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 l.ctx={_:l},l.root=t?t.root:l,l.emit=Ca.bind(null,l),e.ce&&e.ce(l),l}let Re=null;const fc=()=>Re||Se;let oi,Nt,Gl="__VUE_INSTANCE_SETTERS__";(Nt=Or()[Gl])||(Nt=Or()[Gl]=[]),Nt.push(e=>Re=e),oi=e=>{Nt.length>1?Nt.forEach(t=>t(e)):Nt[0](e)};const ai=e=>{oi(e),e.scope.on()},fn=()=>{Re&&Re.scope.off(),oi(null)};function es(e){return e.vnode.shapeFlag&4}let dn=!1;function dc(e,t=!1){dn=t;const{props:n,children:r}=e.vnode,i=es(e);Ka(e,n,i,t),Ya(e,r);const l=i?hc(e,t):void 0;return dn=!1,l}function hc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=bl(new Proxy(e.ctx,Fa));const{setup:r}=n;if(r){const i=e.setupContext=r.length>1?gc(e):null;ai(e),Qt();const l=ut(r,e,0,[e.props,i]);if(Yt(),fn(),Ji(l)){if(l.then(fn,fn),t)return l.then(s=>{ts(e,s,t)}).catch(s=>{qn(s,e,0)});e.asyncDep=l}else ts(e,l,t)}else rs(e,t)}function ts(e,t,n){ne(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:de(t)&&(e.setupState=Cl(t)),rs(e,n)}let ns;function rs(e,t,n){const r=e.type;if(!e.render){if(!t&&ns&&!r.render){const i=r.template||Na(e).template;if(i){const{isCustomElement:l,compilerOptions:s}=e.appContext.config,{delimiters:o,compilerOptions:a}=r,c=Ce(Ce({isCustomElement:l,delimiters:o},s),a);r.render=ns(i,c)}}e.render=r.render||gt}}function pc(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Ae(e,"get","$attrs"),t[n]}}))}function gc(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return pc(e)},slots:e.slots,emit:e.emit,expose:t}}function sr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Cl(bl(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in sn)return sn[n](e)},has(t,n){return n in t||n in sn}}))}function mc(e,t=!0){return ne(e)?e.displayName||e.name:e.name||t&&e.__name}function vc(e){return ne(e)&&"__vccOpts"in e}const be=(e,t)=>wa(e,t,dn);function ee(e,t,n){const r=arguments.length;return r===2?de(t)&&!F(t)?li(t)?ie(e,null,[t]):ie(e,t):ie(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&li(n)&&(n=[n]),ie(e,t,n))}const wc=Symbol.for("v-scx"),yc=()=>nr(wc),bc="3.3.12",kc="http://www.w3.org/2000/svg",Ct=typeof document<"u"?document:null,is=Ct&&Ct.createElement("template"),xc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t?Ct.createElementNS(kc,e):Ct.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>Ct.createTextNode(e),createComment:e=>Ct.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ct.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,l){const s=n?n.previousSibling:t.lastChild;if(i&&(i===l||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===l||!(i=i.nextSibling)););else{is.innerHTML=r?`<svg>${e}</svg>`:e;const o=is.content;if(r){const a=o.firstChild;for(;a.firstChild;)o.appendChild(a.firstChild);o.removeChild(a)}t.insertBefore(o,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},_c=Symbol("_vtc");function Cc(e,t,n){const r=e[_c];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ci=Symbol("_vod"),ls={beforeMount(e,{value:t},{transition:n}){e[ci]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):hn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),hn(e,!0),r.enter(e)):r.leave(e,()=>{hn(e,!1)}):hn(e,t))},beforeUnmount(e,{value:t}){hn(e,t)}};function hn(e,t){e.style.display=t?e[ci]:"none"}const $c=Symbol("");function Ec(e,t,n){const r=e.style,i=ye(n);if(n&&!i){if(t&&!ye(t))for(const l in t)n[l]==null&&ui(r,l,"");for(const l in n)ui(r,l,n[l])}else{const l=r.display;if(i){if(t!==n){const s=r[$c];s&&(n+=";"+s),r.cssText=n}}else t&&e.removeAttribute("style");ci in e&&(r.display=l)}}const ss=/\s*!important$/;function ui(e,t,n){if(F(n))n.forEach(r=>ui(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Rc(e,t);ss.test(n)?e.setProperty(Ot(r),n.replace(ss,""),"important"):e[r]=n}}const os=["Webkit","Moz","ms"],fi={};function Rc(e,t){const n=fi[t];if(n)return n;let r=We(t);if(r!=="filter"&&r in e)return fi[t]=r;r=On(r);for(let i=0;i<os.length;i++){const l=os[i]+r;if(l in e)return fi[t]=l}return t}const as="http://www.w3.org/1999/xlink";function Tc(e,t,n,r,i){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(as,t.slice(6,t.length)):e.setAttributeNS(as,t,n);else{const l=Do(t);n==null||l&&!Gi(n)?e.removeAttribute(t):e.setAttribute(t,l?"":n)}}function Ac(e,t,n,r,i,l,s){if(t==="innerHTML"||t==="textContent"){r&&s(r,i,l),e[t]=n??"";return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){e._value=n;const c=o==="OPTION"?e.getAttribute("value"):e.value,f=n??"";c!==f&&(e.value=f),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=Gi(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function tt(e,t,n,r){e.addEventListener(t,n,r)}function Ic(e,t,n,r){e.removeEventListener(t,n,r)}const cs=Symbol("_vei");function Lc(e,t,n,r,i=null){const l=e[cs]||(e[cs]={}),s=l[t];if(r&&s)s.value=r;else{const[o,a]=Sc(t);if(r){const c=l[t]=Oc(r,i);tt(e,o,c,a)}else s&&(Ic(e,o,s,a),l[t]=void 0)}}const us=/(?:Once|Passive|Capture)$/;function Sc(e){let t;if(us.test(e)){t={};let r;for(;r=e.match(us);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ot(e.slice(2)),t]}let di=0;const Mc=Promise.resolve(),zc=()=>di||(Mc.then(()=>di=0),di=Date.now());function Oc(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;qe(jc(r,n.value),t,5,[r])};return n.value=e,n.attached=zc(),n}function jc(e,t){if(F(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const fs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Pc=(e,t,n,r,i=!1,l,s,o,a)=>{t==="class"?Cc(e,r,i):t==="style"?Ec(e,n,r):Sn(t)?Sr(t)||Lc(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Uc(e,t,r,i))?Ac(e,t,r,l,s,o,a):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Tc(e,t,r,i))};function Uc(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&fs(t)&&ne(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return fs(t)&&ye(n)?!1:t in e}const dt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return F(t)?n=>jn(t,n):t};function Fc(e){e.target.composing=!0}function ds(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Pe=Symbol("_assign"),hi={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[Pe]=dt(i);const l=r||i.props&&i.props.type==="number";tt(e,t?"change":"input",s=>{if(s.target.composing)return;let o=e.value;n&&(o=o.trim()),l&&(o=Un(o)),e[Pe](o)}),n&&tt(e,"change",()=>{e.value=e.value.trim()}),t||(tt(e,"compositionstart",Fc),tt(e,"compositionend",ds),tt(e,"change",ds))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:i}},l){if(e[Pe]=dt(l),e.composing)return;const s=i||e.type==="number"?Un(e.value):e.value,o=t??"";s!==o&&(document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===o)||(e.value=o))}},Nc={deep:!0,created(e,t,n){e[Pe]=dt(n),tt(e,"change",()=>{const r=e._modelValue,i=Ht(e),l=e.checked,s=e[Pe];if(F(r)){const o=jr(r,i),a=o!==-1;if(l&&!a)s(r.concat(i));else if(!l&&a){const c=[...r];c.splice(o,1),s(c)}}else if(zt(r)){const o=new Set(r);l?o.add(i):o.delete(i),s(o)}else s(gs(e,l))})},mounted:hs,beforeUpdate(e,t,n){e[Pe]=dt(n),hs(e,t,n)}};function hs(e,{value:t,oldValue:n},r){e._modelValue=t,F(t)?e.checked=jr(t,r.props.value)>-1:zt(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=vt(t,gs(e,!0)))}const Hc={created(e,{value:t},n){e.checked=vt(t,n.props.value),e[Pe]=dt(n),tt(e,"change",()=>{e[Pe](Ht(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Pe]=dt(r),t!==n&&(e.checked=vt(t,r.props.value))}},Dc={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=zt(t);tt(e,"change",()=>{const l=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>n?Un(Ht(s)):Ht(s));e[Pe](e.multiple?i?new Set(l):l:l[0])}),e[Pe]=dt(r)},mounted(e,{value:t}){ps(e,t)},beforeUpdate(e,t,n){e[Pe]=dt(n)},updated(e,{value:t}){ps(e,t)}};function ps(e,t){const n=e.multiple;if(!(n&&!F(t)&&!zt(t))){for(let r=0,i=e.options.length;r<i;r++){const l=e.options[r],s=Ht(l);if(n)F(t)?l.selected=jr(t,s)>-1:l.selected=t.has(s);else if(vt(Ht(l),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ht(e){return"_value"in e?e._value:e.value}function gs(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Bc={created(e,t,n){or(e,t,n,null,"created")},mounted(e,t,n){or(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){or(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){or(e,t,n,r,"updated")}};function Vc(e,t){switch(e){case"SELECT":return Dc;case"TEXTAREA":return hi;default:switch(t){case"checkbox":return Nc;case"radio":return Hc;default:return hi}}}function or(e,t,n,r,i){const s=Vc(e.tagName,n.props&&n.props.type)[i];s&&s(e,t,n,r)}const Wc=Ce({patchProp:Pc},xc);let ms;function qc(){return ms||(ms=Ga(Wc))}const Kc=(...e)=>{const t=qc().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=Zc(r);if(!i)return;const l=t._component;!ne(l)&&!l.render&&!l.template&&(l.template=i.innerHTML),i.innerHTML="";const s=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},t};function Zc(e){return ye(e)?document.querySelector(e):e}function pn(e){return tl()?(qo(e),!0):!1}function nt(e){return typeof e=="function"?e():q(e)}const ar=typeof window<"u"&&typeof document<"u",Jc=Object.prototype.toString,Qc=e=>Jc.call(e)==="[object Object]",cr=()=>{};function vs(e,t){function n(...r){return new Promise((i,l)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(l)})}return n}const ws=e=>e();function Yc(e,t={}){let n,r,i=cr;const l=o=>{clearTimeout(o),i(),i=cr};return o=>{const a=nt(e),c=nt(t.maxWait);return n&&l(n),a<=0||c!==void 0&&c<=0?(r&&(l(r),r=null),Promise.resolve(o())):new Promise((f,p)=>{i=t.rejectOnCancel?p:f,c&&!r&&(r=setTimeout(()=>{n&&l(n),r=null,f(o())},c)),n=setTimeout(()=>{r&&l(r),r=null,f(o())},a)})}}function Xc(e=ws){const t=B(!0);function n(){t.value=!1}function r(){t.value=!0}const i=(...l)=>{t.value&&e(...l)};return{isActive:Gt(t),pause:n,resume:r,eventFilter:i}}function ys(e){return e||fc()}function Gc(e,t=200,n={}){return vs(Yc(t,n),e)}function eu(e,t,n={}){const{eventFilter:r=ws,...i}=n;return Oe(e,vs(r,t),i)}function tu(e,t,n={}){const{eventFilter:r,...i}=n,{eventFilter:l,pause:s,resume:o,isActive:a}=Xc(r);return{stop:eu(e,t,{...i,eventFilter:l}),pause:s,resume:o,isActive:a}}function pi(e,t=!0,n){const r=ys(n);r?ln(e,r):t?e():Kn(e)}function nu(e,t){const n=ys(t);n&&Gn(e,n)}function ru(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:i=!1}=n;let l=null;const s=B(!1);function o(){l&&(clearInterval(l),l=null)}function a(){s.value=!1,o()}function c(){const f=nt(t);f<=0||(s.value=!0,i&&e(),o(),l=setInterval(e,f))}if(r&&ar&&c(),$e(t)||typeof t=="function"){const f=Oe(t,()=>{s.value&&ar&&c()});pn(f)}return pn(a),{isActive:s,pause:a,resume:c}}function iu(e){var t;const n=nt(e);return(t=n==null?void 0:n.$el)!=null?t:n}const ur=ar?window:void 0,bs=ar?window.document:void 0;function ks(...e){let t,n,r,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,i]=e,t=ur):[t,n,r,i]=e,!t)return cr;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const l=[],s=()=>{l.forEach(f=>f()),l.length=0},o=(f,p,h,v)=>(f.addEventListener(p,h,v),()=>f.removeEventListener(p,h,v)),a=Oe(()=>[iu(t),nt(i)],([f,p])=>{if(s(),!f)return;const h=Qc(p)?{...p}:p;l.push(...n.flatMap(v=>r.map(I=>o(f,v,I,h))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return pn(c),c}function lu(e,t={}){const{immediate:n=!0,fpsLimit:r=void 0,window:i=ur}=t,l=B(!1),s=r?1e3/r:null;let o=0,a=null;function c(h){if(!l.value||!i)return;const v=h-(o||h);if(s&&v<s){a=i.requestAnimationFrame(c);return}e({delta:v,timestamp:h}),o=h,a=i.requestAnimationFrame(c)}function f(){!l.value&&i&&(l.value=!0,a=i.requestAnimationFrame(c))}function p(){l.value=!1,a!=null&&i&&(i.cancelAnimationFrame(a),a=null)}return n&&f(),pn(p),{isActive:Gt(l),pause:p,resume:f}}const fr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},dr="__vueuse_ssr_handlers__",su=ou();function ou(){return dr in fr||(fr[dr]=fr[dr]||{}),fr[dr]}function au(e,t){return su[e]||t}function cu(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 uu={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()}},xs="vueuse-storage";function Dt(e,t,n,r={}){var i;const{flush:l="pre",deep:s=!0,listenToStorageChanges:o=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:f,window:p=ur,eventFilter:h,onError:v=Z=>{console.error(Z)},initOnMounted:I}=r,x=(f?pa:B)(typeof t=="function"?t():t);if(!n)try{n=au("getDefaultStorage",()=>{var Z;return(Z=ur)==null?void 0:Z.localStorage})()}catch(Z){v(Z)}if(!n)return x;const C=nt(t),y=cu(C),$=(i=r.serializer)!=null?i:uu[y],{pause:H,resume:T}=tu(x,()=>U(x.value),{flush:l,deep:s,eventFilter:h});return p&&o&&pi(()=>{ks(p,"storage",D),ks(p,xs,K),I&&D()}),I||D(),x;function U(Z){try{if(Z==null)n.removeItem(e);else{const ce=$.write(Z),Te=n.getItem(e);Te!==ce&&(n.setItem(e,ce),p&&p.dispatchEvent(new CustomEvent(xs,{detail:{key:e,oldValue:Te,newValue:ce,storageArea:n}})))}}catch(ce){v(ce)}}function Y(Z){const ce=Z?Z.newValue:n.getItem(e);if(ce==null)return a&&C!=null&&n.setItem(e,$.write(C)),C;if(!Z&&c){const Te=$.read(ce);return typeof c=="function"?c(Te,C):y==="object"&&!Array.isArray(Te)?{...C,...Te}:Te}else return typeof ce!="string"?ce:$.read(ce)}function K(Z){D(Z.detail)}function D(Z){if(!(Z&&Z.storageArea!==n)){if(Z&&Z.key==null){x.value=C;return}if(!(Z&&Z.key!==e)){H();try{(Z==null?void 0:Z.newValue)!==$.write(x.value)&&(x.value=Y(Z))}catch(ce){v(ce)}finally{Z?Kn(T):T()}}}}}function fu(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=B(new Date),i=()=>r.value=new Date,l=n==="requestAnimationFrame"?lu(i,{immediate:!0}):ru(i,n,{immediate:!0});return t?{now:r,...l}:r}function du(e,t=cr,n={}){const{immediate:r=!0,manual:i=!1,type:l="text/javascript",async:s=!0,crossOrigin:o,referrerPolicy:a,noModule:c,defer:f,document:p=bs,attrs:h={}}=n,v=B(null);let I=null;const x=$=>new Promise((H,T)=>{const U=D=>(v.value=D,H(D),D);if(!p){H(!1);return}let Y=!1,K=p.querySelector(`script[src="${nt(e)}"]`);K?K.hasAttribute("data-loaded")&&U(K):(K=p.createElement("script"),K.type=l,K.async=s,K.src=nt(e),f&&(K.defer=f),o&&(K.crossOrigin=o),c&&(K.noModule=c),a&&(K.referrerPolicy=a),Object.entries(h).forEach(([D,Z])=>K==null?void 0:K.setAttribute(D,Z)),Y=!0),K.addEventListener("error",D=>T(D)),K.addEventListener("abort",D=>T(D)),K.addEventListener("load",()=>{K.setAttribute("data-loaded","true"),t(K),U(K)}),Y&&(K=p.head.appendChild(K)),$||U(K)}),C=($=!0)=>(I||(I=x($)),I),y=()=>{if(!p)return;I=null,v.value&&(v.value=null);const $=p.querySelector(`script[src="${nt(e)}"]`);$&&p.head.removeChild($)};return r&&!i&&pi(C),i||nu(y),{scriptTag:v,load:C,unload:y}}let hu=0;function pu(e,t={}){const n=B(!1),{document:r=bs,immediate:i=!0,manual:l=!1,id:s=`vueuse_styletag_${++hu}`}=t,o=B(e);let a=()=>{};const c=()=>{if(!r)return;const p=r.getElementById(s)||r.createElement("style");p.isConnected||(p.id=s,t.media&&(p.media=t.media),r.head.appendChild(p)),!n.value&&(a=Oe(o,h=>{p.textContent=h},{immediate:!0}),n.value=!0)},f=()=>{!r||!n.value||(a(),r.head.removeChild(r.getElementById(s)),n.value=!1)};return i&&!l&&pi(c),l||pn(f),{id:s,css:o,unload:f,load:c,isLoaded:Gt(n)}}const gu=e=>!!/@[0-9]+\.[0-9]+\.[0-9]+/.test(e),mu=e=>{const t=Dt("WALINE_EMOJI",{}),n=gu(e);if(n){const r=t.value[e];if(r)return Promise.resolve(r)}return fetch(`${e}/info.json`).then(r=>r.json()).then(r=>{const i={folder:e,...r};return n&&(t.value[e]=i),i})},_s=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,vu=e=>Promise.all(e.map(t=>typeof t=="string"?mu(Wi(t)):Promise.resolve(t))).then(t=>{const n={tabs:[],map:{}};return t.forEach(r=>{const{name:i,folder:l,icon:s,prefix:o,type:a,items:c}=r;n.tabs.push({name:i,icon:_s(s,l,o,a),items:c.map(f=>{const p=`${o||""}${f}`;return n.map[p]=_s(f,l,o,a),p})})}),n}),Cs=e=>{e.name!=="AbortError"&&console.error(e.message)},gi=e=>e instanceof HTMLElement?e:typeof e=="string"?document.querySelector(e):null,wu=e=>e.type.includes("image"),$s=e=>{const t=Array.from(e).find(wu);return t?t.getAsFile():null};function mi(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let $t=mi();function Es(e){$t=e}const Rs=/[&<>"']/,yu=new RegExp(Rs.source,"g"),Ts=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,bu=new RegExp(Ts.source,"g"),ku={"&":"&","<":"<",">":">",'"':""","'":"'"},As=e=>ku[e];function Me(e,t){if(t){if(Rs.test(e))return e.replace(yu,As)}else if(Ts.test(e))return e.replace(bu,As);return e}const xu=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function _u(e){return e.replace(xu,(t,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const Cu=/(^|[^\[])\^/g;function le(e,t){let n=typeof e=="string"?e:e.source;t=t||"";const r={replace:(i,l)=>{let s=typeof l=="string"?l:l.source;return s=s.replace(Cu,"$1"),n=n.replace(i,s),r},getRegex:()=>new RegExp(n,t)};return r}function Is(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const gn={exec:()=>null};function Ls(e,t){const n=e.replace(/\|/g,(l,s,o)=>{let a=!1,c=s;for(;--c>=0&&o[c]==="\\";)a=!a;return a?"|":" |"}),r=n.split(/ \|/);let i=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(/\\\|/g,"|");return r}function hr(e,t,n){const r=e.length;if(r===0)return"";let i=0;for(;i<r;){const l=e.charAt(r-i-1);if(l===t&&!n)i++;else if(l!==t&&n)i++;else break}return e.slice(0,r-i)}function $u(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return-1}function Ss(e,t,n,r){const i=t.href,l=t.title?Me(t.title):null,s=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){r.state.inLink=!0;const o={type:"link",raw:n,href:i,title:l,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,o}return{type:"image",raw:n,href:i,title:l,text:Me(s)}}function Eu(e,t){const n=e.match(/^(\s+)(?:```)/);if(n===null)return t;const r=n[1];return t.split(`
|
|
8
|
+
`).map(i=>{const l=i.match(/^\s+/);if(l===null)return i;const[s]=l;return s.length>=r.length?i.slice(r.length):i}).join(`
|
|
9
|
+
`)}class pr{options;rules;lexer;constructor(t){this.options=t||$t}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const r=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:hr(r,`
|
|
10
|
+
`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const r=n[0],i=Eu(r,n[3]||"");return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:i}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let r=n[2].trim();if(/#$/.test(r)){const i=hr(r,"#");(this.options.pedantic||!i||/ $/.test(i))&&(r=i.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:n[0]}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){const r=hr(n[0].replace(/^ *>[ \t]?/gm,""),`
|
|
11
|
+
`),i=this.lexer.state.top;this.lexer.state.top=!0;const l=this.lexer.blockTokens(r);return this.lexer.state.top=i,{type:"blockquote",raw:n[0],tokens:l,text:r}}}list(t){let n=this.rules.block.list.exec(t);if(n){let r=n[1].trim();const i=r.length>1,l={type:"list",raw:"",ordered:i,start:i?+r.slice(0,-1):"",loose:!1,items:[]};r=i?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=i?r:"[*+-]");const s=new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`);let o="",a="",c=!1;for(;t;){let f=!1;if(!(n=s.exec(t))||this.rules.block.hr.test(t))break;o=n[0],t=t.substring(o.length);let p=n[2].split(`
|
|
12
|
+
`,1)[0].replace(/^\t+/,y=>" ".repeat(3*y.length)),h=t.split(`
|
|
13
|
+
`,1)[0],v=0;this.options.pedantic?(v=2,a=p.trimStart()):(v=n[2].search(/[^ ]/),v=v>4?1:v,a=p.slice(v),v+=n[1].length);let I=!1;if(!p&&/^ *$/.test(h)&&(o+=h+`
|
|
14
|
+
`,t=t.substring(h.length+1),f=!0),!f){const y=new RegExp(`^ {0,${Math.min(3,v-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),$=new RegExp(`^ {0,${Math.min(3,v-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),H=new RegExp(`^ {0,${Math.min(3,v-1)}}(?:\`\`\`|~~~)`),T=new RegExp(`^ {0,${Math.min(3,v-1)}}#`);for(;t;){const U=t.split(`
|
|
15
|
+
`,1)[0];if(h=U,this.options.pedantic&&(h=h.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),H.test(h)||T.test(h)||y.test(h)||$.test(t))break;if(h.search(/[^ ]/)>=v||!h.trim())a+=`
|
|
16
|
+
`+h.slice(v);else{if(I||p.search(/[^ ]/)>=4||H.test(p)||T.test(p)||$.test(p))break;a+=`
|
|
17
|
+
`+h}!I&&!h.trim()&&(I=!0),o+=U+`
|
|
18
|
+
`,t=t.substring(U.length+1),p=h.slice(v)}}l.loose||(c?l.loose=!0:/\n *\n *$/.test(o)&&(c=!0));let x=null,C;this.options.gfm&&(x=/^\[[ xX]\] /.exec(a),x&&(C=x[0]!=="[ ] ",a=a.replace(/^\[[ xX]\] +/,""))),l.items.push({type:"list_item",raw:o,task:!!x,checked:C,loose:!1,text:a,tokens:[]}),l.raw+=o}l.items[l.items.length-1].raw=o.trimEnd(),l.items[l.items.length-1].text=a.trimEnd(),l.raw=l.raw.trimEnd();for(let f=0;f<l.items.length;f++)if(this.lexer.state.top=!1,l.items[f].tokens=this.lexer.blockTokens(l.items[f].text,[]),!l.loose){const p=l.items[f].tokens.filter(v=>v.type==="space"),h=p.length>0&&p.some(v=>/\n.*\n/.test(v.raw));l.loose=h}if(l.loose)for(let f=0;f<l.items.length;f++)l.items[f].loose=!0;return l}}html(t){const n=this.rules.block.html.exec(t);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(t){const n=this.rules.block.def.exec(t);if(n){const r=n[1].toLowerCase().replace(/\s+/g," "),i=n[2]?n[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",l=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:i,title:l}}}table(t){const n=this.rules.block.table.exec(t);if(!n||!/[:|]/.test(n[2]))return;const r=Ls(n[1]),i=n[2].replace(/^\||\| *$/g,"").split("|"),l=n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(`
|
|
19
|
+
`):[],s={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===i.length){for(const o of i)/^ *-+: *$/.test(o)?s.align.push("right"):/^ *:-+: *$/.test(o)?s.align.push("center"):/^ *:-+ *$/.test(o)?s.align.push("left"):s.align.push(null);for(const o of r)s.header.push({text:o,tokens:this.lexer.inline(o)});for(const o of l)s.rows.push(Ls(o,s.header.length).map(a=>({text:a,tokens:this.lexer.inline(a)})));return s}}lheading(t){const n=this.rules.block.lheading.exec(t);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(t){const n=this.rules.block.paragraph.exec(t);if(n){const r=n[1].charAt(n[1].length-1)===`
|
|
20
|
+
`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:Me(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 r=n[2].trim();if(!this.options.pedantic&&/^</.test(r)){if(!/>$/.test(r))return;const s=hr(r.slice(0,-1),"\\");if((r.length-s.length)%2===0)return}else{const s=$u(n[2],"()");if(s>-1){const a=(n[0].indexOf("!")===0?5:4)+n[1].length+s;n[2]=n[2].substring(0,s),n[0]=n[0].substring(0,a).trim(),n[3]=""}}let i=n[2],l="";if(this.options.pedantic){const s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);s&&(i=s[1],l=s[3])}else l=n[3]?n[3].slice(1,-1):"";return i=i.trim(),/^</.test(i)&&(this.options.pedantic&&!/>$/.test(r)?i=i.slice(1):i=i.slice(1,-1)),Ss(n,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:l&&l.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer)}}reflink(t,n){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){const i=(r[2]||r[1]).replace(/\s+/g," "),l=n[i.toLowerCase()];if(!l){const s=r[0].charAt(0);return{type:"text",raw:s,text:s}}return Ss(r,l,r[0],this.lexer)}}emStrong(t,n,r=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!i||i[3]&&r.match(/[\p{L}\p{N}]/u))return;if(!(i[1]||i[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const s=[...i[0]].length-1;let o,a,c=s,f=0;const p=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(p.lastIndex=0,n=n.slice(-1*t.length+s);(i=p.exec(n))!=null;){if(o=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!o)continue;if(a=[...o].length,i[3]||i[4]){c+=a;continue}else if((i[5]||i[6])&&s%3&&!((s+a)%3)){f+=a;continue}if(c-=a,c>0)continue;a=Math.min(a,a+c+f);const h=[...i[0]][0].length,v=t.slice(0,s+i.index+h+a);if(Math.min(s,a)%2){const x=v.slice(1,-1);return{type:"em",raw:v,text:x,tokens:this.lexer.inlineTokens(x)}}const I=v.slice(2,-2);return{type:"strong",raw:v,text:I,tokens:this.lexer.inlineTokens(I)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let r=n[2].replace(/\n/g," ");const i=/[^ ]/.test(r),l=/^ /.test(r)&&/ $/.test(r);return i&&l&&(r=r.substring(1,r.length-1)),r=Me(r,!0),{type:"codespan",raw:n[0],text:r}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){const n=this.rules.inline.autolink.exec(t);if(n){let r,i;return n[2]==="@"?(r=Me(n[1]),i="mailto:"+r):(r=Me(n[1]),i=r),{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}url(t){var r;let n;if(n=this.rules.inline.url.exec(t)){let i,l;if(n[2]==="@")i=Me(n[0]),l="mailto:"+i;else{let s;do s=n[0],n[0]=((r=this.rules.inline._backpedal.exec(n[0]))==null?void 0:r[0])??"";while(s!==n[0]);i=Me(n[0]),n[1]==="www."?l="http://"+n[0]:l=n[0]}return{type:"link",raw:n[0],text:i,href:l,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(t){const n=this.rules.inline.text.exec(t);if(n){let r;return this.lexer.state.inRawBlock?r=n[0]:r=Me(n[0]),{type:"text",raw:n[0],text:r}}}}const Ru=/^(?: *(?:\n|$))+/,Tu=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,Au=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,mn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Iu=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ms=/(?:[*+-]|\d{1,9}[.)])/,zs=le(/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Ms).getRegex(),vi=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Lu=/^[^\n]+/,wi=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Su=le(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",wi).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Mu=le(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ms).getRegex(),gr="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|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",yi=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,zu=le("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",yi).replace("tag",gr).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Os=le(vi).replace("hr",mn).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",gr).getRegex(),bi={blockquote:le(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Os).getRegex(),code:Tu,def:Su,fences:Au,heading:Iu,hr:mn,html:zu,lheading:zs,list:Mu,newline:Ru,paragraph:Os,table:gn,text:Lu},js=le("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",mn).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",gr).getRegex(),Ou={...bi,table:js,paragraph:le(vi).replace("hr",mn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",js).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",gr).getRegex()},ju={...bi,html:le(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",yi).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:gn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:le(vi).replace("hr",mn).replace("heading",` *#{1,6} *[^
|
|
21
|
+
]`).replace("lheading",zs).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ps=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Pu=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Us=/^( {2,}|\\)\n(?!\s*$)/,Uu=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,vn="\\p{P}$+<=>`^|~",Fu=le(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,vn).getRegex(),Nu=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,Hu=le(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,vn).getRegex(),Du=le("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,vn).getRegex(),Bu=le("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,vn).getRegex(),Vu=le(/\\([punct])/,"gu").replace(/punct/g,vn).getRegex(),Wu=le(/^<(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(),qu=le(yi).replace("(?:-->|$)","-->").getRegex(),Ku=le("^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",qu).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),mr=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Zu=le(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",mr).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Fs=le(/^!?\[(label)\]\[(ref)\]/).replace("label",mr).replace("ref",wi).getRegex(),Ns=le(/^!?\[(ref)\](?:\[\])?/).replace("ref",wi).getRegex(),Ju=le("reflink|nolink(?!\\()","g").replace("reflink",Fs).replace("nolink",Ns).getRegex(),ki={_backpedal:gn,anyPunctuation:Vu,autolink:Wu,blockSkip:Nu,br:Us,code:Pu,del:gn,emStrongLDelim:Hu,emStrongRDelimAst:Du,emStrongRDelimUnd:Bu,escape:Ps,link:Zu,nolink:Ns,punctuation:Fu,reflink:Fs,reflinkSearch:Ju,tag:Ku,text:Uu,url:gn},Qu={...ki,link:le(/^!?\[(label)\]\((.*?)\)/).replace("label",mr).getRegex(),reflink:le(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",mr).getRegex()},xi={...ki,escape:le(Ps).replace("])","~|])").getRegex(),url:le(/^((?: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.!#$%&'*+\/=?_`{\|}~-]+@)))/},Yu={...xi,br:le(Us).replace("{2,}","*").getRegex(),text:le(xi.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},vr={normal:bi,gfm:Ou,pedantic:ju},wn={normal:ki,gfm:xi,breaks:Yu,pedantic:Qu};class rt{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||$t,this.options.tokenizer=this.options.tokenizer||new pr,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:vr.normal,inline:wn.normal};this.options.pedantic?(n.block=vr.pedantic,n.inline=wn.pedantic):this.options.gfm&&(n.block=vr.gfm,this.options.breaks?n.inline=wn.breaks:n.inline=wn.gfm),this.tokenizer.rules=n}static get rules(){return{block:vr,inline:wn}}static lex(t,n){return new rt(n).lex(t)}static lexInline(t,n){return new rt(n).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
|
|
22
|
+
`),this.blockTokens(t,this.tokens);let n;for(;n=this.inlineQueue.shift();)this.inlineTokens(n.src,n.tokens);return this.tokens}blockTokens(t,n=[]){this.options.pedantic?t=t.replace(/\t/g," ").replace(/^ +$/gm,""):t=t.replace(/^( *)(\t+)/gm,(o,a,c)=>a+" ".repeat(c.length));let r,i,l,s;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+=`
|
|
23
|
+
`:n.push(r);continue}if(r=this.tokenizer.code(t)){t=t.substring(r.raw.length),i=n[n.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
|
|
24
|
+
`+r.raw,i.text+=`
|
|
25
|
+
`+r.text,this.inlineQueue[this.inlineQueue.length-1].src=i.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),i=n[n.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
|
|
26
|
+
`+r.raw,i.text+=`
|
|
27
|
+
`+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.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 c;this.options.extensions.startBlock.forEach(f=>{c=f.call({lexer:this},a),typeof c=="number"&&c>=0&&(o=Math.min(o,c))}),o<1/0&&o>=0&&(l=t.substring(0,o+1))}if(this.state.top&&(r=this.tokenizer.paragraph(l))){i=n[n.length-1],s&&i.type==="paragraph"?(i.raw+=`
|
|
28
|
+
`+r.raw,i.text+=`
|
|
29
|
+
`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):n.push(r),s=l.length!==t.length,t=t.substring(r.raw.length);continue}if(r=this.tokenizer.text(t)){t=t.substring(r.raw.length),i=n[n.length-1],i&&i.type==="text"?(i.raw+=`
|
|
30
|
+
`+r.raw,i.text+=`
|
|
31
|
+
`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.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 r,i,l,s=t,o,a,c;if(this.tokens.links){const f=Object.keys(this.tokens.links);if(f.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)f.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,o.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=>(r=f.call({lexer:this},t,n))?(t=t.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.escape(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.tag(t)){t=t.substring(r.raw.length),i=n[n.length-1],i&&r.type==="text"&&i.type==="text"?(i.raw+=r.raw,i.text+=r.text):n.push(r);continue}if(r=this.tokenizer.link(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(r.raw.length),i=n[n.length-1],i&&r.type==="text"&&i.type==="text"?(i.raw+=r.raw,i.text+=r.text):n.push(r);continue}if(r=this.tokenizer.emStrong(t,s,c)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.codespan(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.br(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.del(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.autolink(t)){t=t.substring(r.raw.length),n.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(t))){t=t.substring(r.raw.length),n.push(r);continue}if(l=t,this.options.extensions&&this.options.extensions.startInline){let f=1/0;const p=t.slice(1);let h;this.options.extensions.startInline.forEach(v=>{h=v.call({lexer:this},p),typeof h=="number"&&h>=0&&(f=Math.min(f,h))}),f<1/0&&f>=0&&(l=t.substring(0,f+1))}if(r=this.tokenizer.inlineText(l)){t=t.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(c=r.raw.slice(-1)),a=!0,i=n[n.length-1],i&&i.type==="text"?(i.raw+=r.raw,i.text+=r.text):n.push(r);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 n}}class wr{options;constructor(t){this.options=t||$t}code(t,n,r){var l;const i=(l=(n||"").match(/^\S*/))==null?void 0:l[0];return t=t.replace(/\n$/,"")+`
|
|
32
|
+
`,i?'<pre><code class="language-'+Me(i)+'">'+(r?t:Me(t,!0))+`</code></pre>
|
|
33
|
+
`:"<pre><code>"+(r?t:Me(t,!0))+`</code></pre>
|
|
34
|
+
`}blockquote(t){return`<blockquote>
|
|
35
|
+
${t}</blockquote>
|
|
36
|
+
`}html(t,n){return t}heading(t,n,r){return`<h${n}>${t}</h${n}>
|
|
37
|
+
`}hr(){return`<hr>
|
|
38
|
+
`}list(t,n,r){const i=n?"ol":"ul",l=n&&r!==1?' start="'+r+'"':"";return"<"+i+l+`>
|
|
39
|
+
`+t+"</"+i+`>
|
|
40
|
+
`}listitem(t,n,r){return`<li>${t}</li>
|
|
41
|
+
`}checkbox(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph(t){return`<p>${t}</p>
|
|
42
|
+
`}table(t,n){return n&&(n=`<tbody>${n}</tbody>`),`<table>
|
|
43
|
+
<thead>
|
|
44
|
+
`+t+`</thead>
|
|
45
|
+
`+n+`</table>
|
|
46
|
+
`}tablerow(t){return`<tr>
|
|
47
|
+
${t}</tr>
|
|
48
|
+
`}tablecell(t,n){const r=n.header?"th":"td";return(n.align?`<${r} align="${n.align}">`:`<${r}>`)+t+`</${r}>
|
|
49
|
+
`}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,n,r){const i=Is(t);if(i===null)return r;t=i;let l='<a href="'+t+'"';return n&&(l+=' title="'+n+'"'),l+=">"+r+"</a>",l}image(t,n,r){const i=Is(t);if(i===null)return r;t=i;let l=`<img src="${t}" alt="${r}"`;return n&&(l+=` title="${n}"`),l+=">",l}text(t){return t}}class _i{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,n,r){return""+r}image(t,n,r){return""+r}br(){return""}}class it{options;renderer;textRenderer;constructor(t){this.options=t||$t,this.options.renderer=this.options.renderer||new wr,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new _i}static parse(t,n){return new it(n).parse(t)}static parseInline(t,n){return new it(n).parseInline(t)}parse(t,n=!0){let r="";for(let i=0;i<t.length;i++){const l=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[l.type]){const s=l,o=this.options.extensions.renderers[s.type].call({parser:this},s);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(s.type)){r+=o||"";continue}}switch(l.type){case"space":continue;case"hr":{r+=this.renderer.hr();continue}case"heading":{const s=l;r+=this.renderer.heading(this.parseInline(s.tokens),s.depth,_u(this.parseInline(s.tokens,this.textRenderer)));continue}case"code":{const s=l;r+=this.renderer.code(s.text,s.lang,!!s.escaped);continue}case"table":{const s=l;let o="",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]});o+=this.renderer.tablerow(a);let c="";for(let f=0;f<s.rows.length;f++){const p=s.rows[f];a="";for(let h=0;h<p.length;h++)a+=this.renderer.tablecell(this.parseInline(p[h].tokens),{header:!1,align:s.align[h]});c+=this.renderer.tablerow(a)}r+=this.renderer.table(o,c);continue}case"blockquote":{const s=l,o=this.parse(s.tokens);r+=this.renderer.blockquote(o);continue}case"list":{const s=l,o=s.ordered,a=s.start,c=s.loose;let f="";for(let p=0;p<s.items.length;p++){const h=s.items[p],v=h.checked,I=h.task;let x="";if(h.task){const C=this.renderer.checkbox(!!v);c?h.tokens.length>0&&h.tokens[0].type==="paragraph"?(h.tokens[0].text=C+" "+h.tokens[0].text,h.tokens[0].tokens&&h.tokens[0].tokens.length>0&&h.tokens[0].tokens[0].type==="text"&&(h.tokens[0].tokens[0].text=C+" "+h.tokens[0].tokens[0].text)):h.tokens.unshift({type:"text",text:C+" "}):x+=C+" "}x+=this.parse(h.tokens,c),f+=this.renderer.listitem(x,I,!!v)}r+=this.renderer.list(f,o,a);continue}case"html":{const s=l;r+=this.renderer.html(s.text,s.block);continue}case"paragraph":{const s=l;r+=this.renderer.paragraph(this.parseInline(s.tokens));continue}case"text":{let s=l,o=s.tokens?this.parseInline(s.tokens):s.text;for(;i+1<t.length&&t[i+1].type==="text";)s=t[++i],o+=`
|
|
50
|
+
`+(s.tokens?this.parseInline(s.tokens):s.text);r+=n?this.renderer.paragraph(o):o;continue}default:{const s='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return r}parseInline(t,n){n=n||this.renderer;let r="";for(let i=0;i<t.length;i++){const l=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[l.type]){const s=this.options.extensions.renderers[l.type].call({parser:this},l);if(s!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)){r+=s||"";continue}}switch(l.type){case"escape":{const s=l;r+=n.text(s.text);break}case"html":{const s=l;r+=n.html(s.text);break}case"link":{const s=l;r+=n.link(s.href,s.title,this.parseInline(s.tokens,n));break}case"image":{const s=l;r+=n.image(s.href,s.title,s.text);break}case"strong":{const s=l;r+=n.strong(this.parseInline(s.tokens,n));break}case"em":{const s=l;r+=n.em(this.parseInline(s.tokens,n));break}case"codespan":{const s=l;r+=n.codespan(s.text);break}case"br":{r+=n.br();break}case"del":{const s=l;r+=n.del(this.parseInline(s.tokens,n));break}case"text":{const s=l;r+=n.text(s.text);break}default:{const s='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return r}}class yn{options;constructor(t){this.options=t||$t}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}}Ne(yn,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class Hs{constructor(...t){Ri(this,$n);Ri(this,kr);Ne(this,"defaults",mi());Ne(this,"options",this.setOptions);Ne(this,"parse",xr(this,$n,Ti).call(this,rt.lex,it.parse));Ne(this,"parseInline",xr(this,$n,Ti).call(this,rt.lexInline,it.parseInline));Ne(this,"Parser",it);Ne(this,"Renderer",wr);Ne(this,"TextRenderer",_i);Ne(this,"Lexer",rt);Ne(this,"Tokenizer",pr);Ne(this,"Hooks",yn);this.use(...t)}walkTokens(t,n){var i,l;let r=[];for(const s of t)switch(r=r.concat(n.call(this,s)),s.type){case"table":{const o=s;for(const a of o.header)r=r.concat(this.walkTokens(a.tokens,n));for(const a of o.rows)for(const c of a)r=r.concat(this.walkTokens(c.tokens,n));break}case"list":{const o=s;r=r.concat(this.walkTokens(o.items,n));break}default:{const o=s;(l=(i=this.defaults.extensions)==null?void 0:i.childTokens)!=null&&l[o.type]?this.defaults.extensions.childTokens[o.type].forEach(a=>{r=r.concat(this.walkTokens(o[a],n))}):o.tokens&&(r=r.concat(this.walkTokens(o.tokens,n)))}}return r}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{const i={...r};if(i.async=this.defaults.async||i.async||!1,r.extensions&&(r.extensions.forEach(l=>{if(!l.name)throw new Error("extension name required");if("renderer"in l){const s=n.renderers[l.name];s?n.renderers[l.name]=function(...o){let a=l.renderer.apply(this,o);return a===!1&&(a=s.apply(this,o)),a}:n.renderers[l.name]=l.renderer}if("tokenizer"in l){if(!l.level||l.level!=="block"&&l.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const s=n[l.level];s?s.unshift(l.tokenizer):n[l.level]=[l.tokenizer],l.start&&(l.level==="block"?n.startBlock?n.startBlock.push(l.start):n.startBlock=[l.start]:l.level==="inline"&&(n.startInline?n.startInline.push(l.start):n.startInline=[l.start]))}"childTokens"in l&&l.childTokens&&(n.childTokens[l.name]=l.childTokens)}),i.extensions=n),r.renderer){const l=this.defaults.renderer||new wr(this.defaults);for(const s in r.renderer){if(!(s in l))throw new Error(`renderer '${s}' does not exist`);if(s==="options")continue;const o=s,a=r.renderer[o],c=l[o];l[o]=(...f)=>{let p=a.apply(l,f);return p===!1&&(p=c.apply(l,f)),p||""}}i.renderer=l}if(r.tokenizer){const l=this.defaults.tokenizer||new pr(this.defaults);for(const s in r.tokenizer){if(!(s in l))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;const o=s,a=r.tokenizer[o],c=l[o];l[o]=(...f)=>{let p=a.apply(l,f);return p===!1&&(p=c.apply(l,f)),p}}i.tokenizer=l}if(r.hooks){const l=this.defaults.hooks||new yn;for(const s in r.hooks){if(!(s in l))throw new Error(`hook '${s}' does not exist`);if(s==="options")continue;const o=s,a=r.hooks[o],c=l[o];yn.passThroughHooks.has(s)?l[o]=f=>{if(this.defaults.async)return Promise.resolve(a.call(l,f)).then(h=>c.call(l,h));const p=a.call(l,f);return c.call(l,p)}:l[o]=(...f)=>{let p=a.apply(l,f);return p===!1&&(p=c.apply(l,f)),p}}i.hooks=l}if(r.walkTokens){const l=this.defaults.walkTokens,s=r.walkTokens;i.walkTokens=function(o){let a=[];return a.push(s.call(this,o)),l&&(a=a.concat(l.call(this,o))),a}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return rt.lex(t,n??this.defaults)}parser(t,n){return it.parse(t,n??this.defaults)}}$n=new WeakSet,Ti=function(t,n){return(r,i)=>{const l={...i},s={...this.defaults,...l};this.defaults.async===!0&&l.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 o=xr(this,kr,ho).call(this,!!s.silent,!!s.async);if(typeof r>"u"||r===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(s.hooks&&(s.hooks.options=s),s.async)return Promise.resolve(s.hooks?s.hooks.preprocess(r):r).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=>n(a,s)).then(a=>s.hooks?s.hooks.postprocess(a):a).catch(o);try{s.hooks&&(r=s.hooks.preprocess(r));let a=t(r,s);s.hooks&&(a=s.hooks.processAllTokens(a)),s.walkTokens&&this.walkTokens(a,s.walkTokens);let c=n(a,s);return s.hooks&&(c=s.hooks.postprocess(c)),c}catch(a){return o(a)}}},kr=new WeakSet,ho=function(t,n){return r=>{if(r.message+=`
|
|
51
|
+
Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An error occurred:</p><pre>"+Me(r.message+"",!0)+"</pre>";return n?Promise.resolve(i):i}if(n)return Promise.reject(r);throw r}};const Et=new Hs;function he(e,t){return Et.parse(e,t)}he.options=he.setOptions=function(e){return Et.setOptions(e),he.defaults=Et.defaults,Es(he.defaults),he},he.getDefaults=mi,he.defaults=$t,he.use=function(...e){return Et.use(...e),he.defaults=Et.defaults,Es(he.defaults),he},he.walkTokens=function(e,t){return Et.walkTokens(e,t)},he.parseInline=Et.parseInline,he.Parser=it,he.parser=it.parse,he.Renderer=wr,he.TextRenderer=_i,he.Lexer=rt,he.lexer=rt.lex,he.Tokenizer=pr,he.Hooks=yn,he.parse=he;function Xu(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=Ds(t.lang);if(e.async)return Promise.resolve(e.highlight(t.text,n,t.lang||"")).then(Bs(t));const r=e.highlight(t.text,n,t.lang||"");if(r instanceof Promise)throw new Error("markedHighlight is not set to async but the highlight function is async. Set the async option to true on markedHighlight to await the async highlight function.");Bs(t)(r)},renderer:{code(t,n,r){const i=Ds(n),l=i?` class="${e.langPrefix}${Ks(i)}"`:"";return t=t.replace(/\n$/,""),`<pre><code${l}>${r?t:Ks(t,!0)}
|
|
52
|
+
</code></pre>`}}}}function Ds(e){return(e||"").match(/\S*/)[0]}function Bs(e){return t=>{typeof t=="string"&&t!==e.text&&(e.escaped=!0,e.text=t)}}const Vs=/[&<>"']/,Gu=new RegExp(Vs.source,"g"),Ws=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,ef=new RegExp(Ws.source,"g"),tf={"&":"&","<":"<",">":">",'"':""","'":"'"},qs=e=>tf[e];function Ks(e,t){if(t){if(Vs.test(e))return e.replace(Gu,qs)}else if(Ws.test(e))return e.replace(ef,qs);return e}const nf=/\$.*?\$/,rf=/^\$(.*?)\$/,lf=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,sf=e=>[{name:"blockMath",level:"block",tokenizer(t){const n=lf.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(nf);return n!==-1?n:t.length},tokenizer(t){const n=rf.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!1,n[1])}}}],Zs=(e="",t={})=>e.replace(/:(.+?):/g,(n,r)=>t[r]?`<img class="wl-emoji" src="${t[r]}" alt="${r}">`:n),of=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{const i=new Hs;if(i.setOptions({breaks:!0}),n&&i.use(Xu({highlight:n})),r){const l=sf(r);i.use({extensions:l})}return i.parse(Zs(e,t))},Ci=e=>e.dataset.path||null,af=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),cf=e=>e.match(/[\u4E00-\u9FD5]/gu),uf=e=>{var t,n;return(((t=af(e))==null?void 0:t.reduce((r,i)=>r+(["",",","."].includes(i.trim())?0:i.trim().split(/\s+/u).length),0))||0)+(((n=cf(e))==null?void 0:n.length)||0)},ff=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},Js=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count",lang:r=navigator.language})=>{const i=new AbortController,l=document.querySelectorAll(n);return l.length&&Si({serverURL:Ln(e),paths:Array.from(l).map(s=>Vi(Ci(s)||t)),lang:r,signal:i.signal}).then(s=>{l.forEach((o,a)=>{o.innerText=s[a].toString()})}).catch(Cs),i.abort.bind(i)},Qs=({size:e})=>ee("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[ee("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"}),ee("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"})]),df=()=>ee("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ee("path",{d:"m341.013 394.667 27.755 393.45h271.83l27.733-393.45h64.106l-28.01 397.952a64 64 0 0 1-63.83 59.498H368.768a64 64 0 0 1-63.83-59.52l-28.053-397.93h64.128zm139.307 19.818v298.667h-64V414.485h64zm117.013 0v298.667h-64V414.485h64zM181.333 288h640v64h-640v-64zm453.483-106.667v64h-256v-64h256z",fill:"red"})),hf=()=>ee("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ee("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"})),pf=()=>ee("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ee("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"}),ee("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"})]),gf=({active:e=!1})=>ee("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ee("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"})]),mf=()=>ee("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ee("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"}),ee("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"})]),vf=()=>ee("svg",{width:"16",height:"16",ariaHidden:"true"},ee("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"})),wf=()=>ee("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ee("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"})),yf=()=>ee("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ee("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=()=>ee("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},ee("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"})),bn=({size:e=100})=>ee("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},ee("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},ee("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),kf=()=>ee("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[ee("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"}),ee("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"})]),xf=()=>Dt("WALINE_USER_META",{nick:"",mail:"",link:""}),_f=()=>Dt("WALINE_COMMENT_BOX_EDITOR",""),Cf="WALINE_LIKE";let Ys=null;const Xs=()=>Ys||(Ys=Dt(Cf,[])),$f="WALINE_REACTION";let Gs=null;const Ef=()=>Gs??(Gs=Dt($f,{}));var yr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},eo={},Bt={},kn={},Rf=yr&&yr.__awaiter||function(e,t,n,r){function i(l){return l instanceof n?l:new n(function(s){s(l)})}return new(n||(n=Promise))(function(l,s){function o(f){try{c(r.next(f))}catch(p){s(p)}}function a(f){try{c(r.throw(f))}catch(p){s(p)}}function c(f){f.done?l(f.value):i(f.value).then(o,a)}c((r=r.apply(e,t||[])).next())})},Tf=yr&&yr.__generator||function(e,t){var n={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},r,i,l,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(c){return function(f){return a([c,f])}}function a(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(l=c[0]&2?i.return:c[0]?i.throw||((l=i.return)&&l.call(i),0):i.next)&&!(l=l.call(i,c[1])).done)return l;switch(i=0,l&&(c=[c[0]&2,l.value]),c[0]){case 0:case 1:l=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(l=n.trys,!(l=l.length>0&&l[l.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!l||c[1]>l[0]&&c[1]<l[3])){n.label=c[1];break}if(c[0]===6&&n.label<l[1]){n.label=l[1],l=c;break}if(l&&n.label<l[2]){n.label=l[2],n.ops.push(c);break}l[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(f){c=[6,f],i=0}finally{r=l=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}};Object.defineProperty(kn,"__esModule",{value:!0}),kn.ReCaptchaInstance=void 0;var Af=function(){function e(t,n,r){this.siteKey=t,this.recaptchaID=n,this.recaptcha=r,this.styleContainer=null}return e.prototype.execute=function(t){return Rf(this,void 0,void 0,function(){return Tf(this,function(n){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}();kn.ReCaptchaInstance=Af,Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.getInstance=Bt.load=void 0;var If=kn,ht;(function(e){e[e.NOT_LOADED=0]="NOT_LOADED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"})(ht||(ht={}));var to=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()===ht.LOADED)return e.instance.getSiteKey()===t?Promise.resolve(e.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(e.getLoadingState()===ht.LOADING)return t!==e.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(i,l){e.successfulLoadingConsumers.push(function(s){return i(s)}),e.errorLoadingRunnable.push(function(s){return l(s)})});e.instanceSiteKey=t,e.setLoadingState(ht.LOADING);var r=new e;return new Promise(function(i,l){r.loadScript(t,n.useRecaptchaNet||!1,n.useEnterprise||!1,n.renderParameters?n.renderParameters:{},n.customUrl).then(function(){e.setLoadingState(ht.LOADED);var s=r.doExplicitRender(grecaptcha,t,n.explicitRenderParameters?n.explicitRenderParameters:{},n.useEnterprise||!1),o=new If.ReCaptchaInstance(t,s,grecaptcha);e.successfulLoadingConsumers.forEach(function(a){return a(o)}),e.successfulLoadingConsumers=[],n.autoHideBadge&&o.hideBadge(),e.instance=o,i(o)}).catch(function(s){e.errorLoadingRunnable.forEach(function(o){return o(s)}),e.errorLoadingRunnable=[],l(s)})})},e.getInstance=function(){return e.instance},e.setLoadingState=function(t){e.loadingState=t},e.getLoadingState=function(){return e.loadingState===null?ht.NOT_LOADED:e.loadingState},e.prototype.loadScript=function(t,n,r,i,l){var s=this;n===void 0&&(n=!1),r===void 0&&(r=!1),i===void 0&&(i={}),l===void 0&&(l="");var o=document.createElement("script");o.setAttribute("recaptcha-v3-script","");var a="https://www.google.com/recaptcha/api.js";n&&(r?a="https://recaptcha.net/recaptcha/enterprise.js":a="https://recaptcha.net/recaptcha/api.js"),r&&(a="https://www.google.com/recaptcha/enterprise.js"),l&&(a=l),i.render&&(i.render=void 0);var c=this.buildQueryString(i);return o.src=a+"?render=explicit"+c,new Promise(function(f,p){o.addEventListener("load",s.waitForScriptToLoad(function(){f(o)},r),!1),o.onerror=function(h){e.setLoadingState(ht.NOT_LOADED),p(h)},document.head.appendChild(o)})},e.prototype.buildQueryString=function(t){var n=Object.keys(t);return n.length<1?"":"&"+Object.keys(t).filter(function(r){return!!t[r]}).map(function(r){return r+"="+t[r]}).join("&")},e.prototype.waitForScriptToLoad=function(t,n){var r=this;return function(){window.grecaptcha===void 0?setTimeout(function(){r.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,r,i){var l={sitekey:n,badge:r.badge,size:r.size,tabindex:r.tabindex};return r.container?i?t.enterprise.render(r.container,l):t.render(r.container,l):i?t.enterprise.render(l):t.render(l)},e.loadingState=null,e.instance=null,e.instanceSiteKey=null,e.successfulLoadingConsumers=[],e.errorLoadingRunnable=[],e.SCRIPT_LOAD_DELAY=25,e}();Bt.load=to.load,Bt.getInstance=to.getInstance,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=Bt;Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=kn;Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})}(eo);const no={},Lf=e=>{const t=no[e]??(no[e]=eo.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:n=>t.then(r=>r.execute(n))}},Sf=e=>({execute:async t=>{const{load:n}=du("https://challenges.cloudflare.com/turnstile/v0/api.js",void 0,{async:!1});await n();const r=window==null?void 0:window.turnstile;return new Promise(i=>{r==null||r.ready(()=>{r==null||r.render(".wl-captcha-container",{sitekey:e,action:t,size:"compact",callback:i})})})}}),Mf="WALINE_USER";let ro=null;const br=()=>ro??(ro=Dt(Mf,{})),zf={key:0,class:"wl-reaction"},Of=["textContent"],jf={class:"wl-reaction-list"},Pf=["onClick"],Uf={class:"wl-reaction-img"},Ff=["src","alt"],Nf=["textContent"],Hf=["textContent"];var Df=rn({__name:"ArticleReaction",setup(e,{expose:t}){t();const n=Ef(),r=nr("config"),i=B(-1),l=B([]),s=be(()=>r.value.locale),o=be(()=>r.value.reaction.length>0),a=be(()=>{const{reaction:h,path:v}=r.value;return h.map((I,x)=>({icon:I,desc:s.value[`reaction${x}`],active:n.value[v]===x}))});let c;const f=async()=>{if(o.value){const{serverURL:h,lang:v,path:I,reaction:x}=r.value,C=new AbortController;c=C.abort.bind(C);const y=await _r({serverURL:h,lang:v,paths:[I],type:x.map(($,H)=>`reaction${H}`),signal:C.signal});if(Array.isArray(y)||typeof y=="number")return;l.value=x.map(($,H)=>y[`reaction${H}`])}},p=async h=>{if(i.value===-1){const{serverURL:v,lang:I,path:x}=r.value,C=n.value[x];i.value=h,C!==void 0&&(await An({serverURL:v,lang:I,path:x,type:`reaction${C}`,action:"desc"}),l.value[C]=Math.max(l.value[C]-1,0)),C!==h&&(await An({serverURL:v,lang:I,path:x,type:`reaction${h}`}),l.value[h]=(l.value[h]||0)+1),C===h?delete n.value[x]:n.value[x]=h,i.value=-1}};return ln(()=>{Oe(()=>[r.value.serverURL,r.value.path],()=>{f()},{immediate:!0})}),Gn(()=>c==null?void 0:c()),(h,v)=>a.value.length?(A(),z("div",zf,[P("div",{class:"wl-reaction-title",textContent:re(s.value.reactionTitle)},null,8,Of),P("ul",jf,[(A(!0),z(ae,null,je(a.value,({active:I,icon:x,desc:C},y)=>(A(),z("li",{key:y,class:me(["wl-reaction-item",{active:I}]),onClick:$=>p(y)},[P("div",Uf,[P("img",{src:x,alt:C},null,8,Ff),i.value===y?(A(),Ge(q(bn),{key:0,class:"wl-reaction-loading"})):(A(),z("div",{key:1,class:"wl-reaction-votes",textContent:re(l.value[y]||0)},null,8,Nf))]),P("div",{class:"wl-reaction-text",textContent:re(C)},null,8,Hf)],10,Pf))),128))])])):X("v-if",!0)}}),xn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},Bf=xn(Df,[["__file","ArticleReaction.vue"]]),_n=new Map;function Vf(e){var t=_n.get(e);t&&t.destroy()}function Wf(e){var t=_n.get(e);t&&t.update()}var Cn=null;typeof window>"u"?((Cn=function(e){return e}).destroy=function(e){return e},Cn.update=function(e){return e}):((Cn=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(n){return function(r){if(r&&r.nodeName&&r.nodeName==="TEXTAREA"&&!_n.has(r)){var i,l=null,s=window.getComputedStyle(r),o=(i=r.value,function(){c({testForHeightReduction:i===""||!r.value.startsWith(i),restoreTextAlign:null}),i=r.value}),a=(function(p){r.removeEventListener("autosize:destroy",a),r.removeEventListener("autosize:update",f),r.removeEventListener("input",o),window.removeEventListener("resize",f),Object.keys(p).forEach(function(h){return r.style[h]=p[h]}),_n.delete(r)}).bind(r,{height:r.style.height,resize:r.style.resize,textAlign:r.style.textAlign,overflowY:r.style.overflowY,overflowX:r.style.overflowX,wordWrap:r.style.wordWrap});r.addEventListener("autosize:destroy",a),r.addEventListener("autosize:update",f),r.addEventListener("input",o),window.addEventListener("resize",f),r.style.overflowX="hidden",r.style.wordWrap="break-word",_n.set(r,{destroy:a,update:f}),f()}function c(p){var h,v,I=p.restoreTextAlign,x=I===void 0?null:I,C=p.testForHeightReduction,y=C===void 0||C,$=s.overflowY;if(r.scrollHeight!==0&&(s.resize==="vertical"?r.style.resize="none":s.resize==="both"&&(r.style.resize="horizontal"),y&&(h=function(T){for(var U=[];T&&T.parentNode&&T.parentNode instanceof Element;)T.parentNode.scrollTop&&U.push([T.parentNode,T.parentNode.scrollTop]),T=T.parentNode;return function(){return U.forEach(function(Y){var K=Y[0],D=Y[1];K.style.scrollBehavior="auto",K.scrollTop=D,K.style.scrollBehavior=null})}}(r),r.style.height=""),v=s.boxSizing==="content-box"?r.scrollHeight-(parseFloat(s.paddingTop)+parseFloat(s.paddingBottom)):r.scrollHeight+parseFloat(s.borderTopWidth)+parseFloat(s.borderBottomWidth),s.maxHeight!=="none"&&v>parseFloat(s.maxHeight)?(s.overflowY==="hidden"&&(r.style.overflow="scroll"),v=parseFloat(s.maxHeight)):s.overflowY!=="hidden"&&(r.style.overflow="hidden"),r.style.height=v+"px",x&&(r.style.textAlign=x),h&&h(),l!==v&&(r.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),l=v),$!==s.overflow&&!x)){var H=s.textAlign;s.overflow==="hidden"&&(r.style.textAlign=H==="start"?"end":"start"),c({restoreTextAlign:H,testForHeightReduction:!0})}}function f(){c({testForHeightReduction:!0,restoreTextAlign:null})}}(n)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Vf),e},Cn.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Wf),e});var qf=Cn,io=qf;const Kf=["data-index"],Zf=["src","title","onClick"];var Jf=rn({__name:"ImageWall",props:{items:{default:()=>[]},columnWidth:{default:300},gap:{default:0}},emits:["insert"],setup(e,{expose:t}){const n=e;t();let r=null;const i=B(null),l=B({}),s=B([]),o=()=>{const h=Math.floor((i.value.getBoundingClientRect().width+n.gap)/(n.columnWidth+n.gap));return h>0?h:1},a=h=>new Array(h).fill(null).map(()=>[]),c=async h=>{var v;if(h>=n.items.length)return;await Kn();const I=Array.from(((v=i.value)==null?void 0:v.children)||[]).reduce((x,C)=>C.getBoundingClientRect().height<x.getBoundingClientRect().height?C:x);s.value[Number(I.dataset.index)].push(h),await c(h+1)},f=async(h=!1)=>{if(s.value.length===o()&&!h)return;s.value=a(o());const v=window.scrollY;await c(0),window.scrollTo({top:v})},p=h=>{l.value[h.target.src]=!0};return ln(()=>{f(!0),r=new ResizeObserver(()=>{f()}),r.observe(i.value),Oe(()=>[n.items],()=>{l.value={},f(!0)}),Oe(()=>[n.columnWidth,n.gap],()=>{f()})}),Ua(()=>r.unobserve(i.value)),(h,v)=>(A(),z("div",{ref_key:"wall",ref:i,class:"wl-gallery",style:Zt({gap:`${h.gap}px`})},[(A(!0),z(ae,null,je(s.value,(I,x)=>(A(),z("div",{key:x,class:"wl-gallery-column","data-index":x,style:Zt({gap:`${h.gap}px`})},[(A(!0),z(ae,null,je(I,C=>(A(),z(ae,{key:C},[l.value[h.items[C].src]?X("v-if",!0):(A(),Ge(q(bn),{key:0,size:36,style:{margin:"20px auto"}})),P("img",{class:"wl-gallery-item",src:h.items[C].src,title:h.items[C].title,loading:"lazy",onLoad:p,onClick:y=>h.$emit("insert",``)},null,40,Zf)],64))),128))],12,Kf))),128))],4))}}),Qf=xn(Jf,[["__file","ImageWall.vue"]]);const Yf={class:"wl-comment"},Xf={key:0,class:"wl-login-info"},Gf={class:"wl-avatar"},ed=["title"],td=["title"],nd=["src"],rd=["title","textContent"],id={class:"wl-panel"},ld=["for","textContent"],sd=["id","onUpdate:modelValue","name","type"],od=["placeholder"],ad={class:"wl-preview"},cd=P("hr",null,null,-1),ud=["innerHTML"],fd={class:"wl-footer"},dd={class:"wl-actions"},hd={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},pd=["title"],gd=["title"],md=["title"],vd=["title"],wd={class:"wl-info"},yd=P("div",{class:"wl-captcha-container"},null,-1),bd={class:"wl-text-number"},kd={key:0},xd=["textContent"],_d=["textContent"],Cd=["disabled"],$d=["placeholder"],Ed={key:1,class:"wl-loading"},Rd={key:0,class:"wl-tab-wrapper"},Td=["title","onClick"],Ad=["src","alt"],Id={key:0,class:"wl-tabs"},Ld=["onClick"],Sd=["src","alt","title"],Md=["title"];var zd=rn({__name:"CommentBox",props:{edit:{default:null},rootId:{default:""},replyId:{default:""},replyUser:{default:""}},emits:["log","cancelEdit","cancelReply","submit"],setup(e,{expose:t,emit:n}){const r=e,i=n;t();const l=nr("config"),s=_f(),o=xf(),a=br(),c=B({}),f=B(null),p=B(null),h=B(null),v=B(null),I=B(null),x=B(null),C=B(null),y=B({tabs:[],map:{}}),$=B(0),H=B(!1),T=B(!1),U=B(!1),Y=B(""),K=B(0),D=Xt({loading:!0,list:[]}),Z=B(0),ce=B(!1),Te=B(""),Be=B(!1),V=B(!1),N=be(()=>l.value.locale),se=be(()=>{var L;return!!((L=a.value)!=null&&L.token)}),we=be(()=>l.value.imageUploader!==!1),ve=L=>{const u=f.value,d=u.selectionStart,g=u.selectionEnd||0,m=u.scrollTop;s.value=u.value.substring(0,d)+L+u.value.substring(g,u.value.length),u.focus(),u.selectionStart=d+L.length,u.selectionEnd=d+L.length,u.scrollTop=m},_e=L=>{const u=L.key;(L.ctrlKey||L.metaKey)&&u==="Enter"&&En()},ke=L=>{const u=`![${l.value.locale.uploading} ${L.name}]()`;return ve(u),Be.value=!0,Promise.resolve().then(()=>l.value.imageUploader(L)).then(d=>{s.value=s.value.replace(u,`\r
|
|
53
|
+
`)}).catch(d=>{alert(d.message),s.value=s.value.replace(u,"")}).then(()=>{Be.value=!1})},pt=L=>{var u;if((u=L.dataTransfer)!=null&&u.items){const d=$s(L.dataTransfer.items);d&&we.value&&(ke(d),L.preventDefault())}},Rt=L=>{if(L.clipboardData){const u=$s(L.clipboardData.items);u&&we.value&&ke(u)}},Ue=()=>{const L=p.value;L.files&&we.value&&ke(L.files[0]).then(()=>{L.value=""})},En=async()=>{var L,u,d,g,m,w;const{serverURL:b,lang:E,login:_,wordLimit:R,requiredMeta:k,recaptchaV3Key:O,turnstileKey:S}=l.value,j=await ff(),M={comment:Te.value,nick:o.value.nick,mail:o.value.mail,link:o.value.link,url:l.value.path,ua:j};if((L=a.value)!=null&&L.token)M.nick=a.value.display_name,M.mail=a.value.email,M.link=a.value.url;else{if(_==="force")return;if(k.indexOf("nick")>-1&&!M.nick)return(u=c.value.nick)==null||u.focus(),alert(N.value.nickError);if(k.indexOf("mail")>-1&&!M.mail||M.mail&&!So(M.mail))return(d=c.value.mail)==null||d.focus(),alert(N.value.mailError);M.nick||(M.nick=N.value.anonymous)}if(!M.comment){(g=f.value)==null||g.focus();return}if(!ce.value)return alert(N.value.wordHint.replace("$0",R[0].toString()).replace("$1",R[1].toString()).replace("$2",K.value.toString()));M.comment=Zs(M.comment,y.value.map),r.replyId&&r.rootId&&(M.pid=r.replyId,M.rid=r.rootId,M.at=r.replyUser),Be.value=!0;try{O&&(M.recaptchaV3=await Lf(O).execute("social")),S&&(M.turnstile=await Sf(S).execute("social"));const W={serverURL:b,lang:E,token:(m=a.value)==null?void 0:m.token,comment:M},te=await(r.edit?qt({objectId:r.edit.objectId,...W}):Ii(W));if(Be.value=!1,te.errmsg)return alert(te.errmsg);i("submit",te.data),s.value="",Y.value="",r.replyId&&i("cancelReply"),(w=r.edit)!=null&&w.objectId&&i("cancelEdit")}catch(W){Be.value=!1,alert(W.message)}},$i=L=>{L.preventDefault();const{lang:u,serverURL:d}=l.value;Mi({serverURL:d,lang:u}).then(g=>{a.value=g,(g.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(g)),i("log")})},Ei=()=>{a.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),i("log")},Fe=L=>{L.preventDefault();const{lang:u,serverURL:d}=l.value,g=800,m=800,w=(window.innerWidth-g)/2,b=(window.innerHeight-m)/2,E=new URLSearchParams({lng:u,token:a.value.token}),_=window.open(`${d}/ui/profile?${E.toString()}`,"_blank",`width=${g},height=${m},left=${w},top=${b},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);_==null||_.postMessage({type:"TOKEN",data:a.value.token},"*")},Tt=L=>{var u,d,g,m;!((u=h.value)!=null&&u.contains(L.target))&&!((d=v.value)!=null&&d.contains(L.target))&&(H.value=!1),!((g=I.value)!=null&&g.contains(L.target))&&!((m=x.value)!=null&&m.contains(L.target))&&(T.value=!1)},Rn=async L=>{var u;const{scrollTop:d,clientHeight:g,scrollHeight:m}=L.target,w=(g+d)/m,b=l.value.search,E=((u=C.value)==null?void 0:u.value)||"";w<.9||D.loading||V.value||(D.loading=!0,(b.more&&D.list.length?await b.more(E,D.list.length):await b.search(E)).length?D.list=[...D.list,...b.more&&D.list.length?await b.more(E,D.list.length):await b.search(E)]:V.value=!0,D.loading=!1,setTimeout(()=>{L.target.scrollTop=d},50))},lt=Gc(L=>{D.list=[],V.value=!1,Rn(L)},300);Oe([l,K],([L,u])=>{const{wordLimit:d}=L;d?u<d[0]&&d[0]!==0?(Z.value=d[0],ce.value=!1):u>d[1]?(Z.value=d[1],ce.value=!1):(Z.value=d[1],ce.value=!0):(Z.value=0,ce.value=!0)},{immediate:!0});const Vt=({data:L})=>{!L||L.type!=="profile"||(a.value={...a.value,...L.data},[localStorage,sessionStorage].filter(u=>u.getItem("WALINE_USER")).forEach(u=>u.setItem("WALINE_USER",JSON.stringify(a))))};return ln(()=>{var L;document.body.addEventListener("click",Tt),window.addEventListener("message",Vt),(L=r.edit)!=null&&L.objectId&&(s.value=r.edit.orig),Oe(T,async u=>{if(!u)return;const d=l.value.search;C.value&&(C.value.value=""),D.loading=!0,D.list=d.default?await d.default():await d.search(""),D.loading=!1}),Oe(()=>s.value,u=>{const{highlighter:d,texRenderer:g}=l.value;Te.value=u,Y.value=of(u,{emojiMap:y.value.map,highlighter:d,texRenderer:g}),K.value=uf(u),u?io(f.value):io.destroy(f.value)},{immediate:!0}),Oe(()=>l.value.emoji,u=>vu(u).then(d=>{y.value=d}),{immediate:!0})}),Gn(()=>{document.body.removeEventListener("click",Tt),window.removeEventListener("message",Vt)}),(L,u)=>{var d,g;return A(),z("div",Yf,[q(l).login!=="disable"&&se.value&&!((d=L.edit)!=null&&d.objectId)?(A(),z("div",Xf,[P("div",Gf,[P("button",{type:"submit",class:"wl-logout-btn",title:N.value.logout,onClick:Ei},[ie(q(Qs),{size:14})],8,ed),P("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:N.value.profile,onClick:Fe},[P("img",{src:q(a).avatar,alt:"avatar"},null,8,nd)],8,td)]),P("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:N.value.profile,onClick:Fe,textContent:re(q(a).display_name)},null,8,rd)])):X("v-if",!0),P("div",id,[q(l).login!=="force"&&q(l).meta.length&&!se.value?(A(),z("div",{key:0,class:me(["wl-header",`item${q(l).meta.length}`])},[(A(!0),z(ae,null,je(q(l).meta,m=>(A(),z("div",{key:m,class:"wl-header-item"},[P("label",{for:`wl-${m}`,textContent:re(N.value[m]+(q(l).requiredMeta.includes(m)||!q(l).requiredMeta.length?"":`(${N.value.optional})`))},null,8,ld),Yn(P("input",{id:`wl-${m}`,ref_for:!0,ref:w=>{w&&(c.value[m]=w)},"onUpdate:modelValue":w=>q(o)[m]=w,class:me(["wl-input",`wl-${m}`]),name:m,type:m==="mail"?"email":"text"},null,10,sd),[[Bc,q(o)[m]]])]))),128))],2)):X("v-if",!0),Yn(P("textarea",{id:"wl-edit",ref_key:"editorRef",ref:f,"onUpdate:modelValue":u[0]||(u[0]=m=>$e(s)?s.value=m:null),class:"wl-editor",placeholder:L.replyUser?`@${L.replyUser}`:N.value.placeholder,onKeydown:_e,onDrop:pt,onPaste:Rt},null,40,od),[[hi,q(s)]]),Yn(P("div",ad,[cd,P("h4",null,re(N.value.preview)+":",1),P("div",{class:"wl-content",innerHTML:Y.value},null,8,ud)],512),[[ls,U.value]]),P("div",fd,[P("div",dd,[P("a",hd,[ie(q(vf))]),Yn(P("button",{ref_key:"emojiButtonRef",ref:h,type:"button",class:me(["wl-action",{active:H.value}]),title:N.value.emoji,onClick:u[1]||(u[1]=m=>H.value=!H.value)},[ie(q(hf))],10,pd),[[ls,y.value.tabs.length]]),q(l).search?(A(),z("button",{key:0,ref_key:"gifButtonRef",ref:I,type:"button",class:me(["wl-action",{active:T.value}]),title:N.value.gif,onClick:u[2]||(u[2]=m=>T.value=!T.value)},[ie(q(kf))],10,gd)):X("v-if",!0),P("input",{id:"wl-image-upload",ref_key:"imageUploadRef",ref:p,class:"upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:Ue},null,544),we.value?(A(),z("label",{key:1,for:"wl-image-upload",class:"wl-action",title:N.value.uploadImage},[ie(q(pf))],8,md)):X("v-if",!0),P("button",{type:"button",class:me(["wl-action",{active:U.value}]),title:N.value.preview,onClick:u[3]||(u[3]=m=>U.value=!U.value)},[ie(q(mf))],10,vd)]),P("div",wd,[yd,P("div",bd,[et(re(K.value)+" ",1),q(l).wordLimit?(A(),z("span",kd,[et(" / "),P("span",{class:me({illegal:!ce.value}),textContent:re(Z.value)},null,10,xd)])):X("v-if",!0),et(" "+re(N.value.word),1)]),q(l).login!=="disable"&&!se.value?(A(),z("button",{key:0,type:"button",class:"wl-btn",onClick:$i,textContent:re(N.value.login)},null,8,_d)):X("v-if",!0),q(l).login!=="force"||se.value?(A(),z("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:Be.value,onClick:En},[Be.value?(A(),Ge(q(bn),{key:0,size:16})):(A(),z(ae,{key:1},[et(re(N.value.submit),1)],64))],8,Cd)):X("v-if",!0)]),P("div",{ref_key:"gifPopupRef",ref:x,class:me(["wl-gif-popup",{display:T.value}])},[P("input",{ref_key:"gifSearchInputRef",ref:C,type:"text",placeholder:N.value.gifSearchPlaceholder,onInput:u[4]||(u[4]=(...m)=>q(lt)&&q(lt)(...m))},null,40,$d),D.list.length?(A(),Ge(Qf,{key:0,items:D.list,"column-width":200,gap:6,onInsert:u[5]||(u[5]=m=>ve(m)),onScroll:Rn},null,8,["items"])):X("v-if",!0),D.loading?(A(),z("div",Ed,[ie(q(bn),{size:30})])):X("v-if",!0)],2),P("div",{ref_key:"emojiPopupRef",ref:v,class:me(["wl-emoji-popup",{display:H.value}])},[(A(!0),z(ae,null,je(y.value.tabs,(m,w)=>(A(),z(ae,{key:m.name},[w===$.value?(A(),z("div",Rd,[(A(!0),z(ae,null,je(m.items,b=>(A(),z("button",{key:b,type:"button",title:b,onClick:E=>ve(`:${b}:`)},[H.value?(A(),z("img",{key:0,class:"wl-emoji",src:y.value.map[b],alt:b,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Ad)):X("v-if",!0)],8,Td))),128))])):X("v-if",!0)],64))),128)),y.value.tabs.length>1?(A(),z("div",Id,[(A(!0),z(ae,null,je(y.value.tabs,(m,w)=>(A(),z("button",{key:m.name,type:"button",class:me(["wl-tab",{active:$.value===w}]),onClick:b=>$.value=w},[P("img",{class:"wl-emoji",src:m.icon,alt:m.name,title:m.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Sd)],10,Ld))),128))])):X("v-if",!0)],2)])]),L.replyId||(g=L.edit)!=null&&g.objectId?(A(),z("button",{key:1,type:"button",class:"wl-close",title:N.value.cancelReply,onClick:u[6]||(u[6]=m=>L.$emit(L.replyId?"cancelReply":"cancelEdit"))},[ie(q(Qs),{size:24})],8,Md)):X("v-if",!0)])}}}),lo=xn(zd,[["__file","CommentBox.vue"]]);const Od=["id"],jd={class:"wl-user","aria-hidden":"true"},Pd=["src"],Ud={class:"wl-card"},Fd={class:"wl-head"},Nd=["href"],Hd={key:1,class:"wl-nick"},Dd=["textContent"],Bd=["textContent"],Vd=["textContent"],Wd=["textContent"],qd=["textContent"],Kd={class:"wl-comment-actions"},Zd=["title"],Jd=["title"],Qd={class:"wl-meta","aria-hidden":"true"},Yd=["data-value","textContent"],Xd=["innerHTML"],Gd={key:1,class:"wl-admin-actions"},eh={class:"wl-comment-status"},th=["disabled","onClick","textContent"],nh={key:3,class:"wl-quote"};var rh=rn({__name:"CommentCard",props:{comment:{},edit:{default:null},rootId:{},reply:{default:null}},emits:["log","submit","delete","edit","like","status","sticky","reply"],setup(e,{emit:t}){const n=e,r=t,i=["approved","waiting","spam"],l=nr("config"),s=Xs(),o=fu(),a=br(),c=be(()=>l.value.locale),f=be(()=>{const{link:y}=n.comment;return y?qi(y)?y:`https://${y}`:""}),p=be(()=>s.value.includes(n.comment.objectId)),h=be(()=>Io(n.comment.insertedAt,o.value,c.value)),v=be(()=>a.value.type==="administrator"),I=be(()=>n.comment.user_id&&a.value.objectId===n.comment.user_id),x=be(()=>{var y;return n.comment.objectId===((y=n.reply)==null?void 0:y.objectId)}),C=be(()=>{var y;return n.comment.objectId===((y=n.edit)==null?void 0:y.objectId)});return(y,$)=>{var H;const T=La("CommentCard",!0);return A(),z("div",{id:y.comment.objectId,class:"wl-card-item"},[P("div",jd,[y.comment.avatar?(A(),z("img",{key:0,class:"wl-user-avatar",src:y.comment.avatar},null,8,Pd)):X("v-if",!0),y.comment.type?(A(),Ge(q(bf),{key:1})):X("v-if",!0)]),P("div",Ud,[P("div",Fd,[f.value?(A(),z("a",{key:0,class:"wl-nick",href:f.value,target:"_blank",rel:"nofollow noopener noreferrer"},re(y.comment.nick),9,Nd)):(A(),z("span",Hd,re(y.comment.nick),1)),y.comment.type==="administrator"?(A(),z("span",{key:2,class:"wl-badge",textContent:re(c.value.admin)},null,8,Dd)):X("v-if",!0),y.comment.label?(A(),z("span",{key:3,class:"wl-badge",textContent:re(y.comment.label)},null,8,Bd)):X("v-if",!0),y.comment.sticky?(A(),z("span",{key:4,class:"wl-badge",textContent:re(c.value.sticky)},null,8,Vd)):X("v-if",!0),typeof y.comment.level=="number"?(A(),z("span",{key:5,class:me(`wl-badge level${y.comment.level}`),textContent:re(c.value[`level${y.comment.level}`]||`Level ${y.comment.level}`)},null,10,Wd)):X("v-if",!0),P("span",{class:"wl-time",textContent:re(h.value)},null,8,qd),P("div",Kd,[v.value||I.value?(A(),z(ae,{key:0},[P("button",{type:"button",class:"wl-edit",onClick:$[0]||($[0]=U=>r("edit",y.comment))},[ie(q(yf))]),P("button",{type:"button",class:"wl-delete",onClick:$[1]||($[1]=U=>r("delete",y.comment))},[ie(q(df))])],64)):X("v-if",!0),P("button",{type:"button",class:"wl-like",title:p.value?c.value.cancelLike:c.value.like,onClick:$[2]||($[2]=U=>r("like",y.comment))},[ie(q(gf),{active:p.value},null,8,["active"]),et(" "+re("like"in y.comment?y.comment.like:""),1)],8,Zd),P("button",{type:"button",class:me(["wl-reply",{active:x.value}]),title:x.value?c.value.cancelReply:c.value.reply,onClick:$[3]||($[3]=U=>r("reply",x.value?null:y.comment))},[ie(q(wf))],10,Jd)])]),P("div",Qd,[(A(),z(ae,null,je(["addr","browser","os"],U=>(A(),z(ae,null,[y.comment[U]?(A(),z("span",{key:U,class:me(`wl-${U}`),"data-value":y.comment[U],textContent:re(y.comment[U])},null,10,Yd)):X("v-if",!0)],64))),64))]),C.value?X("v-if",!0):(A(),z("div",{key:0,class:"wl-content",innerHTML:y.comment.comment},null,8,Xd)),v.value&&!C.value?(A(),z("div",Gd,[P("span",eh,[(A(),z(ae,null,je(i,U=>P("button",{key:U,type:"submit",class:me(`wl-btn wl-${U}`),disabled:y.comment.status===U,onClick:Y=>r("status",{status:U,comment:y.comment}),textContent:re(c.value[U])},null,10,th)),64))]),v.value&&!("rid"in y.comment)?(A(),z("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:$[4]||($[4]=U=>r("sticky",y.comment))},re(y.comment.sticky?c.value.unsticky:c.value.sticky),1)):X("v-if",!0)])):X("v-if",!0),x.value||C.value?(A(),z("div",{key:2,class:me({"wl-reply-wrapper":x.value,"wl-edit-wrapper":C.value})},[ie(lo,{edit:y.edit,"reply-id":(H=y.reply)==null?void 0:H.objectId,"reply-user":y.comment.nick,"root-id":y.rootId,onLog:$[5]||($[5]=U=>r("log")),onCancelReply:$[6]||($[6]=U=>r("reply",null)),onCancelEdit:$[7]||($[7]=U=>r("edit",null)),onSubmit:$[8]||($[8]=U=>r("submit",U))},null,8,["edit","reply-id","reply-user","root-id"])],2)):X("v-if",!0),"children"in y.comment?(A(),z("div",nh,[(A(!0),z(ae,null,je(y.comment.children,U=>(A(),Ge(T,{key:U.objectId,comment:U,reply:y.reply,edit:y.edit,"root-id":y.rootId,onLog:$[9]||($[9]=Y=>r("log")),onDelete:$[10]||($[10]=Y=>r("delete",Y)),onEdit:$[11]||($[11]=Y=>r("edit",Y)),onLike:$[12]||($[12]=Y=>r("like",Y)),onReply:$[13]||($[13]=Y=>r("reply",Y)),onStatus:$[14]||($[14]=Y=>r("status",Y)),onSticky:$[15]||($[15]=Y=>r("sticky",Y)),onSubmit:$[16]||($[16]=Y=>r("submit",Y))},null,8,["comment","reply","edit","root-id"]))),128))])):X("v-if",!0)])],8,Od)}}}),ih=xn(rh,[["__file","CommentCard.vue"]]);const so="3.0.0-alpha.8",lh={"data-waline":""},sh={class:"wl-meta-head"},oh={class:"wl-count"},ah=["textContent"],ch={class:"wl-sort"},uh=["onClick"],fh={class:"wl-cards"},dh={key:1,class:"wl-operation"},hh=["textContent"],ph={key:2,class:"wl-loading"},gh=["textContent"],mh={key:4,class:"wl-operation"},vh=["textContent"],wh={key:5,class:"wl-power"},yh=P("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1);var bh=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){const t=e,n={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},r=Object.keys(n),i=br(),l=Xs(),s=B("loading"),o=B(0),a=B(1),c=B(0),f=be(()=>Ro(t)),p=B(f.value.commentSorting),h=B([]),v=B(null),I=B(null),x=be(()=>To(f.value.dark)),C=be(()=>f.value.locale);pu(x,{id:"waline-darkmode"});let y;const $=V=>{var N;const{serverURL:se,path:we,pageSize:ve}=f.value,_e=new AbortController;s.value="loading",y==null||y(),Ai({serverURL:se,lang:f.value.lang,path:we,pageSize:ve,sortBy:n[p.value],page:V,signal:_e.signal,token:(N=i.value)==null?void 0:N.token}).then(ke=>{s.value="success",o.value=ke.count,h.value.push(...ke.data),a.value=V,c.value=ke.totalPages}).catch(ke=>{ke.name!=="AbortError"&&(console.error(ke.message),s.value="error")}),y=_e.abort.bind(_e)},H=()=>$(a.value+1),T=()=>{o.value=0,h.value=[],$(1)},U=V=>{p.value!==V&&(p.value=V,T())},Y=V=>{v.value=V},K=V=>{I.value=V},D=V=>{if(I.value)I.value.comment=V.comment,I.value.orig=V.orig;else if("rid"in V){const N=h.value.find(({objectId:se})=>se===V.rid);if(!N)return;Array.isArray(N.children)||(N.children=[]),N.children.push(V)}else h.value.unshift(V),o.value+=1},Z=async({comment:V,status:N})=>{var se;if(V.status===N)return;const{serverURL:we,lang:ve}=f.value;await qt({serverURL:we,lang:ve,token:(se=i.value)==null?void 0:se.token,objectId:V.objectId,comment:{status:N}}),V.status=N},ce=async V=>{var N;if("rid"in V)return;const{serverURL:se,lang:we}=f.value;await qt({serverURL:se,lang:we,token:(N=i.value)==null?void 0:N.token,objectId:V.objectId,comment:{sticky:V.sticky?0:1}}),V.sticky=!V.sticky},Te=async({objectId:V})=>{var N;if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:se,lang:we}=f.value;await Li({serverURL:se,lang:we,token:(N=i.value)==null?void 0:N.token,objectId:V}),h.value.some((ve,_e)=>ve.objectId===V?(h.value=h.value.filter((ke,pt)=>pt!==_e),!0):ve.children.some((ke,pt)=>ke.objectId===V?(h.value[_e].children=ve.children.filter((Rt,Ue)=>Ue!==pt),!0):!1))},Be=async V=>{var N;const{serverURL:se,lang:we}=f.value,{objectId:ve}=V,_e=l.value.includes(ve);await qt({serverURL:se,lang:we,objectId:ve,token:(N=i.value)==null?void 0:N.token,comment:{like:!_e}}),_e?l.value=l.value.filter(ke=>ke!==ve):(l.value=[...l.value,ve],l.value.length>50&&(l.value=l.value.slice(-50))),V.like=(V.like||0)+(_e?-1:1)};return qa("config",f),ln(()=>{Oe(()=>[t.serverURL,t.path],()=>T(),{immediate:!0})}),Gn(()=>y==null?void 0:y()),(V,N)=>(A(),z("div",lh,[ie(Bf),v.value?X("v-if",!0):(A(),Ge(lo,{key:0,onLog:T,onSubmit:D})),P("div",sh,[P("div",oh,[o.value?(A(),z("span",{key:0,class:"wl-num",textContent:re(o.value)},null,8,ah)):X("v-if",!0),et(" "+re(C.value.comment),1)]),P("ul",ch,[(A(!0),z(ae,null,je(q(r),se=>(A(),z("li",{key:se,class:me([se===p.value?"active":""]),onClick:we=>U(se)},re(C.value[se]),11,uh))),128))])]),P("div",fh,[(A(!0),z(ae,null,je(h.value,se=>(A(),Ge(ih,{key:se.objectId,"root-id":se.objectId,comment:se,reply:v.value,edit:I.value,onLog:T,onReply:Y,onEdit:K,onSubmit:D,onStatus:Z,onDelete:Te,onSticky:ce,onLike:Be},null,8,["root-id","comment","reply","edit"]))),128))]),s.value==="error"?(A(),z("div",dh,[P("button",{type:"button",class:"wl-btn",onClick:T,textContent:re(C.value.refresh)},null,8,hh)])):s.value==="loading"?(A(),z("div",ph,[ie(q(bn),{size:30})])):h.value.length?a.value<c.value?(A(),z("div",mh,[P("button",{type:"button",class:"wl-btn",onClick:H,textContent:re(C.value.more)},null,8,vh)])):X("v-if",!0):(A(),z("div",{key:3,class:"wl-empty",textContent:re(C.value.sofa)},null,8,gh)),f.value.copyright?(A(),z("div",wh,[et(" Powered by "),yh,et(" v"+re(q(so)),1)])):X("v-if",!0)]))}}),kh=xn(bh,[["__file","WalineComment.vue"]]);const oo=(e,t)=>{t.forEach((n,r)=>{n.innerText=e[r].toString()})},ao=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:r=!0,lang:i=navigator.language})=>{const l=new AbortController,s=Array.from(document.querySelectorAll(n)),o=c=>{const f=Ci(c);return f!==null&&t!==f},a=c=>zi({serverURL:Ln(e),paths:c.map(f=>Ci(f)||t),lang:i,signal:l.signal}).then(f=>oo(f,c)).catch(Cs);if(r){const c=s.filter(p=>!o(p)),f=s.filter(o);Oi({serverURL:Ln(e),path:t,lang:i}).then(([p])=>oo(new Array(c.length).fill(p),c)),f.length&&a(f)}else a(s);return l.abort.bind(l)},xh=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...i})=>{const l=e?gi(e):null;if(e&&!l)throw new Error("Option 'el' do not match any domElement!");if(!i.serverURL)throw new Error("Option 'serverURL' is missing!");const s=Xt({...i}),o=Xt({comment:n,pageview:r,path:t}),a=()=>{o.comment&&Js({serverURL:s.serverURL,path:o.path,...typeof o.comment=="string"?{selector:o.comment}:{}})},c=()=>{o.pageview&&ao({serverURL:s.serverURL,path:o.path,...typeof o.pageview=="string"?{selector:o.pageview}:{}})},f=l?Kc(()=>ee(kh,{path:o.path,...s})):null;f&&f.mount(l);const p=zl(a),h=zl(c);return{el:l,update:({comment:v,pageview:I,path:x=window.location.pathname,...C}={})=>{Object.entries(C).forEach(([y,$])=>{s[y]=$}),o.path=x,v!==void 0&&(o.comment=v),I!==void 0&&(o.pageview=I)},destroy:()=>{f==null||f.unmount(),p(),h()}}},_h=({el:e,serverURL:t,count:n,lang:r=navigator.language})=>{var i;const l=br(),s=gi(e),o=new AbortController;return ji({serverURL:t,count:n,lang:r,signal:o.signal,token:(i=l.value)==null?void 0:i.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:()=>{o.abort(),s.innerHTML=""}}):{comments:a,destroy:()=>o.abort()})},Ch=({el:e,serverURL:t,count:n,locale:r,lang:i=navigator.language,mode:l="list"})=>{const s=gi(e),o=new AbortController;return Pi({serverURL:t,pageSize:n,lang:i,signal:o.signal}).then(a=>!s||!a.length?{users:a,destroy:()=>o.abort()}:(r={...Lt[i]||Lt[Ni],...typeof r=="object"?r:{}},s.innerHTML=`<ul class="wl-user-${l}">${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">${r?r[`level${c.level}`]:`Level ${c.level}`}</span>`,c.label&&`<span class="wl-badge">${c.label}</span>`,"</div>",c.link&&c.link,"</div>",c.link&&"</a>","</li>"].filter(p=>p).join("")).join("")}</ul>`,{users:a,destroy:()=>{o.abort(),s.innerHTML=""}}))};J.RecentComments=_h,J.UserList=Ch,J.addComment=Ii,J.commentCount=Js,J.defaultLocales=Lt,J.deleteComment=Li,J.fetchCommentCount=Si,J.getArticleCounter=_r,J.getComment=Ai,J.getPageview=zi,J.getRecentComment=ji,J.getUserList=Pi,J.init=xh,J.login=Mi,J.pageviewCount=ao,J.updateArticleCounter=An,J.updateComment=qt,J.updatePageview=Oi,J.version=so});
|
|
54
|
+
//# sourceMappingURL=waline.umd.js.map
|