@waline/client 3.0.0-alpha.2 → 3.0.0-alpha.4
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/package.json +3 -3
- package/dist/comment.cjs +0 -2
- package/dist/comment.cjs.map +0 -1
- package/dist/comment.d.cts +0 -40
- package/dist/comment.d.mts +0 -40
- package/dist/comment.d.ts +0 -40
- package/dist/comment.js +0 -2
- package/dist/comment.js.map +0 -1
- package/dist/comment.mjs +0 -2
- package/dist/comment.mjs.map +0 -1
- package/dist/component.mjs +0 -9
- package/dist/component.mjs.map +0 -1
- package/dist/pageview.cjs +0 -2
- package/dist/pageview.cjs.map +0 -1
- package/dist/pageview.d.cts +0 -48
- package/dist/pageview.d.mts +0 -48
- package/dist/pageview.d.ts +0 -48
- package/dist/pageview.js +0 -2
- package/dist/pageview.js.map +0 -1
- package/dist/pageview.mjs +0 -2
- package/dist/pageview.mjs.map +0 -1
- package/dist/shim.cjs +0 -9
- package/dist/shim.cjs.map +0 -1
- package/dist/shim.d.cts +0 -643
- package/dist/shim.d.mts +0 -643
- package/dist/shim.mjs +0 -9
- package/dist/shim.mjs.map +0 -1
- package/dist/waline-meta.css +0 -1
- package/dist/waline-meta.css.map +0 -1
- package/dist/waline.cjs +0 -54
- package/dist/waline.cjs.map +0 -1
- package/dist/waline.css +0 -1
- package/dist/waline.css.map +0 -1
- package/dist/waline.d.cts +0 -643
- package/dist/waline.d.mts +0 -643
- package/dist/waline.d.ts +0 -643
- package/dist/waline.js +0 -54
- package/dist/waline.js.map +0 -1
- package/dist/waline.mjs +0 -54
- package/dist/waline.mjs.map +0 -1
package/dist/waline.cjs
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";var Ks=Object.defineProperty;var qs=(e,t,n)=>t in e?Ks(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var je=(e,t,n)=>(qs(e,typeof t!="symbol"?t+"":t,n),n),Zs=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var yr=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)};var Cn=(e,t,n)=>(Zs(e,t,"access private method"),n);var $n,gl,mr,Vs;const yl={"Content-Type":"application/json"},Ye=e=>`${e.replace(/\/?$/,"/")}api/`,It=(e,t="")=>{if(typeof e=="object"&&e.errno)throw new TypeError(`${t} failed with ${e.errno}: ${e.errmsg}`);return e},br=({serverURL:e,lang:t,paths:n,type:r,signal:l})=>fetch(`${Ye(e)}article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(r.join(","))}&lang=${t}`,{signal:l}).then(i=>i.json()),En=({serverURL:e,lang:t,path:n,type:r,action:l})=>fetch(`${Ye(e)}article?lang=${t}`,{method:"POST",headers:yl,body:JSON.stringify({path:n,type:r,action:l})}).then(i=>i.json()).then(i=>It(i,"Update counter").data),bl=({serverURL:e,lang:t,path:n,page:r,pageSize:l,sortBy:i,signal:s,token:o})=>{const a={};return o&&(a.Authorization=`Bearer ${o}`),fetch(`${Ye(e)}comment?path=${encodeURIComponent(n)}&pageSize=${l}&page=${r}&lang=${t}&sortBy=${i}`,{signal:s,headers:a}).then(c=>c.json()).then(c=>It(c,"Get comment data").data)},kl=({serverURL:e,lang:t,token:n,comment:r})=>{const l={"Content-Type":"application/json"};return n&&(l.Authorization=`Bearer ${n}`),fetch(`${Ye(e)}comment?lang=${t}`,{method:"POST",headers:l,body:JSON.stringify(r)}).then(i=>i.json())},xl=({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${Ye(e)}comment/${r}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then(l=>l.json()).then(l=>It(l,"Delete comment")),Jt=({serverURL:e,lang:t,token:n,objectId:r,comment:l})=>fetch(`${Ye(e)}comment/${r}?lang=${t}`,{method:"PUT",headers:{...yl,Authorization:`Bearer ${n}`},body:JSON.stringify(l)}).then(i=>i.json()).then(i=>It(i,"Update comment")),_l=({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${Ye(e)}comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then(l=>l.json()).then(l=>It(l,"Get comment count").data),$l=({lang:e,serverURL:t})=>{const n=(window.innerWidth-450)/2,r=(window.innerHeight-450)/2,l=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 l==null||l.postMessage({type:"TOKEN",data:null},"*"),new Promise(i=>{const s=({data:o})=>{!o||typeof o!="object"||o.type!=="userInfo"||o.data.token&&(l==null||l.close(),window.removeEventListener("message",s),i(o.data))};window.addEventListener("message",s)})},Cl=({serverURL:e,lang:t,paths:n,signal:r})=>br({serverURL:e,lang:t,paths:n,type:["time"],signal:r}).then(l=>Array.isArray(l)?l:[l]),El=e=>En({...e,type:"time",action:"inc"}),Rl=({serverURL:e,lang:t,count:n,signal:r,token:l})=>{const i={};return l&&(i.Authorization=`Bearer ${l}`),fetch(`${Ye(e)}comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:i}).then(s=>s.json())},Tl=({serverURL:e,signal:t,pageSize:n,lang:r})=>fetch(`${Ye(e)}user?pageSize=${n}&lang=${r}`,{signal:t}).then(l=>l.json()).then(l=>It(l,"user list")).then(l=>l.data),Js=["nick","mail","link"],Al=e=>e.filter(t=>Js.includes(t)),Il=["//unpkg.com/@waline/emojis@1.1.0/weibo"],Sl="en-US",Qs=["//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"],Ys=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 l;return t(((l=r.result)==null?void 0:l.toString())||"")},r.onerror=n}),Xs=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>',Gs=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(l=>l.json()).then(({data:l})=>l.map(i=>({title:i.title,src:i.images.downsized_medium.url})));return{search:n=>t("search",{q:n,offset:"0"}),default:()=>t("trending",{}),more:(n,r=0)=>t("search",{q:n,offset:r.toString()})}},eo=/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/,to=/</,no=/(?:^|\s)\/\/(.+?)$/gm,ro=/\/\*([\S\s]*?)\*\//gm,lo=new RegExp(`(${eo.source}|${to.source})|((?:${no.source})|(?:${ro.source}))`,"gmi"),Ll=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],kr={},io=e=>{let t=0;return e.replace(lo,(n,r,l)=>{if(l)return`<span style="color: slategray">${l}</span>`;if(r==="<")return"<";let i;kr[r]?i=kr[r]:(i=Ll[t],kr[r]=i);const s=`<span style="color: #${i}">${r}</span>`;return t=++t%Ll.length,s})},so=["nick","nickError","mail","mailError","link","optional","placeholder","sofa","submit","like","cancelLike","reply","cancelReply","comment","refresh","more","preview","emoji","uploadImage","seconds","minutes","hours","days","now","uploading","login","logout","admin","sticky","word","wordHint","anonymous","level0","level1","level2","level3","level4","level5","gif","gifSearchPlaceholder","profile","approved","waiting","spam","unsticky","oldest","latest","hottest","reactionTitle"],St=e=>Object.fromEntries(e.map((t,n)=>[so[n],t]));var xr=St(["NickName","NickName cannot be less than 3 bytes.","E-Mail","Please confirm your email address.","Website","Optional","Comment here...","No comment yet.","Submit","Like","Cancel like","Reply","Cancel reply","Comments","Refresh","Load More...","Preview","Emoji","Upload Image","seconds ago","minutes ago","hours ago","days ago","just now","Uploading","Login","logout","Admin","Sticky","Words",`Please input comments between $0 and $1 words!
|
|
2
|
-
Current word number: $2`,"Anonymous","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Search GIF","Profile","Approved","Waiting","Spam","Unsticky","Oldest","Latest","Hottest","What do you think?"]),Rn=St(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード",`コメントは $0 から $1 ワードの間でなければなりません!
|
|
3
|
-
現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),Ml=St(["Apelido","Apelido não pode ser menor que 3 bytes.","E-Mail","Por favor, confirme seu endereço de e-mail.","Website","Opcional","Comente aqui...","Nenhum comentário, ainda.","Enviar","Like","Cancel like","Responder","Cancelar resposta","Comentários","Refrescar","Carregar Mais...","Visualizar","Emoji","Enviar Imagem","segundos atrás","minutos atrás","horas atrás","dias atrás","agora mesmo","Enviando","Entrar","Sair","Admin","Sticky","Palavras",`Favor enviar comentário com $0 a $1 palavras!
|
|
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?"]),_r=St(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова",`Пожалуйста, введите комментарии от $0 до $1 слов!
|
|
5
|
-
Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]),$r=St(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字",`评论字数应在 $0 到 $1 字之间!
|
|
6
|
-
当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),zl=St(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字",`留言字數應在 $0 到 $1 字之間!
|
|
7
|
-
目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]);const Lt={zh:$r,"zh-cn":$r,"zh-CN":$r,"zh-tw":zl,"zh-TW":zl,en:xr,"en-US":xr,"en-us":xr,jp:Rn,ja:Rn,"jp-jp":Rn,"jp-JP":Rn,"pt-br":Ml,"pt-BR":Ml,ru:_r,"ru-ru":_r,"ru-RU":_r},Ol=e=>{try{e=decodeURI(e)}catch{}return e},jl=(e="")=>e.replace(/\/$/u,""),Pl=e=>/^(https?:)?\/\//.test(e),Tn=e=>{const t=jl(e);return Pl(t)?t:`https://${t}`},oo=e=>Array.isArray(e)?e:e?[0,e]:!1,Cr=(e,t)=>typeof e=="function"?e:e===!1?!1:t,ao=({serverURL:e,path:t=location.pathname,lang:n=typeof navigator>"u"?"en-US":navigator.language,locale:r,emoji:l=Il,meta:i=["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:$,recaptchaV3Key:y="",turnstileKey:C="",commentSorting:B="latest",...A})=>({serverURL:Tn(e),path:Ol(t),locale:{...Lt[n]||Lt[Sl],...typeof r=="object"?r:{}},wordLimit:oo(c),meta:Al(i),requiredMeta:Al(s),imageUploader:Cr(f,Ys),highlighter:Cr(p,io),texRenderer:Cr(h,Xs),lang:Object.keys(Lt).includes(n)?n:"en-US",dark:o,emoji:typeof l=="boolean"?l?Il:[]:l,pageSize:a,login:I,copyright:v,search:x===!1?!1:typeof x=="object"?x:Gs(n),recaptchaV3Key:y,turnstileKey:C,reaction:Array.isArray($)?$:$===!0?Qs:[],commentSorting:B,...A}),Er="{--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}",co=e=>typeof e=="string"?e==="auto"?`@media(prefers-color-scheme:dark){body${Er}}`:`${e}${Er}`:e===!0?`:root${Er}`:"",Rr=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},uo=e=>{const t=Rr(e.getDate(),2),n=Rr(e.getMonth()+1,2);return`${Rr(e.getFullYear(),2)}-${n}-${t}`},fo=(e,t,n)=>{if(!e)return"";const r=typeof e=="string"?new Date(e.indexOf(" ")!==-1?e.replace(/-/g,"/"):e):e,l=t.getTime()-r.getTime(),i=Math.floor(l/(24*3600*1e3));if(i===0){const s=l%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 i<0?n.now:i<8?`${i} ${n.days}`:uo(r)},ho=/^[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])?)*$/,po=e=>ho.test(e);function Tr(e,t){const n=Object.create(null),r=e.split(",");for(let l=0;l<r.length;l++)n[r[l]]=!0;return t?l=>!!n[l.toLowerCase()]:l=>!!n[l]}const fe={},Mt=[],mt=()=>{},go=()=>!1,mo=/^on[^a-z]/,An=e=>mo.test(e),Ar=e=>e.startsWith("onUpdate:"),Ce=Object.assign,Ul=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},vo=Object.prototype.hasOwnProperty,X=(e,t)=>vo.call(e,t),N=Array.isArray,zt=e=>Qt(e)==="[object Map]",Ot=e=>Qt(e)==="[object Set]",Fl=e=>Qt(e)==="[object Date]",le=e=>typeof e=="function",ye=e=>typeof e=="string",jt=e=>typeof e=="symbol",de=e=>e!==null&&typeof e=="object",Hl=e=>(de(e)||le(e))&&le(e.then)&&le(e.catch),Nl=Object.prototype.toString,Qt=e=>Nl.call(e),wo=e=>Qt(e).slice(8,-1),Dl=e=>Qt(e)==="[object Object]",Ir=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,In=Tr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Sn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},yo=/-(\w)/g,Ve=Sn(e=>e.replace(yo,(t,n)=>n?n.toUpperCase():"")),bo=/\B([A-Z])/g,Pt=Sn(e=>e.replace(bo,"-$1").toLowerCase()),Ln=Sn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Sr=Sn(e=>e?`on${Ln(e)}`:""),vt=(e,t)=>!Object.is(e,t),Mn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},zn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},On=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Bl;const Lr=()=>Bl||(Bl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Yt(e){if(N(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],l=ye(r)?$o(r):Yt(r);if(l)for(const i in l)t[i]=l[i]}return t}else if(ye(e)||de(e))return e}const ko=/;(?![^(]*\))/g,xo=/:([^]+)/,_o=/\/\*[^]*?\*\//g;function $o(e){const t={};return e.replace(_o,"").split(ko).forEach(n=>{if(n){const r=n.split(xo);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function me(e){let t="";if(ye(e))t=e;else if(N(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 Co="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Eo=Tr(Co);function Wl(e){return!!e||e===""}function Ro(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=wt(e[r],t[r]);return n}function wt(e,t){if(e===t)return!0;let n=Fl(e),r=Fl(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=jt(e),r=jt(t),n||r)return e===t;if(n=N(e),r=N(t),n||r)return n&&r?Ro(e,t):!1;if(n=de(e),r=de(t),n||r){if(!n||!r)return!1;const l=Object.keys(e).length,i=Object.keys(t).length;if(l!==i)return!1;for(const s in e){const o=e.hasOwnProperty(s),a=t.hasOwnProperty(s);if(o&&!a||!o&&a||!wt(e[s],t[s]))return!1}}return String(e)===String(t)}function Mr(e,t){return e.findIndex(n=>wt(n,t))}const ie=e=>ye(e)?e:e==null?"":N(e)||de(e)&&(e.toString===Nl||!le(e.toString))?JSON.stringify(e,Vl,2):String(e),Vl=(e,t)=>t&&t.__v_isRef?Vl(e,t.value):zt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,l])=>(n[`${r} =>`]=l,n),{})}:Ot(t)?{[`Set(${t.size})`]:[...t.values()]}:de(t)&&!N(t)&&!Dl(t)?String(t):t;let Se;class To{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Se,!t&&Se&&(this.index=(Se.scopes||(Se.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Se;try{return Se=this,t()}finally{Se=n}}}on(){Se=this}off(){Se=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 l=this.parent.scopes.pop();l&&l!==this&&(this.parent.scopes[this.index]=l,l.index=this.index)}this.parent=void 0,this._active=!1}}}function Ao(e,t=Se){t&&t.active&&t.effects.push(e)}function Kl(){return Se}function Io(e){Se&&Se.cleanups.push(e)}const zr=e=>{const t=new Set(e);return t.w=0,t.n=0,t},ql=e=>(e.w&ot)>0,Zl=e=>(e.n&ot)>0,So=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=ot},Lo=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const l=t[r];ql(l)&&!Zl(l)?l.delete(e):t[n++]=l,l.w&=~ot,l.n&=~ot}t.length=n}},Or=new WeakMap;let Xt=0,ot=1;const jr=30;let De;const yt=Symbol(""),Pr=Symbol("");class Ur{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Ao(this,r)}run(){if(!this.active)return this.fn();let t=De,n=at;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=De,De=this,at=!0,ot=1<<++Xt,Xt<=jr?So(this):Jl(this),this.fn()}finally{Xt<=jr&&Lo(this),ot=1<<--Xt,De=this.parent,at=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){De===this?this.deferStop=!0:this.active&&(Jl(this),this.onStop&&this.onStop(),this.active=!1)}}function Jl(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 Ql=[];function Gt(){Ql.push(at),at=!1}function en(){const e=Ql.pop();at=e===void 0?!0:e}function Te(e,t,n){if(at&&De){let r=Or.get(e);r||Or.set(e,r=new Map);let l=r.get(n);l||r.set(n,l=zr()),Yl(l)}}function Yl(e,t){let n=!1;Xt<=jr?Zl(e)||(e.n|=ot,n=!ql(e)):n=!e.has(De),n&&(e.add(De),De.deps.push(e))}function Xe(e,t,n,r,l,i){const s=Or.get(e);if(!s)return;let o=[];if(t==="clear")o=[...s.values()];else if(n==="length"&&N(e)){const a=Number(r);s.forEach((c,f)=>{(f==="length"||!jt(f)&&f>=a)&&o.push(c)})}else switch(n!==void 0&&o.push(s.get(n)),t){case"add":N(e)?Ir(n)&&o.push(s.get("length")):(o.push(s.get(yt)),zt(e)&&o.push(s.get(Pr)));break;case"delete":N(e)||(o.push(s.get(yt)),zt(e)&&o.push(s.get(Pr)));break;case"set":zt(e)&&o.push(s.get(yt));break}if(o.length===1)o[0]&&Fr(o[0]);else{const a=[];for(const c of o)c&&a.push(...c);Fr(zr(a))}}function Fr(e,t){const n=N(e)?e:[...e];for(const r of n)r.computed&&Xl(r);for(const r of n)r.computed||Xl(r)}function Xl(e,t){(e!==De||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Mo=Tr("__proto__,__v_isRef,__isVue"),Gl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(jt)),ei=zo();function zo(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=ee(this);for(let i=0,s=this.length;i<s;i++)Te(r,"get",i+"");const l=r[t](...n);return l===-1||l===!1?r[t](...n.map(ee)):l}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Gt();const r=ee(this)[t].apply(this,n);return en(),r}}),e}function Oo(e){const t=ee(this);return Te(t,"has",e),t.hasOwnProperty(e)}class ti{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,r){const l=this._isReadonly,i=this._shallow;if(n==="__v_isReactive")return!l;if(n==="__v_isReadonly")return l;if(n==="__v_isShallow")return i;if(n==="__v_raw"&&r===(l?i?Zo:ci:i?ai:oi).get(t))return t;const s=N(t);if(!l){if(s&&X(ei,n))return Reflect.get(ei,n,r);if(n==="hasOwnProperty")return Oo}const o=Reflect.get(t,n,r);return(jt(n)?Gl.has(n):Mo(n))||(l||Te(t,"get",n),i)?o:be(o)?s&&Ir(n)?o:o.value:de(o)?l?nn(o):tn(o):o}}class ni extends ti{constructor(t=!1){super(!1,t)}set(t,n,r,l){let i=t[n];if(Ft(i)&&be(i)&&!be(r))return!1;if(!this._shallow&&(!Dn(r)&&!Ft(r)&&(i=ee(i),r=ee(r)),!N(t)&&be(i)&&!be(r)))return i.value=r,!0;const s=N(t)&&Ir(n)?Number(n)<t.length:X(t,n),o=Reflect.set(t,n,r,l);return t===ee(l)&&(s?vt(r,i)&&Xe(t,"set",n,r):Xe(t,"add",n,r)),o}deleteProperty(t,n){const r=X(t,n),l=Reflect.deleteProperty(t,n);return l&&r&&Xe(t,"delete",n,void 0),l}has(t,n){const r=Reflect.has(t,n);return(!jt(n)||!Gl.has(n))&&Te(t,"has",n),r}ownKeys(t){return Te(t,"iterate",N(t)?"length":yt),Reflect.ownKeys(t)}}class jo extends ti{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Po=new ni,Uo=new jo,Fo=new ni(!0),Hr=e=>e,jn=e=>Reflect.getPrototypeOf(e);function Pn(e,t,n=!1,r=!1){e=e.__v_raw;const l=ee(e),i=ee(t);n||(vt(t,i)&&Te(l,"get",t),Te(l,"get",i));const{has:s}=jn(l),o=r?Hr:n?Br:rn;if(s.call(l,t))return o(e.get(t));if(s.call(l,i))return o(e.get(i));e!==l&&e.get(t)}function Un(e,t=!1){const n=this.__v_raw,r=ee(n),l=ee(e);return t||(vt(e,l)&&Te(r,"has",e),Te(r,"has",l)),e===l?n.has(e):n.has(e)||n.has(l)}function Fn(e,t=!1){return e=e.__v_raw,!t&&Te(ee(e),"iterate",yt),Reflect.get(e,"size",e)}function ri(e){e=ee(e);const t=ee(this);return jn(t).has.call(t,e)||(t.add(e),Xe(t,"add",e,e)),this}function li(e,t){t=ee(t);const n=ee(this),{has:r,get:l}=jn(n);let i=r.call(n,e);i||(e=ee(e),i=r.call(n,e));const s=l.call(n,e);return n.set(e,t),i?vt(t,s)&&Xe(n,"set",e,t):Xe(n,"add",e,t),this}function ii(e){const t=ee(this),{has:n,get:r}=jn(t);let l=n.call(t,e);l||(e=ee(e),l=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return l&&Xe(t,"delete",e,void 0),i}function si(){const e=ee(this),t=e.size!==0,n=e.clear();return t&&Xe(e,"clear",void 0,void 0),n}function Hn(e,t){return function(r,l){const i=this,s=i.__v_raw,o=ee(s),a=t?Hr:e?Br:rn;return!e&&Te(o,"iterate",yt),s.forEach((c,f)=>r.call(l,a(c),a(f),i))}}function Nn(e,t,n){return function(...r){const l=this.__v_raw,i=ee(l),s=zt(i),o=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=l[e](...r),f=n?Hr:t?Br:rn;return!t&&Te(i,"iterate",a?Pr:yt),{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:this}}function Ho(){const e={get(i){return Pn(this,i)},get size(){return Fn(this)},has:Un,add:ri,set:li,delete:ii,clear:si,forEach:Hn(!1,!1)},t={get(i){return Pn(this,i,!1,!0)},get size(){return Fn(this)},has:Un,add:ri,set:li,delete:ii,clear:si,forEach:Hn(!1,!0)},n={get(i){return Pn(this,i,!0)},get size(){return Fn(this,!0)},has(i){return Un.call(this,i,!0)},add:ct("add"),set:ct("set"),delete:ct("delete"),clear:ct("clear"),forEach:Hn(!0,!1)},r={get(i){return Pn(this,i,!0,!0)},get size(){return Fn(this,!0)},has(i){return Un.call(this,i,!0)},add:ct("add"),set:ct("set"),delete:ct("delete"),clear:ct("clear"),forEach:Hn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Nn(i,!1,!1),n[i]=Nn(i,!0,!1),t[i]=Nn(i,!1,!0),r[i]=Nn(i,!0,!0)}),[e,n,t,r]}const[No,Do,Bo,Wo]=Ho();function Nr(e,t){const n=t?e?Wo:Bo:e?Do:No;return(r,l,i)=>l==="__v_isReactive"?!e:l==="__v_isReadonly"?e:l==="__v_raw"?r:Reflect.get(X(n,l)&&l in r?n:r,l,i)}const Vo={get:Nr(!1,!1)},Ko={get:Nr(!1,!0)},qo={get:Nr(!0,!1)},oi=new WeakMap,ai=new WeakMap,ci=new WeakMap,Zo=new WeakMap;function Jo(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Qo(e){return e.__v_skip||!Object.isExtensible(e)?0:Jo(wo(e))}function tn(e){return Ft(e)?e:Dr(e,!1,Po,Vo,oi)}function Yo(e){return Dr(e,!1,Fo,Ko,ai)}function nn(e){return Dr(e,!0,Uo,qo,ci)}function Dr(e,t,n,r,l){if(!de(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=l.get(e);if(i)return i;const s=Qo(e);if(s===0)return e;const o=new Proxy(e,s===2?r:n);return l.set(e,o),o}function Ut(e){return Ft(e)?Ut(e.__v_raw):!!(e&&e.__v_isReactive)}function Ft(e){return!!(e&&e.__v_isReadonly)}function Dn(e){return!!(e&&e.__v_isShallow)}function ui(e){return Ut(e)||Ft(e)}function ee(e){const t=e&&e.__v_raw;return t?ee(t):e}function fi(e){return zn(e,"__v_skip",!0),e}const rn=e=>de(e)?tn(e):e,Br=e=>de(e)?nn(e):e;function di(e){at&&De&&(e=ee(e),Yl(e.dep||(e.dep=zr())))}function hi(e,t){e=ee(e);const n=e.dep;n&&Fr(n)}function be(e){return!!(e&&e.__v_isRef===!0)}function q(e){return pi(e,!1)}function Xo(e){return pi(e,!0)}function pi(e,t){return be(e)?e:new Go(e,t)}class Go{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ee(t),this._value=n?t:rn(t)}get value(){return di(this),this._value}set value(t){const n=this.__v_isShallow||Dn(t)||Ft(t);t=n?t:ee(t),vt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:rn(t),hi(this))}}function Z(e){return be(e)?e.value:e}const ea={get:(e,t,n)=>Z(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const l=e[t];return be(l)&&!be(n)?(l.value=n,!0):Reflect.set(e,t,n,r)}};function gi(e){return Ut(e)?e:new Proxy(e,ea)}class ta{constructor(t,n,r,l){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Ur(t,()=>{this._dirty||(this._dirty=!0,hi(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!l,this.__v_isReadonly=r}get value(){const t=ee(this);return di(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function na(e,t,n=!1){let r,l;const i=le(e);return i?(r=e,l=mt):(r=e.get,l=e.set),new ta(r,l,i||!l,n)}function ut(e,t,n,r){let l;try{l=r?e(...r):e()}catch(i){Bn(i,t,n)}return l}function Ke(e,t,n,r){if(le(e)){const i=ut(e,t,n,r);return i&&Hl(i)&&i.catch(s=>{Bn(s,t,n)}),i}const l=[];for(let i=0;i<e.length;i++)l.push(Ke(e[i],t,n,r));return l}function Bn(e,t,n,r=!0){const l=t?t.vnode:null;if(t){let i=t.parent;const s=t.proxy,o=n;for(;i;){const c=i.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,s,o)===!1)return}i=i.parent}const a=t.appContext.config.errorHandler;if(a){ut(a,null,10,[e,s,o]);return}}ra(e,n,l,r)}function ra(e,t,n,r=!0){console.error(e)}let ln=!1,Wr=!1;const _e=[];let qe=0;const Ht=[];let Ge=null,bt=0;const mi=Promise.resolve();let Vr=null;function Wn(e){const t=Vr||mi;return e?t.then(this?e.bind(this):e):t}function la(e){let t=qe+1,n=_e.length;for(;t<n;){const r=t+n>>>1,l=_e[r],i=sn(l);i<e||i===e&&l.pre?t=r+1:n=r}return t}function Kr(e){(!_e.length||!_e.includes(e,ln&&e.allowRecurse?qe+1:qe))&&(e.id==null?_e.push(e):_e.splice(la(e.id),0,e),vi())}function vi(){!ln&&!Wr&&(Wr=!0,Vr=mi.then(bi))}function ia(e){const t=_e.indexOf(e);t>qe&&_e.splice(t,1)}function sa(e){N(e)?Ht.push(...e):(!Ge||!Ge.includes(e,e.allowRecurse?bt+1:bt))&&Ht.push(e),vi()}function wi(e,t=ln?qe+1:0){for(;t<_e.length;t++){const n=_e[t];n&&n.pre&&(_e.splice(t,1),t--,n())}}function yi(e){if(Ht.length){const t=[...new Set(Ht)];if(Ht.length=0,Ge){Ge.push(...t);return}for(Ge=t,Ge.sort((n,r)=>sn(n)-sn(r)),bt=0;bt<Ge.length;bt++)Ge[bt]();Ge=null,bt=0}}const sn=e=>e.id==null?1/0:e.id,oa=(e,t)=>{const n=sn(e)-sn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function bi(e){Wr=!1,ln=!0,_e.sort(oa);try{for(qe=0;qe<_e.length;qe++){const t=_e[qe];t&&t.active!==!1&&ut(t,null,14)}}finally{qe=0,_e.length=0,yi(),ln=!1,Vr=null,(_e.length||Ht.length)&&bi()}}function aa(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||fe;let l=n;const i=t.startsWith("update:"),s=i&&t.slice(7);if(s&&s in r){const f=`${s==="modelValue"?"model":s}Modifiers`,{number:p,trim:h}=r[f]||fe;h&&(l=n.map(v=>ye(v)?v.trim():v)),p&&(l=n.map(On))}let o,a=r[o=Sr(t)]||r[o=Sr(Ve(t))];!a&&i&&(a=r[o=Sr(Pt(t))]),a&&Ke(a,e,6,l);const c=r[o+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,Ke(c,e,6,l)}}function ca(e,t,n=!1){const r=t.emitsCache,l=r.get(e);if(l!==void 0)return l;const i=e.emits;let s={};return!i&&!!1?(de(e)&&r.set(e,null),null):(N(i)?i.forEach(a=>s[a]=null):Ce(s,i),de(e)&&r.set(e,s),s)}function Vn(e,t){return!e||!An(t)?!1:(t=t.slice(2).replace(/Once$/,""),X(e,t[0].toLowerCase()+t.slice(1))||X(e,Pt(t))||X(e,t))}let Le=null,ki=null;function Kn(e){const t=Le;return Le=e,ki=e&&e.type.__scopeId||null,t}function ua(e,t=Le,n){if(!t||e._n)return e;const r=(...l)=>{r._d&&Ni(-1);const i=Kn(t);let s;try{s=e(...l)}finally{Kn(i),r._d&&Ni(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function qr(e){const{type:t,vnode:n,proxy:r,withProxy:l,props:i,propsOptions:[s],slots:o,attrs:a,emit:c,render:f,renderCache:p,data:h,setupState:v,ctx:I,inheritAttrs:x}=e;let $,y;const C=Kn(e);try{if(n.shapeFlag&4){const A=l||r;$=Ze(f.call(A,A,p,i,v,h,I)),y=a}else{const A=t;$=Ze(A.length>1?A(i,{attrs:a,slots:o,emit:c}):A(i,null)),y=t.props?a:fa(a)}}catch(A){fn.length=0,Bn(A,e,1),$=ae($t)}let B=$;if(y&&x!==!1){const A=Object.keys(y),{shapeFlag:H}=B;A.length&&H&7&&(s&&A.some(Ar)&&(y=da(y,s)),B=Nt(B,y))}return n.dirs&&(B=Nt(B),B.dirs=B.dirs?B.dirs.concat(n.dirs):n.dirs),n.transition&&(B.transition=n.transition),$=B,Kn(C),$}const fa=e=>{let t;for(const n in e)(n==="class"||n==="style"||An(n))&&((t||(t={}))[n]=e[n]);return t},da=(e,t)=>{const n={};for(const r in e)(!Ar(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function ha(e,t,n){const{props:r,children:l,component:i}=e,{props:s,children:o,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?xi(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]&&!Vn(c,h))return!0}}}else return(l||o)&&(!o||!o.$stable)?!0:r===s?!1:r?s?xi(r,s,c):!0:!!s;return!1}function xi(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let l=0;l<r.length;l++){const i=r[l];if(t[i]!==e[i]&&!Vn(n,i))return!0}return!1}function pa({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const _i="components";function ga(e,t){return va(_i,e,!0,t)||e}const ma=Symbol.for("v-ndc");function va(e,t,n=!0,r=!1){const l=Le||Re;if(l){const i=l.type;if(e===_i){const o=Ga(i,!1);if(o&&(o===t||o===Ve(t)||o===Ln(Ve(t))))return i}const s=$i(l[e]||i[e],t)||$i(l.appContext[e],t);return!s&&r?i:s}}function $i(e,t){return e&&(e[t]||e[Ve(t)]||e[Ln(Ve(t))])}const wa=e=>e.__isSuspense;function ya(e,t){t&&t.pendingBranch?N(e)?t.effects.push(...e):t.effects.push(e):sa(e)}function Ci(e,t){return Ei(e,null,t)}const qn={};function Pe(e,t,n){return Ei(e,t,n)}function Ei(e,t,{immediate:n,deep:r,flush:l,onTrack:i,onTrigger:s}=fe){var o;const a=Kl()===((o=Re)==null?void 0:o.scope)?Re:null;let c,f=!1,p=!1;if(be(e)?(c=()=>e.value,f=Dn(e)):Ut(e)?(c=()=>e,r=!0):N(e)?(p=!0,f=e.some(A=>Ut(A)||Dn(A)),c=()=>e.map(A=>{if(be(A))return A.value;if(Ut(A))return kt(A);if(le(A))return ut(A,a,2)})):le(e)?t?c=()=>ut(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return h&&h(),Ke(e,a,3,[v])}:c=mt,t&&r){const A=c;c=()=>kt(A())}let h,v=A=>{h=C.onStop=()=>{ut(A,a,4)}},I;if(gn)if(v=mt,t?n&&Ke(t,a,3,[c(),p?[]:void 0,v]):c(),l==="sync"){const A=nc();I=A.__watcherHandles||(A.__watcherHandles=[])}else return mt;let x=p?new Array(e.length).fill(qn):qn;const $=()=>{if(C.active)if(t){const A=C.run();(r||f||(p?A.some((H,Y)=>vt(H,x[Y])):vt(A,x)))&&(h&&h(),Ke(t,a,3,[A,x===qn?void 0:p&&x[0]===qn?[]:x,v]),x=A)}else C.run()};$.allowRecurse=!!t;let y;l==="sync"?y=$:l==="post"?y=()=>Ae($,a&&a.suspense):($.pre=!0,a&&($.id=a.uid),y=()=>Kr($));const C=new Ur(c,y);t?n?$():x=C.run():l==="post"?Ae(C.run.bind(C),a&&a.suspense):C.run();const B=()=>{C.stop(),a&&a.scope&&Ul(a.scope.effects,C)};return I&&I.push(B),B}function kt(e,t){if(!de(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),be(e))kt(e.value,t);else if(N(e))for(let n=0;n<e.length;n++)kt(e[n],t);else if(Ot(e)||zt(e))e.forEach(n=>{kt(n,t)});else if(Dl(e))for(const n in e)kt(e[n],t);return e}function Zn(e,t){const n=Le;if(n===null)return e;const r=rr(n)||n.proxy,l=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[s,o,a,c=fe]=t[i];s&&(le(s)&&(s={mounted:s,updated:s}),s.deep&&kt(o),l.push({dir:s,instance:r,value:o,oldValue:void 0,arg:a,modifiers:c}))}return e}function xt(e,t,n,r){const l=e.dirs,i=t&&t.dirs;for(let s=0;s<l.length;s++){const o=l[s];i&&(o.oldValue=i[s].value);let a=o.dir[r];a&&(Gt(),Ke(a,n,8,[e.el,o,e,t]),en())}}/*! #__NO_SIDE_EFFECTS__ */function on(e,t){return le(e)?Ce({name:e.name},t,{setup:e}):e}const Jn=e=>!!e.type.__asyncLoader,ba=e=>e.type.__isKeepAlive;function ka(e,t,n=Re,r=!1){if(n){const l=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;Gt(),ll(n);const o=Ke(t,n,e,s);return pn(),en(),o});return r?l.unshift(i):l.push(i),i}}const Zr=e=>(t,n=Re)=>(!gn||e==="sp")&&ka(e,(...r)=>t(...r),n),an=Zr("m"),xa=Zr("bum"),Qn=Zr("um");function Ue(e,t,n,r){let l;const i=n&&n[r];if(N(e)||ye(e)){l=new Array(e.length);for(let s=0,o=e.length;s<o;s++)l[s]=t(e[s],s,void 0,i&&i[s])}else if(typeof e=="number"){l=new Array(e);for(let s=0;s<e;s++)l[s]=t(s+1,s,void 0,i&&i[s])}else if(de(e))if(e[Symbol.iterator])l=Array.from(e,(s,o)=>t(s,o,void 0,i&&i[o]));else{const s=Object.keys(e);l=new Array(s.length);for(let o=0,a=s.length;o<a;o++){const c=s[o];l[o]=t(e[c],c,o,i&&i[o])}}else l=[];return n&&(n[r]=l),l}const Jr=e=>e?Ki(e)?rr(e)||e.proxy:Jr(e.parent):null,cn=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=>Jr(e.parent),$root:e=>Jr(e.root),$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>Kr(e.update)),$nextTick:e=>e.n||(e.n=Wn.bind(e.proxy)),$watch:e=>mt}),Qr=(e,t)=>e!==fe&&!e.__isScriptSetup&&X(e,t),_a={get({_:e},t){const{ctx:n,setupState:r,data:l,props:i,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 l[t];case 4:return n[t];case 3:return i[t]}else{if(Qr(r,t))return s[t]=1,r[t];if(l!==fe&&X(l,t))return s[t]=2,l[t];if((c=e.propsOptions[0])&&X(c,t))return s[t]=3,i[t];if(n!==fe&&X(n,t))return s[t]=4,n[t];s[t]=0}}const f=cn[t];let p,h;if(f)return t==="$attrs"&&Te(e,"get",t),f(e);if((p=o.__cssModules)&&(p=p[t]))return p;if(n!==fe&&X(n,t))return s[t]=4,n[t];if(h=a.config.globalProperties,X(h,t))return h[t]},set({_:e},t,n){const{data:r,setupState:l,ctx:i}=e;return Qr(l,t)?(l[t]=n,!0):r!==fe&&X(r,t)?(r[t]=n,!0):X(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:l,propsOptions:i}},s){let o;return!!n[s]||e!==fe&&X(e,s)||Qr(t,s)||(o=i[0])&&X(o,s)||X(r,s)||X(cn,s)||X(l.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:X(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ri(e){return N(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function $a(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:l,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,o=i.get(t);let a;return o?a=o:!l.length&&!n&&!r?a=t:(a={},l.length&&l.forEach(c=>Yn(a,c,s,!0)),Yn(a,t,s)),de(t)&&i.set(t,a),a}function Yn(e,t,n,r=!1){const{mixins:l,extends:i}=t;i&&Yn(e,i,n,!0),l&&l.forEach(s=>Yn(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const o=Ca[s]||n&&n[s];e[s]=o?o(e[s],t[s]):t[s]}return e}const Ca={data:Ti,props:Ii,emits:Ii,methods:un,computed:un,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:un,directives:un,watch:Ra,provide:Ti,inject:Ea};function Ti(e,t){return t?e?function(){return Ce(le(e)?e.call(this,this):e,le(t)?t.call(this,this):t)}:t:e}function Ea(e,t){return un(Ai(e),Ai(t))}function Ai(e){if(N(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 un(e,t){return e?Ce(Object.create(null),e,t):t}function Ii(e,t){return e?N(e)&&N(t)?[...new Set([...e,...t])]:Ce(Object.create(null),Ri(e),Ri(t??{})):t}function Ra(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 Si(){return{app:null,config:{isNativeTag:go,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 Ta=0;function Aa(e,t){return function(r,l=null){le(r)||(r=Ce({},r)),l!=null&&!de(l)&&(l=null);const i=Si(),s=new WeakSet;let o=!1;const a=i.app={_uid:Ta++,_component:r,_props:l,_container:null,_context:i,_instance:null,version:rc,get config(){return i.config},set config(c){},use(c,...f){return s.has(c)||(c&&le(c.install)?(s.add(c),c.install(a,...f)):le(c)&&(s.add(c),c(a,...f))),a},mixin(c){return a},component(c,f){return f?(i.components[c]=f,a):i.components[c]},directive(c,f){return f?(i.directives[c]=f,a):i.directives[c]},mount(c,f,p){if(!o){const h=ae(r,l);return h.appContext=i,f&&t?t(h,c):e(h,c,p),o=!0,a._container=c,c.__vue_app__=a,rr(h.component)||h.component.proxy}},unmount(){o&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,f){return i.provides[c]=f,a},runWithContext(c){Xn=a;try{return c()}finally{Xn=null}}};return a}}let Xn=null;function Ia(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 Gn(e,t,n=!1){const r=Re||Le;if(r||Xn){const l=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:Xn._context.provides;if(l&&e in l)return l[e];if(arguments.length>1)return n&&le(t)?t.call(r&&r.proxy):t}}function Sa(e,t,n,r=!1){const l={},i={};zn(i,tr,1),e.propsDefaults=Object.create(null),Li(e,t,l,i);for(const s in e.propsOptions[0])s in l||(l[s]=void 0);n?e.props=r?l:Yo(l):e.type.props?e.props=l:e.props=i,e.attrs=i}function La(e,t,n,r){const{props:l,attrs:i,vnode:{patchFlag:s}}=e,o=ee(l),[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(Vn(e.emitsOptions,h))continue;const v=t[h];if(a)if(X(i,h))v!==i[h]&&(i[h]=v,c=!0);else{const I=Ve(h);l[I]=Yr(a,o,I,v,e,!1)}else v!==i[h]&&(i[h]=v,c=!0)}}}else{Li(e,t,l,i)&&(c=!0);let f;for(const p in o)(!t||!X(t,p)&&((f=Pt(p))===p||!X(t,f)))&&(a?n&&(n[p]!==void 0||n[f]!==void 0)&&(l[p]=Yr(a,o,p,void 0,e,!0)):delete l[p]);if(i!==o)for(const p in i)(!t||!X(t,p))&&(delete i[p],c=!0)}c&&Xe(e,"set","$attrs")}function Li(e,t,n,r){const[l,i]=e.propsOptions;let s=!1,o;if(t)for(let a in t){if(In(a))continue;const c=t[a];let f;l&&X(l,f=Ve(a))?!i||!i.includes(f)?n[f]=c:(o||(o={}))[f]=c:Vn(e.emitsOptions,a)||(!(a in r)||c!==r[a])&&(r[a]=c,s=!0)}if(i){const a=ee(n),c=o||fe;for(let f=0;f<i.length;f++){const p=i[f];n[p]=Yr(l,a,p,c[p],e,!X(c,p))}}return s}function Yr(e,t,n,r,l,i){const s=e[n];if(s!=null){const o=X(s,"default");if(o&&r===void 0){const a=s.default;if(s.type!==Function&&!s.skipFactory&&le(a)){const{propsDefaults:c}=l;n in c?r=c[n]:(ll(l),r=c[n]=a.call(null,t),pn())}else r=a}s[0]&&(i&&!o?r=!1:s[1]&&(r===""||r===Pt(n))&&(r=!0))}return r}function Ma(e,t,n=!1){const r=t.propsCache,l=r.get(e);if(l)return l;const i=e.props,s={},o=[];if(!i&&!!1)return de(e)&&r.set(e,Mt),Mt;if(N(i))for(let f=0;f<i.length;f++){const p=Ve(i[f]);Mi(p)&&(s[p]=fe)}else if(i)for(const f in i){const p=Ve(f);if(Mi(p)){const h=i[f],v=s[p]=N(h)||le(h)?{type:h}:Ce({},h);if(v){const I=ji(Boolean,v.type),x=ji(String,v.type);v[0]=I>-1,v[1]=x<0||I<x,(I>-1||X(v,"default"))&&o.push(p)}}}const c=[s,o];return de(e)&&r.set(e,c),c}function Mi(e){return e[0]!=="$"}function zi(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Oi(e,t){return zi(e)===zi(t)}function ji(e,t){return N(t)?t.findIndex(n=>Oi(n,e)):le(t)&&Oi(t,e)?0:-1}const Pi=e=>e[0]==="_"||e==="$stable",Xr=e=>N(e)?e.map(Ze):[Ze(e)],za=(e,t,n)=>{if(t._n)return t;const r=ua((...l)=>Xr(t(...l)),n);return r._c=!1,r},Ui=(e,t,n)=>{const r=e._ctx;for(const l in e){if(Pi(l))continue;const i=e[l];if(le(i))t[l]=za(l,i,r);else if(i!=null){const s=Xr(i);t[l]=()=>s}}},Fi=(e,t)=>{const n=Xr(t);e.slots.default=()=>n},Oa=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ee(t),zn(t,"_",n)):Ui(t,e.slots={})}else e.slots={},t&&Fi(e,t);zn(e.slots,tr,1)},ja=(e,t,n)=>{const{vnode:r,slots:l}=e;let i=!0,s=fe;if(r.shapeFlag&32){const o=t._;o?n&&o===1?i=!1:(Ce(l,t),!n&&o===1&&delete l._):(i=!t.$stable,Ui(t,l)),s=t}else t&&(Fi(e,t),s={default:1});if(i)for(const o in l)!Pi(o)&&s[o]==null&&delete l[o]};function Gr(e,t,n,r,l=!1){if(N(e)){e.forEach((h,v)=>Gr(h,t&&(N(t)?t[v]:t),n,r,l));return}if(Jn(r)&&!l)return;const i=r.shapeFlag&4?rr(r.component)||r.component.proxy:r.el,s=l?null:i,{i:o,r:a}=e,c=t&&t.r,f=o.refs===fe?o.refs={}:o.refs,p=o.setupState;if(c!=null&&c!==a&&(ye(c)?(f[c]=null,X(p,c)&&(p[c]=null)):be(c)&&(c.value=null)),le(a))ut(a,o,12,[s,f]);else{const h=ye(a),v=be(a);if(h||v){const I=()=>{if(e.f){const x=h?X(p,a)?p[a]:f[a]:a.value;l?N(x)&&Ul(x,i):N(x)?x.includes(i)||x.push(i):h?(f[a]=[i],X(p,a)&&(p[a]=f[a])):(a.value=[i],e.k&&(f[e.k]=a.value))}else h?(f[a]=s,X(p,a)&&(p[a]=s)):v&&(a.value=s,e.k&&(f[e.k]=s))};s?(I.id=-1,Ae(I,n)):I()}}}const Ae=ya;function Pa(e){return Ua(e)}function Ua(e,t){const n=Lr();n.__VUE__=!0;const{insert:r,remove:l,patchProp:i,createElement:s,createText:o,createComment:a,setText:c,setElementText:f,parentNode:p,nextSibling:h,setScopeId:v=mt,insertStaticContent:I}=e,x=(u,d,g,m=null,w=null,b=null,E=!1,_=null,R=!!d.dynamicChildren)=>{if(u===d)return;u&&!hn(u,d)&&(m=gt(u),ze(u,w,b,!0),u=null),d.patchFlag===-2&&(R=!1,d.dynamicChildren=null);const{type:k,ref:j,shapeFlag:M}=d;switch(k){case er:$(u,d,g,m);break;case $t:y(u,d,g,m);break;case el:u==null&&C(d,g,m,E);break;case ue:He(u,d,g,m,w,b,E,_,R);break;default:M&1?H(u,d,g,m,w,b,E,_,R):M&6?V(u,d,g,m,w,b,E,_,R):(M&64||M&128)&&k.process(u,d,g,m,w,b,E,_,R,Qe)}j!=null&&w&&Gr(j,u&&u.ref,b,d||u,!d)},$=(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},C=(u,d,g,m)=>{[u.el,u.anchor]=I(u.children,d,g,m,u.el,u.anchor)},B=({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)},A=({el:u,anchor:d})=>{let g;for(;u&&u!==d;)g=h(u),l(u),u=g;l(d)},H=(u,d,g,m,w,b,E,_,R)=>{E=E||d.type==="svg",u==null?Y(d,g,m,w,b,E,_,R):Q(u,d,w,b,E,_,R)},Y=(u,d,g,m,w,b,E,_)=>{let R,k;const{type:j,props:M,shapeFlag:P,transition:z,dirs:K}=u;if(R=u.el=s(u.type,b,M&&M.is,M),P&8?f(R,u.children):P&16&&W(u.children,R,null,m,w,b&&j!=="foreignObject",E,_),K&&xt(u,null,m,"created"),J(R,u,u.scopeId,E,m),M){for(const oe in M)oe!=="value"&&!In(oe)&&i(R,oe,null,M[oe],b,u.children,m,w,Oe);"value"in M&&i(R,"value",null,M.value),(k=M.onVnodeBeforeMount)&&Je(k,m,u)}K&&xt(u,null,m,"beforeMount");const te=Fa(w,z);te&&z.beforeEnter(R),r(R,d,g),((k=M&&M.onVnodeMounted)||te||K)&&Ae(()=>{k&&Je(k,m,u),te&&z.enter(R),K&&xt(u,null,m,"mounted")},w)},J=(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;J(u,E,E.scopeId,E.slotScopeIds,w.parent)}}},W=(u,d,g,m,w,b,E,_,R=0)=>{for(let k=R;k<u.length;k++){const j=u[k]=_?ft(u[k]):Ze(u[k]);x(null,j,d,g,m,w,b,E,_)}},Q=(u,d,g,m,w,b,E)=>{const _=d.el=u.el;let{patchFlag:R,dynamicChildren:k,dirs:j}=d;R|=u.patchFlag&16;const M=u.props||fe,P=d.props||fe;let z;g&&_t(g,!1),(z=P.onVnodeBeforeUpdate)&&Je(z,g,d,u),j&&xt(d,u,g,"beforeUpdate"),g&&_t(g,!0);const K=w&&d.type!=="foreignObject";if(k?ce(u.dynamicChildren,k,_,g,m,K,b):E||xe(u,d,_,null,g,m,K,b,!1),R>0){if(R&16)$e(_,d,M,P,g,m,w);else if(R&2&&M.class!==P.class&&i(_,"class",null,P.class,w),R&4&&i(_,"style",M.style,P.style,w),R&8){const te=d.dynamicProps;for(let oe=0;oe<te.length;oe++){const pe=te[oe],Ne=M[pe],At=P[pe];(At!==Ne||pe==="value")&&i(_,pe,Ne,At,w,u.children,g,m,Oe)}}R&1&&u.children!==d.children&&f(_,d.children)}else!E&&k==null&&$e(_,d,M,P,g,m,w);((z=P.onVnodeUpdated)||j)&&Ae(()=>{z&&Je(z,g,d,u),j&&xt(d,u,g,"updated")},m)},ce=(u,d,g,m,w,b,E)=>{for(let _=0;_<d.length;_++){const R=u[_],k=d[_],j=R.el&&(R.type===ue||!hn(R,k)||R.shapeFlag&70)?p(R.el):g;x(R,k,j,null,m,w,b,E,!0)}},$e=(u,d,g,m,w,b,E)=>{if(g!==m){if(g!==fe)for(const _ in g)!In(_)&&!(_ in m)&&i(u,_,g[_],null,E,d.children,w,b,Oe);for(const _ in m){if(In(_))continue;const R=m[_],k=g[_];R!==k&&_!=="value"&&i(u,_,k,R,E,d.children,w,b,Oe)}"value"in m&&i(u,"value",g.value,m.value)}},He=(u,d,g,m,w,b,E,_,R)=>{const k=d.el=u?u.el:o(""),j=d.anchor=u?u.anchor:o("");let{patchFlag:M,dynamicChildren:P,slotScopeIds:z}=d;z&&(_=_?_.concat(z):z),u==null?(r(k,g,m),r(j,g,m),W(d.children,g,j,w,b,E,_,R)):M>0&&M&64&&P&&u.dynamicChildren?(ce(u.dynamicChildren,P,g,w,b,E,_),(d.key!=null||w&&d===w.subTree)&&Hi(u,d,!0)):xe(u,d,g,j,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):D(d,g,m,w,b,E,R):se(u,d,R)},D=(u,d,g,m,w,b,E)=>{const _=u.component=Za(u,m,w);if(ba(u)&&(_.ctx.renderer=Qe),Ja(_),_.asyncDep){if(w&&w.registerDep(_,ve),!u.el){const R=_.subTree=ae($t);y(null,R,d,g)}return}ve(_,u,d,g,w,b,E)},se=(u,d,g)=>{const m=d.component=u.component;if(ha(u,d,g))if(m.asyncDep&&!m.asyncResolved){ge(m,d,g);return}else m.next=d,ia(m.update),m.update();else d.el=u.el,m.vnode=d},ve=(u,d,g,m,w,b,E)=>{const _=()=>{if(u.isMounted){let{next:j,bu:M,u:P,parent:z,vnode:K}=u,te=j,oe;_t(u,!1),j?(j.el=K.el,ge(u,j,E)):j=K,M&&Mn(M),(oe=j.props&&j.props.onVnodeBeforeUpdate)&&Je(oe,z,j,K),_t(u,!0);const pe=qr(u),Ne=u.subTree;u.subTree=pe,x(Ne,pe,p(Ne.el),gt(Ne),u,w,b),j.el=pe.el,te===null&&pa(u,pe.el),P&&Ae(P,w),(oe=j.props&&j.props.onVnodeUpdated)&&Ae(()=>Je(oe,z,j,K),w)}else{let j;const{el:M,props:P}=d,{bm:z,m:K,parent:te}=u,oe=Jn(d);if(_t(u,!1),z&&Mn(z),!oe&&(j=P&&P.onVnodeBeforeMount)&&Je(j,te,d),_t(u,!0),M&&L){const pe=()=>{u.subTree=qr(u),L(M,u.subTree,u,w,null)};oe?d.type.__asyncLoader().then(()=>!u.isUnmounted&&pe()):pe()}else{const pe=u.subTree=qr(u);x(null,pe,g,m,u,w,b),d.el=pe.el}if(K&&Ae(K,w),!oe&&(j=P&&P.onVnodeMounted)){const pe=d;Ae(()=>Je(j,te,pe),w)}(d.shapeFlag&256||te&&Jn(te.vnode)&&te.vnode.shapeFlag&256)&&u.a&&Ae(u.a,w),u.isMounted=!0,d=g=m=null}},R=u.effect=new Ur(_,()=>Kr(k),u.scope),k=u.update=()=>R.run();k.id=u.uid,_t(u,!0),k()},ge=(u,d,g)=>{d.component=u;const m=u.vnode.props;u.vnode=d,u.next=null,La(u,d.props,m,g),ja(u,d.children,g),Gt(),wi(),en()},xe=(u,d,g,m,w,b,E,_,R=!1)=>{const k=u&&u.children,j=u?u.shapeFlag:0,M=d.children,{patchFlag:P,shapeFlag:z}=d;if(P>0){if(P&128){st(k,M,g,m,w,b,E,_,R);return}else if(P&256){we(k,M,g,m,w,b,E,_,R);return}}z&8?(j&16&&Oe(k,w,b),M!==k&&f(g,M)):j&16?z&16?st(k,M,g,m,w,b,E,_,R):Oe(k,w,b,!0):(j&8&&f(g,""),z&16&&W(M,g,m,w,b,E,_,R))},we=(u,d,g,m,w,b,E,_,R)=>{u=u||Mt,d=d||Mt;const k=u.length,j=d.length,M=Math.min(k,j);let P;for(P=0;P<M;P++){const z=d[P]=R?ft(d[P]):Ze(d[P]);x(u[P],z,g,null,w,b,E,_,R)}k>j?Oe(u,w,b,!0,!1,M):W(d,g,m,w,b,E,_,R,M)},st=(u,d,g,m,w,b,E,_,R)=>{let k=0;const j=d.length;let M=u.length-1,P=j-1;for(;k<=M&&k<=P;){const z=u[k],K=d[k]=R?ft(d[k]):Ze(d[k]);if(hn(z,K))x(z,K,g,null,w,b,E,_,R);else break;k++}for(;k<=M&&k<=P;){const z=u[M],K=d[P]=R?ft(d[P]):Ze(d[P]);if(hn(z,K))x(z,K,g,null,w,b,E,_,R);else break;M--,P--}if(k>M){if(k<=P){const z=P+1,K=z<j?d[z].el:m;for(;k<=P;)x(null,d[k]=R?ft(d[k]):Ze(d[k]),g,K,w,b,E,_,R),k++}}else if(k>P)for(;k<=M;)ze(u[k],w,b,!0),k++;else{const z=k,K=k,te=new Map;for(k=K;k<=P;k++){const Ie=d[k]=R?ft(d[k]):Ze(d[k]);Ie.key!=null&&te.set(Ie.key,k)}let oe,pe=0;const Ne=P-K+1;let At=!1,ml=0;const Zt=new Array(Ne);for(k=0;k<Ne;k++)Zt[k]=0;for(k=z;k<=M;k++){const Ie=u[k];if(pe>=Ne){ze(Ie,w,b,!0);continue}let We;if(Ie.key!=null)We=te.get(Ie.key);else for(oe=K;oe<=P;oe++)if(Zt[oe-K]===0&&hn(Ie,d[oe])){We=oe;break}We===void 0?ze(Ie,w,b,!0):(Zt[We-K]=k+1,We>=ml?ml=We:At=!0,x(Ie,d[We],g,null,w,b,E,_,R),pe++)}const vl=At?Ha(Zt):Mt;for(oe=vl.length-1,k=Ne-1;k>=0;k--){const Ie=K+k,We=d[Ie],wl=Ie+1<j?d[Ie+1].el:m;Zt[k]===0?x(null,We,g,wl,w,b,E,_,R):At&&(oe<0||k!==vl[oe]?pt(We,g,wl,2):oe--)}}},pt=(u,d,g,m,w=null)=>{const{el:b,type:E,transition:_,children:R,shapeFlag:k}=u;if(k&6){pt(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,Qe);return}if(E===ue){r(b,d,g);for(let M=0;M<R.length;M++)pt(R[M],d,g,m);r(u.anchor,d,g);return}if(E===el){B(u,d,g);return}if(m!==2&&k&1&&_)if(m===0)_.beforeEnter(b),r(b,d,g),Ae(()=>_.enter(b),w);else{const{leave:M,delayLeave:P,afterLeave:z}=_,K=()=>r(b,d,g),te=()=>{M(b,()=>{K(),z&&z()})};P?P(b,K,te):te()}else r(b,d,g)},ze=(u,d,g,m=!1,w=!1)=>{const{type:b,props:E,ref:_,children:R,dynamicChildren:k,shapeFlag:j,patchFlag:M,dirs:P}=u;if(_!=null&&Gr(_,null,g,u,!0),j&256){d.ctx.deactivate(u);return}const z=j&1&&P,K=!Jn(u);let te;if(K&&(te=E&&E.onVnodeBeforeUnmount)&&Je(te,d,u),j&6)wr(u.component,g,m);else{if(j&128){u.suspense.unmount(g,m);return}z&&xt(u,null,d,"beforeUnmount"),j&64?u.type.remove(u,d,g,w,Qe,m):k&&(b!==ue||M>0&&M&64)?Oe(k,d,g,!1,!0):(b===ue&&M&384||!w&&j&16)&&Oe(R,d,g),m&&Kt(u)}(K&&(te=E&&E.onVnodeUnmounted)||z)&&Ae(()=>{te&&Je(te,d,u),z&&xt(u,null,d,"unmounted")},g)},Kt=u=>{const{type:d,el:g,anchor:m,transition:w}=u;if(d===ue){vr(g,m);return}if(d===el){A(u);return}const b=()=>{l(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()},vr=(u,d)=>{let g;for(;u!==d;)g=h(u),l(u),u=g;l(d)},wr=(u,d,g)=>{const{bum:m,scope:w,update:b,subTree:E,um:_}=u;m&&Mn(m),w.stop(),b&&(b.active=!1,ze(E,u,d,g)),_&&Ae(_,d),Ae(()=>{u.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},Oe=(u,d,g,m=!1,w=!1,b=0)=>{for(let E=b;E<u.length;E++)ze(u[E],d,g,m,w)},gt=u=>u.shapeFlag&6?gt(u.component.subTree):u.shapeFlag&128?u.suspense.next():h(u.anchor||u.el),qt=(u,d,g)=>{u==null?d._vnode&&ze(d._vnode,null,null,!0):x(d._vnode||null,u,d,null,null,null,g),wi(),yi(),d._vnode=u},Qe={p:x,um:ze,m:pt,r:Kt,mt:D,mc:W,pc:xe,pbc:ce,n:gt,o:e};let Tt,L;return t&&([Tt,L]=t(Qe)),{render:qt,hydrate:Tt,createApp:Aa(qt,Tt)}}function _t({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Fa(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Hi(e,t,n=!1){const r=e.children,l=t.children;if(N(r)&&N(l))for(let i=0;i<r.length;i++){const s=r[i];let o=l[i];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=l[i]=ft(l[i]),o.el=s.el),n||Hi(s,o)),o.type===er&&(o.el=s.el)}}function Ha(e){const t=e.slice(),n=[0];let r,l,i,s,o;const a=e.length;for(r=0;r<a;r++){const c=e[r];if(c!==0){if(l=n[n.length-1],e[l]<c){t[r]=l,n.push(r);continue}for(i=0,s=n.length-1;i<s;)o=i+s>>1,e[n[o]]<c?i=o+1:s=o;c<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}const Na=e=>e.__isTeleport,ue=Symbol.for("v-fgt"),er=Symbol.for("v-txt"),$t=Symbol.for("v-cmt"),el=Symbol.for("v-stc"),fn=[];let Be=null;function S(e=!1){fn.push(Be=e?null:[])}function Da(){fn.pop(),Be=fn[fn.length-1]||null}let dn=1;function Ni(e){dn+=e}function Di(e){return e.dynamicChildren=dn>0?Be||Mt:null,Da(),dn>0&&Be&&Be.push(e),e}function O(e,t,n,r,l,i){return Di(F(e,t,n,r,l,i,!0))}function et(e,t,n,r,l){return Di(ae(e,t,n,r,l,!0))}function tl(e){return e?e.__v_isVNode===!0:!1}function hn(e,t){return e.type===t.type&&e.key===t.key}const tr="__vInternal",Bi=({key:e})=>e??null,nr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||be(e)||le(e)?{i:Le,r:e,k:t,f:!!n}:e:null);function F(e,t=null,n=null,r=0,l=null,i=e===ue?0:1,s=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Bi(t),ref:t&&nr(t),scopeId:ki,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:i,patchFlag:r,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:Le};return o?(nl(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=ye(n)?8:16),dn>0&&!s&&Be&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&Be.push(a),a}const ae=Ba;function Ba(e,t=null,n=null,r=0,l=null,i=!1){if((!e||e===ma)&&(e=$t),tl(e)){const o=Nt(e,t,!0);return n&&nl(o,n),dn>0&&!i&&Be&&(o.shapeFlag&6?Be[Be.indexOf(e)]=o:Be.push(o)),o.patchFlag|=-2,o}if(ec(e)&&(e=e.__vccOpts),t){t=Wa(t);let{class:o,style:a}=t;o&&!ye(o)&&(t.class=me(o)),de(a)&&(ui(a)&&!N(a)&&(a=Ce({},a)),t.style=Yt(a))}const s=ye(e)?1:wa(e)?128:Na(e)?64:de(e)?4:le(e)?2:0;return F(e,t,n,r,l,s,i,!0)}function Wa(e){return e?ui(e)||tr in e?Ce({},e):e:null}function Nt(e,t,n=!1){const{props:r,ref:l,patchFlag:i,children:s}=e,o=t?Va(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:o,key:o&&Bi(o),ref:t&&t.ref?n&&l?N(l)?l.concat(nr(t)):[l,nr(t)]:nr(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ue?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Nt(e.ssContent),ssFallback:e.ssFallback&&Nt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function tt(e=" ",t=0){return ae(er,null,e,t)}function G(e="",t=!1){return t?(S(),et($t,null,e)):ae($t,null,e)}function Ze(e){return e==null||typeof e=="boolean"?ae($t):N(e)?ae(ue,null,e.slice()):typeof e=="object"?ft(e):ae(er,null,String(e))}function ft(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Nt(e)}function nl(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(N(t))n=16;else if(typeof t=="object")if(r&65){const l=t.default;l&&(l._c&&(l._d=!1),nl(e,l()),l._c&&(l._d=!0));return}else{n=32;const l=t._;!l&&!(tr in t)?t._ctx=Le:l===3&&Le&&(Le.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else le(t)?(t={default:t,_ctx:Le},n=32):(t=String(t),r&64?(n=16,t=[tt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Va(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const l in r)if(l==="class")t.class!==r.class&&(t.class=me([t.class,r.class]));else if(l==="style")t.style=Yt([t.style,r.style]);else if(An(l)){const i=t[l],s=r[l];s&&i!==s&&!(N(i)&&i.includes(s))&&(t[l]=i?[].concat(i,s):s)}else l!==""&&(t[l]=r[l])}return t}function Je(e,t,n,r=null){Ke(e,t,7,[n,r])}const Ka=Si();let qa=0;function Za(e,t,n){const r=e.type,l=(t?t.appContext:e.appContext)||Ka,i={uid:qa++,vnode:e,type:r,parent:t,appContext:l,root:null,next:null,subTree:null,effect:null,update:null,scope:new To(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(l.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ma(r,l),emitsOptions:ca(r,l),emit:null,emitted:null,propsDefaults:fe,inheritAttrs:r.inheritAttrs,ctx:fe,data:fe,props:fe,attrs:fe,slots:fe,refs:fe,setupState:fe,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 i.ctx={_:i},i.root=t?t.root:i,i.emit=aa.bind(null,i),e.ce&&e.ce(i),i}let Re=null;const Wi=()=>Re||Le;let rl,Dt,Vi="__VUE_INSTANCE_SETTERS__";(Dt=Lr()[Vi])||(Dt=Lr()[Vi]=[]),Dt.push(e=>Re=e),rl=e=>{Dt.length>1?Dt.forEach(t=>t(e)):Dt[0](e)};const ll=e=>{rl(e),e.scope.on()},pn=()=>{Re&&Re.scope.off(),rl(null)};function Ki(e){return e.vnode.shapeFlag&4}let gn=!1;function Ja(e,t=!1){gn=t;const{props:n,children:r}=e.vnode,l=Ki(e);Sa(e,n,l,t),Oa(e,r);const i=l?Qa(e,t):void 0;return gn=!1,i}function Qa(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=fi(new Proxy(e.ctx,_a));const{setup:r}=n;if(r){const l=e.setupContext=r.length>1?Xa(e):null;ll(e),Gt();const i=ut(r,e,0,[e.props,l]);if(en(),pn(),Hl(i)){if(i.then(pn,pn),t)return i.then(s=>{qi(e,s,t)}).catch(s=>{Bn(s,e,0)});e.asyncDep=i}else qi(e,i,t)}else Ji(e,t)}function qi(e,t,n){le(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:de(t)&&(e.setupState=gi(t)),Ji(e,n)}let Zi;function Ji(e,t,n){const r=e.type;if(!e.render){if(!t&&Zi&&!r.render){const l=r.template||$a(e).template;if(l){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:o,compilerOptions:a}=r,c=Ce(Ce({isCustomElement:i,delimiters:o},s),a);r.render=Zi(l,c)}}e.render=r.render||mt}}function Ya(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Te(e,"get","$attrs"),t[n]}}))}function Xa(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Ya(e)},slots:e.slots,emit:e.emit,expose:t}}function rr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(gi(fi(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in cn)return cn[n](e)},has(t,n){return n in t||n in cn}}))}function Ga(e,t=!0){return le(e)?e.displayName||e.name:e.name||t&&e.__name}function ec(e){return le(e)&&"__vccOpts"in e}const ke=(e,t)=>na(e,t,gn);function ne(e,t,n){const r=arguments.length;return r===2?de(t)&&!N(t)?tl(t)?ae(e,null,[t]):ae(e,t):ae(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&tl(n)&&(n=[n]),ae(e,t,n))}const tc=Symbol.for("v-scx"),nc=()=>Gn(tc),rc="3.3.8",lc="http://www.w3.org/2000/svg",Ct=typeof document<"u"?document:null,Qi=Ct&&Ct.createElement("template"),ic={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const l=t?Ct.createElementNS(lc,e):Ct.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&l.setAttribute("multiple",r.multiple),l},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,l,i){const s=n?n.previousSibling:t.lastChild;if(l&&(l===i||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),n),!(l===i||!(l=l.nextSibling)););else{Qi.innerHTML=r?`<svg>${e}</svg>`:e;const o=Qi.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]}},sc=Symbol("_vtc");function oc(e,t,n){const r=e[sc];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const il=Symbol("_vod"),Yi={beforeMount(e,{value:t},{transition:n}){e[il]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):mn(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),mn(e,!0),r.enter(e)):r.leave(e,()=>{mn(e,!1)}):mn(e,t))},beforeUnmount(e,{value:t}){mn(e,t)}};function mn(e,t){e.style.display=t?e[il]:"none"}function ac(e,t,n){const r=e.style,l=ye(n);if(n&&!l){if(t&&!ye(t))for(const i in t)n[i]==null&&sl(r,i,"");for(const i in n)sl(r,i,n[i])}else{const i=r.display;l?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),il in e&&(r.display=i)}}const Xi=/\s*!important$/;function sl(e,t,n){if(N(n))n.forEach(r=>sl(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=cc(e,t);Xi.test(n)?e.setProperty(Pt(r),n.replace(Xi,""),"important"):e[r]=n}}const Gi=["Webkit","Moz","ms"],ol={};function cc(e,t){const n=ol[t];if(n)return n;let r=Ve(t);if(r!=="filter"&&r in e)return ol[t]=r;r=Ln(r);for(let l=0;l<Gi.length;l++){const i=Gi[l]+r;if(i in e)return ol[t]=i}return t}const es="http://www.w3.org/1999/xlink";function uc(e,t,n,r,l){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(es,t.slice(6,t.length)):e.setAttributeNS(es,t,n);else{const i=Eo(t);n==null||i&&!Wl(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function fc(e,t,n,r,l,i,s){if(t==="innerHTML"||t==="textContent"){r&&s(r,l,i),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=Wl(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function nt(e,t,n,r){e.addEventListener(t,n,r)}function dc(e,t,n,r){e.removeEventListener(t,n,r)}const ts=Symbol("_vei");function hc(e,t,n,r,l=null){const i=e[ts]||(e[ts]={}),s=i[t];if(r&&s)s.value=r;else{const[o,a]=pc(t);if(r){const c=i[t]=vc(r,l);nt(e,o,c,a)}else s&&(dc(e,o,s,a),i[t]=void 0)}}const ns=/(?:Once|Passive|Capture)$/;function pc(e){let t;if(ns.test(e)){t={};let r;for(;r=e.match(ns);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Pt(e.slice(2)),t]}let al=0;const gc=Promise.resolve(),mc=()=>al||(gc.then(()=>al=0),al=Date.now());function vc(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Ke(wc(r,n.value),t,5,[r])};return n.value=e,n.attached=mc(),n}function wc(e,t){if(N(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>l=>!l._stopped&&r&&r(l))}else return t}const rs=/^on[a-z]/,yc=(e,t,n,r,l=!1,i,s,o,a)=>{t==="class"?oc(e,r,l):t==="style"?ac(e,n,r):An(t)?Ar(t)||hc(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):bc(e,t,r,l))?fc(e,t,r,i,s,o,a):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),uc(e,t,r,l))};function bc(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&rs.test(t)&&le(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||rs.test(t)&&ye(n)?!1:t in e}const dt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return N(t)?n=>Mn(t,n):t};function kc(e){e.target.composing=!0}function ls(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Fe=Symbol("_assign"),cl={created(e,{modifiers:{lazy:t,trim:n,number:r}},l){e[Fe]=dt(l);const i=r||l.props&&l.props.type==="number";nt(e,t?"change":"input",s=>{if(s.target.composing)return;let o=e.value;n&&(o=o.trim()),i&&(o=On(o)),e[Fe](o)}),n&&nt(e,"change",()=>{e.value=e.value.trim()}),t||(nt(e,"compositionstart",kc),nt(e,"compositionend",ls),nt(e,"change",ls))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:l}},i){if(e[Fe]=dt(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(l||e.type==="number")&&On(e.value)===t))return;const s=t??"";e.value!==s&&(e.value=s)}},xc={deep:!0,created(e,t,n){e[Fe]=dt(n),nt(e,"change",()=>{const r=e._modelValue,l=Bt(e),i=e.checked,s=e[Fe];if(N(r)){const o=Mr(r,l),a=o!==-1;if(i&&!a)s(r.concat(l));else if(!i&&a){const c=[...r];c.splice(o,1),s(c)}}else if(Ot(r)){const o=new Set(r);i?o.add(l):o.delete(l),s(o)}else s(os(e,i))})},mounted:is,beforeUpdate(e,t,n){e[Fe]=dt(n),is(e,t,n)}};function is(e,{value:t,oldValue:n},r){e._modelValue=t,N(t)?e.checked=Mr(t,r.props.value)>-1:Ot(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=wt(t,os(e,!0)))}const _c={created(e,{value:t},n){e.checked=wt(t,n.props.value),e[Fe]=dt(n),nt(e,"change",()=>{e[Fe](Bt(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Fe]=dt(r),t!==n&&(e.checked=wt(t,r.props.value))}},$c={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const l=Ot(t);nt(e,"change",()=>{const i=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>n?On(Bt(s)):Bt(s));e[Fe](e.multiple?l?new Set(i):i:i[0])}),e[Fe]=dt(r)},mounted(e,{value:t}){ss(e,t)},beforeUpdate(e,t,n){e[Fe]=dt(n)},updated(e,{value:t}){ss(e,t)}};function ss(e,t){const n=e.multiple;if(!(n&&!N(t)&&!Ot(t))){for(let r=0,l=e.options.length;r<l;r++){const i=e.options[r],s=Bt(i);if(n)N(t)?i.selected=Mr(t,s)>-1:i.selected=t.has(s);else if(wt(Bt(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Bt(e){return"_value"in e?e._value:e.value}function os(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Cc={created(e,t,n){lr(e,t,n,null,"created")},mounted(e,t,n){lr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){lr(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){lr(e,t,n,r,"updated")}};function Ec(e,t){switch(e){case"SELECT":return $c;case"TEXTAREA":return cl;default:switch(t){case"checkbox":return xc;case"radio":return _c;default:return cl}}}function lr(e,t,n,r,l){const s=Ec(e.tagName,n.props&&n.props.type)[l];s&&s(e,t,n,r)}const Rc=Ce({patchProp:yc},ic);let as;function Tc(){return as||(as=Pa(Rc))}const Ac=(...e)=>{const t=Tc().createApp(...e),{mount:n}=t;return t.mount=r=>{const l=Ic(r);if(!l)return;const i=t._component;!le(i)&&!i.render&&!i.template&&(i.template=l.innerHTML),l.innerHTML="";const s=n(l,!1,l instanceof SVGElement);return l instanceof Element&&(l.removeAttribute("v-cloak"),l.setAttribute("data-v-app","")),s},t};function Ic(e){return ye(e)?document.querySelector(e):e}function vn(e){return Kl()?(Io(e),!0):!1}function rt(e){return typeof e=="function"?e():Z(e)}const ir=typeof window<"u"&&typeof document<"u",Sc=Object.prototype.toString,Lc=e=>Sc.call(e)==="[object Object]",sr=()=>{};function cs(e,t){function n(...r){return new Promise((l,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(l).catch(i)})}return n}const us=e=>e();function Mc(e,t={}){let n,r,l=sr;const i=o=>{clearTimeout(o),l(),l=sr};return o=>{const a=rt(e),c=rt(t.maxWait);return n&&i(n),a<=0||c!==void 0&&c<=0?(r&&(i(r),r=null),Promise.resolve(o())):new Promise((f,p)=>{l=t.rejectOnCancel?p:f,c&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,f(o())},c)),n=setTimeout(()=>{r&&i(r),r=null,f(o())},a)})}}function zc(e=us){const t=q(!0);function n(){t.value=!1}function r(){t.value=!0}const l=(...i)=>{t.value&&e(...i)};return{isActive:nn(t),pause:n,resume:r,eventFilter:l}}function Oc(e,t=200,n={}){return cs(Mc(t,n),e)}function jc(e,t,n={}){const{eventFilter:r=us,...l}=n;return Pe(e,cs(r,t),l)}function Pc(e,t,n={}){const{eventFilter:r,...l}=n,{eventFilter:i,pause:s,resume:o,isActive:a}=zc(r);return{stop:jc(e,t,{...l,eventFilter:i}),pause:s,resume:o,isActive:a}}function ul(e,t=!0){Wi()?an(e):t?e():Wn(e)}function Uc(e){Wi()&&Qn(e)}function Fc(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:l=!1}=n;let i=null;const s=q(!1);function o(){i&&(clearInterval(i),i=null)}function a(){s.value=!1,o()}function c(){const f=rt(t);f<=0||(s.value=!0,l&&e(),o(),i=setInterval(e,f))}if(r&&ir&&c(),be(t)||typeof t=="function"){const f=Pe(t,()=>{s.value&&ir&&c()});vn(f)}return vn(a),{isActive:s,pause:a,resume:c}}function Hc(e){var t;const n=rt(e);return(t=n==null?void 0:n.$el)!=null?t:n}const or=ir?window:void 0,fs=ir?window.document:void 0;function ds(...e){let t,n,r,l;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,l]=e,t=or):[t,n,r,l]=e,!t)return sr;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],s=()=>{i.forEach(f=>f()),i.length=0},o=(f,p,h,v)=>(f.addEventListener(p,h,v),()=>f.removeEventListener(p,h,v)),a=Pe(()=>[Hc(t),rt(l)],([f,p])=>{if(s(),!f)return;const h=Lc(p)?{...p}:p;i.push(...n.flatMap(v=>r.map(I=>o(f,v,I,h))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return vn(c),c}function Nc(e,t={}){const{immediate:n=!0,fpsLimit:r=void 0,window:l=or}=t,i=q(!1),s=r?1e3/r:null;let o=0,a=null;function c(h){if(!i.value||!l)return;const v=h-(o||h);if(s&&v<s){a=l.requestAnimationFrame(c);return}e({delta:v,timestamp:h}),o=h,a=l.requestAnimationFrame(c)}function f(){!i.value&&l&&(i.value=!0,a=l.requestAnimationFrame(c))}function p(){i.value=!1,a!=null&&l&&(l.cancelAnimationFrame(a),a=null)}return n&&f(),vn(p),{isActive:nn(i),pause:p,resume:f}}const ar=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},cr="__vueuse_ssr_handlers__",Dc=Bc();function Bc(){return cr in ar||(ar[cr]=ar[cr]||{}),ar[cr]}function Wc(e,t){return Dc[e]||t}function Vc(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 Kc={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()}},hs="vueuse-storage";function Wt(e,t,n,r={}){var l;const{flush:i="pre",deep:s=!0,listenToStorageChanges:o=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:f,window:p=or,eventFilter:h,onError:v=Q=>{console.error(Q)},initOnMounted:I}=r,x=(f?Xo:q)(typeof t=="function"?t():t);if(!n)try{n=Wc("getDefaultStorage",()=>{var Q;return(Q=or)==null?void 0:Q.localStorage})()}catch(Q){v(Q)}if(!n)return x;const $=rt(t),y=Vc($),C=(l=r.serializer)!=null?l:Kc[y],{pause:B,resume:A}=Pc(x,()=>H(x.value),{flush:i,deep:s,eventFilter:h});return p&&o&&ul(()=>{ds(p,"storage",W),ds(p,hs,J),I&&W()}),I||W(),x;function H(Q){try{if(Q==null)n.removeItem(e);else{const ce=C.write(Q),$e=n.getItem(e);$e!==ce&&(n.setItem(e,ce),p&&p.dispatchEvent(new CustomEvent(hs,{detail:{key:e,oldValue:$e,newValue:ce,storageArea:n}})))}}catch(ce){v(ce)}}function Y(Q){const ce=Q?Q.newValue:n.getItem(e);if(ce==null)return a&&$!==null&&n.setItem(e,C.write($)),$;if(!Q&&c){const $e=C.read(ce);return typeof c=="function"?c($e,$):y==="object"&&!Array.isArray($e)?{...$,...$e}:$e}else return typeof ce!="string"?ce:C.read(ce)}function J(Q){W(Q.detail)}function W(Q){if(!(Q&&Q.storageArea!==n)){if(Q&&Q.key==null){x.value=$;return}if(!(Q&&Q.key!==e)){B();try{(Q==null?void 0:Q.newValue)!==C.write(x.value)&&(x.value=Y(Q))}catch(ce){v(ce)}finally{Q?Wn(A):A()}}}}}function qc(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=q(new Date),l=()=>r.value=new Date,i=n==="requestAnimationFrame"?Nc(l,{immediate:!0}):Fc(l,n,{immediate:!0});return t?{now:r,...i}:r}function Zc(e,t=sr,n={}){const{immediate:r=!0,manual:l=!1,type:i="text/javascript",async:s=!0,crossOrigin:o,referrerPolicy:a,noModule:c,defer:f,document:p=fs,attrs:h={}}=n,v=q(null);let I=null;const x=C=>new Promise((B,A)=>{const H=W=>(v.value=W,B(W),W);if(!p){B(!1);return}let Y=!1,J=p.querySelector(`script[src="${rt(e)}"]`);J?J.hasAttribute("data-loaded")&&H(J):(J=p.createElement("script"),J.type=i,J.async=s,J.src=rt(e),f&&(J.defer=f),o&&(J.crossOrigin=o),c&&(J.noModule=c),a&&(J.referrerPolicy=a),Object.entries(h).forEach(([W,Q])=>J==null?void 0:J.setAttribute(W,Q)),Y=!0),J.addEventListener("error",W=>A(W)),J.addEventListener("abort",W=>A(W)),J.addEventListener("load",()=>{J.setAttribute("data-loaded","true"),t(J),H(J)}),Y&&(J=p.head.appendChild(J)),C||H(J)}),$=(C=!0)=>(I||(I=x(C)),I),y=()=>{if(!p)return;I=null,v.value&&(v.value=null);const C=p.querySelector(`script[src="${rt(e)}"]`);C&&p.head.removeChild(C)};return r&&!l&&ul($),l||Uc(y),{scriptTag:v,load:$,unload:y}}let Jc=0;function Qc(e,t={}){const n=q(!1),{document:r=fs,immediate:l=!0,manual:i=!1,id:s=`vueuse_styletag_${++Jc}`}=t,o=q(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=Pe(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 l&&!i&&ul(c),i||vn(f),{id:s,css:o,unload:f,load:c,isLoaded:nn(n)}}const Yc=e=>!!/@[0-9]+\.[0-9]+\.[0-9]+/.test(e),Xc=e=>{const t=Wt("WALINE_EMOJI",{}),n=Yc(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 l={folder:e,...r};return n&&(t.value[e]=l),l})},ps=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,Gc=e=>Promise.all(e.map(t=>typeof t=="string"?Xc(jl(t)):Promise.resolve(t))).then(t=>{const n={tabs:[],map:{}};return t.forEach(r=>{const{name:l,folder:i,icon:s,prefix:o,type:a,items:c}=r;n.tabs.push({name:l,icon:ps(s,i,o,a),items:c.map(f=>{const p=`${o||""}${f}`;return n.map[p]=ps(f,i,o,a),p})})}),n}),gs=e=>{e.name!=="AbortError"&&console.error(e.message)},fl=e=>e instanceof HTMLElement?e:typeof e=="string"?document.querySelector(e):null,eu=e=>e.type.includes("image"),ms=e=>{const t=Array.from(e).find(eu);return t?t.getAsFile():null};function dl(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Et=dl();function vs(e){Et=e}const ws=/[&<>"']/,tu=new RegExp(ws.source,"g"),ys=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,nu=new RegExp(ys.source,"g"),ru={"&":"&","<":"<",">":">",'"':""","'":"'"},bs=e=>ru[e];function Me(e,t){if(t){if(ws.test(e))return e.replace(tu,bs)}else if(ys.test(e))return e.replace(nu,bs);return e}const lu=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function iu(e){return e.replace(lu,(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 su=/(^|[^\[])\^/g;function re(e,t){e=typeof e=="string"?e:e.source,t=t||"";const n={replace:(r,l)=>(l=typeof l=="object"&&"source"in l?l.source:l,l=l.replace(su,"$1"),e=e.replace(r,l),n),getRegex:()=>new RegExp(e,t)};return n}function ks(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const ur={exec:()=>null};function xs(e,t){const n=e.replace(/\|/g,(i,s,o)=>{let a=!1,c=s;for(;--c>=0&&o[c]==="\\";)a=!a;return a?"|":" |"}),r=n.split(/ \|/);let l=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(;l<r.length;l++)r[l]=r[l].trim().replace(/\\\|/g,"|");return r}function fr(e,t,n){const r=e.length;if(r===0)return"";let l=0;for(;l<r;){const i=e.charAt(r-l-1);if(i===t&&!n)l++;else if(i!==t&&n)l++;else break}return e.slice(0,r-l)}function ou(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 _s(e,t,n,r){const l=t.href,i=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:l,title:i,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,o}return{type:"image",raw:n,href:l,title:i,text:Me(s)}}function au(e,t){const n=e.match(/^(\s+)(?:```)/);if(n===null)return t;const r=n[1];return t.split(`
|
|
8
|
-
`).map(l=>{const i=l.match(/^\s+/);if(i===null)return l;const[s]=i;return s.length>=r.length?l.slice(r.length):l}).join(`
|
|
9
|
-
`)}class dr{options;rules;lexer;constructor(t){this.options=t||Et}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:fr(r,`
|
|
10
|
-
`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const r=n[0],l=au(r,n[3]||"");return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline._escapes,"$1"):n[2],text:l}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let r=n[2].trim();if(/#$/.test(r)){const l=fr(r,"#");(this.options.pedantic||!l||/ $/.test(l))&&(r=l.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=fr(n[0].replace(/^ *>[ \t]?/gm,""),`
|
|
11
|
-
`),l=this.lexer.state.top;this.lexer.state.top=!0;const i=this.lexer.blockTokens(r);return this.lexer.state.top=l,{type:"blockquote",raw:n[0],tokens:i,text:r}}}list(t){let n=this.rules.block.list.exec(t);if(n){let r=n[1].trim();const l=r.length>1,i={type:"list",raw:"",ordered:l,start:l?+r.slice(0,-1):"",loose:!1,items:[]};r=l?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=l?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|$))`),C=new RegExp(`^ {0,${Math.min(3,v-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),B=new RegExp(`^ {0,${Math.min(3,v-1)}}(?:\`\`\`|~~~)`),A=new RegExp(`^ {0,${Math.min(3,v-1)}}#`);for(;t;){const H=t.split(`
|
|
15
|
-
`,1)[0];if(h=H,this.options.pedantic&&(h=h.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),B.test(h)||A.test(h)||y.test(h)||C.test(t))break;if(h.search(/[^ ]/)>=v||!h.trim())a+=`
|
|
16
|
-
`+h.slice(v);else{if(I||p.search(/[^ ]/)>=4||B.test(p)||A.test(p)||C.test(p))break;a+=`
|
|
17
|
-
`+h}!I&&!h.trim()&&(I=!0),o+=H+`
|
|
18
|
-
`,t=t.substring(H.length+1),p=h.slice(v)}}i.loose||(c?i.loose=!0:/\n *\n *$/.test(o)&&(c=!0));let x=null,$;this.options.gfm&&(x=/^\[[ xX]\] /.exec(a),x&&($=x[0]!=="[ ] ",a=a.replace(/^\[[ xX]\] +/,""))),i.items.push({type:"list_item",raw:o,task:!!x,checked:$,loose:!1,text:a,tokens:[]}),i.raw+=o}i.items[i.items.length-1].raw=o.trimEnd(),i.items[i.items.length-1].text=a.trimEnd(),i.raw=i.raw.trimEnd();for(let f=0;f<i.items.length;f++)if(this.lexer.state.top=!1,i.items[f].tokens=this.lexer.blockTokens(i.items[f].text,[]),!i.loose){const p=i.items[f].tokens.filter(v=>v.type==="space"),h=p.length>0&&p.some(v=>/\n.*\n/.test(v.raw));i.loose=h}if(i.loose)for(let f=0;f<i.items.length;f++)i.items[f].loose=!0;return i}}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," "),l=n[2]?n[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",i=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline._escapes,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:l,title:i}}}table(t){const n=this.rules.block.table.exec(t);if(n){if(!/[:|]/.test(n[2]))return;const r={type:"table",raw:n[0],header:xs(n[1]).map(l=>({text:l,tokens:[]})),align:n[2].replace(/^\||\| *$/g,"").split("|"),rows:n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(`
|
|
19
|
-
`):[]};if(r.header.length===r.align.length){let l=r.align.length,i,s,o,a;for(i=0;i<l;i++){const c=r.align[i];c&&(/^ *-+: *$/.test(c)?r.align[i]="right":/^ *:-+: *$/.test(c)?r.align[i]="center":/^ *:-+ *$/.test(c)?r.align[i]="left":r.align[i]=null)}for(l=r.rows.length,i=0;i<l;i++)r.rows[i]=xs(r.rows[i],r.header.length).map(c=>({text:c,tokens:[]}));for(l=r.header.length,s=0;s<l;s++)r.header[s].tokens=this.lexer.inline(r.header[s].text);for(l=r.rows.length,s=0;s<l;s++)for(a=r.rows[s],o=0;o<a.length;o++)a[o].tokens=this.lexer.inline(a[o].text);return r}}}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=fr(r.slice(0,-1),"\\");if((r.length-s.length)%2===0)return}else{const s=ou(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 l=n[2],i="";if(this.options.pedantic){const s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(l);s&&(l=s[1],i=s[3])}else i=n[3]?n[3].slice(1,-1):"";return l=l.trim(),/^</.test(l)&&(this.options.pedantic&&!/>$/.test(r)?l=l.slice(1):l=l.slice(1,-1)),_s(n,{href:l&&l.replace(this.rules.inline._escapes,"$1"),title:i&&i.replace(this.rules.inline._escapes,"$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))){let l=(r[2]||r[1]).replace(/\s+/g," ");if(l=n[l.toLowerCase()],!l){const i=r[0].charAt(0);return{type:"text",raw:i,text:i}}return _s(r,l,r[0],this.lexer)}}emStrong(t,n,r=""){let l=this.rules.inline.emStrong.lDelim.exec(t);if(!l||l[3]&&r.match(/[\p{L}\p{N}]/u))return;if(!(l[1]||l[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const s=[...l[0]].length-1;let o,a,c=s,f=0;const p=l[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(p.lastIndex=0,n=n.slice(-1*t.length+s);(l=p.exec(n))!=null;){if(o=l[1]||l[2]||l[3]||l[4]||l[5]||l[6],!o)continue;if(a=[...o].length,l[3]||l[4]){c+=a;continue}else if((l[5]||l[6])&&s%3&&!((s+a)%3)){f+=a;continue}if(c-=a,c>0)continue;a=Math.min(a,a+c+f);const h=[...l[0]][0].length,v=t.slice(0,s+l.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 l=/[^ ]/.test(r),i=/^ /.test(r)&&/ $/.test(r);return l&&i&&(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,l;return n[2]==="@"?(r=Me(n[1]),l="mailto:"+r):(r=Me(n[1]),l=r),{type:"link",raw:n[0],text:r,href:l,tokens:[{type:"text",raw:r,text:r}]}}}url(t){let n;if(n=this.rules.inline.url.exec(t)){let r,l;if(n[2]==="@")r=Me(n[0]),l="mailto:"+r;else{let i;do i=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0];while(i!==n[0]);r=Me(n[0]),n[1]==="www."?l="http://"+n[0]:l=n[0]}return{type:"link",raw:n[0],text:r,href:l,tokens:[{type:"text",raw:r,text:r}]}}}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 U={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {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|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:ur,lheading:/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};U._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/,U._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,U.def=re(U.def).replace("label",U._label).replace("title",U._title).getRegex(),U.bullet=/(?:[*+-]|\d{1,9}[.)])/,U.listItemStart=re(/^( *)(bull) */).replace("bull",U.bullet).getRegex(),U.list=re(U.list).replace(/bull/g,U.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+U.def.source+")").getRegex(),U._tag="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",U._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,U.html=re(U.html,"i").replace("comment",U._comment).replace("tag",U._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),U.lheading=re(U.lheading).replace(/bull/g,U.bullet).getRegex(),U.paragraph=re(U._paragraph).replace("hr",U.hr).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",U._tag).getRegex(),U.blockquote=re(U.blockquote).replace("paragraph",U.paragraph).getRegex(),U.normal={...U},U.gfm={...U.normal,table:"^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},U.gfm.table=re(U.gfm.table).replace("hr",U.hr).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",U._tag).getRegex(),U.gfm.paragraph=re(U._paragraph).replace("hr",U.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",U.gfm.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",U._tag).getRegex(),U.pedantic={...U.normal,html:re(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",U._comment).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:ur,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:re(U.normal._paragraph).replace("hr",U.hr).replace("heading",` *#{1,6} *[^
|
|
21
|
-
]`).replace("lheading",U.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const T={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ur,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,rDelimAst:/^[^_*]*?__[^_*]*?\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\*)[punct](\*+)(?=[\s]|$)|[^punct\s](\*+)(?!\*)(?=[punct\s]|$)|(?!\*)[punct\s](\*+)(?=[^punct\s])|[\s](\*+)(?!\*)(?=[punct])|(?!\*)[punct](\*+)(?!\*)(?=[punct])|[^punct\s](\*+)(?=[^punct\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\s]|$)|[^punct\s](_+)(?!_)(?=[punct\s]|$)|(?!_)[punct\s](_+)(?=[^punct\s])|[\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:ur,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^((?![*_])[\spunctuation])/};T._punctuation="\\p{P}$+<=>`^|~",T.punctuation=re(T.punctuation,"u").replace(/punctuation/g,T._punctuation).getRegex(),T.blockSkip=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,T.anyPunctuation=/\\[punct]/g,T._escapes=/\\([punct])/g,T._comment=re(U._comment).replace("(?:-->|$)","-->").getRegex(),T.emStrong.lDelim=re(T.emStrong.lDelim,"u").replace(/punct/g,T._punctuation).getRegex(),T.emStrong.rDelimAst=re(T.emStrong.rDelimAst,"gu").replace(/punct/g,T._punctuation).getRegex(),T.emStrong.rDelimUnd=re(T.emStrong.rDelimUnd,"gu").replace(/punct/g,T._punctuation).getRegex(),T.anyPunctuation=re(T.anyPunctuation,"gu").replace(/punct/g,T._punctuation).getRegex(),T._escapes=re(T._escapes,"gu").replace(/punct/g,T._punctuation).getRegex(),T._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,T._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])?)+(?![-_])/,T.autolink=re(T.autolink).replace("scheme",T._scheme).replace("email",T._email).getRegex(),T._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,T.tag=re(T.tag).replace("comment",T._comment).replace("attribute",T._attribute).getRegex(),T._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,T._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,T._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,T.link=re(T.link).replace("label",T._label).replace("href",T._href).replace("title",T._title).getRegex(),T.reflink=re(T.reflink).replace("label",T._label).replace("ref",U._label).getRegex(),T.nolink=re(T.nolink).replace("ref",U._label).getRegex(),T.reflinkSearch=re(T.reflinkSearch,"g").replace("reflink",T.reflink).replace("nolink",T.nolink).getRegex(),T.normal={...T},T.pedantic={...T.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:re(/^!?\[(label)\]\((.*?)\)/).replace("label",T._label).getRegex(),reflink:re(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",T._label).getRegex()},T.gfm={...T.normal,escape:re(T.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_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.!#$%&'*+\/=?_`{\|}~-]+@)))/},T.gfm.url=re(T.gfm.url,"i").replace("email",T.gfm._extended_email).getRegex(),T.breaks={...T.gfm,br:re(T.br).replace("{2,}","*").getRegex(),text:re(T.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};class lt{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Et,this.options.tokenizer=this.options.tokenizer||new dr,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:U.normal,inline:T.normal};this.options.pedantic?(n.block=U.pedantic,n.inline=T.pedantic):this.options.gfm&&(n.block=U.gfm,this.options.breaks?n.inline=T.breaks:n.inline=T.gfm),this.tokenizer.rules=n}static get rules(){return{block:U,inline:T}}static lex(t,n){return new lt(n).lex(t)}static lexInline(t,n){return new lt(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,l,i,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),l=n[n.length-1],l&&(l.type==="paragraph"||l.type==="text")?(l.raw+=`
|
|
24
|
-
`+r.raw,l.text+=`
|
|
25
|
-
`+r.text,this.inlineQueue[this.inlineQueue.length-1].src=l.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),l=n[n.length-1],l&&(l.type==="paragraph"||l.type==="text")?(l.raw+=`
|
|
26
|
-
`+r.raw,l.text+=`
|
|
27
|
-
`+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=l.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(i=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&&(i=t.substring(0,o+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){l=n[n.length-1],s&&l.type==="paragraph"?(l.raw+=`
|
|
28
|
-
`+r.raw,l.text+=`
|
|
29
|
-
`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=l.text):n.push(r),s=i.length!==t.length,t=t.substring(r.raw.length);continue}if(r=this.tokenizer.text(t)){t=t.substring(r.raw.length),l=n[n.length-1],l&&l.type==="text"?(l.raw+=`
|
|
30
|
-
`+r.raw,l.text+=`
|
|
31
|
-
`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=l.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,l,i,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),l=n[n.length-1],l&&r.type==="text"&&l.type==="text"?(l.raw+=r.raw,l.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),l=n[n.length-1],l&&r.type==="text"&&l.type==="text"?(l.raw+=r.raw,l.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(i=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&&(i=t.substring(0,f+1))}if(r=this.tokenizer.inlineText(i)){t=t.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(c=r.raw.slice(-1)),a=!0,l=n[n.length-1],l&&l.type==="text"?(l.raw+=r.raw,l.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 hr{options;constructor(t){this.options=t||Et}code(t,n,r){var i;const l=(i=(n||"").match(/^\S*/))==null?void 0:i[0];return t=t.replace(/\n$/,"")+`
|
|
32
|
-
`,l?'<pre><code class="language-'+Me(l)+'">'+(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 l=n?"ol":"ul",i=n&&r!==1?' start="'+r+'"':"";return"<"+l+i+`>
|
|
39
|
-
`+t+"</"+l+`>
|
|
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 l=ks(t);if(l===null)return r;t=l;let i='<a href="'+t+'"';return n&&(i+=' title="'+n+'"'),i+=">"+r+"</a>",i}image(t,n,r){const l=ks(t);if(l===null)return r;t=l;let i=`<img src="${t}" alt="${r}"`;return n&&(i+=` title="${n}"`),i+=">",i}text(t){return t}}class hl{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||Et,this.options.renderer=this.options.renderer||new hr,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new hl}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 l=0;l<t.length;l++){const i=t[l];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){const s=i,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(i.type){case"space":continue;case"hr":{r+=this.renderer.hr();continue}case"heading":{const s=i;r+=this.renderer.heading(this.parseInline(s.tokens),s.depth,iu(this.parseInline(s.tokens,this.textRenderer)));continue}case"code":{const s=i;r+=this.renderer.code(s.text,s.lang,!!s.escaped);continue}case"table":{const s=i;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=i,o=this.parse(s.tokens);r+=this.renderer.blockquote(o);continue}case"list":{const s=i,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 $=this.renderer.checkbox(!!v);c?h.tokens.length>0&&h.tokens[0].type==="paragraph"?(h.tokens[0].text=$+" "+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=$+" "+h.tokens[0].tokens[0].text)):h.tokens.unshift({type:"text",text:$+" "}):x+=$+" "}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=i;r+=this.renderer.html(s.text,s.block);continue}case"paragraph":{const s=i;r+=this.renderer.paragraph(this.parseInline(s.tokens));continue}case"text":{let s=i,o=s.tokens?this.parseInline(s.tokens):s.text;for(;l+1<t.length&&t[l+1].type==="text";)s=t[++l],o+=`
|
|
50
|
-
`+(s.tokens?this.parseInline(s.tokens):s.text);r+=n?this.renderer.paragraph(o):o;continue}default:{const s='Token with "'+i.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 l=0;l<t.length;l++){const i=t[l];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){const s=this.options.extensions.renderers[i.type].call({parser:this},i);if(s!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){r+=s||"";continue}}switch(i.type){case"escape":{const s=i;r+=n.text(s.text);break}case"html":{const s=i;r+=n.html(s.text);break}case"link":{const s=i;r+=n.link(s.href,s.title,this.parseInline(s.tokens,n));break}case"image":{const s=i;r+=n.image(s.href,s.title,s.text);break}case"strong":{const s=i;r+=n.strong(this.parseInline(s.tokens,n));break}case"em":{const s=i;r+=n.em(this.parseInline(s.tokens,n));break}case"codespan":{const s=i;r+=n.codespan(s.text);break}case"br":{r+=n.br();break}case"del":{const s=i;r+=n.del(this.parseInline(s.tokens,n));break}case"text":{const s=i;r+=n.text(s.text);break}default:{const s='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return r}}class wn{options;constructor(t){this.options=t||Et}preprocess(t){return t}postprocess(t){return t}}je(wn,"passThroughHooks",new Set(["preprocess","postprocess"]));class $s{constructor(...t){yr(this,$n);yr(this,mr);je(this,"defaults",dl());je(this,"options",this.setOptions);je(this,"parse",Cn(this,$n,gl).call(this,lt.lex,it.parse));je(this,"parseInline",Cn(this,$n,gl).call(this,lt.lexInline,it.parseInline));je(this,"Parser",it);je(this,"Renderer",hr);je(this,"TextRenderer",hl);je(this,"Lexer",lt);je(this,"Tokenizer",dr);je(this,"Hooks",wn);this.use(...t)}walkTokens(t,n){var l,i;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;(i=(l=this.defaults.extensions)==null?void 0:l.childTokens)!=null&&i[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 l={...r};if(l.async=this.defaults.async||l.async||!1,r.extensions&&(r.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const s=n.renderers[i.name];s?n.renderers[i.name]=function(...o){let a=i.renderer.apply(this,o);return a===!1&&(a=s.apply(this,o)),a}:n.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const s=n[i.level];s?s.unshift(i.tokenizer):n[i.level]=[i.tokenizer],i.start&&(i.level==="block"?n.startBlock?n.startBlock.push(i.start):n.startBlock=[i.start]:i.level==="inline"&&(n.startInline?n.startInline.push(i.start):n.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(n.childTokens[i.name]=i.childTokens)}),l.extensions=n),r.renderer){const i=this.defaults.renderer||new hr(this.defaults);for(const s in r.renderer){const o=r.renderer[s],a=s,c=i[a];i[a]=(...f)=>{let p=o.apply(i,f);return p===!1&&(p=c.apply(i,f)),p||""}}l.renderer=i}if(r.tokenizer){const i=this.defaults.tokenizer||new dr(this.defaults);for(const s in r.tokenizer){const o=r.tokenizer[s],a=s,c=i[a];i[a]=(...f)=>{let p=o.apply(i,f);return p===!1&&(p=c.apply(i,f)),p}}l.tokenizer=i}if(r.hooks){const i=this.defaults.hooks||new wn;for(const s in r.hooks){const o=r.hooks[s],a=s,c=i[a];wn.passThroughHooks.has(s)?i[a]=f=>{if(this.defaults.async)return Promise.resolve(o.call(i,f)).then(h=>c.call(i,h));const p=o.call(i,f);return c.call(i,p)}:i[a]=(...f)=>{let p=o.apply(i,f);return p===!1&&(p=c.apply(i,f)),p}}l.hooks=i}if(r.walkTokens){const i=this.defaults.walkTokens,s=r.walkTokens;l.walkTokens=function(o){let a=[];return a.push(s.call(this,o)),i&&(a=a.concat(i.call(this,o))),a}}this.defaults={...this.defaults,...l}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return lt.lex(t,n??this.defaults)}parser(t,n){return it.parse(t,n??this.defaults)}}$n=new WeakSet,gl=function(t,n){return(r,l)=>{const i={...l},s={...this.defaults,...i};this.defaults.async===!0&&i.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=Cn(this,mr,Vs).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.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));const a=t(r,s);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)}}},mr=new WeakSet,Vs=function(t,n){return r=>{if(r.message+=`
|
|
51
|
-
Please report this to https://github.com/markedjs/marked.`,t){const l="<p>An error occurred:</p><pre>"+Me(r.message+"",!0)+"</pre>";return n?Promise.resolve(l):l}if(n)return Promise.reject(r);throw r}};const Rt=new $s;function he(e,t){return Rt.parse(e,t)}he.options=he.setOptions=function(e){return Rt.setOptions(e),he.defaults=Rt.defaults,vs(he.defaults),he},he.getDefaults=dl,he.defaults=Et,he.use=function(...e){return Rt.use(...e),he.defaults=Rt.defaults,vs(he.defaults),he},he.walkTokens=function(e,t){return Rt.walkTokens(e,t)},he.parseInline=Rt.parseInline,he.Parser=it,he.parser=it.parse,he.Renderer=hr,he.TextRenderer=hl,he.Lexer=lt,he.lexer=lt.lex,he.Tokenizer=dr,he.Hooks=wn,he.parse=he;function cu(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=uu(t);if(e.async)return Promise.resolve(e.highlight(t.text,n)).then(Cs(t));const r=e.highlight(t.text,n);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.");Cs(t)(r)},renderer:{code(t,n,r){const l=(n||"").match(/\S*/)[0],i=l?` class="${e.langPrefix}${As(l)}"`:"";return t=t.replace(/\n$/,""),`<pre><code${i}>${r?t:As(t,!0)}
|
|
52
|
-
</code></pre>`}}}}function uu(e){return(e.lang||"").match(/\S*/)[0]}function Cs(e){return t=>{typeof t=="string"&&t!==e.text&&(e.escaped=!0,e.text=t)}}const Es=/[&<>"']/,fu=new RegExp(Es.source,"g"),Rs=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,du=new RegExp(Rs.source,"g"),hu={"&":"&","<":"<",">":">",'"':""","'":"'"},Ts=e=>hu[e];function As(e,t){if(t){if(Es.test(e))return e.replace(fu,Ts)}else if(Rs.test(e))return e.replace(du,Ts);return e}const pu=/\$.*?\$/,gu=/^\$(.*?)\$/,mu=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,vu=e=>[{name:"blockMath",level:"block",tokenizer(t){const n=mu.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(pu);return n!==-1?n:t.length},tokenizer(t){const n=gu.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!1,n[1])}}}],Is=(e="",t={})=>e.replace(/:(.+?):/g,(n,r)=>t[r]?`<img class="wl-emoji" src="${t[r]}" alt="${r}">`:n),wu=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{const l=new $s;if(l.setOptions({breaks:!0}),n&&l.use(cu({highlight:n})),r){const i=vu(r);l.use({extensions:i})}return l.parse(Is(e,t))},pl=e=>e.dataset.path||null,yu=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),bu=e=>e.match(/[\u4E00-\u9FD5]/gu),ku=e=>{var t,n;return(((t=yu(e))==null?void 0:t.reduce((r,l)=>r+(["",",","."].includes(l.trim())?0:l.trim().split(/\s+/u).length),0))||0)+(((n=bu(e))==null?void 0:n.length)||0)},xu=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},Ss=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count",lang:r=navigator.language})=>{const l=new AbortController,i=document.querySelectorAll(n);return i.length&&_l({serverURL:Tn(e),paths:Array.from(i).map(s=>Ol(pl(s)||t)),lang:r,signal:l.signal}).then(s=>{i.forEach((o,a)=>{o.innerText=s[a].toString()})}).catch(gs),l.abort.bind(l)},Ls=({size:e})=>ne("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[ne("path",{d:"M697.173 85.333h-369.92c-144.64 0-241.92 101.547-241.92 252.587v348.587c0 150.613 97.28 252.16 241.92 252.16h369.92c144.64 0 241.494-101.547 241.494-252.16V337.92c0-151.04-96.854-252.587-241.494-252.587z",fill:"currentColor"}),ne("path",{d:"m640.683 587.52-75.947-75.861 75.904-75.862a37.29 37.29 0 0 0 0-52.778 37.205 37.205 0 0 0-52.779 0l-75.946 75.818-75.862-75.946a37.419 37.419 0 0 0-52.821 0 37.419 37.419 0 0 0 0 52.821l75.947 75.947-75.776 75.733a37.29 37.29 0 1 0 52.778 52.821l75.776-75.776 75.947 75.947a37.376 37.376 0 0 0 52.779-52.821z",fill:"#888"})]),_u=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("path",{d:"m341.013 394.667 27.755 393.45h271.83l27.733-393.45h64.106l-28.01 397.952a64 64 0 0 1-63.83 59.498H368.768a64 64 0 0 1-63.83-59.52l-28.053-397.93h64.128zm139.307 19.818v298.667h-64V414.485h64zm117.013 0v298.667h-64V414.485h64zM181.333 288h640v64h-640v-64zm453.483-106.667v64h-256v-64h256z",fill:"red"})),$u=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("path",{d:"M563.2 463.3 677 540c1.7 1.2 3.7 1.8 5.8 1.8.7 0 1.4-.1 2-.2 2.7-.5 5.1-2.1 6.6-4.4l25.3-37.8c1.5-2.3 2.1-5.1 1.6-7.8s-2.1-5.1-4.4-6.6l-73.6-49.1 73.6-49.1c2.3-1.5 3.9-3.9 4.4-6.6.5-2.7 0-5.5-1.6-7.8l-25.3-37.8a10.1 10.1 0 0 0-6.6-4.4c-.7-.1-1.3-.2-2-.2-2.1 0-4.1.6-5.8 1.8l-113.8 76.6c-9.2 6.2-14.7 16.4-14.7 27.5.1 11 5.5 21.3 14.7 27.4zM387 348.8h-45.5c-5.7 0-10.4 4.7-10.4 10.4v153.3c0 5.7 4.7 10.4 10.4 10.4H387c5.7 0 10.4-4.7 10.4-10.4V359.2c0-5.7-4.7-10.4-10.4-10.4zm333.8 241.3-41-20a10.3 10.3 0 0 0-8.1-.5c-2.6.9-4.8 2.9-5.9 5.4-30.1 64.9-93.1 109.1-164.4 115.2-5.7.5-9.9 5.5-9.5 11.2l3.9 45.5c.5 5.3 5 9.5 10.3 9.5h.9c94.8-8 178.5-66.5 218.6-152.7 2.4-5 .3-11.2-4.8-13.6zm186-186.1c-11.9-42-30.5-81.4-55.2-117.1-24.1-34.9-53.5-65.6-87.5-91.2-33.9-25.6-71.5-45.5-111.6-59.2-41.2-14-84.1-21.1-127.8-21.1h-1.2c-75.4 0-148.8 21.4-212.5 61.7-63.7 40.3-114.3 97.6-146.5 165.8-32.2 68.1-44.3 143.6-35.1 218.4 9.3 74.8 39.4 145 87.3 203.3.1.2.3.3.4.5l36.2 38.4c1.1 1.2 2.5 2.1 3.9 2.6 73.3 66.7 168.2 103.5 267.5 103.5 73.3 0 145.2-20.3 207.7-58.7 37.3-22.9 70.3-51.5 98.1-85 27.1-32.7 48.7-69.5 64.2-109.1 15.5-39.7 24.4-81.3 26.6-123.8 2.4-43.6-2.5-87-14.5-129zm-60.5 181.1c-8.3 37-22.8 72-43 104-19.7 31.1-44.3 58.6-73.1 81.7-28.8 23.1-61 41-95.7 53.4-35.6 12.7-72.9 19.1-110.9 19.1-82.6 0-161.7-30.6-222.8-86.2l-34.1-35.8c-23.9-29.3-42.4-62.2-55.1-97.7-12.4-34.7-18.8-71-19.2-107.9-.4-36.9 5.4-73.3 17.1-108.2 12-35.8 30-69.2 53.4-99.1 31.7-40.4 71.1-72 117.2-94.1 44.5-21.3 94-32.6 143.4-32.6 49.3 0 97 10.8 141.8 32 34.3 16.3 65.3 38.1 92 64.8 26.1 26 47.5 56 63.6 89.2 16.2 33.2 26.6 68.5 31 105.1 4.6 37.5 2.7 75.3-5.6 112.3z",fill:"currentColor"})),Cu=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ne("path",{d:"M784 112H240c-88 0-160 72-160 160v480c0 88 72 160 160 160h544c88 0 160-72 160-160V272c0-88-72-160-160-160zm96 640c0 52.8-43.2 96-96 96H240c-52.8 0-96-43.2-96-96V272c0-52.8 43.2-96 96-96h544c52.8 0 96 43.2 96 96v480z",fill:"currentColor"}),ne("path",{d:"M352 480c52.8 0 96-43.2 96-96s-43.2-96-96-96-96 43.2-96 96 43.2 96 96 96zm0-128c17.6 0 32 14.4 32 32s-14.4 32-32 32-32-14.4-32-32 14.4-32 32-32zm462.4 379.2-3.2-3.2-177.6-177.6c-25.6-25.6-65.6-25.6-91.2 0l-80 80-36.8-36.8c-25.6-25.6-65.6-25.6-91.2 0L200 728c-4.8 6.4-8 14.4-8 24 0 17.6 14.4 32 32 32 9.6 0 16-3.2 22.4-9.6L380.8 640l134.4 134.4c6.4 6.4 14.4 9.6 24 9.6 17.6 0 32-14.4 32-32 0-9.6-4.8-17.6-9.6-24l-52.8-52.8 80-80L769.6 776c6.4 4.8 12.8 8 20.8 8 17.6 0 32-14.4 32-32 0-8-3.2-16-8-20.8z",fill:"currentColor"})]),Eu=({active:e=!1})=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ne("path",{d:`M850.654 323.804c-11.042-25.625-26.862-48.532-46.885-68.225-20.022-19.61-43.258-34.936-69.213-45.73-26.78-11.124-55.124-16.727-84.375-16.727-40.622 0-80.256 11.123-114.698 32.135A214.79 214.79 0 0 0 512 241.819a214.79 214.79 0 0 0-23.483-16.562c-34.442-21.012-74.076-32.135-114.698-32.135-29.25 0-57.595 5.603-84.375 16.727-25.872 10.711-49.19 26.12-69.213 45.73-20.105 19.693-35.843 42.6-46.885 68.225-11.453 26.615-17.303 54.877-17.303 83.963 0 27.439 5.603 56.03 16.727 85.117 9.31 24.307 22.659 49.52 39.715 74.981 27.027 40.293 64.188 82.316 110.33 124.915 76.465 70.615 152.189 119.394 155.402 121.371l19.528 12.525c8.652 5.52 19.776 5.52 28.427 0l19.529-12.525c3.213-2.06 78.854-50.756 155.401-121.371 46.143-42.6 83.304-84.622 110.33-124.915 17.057-25.46 30.487-50.674 39.716-74.981 11.124-29.087 16.727-57.678 16.727-85.117.082-29.086-5.768-57.348-17.221-83.963z${e?"":"M512 761.5S218.665 573.55 218.665 407.767c0-83.963 69.461-152.023 155.154-152.023 60.233 0 112.473 33.618 138.181 82.727 25.708-49.109 77.948-82.727 138.18-82.727 85.694 0 155.155 68.06 155.155 152.023C805.335 573.551 512 761.5 512 761.5z"}`,fill:e?"red":"currentColor"})]),Ru=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ne("path",{d:"M710.816 654.301c70.323-96.639 61.084-230.578-23.705-314.843-46.098-46.098-107.183-71.109-172.28-71.109-65.008 0-126.092 25.444-172.28 71.109-45.227 46.098-70.756 107.183-70.756 172.106 0 64.923 25.444 126.007 71.194 172.106 46.099 46.098 107.184 71.109 172.28 71.109 51.414 0 100.648-16.212 142.824-47.404l126.53 126.006c7.058 7.06 16.297 10.979 26.406 10.979 10.105 0 19.343-3.919 26.402-10.979 14.467-14.467 14.467-38.172 0-52.723L710.816 654.301zm-315.107-23.265c-65.88-65.88-65.88-172.54 0-238.42 32.069-32.07 74.245-49.149 119.471-49.149 45.227 0 87.407 17.603 119.472 49.149 65.88 65.879 65.88 172.539 0 238.42-63.612 63.178-175.242 63.178-238.943 0zm0 0",fill:"currentColor"}),ne("path",{d:"M703.319 121.603H321.03c-109.8 0-199.469 89.146-199.469 199.38v382.034c0 109.796 89.236 199.38 199.469 199.38h207.397c20.653 0 37.384-16.645 37.384-37.299 0-20.649-16.731-37.296-37.384-37.296H321.03c-68.582 0-124.352-55.77-124.352-124.267V321.421c0-68.496 55.77-124.267 124.352-124.267h382.289c68.582 0 124.352 55.771 124.352 124.267V524.72c0 20.654 16.736 37.299 37.385 37.299 20.654 0 37.384-16.645 37.384-37.299V320.549c-.085-109.8-89.321-198.946-199.121-198.946zm0 0",fill:"currentColor"})]),Tu=()=>ne("svg",{width:"16",height:"16",ariaHidden:"true"},ne("path",{d:"M14.85 3H1.15C.52 3 0 3.52 0 4.15v7.69C0 12.48.52 13 1.15 13h13.69c.64 0 1.15-.52 1.15-1.15v-7.7C16 3.52 15.48 3 14.85 3zM9 11H7V8L5.5 9.92 4 8v3H2V5h2l1.5 2L7 5h2v6zm2.99.5L9.5 8H11V5h2v3h1.5l-2.51 3.5z",fill:"currentColor"})),Au=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("path",{d:"M810.667 213.333a64 64 0 0 1 64 64V704a64 64 0 0 1-64 64H478.336l-146.645 96.107a21.333 21.333 0 0 1-33.024-17.856V768h-85.334a64 64 0 0 1-64-64V277.333a64 64 0 0 1 64-64h597.334zm0 64H213.333V704h149.334v63.296L459.243 704h351.424V277.333zm-271.36 213.334v64h-176.64v-64h176.64zm122.026-128v64H362.667v-64h298.666z",fill:"currentColor"})),Iu=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("path",{d:"M813.039 318.772L480.53 651.278H360.718V531.463L693.227 198.961C697.904 194.284 704.027 192 710.157 192C716.302 192 722.436 194.284 727.114 198.961L813.039 284.88C817.72 289.561 820 295.684 820 301.825C820 307.95 817.72 314.093 813.039 318.772ZM710.172 261.888L420.624 551.431V591.376H460.561L750.109 301.825L710.172 261.888ZM490.517 291.845H240.906V771.09H720.156V521.479C720.156 504.947 733.559 491.529 750.109 491.529C766.653 491.529 780.063 504.947 780.063 521.479V791.059C780.063 813.118 762.18 831 740.125 831H220.937C198.882 831 181 813.118 181 791.059V271.872C181 249.817 198.882 231.935 220.937 231.935H490.517C507.06 231.935 520.47 245.352 520.47 261.888C520.47 278.424 507.06 291.845 490.517 291.845Z",fill:"currentColor"})),Su=()=>ne("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},ne("path",{d:"m894.4 461.56-54.4-63.2c-10.4-12-18.8-34.4-18.8-50.4v-68c0-42.4-34.8-77.2-77.2-77.2h-68c-15.6 0-38.4-8.4-50.4-18.8l-63.2-54.4c-27.6-23.6-72.8-23.6-100.8 0l-62.8 54.8c-12 10-34.8 18.4-50.4 18.4h-69.2c-42.4 0-77.2 34.8-77.2 77.2v68.4c0 15.6-8.4 38-18.4 50l-54 63.6c-23.2 27.6-23.2 72.4 0 100l54 63.6c10 12 18.4 34.4 18.4 50v68.4c0 42.4 34.8 77.2 77.2 77.2h69.2c15.6 0 38.4 8.4 50.4 18.8l63.2 54.4c27.6 23.6 72.8 23.6 100.8 0l63.2-54.4c12-10.4 34.4-18.8 50.4-18.8h68c42.4 0 77.2-34.8 77.2-77.2v-68c0-15.6 8.4-38.4 18.8-50.4l54.4-63.2c23.2-27.6 23.2-73.2-.4-100.8zm-216-25.2-193.2 193.2a30 30 0 0 1-42.4 0l-96.8-96.8a30.16 30.16 0 0 1 0-42.4c11.6-11.6 30.8-11.6 42.4 0l75.6 75.6 172-172c11.6-11.6 30.8-11.6 42.4 0 11.6 11.6 11.6 30.8 0 42.4z",fill:"#27ae60"})),yn=({size:e=100})=>ne("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},ne("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},ne("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),Lu=()=>ne("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[ne("path",{style:"transform: translateY(0.5px)",d:"M18.968 10.5H15.968V11.484H17.984V12.984H15.968V15H14.468V9H18.968V10.5V10.5ZM8.984 9C9.26533 9 9.49967 9.09367 9.687 9.281C9.87433 9.46833 9.968 9.70267 9.968 9.984V10.5H6.499V13.5H8.468V12H9.968V14.016C9.968 14.2973 9.87433 14.5317 9.687 14.719C9.49967 14.9063 9.26533 15 8.984 15H5.984C5.70267 15 5.46833 14.9063 5.281 14.719C5.09367 14.5317 5 14.2973 5 14.016V9.985C5 9.70367 5.09367 9.46933 5.281 9.282C5.46833 9.09467 5.70267 9.001 5.984 9.001H8.984V9ZM11.468 9H12.968V15H11.468V9V9Z"}),ne("path",{d:"M18.5 3H5.75C3.6875 3 2 4.6875 2 6.75V18C2 20.0625 3.6875 21.75 5.75 21.75H18.5C20.5625 21.75 22.25 20.0625 22.25 18V6.75C22.25 4.6875 20.5625 3 18.5 3ZM20.75 18C20.75 19.2375 19.7375 20.25 18.5 20.25H5.75C4.5125 20.25 3.5 19.2375 3.5 18V6.75C3.5 5.5125 4.5125 4.5 5.75 4.5H18.5C19.7375 4.5 20.75 5.5125 20.75 6.75V18Z"})]),Mu=()=>Wt("WALINE_USER_META",{nick:"",mail:"",link:""}),zu=()=>Wt("WALINE_COMMENT_BOX_EDITOR",""),Ou="WALINE_LIKE";let Ms=null;const zs=()=>Ms||(Ms=Wt(Ou,[])),ju="WALINE_REACTION";let Os=null;const Pu=()=>Os??(Os=Wt(ju,{}));var pr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},js={},Vt={},bn={},Uu=pr&&pr.__awaiter||function(e,t,n,r){function l(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,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?i(f.value):l(f.value).then(o,a)}c((r=r.apply(e,t||[])).next())})},Fu=pr&&pr.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,l,i,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,l&&(i=c[0]&2?l.return:c[0]?l.throw||((i=l.return)&&i.call(l),0):l.next)&&!(i=i.call(l,c[1])).done)return i;switch(l=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,l=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){n.label=c[1];break}if(c[0]===6&&n.label<i[1]){n.label=i[1],i=c;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(c);break}i[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(f){c=[6,f],l=0}finally{r=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}};Object.defineProperty(bn,"__esModule",{value:!0}),bn.ReCaptchaInstance=void 0;var Hu=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 Uu(this,void 0,void 0,function(){return Fu(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}();bn.ReCaptchaInstance=Hu,Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.getInstance=Vt.load=void 0;var Nu=bn,ht;(function(e){e[e.NOT_LOADED=0]="NOT_LOADED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"})(ht||(ht={}));var Ps=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(l,i){e.successfulLoadingConsumers.push(function(s){return l(s)}),e.errorLoadingRunnable.push(function(s){return i(s)})});e.instanceSiteKey=t,e.setLoadingState(ht.LOADING);var r=new e;return new Promise(function(l,i){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 Nu.ReCaptchaInstance(t,s,grecaptcha);e.successfulLoadingConsumers.forEach(function(a){return a(o)}),e.successfulLoadingConsumers=[],n.autoHideBadge&&o.hideBadge(),e.instance=o,l(o)}).catch(function(s){e.errorLoadingRunnable.forEach(function(o){return o(s)}),e.errorLoadingRunnable=[],i(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,l,i){var s=this;n===void 0&&(n=!1),r===void 0&&(r=!1),l===void 0&&(l={}),i===void 0&&(i="");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"),i&&(a=i),l.render&&(l.render=void 0);var c=this.buildQueryString(l);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,l){var i={sitekey:n,badge:r.badge,size:r.size,tabindex:r.tabindex};return r.container?l?t.enterprise.render(r.container,i):t.render(r.container,i):l?t.enterprise.render(i):t.render(i)},e.loadingState=null,e.instance=null,e.instanceSiteKey=null,e.successfulLoadingConsumers=[],e.errorLoadingRunnable=[],e.SCRIPT_LOAD_DELAY=25,e}();Vt.load=Ps.load,Vt.getInstance=Ps.getInstance,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=Vt;Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=bn;Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})}(js);const Us={},Du=e=>{const t=Us[e]??(Us[e]=js.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:n=>t.then(r=>r.execute(n))}},Bu=e=>({execute:async t=>{const{load:n}=Zc("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(l=>{r==null||r.ready(()=>{r==null||r.render(".wl-captcha-container",{sitekey:e,action:t,size:"compact",callback:l})})})}}),Wu="WALINE_USER";let Fs=null;const gr=()=>Fs??(Fs=Wt(Wu,{})),Vu={key:0,class:"wl-reaction"},Ku=["textContent"],qu={class:"wl-reaction-list"},Zu=["onClick"],Ju={class:"wl-reaction-img"},Qu=["src","alt"],Yu=["textContent"],Xu=["textContent"];var Gu=on({__name:"ArticleReaction",setup(e,{expose:t}){t();const n=Pu(),r=Gn("config"),l=q(-1),i=q([]),s=ke(()=>r.value.locale),o=ke(()=>r.value.reaction.length>0),a=ke(()=>{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,$=new AbortController;c=$.abort.bind($);const y=await br({serverURL:h,lang:v,paths:[I],type:x.map((C,B)=>`reaction${B}`),signal:$.signal});if(Array.isArray(y)||typeof y=="number")return;i.value=x.map((C,B)=>y[`reaction${B}`])}},p=async h=>{if(l.value===-1){const{serverURL:v,lang:I,path:x}=r.value,$=n.value[x];l.value=h,$!==void 0&&(await En({serverURL:v,lang:I,path:x,type:`reaction${$}`,action:"desc"}),i.value[$]=Math.max(i.value[$]-1,0)),$!==h&&(await En({serverURL:v,lang:I,path:x,type:`reaction${h}`}),i.value[h]=(i.value[h]||0)+1),$===h?delete n.value[x]:n.value[x]=h,l.value=-1}};return an(()=>{Pe(()=>[r.value.serverURL,r.value.path],()=>{f()},{immediate:!0})}),Qn(()=>c==null?void 0:c()),(h,v)=>a.value.length?(S(),O("div",Vu,[F("div",{class:"wl-reaction-title",textContent:ie(s.value.reactionTitle)},null,8,Ku),F("ul",qu,[(S(!0),O(ue,null,Ue(a.value,({active:I,icon:x,desc:$},y)=>(S(),O("li",{key:y,class:me(["wl-reaction-item",{active:I}]),onClick:C=>p(y)},[F("div",Ju,[F("img",{src:x,alt:$},null,8,Qu),l.value===y?(S(),et(Z(yn),{key:0,class:"wl-reaction-loading"})):(S(),O("div",{key:1,class:"wl-reaction-votes",textContent:ie(i.value[y]||0)},null,8,Yu))]),F("div",{class:"wl-reaction-text",textContent:ie($)},null,8,Xu)],10,Zu))),128))])])):G("v-if",!0)}}),kn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,l]of t)n[r]=l;return n},ef=kn(Gu,[["__file","ArticleReaction.vue"]]),xn=new Map;function tf(e){var t=xn.get(e);t&&t.destroy()}function nf(e){var t=xn.get(e);t&&t.update()}var _n=null;typeof window>"u"?((_n=function(e){return e}).destroy=function(e){return e},_n.update=function(e){return e}):((_n=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"&&!xn.has(r)){var l,i=null,s=window.getComputedStyle(r),o=(l=r.value,function(){c({testForHeightReduction:l===""||!r.value.startsWith(l),restoreTextAlign:null}),l=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]}),xn.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",xn.set(r,{destroy:a,update:f}),f()}function c(p){var h,v,I=p.restoreTextAlign,x=I===void 0?null:I,$=p.testForHeightReduction,y=$===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(A){for(var H=[];A&&A.parentNode&&A.parentNode instanceof Element;)A.parentNode.scrollTop&&H.push([A.parentNode,A.parentNode.scrollTop]),A=A.parentNode;return function(){return H.forEach(function(Y){var J=Y[0],W=Y[1];J.style.scrollBehavior="auto",J.scrollTop=W,J.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(),i!==v&&(r.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),i=v),C!==s.overflow&&!x)){var B=s.textAlign;s.overflow==="hidden"&&(r.style.textAlign=B==="start"?"end":"start"),c({restoreTextAlign:B,testForHeightReduction:!0})}}function f(){c({testForHeightReduction:!0,restoreTextAlign:null})}}(n)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],tf),e},_n.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],nf),e});var rf=_n,Hs=rf;const lf=["data-index"],sf=["src","title","onClick"];var of=on({__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 l=q(null),i=q({}),s=q([]),o=()=>{const h=Math.floor((l.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 Wn();const I=Array.from(((v=l.value)==null?void 0:v.children)||[]).reduce((x,$)=>$.getBoundingClientRect().height<x.getBoundingClientRect().height?$: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=>{i.value[h.target.src]=!0};return an(()=>{f(!0),r=new ResizeObserver(()=>{f()}),r.observe(l.value),Pe(()=>[n.items],()=>{i.value={},f(!0)}),Pe(()=>[n.columnWidth,n.gap],()=>{f()})}),xa(()=>r.unobserve(l.value)),(h,v)=>(S(),O("div",{ref_key:"wall",ref:l,class:"wl-gallery",style:Yt({gap:`${h.gap}px`})},[(S(!0),O(ue,null,Ue(s.value,(I,x)=>(S(),O("div",{key:x,class:"wl-gallery-column","data-index":x,style:Yt({gap:`${h.gap}px`})},[(S(!0),O(ue,null,Ue(I,$=>(S(),O(ue,{key:$},[i.value[h.items[$].src]?G("v-if",!0):(S(),et(Z(yn),{key:0,size:36,style:{margin:"20px auto"}})),F("img",{class:"wl-gallery-item",src:h.items[$].src,title:h.items[$].title,loading:"lazy",onLoad:p,onClick:y=>h.$emit("insert",``)},null,40,sf)],64))),128))],12,lf))),128))],4))}}),af=kn(of,[["__file","ImageWall.vue"]]);const cf={class:"wl-comment"},uf={key:0,class:"wl-login-info"},ff={class:"wl-avatar"},df=["title"],hf=["title"],pf=["src"],gf=["title","textContent"],mf={class:"wl-panel"},vf=["for","textContent"],wf=["id","onUpdate:modelValue","name","type"],yf=["placeholder"],bf={class:"wl-preview"},kf=F("hr",null,null,-1),xf=["innerHTML"],_f={class:"wl-footer"},$f={class:"wl-actions"},Cf={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},Ef=["title"],Rf=["title"],Tf=["title"],Af=["title"],If={class:"wl-info"},Sf=F("div",{class:"wl-captcha-container"},null,-1),Lf={class:"wl-text-number"},Mf={key:0},zf=["textContent"],Of=["textContent"],jf=["disabled"],Pf=["placeholder"],Uf={key:1,class:"wl-loading"},Ff={key:0,class:"wl-tab-wrapper"},Hf=["title","onClick"],Nf=["src","alt"],Df={key:0,class:"wl-tabs"},Bf=["onClick"],Wf=["src","alt","title"],Vf=["title"];var Kf=on({__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,l=n;t();const i=Gn("config"),s=zu(),o=Mu(),a=gr(),c=q({}),f=q(null),p=q(null),h=q(null),v=q(null),I=q(null),x=q(null),$=q(null),y=q({tabs:[],map:{}}),C=q(0),B=q(!1),A=q(!1),H=q(!1),Y=q(""),J=q(0),W=tn({loading:!0,list:[]}),Q=q(0),ce=q(!1),$e=q(""),He=q(!1),V=q(!1),D=ke(()=>i.value.locale),se=ke(()=>{var L;return!!((L=a.value)!=null&&L.token)}),ve=ke(()=>i.value.imageUploader!==!1),ge=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},xe=L=>{const u=L.key;(L.ctrlKey||L.metaKey)&&u==="Enter"&&Kt()},we=L=>{const u=`![${i.value.locale.uploading} ${L.name}]()`;return ge(u),He.value=!0,Promise.resolve().then(()=>i.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(()=>{He.value=!1})},st=L=>{var u;if((u=L.dataTransfer)!=null&&u.items){const d=ms(L.dataTransfer.items);d&&ve.value&&(we(d),L.preventDefault())}},pt=L=>{if(L.clipboardData){const u=ms(L.clipboardData.items);u&&ve.value&&we(u)}},ze=()=>{const L=p.value;L.files&&ve.value&&we(L.files[0]).then(()=>{L.value=""})},Kt=async()=>{var L,u,d,g,m,w;const{serverURL:b,lang:E,login:_,wordLimit:R,requiredMeta:k,recaptchaV3Key:j,turnstileKey:M}=i.value,P=await xu(),z={comment:$e.value,nick:o.value.nick,mail:o.value.mail,link:o.value.link,url:i.value.path,ua:P};if((L=a.value)!=null&&L.token)z.nick=a.value.display_name,z.mail=a.value.email,z.link=a.value.url;else{if(_==="force")return;if(k.indexOf("nick")>-1&&!z.nick)return(u=c.value.nick)==null||u.focus(),alert(D.value.nickError);if(k.indexOf("mail")>-1&&!z.mail||z.mail&&!po(z.mail))return(d=c.value.mail)==null||d.focus(),alert(D.value.mailError);z.nick||(z.nick=D.value.anonymous)}if(!z.comment){(g=f.value)==null||g.focus();return}if(!ce.value)return alert(D.value.wordHint.replace("$0",R[0].toString()).replace("$1",R[1].toString()).replace("$2",J.value.toString()));z.comment=Is(z.comment,y.value.map),r.replyId&&r.rootId&&(z.pid=r.replyId,z.rid=r.rootId,z.at=r.replyUser),He.value=!0;try{j&&(z.recaptchaV3=await Du(j).execute("social")),M&&(z.turnstile=await Bu(M).execute("social"));const K={serverURL:b,lang:E,token:(m=a.value)==null?void 0:m.token,comment:z},te=await(r.edit?Jt({objectId:r.edit.objectId,...K}):kl(K));if(He.value=!1,te.errmsg)return alert(te.errmsg);l("submit",te.data),s.value="",Y.value="",r.replyId&&l("cancelReply"),(w=r.edit)!=null&&w.objectId&&l("cancelEdit")}catch(K){He.value=!1,alert(K.message)}},vr=L=>{L.preventDefault();const{lang:u,serverURL:d}=i.value;$l({serverURL:d,lang:u}).then(g=>{a.value=g,(g.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(g)),l("log")})},wr=()=>{a.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),l("log")},Oe=L=>{L.preventDefault();const{lang:u,serverURL:d}=i.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},"*")},gt=L=>{var u,d,g,m;!((u=h.value)!=null&&u.contains(L.target))&&!((d=v.value)!=null&&d.contains(L.target))&&(B.value=!1),!((g=I.value)!=null&&g.contains(L.target))&&!((m=x.value)!=null&&m.contains(L.target))&&(A.value=!1)},qt=async L=>{var u;const{scrollTop:d,clientHeight:g,scrollHeight:m}=L.target,w=(g+d)/m,b=i.value.search,E=((u=$.value)==null?void 0:u.value)||"";w<.9||W.loading||V.value||(W.loading=!0,(b.more&&W.list.length?await b.more(E,W.list.length):await b.search(E)).length?W.list=[...W.list,...b.more&&W.list.length?await b.more(E,W.list.length):await b.search(E)]:V.value=!0,W.loading=!1,setTimeout(()=>{L.target.scrollTop=d},50))},Qe=Oc(L=>{W.list=[],V.value=!1,qt(L)},300);Pe([i,J],([L,u])=>{const{wordLimit:d}=L;d?u<d[0]&&d[0]!==0?(Q.value=d[0],ce.value=!1):u>d[1]?(Q.value=d[1],ce.value=!1):(Q.value=d[1],ce.value=!0):(Q.value=0,ce.value=!0)},{immediate:!0});const Tt=({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 an(()=>{var L;document.body.addEventListener("click",gt),window.addEventListener("message",Tt),(L=r.edit)!=null&&L.objectId&&(s.value=r.edit.orig),Pe(A,async u=>{if(!u)return;const d=i.value.search;$.value&&($.value.value=""),W.loading=!0,W.list=d.default?await d.default():await d.search(""),W.loading=!1}),Pe(()=>s.value,u=>{const{highlighter:d,texRenderer:g}=i.value;$e.value=u,Y.value=wu(u,{emojiMap:y.value.map,highlighter:d,texRenderer:g}),J.value=ku(u),u?Hs(f.value):Hs.destroy(f.value)},{immediate:!0}),Pe(()=>i.value.emoji,u=>Gc(u).then(d=>{y.value=d}),{immediate:!0})}),Qn(()=>{document.body.removeEventListener("click",gt),window.removeEventListener("message",Tt)}),(L,u)=>{var d,g;return S(),O("div",cf,[Z(i).login!=="disable"&&se.value&&!((d=L.edit)!=null&&d.objectId)?(S(),O("div",uf,[F("div",ff,[F("button",{type:"submit",class:"wl-logout-btn",title:D.value.logout,onClick:wr},[ae(Z(Ls),{size:14})],8,df),F("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:D.value.profile,onClick:Oe},[F("img",{src:Z(a).avatar,alt:"avatar"},null,8,pf)],8,hf)]),F("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:D.value.profile,onClick:Oe,textContent:ie(Z(a).display_name)},null,8,gf)])):G("v-if",!0),F("div",mf,[Z(i).login!=="force"&&Z(i).meta.length&&!se.value?(S(),O("div",{key:0,class:me(["wl-header",`item${Z(i).meta.length}`])},[(S(!0),O(ue,null,Ue(Z(i).meta,m=>(S(),O("div",{key:m,class:"wl-header-item"},[F("label",{for:`wl-${m}`,textContent:ie(D.value[m]+(Z(i).requiredMeta.includes(m)||!Z(i).requiredMeta.length?"":`(${D.value.optional})`))},null,8,vf),Zn(F("input",{id:`wl-${m}`,ref_for:!0,ref:w=>{w&&(c.value[m]=w)},"onUpdate:modelValue":w=>Z(o)[m]=w,class:me(["wl-input",`wl-${m}`]),name:m,type:m==="mail"?"email":"text"},null,10,wf),[[Cc,Z(o)[m]]])]))),128))],2)):G("v-if",!0),Zn(F("textarea",{id:"wl-edit",ref_key:"editorRef",ref:f,"onUpdate:modelValue":u[0]||(u[0]=m=>be(s)?s.value=m:null),class:"wl-editor",placeholder:L.replyUser?`@${L.replyUser}`:D.value.placeholder,onKeydown:xe,onDrop:st,onPaste:pt},null,40,yf),[[cl,Z(s)]]),Zn(F("div",bf,[kf,F("h4",null,ie(D.value.preview)+":",1),F("div",{class:"wl-content",innerHTML:Y.value},null,8,xf)],512),[[Yi,H.value]]),F("div",_f,[F("div",$f,[F("a",Cf,[ae(Z(Tu))]),Zn(F("button",{ref_key:"emojiButtonRef",ref:h,type:"button",class:me(["wl-action",{active:B.value}]),title:D.value.emoji,onClick:u[1]||(u[1]=m=>B.value=!B.value)},[ae(Z($u))],10,Ef),[[Yi,y.value.tabs.length]]),Z(i).search?(S(),O("button",{key:0,ref_key:"gifButtonRef",ref:I,type:"button",class:me(["wl-action",{active:A.value}]),title:D.value.gif,onClick:u[2]||(u[2]=m=>A.value=!A.value)},[ae(Z(Lu))],10,Rf)):G("v-if",!0),F("input",{id:"wl-image-upload",ref_key:"imageUploadRef",ref:p,class:"upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:ze},null,544),ve.value?(S(),O("label",{key:1,for:"wl-image-upload",class:"wl-action",title:D.value.uploadImage},[ae(Z(Cu))],8,Tf)):G("v-if",!0),F("button",{type:"button",class:me(["wl-action",{active:H.value}]),title:D.value.preview,onClick:u[3]||(u[3]=m=>H.value=!H.value)},[ae(Z(Ru))],10,Af)]),F("div",If,[Sf,F("div",Lf,[tt(ie(J.value)+" ",1),Z(i).wordLimit?(S(),O("span",Mf,[tt(" / "),F("span",{class:me({illegal:!ce.value}),textContent:ie(Q.value)},null,10,zf)])):G("v-if",!0),tt(" "+ie(D.value.word),1)]),Z(i).login!=="disable"&&!se.value?(S(),O("button",{key:0,type:"button",class:"wl-btn",onClick:vr,textContent:ie(D.value.login)},null,8,Of)):G("v-if",!0),Z(i).login!=="force"||se.value?(S(),O("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:He.value,onClick:Kt},[He.value?(S(),et(Z(yn),{key:0,size:16})):(S(),O(ue,{key:1},[tt(ie(D.value.submit),1)],64))],8,jf)):G("v-if",!0)]),F("div",{ref_key:"gifPopupRef",ref:x,class:me(["wl-gif-popup",{display:A.value}])},[F("input",{ref_key:"gifSearchInputRef",ref:$,type:"text",placeholder:D.value.gifSearchPlaceholder,onInput:u[4]||(u[4]=(...m)=>Z(Qe)&&Z(Qe)(...m))},null,40,Pf),W.list.length?(S(),et(af,{key:0,items:W.list,"column-width":200,gap:6,onInsert:u[5]||(u[5]=m=>ge(m)),onScroll:qt},null,8,["items"])):G("v-if",!0),W.loading?(S(),O("div",Uf,[ae(Z(yn),{size:30})])):G("v-if",!0)],2),F("div",{ref_key:"emojiPopupRef",ref:v,class:me(["wl-emoji-popup",{display:B.value}])},[(S(!0),O(ue,null,Ue(y.value.tabs,(m,w)=>(S(),O(ue,{key:m.name},[w===C.value?(S(),O("div",Ff,[(S(!0),O(ue,null,Ue(m.items,b=>(S(),O("button",{key:b,type:"button",title:b,onClick:E=>ge(`:${b}:`)},[B.value?(S(),O("img",{key:0,class:"wl-emoji",src:y.value.map[b],alt:b,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Nf)):G("v-if",!0)],8,Hf))),128))])):G("v-if",!0)],64))),128)),y.value.tabs.length>1?(S(),O("div",Df,[(S(!0),O(ue,null,Ue(y.value.tabs,(m,w)=>(S(),O("button",{key:m.name,type:"button",class:me(["wl-tab",{active:C.value===w}]),onClick:b=>C.value=w},[F("img",{class:"wl-emoji",src:m.icon,alt:m.name,title:m.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Wf)],10,Bf))),128))])):G("v-if",!0)],2)])]),L.replyId||(g=L.edit)!=null&&g.objectId?(S(),O("button",{key:1,type:"button",class:"wl-close",title:D.value.cancelReply,onClick:u[6]||(u[6]=m=>L.$emit(L.replyId?"cancelReply":"cancelEdit"))},[ae(Z(Ls),{size:24})],8,Vf)):G("v-if",!0)])}}}),Ns=kn(Kf,[["__file","CommentBox.vue"]]);const qf=["id"],Zf={class:"wl-user","aria-hidden":"true"},Jf=["src"],Qf={class:"wl-card"},Yf={class:"wl-head"},Xf=["href"],Gf={key:1,class:"wl-nick"},ed=["textContent"],td=["textContent"],nd=["textContent"],rd=["textContent"],ld=["textContent"],id={class:"wl-comment-actions"},sd=["title"],od=["title"],ad={class:"wl-meta","aria-hidden":"true"},cd=["data-value","textContent"],ud=["innerHTML"],fd={key:1,class:"wl-admin-actions"},dd={class:"wl-comment-status"},hd=["disabled","onClick","textContent"],pd={key:3,class:"wl-quote"};var gd=on({__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,l=["approved","waiting","spam"],i=Gn("config"),s=zs(),o=qc(),a=gr(),c=ke(()=>i.value.locale),f=ke(()=>{const{link:y}=n.comment;return y?Pl(y)?y:`https://${y}`:""}),p=ke(()=>s.value.includes(n.comment.objectId)),h=ke(()=>fo(n.comment.insertedAt,o.value,c.value)),v=ke(()=>a.value.type==="administrator"),I=ke(()=>n.comment.user_id&&a.value.objectId===n.comment.user_id),x=ke(()=>{var y;return n.comment.objectId===((y=n.reply)==null?void 0:y.objectId)}),$=ke(()=>{var y;return n.comment.objectId===((y=n.edit)==null?void 0:y.objectId)});return(y,C)=>{var B;const A=ga("CommentCard",!0);return S(),O("div",{id:y.comment.objectId,class:"wl-card-item"},[F("div",Zf,[y.comment.avatar?(S(),O("img",{key:0,class:"wl-user-avatar",src:y.comment.avatar},null,8,Jf)):G("v-if",!0),y.comment.type?(S(),et(Z(Su),{key:1})):G("v-if",!0)]),F("div",Qf,[F("div",Yf,[f.value?(S(),O("a",{key:0,class:"wl-nick",href:f.value,target:"_blank",rel:"nofollow noopener noreferrer"},ie(y.comment.nick),9,Xf)):(S(),O("span",Gf,ie(y.comment.nick),1)),y.comment.type==="administrator"?(S(),O("span",{key:2,class:"wl-badge",textContent:ie(c.value.admin)},null,8,ed)):G("v-if",!0),y.comment.label?(S(),O("span",{key:3,class:"wl-badge",textContent:ie(y.comment.label)},null,8,td)):G("v-if",!0),y.comment.sticky?(S(),O("span",{key:4,class:"wl-badge",textContent:ie(c.value.sticky)},null,8,nd)):G("v-if",!0),typeof y.comment.level=="number"?(S(),O("span",{key:5,class:me(`wl-badge level${y.comment.level}`),textContent:ie(c.value[`level${y.comment.level}`]||`Level ${y.comment.level}`)},null,10,rd)):G("v-if",!0),F("span",{class:"wl-time",textContent:ie(h.value)},null,8,ld),F("div",id,[v.value||I.value?(S(),O(ue,{key:0},[F("button",{type:"button",class:"wl-edit",onClick:C[0]||(C[0]=H=>r("edit",y.comment))},[ae(Z(Iu))]),F("button",{type:"button",class:"wl-delete",onClick:C[1]||(C[1]=H=>r("delete",y.comment))},[ae(Z(_u))])],64)):G("v-if",!0),F("button",{type:"button",class:"wl-like",title:p.value?c.value.cancelLike:c.value.like,onClick:C[2]||(C[2]=H=>r("like",y.comment))},[ae(Z(Eu),{active:p.value},null,8,["active"]),tt(" "+ie("like"in y.comment?y.comment.like:""),1)],8,sd),F("button",{type:"button",class:me(["wl-reply",{active:x.value}]),title:x.value?c.value.cancelReply:c.value.reply,onClick:C[3]||(C[3]=H=>r("reply",x.value?null:y.comment))},[ae(Z(Au))],10,od)])]),F("div",ad,[(S(),O(ue,null,Ue(["addr","browser","os"],H=>(S(),O(ue,null,[y.comment[H]?(S(),O("span",{key:H,class:me(`wl-${H}`),"data-value":y.comment[H],textContent:ie(y.comment[H])},null,10,cd)):G("v-if",!0)],64))),64))]),$.value?G("v-if",!0):(S(),O("div",{key:0,class:"wl-content",innerHTML:y.comment.comment},null,8,ud)),v.value&&!$.value?(S(),O("div",fd,[F("span",dd,[(S(),O(ue,null,Ue(l,H=>F("button",{key:H,type:"submit",class:me(`wl-btn wl-${H}`),disabled:y.comment.status===H,onClick:Y=>r("status",{status:H,comment:y.comment}),textContent:ie(c.value[H])},null,10,hd)),64))]),v.value&&!("rid"in y.comment)?(S(),O("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:C[4]||(C[4]=H=>r("sticky",y.comment))},ie(y.comment.sticky?c.value.unsticky:c.value.sticky),1)):G("v-if",!0)])):G("v-if",!0),x.value||$.value?(S(),O("div",{key:2,class:me({"wl-reply-wrapper":x.value,"wl-edit-wrapper":$.value})},[ae(Ns,{edit:y.edit,"reply-id":(B=y.reply)==null?void 0:B.objectId,"reply-user":y.comment.nick,"root-id":y.rootId,onLog:C[5]||(C[5]=H=>r("log")),onCancelReply:C[6]||(C[6]=H=>r("reply",null)),onCancelEdit:C[7]||(C[7]=H=>r("edit",null)),onSubmit:C[8]||(C[8]=H=>r("submit",H))},null,8,["edit","reply-id","reply-user","root-id"])],2)):G("v-if",!0),"children"in y.comment?(S(),O("div",pd,[(S(!0),O(ue,null,Ue(y.comment.children,H=>(S(),et(A,{key:H.objectId,comment:H,reply:y.reply,edit:y.edit,"root-id":y.rootId,onLog:C[9]||(C[9]=Y=>r("log")),onDelete:C[10]||(C[10]=Y=>r("delete",Y)),onEdit:C[11]||(C[11]=Y=>r("edit",Y)),onLike:C[12]||(C[12]=Y=>r("like",Y)),onReply:C[13]||(C[13]=Y=>r("reply",Y)),onStatus:C[14]||(C[14]=Y=>r("status",Y)),onSticky:C[15]||(C[15]=Y=>r("sticky",Y)),onSubmit:C[16]||(C[16]=Y=>r("submit",Y))},null,8,["comment","reply","edit","root-id"]))),128))])):G("v-if",!0)])],8,qf)}}}),md=kn(gd,[["__file","CommentCard.vue"]]);const Ds="3.0.0-alpha.2",vd={"data-waline":""},wd={class:"wl-meta-head"},yd={class:"wl-count"},bd=["textContent"],kd={class:"wl-sort"},xd=["onClick"],_d={class:"wl-cards"},$d={key:1,class:"wl-operation"},Cd=["textContent"],Ed={key:2,class:"wl-loading"},Rd=["textContent"],Td={key:4,class:"wl-operation"},Ad=["textContent"],Id={key:5,class:"wl-power"},Sd=F("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1);var Ld=on({__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),l=gr(),i=zs(),s=q("loading"),o=q(0),a=q(1),c=q(0),f=ke(()=>ao(t)),p=q(f.value.commentSorting),h=q([]),v=q(null),I=q(null),x=ke(()=>co(f.value.dark)),$=ke(()=>f.value.locale);Qc(x,{id:"waline-darkmode"});let y;const C=V=>{var D;const{serverURL:se,path:ve,pageSize:ge}=f.value,xe=new AbortController;s.value="loading",y==null||y(),bl({serverURL:se,lang:f.value.lang,path:ve,pageSize:ge,sortBy:n[p.value],page:V,signal:xe.signal,token:(D=l.value)==null?void 0:D.token}).then(we=>{s.value="success",o.value=we.count,h.value.push(...we.data),a.value=V,c.value=we.totalPages}).catch(we=>{we.name!=="AbortError"&&(console.error(we.message),s.value="error")}),y=xe.abort.bind(xe)},B=()=>C(a.value+1),A=()=>{o.value=0,h.value=[],C(1)},H=V=>{p.value!==V&&(p.value=V,A())},Y=V=>{v.value=V},J=V=>{I.value=V},W=V=>{if(I.value)I.value.comment=V.comment,I.value.orig=V.orig;else if("rid"in V){const D=h.value.find(({objectId:se})=>se===V.rid);if(!D)return;Array.isArray(D.children)||(D.children=[]),D.children.push(V)}else h.value.unshift(V),o.value+=1},Q=async({comment:V,status:D})=>{var se;if(V.status===D)return;const{serverURL:ve,lang:ge}=f.value;await Jt({serverURL:ve,lang:ge,token:(se=l.value)==null?void 0:se.token,objectId:V.objectId,comment:{status:D}}),V.status=D},ce=async V=>{var D;if("rid"in V)return;const{serverURL:se,lang:ve}=f.value;await Jt({serverURL:se,lang:ve,token:(D=l.value)==null?void 0:D.token,objectId:V.objectId,comment:{sticky:V.sticky?0:1}}),V.sticky=!V.sticky},$e=async({objectId:V})=>{var D;if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:se,lang:ve}=f.value;await xl({serverURL:se,lang:ve,token:(D=l.value)==null?void 0:D.token,objectId:V}),h.value.some((ge,xe)=>ge.objectId===V?(h.value=h.value.filter((we,st)=>st!==xe),!0):ge.children.some((we,st)=>we.objectId===V?(h.value[xe].children=ge.children.filter((pt,ze)=>ze!==st),!0):!1))},He=async V=>{var D;const{serverURL:se,lang:ve}=f.value,{objectId:ge}=V,xe=i.value.includes(ge);await Jt({serverURL:se,lang:ve,objectId:ge,token:(D=l.value)==null?void 0:D.token,comment:{like:!xe}}),xe?i.value=i.value.filter(we=>we!==ge):(i.value=[...i.value,ge],i.value.length>50&&(i.value=i.value.slice(-50))),V.like=(V.like||0)+(xe?-1:1)};return Ia("config",f),an(()=>{Pe(()=>[t.serverURL,t.path],()=>A(),{immediate:!0})}),Qn(()=>y==null?void 0:y()),(V,D)=>(S(),O("div",vd,[ae(ef),v.value?G("v-if",!0):(S(),et(Ns,{key:0,onLog:A,onSubmit:W})),F("div",wd,[F("div",yd,[o.value?(S(),O("span",{key:0,class:"wl-num",textContent:ie(o.value)},null,8,bd)):G("v-if",!0),tt(" "+ie($.value.comment),1)]),F("ul",kd,[(S(!0),O(ue,null,Ue(Z(r),se=>(S(),O("li",{key:se,class:me([se===p.value?"active":""]),onClick:ve=>H(se)},ie($.value[se]),11,xd))),128))])]),F("div",_d,[(S(!0),O(ue,null,Ue(h.value,se=>(S(),et(md,{key:se.objectId,"root-id":se.objectId,comment:se,reply:v.value,edit:I.value,onLog:A,onReply:Y,onEdit:J,onSubmit:W,onStatus:Q,onDelete:$e,onSticky:ce,onLike:He},null,8,["root-id","comment","reply","edit"]))),128))]),s.value==="error"?(S(),O("div",$d,[F("button",{type:"button",class:"wl-btn",onClick:A,textContent:ie($.value.refresh)},null,8,Cd)])):s.value==="loading"?(S(),O("div",Ed,[ae(Z(yn),{size:30})])):h.value.length?a.value<c.value?(S(),O("div",Td,[F("button",{type:"button",class:"wl-btn",onClick:B,textContent:ie($.value.more)},null,8,Ad)])):G("v-if",!0):(S(),O("div",{key:3,class:"wl-empty",textContent:ie($.value.sofa)},null,8,Rd)),f.value.copyright?(S(),O("div",Id,[tt(" Powered by "),Sd,tt(" v"+ie(Z(Ds)),1)])):G("v-if",!0)]))}}),Md=kn(Ld,[["__file","WalineComment.vue"]]);const Bs=(e,t)=>{t.forEach((n,r)=>{n.innerText=e[r].toString()})},Ws=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:r=!0,lang:l=navigator.language})=>{const i=new AbortController,s=Array.from(document.querySelectorAll(n)),o=c=>{const f=pl(c);return f!==null&&t!==f},a=c=>Cl({serverURL:Tn(e),paths:c.map(f=>pl(f)||t),lang:l,signal:i.signal}).then(f=>Bs(f,c)).catch(gs);if(r){const c=s.filter(p=>!o(p)),f=s.filter(o);El({serverURL:Tn(e),path:t,lang:l}).then(([p])=>Bs(new Array(c.length).fill(p),c)),f.length&&a(f)}else a(s);return i.abort.bind(i)},zd=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...l})=>{const i=e?fl(e):null;if(e&&!i)throw new Error("Option 'el' do not match any domElement!");if(!l.serverURL)throw new Error("Option 'serverURL' is missing!");const s=tn({...l}),o=tn({comment:n,pageview:r,path:t}),a=()=>{o.comment&&Ss({serverURL:s.serverURL,path:o.path,...typeof o.comment=="string"?{selector:o.comment}:{}})},c=()=>{o.pageview&&Ws({serverURL:s.serverURL,path:o.path,...typeof o.pageview=="string"?{selector:o.pageview}:{}})},f=i?Ac(()=>ne(Md,{path:o.path,...s})):null;f&&f.mount(i);const p=Ci(a),h=Ci(c);return{el:i,update:({comment:v,pageview:I,path:x=window.location.pathname,...$}={})=>{Object.entries($).forEach(([y,C])=>{s[y]=C}),o.path=x,v!==void 0&&(o.comment=v),I!==void 0&&(o.pageview=I)},destroy:()=>{f==null||f.unmount(),p(),h()}}},Od=({el:e,serverURL:t,count:n,lang:r=navigator.language})=>{var l;const i=gr(),s=fl(e),o=new AbortController;return Rl({serverURL:t,count:n,lang:r,signal:o.signal,token:(l=i.value)==null?void 0:l.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()})},jd=({el:e,serverURL:t,count:n,locale:r,lang:l=navigator.language,mode:i="list"})=>{const s=fl(e),o=new AbortController;return Tl({serverURL:t,pageSize:n,lang:l,signal:o.signal}).then(a=>!s||!a.length?{users:a,destroy:()=>o.abort()}:(r={...Lt[l]||Lt[Sl],...typeof r=="object"?r:{}},s.innerHTML=`<ul class="wl-user-${i}">${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=""}}))};exports.RecentComments=Od,exports.UserList=jd,exports.addComment=kl,exports.commentCount=Ss,exports.defaultLocales=Lt,exports.deleteComment=xl,exports.fetchCommentCount=_l,exports.getArticleCounter=br,exports.getComment=bl,exports.getPageview=Cl,exports.getRecentComment=Rl,exports.getUserList=Tl,exports.init=zd,exports.login=$l,exports.pageviewCount=Ws,exports.updateArticleCounter=En,exports.updateComment=Jt,exports.updatePageview=El,exports.version=Ds;
|
|
54
|
-
//# sourceMappingURL=waline.cjs.map
|